X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/blobdiff_plain/5760b2a8d146d7c186daab1743c84683d0d84cea..fc460d91d0660f9a632523ccd0a3884e0ad37702:/includes/mod_roomReservationConfigPage.inc diff --git a/includes/mod_roomReservationConfigPage.inc b/includes/mod_roomReservationConfigPage.inc old mode 100755 new mode 100644 index 4c74132..46ce45a --- a/includes/mod_roomReservationConfigPage.inc +++ b/includes/mod_roomReservationConfigPage.inc @@ -29,6 +29,7 @@ require_once("ctrl.inc"); require_once("mod_room-reservation/mod_roomReservationPage.inc"); require_once("mod_room-reservation/mod_roomReservationTimesliceListBox.inc"); +require_once("mod_room-reservation/mod_roomReservationRoomWhitelistListBox.inc"); /** @todo document */ class mod_roomReservationConfigPage extends mod_roomReservationPage { @@ -36,10 +37,13 @@ class mod_roomReservationConfigPage extends mod_roomReservationPage { protected $bPostShowWeekend; protected $bPostShowLessons; protected $asMessages = array(); + protected $otlb; + protected $orwlb; public function __construct(mod_roomReservationConfig &$oCfg) { parent::__construct($oCfg); - + $this->otlb = new mod_roomReservationTimesliceListBox($this->oCfg); + $this->orwlb = new mod_roomReservationRoomWhitelistListBox($this->oCfg); $this->setTitle(_c("room-reservation:Configuration")); $this->setIcon("mod_room-reservation_config"); } @@ -54,17 +58,11 @@ class mod_roomReservationConfigPage extends mod_roomReservationPage { $this->bPostShowWeekend = ($_POST["mod_roomReservationConfigPage"]["showweekend"] == true); } - ########### - echo "bPostShowWeekend is ".($this->bPostShowWeekend?"true ":"false "); - ########### if(isset($_POST["mod_roomReservationConfigPage"]["showlessons"])) { $this->bPostShowLessons = ($_POST["mod_roomReservationConfigPage"]["showlessons"] == true); } - ########### - echo "bPostShowLessons is ".($this->bPostShowLessons?"true ":"false "); - ########### // process the request if(isset($_POST["mod_roomReservationConfigPage"]["submit"])) { @@ -85,8 +83,17 @@ class mod_roomReservationConfigPage extends mod_roomReservationPage { printf("
%s
", nl2br(q(join("\n", $this->asMessages)))); } + // first column echo "\n"; // two rows + " | \n";
+
+ GroupBox(_c("room-reservation:Available rooms"), "host");
+ printf(" %s ", _c("room-reservation:The following rooms are ". + "available for booking:")); + echo "";
+ $this->orwlb->show();
+ echo " \n";
+ _GroupBox();
GroupBox(_("Privileges"), "keys");
$asAdminGroups = rrPrivilegedGroups("mod_roomreservation_admin");
@@ -121,6 +128,18 @@ class mod_roomReservationConfigPage extends mod_roomReservationPage {
echo " |
%s
", _c("room-reservation:Here you can fill in the ". + "periods where bookings can be undertaken. A booking period can ". + "e. g. correspond to a lesson.")); + echo "%s
", _c("room-reservation:Here you can fill in the ". - "periods where bookings can be undertaken. A booking period can ". - "e. g. correspond to a lesson.")); - echo "