X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/blobdiff_plain/b4fea5220b8c3fd880137f0f83d27b31f794860a..de19e9edcf0ee7cc451f7bc819006ff869050062:/inc/mod_roomReservationConfigPage.inc?ds=sidebyside diff --git a/inc/mod_roomReservationConfigPage.inc b/inc/mod_roomReservationConfigPage.inc index 46ce45a..9a465d0 100644 --- a/inc/mod_roomReservationConfigPage.inc +++ b/inc/mod_roomReservationConfigPage.inc @@ -1,31 +1,31 @@ ". - "\n"; + "\n"; GroupBox(_c("room-reservation:Available rooms"), "host"); - printf("

%s

", _c("room-reservation:The following rooms are ". - "available for booking:")); - echo "
"; + printf("

%s

", sprintf(_c("room-reservation:The following rooms are ". + "available for booking (you can add and delete rooms on the computer administration page):"))); $this->orwlb->show(); - echo "
\n"; _GroupBox(); GroupBox(_("Privileges"), "keys"); @@ -107,9 +106,9 @@ class mod_roomReservationConfigPage extends mod_roomReservationPage { "action. Please use the %sgroup administration%s to assign and revoke ". "privileges."), "", ""), _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 "

\n"; echo sprintf("\n", icon("keys"), _("View the booking table").":", $asViewGroups == array() ? @@ -123,7 +122,7 @@ class mod_roomReservationConfigPage extends mod_roomReservationPage { echo "\n"; echo sprintf("\n", icon("keys"), _("Administration of the room reservation schedule"), - $asAdminGroups == array() ? _c("room-reservation:all users") : + $asAdminGroups == array() ? _c("room-reservation:no users") : icon("act-group") . join(", ", array_map("getGroupName", $asAdminGroups))); echo "
%s%s%s
%s%s%s

\n"; _GroupBox(); @@ -133,23 +132,21 @@ class mod_roomReservationConfigPage extends mod_roomReservationPage { GroupBox(_c("room-reservation:Periods"), "mod_room-reservation_timeslice"); printf("

%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 "
"; + "periods where bookings can be undertaken. A booking period can ". + "e. g. correspond to a lesson.")); $this->otlb->show(); - echo "
\n"; _GroupBox(); GroupBox(_c("room-reservation:Further options"), "manage"); printf("
". - "\n", $_SERVER["PHP_SELF"]); + "
\n", $_SERVER["PHP_SELF"]); printf("\n"; printf("", $GLOBALS["stdbtn"], _("OK")); + "[submit]' value='%s' />", $GLOBALS["stdbtn"], _("OK")); echo "
<%s name='mod_roomReservationConfigPage". - "[showweekend]' id='mod_roomReservationConfigPageShowWeekend' ". - "value='1' %s />
". - "%s

", + "[showweekend]' value='0' /><%s name='mod_roomReservationConfigPage". + "[showweekend]' id='mod_roomReservationConfigPageShowWeekend' ". + "value='1' %s />

". + "%s

", $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 ". @@ -157,23 +154,23 @@ class mod_roomReservationConfigPage extends mod_roomReservationPage { echo "
<%s name='mod_roomReservationConfigPage". - "[showlessons]' id='mod_roomReservationConfigPageShowLessons' ". - "value='1'%s />
". - "%s

", + "[showlessons]' value='0' /><%s name='mod_roomReservationConfigPage". + "[showlessons]' id='mod_roomReservationConfigPageShowLessons' ". + "value='1'%s />

". + "%s

", $GLOBALS["smlchk"], $this->bPostShowLessons ? "checked='checked' " : "", _c("room-reservation:Show „lesson” texts"), _c("room-reservation:Check this box to show texts like ". - "„nth lesson&rdquo in the booking page. If this box is ". - "unchecked, none of these texts are shown.")); + "„nth lesson&rdquo in the booking page. If this box is ". + "unchecked, none of these texts are shown.")); printf("
<%s name='mod_roomReservationConfigPage". - "[submit]' value='%s' />
\n"; _GroupBox(); echo "\n"; } } -?> \ No newline at end of file +?>