[ Index ]

PHP Cross Reference of Mambo 4.6.5

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

title

Body

[close]

/administrator/components/com_contact/ -> toolbar.contact.html.php (source)

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