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


PHP JLToolBarHelper类代码示例

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


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

示例1: addToolbar

 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     if ($this->copy) {
         $toolbarTitle = JText::_('COM_JOOMLEAGUE_ADMIN_PROJECT_COPY_PROJECT');
     } else {
         $toolbarTitle = !$this->edit ? JText::_('COM_JOOMLEAGUE_ADMIN_PROJECT_ADD_NEW') : JText::_('COM_JOOMLEAGUE_ADMIN_PROJECT_EDIT') . ': ' . $this->form->getValue('name');
         JToolBarHelper::divider();
     }
     JToolBarHelper::title($toolbarTitle, 'jl-ProjectSettings');
     if (!$this->copy) {
         JLToolBarHelper::apply('project.apply');
         JLToolBarHelper::save('project.save');
     } else {
         JLToolBarHelper::save('project.copysave');
     }
     JToolBarHelper::divider();
     if (!$this->edit || $this->copy) {
         JLToolBarHelper::cancel('project.cancel');
     } else {
         // for existing items the button is renamed `close`
         JLToolBarHelper::cancel('project.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
     }
     JToolBarHelper::help('screen.joomleague', true);
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:28,代码来源:view.html.php

示例2: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PROJECTS_TITLE'), 'ProjectSettings');
     JToolBarHelper::divider();
     JLToolBarHelper::onlinehelp();
     JToolBarHelper::preferences(JRequest::getCmd('option'));
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:13,代码来源:view.html.php

示例3: addToolBar

 protected function addToolBar()
 {
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TREETO_TITLE'));
     JLToolBarHelper::save('treeto.save');
     JLToolBarHelper::apply('treeto.apply');
     JToolBarHelper::back('Back', 'index.php?option=com_joomleague&view=treetos&task=treeto.display');
     JToolBarHelper::help('screen.joomleague', true);
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:8,代码来源:view.html.php

示例4: display

 function display($tpl = null)
 {
     $mainframe =& JFactory::getApplication();
     // Get a refrence of the page instance in joomla
     $document =& JFactory::getDocument();
     $option = JRequest::getCmd('option');
     $optiontext = strtoupper(JRequest::getCmd('option') . '_');
     $this->assignRef('optiontext', $optiontext);
     $prediction_id = (int) $mainframe->getUserState($option . 'prediction_id');
     $lists = array();
     $db =& JFactory::getDBO();
     $uri =& JFactory::getURI();
     $items =& $this->get('Data');
     $total =& $this->get('Total');
     $pagination =& $this->get('Pagination');
     $predictiongame =& $this->getModel()->getPredictionGame($prediction_id);
     //echo '<pre>' . print_r( $predictiongame, true ) . '</pre>';
     $filter_order = $mainframe->getUserStateFromRequest($option . 'tmpl_filter_order', 'filter_order', 'tmpl.title', 'cmd');
     $filter_order_Dir = $mainframe->getUserStateFromRequest($option . 'tmpl_filter_order_Dir', 'filter_order_Dir', '', 'word');
     // table ordering
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     //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_PTMPLS_TITLE'), 'pred-cpanel');
     if ($prediction_id > 0) {
         JToolBarHelper::editListX('predictiontemplate.edit');
         //JToolBarHelper::save();  // TO BE FIXED: Marked out. Better an import Button should be added here if it is not master-template
         JToolBarHelper::divider();
         if ($prediction_id > 0 && $predictiongame->master_template) {
             JToolBarHelper::deleteList();
             //JToolBarHelper::deleteList( JText::_( 'Warning: all prediction-user-data and tipps of selected member will COMPLETELY be deleted!!! This is NOT reversible!!!' ) );
         } else {
             JToolBarHelper::custom('predictiontemplate.reset', 'restore', 'restore', JText::_('COM_JOOMLEAGUE_GLOBAL_RESET'), true);
         }
         JToolBarHelper::divider();
     }
     JLToolBarHelper::onlinehelp();
     $this->assignRef('user', JFactory::getUser());
     $this->assignRef('pred_id', $prediction_id);
     $this->assignRef('lists', $lists);
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('predictiongame', $predictiongame);
     $url = $uri->toString();
     $this->assignRef('request_url', $url);
     parent::display($tpl);
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:56,代码来源:view.html.php

示例5: 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


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