?
Path : /home/admin/public_html/old/administrator/components/com_xijc/views/manager/ |
Current File : /home/admin/public_html/old/administrator/components/com_xijc/views/manager/view.html.php |
<?php /** * */ // no direct access defined('_JEXEC') or die('Restricted access'); // Import Joomla! libraries jimport( 'joomla.application.component.view'); require_once(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_xijc' . DS . 'includes.xijc.php' ); class XiJCViewManager extends JView { function display($tpl = null) { $mModel = XiJCFactory::getModel( 'Manager' ); $components =& $mModel->getComponents(); $enableCom = array(); //get blacklist component ( means enable ) list from components table foreach($components as $com) { $enableCom[$com->option] = XiJCManager::getEnableForComponent($com->option); } $pagination =& $mModel->getPagination(); // Load tooltips JHTML::_('behavior.tooltip', '.hasTip'); jimport('joomla.html.pane'); $pane =& JPane::getInstance('sliders'); $this->setToolbar(); $this->assignRef( 'pane' , $pane ); $this->assign( 'components' , $components ); $this->assign( 'enablecom' , $enableCom ); $this->assignRef( 'pagination' , $pagination ); parent::display( $tpl ); } /** * Private method to set the toolbar for this view * * @access private * * @return null **/ function setToolBar() { // Set the titlebar text JToolBarHelper::title( JText::_( 'COMPONENT MANAGER' ), 'manager' ); JToolBarHelper::back('Home' , 'index.php?option=com_xijc'); JToolBarHelper::divider(); JToolBarHelper::publishList('publish', 'ENABLE' ); JToolBarHelper::unpublishList('unpublish', 'DISABLE' ); } }