[ Indice ]

Riferimento incrociato di Joomla! 1.5.14 - VM 1.1.4

Servizio fornito da VMItalia
Classe:   Funzione:   Variabile:   Costante:  
Storico Ricerche +

titolo

Corpo

[chiudi]

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

   1  <?php
   2  /**
   3  * @version        $Id: toolbar.contact.html.php 10381 2008-06-01 03:35:53Z pasamio $
   4  * @package        Joomla
   5  * @subpackage    Contact
   6  * @copyright    Copyright (C) 2005 - 2008 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  }


Generato il: Mon Oct 19 20:29:27 2009 Generato con PHPXref 0.7