Source for file toolbar.menus.html.php

Documentation is available at toolbar.menus.html.php

  1. <?php
  2. /**
  3. @package Mambo
  4. @subpackage Menus
  5. @copyright  Refer to copyright.php
  6. @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
  7. @author Mambo Foundation Inc see README.php
  8. */ 
  9.  
  10. /** ensure this file is being included by a parent file */
  11. defined'_VALID_MOS' or die'Direct Access to this location is not allowed.' );
  12.  
  13. class TOOLBAR_menus {
  14.     /**
  15.     * Draws the menu for a New top menu item
  16.     */
  17.     function _NEW()    {
  18.         mosMenuBar::startTable();
  19.         mosMenuBar::customX'edit''next.png''next_f2.png'T_('Next')true );
  20.         mosMenuBar::spacer();
  21.         mosMenuBar::cancel();
  22.         mosMenuBar::spacer();
  23.         mosMenuBar::help'new' );
  24.         mosMenuBar::endTable();
  25.     }
  26.  
  27.     /**
  28.     * Draws the menu to Move Menut Items
  29.     */
  30.     function _MOVEMENU()    {
  31.         mosMenuBar::startTable();
  32.         mosMenuBar::custom'movemenusave''move.png''move_f2.png'T_('Move')false );
  33.         mosMenuBar::spacer();
  34.         mosMenuBar::cancel'cancelmovemenu' );
  35.         mosMenuBar::spacer();
  36.         mosMenuBar::help'move' );
  37.         mosMenuBar::endTable();
  38.     }
  39.  
  40.     /**
  41.     * Draws the menu to Move Menut Items
  42.     */
  43.     function _COPYMENU()    {
  44.         mosMenuBar::startTable();
  45.         mosMenuBar::custom'copymenusave''copy.png''copy_f2.png'T_('Copy')false );
  46.         mosMenuBar::spacer();
  47.         mosMenuBar::cancel'cancelcopymenu' );
  48.         mosMenuBar::spacer();
  49.         mosMenuBar::help'copy' );
  50.         mosMenuBar::endTable();
  51.     }
  52.  
  53.     /**
  54.     * Draws the menu to edit a menu item
  55.     */
  56.     function _EDIT($type{
  57.         global $id;
  58.         $hs='';
  59.  
  60.         if !$id {
  61.             $cid mosGetParam$_POST'cid'array(0) );
  62.             $id $cid[0];
  63.         }
  64.         $menutype     mosGetParam$_REQUEST'menutype''منوی اصلی' );
  65.         
  66.         mosMenuBar::startTable();
  67.         if !$id {
  68.             $link 'index2.php?option=com_menus&menutype='$menutype .'&task=new&hidemainmenu=1';
  69.             mosMenuBar::backT_('Back')$link );
  70.             mosMenuBar::spacer();
  71.         }
  72.         mosMenuBar::save();
  73.         mosMenuBar::spacer();
  74.         mosMenuBar::apply();
  75.         mosMenuBar::spacer();
  76.         if $id {
  77.             // for existing content items the button is renamed `close`
  78.             mosMenuBar::cancel'cancel'T_('Close') );
  79.         else {
  80.             mosMenuBar::cancel();
  81.         }
  82.         mosMenuBar::spacer();
  83.         mosMenuBar::help$type )
  84.         mosMenuBar::endTable();
  85.     }
  86.  
  87.     function _DEFAULT({
  88.         mosMenuBar::startTable();
  89.         mosMenuBar::addNewX();
  90.         mosMenuBar::spacer();
  91.         mosMenuBar::editListX();
  92.         mosMenuBar::spacer();
  93.         mosMenuBar::publishList();
  94.         mosMenuBar::spacer();
  95.         mosMenuBar::unpublishList();
  96.         mosMenuBar::spacer();
  97.         mosMenuBar::customX'movemenu''move.png''move_f2.png'T_('Move')true );
  98.         mosMenuBar::spacer();
  99.         mosMenuBar::customX'copymenu''copy.png''copy_f2.png'T_('Copy')true );
  100.         mosMenuBar::spacer();
  101.         mosMenuBar::trash();
  102.         mosMenuBar::spacer();
  103.         mosMenuBar::help'main' );
  104.         mosMenuBar::endTable();
  105.     }
  106. }
  107. ?>

Documentation generated on Mon, 05 May 2008 16:23:39 +0400 by phpDocumentor 1.4.0