當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。