コード例 #1
0
ファイル: rooms.php プロジェクト: bogiesoft/hotelmis-ota
 $noofrooms = $_POST["noofrooms"];
 $occupancy = $_POST["occupancy"];
 $status = $_POST["status"];
 $photo = $_POST["photo"];
 $filetype = $_POST["filetype"];
 $bedcount = $_POST["bedcount"];
 $bedtype1 = $_POST["bedtype1"];
 $bedtype2 = $_POST["bedtype2"];
 $bedtype3 = $_POST["bedtype3"];
 $bedtype4 = $_POST["bedtype4"];
 $ratesid = $_POST["ratesid"];
 if ($roomid > 0 || $roomid == 0 && !in_array($roomno, $rmNoList)) {
     $roomid = modify_room($roomid, $roomno, $roomtypeid, $roomname, $noofrooms, $bedcount, $bedtype1, $bedtype2, $bedtype3, $bedtype4, $occupancy, $status, $photo, $filetype, $ratesid);
     if (is_ebridgeCustomer()) {
         include_once dirname(__FILE__) . "/OTA/advancedFeatures/adv_functions.php";
         CustomPagesFormRead(HTL_PAGE_ROOM, $roomid);
     }
 }
 if (!$roomid) {
     echo "<div align=\"center\"><h1>" . $_L['RM_error'] . "</h1></div>";
 } else {
     if ($action == $_L['BTN_update']) {
         echo "<div align=\"center\"><h1>" . $_L['RM_updatesuccess'] . "</h1></div>";
     } else {
         echo "<div align=\"center\"><h1>" . $_L['RM_addsuccess'] . "</h1></div>";
     }
 }
 /** After successfully saving the room details, the room amenities
  * will be deleted then re-added 1 at a time from the new list
  */
 delete_roomamenities($roomid);
コード例 #2
0
ファイル: roomtypes.php プロジェクト: bogiesoft/hotelmis-ota
//check if user is allowed to access this page
$logofile = Get_LogoFile();
if (isset($_GET["search"])) {
    find($_GET["search"]);
}
if (isset($_POST['Submit'])) {
    $action = $_POST['Submit'];
    switch ($action) {
        case $_L['BTN_save']:
            if (isset($_POST['roomtypecount']) && $_POST['roomtypecount'] > 0) {
                for ($i = 1; $i <= $_POST['roomtypecount']; $i++) {
                    if (isset($_POST['idx_' . $i])) {
                        modify_roomtype($_POST['idx_' . $i], $_POST['roomtype_' . $i], $_POST['description_' . $i], $_POST['rateid_' . $i], $_POST['url_' . $i]);
                        if (is_ebridgeCustomer()) {
                            include_once dirname(__FILE__) . "/OTA/advancedFeatures/adv_functions.php";
                            CustomPagesFormRead(HTL_ROOM_TYPE, $_POST['idx_' . $i]);
                        }
                    }
                }
            }
            if ($_POST['newroomtype'] || $_POST['newdescription']) {
                // instantiate form validator object
                $fv = new formValidator();
                //from functions.php
                $fv->validateEmpty('newroomtype', $_L['RMT_normtyp']);
                $fv->validateEmpty('newdescription', $_L['RMT_noitmdes']);
                if ($fv->checkErrors()) {
                    // display errors
                    echo "<div align=\"center\">";
                    echo "<h2>" . $_L['PR_formerr'] . "</h2>";
                    echo $fv->displayErrors();
コード例 #3
0
 }
 // New reservation reservation id = 0.
 $fop = !empty($_POST['fop']) ? $_POST['fop'] : FOP_CASH;
 $amt = !empty($_POST['amt']) ? $_POST['amt'] : 0;
 $svc = 0;
 $tax = 0;
 $totamt = $amt;
 $auth = '';
 $name = $_POST['guestname'];
 if ($amt > 0 && $status == RES_QUOTE) {
     $status = RES_ACTIVE;
 }
 $resid = modify_reservation($resid, $src, $guestid, $phone, $vchr, $agentid, $res_by, $res_by_phone, $checkindate, $checkoutdate, $no_adults, $no_child1_5, $no_child6_12, $no_babies, $instructions, $ccnum, $cctype, $expiry, $cvv, $rsvd_by, $reserved_date, $confirmed_by, $confirmed_date, $roomid, $roomtypeid, $ratesid, $resdtime, $book_id, $status, $bill_id, $fop, $amt, $booked_by_ebridgeid, "", "");
 if (is_ebridgeCustomer()) {
     include_once dirname(__FILE__) . "/OTA/advancedFeatures/adv_functions.php";
     CustomPagesFormRead(HTL_PAGE_RES, $resid);
 }
 $resdetailID = 0;
 if (!$ratesid && $resid) {
     $reservation = array();
     get_reservation($resid, $reservation, 0);
     $currency = get_Currency_byRateID($reservation['ratesid']);
 } else {
     $currency = get_Currency_byRateID($ratesid);
 }
 if (!$currency) {
     $currency = get_defaultcurrencycode();
 }
 modify_agent_bookingref($bookrefid, $resid, $agentid, $bookref);
 if (!$resid) {
     echo "<div align=\"center\"><h1>" . $_L['RSV_resvnotmade_err'] . "</h1></div>";
コード例 #4
0
ファイル: bookings.php プロジェクト: bogiesoft/hotelmis-ota
         modify_advDocument(0, 0, $profileid, DOC_NID, '0000-00-00', '000-00-00', "", "", $nationality, $guestname, $localid, "");
         modify_advEmail(0, 0, $profileid, 0, EAT_PERSONAL, $email, "");
         modify_advAddress(0, 0, $profileid, AUT_CONTACT, CLT_HOME, "", "", "", "", $address, $town, "", $countrycode, $postal_code);
         $guestid = $profileid;
     } else {
         $guestid = modify_guest(0, $lastname, $firstname, $middlename, '', $localid, '', $countrycode, $address, $town, $postal_code, $phone, $email, '', '', '', $nationality);
     }
 }
 if (!$guestid) {
     // break out of the loop if no guest ID set.
     break;
 }
 $book_id = modify_booking($book_id, $res_id, $bill_id, $guestid, $no_adults, $no_child6_12, $no_child1_5, $no_babies, $checkindate, $checkoutdate, $roomid, $roomtypeid, $ratesid, $instr, $checkedin_by, $checkedin_date, $checkedout_by, $checkedout_date, $cctype, $CCnum, $expiry, $CVV, $voucher_no, $book_status, $details_id);
 if (is_ebridgeCustomer()) {
     include_once dirname(__FILE__) . "/OTA/advancedFeatures/adv_functions.php";
     CustomPagesFormRead(HTL_PAGE_BOOK, $book_id);
 }
 if (!$book_id) {
     echo "<div align=\"center\"><h1>" . $_L['REG_error1'] . "</h1></div>";
 } else {
     if ($action == $_L['REG_checkinbox']) {
         update_booking_status($book_id, BOOK_CHECKEDIN);
     } else {
         if ($action == $_L['REG_Rcheckout']) {
             update_booking_status($book_id, BOOK_CHECKEDIN);
             update_room_status($roomid, BOOKED);
             update_reservation_status($res_id, RES_CHECKIN);
             if ($details_id) {
                 update_resDetails_status($details_id, RES_CHECKIN);
             }
         } else {