expanded tabs
[iserv-mod-room-reservation.git] / inc / mod_roomReservationRoomWhitelistListBox.inc
index 4712666..922cfb2 100644 (file)
@@ -1,30 +1,30 @@
 <?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");
@@ -50,7 +50,7 @@ define("MOD_ROOM_RESERVATION_RWLB_ACTION_DELETE", 3);
 /** Process the deletion form */
 define("MOD_ROOM_RESERVATION_RWLB_ACTION_SUBMITDELETE", 4);
 /** @} */
-\r
+
 /** @todo document */
 class mod_roomReservationRoomWhitelistListBox 
   extends mod_roomReservationControl {
@@ -144,7 +144,7 @@ class mod_roomReservationRoomWhitelistListBox
     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";
   }
   
@@ -159,8 +159,8 @@ class mod_roomReservationRoomWhitelistListBox
     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")));
   }
   
@@ -180,8 +180,8 @@ class mod_roomReservationRoomWhitelistListBox
       _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")));
   }
   
@@ -197,12 +197,12 @@ class mod_roomReservationRoomWhitelistListBox
         $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);
       }
This page took 0.027999 seconds and 4 git commands to generate.