[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

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

   1  <?php
   2  /**
   3  * @version        $Id: toolbar.contact.html.php 14401 2010-01-26 14:10:00Z louis $
   4  * @package        Joomla
   5  * @subpackage    Contact
   6  * @copyright    Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
   7  * @license        GNU/GPL, see LICENSE.php
   8  * Joomla! is free software. This version may have been modified pursuant
   9  * to the GNU General Public License, and as distributed it includes or
  10  * is derivative of works licensed under the GNU General Public License or
  11  * other free or open source software licenses.
  12  * See COPYRIGHT.php for copyright notices and details.
  13  */
  14  
  15  // no direct access
  16  defined( '_JEXEC' ) or die( 'Restricted access' );
  17  
  18  /**
  19  * @package        Joomla
  20  * @subpackage    Contact
  21  */
  22  class TOOLBAR_contact
  23  {
  24      /**
  25      * Draws the menu for a New Contact
  26      */
  27  	function _EDIT($edit) {
  28          $cid = JRequest::getVar( 'cid', array(0), '', 'array' );
  29  
  30          $text = ( $edit ? JText::_( 'Edit' ) : JText::_( 'New' ) );
  31  
  32          JToolBarHelper::title( JText::_( 'Contact' ) .': <small><small>[ '. $text .' ]</small></small>', 'generic.png' );
  33  
  34          //JToolBarHelper::custom( 'save2new', 'new.png', 'new_f2.png', 'Save & New', false,  false );
  35          //JToolBarHelper::custom( 'save2copy', 'copy.png', 'copy_f2.png', 'Save To Copy', false,  false );
  36          JToolBarHelper::save();
  37          JToolBarHelper::apply();
  38          if ( $edit ) {
  39              // for existing items the button is renamed `close`
  40              JToolBarHelper::cancel( 'cancel', 'Close' );
  41          } else {
  42              JToolBarHelper::cancel();
  43          }
  44          JToolBarHelper::help( 'screen.contactmanager.edit' );
  45      }
  46  
  47  	function _DEFAULT() {
  48  
  49          JToolBarHelper::title( JText::_( 'Contact Manager' ), 'generic.png' );
  50          JToolBarHelper::publishList();
  51          JToolBarHelper::unpublishList();
  52          JToolBarHelper::deleteList();
  53          JToolBarHelper::editListX();
  54          JToolBarHelper::addNewX();
  55          JToolBarHelper::preferences('com_contact', '500');
  56  
  57          JToolBarHelper::help( 'screen.contactmanager' );
  58      }
  59  }


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1