[ Index ]

PHP Cross Reference of Mambo 4.6.5

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

title

Body

[close]

/administrator/components/com_users/ -> toolbar.users.html.php (source)

   1  <?php
   2  /**
   3  * @package Mambo
   4  * @subpackage Users
   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_users {
  21      /**
  22      * Draws the menu to edit a user
  23      */
  24  	function _EDIT($task) {
  25          global $id;
  26          
  27          mosMenuBar::startTable();
  28          mosMenuBar::save();
  29          mosMenuBar::spacer();
  30          mosMenuBar::apply();
  31          mosMenuBar::spacer();
  32          if ( $id ) {
  33              // for existing content items the button is renamed `close`
  34              mosMenuBar::cancel( 'cancel', T_('Close') );
  35          } else {
  36              mosMenuBar::cancel();
  37          }
  38          mosMenuBar::spacer();
  39          if ($task == 'new' ) mosMenuBar::help( 'new' );
  40          else mosMenuBar::help( 'edit' );
  41          mosMenuBar::endTable();
  42      }
  43  
  44  	function _DEFAULT() {
  45          mosMenuBar::startTable();
  46          mosMenuBar::addNewX();
  47          mosMenuBar::spacer();
  48          mosMenuBar::editListX();
  49          mosMenuBar::spacer();
  50          mosMenuBar::deleteList();
  51          mosMenuBar::spacer();
  52          mosMenuBar::custom( 'logout', 'cancel.png', 'cancel_f2.png', T_('Force Logout') );
  53          mosMenuBar::spacer();
  54          mosMenuBar::help( 'manager' );
  55          mosMenuBar::endTable();
  56      }
  57  }
  58  ?>