require_once("mod_room-reservation/mod_roomReservationTimeslice.inc");
/*****************************************************************************/
require_once("mod_room-reservation/mod_roomReservationTimeslice.inc");
/*****************************************************************************/
// Note: we want to handle the timestamps in GMT format, hence the "+0000"
if(strtotime($this->getNewBegin()." +0000") === false) {
// Note: we want to handle the timestamps in GMT format, hence the "+0000"
if(strtotime($this->getNewBegin()." +0000") === false) {
if(isset($_POST["mod_roomReservationTimesliceListBox"])) {
if(isset($_POST["mod_roomReservationTimesliceListBox"]["l"])) {
$ao = $this->oCfg->getTimeslices();
if(isset($_POST["mod_roomReservationTimesliceListBox"])) {
if(isset($_POST["mod_roomReservationTimesliceListBox"]["l"])) {
$ao = $this->oCfg->getTimeslices();
TreeView(array(_c("room-reservation:Begin"), _c("room-reservation:End")));
// addition form
printf("<form method='get'>");
hidden("mod_roomReservationTimesliceListBox[action]", "add");
TreeViewTitle(_("Add"));
TreeView(array(_c("room-reservation:Begin"), _c("room-reservation:End")));
// addition form
printf("<form method='get'>");
hidden("mod_roomReservationTimesliceListBox[action]", "add");
TreeViewTitle(_("Add"));
- if(count($this->asFormErrors) > 0) {
- TreeViewLine(sprintf("<div class='err' style='color:red;'>%s</div>",
- nl2br(q(trim(join("\n", $this->asFormErrors))))));
+
+ $sMessages = $this->getMessages();
+ if(trim($sMessages) != "") {
+ TreeViewLine($sMessages);
TreeViewLine(array(sprintf("<%s name='mod_roomReservationTimesliceListBox".
"[begin]' value='%s' size='8'/>", $GLOBALS["stdedt"],
$this->getNewBegin()), sprintf("<%s name='".
TreeViewLine(array(sprintf("<%s name='mod_roomReservationTimesliceListBox".
"[begin]' value='%s' size='8'/>", $GLOBALS["stdedt"],
$this->getNewBegin()), sprintf("<%s name='".