if (isset($_SERVER['HTTPS'])) { $ssl = "s"; } $path = "http" . $ssl . "://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']); // get all of the active bookings $blist = array(); $book = get_all_bookings($blist, BOOK_CHECKEDIN, "", 0); // Get all of the reservations for the period $rlist = array(); list($rstop, $rest) = preg_split('/ /', $endDate); list($year, $month, $day) = preg_split('/\\//', $rstop); $rstop = $day . "/" . $month . "/" . $year; list($rstart, $rest) = preg_split('/ /', $fromdate); list($day, $month, $year) = preg_split('/\\//', $rstart); $rstart = $year . "/" . $month . "/" . $day; $res = get_all_reservations("", "", "", $rlist, RES_ACTIVE); $errstr = ""; $perr = ""; // Just load the rooms list $roomlist = array(); $rms = get_roomslist($roomlist, 0, 0, 0); // Initialise the result table foreach ($roomlist as $rmid => $val) { $result[$rmid]['roomid'] = $rmid; $result[$rmid]['roomno'] = $roomlist[$rmid]['roomno']; $result[$rmid]['roomtype'] = $roomlist[$rmid]['roomtype']; $result[$rmid]['roomtypeid'] = $roomlist[$rmid]['roomtypeid']; if ($roomlist[$rmid]['status'] == LOCKED) { $rstatus = $roomlist[$rmid]['status']; } else { $rstatus = VACANT;
<?php if (!$showadvance) { ?> <td class="c4" width="20%"> <h2><?php if ($_SESSION['userid']) { echo $_L['RSV_canselreq']; } ?> </h2><br/> <div style="overflow-y: scroll; height:150px;"> <?php if ($_SESSION['userid']) { $i = 1; $res = get_all_reservations($inStart, $inEnd, "", $rlist, RES_CANCELREQUESTED); for ($idx = 0; $idx < $res; $idx++) { echo $i++ . "."; echo '<a href=' . $path . '/index.php?menu=reservation&resid=' . $rlist[$idx]['reservation_id'] . ' >' . $rlist[$idx]['voucher_no'] . '</a>'; echo $rlist[$idx]['guestname'] . "<br/>"; } } ?> </div> <h2> <?php echo $_L['USR_billlist']; ?> </h2><br/> <div style="overflow-y: scroll; height:250px;"> <?php if ($_SESSION['userid']) {