// 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;
}
}
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' />",
$aoTs = $this->oCfg->getTimeslices();
if(count($aoTs) > 0) {
echo "<form action='?mod_roomReservationTimesliceListBox[action]=delete' ".
- "method='post'>";
+ "method='post'>";
$i = 0;
foreach($aoTs as $oTs) {
$sBox = sprintf("<input type='hidden' ".
- "name='mod_roomReservationTimesliceListBox[l][%d]' value='0' />".
- "<%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()),
printf("<tr><td class='tbbtm' colspan='%d'>", $GLOBALS["treeview_cols"]);
CheckCombo();
printf("<%s name='mod_roomReservationTimesliceListBox[submit]' ".
- "value='%s' />", $GLOBALS["stdbtn"], _("Delete"));
+ "value='%s' />", $GLOBALS["stdbtn"], _("Delete"));
echo "</td></tr>\n";
} else {
TreeViewEmpty();
}
/** @} */
}
-?>
\ No newline at end of file
+?>