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


PHP JToolBarHelper::back方法代码示例

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


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

示例1: display

 function display($tpl = null)
 {
     global $mainframe, $option;
     if ($this->getLayout() == 'print') {
         $this->_displayprint($tpl);
         return;
     }
     //initialise variables
     $db =& JFactory::getDBO();
     $elsettings = ELAdmin::config();
     $document =& JFactory::getDocument();
     $user =& JFactory::getUser();
     //get vars
     $filter_order = $mainframe->getUserStateFromRequest($option . '.attendees.filter_order', 'filter_order', 'u.username', 'cmd');
     $filter_order_Dir = $mainframe->getUserStateFromRequest($option . '.attendees.filter_order_Dir', 'filter_order_Dir', '', 'word');
     $filter = $mainframe->getUserStateFromRequest($option . '.attendees.filter', 'filter', '', 'int');
     $search = $mainframe->getUserStateFromRequest($option . '.attendees.search', 'search', '', 'string');
     $search = $db->getEscaped(trim(JString::strtolower($search)));
     //add css and submenu to document
     $document->addStyleSheet('components/com_eventlist/assets/css/eventlistbackend.css');
     //Create Submenu
     JSubMenuHelper::addEntry(JText::_('EVENTLIST'), 'index.php?option=com_eventlist');
     JSubMenuHelper::addEntry(JText::_('EVENTS'), 'index.php?option=com_eventlist&view=events');
     JSubMenuHelper::addEntry(JText::_('VENUES'), 'index.php?option=com_eventlist&view=venues');
     JSubMenuHelper::addEntry(JText::_('CATEGORIES'), 'index.php?option=com_eventlist&view=categories');
     JSubMenuHelper::addEntry(JText::_('ARCHIVESCREEN'), 'index.php?option=com_eventlist&view=archive');
     JSubMenuHelper::addEntry(JText::_('GROUPS'), 'index.php?option=com_eventlist&view=groups');
     JSubMenuHelper::addEntry(JText::_('HELP'), 'index.php?option=com_eventlist&view=help');
     if ($user->get('gid') > 24) {
         JSubMenuHelper::addEntry(JText::_('SETTINGS'), 'index.php?option=com_eventlist&controller=settings&task=edit');
     }
     //add toolbar
     JToolBarHelper::title(JText::_('REGISTERED USERS'), 'users');
     JToolBarHelper::deleteList();
     JToolBarHelper::spacer();
     JToolBarHelper::back();
     JToolBarHelper::spacer();
     JToolBarHelper::help('el.registereduser', true);
     // Get data from the model
     $rows =& $this->get('Data');
     $pageNav =& $this->get('Pagination');
     $event =& $this->get('Event');
     $event->dates = strftime($elsettings->formatdate, strtotime($event->dates));
     //build filter selectlist
     $filters = array();
     $filters[] = JHTML::_('select.option', '1', JText::_('NAME'));
     $filters[] = JHTML::_('select.option', '2', JText::_('USERNAME'));
     $lists['filter'] = JHTML::_('select.genericlist', $filters, 'filter', 'size="1" class="inputbox"', 'value', 'text', $filter);
     // search filter
     $lists['search'] = $search;
     // table ordering
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     //assign to template
     $this->assignRef('lists', $lists);
     $this->assignRef('rows', $rows);
     $this->assignRef('pageNav', $pageNav);
     $this->assignRef('event', $event);
     parent::display($tpl);
 }
开发者ID:RangerWalt,项目名称:ecci,代码行数:60,代码来源:view.html.php

示例2: registerToolbar

 public function registerToolbar()
 {
     $task = JRequest::getCmd('task');
     if ($task == 'labels.edit') {
         if ($this->label->id != 0) {
             JToolBarHelper::title(JText::_('COM_EASYDISCUSS_EDITING_LABEL'), 'labels');
         } else {
             JToolBarHelper::title(JText::_('COM_EASYDISCUSS_ADD_NEW_LABEL'), 'labels');
         }
         JToolBarHelper::back(JText::_('COM_EASYDISCUSS_BACK'), 'index.php?option=com_easydiscuss&view=labels');
         JToolBarHelper::divider();
         JToolBarHelper::custom('save', 'save.png', 'save_f2.png', JText::_('COM_EASYDISCUSS_SAVE_BUTTON'), false);
         JToolBarHelper::custom('savePublishNew', 'save.png', 'save_f2.png', JText::_('COM_EASYDISCUSS_SAVE_AND_NEW'), false);
         JToolBarHelper::divider();
         JToolBarHelper::cancel();
     } else {
         JToolBarHelper::title(JText::_('COM_EASYDISCUSS_LABELS'), 'labels');
         JToolBarHelper::custom('home', 'arrow-left', '', JText::_('COM_EASYDISCUSS_TOOLBAR_HOME'), false);
         JToolBarHelper::divider();
         JToolbarHelper::publishList();
         JToolbarHelper::unpublishList();
         JToolBarHelper::divider();
         JToolbarHelper::addNew('labels.edit');
         JToolbarHelper::deleteList();
     }
 }
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:26,代码来源:view.html.php

示例3: display

 function display($tpl = null)
 {
     JToolBarHelper::title(JText::_('JM_NEWSLETTER_SUPPORTED_EXTENSIONS'), 'MC_logo_48.png');
     JToolBarHelper::back();
     parent::display($tpl);
     require_once JPATH_COMPONENT . DS . 'helpers' . DS . 'footer.php';
 }
开发者ID:rogatnev-nikita,项目名称:cloudinterpreter,代码行数:7,代码来源:view.html.php

示例4: addToolbar

 /**
  * Add Toolbar
  */
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_JEM_UPDATECHECK_TITLE'), 'settings');
     JToolBarHelper::back();
     JToolBarHelper::divider();
     JToolBarHelper::help('update', true);
 }
开发者ID:JKoelman,项目名称:JEM-3,代码行数:10,代码来源:view.html.php

示例5: _default

 /**
  * The default layout, shows a list of profiles
  *
  */
 function _default()
 {
     // Get reference to profiles model
     $model =& $this->getModel('profiles');
     // Load list of profiles
     $profiles = $model->getProfilesList();
     $this->assign('profiles', $profiles);
     // Get profile ID
     $profileid = AEPlatform::getInstance()->get_active_profile();
     $this->assign('profileid', $profileid);
     // Get profile name
     $model->setId($profileid);
     $profile_data = $model->getProfile();
     $this->assign('profilename', $profile_data->description);
     // Add toolbar buttons
     JToolBarHelper::back('AKEEBA_CONTROLPANEL', 'index.php?option=' . JRequest::getCmd('option'));
     JToolBarHelper::spacer();
     JToolBarHelper::addNew();
     if (version_compare(JVERSION, '1.6.0', 'ge')) {
         JToolBarHelper::custom('copy', 'copy.png', 'copy_f2.png', 'JLIB_HTML_BATCH_COPY', false);
     } else {
         JToolBarHelper::custom('copy', 'copy.png', 'copy_f2.png', 'Copy', false);
     }
     JToolBarHelper::spacer();
     JToolBarHelper::deleteList();
     JToolBarHelper::spacer();
 }
开发者ID:bizanto,项目名称:Hooked,代码行数:31,代码来源:view.html.php

示例6: setToolBar

 /**
  * Private method to set the toolbar for this view
  * 
  * @access private
  * 
  * @return null
  **/
 public function setToolBar()
 {
     // Set the titlebar text
     JToolBarHelper::title(JText::_('COM_COMMUNITY_MAINTENANCE'), 'profiles');
     // Add the necessary buttons
     JToolBarHelper::back(JText::_('COM_COMMUNITY_HOME'), 'index.php?option=com_community');
 }
开发者ID:Simarpreet05,项目名称:joomla,代码行数:14,代码来源:view.html.php

示例7: display

	public function display()
	{
		JToolBarHelper::title(JText::_('AKEEBA').': <small>'.JText::_('SRPRESTORATION').'</small>','akeeba');
		JToolBarHelper::back('AKEEBA_CONTROLPANEL', 'index.php?option='.JRequest::getCmd('option'));
		
		// Add references to scripts and CSS
		AkeebaHelperIncludes::includeMedia(true);

		$task = JRequest::getVar('task','');
		$model =& $this->getModel();
		if($task == 'start')
		{
			$password = JRequest::getVar('password','','default','none',2);
			$this->assign('password', $password );	
			$this->setLayout('restore');
		}
		else
		{
			$model->validateRequest();
			$id					= $model->getId();
			$ftpparams			= $model->getFTPParams();
			$extractionmodes	= $model->getExtractionModes();
			
			$this->assign('id', $id);
			$this->assign('ftpparams', $ftpparams);
			$this->assign('extractionmodes', $extractionmodes);
			$this->assignRef('info', $model->info);
		}

		// Add live help
		AkeebaHelperIncludes::addHelp();

		parent::display();
	}
开发者ID:rkern21,项目名称:videoeditor,代码行数:34,代码来源:view.html.php

示例8: display

 function display()
 {
     $doc =& JFactory::getDocument();
     $style = " .icon-48-job_posts {background-image:url(components/com_jobboard/images/job_posts.png); no-repeat; }";
     $doc->addStyleDeclaration($style);
     JToolBarHelper::title(JText::_('COM_JOBBOARD_USERS'), 'job_posts.png');
     JToolBarHelper::publishList('publish', JText::_('COM_JOBBOARD_JOB_POST_ACTIVATE'));
     JToolBarHelper::unpublishList('unpublish', JText::_('COM_JOBBOARD_JOB_POST_DEACTIVATE'));
     JToolBarHelper::back();
     $view = JRequest::getVar('view');
     if (!$view) {
         JRequest::setVar('view', 'users');
     }
     JobBoardToolbarHelper::setToolbarLinks('users');
     $users_model =& $this->getModel('Users');
     $gid = JRequest::getInt('selrow', 0);
     if ($gid > 0) {
         $app =& JFactory::getApplication();
         if ($users_model->setUserGroup(JRequest::getInt('seluser', 0), $gid)) {
             $app->enqueueMessage(JText::sprintf('COM_JOBBOARD_JOB_USERS_GRP_CHANGE_SUCCESS', $gid), 'message');
         } else {
             $this->enqueueMessage(JText::sprintf('COM_JOBBOARD_JOB_USERS_GRP_CHANGE_ERR', $gid), 'error');
         }
     }
     $view =& $this->getView('users', 'html');
     $view->setModel($users_model, true);
     $view->display();
 }
开发者ID:Rayvid,项目名称:joomla-jobboard,代码行数:28,代码来源:users.php

示例9: display

 function display($tpl = null)
 {
     $cid = JRequest::getVar('cid', array(0), 'get', 'array');
     $edit = JRequest::getVar('edit', true);
     $me = JFactory::getUser();
     JArrayHelper::toInteger($cid, array(0));
     $db = JFactory::getDBO();
     $user = JTable::getInstance('ExtUser', 'KunenaImporterTable');
     $user->load($cid[0]);
     $importer = $this->getModel('import');
     $items = $importer->findPotentialUsers($user, true);
     $myuser = JFactory::getUser();
     $acl = JFactory::getACL();
     // Check for post data in the event that we are returning
     // from a unsuccessful attempt to save data
     /*		$post = JRequest::get('post');
     		if ( $post ) {
     			$user->bind($post);
     		}*/
     // build the html select list
     $lists['block'] = JHTML::_('select.booleanlist', 'block', 'class="inputbox" size="1"', $user->get('block'));
     // build the html select list
     $lists['sendEmail'] = JHTML::_('select.booleanlist', 'sendEmail', 'class="inputbox" size="1"', $user->get('sendEmail'));
     $this->assignRef('me', $me);
     $this->assignRef('lists', $lists);
     $this->assignRef('user', $user);
     $this->assignRef('items', $items);
     JToolBarHelper::makeDefault('select', 'Select');
     JToolBarHelper::back();
     parent::display($tpl);
 }
开发者ID:adoucette,项目名称:com_kunenaimporter,代码行数:31,代码来源:view.html.php

示例10: registerToolbar

 function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_KOMENTO_MAIL_QUEUE'), 'mailq');
     JToolBarHelper::back(JText::_('COM_KOMENTO_ADMIN_HOME'), 'index.php?option=com_komento');
     JToolBarHelper::divider();
     JToolBarHelper::custom('purge', 'purge', 'icon-32-unpublish.png', 'COM_KOMENTO_PURGE_ITEMS', false);
 }
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:7,代码来源:view.html.php

示例11: displayShow

 function displayShow($tpl = null)
 {
     JToolBarHelper::title($this->order->order_number, 'generic.png');
     JToolBarHelper::back();
     JToolBarHelper::custom('send', 'send', 'send', _JSHOP_SEND_MAIL, false);
     parent::display($tpl);
 }
开发者ID:ngogiangthanh,项目名称:damtvnewversion,代码行数:7,代码来源:view.html.php

示例12: 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_DBTOOLS_TITLE'), 'config.png');
     JToolBarHelper::back();
     JToolBarHelper::help('screen.joomleague', true);
 }
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:12,代码来源:view.html.php

示例13: _displaylist

 function _displaylist($tpl = null)
 {
     $document = JFactory::getDocument();
     $logo = '<img src="' . JURI::root() . 'administrator/components/com_alphauserpoints/assets/images/icon-48-alphauserpoints.png" />&nbsp;&nbsp;';
     JToolBarHelper::title($logo . 'AlphaUserPoints :: ' . JText::_('AUP_ACTIVITY') . ': ' . $this->name, 'searchtext');
     getCpanelToolbar();
     JToolBarHelper::back('Back');
     JToolBarHelper::divider();
     if (JFactory::getUser()->authorise('core.edit', 'com_alphauserpoints')) {
         JToolBarHelper::editList('edituserdetails');
     }
     if (JFactory::getUser()->authorise('core.delete', 'com_alphauserpoints')) {
         JToolBarHelper::custom('deleteuserdetails', 'trash.png', 'delete.png', JText::_('AUP_DELETE'));
         JToolBarHelper::custom('deleteuserallactivities', 'delete.png', 'delete.png', JText::_('AUP_DELETE_ALL'), false);
         JToolBarHelper::divider();
     }
     if (JFactory::getUser()->authorise('core.create', 'com_alphauserpoints')) {
         JToolBarHelper::custom('exportallactivitiesuser', 'upload.png', 'upload.png', JText::_('AUP_EXPORT_ACTIVITIES'), false);
     }
     JToolBarHelper::divider();
     $bar = JToolBar::getInstance('toolbar');
     JHtml::_('bootstrap.modal', 'collapseModal');
     $title = JText::_('AUP_CUSTOM_POINTS');
     $dhtml = "<button data-toggle=\"modal\" data-target=\"#generatorModal\" class=\"btn btn-small\">\r\n\t\t\t\t\t<i class=\"icon-apply icon-white\" title=\"{$title}\"></i>\r\n\t\t\t\t\t{$title}</button>";
     $bar->appendButton('Custom', $dhtml, 'applycustom');
     //$bar->appendButton( 'Popup', 'apply', JText::_('AUP_CUSTOM_POINTS'), 'index.php?option=com_alphauserpoints&task=applycustom&layout=modal&tmpl=component&cid='.$this->cid.'&name='.$this->name, 800, 460, 0, 0, 'window.top.location.reload(true);document.location.reload(true);' );
     getPrefHelpToolbar();
     $this->assignRef('userDetails', $this->userDetails);
     $pagination = new JPagination($this->total, $this->limitstart, $this->limit);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('name', $this->name);
     parent::display($tpl);
 }
开发者ID:q0821,项目名称:esportshop,代码行数:33,代码来源:view.html.php

示例14: display

 function display($tpl = null)
 {
     $icon = 'statistics.png';
     JToolbarHelper::title(JText::_('COM_SEF_STATISTICS'), $icon);
     JToolBarHelper::back('COM_SEF_BACK', 'index.php?option=com_sef');
     parent::display($tpl);
 }
开发者ID:andreassetiawanhartanto,项目名称:PDKKI,代码行数:7,代码来源:view.html.php

示例15: onBrowse

    protected function onBrowse($tpl = null)
    {
        $model = $this->getModel();
        $state = $model->getState('scanstate', false);
        $total = $model->totalFolders;
        $done = $model->doneFolders;
        if ($state) {
            if ($total > 0) {
                $percent = min(max(round(100 * $done / $total), 1), 100);
            }
            $more = true;
        } else {
            $percent = 100;
            $more = false;
            JToolBarHelper::back('JTOOLBAR_BACK', 'index.php?option=com_admintools');
        }
        $this->more = $more;
        $this->percentage = $percent;
        $this->setLayout('default');
        if ($more) {
            $script = <<<JS


;// This comment is intentionally put here to prevent badly written plugins from causing a Javascript error
// due to missing trailing semicolon and/or newline in their code.
(function(\$){
\t\$(document).ready(function(){
\t\tdocument.forms.adminForm.submit();
\t})
})(akeeba.jQuery);

JS;
            JFactory::getDocument()->addScriptDeclaration($script);
        }
    }
开发者ID:neoandrew1000,项目名称:crao_journal,代码行数:35,代码来源:view.html.php


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