Changeset 95
- Timestamp:
- 10/24/06 22:06:45 (2 years ago)
- Files:
-
- branches/com_mls_seatmap/eventTimes/admin.mls_seatmap.html.php (modified) (36 diffs)
- branches/com_mls_seatmap/eventTimes/admin.mls_seatmap.php (modified) (18 diffs)
- branches/com_mls_seatmap/eventTimes/comupgrade.class.php (deleted)
- branches/com_mls_seatmap/eventTimes/images/mos_gel_mls.png (added)
- branches/com_mls_seatmap/eventTimes/install (deleted)
- branches/com_mls_seatmap/eventTimes/install.mls_seatmap.php (modified) (2 diffs)
- branches/com_mls_seatmap/eventTimes/lang/english.php (modified) (10 diffs)
- branches/com_mls_seatmap/eventTimes/lang/german.php (modified) (11 diffs)
- branches/com_mls_seatmap/eventTimes/mls_seatmap.ajax.js (deleted)
- branches/com_mls_seatmap/eventTimes/mls_seatmap.ajax.php (deleted)
- branches/com_mls_seatmap/eventTimes/mls_seatmap.class.php (modified) (5 diffs)
- branches/com_mls_seatmap/eventTimes/mls_seatmap.config.php (modified) (1 diff)
- branches/com_mls_seatmap/eventTimes/mls_seatmap.controls.js (deleted)
- branches/com_mls_seatmap/eventTimes/mls_seatmap.html.php (modified) (15 diffs)
- branches/com_mls_seatmap/eventTimes/mls_seatmap.php (modified) (16 diffs)
- branches/com_mls_seatmap/eventTimes/mls_seatmap.xml (modified) (4 diffs)
- branches/com_mls_seatmap/eventTimes/toolbar.mls_seatmap.html.php (modified) (5 diffs)
- branches/com_mls_seatmap/eventTimes/toolbar.mls_seatmap.php (modified) (2 diffs)
- branches/com_mls_seatmap/eventTimes/version (modified) (1 diff)
- branches/com_mls_seatmap/eventTimes/versions.php (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/com_mls_seatmap/eventTimes/admin.mls_seatmap.html.php
r89 r95 5 5 class HTML_MLS_seatmap { 6 6 function printFooter() { 7 global $option, $mosConfig_absolute_path, $database; 8 $versionTable = "#__" . substr($option,4) . "_version"; 9 $database->setQuery( "SELECT `version`,`date` FROM `".$versionTable."` LIMIT 1" ); 10 $database->loadObject($currentVersion); 7 global $option, $mosConfig_absolute_path; 11 8 ?> 12 9 <table width="100%" border="0"> … … 16 13 <tr> 17 14 <td align="center" style="background-color: #F5F5F5; border: 1px solid #D5D5D5"> 18 <a href="http://www.mylansite.org" target="_top">myLANsite Seatmap Component for Joomla <?=$currentVersion->version;?></a> (com_mls_seatmap)<br>19 © 2005 - 2006 Samuel Suter <<a href="mailto:samuel.suter@mylansite.org">samuel.suter@gmylansite.org</a>><br>15 <a href="http://www.mylansite.org" target="_top">myLANsite Seatmap Component for Mambo <?=file_get_contents($mosConfig_absolute_path."/administrator/components/".$option."/curr_version");?></a> (com_mls_seatmap)<br> 16 © 2005 Samuel Suter <<a href="mailto:samuel.suter@gmx.ch">samuel.suter@gmx.ch</a>><br> 20 17 This is Free Software released under the GNU/GPL License. 21 18 </td> … … 88 85 ?> 89 86 <form action="index2.php" method="post" name="adminForm"> 90 <table class="adminheading"> 87 <table cellpadding="4" cellspacing="0" border="0" width="100%"> 88 <tr> 89 <td width="100%" class="sectionname"><img src="components/<?=$option;?>/images/mos_gel_mls.png" width="250" height="67" align="middle" /><?=$l->m("seatmap_element_categories"); ?></td> 90 <td nowrap="nowrap"><?=$l->m("num_display","general"); ?></td> 91 <td> <?php echo $pageNav->writeLimitBox(); ?> </td> 92 </tr> 93 </table> 94 <table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist"> 91 95 <tr> 92 <th>myLANsite Seatmap: <?=$l->m("seatmap_element_categories"); ?></th> 93 </tr> 94 </table> 95 <table class="adminlist"> 96 <tr> 97 <th width="5">#</th> 98 <th width="20"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows); ?>);" /></th> 96 <th align="center" width="20">#</th> 97 <th nowrap="nowrap" width="20"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows); ?>);" /></th> 99 98 <th class="title"><?=$l->m("name");?></th> 100 <th width="10%"><?=$l->m("seat");?></th>101 <th width="10%"><?=$l->m("show_short");?></th>99 <th class="title"><?=$l->m("description");?></th> 100 <th align="center" width="10%"><?=$l->m("seat");?></th> 102 101 </tr> 103 102 <?php … … 106 105 $row = $rows[$i]; 107 106 $img = $row->is_seat ? "tick.png" : "publish_x.png"; 108 $img_show = $row->show ? "tick.png" : "publish_x.png";109 107 ?> 110 108 <tr class="<?php echo "row$k"; ?>"> 111 <td align="center"><?php echo $i+1+$pageNav->limitstart; ?></td>112 <td >109 <td width="20" align="center"><?php echo $i+1+$pageNav->limitstart; ?></td> 110 <td width="20"> 113 111 <input type="checkbox" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row->id; ?>" onclick="isChecked(this.checked);" /> 114 112 </td> 115 113 <td><a href="#edit" onclick="return listItemTask('cb<?php echo $i;?>','edit')"><?php echo $row->name; ?></a></td> 114 <td><?php echo $row->description; ?></td> 116 115 <td align="center"><img src="images/<?php echo $img;?>" width="12" height="12" border="0" alt="<?php echo $task_pub;?>" /></td> 117 <td align="center"><img src="images/<?php echo $img_show;?>" width="12" height="12" border="0" /></td>118 116 </tr> 119 117 <?php … … 121 119 } 122 120 ?> 123 </table> 124 <?php echo $pageNav->getListFooter(); ?> 121 <tr> 122 <th align="center" colspan="5"> <?php echo $pageNav->writePagesLinks(); ?></th> 123 </tr> 124 <tr> 125 <td align="center" colspan="5"> <?php echo $pageNav->writePagesCounter(); ?></td> 126 </tr> 127 </table> 125 128 <input type="hidden" name="option" value="<?php echo $option; ?>" /> 126 129 <input type="hidden" name="act" value="<?php echo $act; ?>" /> … … 137 140 ?> 138 141 <form action="index2.php" method="POST" name="adminForm"> 139 <table c lass="adminheading">140 <tr>141 <th>myLANsite Seatmap: <?php echo $row->id ? $l->m("edit_element_category") : $l->m("add_element_category");?></th>142 </tr>143 </table> 144 <table c lass="adminform">145 <tr> 146 <td width="20%" valign="top"align="right"><?=$l->m("name") ?>:</td>147 <td width=" 80%"><input class="text_area" type="text" name="name" size="50" maxlength="255" value="<?php echo $row->name; ?>" /></td>148 </tr> 149 <tr> 150 <td valign="top" align="right"><?=$l->m("is_seat") ?>:</td>151 <td ><?php echo $lists["is_seat"]; ?></td>152 </tr> 153 <tr> 154 <td valign="top" align="right"><?=$l->m("is_delete") ?>:</td>155 <td ><?php echo $lists["is_delete"]; ?></td>156 </tr> 157 <tr> 158 <td valign="top" align="right"><?=$l->m("show") ?>:</td>159 <td ><?php echo $lists["show"]; ?></td>142 <table cellpadding="4" cellspacing="0" border="0" width="100%"> 143 <tr> 144 <td width="100%" class="sectionname"><img src="components/<?=$option;?>/images/mos_gel_mls.png" width="250" height="67" align="middle" /><?php echo $row->id ? $l->m("edit_element_categors") : $l->m("add_element_category");?></td> 145 </tr> 146 </table> 147 <table cellpadding="4" cellspacing="1" border="0" width="100%" class="adminform"> 148 <tr> 149 <td width="20%" align="right"><?=$l->m("name") ?>:</td> 150 <td width="20%"><input class="inputbox" type="text" name="name" size="50" maxlength="255" value="<?php echo $row->name; ?>" /></td> 151 </tr> 152 <tr> 153 <td width="20%" align="right"><?=$l->m("description") ?>:</td> 154 <td width="20%"><input class="inputbox" type="text" name="description" size="50" maxlength="255" value="<?php echo $row->description; ?>" /></td> 155 </tr> 156 <tr> 157 <td width="20%" align="right"><?=$l->m("is_seat") ?>:</td> 158 <td width="20%"><?php echo $lists["is_seat"]; ?></td> 159 </tr> 160 <tr> 161 <td width="20%" align="right"><?=$l->m("is_delete") ?>:</td> 162 <td width="20%"><?php echo $lists["is_delete"]; ?></td> 160 163 </tr> 161 164 </table> … … 169 172 } 170 173 171 /** Rooms */ 172 function copyRoom( $cid, $eventList, $rooms, $option, $act ) { 173 global $l; 174 $l->setBlock("rooms"); 175 ?> 176 <script language="javascript" type="text/javascript"> 177 function submitbutton(pressbutton) { 178 var form = document.adminForm; 179 if (pressbutton == 'cancel') { 180 submitform( pressbutton ); 181 return; 182 } 183 184 // do field validation 185 if (!getSelectedValue( 'adminForm', 'eventid' )) { 186 alert( '<?php echo $l->m("err_select_event","general"); ?>' ); 187 } else { 188 submitform( pressbutton ); 189 } 190 } 191 </script> 192 193 <form action="index2.php" method="post" name="adminForm"> 194 <table class="adminheading"> 195 <tr> 196 <th>myLANsite Seatmap: <?php echo $l->m("copy_rooms");?></th> 197 </tr> 198 </table> 199 <table class="adminform"> 200 <tr> 201 <td align="left" valign="top" width="40%"> 202 <strong><?php echo $l->m("copy_to_event"); ?>:</strong> 203 <br /> 204 <?php echo $eventList; ?> 205 <br /><br /> 206 </td> 207 <td align="left" valign="top"> 208 <strong><?php echo $l->m("rooms_being_copied"); ?>:</strong> 209 <br /> 210 <?php 211 echo "<ol>"; 212 foreach ( $rooms as $room ) { 213 echo "<li>". $room->eventname ." // <b>". $room->roomname ."</b></li>"; 214 } 215 echo "</ol>"; 216 ?> 217 </td> 218 </tr> 219 </table> 220 <input type="hidden" name="option" value="<?php echo $option; ?>" /> 221 <input type="hidden" name="act" value="<?php echo $act; ?>" /> 222 <input type="hidden" name="task" value="" /> 223 <?php 224 foreach ($cid as $id) { 225 echo "\n<input type=\"hidden\" name=\"cid[]\" value=\"$id\" />"; 226 } 227 ?> 228 </form> 229 <?php 230 HTML_MLS_seatmap::printFooter($option); 231 } 232 174 /** ROOMS */ 233 175 function listRooms(&$rows, &$pageNav, $search, $event_select, $option, $act) { 234 176 global $l; … … 236 178 ?> 237 179 <form action="index2.php" method="post" name="adminForm"> 238 <table class="adminheading"> 239 <tr> 240 <th>myLANsite Seatmap: <?=$l->m("seatmap_rooms"); ?></th> 180 <table cellpadding="4" cellspacing="0" border="0" width="100%"> 181 <tr> 182 <td width="100%" class="sectionname"><img src="components/<?=$option;?>/images/mos_gel_mls.png" width="250" height="67" align="middle" /><?=$l->m("seatmap_rooms"); ?></td> 183 <td nowrap="nowrap"><?=$l->m("num_display","general"); ?></td> 184 <td> <?php echo $pageNav->writeLimitBox(); ?> </td> 241 185 <td><?=$l->m("event")?>:</td> 242 186 <td> <?php echo $event_select; ?> </td> 243 187 <td><?=$l->m("search","general"); ?>:</td> 244 <td><input type="text" name="search" value="<?php echo $search;?>" class=" text_area" onChange="document.adminForm.submit();" /></td>245 </tr> 246 </table> 247 <table c lass="adminlist">188 <td><input type="text" name="search" value="<?php echo $search;?>" class="inputbox" onChange="document.adminForm.submit();" /></td> 189 </tr> 190 </table> 191 <table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist"> 248 192 <tr> 249 <th width=" 5">#</th>250 <th width="20"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows); ?>);" /></th>193 <th width="20" align="center">#</th> 194 <th nowrap="nowrap" width="20"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows); ?>);" /></th> 251 195 <th class="title"><?=$l->m("event");?></th> 252 196 <th class="title"><?=$l->m("name");?></th> 253 197 <th class="title"><?=$l->m("description");?></th> 254 <th ><?=$l->m("rows");?></th>255 <th ><?=$l->m("cols");?></th>256 <th width="10%"><?=$l->m("published","general");?></th>257 <th width="10%"> </th>198 <th align="center"><?=$l->m("rows");?></th> 199 <th align="center"><?=$l->m("cols");?></th> 200 <th align="center" width="10%"><?=$l->m("published","general");?></th> 201 <th align="center" width="10%"> </th> 258 202 </tr> 259 203 <?php … … 265 209 ?> 266 210 <tr class="<?php echo "row$k"; ?>"> 267 <td width=" 5" align="center"><?php echo $i+1+$pageNav->limitstart; ?></td>268 <td >211 <td width="20" align="center"><?php echo $i+1+$pageNav->limitstart; ?></td> 212 <td width="20"> 269 213 <input type="checkbox" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row->id; ?>" onclick="isChecked(this.checked);" /> 270 214 </td> … … 281 225 } 282 226 ?> 283 </table> 284 <?php echo $pageNav->getListFooter(); ?> 227 <tr> 228 <th align="center" colspan="9"> <?php echo $pageNav->writePagesLinks(); ?></th> 229 </tr> 230 <tr> 231 <td align="center" colspan="9"> <?php echo $pageNav->writePagesCounter(); ?></td> 232 </tr> 233 </table> 285 234 <input type="hidden" name="option" value="<?php echo $option; ?>" /> 286 235 <input type="hidden" name="act" value="<?php echo $act; ?>" /> … … 297 246 ?> 298 247 <form action="index2.php" method="POST" name="adminForm"> 299 <table c lass="adminheading">300 <tr>301 <th>myLANsite Seatmap: <?php echo $row->id ? $l->m("edit_room") : $l->m("add_room");?></th>302 </tr>303 </table> 304 <table c lass="adminform">305 <tr> 306 <td width="20%" valign="top"align="right"><?=$l->m("event") ?>:</td>307 <td width=" 80%"><?php echo $lists["eventid"]; ?></td>308 </tr> 309 <tr> 310 <td valign="top" align="right"><?=$l->m("name") ?>:</td>311 <td ><input class="text_area" type="text" name="name" size="50" maxlength="255" value="<?php echo $row->name; ?>" /></td>312 </tr> 313 <tr> 314 <td valign="top" align="right"><?=$l->m("description") ?>:</td>315 <td ><input class="text_area" type="text" name="description" size="50" maxlength="255" value="<?php echo $row->description; ?>" /></td>316 </tr> 317 <tr> 318 <td valign="top" align="right"><?=$l->m("rows") ?>:</td>319 <td ><input class="text_area" type="text" name="rows" size="5" maxlength="5" value="<?php echo $row->rows; ?>" /></td>320 </tr> 321 <tr> 322 <td valign="top" align="right"><?=$l->m("cols") ?>:</td>323 <td ><input class="text_area" type="text" name="cols" size="5" maxlength="5" value="<?php echo $row->cols; ?>" /></td>324 </tr> 325 <tr> 326 <td valign="top" align="right"><?=$l->m("published","general") ?>:</td>327 <td ><?php echo $lists["published"]; ?></td>248 <table cellpadding="4" cellspacing="0" border="0" width="100%"> 249 <tr> 250 <td width="100%" class="sectionname"><img src="components/<?=$option;?>/images/mos_gel_mls.png" width="250" height="67" align="middle" /><?php echo $row->id ? $l->m("edit_room") : $l->m("add_room");?></td> 251 </tr> 252 </table> 253 <table cellpadding="4" cellspacing="1" border="0" width="100%" class="adminform"> 254 <tr> 255 <td width="20%" align="right"><?=$l->m("event") ?>:</td> 256 <td width="20%"><?php echo $lists["eventid"]; ?></td> 257 </tr> 258 <tr> 259 <td width="20%" align="right"><?=$l->m("name") ?>:</td> 260 <td width="20%"><input class="inputbox" type="text" name="name" size="50" maxlength="255" value="<?php echo $row->name; ?>" /></td> 261 </tr> 262 <tr> 263 <td width="20%" align="right"><?=$l->m("description") ?>:</td> 264 <td width="20%"><input class="inputbox" type="text" name="description" size="50" maxlength="255" value="<?php echo $row->description; ?>" /></td> 265 </tr> 266 <tr> 267 <td width="20%" align="right"><?=$l->m("rows") ?>:</td> 268 <td width="20%"><input class="inputbox" type="text" name="rows" size="5" maxlength="5" value="<?php echo $row->rows; ?>" /></td> 269 </tr> 270 <tr> 271 <td width="20%" align="right"><?=$l->m("cols") ?>:</td> 272 <td width="20%"><input class="inputbox" type="text" name="cols" size="5" maxlength="5" value="<?php echo $row->cols; ?>" /></td> 273 </tr> 274 <tr> 275 <td width="20%" align="right"><?=$l->m("published","general") ?>:</td> 276 <td width="20%"><?php echo $lists["published"]; ?></td> 328 277 </tr> 329 278 </table> … … 337 286 } 338 287 339 /** E lements*/288 /** ELEMENTS */ 340 289 function listElements(&$rows, &$pageNav, $search, $category_select, $option, $act) { 341 290 global $l, $mosConfig_live_site; … … 344 293 ?> 345 294 <form action="index2.php" method="post" name="adminForm"> 346 <table class="adminheading"> 347 <tr> 348 <th>myLANsite Seatmap: <?=$l->m("seatmap_elements"); ?></th> 295 <table cellpadding="4" cellspacing="0" border="0" width="100%"> 296 <tr> 297 <td width="100%" class="sectionname"><img src="components/<?=$option;?>/images/mos_gel_mls.png" width="250" height="67" align="middle" /><?=$l->m("seatmap_elements"); ?></td> 298 <td nowrap="nowrap"><?=$l->m("num_display","general"); ?></td> 299 <td> <?php echo $pageNav->writeLimitBox(); ?> </td> 349 300 <td><?=$l->m("category")?>:</td> 350 301 <td> <?php echo $category_select; ?> </td> 351 302 <td><?=$l->m("search","general"); ?>:</td> 352 <td><input type="text" name="search" value="<?php echo $search;?>" class=" text_area" onChange="document.adminForm.submit();" /></td>353 </tr> 354 </table> 355 <table c lass="adminlist">303 <td><input type="text" name="search" value="<?php echo $search;?>" class="inputbox" onChange="document.adminForm.submit();" /></td> 304 </tr> 305 </table> 306 <table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist"> 356 307 <tr> 357 <th width=" 5">#</th>358 <th width="20" > </th>359 <th width="20"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows); ?>);" /></th>308 <th width="20" align="center">#</th> 309 <th width="20" align="center"> </th> 310 <th nowrap="nowrap" width="20"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows); ?>);" /></th> 360 311 <th class="title"><?=$l->m("name");?></th> 361 312 <th class="title"><?=$l->m("category");?></th> 362 <th width="80"><?=$l->m("access");?></th>363 <th width="10%"><?=$l->m("free");?></th>364 <th width="10%"><?=$l->m("reserved");?></th>365 <th width="10%"><?=$l->m("occupied");?></th>313 <th align="center" width="80"><?=$l->m("access");?></th> 314 <th align="center" width="10%"><?=$l->m("free");?></th> 315 <th align="center" width="10%"><?=$l->m("reserved");?></th> 316 <th align="center" width="10%"><?=$l->m("occupied");?></th> 366 317 </tr> 367 318 <?php … … 374 325 ?> 375 326 <tr class="<?php echo "row$k"; ?>"> 376 <td align="center"><?php echo $i+1+$pageNav->limitstart; ?></td>377 <td >327 <td width="20" align="center"><?php echo $i+1+$pageNav->limitstart; ?></td> 328 <td width="20"> 378 329 <input type="checkbox" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row->id; ?>" onclick="isChecked(this.checked);" /> 379 330 </td> 380 <td align="center"><img src="<?=$imgbase;?><?=$row->id;?>_0.png" /></td>331 <td width="20" align="center"><img src="<?=$imgbase;?><?=$row->id;?>_0.png" /></td> 381 332 <td><a href="#edit" onclick="return listItemTask('cb<?php echo $i;?>','edit')"><?php echo $row->name; ?></a></td> 382 333 <td><?php echo $row->categoryname; ?></td> … … 397 348 } 398 349 ?> 399 </table> 400 <?php echo $pageNav->getListFooter(); ?> 350 <tr> 351 <th align="center" colspan="9"> <?php echo $pageNav->writePagesLinks(); ?></th> 352 </tr> 353 <tr> 354 <td align="center" colspan="9"> <?php echo $pageNav->writePagesCounter(); ?></td> 355 </tr> 356 </table> 401 357 <input type="hidden" name="option" value="<?php echo $option; ?>" /> 402 358 <input type="hidden" name="act" value="<?php echo $act; ?>" /> … … 414 370 ?> 415 371 <form action="index2.php" method="POST" name="adminForm" enctype="multipart/form-data"> 416 <table c lass="adminheading">417 <tr>418 <th>myLANsite Seatmap: <?php echo $row->id ? $l->m("edit_element") : $l->m("add_element");?></th>419 </tr>420 </table> 421 <table c lass="adminform">422 <tr> 423 <td width="20%" valign="top"align="right"><?=$l->m("name") ?>:</td>372 <table cellpadding="4" cellspacing="0" border="0" width="100%"> 373 <tr> 374 <td width="100%" class="sectionname"><img src="components/<?=$option;?>/images/mos_gel_mls.png" width="250" height="67" align="middle" /><?php echo $row->id ? $l->m("edit_element") : $l->m("add_element");?></td> 375 </tr> 376 </table> 377 <table cellpadding="4" cellspacing="1" border="0" width="100%" class="adminform"> 378 <tr> 379 <td width="20%" align="right"><?=$l->m("name") ?>:</td> 424 380 <td width="80%"><input class="inputbox" type="text" name="name" size="50" maxlength="255" value="<?php echo $row->name; ?>" /></td> 425 381 </tr> 426 382 <tr> 427 <td valign="top"align="right"><?=$l->m("category") ?>:</td>383 <td align="right"><?=$l->m("category") ?>:</td> 428 384 <td><?php echo $lists["categoryid"]; ?></td> 429 385 </tr> 430 386 <tr> 431 <td valign="top"align="right"><?=$l->m("access") ?>:</td>387 <td align="right"><?=$l->m("access") ?>:</td> 432 388 <td><?php echo $lists["access"]; ?></td> 433 389 </tr> 434 390 <tr> 435 <td valign="top"align="right"><?=$l->m("is_free") ?>:</td>391 <td align="right"><?=$l->m("is_free") ?>:</td> 436 392 <td><?php echo $lists["is_free"]; ?></td> 437 393 </tr> 438 394 <tr> 439 <td valign="top"align="right"><?=$l->m("is_reserved") ?>:</td>395 <td align="right"><?=$l->m("is_reserved") ?>:</td> 440 396 <td><?php echo $lists["is_reserved"]; ?></td> 441 397 </tr> 442 398 <tr> 443 <td valign="top"align="right"><?=$l->m("is_occupied") ?>:</td>399 <td align="right"><?=$l->m("is_occupied") ?>:</td> 444 400 <td><?php echo $lists["is_occupied"]; ?></td> 445 401 </tr> … … 448 404 </tr> 449 405 <tr> 450 <td valign="top"align="right">0°:</td>406 <td align="right">0°:</td> 451 407 <td><img src="<?=$imgbase;?><?=$row->id;?>_0.png" /></td> 452 408 </tr> 453 409 <tr> 454 <td valign="top"align="right">90°:</td>410 <td align="right">90°:</td> 455 411 <td><img src="<?=$imgbase;?><?=$row->id;?>_90.png" /></td> 456 412 </tr> 457 413 <tr> 458 <td valign="top"align="right">180°:</td>414 <td align="right">180°:</td> 459 415 <td><img src="<?=$imgbase;?><?=$row->id;?>_180.png" /></td> 460 416 </tr> 461 417 <tr> 462 <td valign="top"align="right">270°:</td>418 <td align="right">270°:</td> 463 419 <td><img src="<?=$imgbase;?><?=$row->id;?>_270.png" /></td> 464 420 </tr> 465 421 <tr> 466 <td valign="top"align="right"><?=$l->m("upload_image") ?>:</td>422 <td align="right"><?=$l->m("upload_image") ?>:</td> 467 423 <td><input type="file" name="upload_image" class="inputbox" /></td> 468 424 </tr> … … 471 427 <input type="hidden" name="act" value="<?php echo $act; ?>" /> 472 428 <input type="hidden" name="id" value="<?php echo $row->id; ?>" /> 473 <input type="hidden" name="placeable" value="<?php echo $row->placeable; ?>" />474 429 <input type="hidden" name="task" value="" /> 475 430 </form> … … 478 433 } 479 434 480 /** Map **/481 435 function editMap($room, $event, $elements, $imgbase, $option, $act) { 482 global $l, $delimg , $mosConfig_live_site;436 global $l, $delimg; 483 437 $l->setBlock("rooms"); 484 438 ?> 485 439 <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div> 486 440 <script language="Javascript" src="../includes/js/overlib_mini.js"></script> 487 <script language="Javascript" src="components/com_mls_seatmap/mls_seatmap.ajax.js"></script> 488 <script language="Javascript" src="components/com_mls_seatmap/mls_seatmap.controls.js"></script> 441 <script language="Javascript" src="../components/com_mls_seatmap/mls_seatmap.js"></script> 489 442 <script language="JavaScript"> 490 AJAX_seatmap_vars('<?php echo $imgbase;?>', '<?php echo $mosConfig_live_site."/administrator/components/com_mls_seatmap/mls_seatmap.ajax.php"?>');443 set_vars('<?=$imgbase;?>','<?=$room->rows;?>','<?=$room->cols;?>','<?=$delimg;?>'); 491 444 </script> 492 445 <form action="index2.php" method="POST" name="adminForm"> 493 <table class="adminheading"> 494 <tr> 495 <th>myLANsite Seatmap: <?=$l->m("edit_map"); ?> » <?=$event->name; ?> » <?=$room->name; ?></th> 496 </tr> 497 <table width="100%"> 498 <tr> 499 <td width="60%" valign="top" height="100%"> 500 <table class="adminform"> 501 <tr> 502 <th><?=$l->m("map"); ?></th> 503 </tr> 504 <tr> 505 <td> 506 <table border="0" cellspacing="0" cellpadding="0" style="spacing: 0px; padding: 0px;"> 446 <table cellpadding="4" cellspacing="0" border="0" width="100%"> 447 <tr> 448 <td width="100%" class="sectionname"><img src="components/<?=$option;?>/images/mos_gel_mls.png" width="250" height="67" align="middle" /><?=$l->m("edit_map"); ?> » <?=$event->name; ?> » <?=$room->name; ?></td> 449 </tr> 450 </table> 451 <table width="100%" border="0" class="adminform"> 452 <tr> 453 <td width="60%" valign="top" rowspan="4" style="border-right: 1px solid black;"> 454 <table border="0" cellspacing="1" cellpadding="0"> 507 455 <tr> 508 <td style="spacing: 0px; padding: 0px;"></td>456 <td style="spacing: 1px; padding: 0px;"></td> 509 457 <?php for($col = 0; $col < $room->cols; $col++) { ?> 510 <td align="center" style="spacing: 0px; padding: 0px;"><small><?=$col?></small></td>458 <td align="center" style="spacing: 1px; padding: 0px;"><small><?=$col?></small></td> 511 459 <?php } ?> 512 460 </tr> 513 461 <?php for($row = 0; $row < $room->rows; $row++) { ?> 514 462 <tr> 515 <td align="right" style="spacing: 0px; padding: 0px;"><small><?=$row?></small></td> 516 <?php for($col = 0; $col < $room->cols; $col++) { 517 $key = $row . "_" . $col; 518 if(@$elements[$key]) { 519 $image = $elements[$key]["image"]; 520 $value = $elements[$key]["elementid"] . "_" . $elements[$key]["rotation"]; 521 } else { 522 $image = $imgbase . $delimg . "_0.png"; 523 $value = $delimg . "_0"; 524 } 525 ?> 526 <td style="spacing: 0px; padding: 0px;"><img name="image_<?=$row?>_<?=$col?>" src="<?=$image; ?>" id="image_<?=$row;?>_<?=$col;?>" style="border: 1px solid white;" OnClick="clickSquare(this,<?=$row?>,<?=$col?>);"></td> 463 <td align="right" style="spacing: 1px; padding: 0px;"><small><?=$row?></small></td> 464 <?php for($col = 0; $col < $room->cols; $col++) { ?> 465 <?php 466 $key = $row . "_" . $col; 467 if($elements[$key]) { 468 $image = $elements[$key]["image"]; 469 $value = $elements[$key]["elementid"] . "_" . $elements[$key]["rotation"]; 470 } else { 471 $image = $imgbase . $delimg . "_0.png"; 472 $value = $delimg . "_0"; 473 } 474 ?> 475 <td style="spacing: 1px; padding: 0px;"><img name="image_<?=$row?>_<?=$col?>" src="<?=$image; ?>" id="image_<?=$row;?>_<?=$col;?>" border="0" OnClick="clickSquare(this,<?=$row?>,<?=$col?>);"><input type="hidden" name="square_<?=$row?>_<?=$col?>" value="<?=$value?>"></td> 527 476 <?php } ?> 528 477 </tr> 529 478 <?php } ?>&nbs