Source for file toolbar.users.html.php

Documentation is available at toolbar.users.html.php

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

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