Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $tablesum ++;
- $guestsum += $row->reservation_pax;
- <?php echo $guestsum;?> <?php echo _guest_summary;?>
- <?php
- // Clear reservation variable
- $reservations ='';
- if ($_SESSION['page'] == 1) {
- $reservations = querySQL('all_reservations');
- }else{
- $reservations = querySQL('reservations');
- }
- // reset total counters
- $tablesum = 0;
- $guestsum = 0;
- if ($reservations) {
- //start printing out reservation grid
- foreach($reservations as $row) {
- // reservation ID
- $id = $row->reservation_id;
- $_SESSION['reservation_guest_name'] = $row->reservation_guest_name;
- // check if reservation is tautologous
- $tautologous = querySQL('tautologous');
- echo "<tr id='res-".$id."'>";
- echo "<td";
- // daylight coloring
- if ($row->reservation_time > $daylight_evening){
- echo " class='evening noprint'";
- }else if ($row->reservation_time > $daylight_noon){
- echo " class='afternoon noprint'";
- }else if ($row->reservation_time < $daylight_noon){
- echo " class='morning noprint'";
- }
- echo " style='width:10px !important; padding:0px;'> </td>";
- echo "<td id='tb_time'";
- // reservation after maitre message
- if ($row->reservation_timestamp > $maitre['maitre_timestamp'] && $maitre['maitre_comment_day']!='') {
- echo " class='tautologous' title='"._sentence_13."' ";
- }
- echo ">";
- echo "<strong>".formatTime($row->reservation_time,$general['timeformat'])."</strong></td>";
- echo "<td id='tb_pax'><strong class='big'>".$row->reservation_pax."</strong> <span class='noprint'>";
- $tablesum ++;
- $guestsum += $row->reservation_pax;
- }
- }
- ?>
- <?php echo $guestsum;?> <?php echo _guest_summary;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement