本文整理汇总了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);
}
示例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);
}
示例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);
}