Changeset 70
- Timestamp:
- 10/23/06 12:43:07 (2 years ago)
- Files:
-
- trunk/com_mls_seatmap/admin.mls_seatmap.html.php (modified) (36 diffs)
- trunk/com_mls_seatmap/admin.mls_seatmap.php (modified) (18 diffs)
- trunk/com_mls_seatmap/comupgrade.class.php (added)
- trunk/com_mls_seatmap/images/mos_gel_mls.png (deleted)
- trunk/com_mls_seatmap/images/room1.png (added)
- trunk/com_mls_seatmap/install (added)
- trunk/com_mls_seatmap/install.mls_seatmap.php (modified) (2 diffs)
- trunk/com_mls_seatmap/install/comupgrade.xml (added)
- trunk/com_mls_seatmap/install/upgrade_0.1.0.php (added)
- trunk/com_mls_seatmap/lang/english.php (modified) (9 diffs)
- trunk/com_mls_seatmap/lang/german.php (modified) (11 diffs)
- trunk/com_mls_seatmap/mls_seatmap.ajax.js (added)
- trunk/com_mls_seatmap/mls_seatmap.ajax.php (added)
- trunk/com_mls_seatmap/mls_seatmap.class.php (modified) (4 diffs)
- trunk/com_mls_seatmap/mls_seatmap.config.php (added)
- trunk/com_mls_seatmap/mls_seatmap.controls.js (added)
- trunk/com_mls_seatmap/mls_seatmap.html.php (modified) (10 diffs)
- trunk/com_mls_seatmap/mls_seatmap.php (modified) (14 diffs)
- trunk/com_mls_seatmap/mls_seatmap.xml (modified) (4 diffs)
- trunk/com_mls_seatmap/toolbar.mls_seatmap.html.php (modified) (5 diffs)
- trunk/com_mls_seatmap/toolbar.mls_seatmap.php (modified) (2 diffs)
- trunk/com_mls_seatmap/version (modified) (1 diff)
- trunk/com_mls_seatmap/versions.php (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/com_mls_seatmap/admin.mls_seatmap.html.php
r62 r70 5 5 class HTML_MLS_seatmap { 6 6 function printFooter() { 7 global $option, $mosConfig_absolute_path; 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); 8 11 ?> 9 12 <table width="100%" border="0"> … … 13 16 <tr> 14 17 <td align="center" style="background-color: #F5F5F5; border: 1px solid #D5D5D5"> 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>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> 17 20 This is Free Software released under the GNU/GPL License. 18 21 </td> … … 85 88 ?> 86 89 <form action="index2.php" method="post" name="adminForm"> 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"> 95 <tr> 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> 90 <table class="adminheading"> 91 <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> 98 99 <th class="title"><?=$l->m("name");?></th> 99 <th class="title"><?=$l->m("description");?></th>100 <th align="center" width="10%"><?=$l->m("seat");?></th>100 <th width="10%"><?=$l->m("seat");?></th> 101 <th width="10%"><?=$l->m("show_short");?></th> 101 102 </tr> 102 103 <?php … … 105 106 $row = $rows[$i]; 106 107 $img = $row->is_seat ? "tick.png" : "publish_x.png"; 108 $img_show = $row->show ? "tick.png" : "publish_x.png"; 107 109 ?> 108 110 <tr class="<?php echo "row$k"; ?>"> 109 <td width="20"align="center"><?php echo $i+1+$pageNav->limitstart; ?></td>110 <td width="20">111 <td align="center"><?php echo $i+1+$pageNav->limitstart; ?></td> 112 <td> 111 113 <input type="checkbox" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row->id; ?>" onclick="isChecked(this.checked);" /> 112 114 </td> 113 115 <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>115 116 <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> 116 118 </tr> 117 119 <?php … … 119 121 } 120 122 ?> 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> 123 </table> 124 <?php echo $pageNav->getListFooter(); ?> 128 125 <input type="hidden" name="option" value="<?php echo $option; ?>" /> 129 126 <input type="hidden" name="act" value="<?php echo $act; ?>" /> … … 140 137 ?> 141 138 <form action="index2.php" method="POST" name="adminForm"> 142 <table c ellpadding="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 c ellpadding="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>139 <table class="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 class="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> 163 160 </tr> 164 161 </table> … … 172 169 } 173 170 174 /** ROOMS */ 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 175 233 function listRooms(&$rows, &$pageNav, $search, $event_select, $option, $act) { 176 234 global $l; … … 178 236 ?> 179 237 <form action="index2.php" method="post" name="adminForm"> 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> 238 <table class="adminheading"> 239 <tr> 240 <th>myLANsite Seatmap: <?=$l->m("seatmap_rooms"); ?></th> 185 241 <td><?=$l->m("event")?>:</td> 186 242 <td> <?php echo $event_select; ?> </td> 187 243 <td><?=$l->m("search","general"); ?>:</td> 188 <td><input type="text" name="search" value="<?php echo $search;?>" class=" inputbox" onChange="document.adminForm.submit();" /></td>189 </tr> 190 </table> 191 <table c ellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist">192 <tr> 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>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 class="adminlist"> 248 <tr> 249 <th width="5">#</th> 250 <th width="20"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows); ?>);" /></th> 195 251 <th class="title"><?=$l->m("event");?></th> 196 252 <th class="title"><?=$l->m("name");?></th> 197 253 <th class="title"><?=$l->m("description");?></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>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> 202 258 </tr> 203 259 <?php … … 209 265 ?> 210 266 <tr class="<?php echo "row$k"; ?>"> 211 <td width=" 20" align="center"><?php echo $i+1+$pageNav->limitstart; ?></td>212 <td width="20">267 <td width="5" align="center"><?php echo $i+1+$pageNav->limitstart; ?></td> 268 <td> 213 269 <input type="checkbox" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row->id; ?>" onclick="isChecked(this.checked);" /> 214 270 </td> … … 225 281 } 226 282 ?> 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> 283 </table> 284 <?php echo $pageNav->getListFooter(); ?> 234 285 <input type="hidden" name="option" value="<?php echo $option; ?>" /> 235 286 <input type="hidden" name="act" value="<?php echo $act; ?>" /> … … 246 297 ?> 247 298 <form action="index2.php" method="POST" name="adminForm"> 248 <table c ellpadding="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 c ellpadding="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>299 <table class="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 class="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> 277 328 </tr> 278 329 </table> … … 286 337 } 287 338 288 /** E LEMENTS*/339 /** Elements */ 289 340 function listElements(&$rows, &$pageNav, $search, $category_select, $option, $act) { 290 341 global $l, $mosConfig_live_site; … … 293 344 ?> 294 345 <form action="index2.php" method="post" name="adminForm"> 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> 346 <table class="adminheading"> 347 <tr> 348 <th>myLANsite Seatmap: <?=$l->m("seatmap_elements"); ?></th> 300 349 <td><?=$l->m("category")?>:</td> 301 350 <td> <?php echo $category_select; ?> </td> 302 351 <td><?=$l->m("search","general"); ?>:</td> 303 <td><input type="text" name="search" value="<?php echo $search;?>" class=" inputbox" onChange="document.adminForm.submit();" /></td>304 </tr> 305 </table> 306 <table c ellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist">307 <tr> 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>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 class="adminlist"> 356 <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> 311 360 <th class="title"><?=$l->m("name");?></th> 312 361 <th class="title"><?=$l->m("category");?></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>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> 317 366 </tr> 318 367 <?php … … 325 374 ?> 326 375 <tr class="<?php echo "row$k"; ?>"> 327 <td width="20"align="center"><?php echo $i+1+$pageNav->limitstart; ?></td>328 <td width="20">376 <td align="center"><?php echo $i+1+$pageNav->limitstart; ?></td> 377 <td> 329 378 <input type="checkbox" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row->id; ?>" onclick="isChecked(this.checked);" /> 330 379 </td> 331 <td width="20"align="center"><img src="<?=$imgbase;?><?=$row->id;?>_0.png" /></td>380 <td align="center"><img src="<?=$imgbase;?><?=$row->id;?>_0.png" /></td> 332 381 <td><a href="#edit" onclick="return listItemTask('cb<?php echo $i;?>','edit')"><?php echo $row->name; ?></a></td> 333 382 <td><?php echo $row->categoryname; ?></td> … … 348 397 } 349 398 ?> 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> 399 </table> 400 <?php echo $pageNav->getListFooter(); ?> 357 401 <input type="hidden" name="option" value="<?php echo $option; ?>" /> 358 402 <input type="hidden" name="act" value="<?php echo $act; ?>" /> … … 370 414 ?> 371 415 <form action="index2.php" method="POST" name="adminForm" enctype="multipart/form-data"> 372 <table c ellpadding="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 c ellpadding="4" cellspacing="1" border="0" width="100%" class="adminform">378 <tr> 379 <td width="20%" align="right"><?=$l->m("name") ?>:</td>416 <table class="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 class="adminform"> 422 <tr> 423 <td width="20%" valign="top" align="right"><?=$l->m("name") ?>:</td> 380 424 <td width="80%"><input class="inputbox" type="text" name="name" size="50" maxlength="255" value="<?php echo $row->name; ?>" /></td> 381 425 </tr> 382 426 <tr> 383 <td align="right"><?=$l->m("category") ?>:</td>427 <td valign="top" align="right"><?=$l->m("category") ?>:</td> 384 428 <td><?php echo $lists["categoryid"]; ?></td> 385 429 </tr> 386 430 <tr> 387 <td align="right"><?=$l->m("access") ?>:</td>431 <td valign="top" align="right"><?=$l->m("access") ?>:</td> 388 432 <td><?php echo $lists["access"]; ?></td> 389 433 </tr> 390 434 <tr> 391 <td align="right"><?=$l->m("is_free") ?>:</td>435 <td valign="top" align="right"><?=$l->m("is_free") ?>:</td> 392 436 <td><?php echo $lists["is_free"]; ?></td> 393 437 </tr> 394 438 <tr> 395 <td align="right"><?=$l->m("is_reserved") ?>:</td>439 <td valign="top" align="right"><?=$l->m("is_reserved") ?>:</td> 396 440 <td><?php echo $lists["is_reserved"]; ?></td> 397 441 </tr> 398 442 <tr> 399 <td align="right"><?=$l->m("is_occupied") ?>:</td>443 <td valign="top" align="right"><?=$l->m("is_occupied") ?>:</td> 400 444 <td><?php echo $lists["is_occupied"]; ?></td> 401 445 </tr> … … 404 448 </tr> 405 449 <tr> 406 <td align="right">0°:</td>450 <td valign="top" align="right">0°:</td> 407 451 <td><img src="<?=$imgbase;?><?=$row->id;?>_0.png" /></td> 408 452 </tr> 409 453 <tr> 410 <td align="right">90°:</td>454 <td valign="top" align="right">90°:</td> 411 455 <td><img src="<?=$imgbase;?><?=$row->id;?>_90.png" /></td> 412 456 </tr> 413 457 <tr> 414 <td align="right">180°:</td>458 <td valign="top" align="right">180°:</td> 415 459 <td><img src="<?=$imgbase;?><?=$row->id;?>_180.png" /></td> 416 460 </tr> 417 461 <tr> 418 <td align="right">270°:</td>462 <td valign="top" align="right">270°:</td> 419 463 <td><img src="<?=$imgbase;?><?=$row->id;?>_270.png" /></td> 420 464 </tr> 421 465 <tr> 422 <td align="right"><?=$l->m("upload_image") ?>:</td>466 <td valign="top" align="right"><?=$l->m("upload_image") ?>:</td> 423 467 <td><input type="file" name="upload_image" class="inputbox" /></td> 424 468 </tr> … … 427 471 <input type="hidden" name="act" value="<?php echo $act; ?>" /> 428 472 <input type="hidden" name="id" value="<?php echo $row->id; ?>" /> 473 <input type="hidden" name="placeable" value="<?php echo $row->placeable; ?>" /> 429 474 <input type="hidden" name="task" value="" /> 430 475 </form> … … 433 478 } 434 479 480 /** Map **/ 435 481 function editMap($room, $event, $elements, $imgbase, $option, $act) { 436 global $l, $delimg ;482 global $l, $delimg, $mosConfig_live_site; 437 483 $l->setBlock("rooms"); 438 484 ?> 439 485 <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div> 440 486 <script language="Javascript" src="../includes/js/overlib_mini.js"></script> 441 <script language="Javascript" src="../components/com_mls_seatmap/mls_seatmap.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> 442 489 <script language="JavaScript"> 443 set_vars('<?=$imgbase;?>','<?=$room->rows;?>','<?=$room->cols;?>','<?=$delimg;?>');490 AJAX_seatmap_vars('<?php echo $imgbase;?>', '<?php echo $mosConfig_live_site."/administrator/components/com_mls_seatmap/mls_seatmap.ajax.php" ?>'); 444 491 </script> 445 492 <form action="index2.php" method="POST" name="adminForm"> 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"> 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" rowspan="5" 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;"> 455 507 <tr> 456 <td style="spacing: 1px; padding: 0px;"></td>508 <td style="spacing: 0px; padding: 0px;"></td> 457 509 <?php for($col = 0; $col < $room->cols; $col++) { ?> 458 <td align="center" style="spacing: 1px; padding: 0px;"><small><?=$col?></small></td>510 <td align="center" style="spacing: 0px; padding: 0px;"><small><?=$col?></small></td> 459 511 <?php } ?> 460 512 </tr> 461 513 <?php for($row = 0; $row < $room->rows; $row++) { ?> 462 514 <tr> 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> 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> 476 527 <?php } ?> 477 528 &nbs