當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ELAdmin::setMenu方法代碼示例

本文整理匯總了PHP中ELAdmin::setMenu方法的典型用法代碼示例。如果您正苦於以下問題:PHP ELAdmin::setMenu方法的具體用法?PHP ELAdmin::setMenu怎麽用?PHP ELAdmin::setMenu使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ELAdmin的用法示例。


在下文中一共展示了ELAdmin::setMenu方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: display

 function display($tpl = null)
 {
     $mainframe =& JFactory::getApplication();
     $option = JRequest::getCmd('option');
     //initialise variables
     $document =& JFactory::getDocument();
     $db =& JFactory::getDBO();
     $user =& JFactory::getUser();
     $elsettings = JComponentHelper::getParams('com_redevent');
     //get vars
     $filter_order = $mainframe->getUserStateFromRequest($option . '.archive.filter_order', 'filter_order', 'x.dates', 'cmd');
     $filter_order_Dir = $mainframe->getUserStateFromRequest($option . '.archive.filter_order_Dir', 'filter_order_Dir', '', 'word');
     $filter = $mainframe->getUserStateFromRequest($option . '.archive.filter', 'filter', '', 'int');
     $filter = intval($filter);
     $search = $mainframe->getUserStateFromRequest($option . '.archive.search', 'search', '', 'string');
     $search = $db->getEscaped(trim(JString::strtolower($search)));
     $template = $mainframe->getTemplate();
     $document->setTitle(JText::_('COM_REDEVENT_PAGETITLE_ARCHIVE'));
     //add css and submenu to document
     $document->addStyleSheet('components/com_redevent/assets/css/redeventbackend.css');
     //Create Submenu
     ELAdmin::setMenu();
     JHTML::_('behavior.tooltip');
     //create the toolbar
     JToolBarHelper::title(JText::_('COM_REDEVENT_ARCHIVESCREEN'), 'archive');
     JToolBarHelper::customX('unarchive', 'redevent_unarchive', 'redevent_unarchive', JText::_('COM_REDEVENT_Unarchive'), true);
     JToolBarHelper::spacer();
     JToolBarHelper::deleteList();
     JToolBarHelper::spacer();
     if ($user->authorise('core.admin', 'com_redevent')) {
         JToolBarHelper::preferences('com_redevent', '600', '800');
     }
     // Get data from the model
     $rows =& $this->get('Data');
     //$total      = & $this->get( 'Total');
     $pageNav =& $this->get('Pagination');
     //search filter
     $filters = array();
     $filters[] = JHTML::_('select.option', '1', JText::_('COM_REDEVENT_EVENT_TITLE'));
     $filters[] = JHTML::_('select.option', '2', JText::_('COM_REDEVENT_VENUE'));
     $filters[] = JHTML::_('select.option', '3', JText::_('COM_REDEVENT_CITY'));
     $filters[] = JHTML::_('select.option', '4', JText::_('COM_REDEVENT_CATEGORY'));
     $lists['filter'] = JHTML::_('select.genericlist', $filters, 'filter', 'size="1" class="inputbox"', 'value', 'text', $filter);
     // table ordering
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     /* Venue and time details */
     $eventvenues = $this->get('ArchiveEventVenues');
     // search filter
     $lists['search'] = $search;
     //assign data to template
     $this->assignRef('lists', $lists);
     $this->assignRef('user', $user);
     $this->assignRef('rows', $rows);
     $this->assignRef('pageNav', $pageNav);
     $this->assignRef('elsettings', $elsettings);
     $this->assignRef('template', $template);
     $this->assignRef('eventvenues', $eventvenues);
     parent::display($tpl);
 }
開發者ID:jaanusnurmoja,項目名稱:redjoomla,代碼行數:60,代碼來源:view.html.php

示例2: _displayImport

 function _displayImport($tpl = null)
 {
     $document =& JFactory::getDocument();
     $document->setTitle(JText::_('COM_REDEVENT_PAGETITLE_TEXTLIBRARY_IMPORT'));
     //add css and submenu to document
     $document->addStyleSheet('components/com_redevent/assets/css/redeventbackend.css');
     //Create Submenu
     ELAdmin::setMenu();
     JHTML::_('behavior.tooltip');
     //create the toolbar
     JToolBarHelper::title(JText::_('COM_REDEVENT_PAGETITLE_TEXTLIBRARY_IMPORT'), 'events');
     JToolBarHelper::back();
     $lists = array();
     //assign data to template
     $this->assignRef('lists', $lists);
     parent::display($tpl);
 }
開發者ID:jaanusnurmoja,項目名稱:redjoomla,代碼行數:17,代碼來源:view.html.php

示例3: _displayExport

 function _displayExport($tpl = null)
 {
     $document =& JFactory::getDocument();
     $document->setTitle(JText::_('COM_REDEVENT_PAGETITLE_VENUES_EXPORT'));
     //add css and submenu to document
     $document->addStyleSheet('components/com_redevent/assets/css/redeventbackend.css');
     //Create Submenu
     ELAdmin::setMenu();
     JHTML::_('behavior.tooltip');
     //create the toolbar
     JToolBarHelper::title(JText::_('COM_REDEVENT_PAGETITLE_VENUES_EXPORT'), 'events');
     JToolBarHelper::back();
     JToolBarHelper::custom('doexport', 'exportevents', 'exportevents', JText::_('COM_REDEVENT_BUTTON_EXPORT'), false);
     $lists = array();
     $lists['categories'] = JHTML::_('select.genericlist', $this->get('CategoriesOptions'), 'categories[]', 'size="15" multiple="multiple"', 'value', 'text');
     //assign data to template
     $this->assignRef('lists', $lists);
     parent::display($tpl);
 }
開發者ID:jaanusnurmoja,項目名稱:redjoomla,代碼行數:19,代碼來源:view.html.php


注:本文中的ELAdmin::setMenu方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。