当前位置: 首页>>代码示例>>PHP>>正文


PHP Notifier::NotifyUser方法代码示例

本文整理汇总了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();
         }
     }
 }
开发者ID:phoenixtwister,项目名称:WestViewPensionne,代码行数:31,代码来源:transaction2.php


注:本文中的Notifier::NotifyUser方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。