本文整理汇总了PHP中Notifier::NotifyReservation方法的典型用法代码示例。如果您正苦于以下问题:PHP Notifier::NotifyReservation方法的具体用法?PHP Notifier::NotifyReservation怎么用?PHP Notifier::NotifyReservation使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Notifier
的用法示例。
在下文中一共展示了Notifier::NotifyReservation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: createRandomPassword
$addonpayable = 0;
$downpayment = 0;
$total = $_POST['total'];
$adult = $_POST['nadult'];
$child = $_POST['nchild'];
$confirmation = 'wv-' . createRandomPassword();
if ($adult == '' || $child == '') {
echo "please select the number of Adult or Child";
} else {
if (isset($_SESSION['Customerid'])) {
$Customerid = $_SESSION['Customerid'];
$sql = "select * from tblusers where Customer_ID='{$Customerid}'";
$query = mysqli_query($conn, $sql);
$row = mysqli_fetch_assoc($query);
$fname = $row['FirstName'];
$lname = $row['LastName'];
$balance = 90000;
$datenow = date('Y-m-d');
$Reservation = new Reservation($Customerid, $Categoryname, $Roomid, $arrival, $departure, $numberofdays, $adult, $child, $status, $addonpayable, $downpayment, $total, $confirmation, null);
if ($Reservation->AddReserve()) {
$transaction = new Transaction($Customerid, $datenow, null, null, $total, $status, 'None');
if ($transaction->AddTransaction()) {
$reservationname = $fname . " " . " " . $lname;
$message = $reservationname . " " . "Was Reserve";
Notifier::NotifyReservation($confirmation, $reservationname, $message);
echo "true";
$_SESSION['Confirmation'] = $confirmation;
}
}
}
}