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_youtubegallery/views/themelist/ |
Upload File : |
<?php /** * Extra Search Joomla! 1.5 Native Component * @version 3.8.3 * @author Design COmpass corp <support@joomlaboat.com> * @link http://www.joomlaboat.com * @GNU General Public License **/ // no direct access defined('_JEXEC') or die('Restricted access'); jimport( 'joomla.application.component.view'); class YouTubeGalleryViewThemelist extends JView { function display($tpl = null) { global $mainframe; JToolBarHelper::title(JText::_('YouTube Gallery - Theme Lists'), 'generic.png'); JToolBarHelper::addNewX('newItem'); JToolBarHelper::customX( 'copyItem', 'copy.png', 'copy_f2.png', 'Copy', true); JToolBarHelper::customX( 'uploadItem', 'upload.png', 'upload_f2.png', 'Import', false); JToolBarHelper::deleteListX(); $db = & JFactory::getDBO(); $context = 'com_youtubegallery.themelist.'; $filter_order = $mainframe->getUserStateFromRequest( $context.'filter_order', 'filter_order', 's.id', 'cmd' ); $filter_order_Dir = $mainframe->getUserStateFromRequest( $context.'filter_order_Dir', 'filter_order_Dir', '', 'word' ); $search = $mainframe->getUserStateFromRequest( $context.'search', 'search', '', 'string' ); $limit = $mainframe->getUserStateFromRequest( $context.'limit', 'limit', $mainframe->getCfg('list_limit'), 'int' ); $limitstart = $mainframe->getUserStateFromRequest( $context.'limitstart', 'limitstart', 0, 'int' ); $where = array(); if ($search) { $where[] = 'LOWER(s.themename) LIKE '.$db->Quote( '%'.$db->getEscaped($search,true).'%', false ); } $where = count( $where ) ? ' WHERE ' . implode( ' AND ', $where ) : ''; $query = 'SELECT COUNT(*)' . ' FROM #__youtubegallery_themes AS s ' . $where ; $db->setQuery( $query ); if (!$db->query()) echo ( $db->stderr()); $total = $db->loadResult(); $orderby = 'ORDER BY '. $filter_order .' '. $filter_order_Dir ; //$inner=array(); //$inner[]='LEFT JOIN `#__youtubegallery_categories` ON #__youtubegallery_categories.id=catid'; //$inner[]='LEFT JOIN `#__youtubegallery_videos` ON #__youtubegallery_videos.listid=s.id AND #__youtubegallery_videos.isvideo'; //. implode (' ', $inner).' ' jimport('joomla.html.pagination'); $pageNav = new JPagination( $total, $limitstart, $limit ); $query = 'SELECT s.* FROM #__youtubegallery_themes AS s ' . $where . $orderby ; $db->setQuery($query, $pageNav->limitstart, $pageNav->limit ); if (!$db->query()) echo ( $db->stderr()); $rows = $db->loadObjectList(); if(!isset($rows)) { $rows=array(); } foreach($rows as $r) $r->checked_out=''; $javascript = 'onchange="document.adminForm.submit();"'; $lists['order_Dir'] = $filter_order_Dir; $lists['order'] = $filter_order; // search filter $lists['search']= $search; $this->assignRef('items', $rows); $this->assignRef('pagination', $pageNav); $this->assignRef('lists', $lists); parent::display($tpl); } } ?>