Annotation of /mambo/branches/4.6/administrator/components/com_menus/admin.menus.html.php
Parent Directory
|
Revision Log
Revision 1 -
(view)
(download)
Original Path: mambo/trunk/administrator/components/com_menus/admin.menus.html.php
| 1 : | root | 1 | <?php |
| 2 : | /** | ||
| 3 : | * @version $Id: admin.menus.html.php,v 1.3 2005/10/21 17:33:55 lang3 Exp $ | ||
| 4 : | * @package Mambo | ||
| 5 : | * @subpackage Menus | ||
| 6 : | * @copyright (C) 2000 - 2005 Miro International Pty Ltd | ||
| 7 : | * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL | ||
| 8 : | * Mambo is Free Software | ||
| 9 : | */ | ||
| 10 : | |||
| 11 : | /** ensure this file is being included by a parent file */ | ||
| 12 : | defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); | ||
| 13 : | |||
| 14 : | /** | ||
| 15 : | * @package Mambo | ||
| 16 : | * @subpackage Menus | ||
| 17 : | */ | ||
| 18 : | class HTML_menusections { | ||
| 19 : | |||
| 20 : | function showMenusections( $rows, $pageNav, $search, $levellist, $menutype, $option ) { | ||
| 21 : | global $my; | ||
| 22 : | |||
| 23 : | mosCommonHTML::loadOverlib(); | ||
| 24 : | ?> | ||
| 25 : | <form action="index2.php" method="post" name="adminForm"> | ||
| 26 : | <table class="adminheading"> | ||
| 27 : | <tr> | ||
| 28 : | <th class="menus"> | ||
| 29 : | Menu Manager <small><small>[ <?php echo $menutype;?> ]</small></small> | ||
| 30 : | </th> | ||
| 31 : | <td nowrap="true"> | ||
| 32 : | Max Levels | ||
| 33 : | </td> | ||
| 34 : | <td> | ||
| 35 : | <?php echo $levellist;?> | ||
| 36 : | </td> | ||
| 37 : | <td> | ||
| 38 : | Filter: | ||
| 39 : | </td> | ||
| 40 : | <td> | ||
| 41 : | <input type="text" name="search" value="<?php echo $search;?>" class="inputbox" /> | ||
| 42 : | </td> | ||
| 43 : | </tr> | ||
| 44 : | <?php | ||
| 45 : | if ( $menutype == 'mainmenu' ) { | ||
| 46 : | ?> | ||
| 47 : | <tr> | ||
| 48 : | <td align="right" nowrap style="color: red; font-weight: normal;" colspan="5"> | ||
| 49 : | <?php echo _MAINMENU_DEL; ?> | ||
| 50 : | <br/> | ||
| 51 : | <span style="color: black;"> | ||
| 52 : | <?php echo _MAINMENU_HOME; ?> | ||
| 53 : | </span> | ||
| 54 : | </td> | ||
| 55 : | </tr> | ||
| 56 : | <?php | ||
| 57 : | } | ||
| 58 : | ?> | ||
| 59 : | </table> | ||
| 60 : | |||
| 61 : | <table class="adminlist"> | ||
| 62 : | <tr> | ||
| 63 : | <th width="20"> | ||
| 64 : | # | ||
| 65 : | </th> | ||
| 66 : | <th width="20"> | ||
| 67 : | <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows); ?>);" /> | ||
| 68 : | </th> | ||
| 69 : | <th class="title" width="40%"> | ||
| 70 : | Menu Item | ||
| 71 : | </th> | ||
| 72 : | <th width="5%"> | ||
| 73 : | Published | ||
| 74 : | </th> | ||
| 75 : | <th colspan="2" width="5%"> | ||
| 76 : | Reorder | ||
| 77 : | </th> | ||
| 78 : | <th width="2%"> | ||
| 79 : | Order | ||
| 80 : | </th> | ||
| 81 : | <th width="1%"> | ||
| 82 : | <a href="javascript: saveorder( <?php echo count( $rows )-1; ?> )"><img src="images/filesave.png" border="0" width="16" height="16" alt="Save Order" /></a> | ||
| 83 : | </th> | ||
| 84 : | <th width="10%"> | ||
| 85 : | Access | ||
| 86 : | </th> | ||
| 87 : | <th> | ||
| 88 : | Itemid | ||
| 89 : | </th> | ||
| 90 : | <th width="35%" align="left"> | ||
| 91 : | Type | ||
| 92 : | </th> | ||
| 93 : | <th> | ||
| 94 : | CID | ||
| 95 : | </th> | ||
| 96 : | </tr> | ||
| 97 : | <?php | ||
| 98 : | $k = 0; | ||
| 99 : | $i = 0; | ||
| 100 : | $n = count( $rows ); | ||
| 101 : | foreach ($rows as $row) { | ||
| 102 : | $access = mosCommonHTML::AccessProcessing( $row, $i ); | ||
| 103 : | $checked = mosCommonHTML::CheckedOutProcessing( $row, $i ); | ||
| 104 : | $published = mosCommonHTML::PublishedProcessing( $row, $i ); | ||
| 105 : | ?> | ||
| 106 : | <tr class="<?php echo "row$k"; ?>"> | ||
| 107 : | <td> | ||
| 108 : | <?php echo $i + 1 + $pageNav->limitstart;?> | ||
| 109 : | </td> | ||
| 110 : | <td> | ||
| 111 : | <?php echo $checked; ?> | ||
| 112 : | </td> | ||
| 113 : | <td nowrap="nowrap"> | ||
| 114 : | <?php | ||
| 115 : | if ( $row->checked_out && ( $row->checked_out != $my->id ) ) { | ||
| 116 : | echo $row->treename; | ||
| 117 : | } else { | ||
| 118 : | $link = 'index2.php?option=com_menus&menutype='. $row->menutype .'&task=edit&id='. $row->id . '&hidemainmenu=1'; | ||
| 119 : | ?> | ||
| 120 : | <a href="<?php echo $link; ?>"> | ||
| 121 : | <?php echo $row->treename; ?> | ||
| 122 : | </a> | ||
| 123 : | <?php | ||
| 124 : | } | ||
| 125 : | ?> | ||
| 126 : | </td> | ||
| 127 : | <td width="10%" align="center"> | ||
| 128 : | <?php echo $published;?> | ||
| 129 : | </td> | ||
| 130 : | <td> | ||
| 131 : | <?php echo $pageNav->orderUpIcon( $i ); ?> | ||
| 132 : | </td> | ||
| 133 : | <td> | ||
| 134 : | <?php echo $pageNav->orderDownIcon( $i, $n ); ?> | ||
| 135 : | </td> | ||
| 136 : | <td align="center" colspan="2"> | ||
| 137 : | <input type="text" name="order[]" size="5" value="<?php echo $row->ordering; ?>" class="text_area" style="text-align: center" /> | ||
| 138 : | </td> | ||
| 139 : | <td align="center"> | ||
| 140 : | <?php echo $access;?> | ||
| 141 : | </td> | ||
| 142 : | <td align="center"> | ||
| 143 : | <?php echo $row->id; ?> | ||
| 144 : | </td> | ||
| 145 : | <td align="left"> | ||
| 146 : | <?php | ||
| 147 : | echo mosToolTip( $row->descrip, '', 280, 'tooltip.png', $row->type, $row->edit ); | ||
| 148 : | ?> | ||
| 149 : | </td> | ||
| 150 : | <td align="center"> | ||
| 151 : | <?php echo $row->componentid; ?> | ||
| 152 : | </td> | ||
| 153 : | </tr> | ||
| 154 : | <?php | ||
| 155 : | $k = 1 - $k; | ||
| 156 : | $i++; | ||
| 157 : | } | ||
| 158 : | ?> | ||
| 159 : | </table> | ||
| 160 : | |||
| 161 : | <?php echo $pageNav->getListFooter(); ?> | ||
| 162 : | |||
| 163 : | <input type="hidden" name="option" value="<?php echo $option; ?>" /> | ||
| 164 : | <input type="hidden" name="menutype" value="<?php echo $menutype; ?>" /> | ||
| 165 : | <input type="hidden" name="task" value="" /> | ||
| 166 : | <input type="hidden" name="boxchecked" value="0" /> | ||
| 167 : | <input type="hidden" name="hidemainmenu" value="0" /> | ||
| 168 : | </form> | ||
| 169 : | <?php | ||
| 170 : | } | ||
| 171 : | |||
| 172 : | |||
| 173 : | /** | ||
| 174 : | * Displays a selection list for menu item types | ||
| 175 : | */ | ||
| 176 : | function addMenuItem( &$cid, $menutype, $option, $types_content, $types_component, $types_link, $types_other ) { | ||
| 177 : | |||
| 178 : | mosCommonHTML::loadOverlib(); | ||
| 179 : | ?> | ||
| 180 : | <form action="index2.php" method="post" name="adminForm"> | ||
| 181 : | <table class="adminheading"> | ||
| 182 : | <tr> | ||
| 183 : | <th class="menus"> | ||
| 184 : | New Menu Item | ||
| 185 : | </th> | ||
| 186 : | <td valign="bottom" nowrap style="color: red;"> | ||
| 187 : | <?php //echo _MENU_GROUP; ?> | ||
| 188 : | </td> | ||
| 189 : | </tr> | ||
| 190 : | </table> | ||
| 191 : | <style type="text/css"> | ||
| 192 : | fieldset { | ||
| 193 : | border: 1px solid #777; | ||
| 194 : | } | ||
| 195 : | legend { | ||
| 196 : | font-weight: bold; | ||
| 197 : | } | ||
| 198 : | </style> | ||
| 199 : | <table class="adminform"> | ||
| 200 : | <tr> | ||
| 201 : | <td width="50%" valign="top"> | ||
| 202 : | <fieldset> | ||
| 203 : | <legend>Content</legend> | ||
| 204 : | <table class="adminform"> | ||
| 205 : | <?php | ||
| 206 : | $k = 0; | ||
| 207 : | $count = count( $types_content ); | ||
| 208 : | for ( $i=0; $i < $count; $i++ ) { | ||
| 209 : | $row = &$types_content[$i]; | ||
| 210 : | |||
| 211 : | $link = 'index2.php?option=com_menus&menutype='. $menutype .'&task=edit&hidemainmenu=1&type='. $row->type; | ||
| 212 : | ?> | ||
| 213 : | <tr class="<?php echo "row$k"; ?>"> | ||
| 214 : | <td width="20"> | ||
| 215 : | <input type="radio" id="cb<?php echo $i;?>" name="type" value="<?php echo $row->type; ?>" onClick="isChecked(this.checked);" /> | ||
| 216 : | </td> | ||
| 217 : | <td> | ||
| 218 : | <a href="<?php echo $link; ?>"> | ||
| 219 : | <?php echo $row->name; ?> | ||
| 220 : | </a> | ||
| 221 : | </td> | ||
| 222 : | <td align="center" width="20"> | ||
| 223 : | <?php | ||
| 224 : | echo mosToolTip( $row->descrip, $row->name, 250 ); | ||
| 225 : | ?> | ||
| 226 : | </td> | ||
| 227 : | </tr> | ||
| 228 : | <?php | ||
| 229 : | $k = 1 - $k; | ||
| 230 : | } | ||
| 231 : | ?> | ||
| 232 : | </table> | ||
| 233 : | </fieldset> | ||
| 234 : | <fieldset> | ||
| 235 : | <legend>Miscellaneous</legend> | ||
| 236 : | <table class="adminform"> | ||
| 237 : | <?php | ||
| 238 : | $k = 0; | ||
| 239 : | $count = count( $types_other ); | ||
| 240 : | for ( $i=0; $i < $count; $i++ ) { | ||
| 241 : | $row = &$types_other[$i]; | ||
| 242 : | |||
| 243 : | $link = 'index2.php?option=com_menus&menutype='. $menutype .'&task=edit&type='. $row->type; | ||
| 244 : | ?> | ||
| 245 : | <tr class="<?php echo "row$k"; ?>"> | ||
| 246 : | <td width="20"> | ||
| 247 : | <input type="radio" id="cb<?php echo $i;?>" name="type" value="<?php echo $row->type; ?>" onClick="isChecked(this.checked);" /> | ||
| 248 : | </td> | ||
| 249 : | <td> | ||
| 250 : | <a href="<?php echo $link; ?>"> | ||
| 251 : | <?php echo $row->name; ?> | ||
| 252 : | </a> | ||
| 253 : | </td> | ||
| 254 : | <td align="center" width="20"> | ||
| 255 : | <?php | ||
| 256 : | echo mosToolTip( $row->descrip, $row->name, 250 ); | ||
| 257 : | ?> | ||
| 258 : | </td> | ||
| 259 : | </tr> | ||
| 260 : | <?php | ||
| 261 : | $k = 1 - $k; | ||
| 262 : | } | ||
| 263 : | ?> | ||
| 264 : | </table> | ||
| 265 : | </fieldset> | ||
| 266 : | * Note that some menu types appear in more that one grouping, but they are still the same menu type. | ||
| 267 : | </td> | ||
| 268 : | <td width="50%" valign="top"> | ||
| 269 : | <fieldset> | ||
| 270 : | <legend>Components</legend> | ||
| 271 : | <table class="adminform"> | ||
| 272 : | <?php | ||
| 273 : | $k = 0; | ||
| 274 : | $count = count( $types_component ); | ||
| 275 : | for ( $i=0; $i < $count; $i++ ) { | ||
| 276 : | $row = &$types_component[$i]; | ||
| 277 : | |||
| 278 : | $link = 'index2.php?option=com_menus&menutype='. $menutype .'&task=edit&type='. $row->type; | ||
| 279 : | ?> | ||
| 280 : | <tr class="<?php echo "row$k"; ?>"> | ||
| 281 : | <td width="20"> | ||
| 282 : | <input type="radio" id="cb<?php echo $i;?>" name="type" value="<?php echo $row->type; ?>" onClick="isChecked(this.checked);" /> | ||
| 283 : | </td> | ||
| 284 : | <td> | ||
| 285 : | <a href="<?php echo $link; ?>"> | ||
| 286 : | <?php echo $row->name; ?> | ||
| 287 : | </a> | ||
| 288 : | </td> | ||
| 289 : | <td align="center" width="20"> | ||
| 290 : | <?php | ||
| 291 : | echo mosToolTip( $row->descrip, $row->name, 250 ); | ||
| 292 : | ?> | ||
| 293 : | </td> | ||
| 294 : | </tr> | ||
| 295 : | <?php | ||
| 296 : | $k = 1 - $k; | ||
| 297 : | } | ||
| 298 : | ?> | ||
| 299 : | </table> | ||
| 300 : | </fieldset> | ||
| 301 : | <fieldset> | ||
| 302 : | <legend>Links</legend> | ||
| 303 : | <table class="adminform"> | ||
| 304 : | <?php | ||
| 305 : | $k = 0; | ||
| 306 : | $count = count( $types_link ); | ||
| 307 : | for ( $i=0; $i < $count; $i++ ) { | ||
| 308 : | $row = &$types_link[$i]; | ||
| 309 : | |||
| 310 : | $link = 'index2.php?option=com_menus&menutype='. $menutype .'&task=edit&type='. $row->type; | ||
| 311 : | ?> | ||
| 312 : | <tr class="<?php echo "row$k"; ?>"> | ||
| 313 : | <td width="20"> | ||
| 314 : | <input type="radio" id="cb<?php echo $i;?>" name="type" value="<?php echo $row->type; ?>" onClick="isChecked(this.checked);" /> | ||
| 315 : | </td> | ||
| 316 : | <td> | ||
| 317 : | <a href="<?php echo $link; ?>"> | ||
| 318 : | <?php echo $row->name; ?> | ||
| 319 : | </a> | ||
| 320 : | </td> | ||
| 321 : | <td align="center" width="20"> | ||
| 322 : | <?php | ||
| 323 : | echo mosToolTip( $row->descrip, $row->name, 250 ); | ||
| 324 : | ?> | ||
| 325 : | </td> | ||
| 326 : | </tr> | ||
| 327 : | <?php | ||
| 328 : | $k = 1 - $k; | ||
| 329 : | } | ||
| 330 : | ?> | ||
| 331 : | </table> | ||
| 332 : | </fieldset> | ||
| 333 : | </td> | ||
| 334 : | </tr> | ||
| 335 : | </table> | ||
| 336 : | |||
| 337 : | <?php /* ?> | ||
| 338 : | |||
| 339 : | <table width="100%"> | ||
| 340 : | <tr> | ||
| 341 : | <td width="60%"> | ||
| 342 : | <h2 align="left">Content</h2> | ||
| 343 : | <table class="adminlist"> | ||
| 344 : | <tr> | ||
| 345 : | <th width="5"> | ||
| 346 : | # | ||
| 347 : | </th> | ||
| 348 : | <th width="20"> | ||
| 349 : | </th> | ||
| 350 : | <th class="title"> | ||
| 351 : | Menu Item Type | ||
| 352 : | </th> | ||
| 353 : | <th class="title" align="center" width="20px"> | ||
| 354 : | Description | ||
| 355 : | </th> | ||
| 356 : | <th> | ||
| 357 : | </th> | ||
| 358 : | </tr> | ||
| 359 : | <?php | ||
| 360 : | $k = 0; | ||
| 361 : | $count = count( $types_content ); | ||
| 362 : | for ( $i=0; $i < $count; $i++ ) { | ||
| 363 : | $row = &$types_content[$i]; | ||
| 364 : | |||
| 365 : | $link = 'index2.php?option=com_menus&menutype='. $menutype .'&task=edit&type='. $row->type; | ||
| 366 : | ?> | ||
| 367 : | <tr class="<?php echo "row$k"; ?>"> | ||
| 368 : | <td> | ||
| 369 : | <?php echo $i+1; ?> | ||
| 370 : | </td> | ||
| 371 : | <td> | ||
| 372 : | <input type="radio" id="cb<?php echo $i;?>" name="type" value="<?php echo $row->type; ?>" onClick="isChecked(this.checked);" /> | ||
| 373 : | </td> | ||
| 374 : | <td> | ||
| 375 : | <a href="<?php echo $link; ?>"> | ||
| 376 : | <?php echo $row->name; ?> | ||
| 377 : | </a> | ||
| 378 : | </td> | ||
| 379 : | <td align="center"> | ||
| 380 : | <?php | ||
| 381 : | echo mosToolTip( $row->descrip, $row->name, 250 ); | ||
| 382 : | ?> | ||
| 383 : | </td> | ||
| 384 : | <td> | ||
| 385 : | </td> | ||
| 386 : | </tr> | ||
| 387 : | <?php | ||
| 388 : | $k = 1 - $k; | ||
| 389 : | } | ||
| 390 : | ?> | ||
| 391 : | <tr> | ||
| 392 : | <th colspan="5"> | ||
| 393 : | </th> | ||
| 394 : | </tr> | ||
| 395 : | </table> | ||
| 396 : | <br/> | ||
| 397 : | |||
| 398 : | <h2 align="left">Components</h2> | ||
| 399 : | <table class="adminlist"> | ||
| 400 : | <tr> | ||
| 401 : | <th width="5"> | ||
| 402 : | # | ||
| 403 : | </th> | ||
| 404 : | <th width="20"> | ||
| 405 : | </th> | ||
| 406 : | <th class="title"> | ||
| 407 : | Menu Item Type | ||
| 408 : | </th> | ||
| 409 : | <th class="title" align="center" width="20"> | ||
| 410 : | Description | ||
| 411 : | </th> | ||
| 412 : | <th> | ||
| 413 : | </th> | ||
| 414 : | </tr> | ||
| 415 : | <?php | ||
| 416 : | $k = 0; | ||
| 417 : | $count = count( $types_component ); | ||
| 418 : | for ( $i=0; $i < $count; $i++ ) { | ||
| 419 : | $row = &$types_component[$i]; | ||
| 420 : | |||
| 421 : | $link = 'index2.php?option=com_menus&menutype='. $menutype .'&task=edit&type='. $row->type; | ||
| 422 : | ?> | ||
| 423 : | <tr class="<?php echo "row$k"; ?>"> | ||
| 424 : | <td> | ||
| 425 : | <?php echo $i+1; ?> | ||
| 426 : | </td> | ||
| 427 : | <td> | ||
| 428 : | <input type="radio" id="cb<?php echo $i;?>" name="type" value="<?php echo $row->type; ?>" onClick="isChecked(this.checked);" /> | ||
| 429 : | </td> | ||
| 430 : | <td> | ||
| 431 : | <a href="<?php echo $link; ?>"> | ||
| 432 : | <?php echo $row->name; ?> | ||
| 433 : | </a> | ||
| 434 : | </td> | ||
| 435 : | <td align="center"> | ||
| 436 : | <?php | ||
| 437 : | echo mosToolTip( $row->descrip, $row->name, 250 ); | ||
| 438 : | ?> | ||
| 439 : | </td> | ||
| 440 : | <td> | ||
| 441 : | </td> | ||
| 442 : | </tr> | ||
| 443 : | <?php | ||
| 444 : | $k = 1 - $k; | ||
| 445 : | } | ||
| 446 : | ?> | ||
| 447 : | <tr> | ||
| 448 : | <th colspan="5"> | ||
| 449 : | </th> | ||
| 450 : | </tr> | ||
| 451 : | </table> | ||
| 452 : | <br/> | ||
| 453 : | |||
| 454 : | |||
| 455 : | <h2 align="left">Links</h2> | ||
| 456 : | <table class="adminlist"> | ||
| 457 : | <tr> | ||
| 458 : | <th width="5"> | ||
| 459 : | # | ||
| 460 : | </th> | ||
| 461 : | <th width="20"> | ||
| 462 : | </th> | ||
| 463 : | <th class="title"> | ||
| 464 : | Menu Item Type | ||
| 465 : | </th> | ||
| 466 : | <th class="title" align="center" width="20"> | ||
| 467 : | Description | ||
| 468 : | </th> | ||
| 469 : | <th> | ||
| 470 : | </th> | ||
| 471 : | </tr> | ||
| 472 : | <?php | ||
| 473 : | $k = 0; | ||
| 474 : | $count = count( $types_link ); | ||
| 475 : | for ( $i=0; $i < $count; $i++ ) { | ||
| 476 : | $row = &$types_link[$i]; | ||
| 477 : | |||
| 478 : | $link = 'index2.php?option=com_menus&menutype='. $menutype .'&task=edit&type='. $row->type; | ||
| 479 : | ?> | ||
| 480 : | <tr class="<?php echo "row$k"; ?>"> | ||
| 481 : | <td> | ||
| 482 : | <?php echo $i+1; ?> | ||
| 483 : | </td> | ||
| 484 : | <td> | ||
| 485 : | <input type="radio" id="cb<?php echo $i;?>" name="type" value="<?php echo $row->type; ?>" onClick="isChecked(this.checked);" /> | ||
| 486 : | </td> | ||
| 487 : | <td> | ||
| 488 : | <a href="<?php echo $link; ?>"> | ||
| 489 : | <?php echo $row->name; ?> | ||
| 490 : | </a> | ||
| 491 : | </td> | ||
| 492 : | <td align="center"> | ||
| 493 : | <?php | ||
| 494 : | echo mosToolTip( $row->descrip, $row->name, 250 ); | ||
| 495 : | ?> | ||
| 496 : | </td> | ||
| 497 : | <td> | ||
| 498 : | </td> | ||
| 499 : | </tr> | ||
| 500 : | <?php | ||
| 501 : | $k = 1 - $k; | ||
| 502 : | } | ||
| 503 : | ?> | ||
| 504 : | <tr> | ||
| 505 : | <th colspan="5"> | ||
| 506 : | </th> | ||
| 507 : | </tr> | ||
| 508 : | </table> | ||
| 509 : | <br/> | ||
| 510 : | |||
| 511 : | <h2 align="left">Other</h2> | ||
| 512 : | <table class="adminlist"> | ||
| 513 : | <tr> | ||
| 514 : | <th width="5"> | ||
| 515 : | # | ||
| 516 : | </th> | ||
| 517 : | <th width="20"> | ||
| 518 : | </th> | ||
| 519 : | <th class="title"> | ||
| 520 : | Menu Item Type | ||
| 521 : | </th> | ||
| 522 : | <th class="title" align="center" width="20"> | ||
| 523 : | Description | ||
| 524 : | </th> | ||
| 525 : | <th> | ||
| 526 : | </th> | ||
| 527 : | </tr> | ||
| 528 : | <?php | ||
| 529 : | $k = 0; | ||
| 530 : | $count = count( $types_other ); | ||
| 531 : | for ( $i=0; $i < $count; $i++ ) { | ||
| 532 : | $row = &$types_other[$i]; | ||
| 533 : | |||
| 534 : | $link = 'index2.php?option=com_menus&menutype='. $menutype .'&task=edit&type='. $row->type; | ||
| 535 : | ?> | ||
| 536 : | <tr class="<?php echo "row$k"; ?>"> | ||
| 537 : | <td> | ||
| 538 : | <?php echo $i+1; ?> | ||
| 539 : | </td> | ||
| 540 : | <td> | ||
| 541 : | <input type="radio" id="cb<?php echo $i;?>" name="type" value="<?php echo $row->type; ?>" onClick="isChecked(this.checked);" /> | ||
| 542 : | </td> | ||
| 543 : | <td> | ||
| 544 : | <a href="<?php echo $link; ?>"> | ||
| 545 : | <?php echo $row->name; ?> | ||
| 546 : | </a> | ||
| 547 : | </td> | ||
| 548 : | <td align="center"> | ||
| 549 : | <?php | ||
| 550 : | echo mosToolTip( $row->descrip, $row->name, 250 ); | ||
| 551 : | ?> | ||
| 552 : | </td> | ||
| 553 : | <td> | ||
| 554 : | </td> | ||
| 555 : | </tr> | ||
| 556 : | <?php | ||
| 557 : | $k = 1 - $k; | ||
| 558 : | } | ||
| 559 : | ?> | ||
| 560 : | <tr> | ||
| 561 : | <th colspan="5"> | ||
| 562 : | </th> | ||
| 563 : | </tr> | ||
| 564 : | </table> | ||
| 565 : | </td> | ||
| 566 : | <td width="40%" valign="top" align="center"> | ||
| 567 : | <h2>Help</h2> | ||
| 568 : | <br/> | ||
| 569 : | <a href="#"> | ||
| 570 : | What is a 'Blog' view | ||
| 571 : | </a> | ||
| 572 : | <br/><br/><br/> | ||
| 573 : | <a href="#"> | ||
| 574 : | What is a 'Table' view | ||
| 575 : | </a> | ||
| 576 : | <br/><br/><br/> | ||
| 577 : | <a href="#"> | ||
| 578 : | What is a 'List' view | ||
| 579 : | </a> | ||
| 580 : | <br/><br/><br/><br/><br/> | ||
| 581 : | <div style="color: red; font-weight: bold;"> | ||
| 582 : | <?php echo _MENU_GROUP; ?> | ||
| 583 : | </div> | ||
| 584 : | </td> | ||
| 585 : | </tr> | ||
| 586 : | </table> | ||
| 587 : | <?php */ ?> | ||
| 588 : | |||
| 589 : | <input type="hidden" name="option" value="<?php echo $option; ?>" /> | ||
| 590 : | <input type="hidden" name="menutype" value="<?php echo $menutype; ?>" /> | ||
| 591 : | <input type="hidden" name="task" value="edit" /> | ||
| 592 : | <input type="hidden" name="boxchecked" value="0" /> | ||
| 593 : | <input type="hidden" name="hidemainmenu" value="0" /> | ||
| 594 : | </form> | ||
| 595 : | <?php | ||
| 596 : | } | ||
| 597 : | |||
| 598 : | |||
| 599 : | /** | ||
| 600 : | * Form to select Menu to move menu item(s) to | ||
| 601 : | */ | ||
| 602 : | function moveMenu( $option, $cid, $MenuList, $items, $menutype ) { | ||
| 603 : | ?> | ||
| 604 : | <form action="index2.php" method="post" name="adminForm"> | ||
| 605 : | <br /> | ||
| 606 : | <table class="adminheading"> | ||
| 607 : | <tr> | ||
| 608 : | <th> | ||
| 609 : | Move Menu Items | ||
| 610 : | </th> | ||
| 611 : | </tr> | ||
| 612 : | </table> | ||
| 613 : | |||
| 614 : | <br /> | ||
| 615 : | <table class="adminform"> | ||
| 616 : | <tr> | ||
| 617 : | <td width="3%"></td> | ||
| 618 : | <td align="left" valign="top" width="30%"> | ||
| 619 : | <strong>Move to Menu:</strong> | ||
| 620 : | <br /> | ||
| 621 : | <?php echo $MenuList ?> | ||
| 622 : | <br /><br /> | ||
| 623 : | </td> | ||
| 624 : | <td align="left" valign="top"> | ||
| 625 : | <strong> | ||
| 626 : | Menu Items being moved: | ||
| 627 : | </strong> | ||
| 628 : | <br /> | ||
| 629 : | <ol> | ||
| 630 : | <?php | ||
| 631 : | foreach ( $items as $item ) { | ||
| 632 : | ?> | ||
| 633 : | <li> | ||
| 634 : | <?php echo $item->name; ?> | ||
| 635 : | </li> | ||
| 636 : | <?php | ||
| 637 : | } | ||
| 638 : | ?> | ||
| 639 : | </ol> | ||
| 640 : | </td> | ||
| 641 : | </tr> | ||
| 642 : | </table> | ||
| 643 : | <br /><br /> | ||
| 644 : | |||
| 645 : | <input type="hidden" name="option" value="<?php echo $option;?>" /> | ||
| 646 : | <input type="hidden" name="boxchecked" value="1" /> | ||
| 647 : | <input type="hidden" name="task" value="" /> | ||
| 648 : | <input type="hidden" name="menutype" value="<?php echo $menutype; ?>" /> | ||
| 649 : | <?php | ||
| 650 : | foreach ( $cid as $id ) { | ||
| 651 : | echo "\n <input type=\"hidden\" name=\"cid[]\" value=\"$id\" />"; | ||
| 652 : | } | ||
| 653 : | ?> | ||
| 654 : | </form> | ||
| 655 : | <?php | ||
| 656 : | } | ||
| 657 : | |||
| 658 : | |||
| 659 : | /** | ||
| 660 : | * Form to select Menu to copy menu item(s) to | ||
| 661 : | */ | ||
| 662 : | function copyMenu( $option, $cid, $MenuList, $items, $menutype ) { | ||
| 663 : | ?> | ||
| 664 : | <form action="index2.php" method="post" name="adminForm"> | ||
| 665 : | <br /> | ||
| 666 : | <table class="adminheading"> | ||
| 667 : | <tr> | ||
| 668 : | <th> | ||
| 669 : | Copy Menu Items | ||
| 670 : | </th> | ||
| 671 : | </tr> | ||
| 672 : | </table> | ||
| 673 : | |||
| 674 : | <br /> | ||
| 675 : | <table class="adminform"> | ||
| 676 : | <tr> | ||
| 677 : | <td width="3%"></td> | ||
| 678 : | <td align="left" valign="top" width="30%"> | ||
| 679 : | <strong> | ||
| 680 : | Copy to Menu: | ||
| 681 : | </strong> | ||
| 682 : | <br /> | ||
| 683 : | <?php echo $MenuList ?> | ||
| 684 : | <br /><br /> | ||
| 685 : | </td> | ||
| 686 : | <td align="left" valign="top"> | ||
| 687 : | <strong> | ||
| 688 : | Menu Items being copied: | ||
| 689 : | </strong> | ||
| 690 : | <br /> | ||
| 691 : | <ol> | ||
| 692 : | <?php | ||
| 693 : | foreach ( $items as $item ) { | ||
| 694 : | ?> | ||
| 695 : | <li> | ||
| 696 : | <?php echo $item->name; ?> | ||
| 697 : | </li> | ||
| 698 : | <?php | ||
| 699 : | } | ||
| 700 : | ?> | ||
| 701 : | </ol> | ||
| 702 : | </td> | ||
| 703 : | </tr> | ||
| 704 : | </table> | ||
| 705 : | <br /><br /> | ||
| 706 : | |||
| 707 : | <input type="hidden" name="option" value="<?php echo $option;?>" /> | ||
| 708 : | <input type="hidden" name="boxchecked" value="0" /> | ||
| 709 : | <input type="hidden" name="task" value="" /> | ||
| 710 : | <input type="hidden" name="menutype" value="<?php echo $menutype; ?>" /> | ||
| 711 : | <?php | ||
| 712 : | foreach ( $cid as $id ) { | ||
| 713 : | echo "\n <input type=\"hidden\" name=\"cid[]\" value=\"$id\" />"; | ||
| 714 : | } | ||
| 715 : | ?> | ||
| 716 : | </form> | ||
| 717 : | <?php | ||
| 718 : | } | ||
| 719 : | |||
| 720 : | |||
| 721 : | } | ||
| 722 : | ?> |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

