<?php
-/**\r
- * @file mod_roomReservationRoomWhitelistListBox.inc\r
- * List box that shows the rooms who can be booked\r
- * @author Roland Hieber (roland.hieber@wilhelm-gym.net)\r
- * @date 24.07.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
+/**
+ * @file mod_roomReservationRoomWhitelistListBox.inc
+ * List box that shows the rooms who can be booked
+ * @author Roland Hieber (roland.hieber@wilhelm-gym.net)
+ * @date 24.07.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("mod_roomReservationControl.inc");
require_once("mod_roomReservationRoomsManager.inc");
/** Process the deletion form */
define("MOD_ROOM_RESERVATION_RWLB_ACTION_SUBMITDELETE", 4);
/** @} */
-\r
+
/** @todo document */
class mod_roomReservationRoomWhitelistListBox
extends mod_roomReservationControl {
// only show add button if there are still some unlisted rooms
if(count(mod_roomReservationRoomsManager::getRooms()) > count($aoRooms)) {
TreeViewLine(sprintf("<%s name='mod_roomReservationRoomWhitelistListBox".
- "[action][add]' value='%s' /></form>", $GLOBALS["stdbtn"], _("Add")));
+ "[action][add]' value='%s' />", $GLOBALS["stdbtn"], _("Add")));
}
$this->showList($aoRooms);
// toolbar
printf("<tr><td class='tbbtm' colspan='%d'>", $GLOBALS["treeview_cols"]);
CheckCombo();
printf("<%s name='mod_roomReservationRoomWhitelistListBox[action]".
- "[delete]' value='%s' />", $GLOBALS["stdbtn"], _("Delete"));
+ "[delete]' value='%s' />", $GLOBALS["stdbtn"], _("Delete"));
echo "</td></tr>\n";
}
TreeViewSubtitle(_("Add"));
$this->showList($aoRooms);
TreeViewLine(sprintf("<p><%s name='mod_roomReservationRoomWhitelistList".
- "Box[action][add]' value='%s' /> <%s name='mod_roomReservationRoom".
- "WhitelistListBox[action][add]' value='%s' /></p>", $GLOBALS["stdbtn"],
+ "Box[action][add]' value='%s' /> <%s name='mod_roomReservationRoom".
+ "WhitelistListBox[action][add]' value='%s' /></p>", $GLOBALS["stdbtn"],
_("OK"), $GLOBALS["stdbtn"], _("Cancel")));
}
_c("room-reservation:rooms")));
$this->showList($aoRooms, false);
TreeViewLine(sprintf("<p><%s name='mod_roomReservationRoomWhitelistList".
- "Box[action][delete]' value='%s' /> <%s name='mod_roomReservationRoom".
- "WhitelistListBox[action][delete]' value='%s' /></p>",
+ "Box[action][delete]' value='%s' /> <%s name='mod_roomReservationRoom".
+ "WhitelistListBox[action][delete]' value='%s' /></p>",
$GLOBALS["stdbtn"], _("OK"), $GLOBALS["stdbtn"], _("Cancel")));
}
$nOid = pg_fetch_result(db_query("SELECT oid FROM ".
"rooms WHERE name = $1", $o->getName()), 0, "oid");
$sBox = $bCheckboxes ? sprintf("<%s id='box%d' name='mod_room".
- "ReservationRoomWhitelistListBox[l][%d]' value='1'%s /><label ".
- "for='box%d'>%s%s</label>", $GLOBALS["smlchk"], $nOid, $nOid,
+ "ReservationRoomWhitelistListBox[l][%d]' value='1'%s /><label ".
+ "for='box%d'>%s%s</label>", $GLOBALS["smlchk"], $nOid, $nOid,
@$this->anPostSelection[$nOid] ? " checked='checked'" : "", $nOid,
icon("host"), $o->getName()) :
sprintf("<input type='hidden' name='mod_roomReservationRoom".
- "WhitelistListBox[l][%d]' value='1' />%s%s", $nOid, icon("host"),
+ "WhitelistListBox[l][%d]' value='1' />%s%s", $nOid, icon("host"),
$o->getName());
TreeViewLine($sBox);
}
}
}
}
-?>
\ No newline at end of file
+?>