本文整理汇总了PHP中JSubMenuHelper::addEntry方法的典型用法代码示例。如果您正苦于以下问题:PHP JSubMenuHelper::addEntry方法的具体用法?PHP JSubMenuHelper::addEntry怎么用?PHP JSubMenuHelper::addEntry使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JSubMenuHelper
的用法示例。
在下文中一共展示了JSubMenuHelper::addEntry方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 == '');
}
}
示例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&task=translate.overview');
JSubMenuHelper::addEntry(JText::_('Orphans'), 'index2.php?option=com_joomfish&task=translate.orphans');
JSubMenuHelper::addEntry(JText::_('Manage Translations'), 'index2.php?option=com_joomfish&task=manage.overview', false);
JSubMenuHelper::addEntry(JText::_('Statistics'), 'index2.php?option=com_joomfish&task=statistics.overview', true);
JSubMenuHelper::addEntry(JText::_('Language Configuration'), 'index2.php?option=com_joomfish&task=languages.show', false);
JSubMenuHelper::addEntry(JText::_('Content elements'), 'index2.php?option=com_joomfish&task=elements.show', false);
JSubMenuHelper::addEntry(JText::_('HELP AND HOWTO'), 'index2.php?option=com_joomfish&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);
}
示例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');
}
示例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&task=translate.overview');
if (JOOMFISH_DEVMODE == true) {
JSubMenuHelper::addEntry(JText::_('ORPHANS'), 'index.php?option=com_joomfish&task=translate.orphans');
}
if (JOOMFISH_DEVMODE == true) {
JSubMenuHelper::addEntry(JText::_('MANAGE_TRANSLATIONS'), 'index.php?option=com_joomfish&task=manage.overview');
}
if (JOOMFISH_DEVMODE == true) {
JSubMenuHelper::addEntry(JText::_('STATISTICS'), 'index.php?option=com_joomfish&task=statistics.overview');
}
JSubMenuHelper::addEntry(JText::_('LANGUAGE_CONFIGURATION'), 'index.php?option=com_joomfish&task=languages.show');
JSubMenuHelper::addEntry(JText::_('CONTENT_ELEMENTS'), 'index.php?option=com_joomfish&task=elements.show');
JSubMenuHelper::addEntry(JText::_('HELP_AND_HOWTO'), 'index.php?option=com_joomfish&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);
}
示例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);
}
示例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§ion=com_newsfeeds');
parent::_initialize($config);
}
示例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&task=translate.overview');
JHtmlSidebar::addEntry(JText::_('COM_FALANG_ORPHANS'), 'index.php?option=com_falang&task=translate.orphans');
JHtmlSidebar::addEntry(JText::_('COM_FALANG_CONTENT_ELEMENTS'), 'index.php?option=com_falang&task=elements.show', true);
JHtmlSidebar::addEntry(JText::_('COM_FALANG_HELP_AND_HOWTO'), 'index.php?option=com_falang&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&task=translate.overview');
JSubMenuHelper::addEntry(JText::_('COM_FALANG_ORPHANS'), 'index.php?option=com_falang&task=translate.orphans');
JSubMenuHelper::addEntry(JText::_('COM_FALANG_CONTENT_ELEMENTS'), 'index.php?option=com_falang&task=elements.show', true);
JSubMenuHelper::addEntry(JText::_('COM_FALANG_HELP_AND_HOWTO'), 'index.php?option=com_falang&task=help.show', false);
}
}
示例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);
}
示例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))));
}
示例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);}');
*/
}
示例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);
}
示例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);
}
示例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');
}
示例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);
}
示例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');
}