• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP JSubMenuHelper类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中JSubMenuHelper的典型用法代码示例。如果您正苦于以下问题:PHP JSubMenuHelper类的具体用法?PHP JSubMenuHelper怎么用?PHP JSubMenuHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了JSubMenuHelper类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: addSubmenu

 public static function addSubmenu($vName = 'notes')
 {
     if (version_compare(JVERSION, '3', '<')) {
         JSubMenuHelper::addEntry(JText::_('Notes'), 'index.php?option=com_pfmobileappws&view=notes', $vName == 'notes');
     } else {
         JHtmlSidebar::addEntry(JText::_('Notes'), 'index.php?option=com_pfmobileappws&view=notes', $vName == 'notes');
     }
     if (version_compare(JVERSION, '3', '<')) {
         JSubMenuHelper::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == '');
     } else {
         JHtmlSidebar::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == '');
     }
     if (version_compare(JVERSION, '3', '<')) {
         JSubMenuHelper::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == '');
     } else {
         JHtmlSidebar::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == '');
     }
     if (version_compare(JVERSION, '3', '<')) {
         JSubMenuHelper::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == '');
     } else {
         JHtmlSidebar::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == '');
     }
     if (version_compare(JVERSION, '3', '<')) {
         JSubMenuHelper::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == '');
     } else {
         JHtmlSidebar::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == '');
     }
     if (version_compare(JVERSION, '3', '<')) {
         JSubMenuHelper::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == '');
     } else {
         JHtmlSidebar::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == '');
     }
 }
开发者ID:ranrolls,项目名称:php-web-offers-portal,代码行数:33,代码来源:pfmobileappws.php


示例2: display

 public function display($tpl = null)
 {
     JHTML::stylesheet('joomfish.css', 'administrator/components/com_joomfish/assets/css/');
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' . JText::_('TITLE_Statistics'));
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('TITLE_Statistics'), 'statistics');
     JToolBarHelper::custom('cpanel.show', 'joomfish', 'joomfish', 'CONTROL PANEL', false);
     JToolBarHelper::help('screen.statistics', true);
     JSubMenuHelper::addEntry(JText::_('Control Panel'), 'index2.php?option=com_joomfish');
     JSubMenuHelper::addEntry(JText::_('Translation'), 'index2.php?option=com_joomfish&amp;task=translate.overview');
     JSubMenuHelper::addEntry(JText::_('Orphans'), 'index2.php?option=com_joomfish&amp;task=translate.orphans');
     JSubMenuHelper::addEntry(JText::_('Manage Translations'), 'index2.php?option=com_joomfish&amp;task=manage.overview', false);
     JSubMenuHelper::addEntry(JText::_('Statistics'), 'index2.php?option=com_joomfish&amp;task=statistics.overview', true);
     JSubMenuHelper::addEntry(JText::_('Language Configuration'), 'index2.php?option=com_joomfish&amp;task=languages.show', false);
     JSubMenuHelper::addEntry(JText::_('Content elements'), 'index2.php?option=com_joomfish&amp;task=elements.show', false);
     JSubMenuHelper::addEntry(JText::_('HELP AND HOWTO'), 'index2.php?option=com_joomfish&amp;task=help.show', false);
     $this->panelStates = $this->get('PanelStates');
     $this->contentInfo = $this->get('ContentInfo');
     $this->publishedTabs = $this->get('PublishedTabs');
     $this->assignRef('panelStates', $this->panelStates);
     $this->assignRef('contentInfo', $this->contentInfo);
     $this->assignRef('publishedTabs', $this->publishedTabs);
     JHTML::_('behavior.tooltip');
     parent::display($tpl);
 }
开发者ID:raulrotundo,项目名称:jpmoser_guide,代码行数:26,代码来源:view.php


示例3: addSubmenu

 /**
  * Configure the Linkbar.
  *
  * @param	string	The name of the active view.
  */
 public static function addSubmenu($vName)
 {
     JSubMenuHelper::addEntry(JText::_('COM_LANGUAGES_SUBMENU_INSTALLED_SITE'), 'index.php?option=com_languages&view=installed&client=0', $vName == 'installed');
     JSubMenuHelper::addEntry(JText::_('COM_LANGUAGES_SUBMENU_INSTALLED_ADMINISTRATOR'), 'index.php?option=com_languages&view=installed&client=1', $vName == 'installed');
     JSubMenuHelper::addEntry(JText::_('COM_LANGUAGES_SUBMENU_CONTENT'), 'index.php?option=com_languages&view=languages', $vName == 'languages');
     JSubMenuHelper::addEntry(JText::_('COM_LANGUAGES_SUBMENU_OVERRIDES'), 'index.php?option=com_languages&view=overrides', $vName == 'overrides');
 }
开发者ID:jimyb3,项目名称:mathematicalteachingsite,代码行数:12,代码来源:languages.php


示例4: display

 /**
  * Control Panel display function
  *
  * @param template $tpl
  */
 public function display($tpl = null)
 {
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' . JText::_('HELP_AND_HOWTO'));
     JHTML::stylesheet('jfhelp.css', 'administrator/components/com_joomfish/assets/css/');
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('HELP_AND_HOWTO'), 'help');
     JToolBarHelper::custom('cpanel.show', 'joomfish', 'joomfish', 'COM_JOOMFISH_CONTROL_PANEL', false);
     JSubMenuHelper::addEntry(JText::_('COM_JOOMFISH_CONTROL_PANEL'), 'index.php?option=com_joomfish');
     JSubMenuHelper::addEntry(JText::_('TRANSLATION'), 'index.php?option=com_joomfish&amp;task=translate.overview');
     if (JOOMFISH_DEVMODE == true) {
         JSubMenuHelper::addEntry(JText::_('ORPHANS'), 'index.php?option=com_joomfish&amp;task=translate.orphans');
     }
     if (JOOMFISH_DEVMODE == true) {
         JSubMenuHelper::addEntry(JText::_('MANAGE_TRANSLATIONS'), 'index.php?option=com_joomfish&amp;task=manage.overview');
     }
     if (JOOMFISH_DEVMODE == true) {
         JSubMenuHelper::addEntry(JText::_('STATISTICS'), 'index.php?option=com_joomfish&amp;task=statistics.overview');
     }
     JSubMenuHelper::addEntry(JText::_('LANGUAGE_CONFIGURATION'), 'index.php?option=com_joomfish&amp;task=languages.show');
     JSubMenuHelper::addEntry(JText::_('CONTENT_ELEMENTS'), 'index.php?option=com_joomfish&amp;task=elements.show');
     JSubMenuHelper::addEntry(JText::_('HELP_AND_HOWTO'), 'index.php?option=com_joomfish&amp;task=help.show', true);
     $layout = $this->getLayout();
     if (method_exists($this, $layout)) {
         $this->{$layout}($tpl);
     }
     $helpov = $this->getHelpPathL('help.overview');
     $this->assignRef('helppath', $helpov);
     parent::display($tpl);
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:35,代码来源:view.php


示例5: display

 function display($tpl = null)
 {
     global $mainframe;
     //initialise variables
     $document =& JFactory::getDocument();
     $user =& JFactory::getUser();
     //only admins have access to this view
     if ($user->get('gid') < 24) {
         JError::raiseWarning('SOME_ERROR_CODE', JText::_('ALERTNOTAUTH'));
         $mainframe->redirect('index.php?option=com_eventlist&view=eventlist');
     }
     //add css and submenu to document
     $document->addStyleSheet('components/com_eventlist/assets/css/eventlistbackend.css');
     //Create Submenu
     JSubMenuHelper::addEntry(JText::_('EVENTLIST'), 'index.php?option=com_eventlist');
     JSubMenuHelper::addEntry(JText::_('EVENTS'), 'index.php?option=com_eventlist&view=events');
     JSubMenuHelper::addEntry(JText::_('VENUES'), 'index.php?option=com_eventlist&view=venues');
     JSubMenuHelper::addEntry(JText::_('CATEGORIES'), 'index.php?option=com_eventlist&view=categories');
     JSubMenuHelper::addEntry(JText::_('ARCHIVESCREEN'), 'index.php?option=com_eventlist&view=archive');
     JSubMenuHelper::addEntry(JText::_('GROUPS'), 'index.php?option=com_eventlist&view=groups');
     JSubMenuHelper::addEntry(JText::_('HELP'), 'index.php?option=com_eventlist&view=help');
     if ($user->get('gid') > 24) {
         JSubMenuHelper::addEntry(JText::_('SETTINGS'), 'index.php?option=com_eventlist&controller=settings&task=edit');
     }
     //create the toolbar
     JToolBarHelper::title(JText::_('CLEANUP'), 'housekeeping');
     JToolBarHelper::help('el.cleanup', true);
     parent::display($tpl);
 }
开发者ID:janssit,项目名称:www.kadulleke.be,代码行数:29,代码来源:view.html.php


示例6: _initialize

    protected function _initialize(KConfig $config)
    {
        JSubMenuHelper::addEntry(JText::_('Newsfeeds'), 'index.php?option=com_newsfeeds&view=newsfeeds', true);
        JSubMenuHelper::addEntry(JText::_('Categories'), 'index.php?option=com_categories&view=categories&section=com_newsfeeds');

        parent::_initialize($config);
    }
开发者ID:raeldc,项目名称:com_learn,代码行数:7,代码来源:html.php


示例7: addToolbar

 protected function addToolbar()
 {
     // Set toolbar items for the page
     JToolBarHelper::custom("elements.installer", "archive", "archive", JText::_('COM_FALANG_INSTALL'), false);
     if (FALANG_J30) {
         JToolBarHelper::custom("elements.detail", "eye", "eye", JText::_('COM_FALANG_DETAIL'), true);
     } else {
         JToolBarHelper::custom("elements.detail", "preview", "preview", JText::_('COM_FALANG_DETAIL'), true);
     }
     JToolBarHelper::deleteList(JText::_("COM_FALANG_TRANSLATION_DELETE_MSG"), "elements.remove");
     JToolBarHelper::help('screen.elements', true);
     if (FALANG_J30) {
         JHtmlSidebar::setAction('index.php?option=com_falang&view=element');
         JHtmlSidebar::addEntry(JText::_('COM_FALANG_CONTROL_PANEL'), 'index.php?option=com_falang');
         JHtmlSidebar::addEntry(JText::_('COM_FALANG_TRANSLATION'), 'index.php?option=com_falang&amp;task=translate.overview');
         JHtmlSidebar::addEntry(JText::_('COM_FALANG_ORPHANS'), 'index.php?option=com_falang&amp;task=translate.orphans');
         JHtmlSidebar::addEntry(JText::_('COM_FALANG_CONTENT_ELEMENTS'), 'index.php?option=com_falang&amp;task=elements.show', true);
         JHtmlSidebar::addEntry(JText::_('COM_FALANG_HELP_AND_HOWTO'), 'index.php?option=com_falang&amp;task=help.show', false);
         $this->sidebar = JHtmlSidebar::render();
     } else {
         JSubMenuHelper::addEntry(JText::_('COM_FALANG_CONTROL_PANEL'), 'index.php?option=com_falang');
         JSubMenuHelper::addEntry(JText::_('COM_FALANG_TRANSLATION'), 'index.php?option=com_falang&amp;task=translate.overview');
         JSubMenuHelper::addEntry(JText::_('COM_FALANG_ORPHANS'), 'index.php?option=com_falang&amp;task=translate.orphans');
         JSubMenuHelper::addEntry(JText::_('COM_FALANG_CONTENT_ELEMENTS'), 'index.php?option=com_falang&amp;task=elements.show', true);
         JSubMenuHelper::addEntry(JText::_('COM_FALANG_HELP_AND_HOWTO'), 'index.php?option=com_falang&amp;task=help.show', false);
     }
 }
开发者ID:naka211,项目名称:compac,代码行数:27,代码来源:view.php


示例8: display

 function display($tpl = null)
 {
     $option = "com_discussions";
     $app = JFactory::getApplication();
     JHTML::_('behavior.tooltip');
     $user =& JFactory::getUser();
     $db =& JFactory::getDBO();
     $search = $app->getUserStateFromRequest($option . '.posts.search', 'search', '', 'string');
     $search = $db->getEscaped(trim(JString::strtolower($search)));
     $filter_state = $app->getUserStateFromRequest($option . '.posts.filter_state', 'filter_state', '*', 'word');
     $filter_order = $app->getUserStateFromRequest($option . '.posts.filter_order', 'filter_order', 'ordering', 'cmd');
     $filter_order_Dir = $app->getUserStateFromRequest($option . '.posts.filter_order_Dir', 'filter_order_Dir', '', 'word');
     $rows =& $this->get('Data');
     $pageNav =& $this->get('Pagination');
     $lists['search'] = $search;
     $lists['state'] = JHTML::_('grid.state', $filter_state);
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     $this->assignRef('lists', $lists);
     $this->assignRef('user', $user);
     $this->assignRef('rows', $rows);
     $this->assignRef('pageNav', $pageNav);
     JToolBarHelper::title("Discussions - " . JText::_('COFI_POSTS'), "discussions.png");
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     JToolBarHelper::divider();
     JToolBarHelper::editList();
     JToolBarHelper::divider();
     JToolBarHelper::preferences('com_discussions', '600', '800');
     JSubMenuHelper::addEntry(JText::_('COFI_DASHBOARD'), 'index.php?option=com_discussions');
     JSubMenuHelper::addEntry(JText::_('COFI_FORUMS'), 'index.php?option=com_discussions&view=forums');
     JSubMenuHelper::addEntry(JText::_('COFI_POSTS'), 'index.php?option=com_discussions&view=posts', true);
     JSubMenuHelper::addEntry(JText::_('COFI_USERS'), 'index.php?option=com_discussions&view=users');
     parent::display($tpl);
 }
开发者ID:rbista,项目名称:Discussions-J1.6,代码行数:35,代码来源:view.html.php


示例9: addSubmenu

 /**
  * Configure the Linkbar.
  *
  * @param	string	$vName	The name of the active view.
  *
  * @return	void
  * @since	1.6
  */
 public static function addSubmenu($vName = 'peetcontact')
 {
     JSubMenuHelper::addEntry(JText::_('COM_PEETCONTACT_SUBMENU_MESSAGES'), 'index.php?option=com_peetcontact', $vName == 'peetcontact');
     JSubMenuHelper::addEntry(JText::_('COM_PEETCONTACT_SUBMENU_SETTINGS'), 'index.php?option=com_peetcontact&view=form', $vName == 'form');
     $name = $vName == 'peetcontact' ? JText::_('COM_PEETCONTACT_SUBMENU_MESSAGES') : JText::_('COM_PEETCONTACT_SUBMENU_SETTINGS');
     JToolBarHelper::title(JText::_(sprintf(JText::_('COM_PEETCONTACT'), JText::_($name))));
 }
开发者ID:p33t00,项目名称:joo3,代码行数:15,代码来源:peetcontact.php


示例10: addSubmenu

 /**
  * Configure the Linkbar.
  */
 public static function addSubmenu($submenu)
 {
     JSubMenuHelper::addEntry(JText::_('COM_ONEPAGE_CONFIGURATION_TITLE'), 'index.php?option=com_onepage&view=config', $submenu == 'config');
     JSubMenuHelper::addEntry(JText::_('COM_ONEPAGE_OPC_THEME_EDITOR'), 'index.php?option=com_onepage&view=edittheme', $submenu == 'edittheme');
     JSubMenuHelper::addEntry(JText::_('COM_ONEPAGE_TRACKING_PANEL'), 'index.php?option=com_onepage&view=tracking', $submenu == 'tracking');
     JSubMenuHelper::addEntry(JText::_('COM_ONEPAGE_UTILS'), 'index.php?option=com_onepage&view=utils', $submenu == 'utils');
     JSubMenuHelper::addEntry(JText::_('COM_ONEPAGE_XML_EXPORT'), 'index.php?option=com_onepage&view=xmlexport', $submenu == 'xmlexport');
     JSubMenuHelper::addEntry(JText::_('COM_ONEPAGE_ORDER_EXPORT_CONFIG'), 'index.php?option=com_onepage&view=order_export', $submenu == 'order_export');
     JSubMenuHelper::addEntry(JText::_('COM_ONEPAGE_ORDER_MANAGEMENT') . ' (' . JText::_('COM_ONEPAGE_EXPERIMENTAL') . ')', 'index.php?option=com_onepage&view=orders', $submenu == 'orders');
     /*
     		 $db = JFactory::getDBO(); 
     	 $q = "select shipment_params from #__virtuemart_shipmentmethods where shipment_element = 'pickup_or_free' and published = 1 limit 0,1"; 
     	 $db->setQuery($q); 
     	 $json = $db->loadResult(); 
     	 if (!empty($json))
     {
        JSubMenuHelper::addEntry(
     			JText::_('COM_ONEPAGE_ROUTE_CONFIG_LINK'),
     			'index.php?option=com_onepage&view=pickup',
     			$submenu == 'pickup'
     		);
     }
     */
     // set some global property
     /*
     $document = JFactory::getDocument();
     $document->addStyleDeclaration('.icon-48-helloworld ' .
                                    '{background-image: url(../media/com_helloworld/images/tux-48x48.png);}');
     */
 }
开发者ID:aldegtyarev,项目名称:stelsvelo,代码行数:33,代码来源:onepage.php


示例11: display

 function display($tpl = null)
 {
     global $mainframe, $option;
     if ($this->getLayout() == 'print') {
         $this->_displayprint($tpl);
         return;
     }
     //initialise variables
     $db =& JFactory::getDBO();
     $elsettings = ELAdmin::config();
     $document =& JFactory::getDocument();
     $user =& JFactory::getUser();
     //get vars
     $filter_order = $mainframe->getUserStateFromRequest($option . '.attendees.filter_order', 'filter_order', 'u.username', 'cmd');
     $filter_order_Dir = $mainframe->getUserStateFromRequest($option . '.attendees.filter_order_Dir', 'filter_order_Dir', '', 'word');
     $filter = $mainframe->getUserStateFromRequest($option . '.attendees.filter', 'filter', '', 'int');
     $search = $mainframe->getUserStateFromRequest($option . '.attendees.search', 'search', '', 'string');
     $search = $db->getEscaped(trim(JString::strtolower($search)));
     //add css and submenu to document
     $document->addStyleSheet('components/com_eventlist/assets/css/eventlistbackend.css');
     //Create Submenu
     JSubMenuHelper::addEntry(JText::_('EVENTLIST'), 'index.php?option=com_eventlist');
     JSubMenuHelper::addEntry(JText::_('EVENTS'), 'index.php?option=com_eventlist&view=events');
     JSubMenuHelper::addEntry(JText::_('VENUES'), 'index.php?option=com_eventlist&view=venues');
     JSubMenuHelper::addEntry(JText::_('CATEGORIES'), 'index.php?option=com_eventlist&view=categories');
     JSubMenuHelper::addEntry(JText::_('ARCHIVESCREEN'), 'index.php?option=com_eventlist&view=archive');
     JSubMenuHelper::addEntry(JText::_('GROUPS'), 'index.php?option=com_eventlist&view=groups');
     JSubMenuHelper::addEntry(JText::_('HELP'), 'index.php?option=com_eventlist&view=help');
     if ($user->get('gid') > 24) {
         JSubMenuHelper::addEntry(JText::_('SETTINGS'), 'index.php?option=com_eventlist&controller=settings&task=edit');
     }
     //add toolbar
     JToolBarHelper::title(JText::_('REGISTERED USERS'), 'users');
     JToolBarHelper::deleteList();
     JToolBarHelper::spacer();
     JToolBarHelper::back();
     JToolBarHelper::spacer();
     JToolBarHelper::help('el.registereduser', true);
     // Get data from the model
     $rows =& $this->get('Data');
     $pageNav =& $this->get('Pagination');
     $event =& $this->get('Event');
     $event->dates = strftime($elsettings->formatdate, strtotime($event->dates));
     //build filter selectlist
     $filters = array();
     $filters[] = JHTML::_('select.option', '1', JText::_('NAME'));
     $filters[] = JHTML::_('select.option', '2', JText::_('USERNAME'));
     $lists['filter'] = JHTML::_('select.genericlist', $filters, 'filter', 'size="1" class="inputbox"', 'value', 'text', $filter);
     // search filter
     $lists['search'] = $search;
     // table ordering
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     //assign to template
     $this->assignRef('lists', $lists);
     $this->assignRef('rows', $rows);
     $this->assignRef('pageNav', $pageNav);
     $this->assignRef('event', $event);
     parent::display($tpl);
 }
开发者ID:RangerWalt,项目名称:ecci,代码行数:60,代码来源:view.html.php


示例12: display

 function display($tpl = null)
 {
     $mainframe =& JFactory::getApplication();
     JToolBarHelper::title('RSTickets! Pro', 'rsticketspro');
     JSubMenuHelper::addEntry(JText::_('RST_MANAGE_TICKETS'), 'index.php?option=com_rsticketspro&view=tickets', true);
     JSubMenuHelper::addEntry(JText::_('RST_DEPARTMENTS'), 'index.php?option=com_rsticketspro&view=departments');
     JSubMenuHelper::addEntry(JText::_('RST_GROUPS'), 'index.php?option=com_rsticketspro&view=groups');
     JSubMenuHelper::addEntry(JText::_('RST_STAFF_MEMBERS'), 'index.php?option=com_rsticketspro&view=staff');
     JSubMenuHelper::addEntry(JText::_('RST_PRIORITIES'), 'index.php?option=com_rsticketspro&view=priorities');
     JSubMenuHelper::addEntry(JText::_('RST_STATUSES'), 'index.php?option=com_rsticketspro&view=statuses');
     JSubMenuHelper::addEntry(JText::_('RST_KNOWLEDGEBASE'), 'index.php?option=com_rsticketspro&view=knowledgebase');
     JSubMenuHelper::addEntry(JText::_('RST_EMAIL_MESSAGES'), 'index.php?option=com_rsticketspro&view=emails');
     JSubMenuHelper::addEntry(JText::_('RST_CONFIGURATION'), 'index.php?option=com_rsticketspro&view=configuration');
     $mainframe->triggerEvent('onAfterTicketsMenu');
     JSubMenuHelper::addEntry(JText::_('RST_UPDATES'), 'index.php?option=com_rsticketspro&view=updates');
     JToolBarHelper::apply('applykbconvert');
     JToolBarHelper::save('savekbconvert');
     JToolBarHelper::cancel('cancelkbconvert');
     $this->assignRef('ticket', $this->get('ticket', 'ticket'));
     $lists['categories'] = RSTicketsProHelper::getKBCategoriesTree('category_id', 0, 0, '', 0);
     $lists['publish_article'] = JHTML::_('select.booleanlist', 'publish_article', 'class="inputbox"', 1);
     $lists['private'] = JHTML::_('select.booleanlist', 'private', 'class="inputbox"', 0);
     $this->assignRef('lists', $lists);
     parent::display($tpl);
 }
开发者ID:atikahmed,项目名称:joomla-probid,代码行数:25,代码来源:view.html.php


示例13: addSubmenu

 /**
  * Configure the Linkbar.
  */
 public static function addSubmenu($submenu)
 {
     JSubMenuHelper::addEntry(JText::_('COM_CELTAWEBTRAFFIC_TITLE_CPANEL'), 'index.php?option=com_celtawebtraffic&view=controlpanel', $submenu == 'controlpanel');
     JSubMenuHelper::addEntry(JText::_('COM_CELTAWEBTRAFFIC_TITLE_VISITORS'), 'index.php?option=com_celtawebtraffic&view=visitors', $submenu == 'visitors');
     JSubMenuHelper::addEntry(JText::_('COM_CELTAWEBTRAFFIC_TITLE_KNOWNIPS'), 'index.php?option=com_celtawebtraffic&view=knownips', $submenu == 'knownips');
     JSubMenuHelper::addEntry(JText::_('COM_CELTAWEBTRAFFIC_TITLE_GEO'), 'index.php?option=com_celtawebtraffic&view=geoupload', $submenu == 'geoupload');
 }
开发者ID:Rikisha,项目名称:proj,代码行数:10,代码来源:celtawebtraffic.php


示例14: display

 function display($tpl = null)
 {
     $mainframe =& JFactory::getApplication();
     JToolBarHelper::title('RSMembership!', 'rsmembership');
     JSubMenuHelper::addEntry(JText::_('RSM_TRANSACTIONS'), 'index.php?option=com_rsmembership&view=transactions');
     JSubMenuHelper::addEntry(JText::_('RSM_MEMBERSHIPS'), 'index.php?option=com_rsmembership&view=memberships');
     JSubMenuHelper::addEntry(JText::_('RSM_CATEGORIES'), 'index.php?option=com_rsmembership&view=categories');
     JSubMenuHelper::addEntry(JText::_('RSM_MEMBERSHIP_EXTRAS'), 'index.php?option=com_rsmembership&view=extras');
     JSubMenuHelper::addEntry(JText::_('RSM_MEMBERSHIP_UPGRADES'), 'index.php?option=com_rsmembership&view=upgrades');
     JSubMenuHelper::addEntry(JText::_('RSM_COUPONS'), 'index.php?option=com_rsmembership&view=coupons');
     JSubMenuHelper::addEntry(JText::_('RSM_PAYMENT_INTEGRATIONS'), 'index.php?option=com_rsmembership&view=payments');
     JSubMenuHelper::addEntry(JText::_('RSM_FILES'), 'index.php?option=com_rsmembership&view=files');
     JSubMenuHelper::addEntry(JText::_('RSM_FILE_TERMS'), 'index.php?option=com_rsmembership&view=terms');
     JSubMenuHelper::addEntry(JText::_('RSM_USERS'), 'index.php?option=com_rsmembership&view=users');
     JSubMenuHelper::addEntry(JText::_('RSM_FIELDS'), 'index.php?option=com_rsmembership&view=fields');
     JSubMenuHelper::addEntry(JText::_('RSM_REPORTS'), 'index.php?option=com_rsmembership&view=reports', true);
     JSubMenuHelper::addEntry(JText::_('RSM_CONFIGURATION'), 'index.php?option=com_rsmembership&view=configuration');
     JSubMenuHelper::addEntry(JText::_('RSM_UPDATES'), 'index.php?option=com_rsmembership&view=updates');
     $params = array();
     $params['allowAllClose'] = true;
     $pane =& JPane::getInstance('sliders', $params);
     $this->assignRef('pane', $pane);
     $date = RSMembershipHelper::getCurrentDate();
     if (RSMembershipHelper::isJ16()) {
         $date =& JFactory::getDate();
         $date = $date->toUnix();
     }
     $this->assignRef('from_calendar', JHTML::_('calendar', '', 'from_date', 'rsm_from_calendar'));
     $this->assignRef('to_calendar', JHTML::_('calendar', date('Y-m-d', $date), 'to_date', 'rsm_to_calendar'));
     $this->assign('user_id', $this->get('userId'));
     $this->assign('report', $this->get('report'));
     $this->assign('count_memberships', $this->get('countMemberships'));
     $color_pickers = !empty($this->report) && $this->report == 2 ? '4' : $this->count_memberships;
     $this->assign('color_pickers', $color_pickers);
     $lists['transaction_types'] = $this->get('transactiontypes');
     $lists['memberships'] = $this->get('memberships');
     $lists['memberships_transactions'] = $this->get('membershipstransactions');
     $units = array();
     $units[] = JHTML::_('select.option', 'day', JText::_('RSM_DAY'));
     $units[] = JHTML::_('select.option', 'month', JText::_('RSM_MONTH'));
     $units[] = JHTML::_('select.option', 'quarter', JText::_('RSM_QUARTER'));
     $units[] = JHTML::_('select.option', 'year', JText::_('RSM_YEAR'));
     $lists['unit'] = JHTML::_('select.genericlist', $units, 'unit');
     $reports = array();
     $reports[] = JHTML::_('select.option', 'report_1', JText::_('RSM_REPORT_1'));
     $reports[] = JHTML::_('select.option', 'report_2', JText::_('RSM_REPORT_2'));
     $lists['report'] = JHTML::_('select.genericlist', $reports, 'report', 'onchange="rsm_check_report(this.value);"');
     $gateways = $this->assign('gateways', $this->get('gateways'));
     $viewin = array();
     $viewin[] = JHTML::_('select.option', 60, JText::_('RSM_MINUTES'));
     $viewin[] = JHTML::_('select.option', 3600, JText::_('RSM_HOURS'));
     $viewin[] = JHTML::_('select.option', 86400, JText::_('RSM_DAYS'));
     $lists['viewin'] = JHTML::_('select.genericlist', $viewin, 'viewin', 'style="display: none;"');
     $this->assignRef('lists', $lists);
     $this->assign('customer', $this->get('customer'));
     if ($this->get('ie')) {
         JError::raiseWarning(500, JText::_('RSM_IE_WARNING'));
     }
     parent::display($tpl);
 }
开发者ID:atikahmed,项目名称:joomla-probid,代码行数:60,代码来源:view.html.php


示例15: overview

 function overview($tpl = null)
 {
     // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!!
     if (JVersion::isCompatible("1.6.0")) {
         JHTML::stylesheet('administrator/components/' . JEV_COM_COMPONENT . '/assets/css/eventsadmin.css');
     } else {
         JHTML::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/');
     }
     $document =& JFactory::getDocument();
     $document->setTitle(JText::_('ICALS'));
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('ICALS'), 'jevents');
     JToolBarHelper::publishList('icals.publish');
     JToolBarHelper::unpublishList('icals.unpublish');
     JToolBarHelper::addNew('icals.edit');
     JToolBarHelper::editList('icals.edit');
     JToolBarHelper::deleteList('Delete Ical and all associated events and repeats?', 'icals.delete');
     JToolBarHelper::spacer();
     JToolBarHelper::custom('cpanel.cpanel', 'default.png', 'default.png', 'JEV_ADMIN_CPANEL', false);
     //JToolBarHelper::help( 'screen.ical', true);
     JSubMenuHelper::addEntry(JText::_('CONTROL_PANEL'), 'index.php?option=' . JEV_COM_COMPONENT, true);
     $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
     //$section = $params->getValue("section",0);
     JHTML::_('behavior.tooltip');
 }
开发者ID:andreassetiawanhartanto,项目名称:PDKKI,代码行数:25,代码来源:view.html.php


示例16: display

 function display($tpl = null)
 {
     $app =& JFactory::getApplication();
     JSubMenuHelper::addEntry(JText::_('RSSEO_OVERVIEW'), 'index.php?option=com_rsseo');
     JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_COMPETITORS'), 'index.php?option=com_rsseo&task=listcompetitors');
     JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_PAGES'), 'index.php?option=com_rsseo&task=listpages');
     JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_REDIRECTS'), 'index.php?option=com_rsseo&task=listredirects');
     JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_SITEMAP'), 'index.php?option=com_rsseo&task=sitemap');
     JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_CRAWLER'), 'index.php?option=com_rsseo&task=crawler', true);
     JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_KEYWORDS'), 'index.php?option=com_rsseo&task=listkeywords');
     JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_BACKUPRESTORE'), 'index.php?option=com_rsseo&task=backuprestore');
     JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_ANALYTICS'), 'index.php?option=com_rsseo&task=analytics');
     JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_SETTINGS'), 'index.php?option=com_rsseo&task=editsettings');
     JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_UPDATE'), 'index.php?option=com_rsseo&task=update');
     $task = JRequest::getVar('task');
     switch ($task) {
         case 'crawler':
             $db =& JFactory::getDBO();
             JToolBarHelper::title(JText::_('RSSEO_CRAWLER'), 'rsseo');
             JToolBarHelper::custom('rsseo', 'preview.png', 'preview_f2.png', JText::_('RSSEO_PRODUCT'), false);
             $this->assignRef('rsseoConfig', $app->getuserState('rsseoConfig'));
             break;
     }
     parent::display($tpl);
 }
开发者ID:srbsnkr,项目名称:sellingonlinemadesimple,代码行数:25,代码来源:view.html.php


示例17: addSubmenu

 /**
  * Configure the Linkbar.
  */
 public static function addSubmenu($submenu)
 {
     JSubMenuHelper::addEntry(JText::_('COM_VELNOTICE_SUBMENU_VEL'), 'index.php?option=com_velnotice&view=vel', $submenu == 'vel');
     JSubMenuHelper::addEntry(JText::_('COM_VELNOTICE_SUBMENU_IGNORE'), 'index.php?option=com_velnotice&view=velignores', $submenu == 'velignores');
     // set some global property
     $document = JFactory::getDocument();
 }
开发者ID:gokuale,项目名称:vel,代码行数:10,代码来源:velnotice.php


示例18: cpanel

 /**
  * Control Panel display function
  *
  * @param template $tpl
  */
 function cpanel($tpl = null)
 {
     jimport('joomla.html.pane');
     // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!!
     if (JVersion::isCompatible("1.6.0")) {
         JHTML::stylesheet('administrator/components/' . JEV_COM_COMPONENT . '/assets/css/eventsadmin.css');
     } else {
         JHTML::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/');
     }
     $document =& JFactory::getDocument();
     $document->setTitle(JText::_('JEVENTS') . ' :: ' . JText::_('JEVENTS'));
     // Set toolbar items for the page
     //JToolBarHelper::preferences('com_jevents', '580', '750');
     JToolBarHelper::title(JText::_('JEVENTS') . ' :: ' . JText::_('JEVENTS'), 'jevents');
     /*
      $user= JFactory::getUser();
      if ($user->authorise('core.admin','com_jevents.admin')) {
      JToolBarHelper::preferences('com_jevents' , '600', $width = '950');
      }
     */
     $this->_hideSubmenu();
     if (JFactory::getApplication()->isAdmin()) {
         //JToolBarHelper::preferences(JEV_COM_COMPONENT, '580', '750');
     }
     //JToolBarHelper::help( 'screen.cpanel', true);
     JSubMenuHelper::addEntry(JText::_('CONTROL_PANEL'), 'index.php?option=' . JEV_COM_COMPONENT, true);
     $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
     //$section = $params->getValue("section",0);
     JHTML::_('behavior.tooltip');
 }
开发者ID:madseller,项目名称:coperio,代码行数:35,代码来源:view.html.php


示例19: addSubmenu

 public static function addSubmenu($submenu)
 {
     JSubMenuHelper::addEntry(JText::_('COM_GGLMS_SUBMENU_CONTENTS'), 'index.php?option=com_gglms', $submenu == 'Contenuti');
     JSubMenuHelper::addEntry(JText::_('COM_GGLMS_SUBMENU_UNITA'), 'index.php?option=com_gglms&view=unitas&extension=com_gglms', $submenu == 'Unita');
     JSubMenuHelper::addEntry(JText::_('COM_GGLMS_SUBMENU_UNIT'), 'index.php?option=com_gglms&view=unit&extension=com_gglms', $submenu == 'unit');
     //RS JSubMenuHelper::addEntry(JText::_('COM_WEBTV_SUBMENU_PALINSESTI'), 'index.php?option=com_gglms&view=palinsestos&extension=com_gglms', $submenu == 'palinsesti');
     //RS JSubMenuHelper::addEntry(JText::_('COM_WEBTV_SUBMENU_CONVERSIONI'), 'index.php?option=com_gglms&view=conversioni&extension=com_gglms', $submenu == 'conversioni');
     //RS JSubMenuHelper::addEntry(JText::_('COM_WEBTV_SUBMENU_EXERCISES'), 'index.php?option=com_gglms&view=exercises&extension=com_gglms', $submenu == 'exercises');
     JSubMenuHelper::addEntry(JText::_('COM_GGLMS_SUBMENU_FILES'), 'index.php?option=com_gglms&view=files&extension=com_gglms', $submenu == 'files');
     JSubMenuHelper::addEntry(JText::_('COM_GGLMS_SUBMENU_PARAMS'), 'index.php?option=com_gglms&view=params&extension=com_gglms', $submenu == 'params');
     $document = JFactory::getDocument();
     if ($submenu == 'palinsestos') {
         //RS $document->setTitle(JText::_('COM_webtv_ADMINISTRATION_PALINSESTI'));
     }
     if ($submenu == 'conversioni') {
         //RS $document->setTitle(JText::_('COM_webtv_ADMINISTRATION_CONVERSIONI'));
     }
     if ($submenu == 'unit') {
         //RS $document->setTitle(JText::_('COM_webtv_ADMINISTRATION_UNIT'));
     }
     if ($submenu == 'unita') {
         //RS $document->setTitle(JText::_('COM_webtv_ADMINISTRATION_UNITA'));
     }
     if ($submenu == 'exercises') {
         //RS  $document->setTitle(JText::_('COM_webtv_ADMINISTRATION_EXERCISES'));
     }
     if ($submenu == 'files') {
         //RS $document->setTitle("Gestione allegati");
     }
     if ($submenu == 'params') {
         //RS $document->setTitle("Gestione parametri contenuti");
     }
 }
开发者ID:GGallery,项目名称:MDWEBTV-new,代码行数:33,代码来源:gglms.php


示例20: addSubMenu

 public function addSubMenu($vName)
 {
     JSubMenuHelper::addEntry(JText::_('Dashboard'), 'index.php?option=com_ninjarsssyndicator&view=info', $vName == 'info');
     JSubMenuHelper::addEntry(JText::_('Feeds'), 'index.php?option=com_ninjarsssyndicator', $vName == 'feeds');
     JSubMenuHelper::addEntry(JText::_('Button Maker'), 'index.php?option=com_ninjarsssyndicator&view=buttonmaker', $vName == 'buttonmaker');
     JSubMenuHelper::addEntry(JText::_('Default settings'), 'index.php?option=com_ninjarsssyndicator&view=config', $vName == 'config');
 }
开发者ID:ingedgarcruz,项目名称:Ninja-RSS-Syndicator,代码行数:7,代码来源:controller.php



注:本文中的JSubMenuHelper类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP JTEXT类代码示例发布时间:2022-05-23
下一篇:
PHP JStringPunycode类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap