X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/blobdiff_plain/e72f55ac765a05586d565c67f79dce57d9c1ad76..f3daeca192a6c51e403a00c46065d937e1c7e29c:/inc/mod_roomReservationTimesliceListBox.inc diff --git a/inc/mod_roomReservationTimesliceListBox.inc b/inc/mod_roomReservationTimesliceListBox.inc index b4c9cde..91f5bae 100644 --- a/inc/mod_roomReservationTimesliceListBox.inc +++ b/inc/mod_roomReservationTimesliceListBox.inc @@ -114,12 +114,12 @@ class mod_roomReservationTimesliceListBox extends mod_roomReservationControl { // Note: we want to handle the timestamps in GMT format, hence the "+0000" if(strtotime($this->getNewBegin()." +0000") === false) { $this->asMessages[] = _c("room-reservation:The beginning time is ". - "invalid."); + "invalid."); $bErrors = true; } if(strtotime($this->getNewEnd()." +0000") === false) { $this->asMessages[] = _c("room-reservation:The ending time is ". - "invalid."); + "invalid."); $bErrors = true; } @@ -222,7 +222,7 @@ class mod_roomReservationTimesliceListBox extends mod_roomReservationControl { } TreeViewLine(array(sprintf("<%s name='mod_roomReservationTimesliceListBox". - "[begin]' value='%s' size='8'/>", $GLOBALS["stdedt"], + "[begin]' value='%s' size='8'/>", $GLOBALS["stdedt"], $this->getNewBegin()), sprintf("<%s name='". "mod_roomReservationTimesliceListBox[end]' value='%s' size='8'/> <%s ". "name='mod_roomReservationTimesliceListBox[submit]' value='%s' />", @@ -234,12 +234,12 @@ class mod_roomReservationTimesliceListBox extends mod_roomReservationControl { $aoTs = $this->oCfg->getTimeslices(); if(count($aoTs) > 0) { echo "
"; + "method='post'>"; $i = 0; foreach($aoTs as $oTs) { $sBox = sprintf("". - "<%s name='mod_roomReservationTimesliceListBox[l][%d]' value='1' />", + "name='mod_roomReservationTimesliceListBox[l][%d]' value='0' />". + "<%s name='mod_roomReservationTimesliceListBox[l][%d]' value='1' />", $i, $GLOBALS["smlchk"], $i); // Note: we have only GMT timestamps in the timeslice objects TreeViewLine(array($sBox . gmstrftime(_("%#I:%M %p"), $oTs->getBegin()), @@ -250,7 +250,7 @@ class mod_roomReservationTimesliceListBox extends mod_roomReservationControl { printf("", $GLOBALS["treeview_cols"]); CheckCombo(); printf("<%s name='mod_roomReservationTimesliceListBox[submit]' ". - "value='%s' />", $GLOBALS["stdbtn"], _("Delete")); + "value='%s' />", $GLOBALS["stdbtn"], _("Delete")); echo "\n"; } else { TreeViewEmpty(); @@ -261,4 +261,4 @@ class mod_roomReservationTimesliceListBox extends mod_roomReservationControl { } /** @} */ } -?> \ No newline at end of file +?>