当前位置: 首页>>代码示例>>PHP>>正文


PHP JLToolBarHelper::addNew方法代码示例

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


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

示例1: addToolbar

 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_DIVS_TITLE'));
     JLToolBarHelper::addNew('division.add');
     JLToolBarHelper::editList('division.edit');
     JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_DIVISIONS_DELETE_WARNING'), 'division.remove');
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.joomleague', true);
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:13,代码来源:view.html.php

示例2: addToolbar

 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TREETOS_TITLE'), 'Tree');
     JLToolBarHelper::apply('treeto.saveshort');
     JLToolBarHelper::publishList('treeto.publish');
     JLToolBarHelper::unpublishList('treeto.unpublish');
     JToolBarHelper::divider();
     JLToolBarHelper::addNew('treeto.save');
     JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_TREETOS_WARNING'), 'treeto.remove');
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.joomleague', true);
 }
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:12,代码来源:view.html.php

示例3: addToolbar

 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TREETOS_TITLE'), 'Tree');
     JLToolBarHelper::apply('treeto.saveshort');
     JLToolBarHelper::publishList('treeto.publish');
     JLToolBarHelper::unpublishList('treeto.unpublish');
     JToolBarHelper::divider();
     JLToolBarHelper::addNew('treeto.save');
     JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_TREETOS_WARNING'), 'treeto.remove');
     JToolBarHelper::divider();
     JLToolBarHelper::onlinehelp();
     JToolBarHelper::preferences(JRequest::getCmd('option'));
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:13,代码来源:view.html.php

示例4: display

 function display($tpl = null)
 {
     $mainframe =& JFactory::getApplication();
     $db =& JFactory::getDBO();
     $uri =& JFactory::getURI();
     $document =& JFactory::getDocument();
     $option = JRequest::getCmd('option');
     $optiontext = strtoupper(JRequest::getCmd('option') . '_');
     $this->assignRef('optiontext', $optiontext);
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_ASSOCIATIONS_TITLE'), 'generic.png');
     // 		JToolBarHelper::addNewX();
     // 		JToolBarHelper::editListX();
     JLToolBarHelper::addNew('jlextassociation.add');
     JLToolBarHelper::editList('jlextassociation.edit');
     JToolBarHelper::custom('jlextassociation.import', 'upload', 'upload', JText::_('COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT'), false);
     JToolBarHelper::archiveList('jlextassociation.export', JText::_('COM_JOOMLEAGUE_GLOBAL_XML_EXPORT'));
     //JToolBarHelper::deleteList();
     JLToolBarHelper::deleteList('', 'jlextassociation.remove');
     JToolBarHelper::divider();
     JLToolBarHelper::onlinehelp();
     JToolBarHelper::preferences(JRequest::getCmd('option'));
     $filter_order = $mainframe->getUserStateFromRequest($option . 'assoc_filter_order', 'filter_order', 'objassoc.ordering', 'cmd');
     $filter_order_Dir = $mainframe->getUserStateFromRequest($option . 'assoc_filter_order_Dir', 'filter_order_Dir', '', 'word');
     $search = $mainframe->getUserStateFromRequest($option . 'assoc_search', 'search', '', 'string');
     $search = JString::strtolower($search);
     $items =& $this->get('Data');
     $total =& $this->get('Total');
     $pagination =& $this->get('Pagination');
     // table ordering
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     // search filter
     $lists['search'] = $search;
     $this->assignRef('user', JFactory::getUser());
     $this->assignRef('lists', $lists);
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('request_url', $uri->toString());
     parent::display($tpl);
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:41,代码来源:view.html.php


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