Server IP : 180.180.241.3 / Your IP : 216.73.216.252 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /AppServ/www/news/administrator/components/com_phocamaps/views/phocamapsmaps/ |
Upload File : |
<?php /* * @package Joomla 1.5 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * * @component Phoca Component * @copyright Copyright (C) Jan Pavelka www.phoca.cz * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL */ defined('_JEXEC') or die(); jimport( 'joomla.application.component.view' ); class PhocaMapsCpViewPhocaMapsMaps extends JView { function display($tpl = null) { global $mainframe; $document =& JFactory::getDocument(); $uri =& JFactory::getURI(); JHTML::stylesheet( 'phocamaps.css', 'administrator/components/com_phocamaps/assets/' ); // Set toolbar items for the page JToolBarHelper::title( JText::_( 'Phoca Maps Maps' ), 'map' ); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); JToolBarHelper::deleteList( JText::_( 'WARNWANTDELLISTEDITEMS' ), 'remove', 'delete'); JToolBarHelper::editListX(); JToolBarHelper::addNewX(); JToolBarHelper::help( 'screen.phocamaps', true ); //Filter $context = 'com_phocamaps.maps.list.'; $filter_state = $mainframe->getUserStateFromRequest( $context.'filter_state', 'filter_state', '', 'word' ); $filter_order = $mainframe->getUserStateFromRequest( $context.'filter_order', 'filter_order', 'a.ordering','cmd' ); $filter_order_Dir = $mainframe->getUserStateFromRequest( $context.'filter_order_Dir', 'filter_order_Dir', '', 'word' ); $search = $mainframe->getUserStateFromRequest( $context.'search', 'search', '', 'string' ); $search = JString::strtolower( $search ); // Get data from the model $items = & $this->get( 'Data'); $total = & $this->get( 'Total'); $pagination = & $this->get( 'Pagination' ); // build list of categories $javascript = 'onchange="document.adminForm.submit();"'; // state filter $lists['state'] = JHTML::_('grid.state', $filter_state ); // table ordering $lists['order_Dir'] = $filter_order_Dir; $lists['order'] = $filter_order; // search filter $lists['search'] = $search; $ordering = ($lists['order'] == 'a.ordering');//Ordering allowed ? $this->assignRef('user', JFactory::getUser()); $this->assignRef('lists', $lists); $this->assignRef('items', $items); $this->assignRef('total', $total); $this->assignRef('pagination', $pagination); $this->assignRef('ordering', $ordering); $this->assignRef('request_url', $uri->toString()); parent::display($tpl); } } ?>