本文整理汇总了PHP中Notifier::NotifyUser方法的典型用法代码示例。如果您正苦于以下问题:PHP Notifier::NotifyUser方法的具体用法?PHP Notifier::NotifyUser怎么用?PHP Notifier::NotifyUser使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Notifier
的用法示例。
在下文中一共展示了Notifier::NotifyUser方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
$sql = "UPDATE tblreservation SET Status='Check Out' WHERE Confirmation='" . $confirmation . "'";
$conn->query($sql);
if ($type == "Administrator") {
header("Location: ../pages/transaction.php");
} else {
header("Location: ../pages/transaction-staff.php");
}
} else {
echo "An error occured during the operation";
}
$conn->close();
} else {
echo "<script>alert('It seems you are not the one who check out the reservation. The user in charge will given a notification that the reservation has been check out.');</script>";
$message = $reservationname . " " . "was Checkout to Room" . " " . $roomtype . " " . "by " . " " . $userincharge . " " . date('Y-m-d');
$notification = new Notifier($userincharge, $user, $message);
if ($notification->NotifyUser()) {
$transaction = new Transaction(Reservation::GetReservationID($reservationid), Transaction::GetReservationCustomerID($confirmation), $datereservation, $datenow, $dateout, $payable, $checkout, $userincharge);
if ($transaction->CheckOut(Transaction::GetReservationCustomerID($confirmation), $userincharge == 1, $confirmation)) {
$sql = "UPDATE tblreservation SET Status='Check Out' WHERE Confirmation='" . $confirmation . "'";
$conn->query($sql);
if ($type == "Administrator") {
echo '<script>window.location="../pages/transaction.php";</script>';
} else {
echo '<script>window.location="../pages/index-staff.php";</script>';
}
} else {
echo "An error occured during the operation";
$conn->close();
}
}
}