mod_roomReservationBookingTable: if weekends are not shown, show the next week alread...
[iserv-mod-room-reservation.git] / includes / mod_roomReservationBookingTable.inc
index 15ee950..8d017f5 100644 (file)
@@ -171,7 +171,12 @@ class mod_roomReservationBookingsTable /* extends mclWidget */ {
     } else {
       $this->setRoom($aoRooms[0]->getName());
     }
-    $this->setDate(time());
+    // if weekends are not shown, show the next week already on saturday
+    if(!$this->oCfg->isShowWeekend() and date("w") == 6) {
+      $this->setDate(strtotime("monday"));
+    } else {
+      $this->setDate(time());
+    }
     $this->setAction(MOD_ROOM_RESERVATION_BT_ACTION_SHOW);
     $this->nPostInterval = 0;
    
@@ -406,9 +411,10 @@ class mod_roomReservationBookingsTable /* extends mclWidget */ {
     $strCss = <<<CSS
 #mod_roomReservationBookingTable .msg { font-weight:800; }
 #mod_roomReservationBookingTable td {
-  vertical-align:middle;
-  height:7em;
-  border:1px solid white; padding:0.4em;
+  vertical-align: middle;
+  height: 5em;
+  border: 1px solid white;
+  padding:0.4em;
 }
 #mod_roomReservationBookingTable td.booking { background-color:#5276AB; }
 #mod_roomReservationBookingTable td.new { background-color:#008015; }
This page took 0.022897 seconds and 4 git commands to generate.