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


PHP JLToolBarHelper::onlinehelp方法代码示例

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


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

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

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

示例3: _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

示例4: defined

<?php

defined('_JEXEC') or die('Restricted access');
JHTML::_('behavior.tooltip');
JHTML::_('behavior.modal');
jimport('joomla.html.pane');
JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TREETONODE_TITLE'));
JLToolBarHelper::save('treetonode.save');
JLToolBarHelper::apply('treetonode.apply');
JToolBarHelper::back('Back', 'index.php?option=com_joomleague&view=treetonodes&task=treetonode.display');
JLToolBarHelper::custom('treetonode.unpublishnode', 'delete.png', 'delete_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_TREETONODES_UNPUBLISH'), false);
JLToolBarHelper::onlinehelp();
?>

<script>
		function submitbutton(pressbutton) {
			var form = $('adminForm');
			if (pressbutton == 'cancel') {
				submitform(pressbutton);
				return;
			}
			submitform(pressbutton);
			return;
		}

</script>

<style type="text/css">
	table.paramlist td.paramlist_key {
		width: 92px;
		text-align: left;
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:31,代码来源:form.php

示例5: _displayDefault

 function _displayDefault($tpl)
 {
     //global $mainframe, $option;
     $mainframe =& JFactory::getApplication();
     $option = JRequest::getCmd('option');
     $db =& JFactory::getDBO();
     $uri =& JFactory::getURI();
     $user =& JFactory::getUser();
     // Get the view name from the query string
     $viewName = JRequest::getVar("view");
     // 		$model =& $this->getModel('project') ;
     // 		$projectdata =& $this->get('Data');
     // 		$this->assignRef( 'name',		$projectdata->name);
     $model =& $this->getModel();
     $model->checkStartExtension();
     $project = $mainframe->getUserState($option . 'project');
     $this->assignRef('project', $project);
     $config =& JComponentHelper::getParams('com_media');
     //JLToolBarHelper::custom('jlextdfbnetplayerimport.description','featured.png','featured._f2.png',JText::_('COM_JOOMLEAGUE_ADMIN_DFBNET_IMPORT_DESCRIPTION'),false);
     $this->assignRef('request_url', $uri->toString());
     $this->assignRef('config', $config);
     $revisionDate = '2011-04-28 - 12:00';
     $this->assignRef('revisionDate', $revisionDate);
     $import_version = 'NEW';
     $this->assignRef('import_version', $import_version);
     /*
     // Special HTML workaround to get send popup working
     $pfad = JURI::root().'media/com_joomleague/description/'.$viewName.'.pdf';
     $send='<a class="toolbar button validate modal" rel="{handler: \'iframe\', size: {x: 800, y: 600}}" onclick="return mySelect();"'.
        ' href="'.$pfad.'"><span title="send" class="icon-32-featured"></span>'.JText::_('Onlinehilfe').'</a>';
     
     $bar=& JToolBar::getInstance( 'toolbar' );
     $bar->appendButton('Custom',$send);
     */
     JLToolBarHelper::onlinehelp();
     parent::display($tpl);
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:37,代码来源:view.html.php

示例6: addToolbar_Editlist

 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar_Editlist()
 {
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PROJECTTEAMS_ASSIGN'));
     JLToolBarHelper::save('projectteam.save_teamslist');
     // for existing items the button is renamed `close` and the apply button is showed
     JLToolBarHelper::cancel('projectteam.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
     JLToolBarHelper::onlinehelp();
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:14,代码来源:view.html.php


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