<?php
-/**\r
- * @file mod_roomReservationConfigPage.inc\r
- * The configuration page\r
- * @author Roland Hieber (roland.hieber@wilhelm-gym.net)\r
- * @date 24.06.2008\r
- * \r
- * Copyright © 2007 Roland Hieber\r
- *\r
- * Permission is hereby granted, free of charge, to any person obtaining\r
- * copy of this software and associated documentation files (the "Software"),\r
- * to deal in the Software without restriction, including without limitation\r
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,\r
- * and/or sell copies of the Software, and to permit persons to whom the\r
- * Software is furnished to do so, subject to the following conditions:\r
- * \r
- * The above copyright notice and this permission notice shall be included in\r
- * all copies or substantial portions of the Software.\r
- *\r
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
- * THE SOFTWARE.\r
- */\r
-\r
+/**
+ * @file mod_roomReservationConfigPage.inc
+ * The configuration page
+ * @author Roland Hieber (roland.hieber@wilhelm-gym.net)
+ * @date 24.06.2008
+ *
+ * Copyright © 2007 Roland Hieber
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
require_once("ctrl.inc");
require_once("mod_room-reservation/mod_roomReservationPage.inc");
require_once("mod_room-reservation/mod_roomReservationTimesliceListBox.inc");
// first column
echo "<table border='0' cellspacing='10' cellpadding='0'><tr>".
- "<td style='width:50%;'>\n";
+ "<td style='width:50%;'>\n";
GroupBox(_c("room-reservation:Available rooms"), "host");
- printf("<p>%s</p>", _c("room-reservation:The following rooms are ".
- "available for booking:"));
- echo "<div style='margin:8px;'>";
+ printf("<p>%s</p>", sprintf(_c("room-reservation:The following rooms are ".
+ "available for booking (you can add and delete rooms on the <a href='".
+ "/idesk/inet/admin/'>computer administration page</a>):")));
$this->orwlb->show();
- echo "</div>\n";
_GroupBox();
GroupBox(_("Privileges"), "keys");
"action. Please use the %sgroup administration%s to assign and revoke ".
"privileges."), "<a href='/idesk/admin/act/groups.php'>", "</a>"),
_c("room-reservation:Please note that every group with the booking ".
- "privilege can also implicitly view the booking table and every group with ".
- "the administration privilege can also implicitly book and view the ".
- "booking table."));
+ "privilege can also implicitly view the booking table and every group with ".
+ "the administration privilege can also implicitly book and view the ".
+ "booking table."));
echo "<p><table style='width:100%'><tr>\n";
echo sprintf("<td>%s%s</td><td>%s</td>\n", icon("keys"),
_("View the booking table").":", $asViewGroups == array() ?
GroupBox(_c("room-reservation:Periods"), "mod_room-reservation_timeslice");
printf("<p>%s</p>", _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 "<div style='margin:8px;'>";
+ "periods where bookings can be undertaken. A booking period can ".
+ "e. g. correspond to a lesson."));
$this->otlb->show();
- echo "</div>\n";
_GroupBox();
GroupBox(_c("room-reservation:Further options"), "manage");
printf("<div style='margin:8px;'><form action='%s' method='post'>".
- "<table><tr>\n", $_SERVER["PHP_SELF"]);
+ "<table><tr>\n", $_SERVER["PHP_SELF"]);
printf("<td><input type='hidden' name='mod_roomReservationConfigPage".
- "[showweekend]' value='0' /><%s name='mod_roomReservationConfigPage".
- "[showweekend]' id='mod_roomReservationConfigPageShowWeekend' ".
- "value='1' %s /></td><td><label for='".
- "mod_roomReservationConfigPageShowWeekend'><b>%s</b></label><br />".
- "<span class='mod_roomReservationConfigPageExplanation'>%s</span></p>",
+ "[showweekend]' value='0' /><%s name='mod_roomReservationConfigPage".
+ "[showweekend]' id='mod_roomReservationConfigPageShowWeekend' ".
+ "value='1' %s /></td><td><label for='".
+ "mod_roomReservationConfigPageShowWeekend'><b>%s</b></label><br />".
+ "<span class='mod_roomReservationConfigPageExplanation'>%s</span></p>",
$GLOBALS["smlchk"], $this->bPostShowWeekend ? "checked='checked' " : "",
_c("room-reservation:Show weekend"), _c("room-reservation:If ".
"selected, the weekdays saturday and sunday are also shown in the ".
echo "</tr><tr>\n";
printf("<td><input type='hidden' name='mod_roomReservationConfigPage".
- "[showlessons]' value='0' /><%s name='mod_roomReservationConfigPage".
- "[showlessons]' id='mod_roomReservationConfigPageShowLessons' ".
- "value='1'%s /></td><td><label for='".
- "mod_roomReservationConfigPageShowLessons'><b>%s</b></label><br />".
- "<span class='mod_roomReservationConfigPageExplanation'>%s</span></p>",
+ "[showlessons]' value='0' /><%s name='mod_roomReservationConfigPage".
+ "[showlessons]' id='mod_roomReservationConfigPageShowLessons' ".
+ "value='1'%s /></td><td><label for='".
+ "mod_roomReservationConfigPageShowLessons'><b>%s</b></label><br />".
+ "<span class='mod_roomReservationConfigPageExplanation'>%s</span></p>",
$GLOBALS["smlchk"], $this->bPostShowLessons ? "checked='checked' " : "",
_c("room-reservation:Show „lesson” texts"),
_c("room-reservation:Check this box to show texts like ".
- "„<i>n</i>th lesson&rdquo in the booking page. If this box is ".
- "unchecked, none of these texts are shown."));
+ "„<i>n</i>th lesson&rdquo in the booking page. If this box is ".
+ "unchecked, none of these texts are shown."));
printf("</tr><tr><td colspan='2'><%s name='mod_roomReservationConfigPage".
- "[submit]' value='%s' /></td>", $GLOBALS["stdbtn"], _("OK"));
+ "[submit]' value='%s' /></td>", $GLOBALS["stdbtn"], _("OK"));
echo "</tr></table></form></div>\n";
_GroupBox();
echo "</td></tr></table>\n";
}
}
-?>
\ No newline at end of file
+?>