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


PHP JLToolBarHelper::editList方法代码示例

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


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

 /**
  * Add the page title and toolbar.
  *
  * @since	1.7
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TEAMS_TITLE'), 'Teams');
     JLToolBarHelper::addNew('team.add');
     JLToolBarHelper::editList('team.edit');
     JLToolBarHelper::custom('team.copysave', 'copy.png', 'copy_f2.png', 'COM_JOOMLEAGUE_GLOBAL_COPY', true);
     JLToolBarHelper::custom('team.import', 'upload', 'upload', 'COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT', false);
     JLToolBarHelper::archiveList('team.export', 'COM_JOOMLEAGUE_GLOBAL_XML_EXPORT');
     JLToolBarHelper::deleteList('', 'team.remove');
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.joomleague', true);
 }
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:18,代码来源:view.html.php

示例3: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since	1.7
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_SEASONS_TITLE'), 'seasons');
     JLToolBarHelper::addNew('season.add');
     JLToolBarHelper::editList('season.edit');
     JLToolBarHelper::custom('season.import', 'upload', 'upload', JText::_('COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT'), false);
     JLToolBarHelper::archiveList('season.export', JText::_('COM_JOOMLEAGUE_GLOBAL_XML_EXPORT'));
     JLToolBarHelper::deleteList('', 'season.remove');
     JToolBarHelper::divider();
     JLToolBarHelper::onlinehelp();
     JToolBarHelper::preferences(JRequest::getCmd('option'));
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:18,代码来源: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_ROSTERPOSITIONS_TITLE'), 'generic.png');
     /*
         JToolBarHelper::addNewX();
     JToolBarHelper::editListX();
     JToolBarHelper::custom('import','upload','upload',JText::_('COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT'),false);
     JToolBarHelper::archiveList('export',JText::_('COM_JOOMLEAGUE_GLOBAL_XML_EXPORT'));
     JToolBarHelper::deleteList();
     JToolBarHelper::divider();
     */
     //    JLToolBarHelper::addNew('rosterposition.add');
     JToolBarHelper::custom('rosterposition.addhome', 'new', 'new', JText::_('COM_JOOMLEAGUE_ADMIN_ROSTERPOSITIONS_HOME'), false);
     JToolBarHelper::custom('rosterposition.addaway', 'new', 'new', JText::_('COM_JOOMLEAGUE_ADMIN_ROSTERPOSITIONS_AWAY'), false);
     JLToolBarHelper::editList('rosterposition.edit');
     JToolBarHelper::custom('rosterposition.import', 'upload', 'upload', JText::_('COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT'), false);
     JToolBarHelper::archiveList('rosterposition.export', JText::_('COM_JOOMLEAGUE_GLOBAL_XML_EXPORT'));
     //JToolBarHelper::deleteList();
     JLToolBarHelper::deleteList('', 'rosterposition.remove');
     JToolBarHelper::divider();
     JLToolBarHelper::onlinehelp();
     JToolBarHelper::preferences(JRequest::getCmd('option'));
     $db =& JFactory::getDBO();
     $uri =& JFactory::getURI();
     $filter_order = $mainframe->getUserStateFromRequest($option . 'l_filter_order', 'filter_order', 'obj.ordering', 'cmd');
     $filter_order_Dir = $mainframe->getUserStateFromRequest($option . 'l_filter_order_Dir', 'filter_order_Dir', '', 'word');
     $search = $mainframe->getUserStateFromRequest($option . 'l_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,代码行数:51,代码来源:view.html.php

示例5: _display

 function _display($tpl = null)
 {
     // 		$mainframe			=& JFactory::getApplication();
     // 		$option				= 'com_joomleague';
     $document = JFactory::getDocument();
     $option = JRequest::getCmd('option');
     $optiontext = strtoupper(JRequest::getCmd('option') . '_');
     $this->assignRef('optiontext', $optiontext);
     $mainframe = JFactory::getApplication();
     $prediction_id = (int) $mainframe->getUserState($option . 'prediction_id');
     //echo '#' . $prediction_id . '#<br />';
     $lists = array();
     $db =& JFactory::getDBO();
     $uri =& JFactory::getURI();
     $items =& $this->get('Data');
     $total =& $this->get('Total');
     $pagination =& $this->get('Pagination');
     //$model				=& $this->getModel();
     $filter_state = $mainframe->getUserStateFromRequest($option . 'tmb_filter_state', 'filter_state', '', 'word');
     $filter_order = $mainframe->getUserStateFromRequest($option . 'tmb_filter_order', 'filter_order', 'u.username', 'cmd');
     $filter_order_Dir = $mainframe->getUserStateFromRequest($option . 'tmb_filter_order_Dir', 'filter_order_Dir', '', 'word');
     $search = $mainframe->getUserStateFromRequest($option . 'tmb_search', 'search', '', 'string');
     $search = JString::strtolower($search);
     $baseurl = JURI::root();
     $document->addScript($baseurl . 'administrator/components/com_joomleague/assets/js/autocompleter/1_4/Autocompleter.js');
     $document->addScript($baseurl . 'administrator/components/com_joomleague/assets/js/autocompleter/1_4/Autocompleter.Request.js');
     $document->addScript($baseurl . 'administrator/components/com_joomleague/assets/js/autocompleter/1_4/Observer.js');
     $document->addScript($baseurl . 'administrator/components/com_joomleague/assets/js/autocompleter/1_4/quickaddteam.js');
     $document->addStyleSheet($baseurl . 'administrator/components/com_joomleague/assets/css/Autocompleter.css');
     // state filter
     $lists['state'] = JHTML::_('grid.state', $filter_state);
     // table ordering
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     // search filter
     $lists['search'] = $search;
     //build the html select list for prediction games
     $predictions[] = JHTML::_('select.option', '0', '- ' . JText::_('COM_JOOMLEAGUE_GLOBAL_SELECT_PRED_GAME') . ' -', 'value', 'text');
     if ($res =& $this->getModel()->getPredictionGames()) {
         $predictions = array_merge($predictions, $res);
     }
     $lists['predictions'] = JHTML::_('select.genericlist', $predictions, 'prediction_id', 'class="inputbox" onChange="this.form.submit();" ', 'value', 'text', $prediction_id);
     unset($res);
     // Set toolbar items for the page
     $stylelink = '<link rel="stylesheet" href="' . JURI::root() . 'administrator/components/com_joomleague/assets/css/jlextusericons.css' . '" type="text/css" />' . "\n";
     $document->addCustomTag($stylelink);
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PMEMBERS_TITLE'), 'pred-cpanel');
     JToolBarHelper::custom('predictionmember.reminder', 'send.png', 'send_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_PMEMBERS_SEND_REMINDER'), true);
     JToolBarHelper::divider();
     if ($prediction_id) {
         JLToolBarHelper::editList('predictionmember.edit');
         JToolBarHelper::custom('predictionmember.editlist', 'upload.png', 'upload_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_PMEMBERS_BUTTON_ASSIGN'), false);
         JToolBarHelper::divider();
     }
     JToolBarHelper::publishList('predictionmember.publish', JText::_('COM_JOOMLEAGUE_ADMIN_PMEMBERS_APPROVE'));
     JToolBarHelper::unpublishList('predictionmember.unpublish', JText::_('COM_JOOMLEAGUE_ADMIN_PMEMBERS_REJECT'));
     JToolBarHelper::divider();
     //JToolBarHelper::addNewX();
     //JToolBarHelper::divider();
     //JToolBarHelper::editListX();
     JToolBarHelper::deleteList('', 'predictionmember.remove');
     JToolBarHelper::divider();
     JLToolBarHelper::onlinehelp();
     $this->assignRef('user', JFactory::getUser());
     $this->assignRef('lists', $lists);
     if ($prediction_id) {
         $this->assignRef('items', $items);
     }
     $this->assignRef('pagination', $pagination);
     $url = $uri->toString();
     $this->assignRef('request_url', $url);
     parent::display($tpl);
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:73,代码来源:view.html.php


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