nexus
[ class tree: nexus ] [ index: nexus ] [ all elements ]

Source for file menu_sort.php

Documentation is available at menu_sort.php

  1. <?php
  2. /**
  3.  * @author   xing <xing@synapse.plus.com>
  4.  * @version  $Revision: 1.4 $
  5.  * @package  nexus
  6.  * @subpackage functions
  7.  */
  8.  
  9. /**
  10. * required setup
  11. */
  12. require_once'../bit_setup_inc.php' );
  13. global $gBitSystem;
  14. require_onceNEXUS_PKG_PATH.'Nexus.php');
  15. include_onceNEXUS_PKG_PATH.'menu_lookup_inc.php' );
  16.  
  17. $gBitSystem->verifyPermission'p_nexus_create_menus' );
  18.  
  19. ifempty$_REQUEST['menu_id') ) {
  20.     header'Location:'.NEXUS_PKG_URL.'index.php' );
  21. }
  22.  
  23. // if someone wants to move and item, move it.
  24. ifisset$_REQUEST['move_item'&& isset$_REQUEST['item_id') ) {
  25.     if$_REQUEST['move_item'== 'w' {
  26.         $gNexus->moveItemWest$_REQUEST['item_id');
  27.     elseif$_REQUEST['move_item'== 'n' {
  28.         $gNexus->moveItemNorth$_REQUEST['item_id');
  29.     elseif$_REQUEST['move_item'== 's' {
  30.         $gNexus->moveItemSouth$_REQUEST['item_id');
  31.     elseif$_REQUEST['move_item'== 'e' {
  32.         $gNexus->moveItemEast$_REQUEST['item_id');
  33.     }
  34.     header'Location: '.NEXUS_PKG_URL.'menu_sort.php?menu_id='.$_REQUEST['sort_menu'].'&tab='.$_REQUEST['tab');
  35.     die;
  36. }
  37.  
  38. ifisset$_REQUEST['tab') ) {
  39.     $gBitSmarty->assign$_REQUEST['tab'].'TabSelect''tdefault' );
  40. }
  41.  
  42. // this is the module filename
  43. $gBitSmarty->assign'nexus_file'strtolower'mod_'.preg_replace"/ /""_"$gNexus->mInfo['title').'_'.$gNexus->mInfo['menu_id'].'.tpl' ) );
  44.  
  45. $gBitSystem->setBrowserTitle'Nexus Menus' );
  46. $gBitSystem->display'bitpackage:nexus/menu_sort.tpl' );
  47. ?>

Documentation generated on Thu, 15 Feb 2007 20:43:43 +0000 by phpDocumentor 1.3.0