[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/administrator/components/com_installer/views/templates/ -> view.php (source)

   1  <?php
   2  /**
   3   * @version        $Id: view.php 14401 2010-01-26 14:10:00Z louis $
   4   * @package        Joomla
   5   * @subpackage    Menus
   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   * Extension Manager Templates View
  20   *
  21   * @package        Joomla
  22   * @subpackage    Installer
  23   * @since        1.5
  24   */
  25  
  26  include_once(dirname(__FILE__).DS.'..'.DS.'default'.DS.'view.php');
  27  
  28  class InstallerViewTemplates extends InstallerViewDefault
  29  {
  30  	function display($tpl=null)
  31      {
  32          /*
  33           * Set toolbar items for the page
  34           */
  35          JToolBarHelper::deleteList( '', 'remove', 'Uninstall' );
  36          JToolBarHelper::help( 'screen.installer' );
  37  
  38          // Get data from the model
  39          $state        = &$this->get('State');
  40          $items        = &$this->get('Items');
  41          $pagination    = &$this->get('Pagination');
  42  
  43          $lists = new stdClass();
  44          $select[] = JHTML::_('select.option', '-1', JText::_('All'));
  45          $select[] = JHTML::_('select.option', '0', JText::_('Site Templates'));
  46          $select[] = JHTML::_('select.option', '1', JText::_('Admin Templates'));
  47          $lists->client = JHTML::_('select.genericlist',  $select, 'client', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', 'value', 'text', $state->get('filter.client'));
  48  
  49          $this->assignRef('items',        $items);
  50          $this->assignRef('pagination',    $pagination);
  51          $this->assignRef('lists',        $lists);
  52  
  53          parent::display($tpl);
  54      }
  55  
  56  	function loadItem($index=0)
  57      {
  58          $item =& $this->items[$index];
  59          $item->id        = $item->directory;
  60          $item->index    = $index;
  61  
  62          if ($item->active) {
  63              $item->cbd        = 'disabled';
  64              $item->style    = 'style="color:#999999;"';
  65          } else {
  66              $item->cbd        = null;
  67              $item->style    = null;
  68          }
  69          $item->author_information = @$item->authorEmail .'<br />'. @$item->authorUrl;
  70  
  71          $this->assignRef('item', $item);
  72      }
  73  }


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