[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/administrator/components/com_menumanager/ -> toolbar.menumanager.html.php (source)

   1  <?php
   2  /**
   3  * @package Mambo
   4  * @subpackage Menus
   5  * @author Mambo Foundation Inc see README.php
   6  * @copyright (C) 2000 - 2009 Mambo Foundation Inc.
   7  * See COPYRIGHT.php for copyright notices and details.
   8  * @license GNU/GPL Version 2, see LICENSE.php
   9  *
  10  * Redistributions of files must retain the above copyright notice.
  11  *
  12  * Mambo is free software; you can redistribute it and/or
  13  * modify it under the terms of the GNU General Public License
  14  * as published by the Free Software Foundation; version 2 of the License.
  15  */
  16  
  17  /** ensure this file is being included by a parent file */
  18  defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
  19  
  20  class TOOLBAR_menumanager {
  21      /**
  22      * Draws the menu for the Menu Manager
  23      */
  24  	function _DEFAULT() {
  25          mosMenuBar::startTable();
  26          mosMenuBar::addNewX();
  27          mosMenuBar::spacer();
  28          mosMenuBar::editListX();
  29          mosMenuBar::spacer();
  30          mosMenuBar::customX( 'copyconfirm', 'copy.png', 'copy_f2.png', T_('Copy'), true );
  31          mosMenuBar::spacer();
  32          mosMenuBar::customX( 'deleteconfirm', 'delete.png', 'delete_f2.png', T_('Delete'), true );
  33          mosMenuBar::spacer();
  34          mosMenuBar::help( 'main' );
  35          mosMenuBar::endTable();
  36      }
  37  
  38      /**
  39      * Draws the menu to delete a menu
  40      */
  41  	function _DELETE() {
  42          mosMenuBar::startTable();
  43          mosMenuBar::cancel( );
  44          mosMenuBar::endTable();
  45      }
  46  
  47      /**
  48      * Draws the menu to create a New menu
  49      */
  50  	function _NEWMENU($task = 'new')    {
  51          mosMenuBar::startTable();
  52          mosMenuBar::custom( 'savemenu', 'save.png', 'save_f2.png', T_('Save'), false );
  53          mosMenuBar::spacer();
  54          mosMenuBar::cancel();
  55          mosMenuBar::spacer();
  56          mosMenuBar::help( $task );
  57          mosMenuBar::endTable();
  58      }
  59  
  60      /**
  61      * Draws the menu to create a New menu
  62      */
  63  	function _COPYMENU()    {
  64          mosMenuBar::startTable();
  65          mosMenuBar::custom( 'copymenu', 'copy.png', 'copy_f2.png', T_('Copy'), false );
  66          mosMenuBar::spacer();
  67          mosMenuBar::cancel();
  68          mosMenuBar::spacer();
  69          mosMenuBar::help( 'copy' );
  70          mosMenuBar::endTable();
  71      }
  72  
  73  }
  74  ?>