[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/administrator/components/com_sections/ -> toolbar.sections.html.php (source)

   1  <?php
   2  /**
   3  * @version        $Id: toolbar.sections.html.php 14401 2010-01-26 14:10:00Z louis $
   4  * @package        Joomla
   5  * @subpackage    Sections
   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    Sections
  21  */
  22  class TOOLBAR_sections {
  23      /**
  24      * Draws the menu for Editing an existing category
  25      */
  26  	function _EDIT( $edit) {
  27          $cid = JRequest::getVar('cid', array(0), '', 'array');
  28          JArrayHelper::toInteger($cid, array(0));
  29  
  30          $text = ( $edit ? JText::_( 'Edit' ) : JText::_( 'New' ) );
  31  
  32          JToolBarHelper::title( JText::_( 'Section' ).': <small><small>[ '. $text.' ]</small></small>', 'sections.png' );
  33          JToolBarHelper::save();
  34          JToolBarHelper::apply();
  35          if ( $edit ) {
  36              // for existing items the button is renamed `close`
  37              JToolBarHelper::cancel( 'cancel', 'Close' );
  38          } else {
  39              JToolBarHelper::cancel();
  40          }
  41          JToolBarHelper::help( 'screen.sections.edit' );
  42      }
  43      /**
  44      * Draws the menu for Copying existing sections
  45      * @param int The published state (to display the inverse button)
  46      */
  47  	function _COPY() {
  48          JToolBarHelper::title( JText::_( 'Section' ) .': <small><small>[ '. JText::_( 'Copy' ).' ]</small></small>', 'section.png' );
  49          //JToolBarHelper::title( JText::_( 'Copy Section' ), 'sections.png' );
  50          JToolBarHelper::save( 'copysave' );
  51          JToolBarHelper::cancel();
  52      }
  53      /**
  54      * Draws the menu for Editing an existing category
  55      */
  56  	function _DEFAULT(){
  57          JToolBarHelper::title( JText::_( 'Section Manager' ), 'sections.png' );
  58          JToolBarHelper::publishList();
  59          JToolBarHelper::unpublishList();
  60          JToolBarHelper::customX( 'copyselect', 'copy.png', 'copy_f2.png', 'Copy', true );
  61          JToolBarHelper::deleteList();
  62          JToolBarHelper::editListX();
  63          JToolBarHelper::addNewX();
  64          JToolBarHelper::help( 'screen.sections' );
  65      }
  66  }


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