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


PHP JToolbarHelper::back方法代码示例

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


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

示例1: registerToolbar

 function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYDISCUSS_REPORTS'), 'reports');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
     JToolbarHelper::divider();
     JToolbarHelper::deleteList(JText::_('COM_EASYBLOG_CONFIRM_DISCARD_REPORTS'), 'discard', JText::_('COM_EASYBLOG_DISCARD_REPORT_BUTTON'));
 }
开发者ID:alexinteam,项目名称:joomla3,代码行数:7,代码来源:view.html.php

示例2: addToolbar

    protected function addToolbar($layout = null) {
        switch ($layout) {
            case 'export':
                JToolbarHelper::title(JText::_('COM_PRP') . ': ' . JText::_('COM_PRP_VIEW_EXPORT_TABLE_EXPORT'));
                JToolbarHelper::back('JTOOLBAR_BACK', JRoute::_('index.php?option=com_prp&view=exports'), false);
                JToolbarHelper::custom('export.xlsx', 'xlsx', 'xlsx', '', false);
                JToolbarHelper::custom('export.xls', 'xls', 'xls', '', false);
                JFactory::getDocument()->addStyleDeclaration(
                    PRPHelperExport::getStyleDeclaration('xls') 
                    . "\n\n" .
                    PRPHelperExport::getStyleDeclaration('xlsx')
                );
                JFactory::getDocument()->addStyleSheet(JUri::root().'/media/com_prp/css/export.css');
                break;
            default:
                JFactory::getApplication()->input->set('hidemainmenu', true);

                $isNew = ($this->item->id == 0);
                $title_sufix = ($isNew)?'_NEW':'_EDIT';

                JToolbarHelper::title(JText::_('COM_PRP') . ': ' . JText::_('COM_PRP_VIEW_EXPORT'.$title_sufix));

                JToolbarHelper::save('export.save');

                JToolbarHelper::save2new('export.save2new');

                if ($isNew) {
                    JToolbarHelper::cancel('export.cancel');
                } else {
                    JToolbarHelper::cancel('export.cancel', 'JTOOLBAR_CLOSE');
                }
                break;
        }
    }
开发者ID:BillVGN,项目名称:PortalPRP,代码行数:34,代码来源:view.html.php

示例3: addToolbar

 protected function addToolbar()
 {
     $state = $this->get('State');
     $canDo = DeviceHelper::getActions();
     $bar = JToolBar::getInstance('toolbar');
     JToolbarHelper::title(JText::_('COM_DEVICE_MANAGER_DEVICES'), '');
     JToolbarHelper::back('COM_DEVICE_BUTTON_BACK', 'index.php?option=com_device');
 }
开发者ID:774878175,项目名称:joomla_gc,代码行数:8,代码来源:view.html.php

示例4: addToolbar

 protected function addToolbar()
 {
     $state = $this->get('State');
     $canDo = FolioHelper::getActions();
     $bar = JToolBar::getInstance('toolbar');
     JToolbarHelper::title(JText::_('COM_FOLIO_MANAGER_FOLIOS'), '');
     JToolbarHelper::back('COM_FOLIO_BUTTON_BACK', 'index.php?option=com_folio');
 }
开发者ID:rukin,项目名称:joomla,代码行数:8,代码来源:view.html.php

示例5: addToolbar

 public function addToolbar()
 {
     JToolbarHelper::Title('Absolventi - Triedy');
     JToolbarHelper::addNew('triedyAdmin.vytvorTriedu');
     JToolbarHelper::editList('triedyAdmin.upravTriedu');
     JToolBarHelper::deleteList('Are you sure you want to delete this Site Table?', 'triedyAdmin.delete');
     JToolbarHelper::back('Ucitelia', 'index.php?option=com_absolventi&view=ucitelialist');
     JToolbarHelper::back('CSV', 'index.php?option=com_absolventi&task=csv.csv');
 }
开发者ID:vladorf,项目名称:absolventi,代码行数:9,代码来源:view.html.php

示例6: display

 function display($tpl = null)
 {
     // @rule: Test for user access if on 1.6 and above
     if (EasyBlogHelper::getJoomlaVersion() >= '1.6') {
         if (!JFactory::getUser()->authorise('easyblog.manage.feeds', 'com_easyblog')) {
             JFactory::getApplication()->redirect('index.php', JText::_('JERROR_ALERTNOAUTHOR'), 'error');
             JFactory::getApplication()->close();
         }
     }
     //initialise variables
     $document = JFactory::getDocument();
     $user = JFactory::getUser();
     $mainframe = JFactory::getApplication();
     JHTML::_('behavior.tooltip');
     $layout = $this->getLayout();
     if ($layout != 'default') {
         $this->{$layout}($tpl);
         return;
     }
     JToolBarHelper::title(JText::_('COM_EASYBLOG_BLOGS_FEEDS_TITLE'), 'feeds');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
     JToolBarHelper::divider();
     JToolBarHelper::custom('addNew', 'new.png', 'new_f2.png', JText::_('COM_EASYBLOG_ADD_BUTTON'), false);
     JToolbarHelper::divider();
     JToolbarHelper::publishList('publish');
     JToolbarHelper::unpublishList('unpublish');
     JToolBarHelper::divider();
     JToolBarHelper::custom('download', 'download', 'download.png', JText::_('Execute'), false);
     JToolBarHelper::divider();
     JToolbarHelper::deleteList();
     $feeds = $this->get('Data');
     $pagination = $this->get('Pagination');
     $filter_state = $mainframe->getUserStateFromRequest('com_easyblog.categories.filter_state', 'filter_state', '*', 'word');
     $search = $mainframe->getUserStateFromRequest('com_easyblog.categories.search', 'search', '', 'string');
     $search = trim(JString::strtolower($search));
     $this->assign('state', JHTML::_('grid.state', $filter_state));
     $this->assign('search', $search);
     $this->assign('feeds', $feeds);
     $this->assign('pagination', $pagination);
     parent::display($tpl);
 }
开发者ID:alexinteam,项目名称:joomla3,代码行数:41,代码来源:view.html.php

示例7: viewList

 /**
  * Validates the data submitted based on the suffix provided
  * A controller for this plugin, you could say
  *
  * @param $task
  * @return html
  */
 function viewList()
 {
     $app = JFactory::getApplication();
     $option = 'com_j2store';
     $ns = $option . '.report';
     $html = "";
     JToolBarHelper::title(JText::_('J2STORE_REPORT') . '-' . JText::_('PLG_J2STORE_' . strtoupper($this->_element)), 'j2store-logo');
     JToolbarHelper::back('J2STORE_BACK_TO_REPORT', 'index.php?option=com_j2store&view=report');
     //JToolbarHelper::custom(JText::_('PLG_J2STORE_EXPORT_ORDERITEMS'), 'index.php?option=com_j2store&view=report&reportTask=export');
     J2StoreToolBar::_custom('export', 'new', 'new', 'J2STORE_EXPORT_ORDERS', false, false, 'reportTask');
     $vars = new JObject();
     $this->includeCustomModel('ReportOrderitems');
     $this->includeCustomTables();
     $model = JModelLegacy::getInstance('Reportorderitems', 'J2StoreModel');
     $model->setState('filter_search', $app->input->getString('filter_search'));
     $model->setState('filter_orderstatus', $app->input->getString('filter_orderstatus'));
     $model->setState('filter_order', $app->input->getString('filter_order'));
     $model->setState('filter_order_Dir', $app->input->getString('filter_order_Dir'));
     // Get the pagination request variables
     $limit = $app->getUserStateFromRequest('global.list.limit', 'limit', $app->getCfg('list_limit'), 'int');
     $limitstart = $app->getUserStateFromRequest($ns . '.limitstart', 'limitstart', 0, 'int');
     // In case limit has been changed, adjust limitstart accordingly
     $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0;
     $model->setState('limit', $limit);
     $model->setState('limitstart', $limitstart);
     $list = $model->getList();
     $vars->total = $model->getTotal();
     $vars->pagination = $model->getPagination();
     $vars->state = $model->getState();
     $vars->list = $list;
     $vars->params = JComponentHelper::getParams('com_j2store');
     $vars->orderStatus = $this->getOrderStatus();
     $id = $app->input->getInt('id', '0');
     $vars->id = $id;
     $form = array();
     $form['action'] = "index.php?option=com_j2store&view=report&task=view&id={$id}";
     $vars->form = $form;
     $html = $this->_getLayout('default', $vars);
     return $html;
 }
开发者ID:ForAEdesWeb,项目名称:AEW4,代码行数:47,代码来源:report_orderitems.php

示例8: addToolbar

 protected function addToolbar()
 {
     JToolbarHelper::title(JText::_('COM_BOOKPRO_VEHICLE_TYPE_MANAGER'));
     JToolbarHelper::apply('vehicletype.save');
     JToolbarHelper::back('Back', 'index.php?option=com_bookpro&view=vehicles');
 }
开发者ID:hixbotay,项目名称:executivetransport,代码行数:6,代码来源:view.html.php

示例9: renderToolbarElement

 /**
  * Render a toolbar element.
  *
  * @param   string  $type        The element type.
  * @param   mixed   $value       The element value.
  * @param   array   $attributes  The element attributes.
  *
  * @return  void
  *
  * @throws  InvalidArgumentException
  */
 private function renderToolbarElement($type, $value = null, array $attributes = array())
 {
     switch ($type) {
         case 'title':
             $icon = isset($attributes['icon']) ? $attributes['icon'] : 'generic.png';
             JToolbarHelper::title($value, $icon);
             break;
         case 'divider':
             JToolbarHelper::divider();
             break;
         case 'custom':
             $task = isset($attributes['task']) ? $attributes['task'] : '';
             $icon = isset($attributes['icon']) ? $attributes['icon'] : '';
             $iconOver = isset($attributes['icon_over']) ? $attributes['icon_over'] : '';
             $alt = isset($attributes['alt']) ? $attributes['alt'] : '';
             $listSelect = isset($attributes['list_select']) ? FOFStringUtils::toBool($attributes['list_select']) : true;
             JToolbarHelper::custom($task, $icon, $iconOver, $alt, $listSelect);
             break;
         case 'preview':
             $url = isset($attributes['url']) ? $attributes['url'] : '';
             $update_editors = isset($attributes['update_editors']) ? FOFStringUtils::toBool($attributes['update_editors']) : false;
             JToolbarHelper::preview($url, $update_editors);
             break;
         case 'help':
             if (!isset($attributes['help'])) {
                 throw new InvalidArgumentException('The help attribute is missing in the help button type.');
             }
             $ref = $attributes['help'];
             $com = isset($attributes['com']) ? FOFStringUtils::toBool($attributes['com']) : false;
             $override = isset($attributes['override']) ? $attributes['override'] : null;
             $component = isset($attributes['component']) ? $attributes['component'] : null;
             JToolbarHelper::help($ref, $com, $override, $component);
             break;
         case 'back':
             $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_BACK';
             $href = isset($attributes['href']) ? $attributes['href'] : 'javascript:history.back();';
             JToolbarHelper::back($alt, $href);
             break;
         case 'media_manager':
             $directory = isset($attributes['directory']) ? $attributes['directory'] : '';
             $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_UPLOAD';
             JToolbarHelper::media_manager($directory, $alt);
             break;
         case 'assign':
             $task = isset($attributes['task']) ? $attributes['task'] : 'assign';
             $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_ASSIGN';
             JToolbarHelper::assign($task, $alt);
             break;
         case 'new':
             if ($this->perms->create) {
                 $task = isset($attributes['task']) ? $attributes['task'] : 'add';
                 $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_NEW';
                 $check = isset($attributes['check']) ? FOFStringUtils::toBool($attributes['check']) : false;
                 JToolbarHelper::addNew($task, $alt, $check);
             }
             break;
         case 'publish':
             if ($this->perms->editstate) {
                 $task = isset($attributes['task']) ? $attributes['task'] : 'publish';
                 $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_PUBLISH';
                 $check = isset($attributes['check']) ? FOFStringUtils::toBool($attributes['check']) : false;
                 JToolbarHelper::publish($task, $alt, $check);
             }
             break;
         case 'publishList':
             if ($this->perms->editstate) {
                 $task = isset($attributes['task']) ? $attributes['task'] : 'publish';
                 $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_PUBLISH';
                 JToolbarHelper::publishList($task, $alt);
             }
             break;
         case 'unpublish':
             if ($this->perms->editstate) {
                 $task = isset($attributes['task']) ? $attributes['task'] : 'unpublish';
                 $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_UNPUBLISH';
                 $check = isset($attributes['check']) ? FOFStringUtils::toBool($attributes['check']) : false;
                 JToolbarHelper::unpublish($task, $alt, $check);
             }
             break;
         case 'unpublishList':
             if ($this->perms->editstate) {
                 $task = isset($attributes['task']) ? $attributes['task'] : 'unpublish';
                 $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_UNPUBLISH';
                 JToolbarHelper::unpublishList($task, $alt);
             }
             break;
         case 'archiveList':
             if ($this->perms->editstate) {
                 $task = isset($attributes['task']) ? $attributes['task'] : 'archive';
//.........这里部分代码省略.........
开发者ID:Tommar,项目名称:vino2,代码行数:101,代码来源:toolbar.php

示例10: function

        JToolbarHelper::addNewX($buttons[0], $button[2]);
    } else {
        if (pos(buttontask, '.edit') > 0) {
            JToolbarHelper::editListX($buttons[0], $button[2]);
        } else {
            if (pos(buttontask, '.delete') > 0) {
                JToolbarHelper::deleteListX('', $buttons[0], $button[2]);
            } else {
                if (pos(buttontask, '.save') > 0) {
                    JToolbarHelper::save($buttons[0], $button[2]);
                } else {
                    if (pos(buttontask, '.cancel') > 0) {
                        JToolbarHelper::cancel($buttons[0], $button[2]);
                    } else {
                        if (pos(buttontask, '.back') > 0) {
                            JToolbarHelper::back($buttons[0], $button[2]);
                        } else {
                            JToolbarHelper::custom($buttons[0], $buttons[1], $buttons[2], false);
                        }
                    }
                }
            }
        }
    }
}
?>
 
<script language="javascript" type="text/javascript">
btnClixk = function(task) {
		document.forms.adminForm.task.value = task;
		document.forms.adminForm.submit();
开发者ID:utopszkij,项目名称:keszlet,代码行数:31,代码来源:tmpl_show.php

示例11: UPLOAD_MENU

 function UPLOAD_MENU($act)
 {
     global $submenu_anders;
     if ($submenu_anders == 1) {
         JSubMenuHelper::addEntry(JText::_('JGA_CATEGORY_MANAGER'), 'index.php?option=com_joomgallery&amp;act=categories');
         JSubMenuHelper::addEntry(JText::_('JGA_PICTURE_MANAGER'), 'index.php?option=com_joomgallery&amp;act=pictures');
         JSubMenuHelper::addEntry(JText::_('JGA_COMMENTS_MANAGER'), 'index.php?option=com_joomgallery&amp;act=comments');
     }
     //ToolbarHelper::startTable();
     switch ($act) {
         case 'upload':
             JToolBarHelper::title(JText::_('JGA_PICTURE_UPLOAD_MANAGER'));
             if ($submenu_anders == 1) {
                 JSubMenuHelper::addEntry(JText::_('JGA_BATCH_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=batchupload');
                 JSubMenuHelper::addEntry(JText::_('JGA_FTP_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=ftpupload');
                 JSubMenuHelper::addEntry(JText::_('JGA_JAVA_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=jupload');
             }
             break;
         case 'batchupload':
             JToolBarHelper::title(JText::_('JGA_BATCH_UPLOAD_MANAGER'));
             if ($submenu_anders == 1) {
                 JSubMenuHelper::addEntry(JText::_('JGA_PICTURE_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=upload');
                 JSubMenuHelper::addEntry(JText::_('JGA_FTP_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=ftpupload');
                 JSubMenuHelper::addEntry(JText::_('JGA_JAVA_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=jupload');
             }
             break;
         case 'ftpupload':
             JToolBarHelper::title(JText::_('JGA_FTP_UPLOAD_MANAGER'));
             if ($submenu_anders == 1) {
                 JSubMenuHelper::addEntry(JText::_('JGA_PICTURE_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=upload');
                 JSubMenuHelper::addEntry(JText::_('JGA_BATCH_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=batchupload');
                 JSubMenuHelper::addEntry(JText::_('JGA_JAVA_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=jupload');
             }
             break;
         case 'jupload':
             JToolBarHelper::title(JText::_('JGA_JAVA_UPLOAD_MANAGER'));
             if ($submenu_anders == 1) {
                 JSubMenuHelper::addEntry(JText::_('JGA_PICTURE_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=upload');
                 JSubMenuHelper::addEntry(JText::_('JGA_BATCH_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=batchupload');
                 JSubMenuHelper::addEntry(JText::_('JGA_FTP_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=ftpupload');
             }
             break;
     }
     JToolbarHelper::back();
     JToolbarHelper::spacer();
     JToolbarHelper::divider();
     JToolbarHelper::spacer();
     JToolbarHelper::custom('cpanel', 'config.png', 'config.png', 'JGA_TOOLBAR_CPANEL', false);
     JToolbarHelper::spacer();
     //JToolbarHelper::endTable();
     if ($submenu_anders != 1) {
         return;
     }
     JSubMenuHelper::addEntry(JText::_('JGA_CONFIGURATION_MANAGER'), 'index.php?option=com_joomgallery&amp;act=configuration');
 }
开发者ID:planetangel,项目名称:Planet-Angel-Website,代码行数:55,代码来源:toolbar.joomgallery.html.php

示例12: onReportsBrowse

 public function onReportsBrowse()
 {
     $subtitle_key = 'COM_AKEEBASUBS_TITLE_' . strtoupper($this->input->getCmd('view', 'cpanel'));
     JToolBarHelper::title(JText::_('COM_AKEEBASUBS') . ' &ndash; <small>' . JText::_($subtitle_key) . '</small>', 'akeebasubs');
     JToolbarHelper::back('JTOOLBAR_BACK', 'index.php?option=com_akeebasubs&view=cpanel');
 }
开发者ID:jonatasmm,项目名称:akeebasubs,代码行数:6,代码来源:toolbar.php

示例13: registerToolbar

 public function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYBLOG_MIGRATORS'), 'migrators');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
     JToolbarHelper::divider();
     JToolBarHelper::custom('migrators.purge', 'delete.png', 'delete_f2.png', JText::_('COM_EASYBLOG_PURGE_HISTORY'), false);
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:7,代码来源:view.html.php

示例14: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @return void
  */
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_MARKETPLACE_HEADER_' . $this->getName()), 'marketplace');
     JToolbarHelper::back();
     MarketplaceHelper::addSubmenu($this->getName());
 }
开发者ID:bellodox,项目名称:joomla-marketplace-component,代码行数:11,代码来源:view.html.php

示例15: onAlices

 public function onAlices()
 {
     JToolBarHelper::title(JText::_('COM_AKEEBA_TITLE_ALICES'), 'akeeba');
     JToolbarHelper::back('JTOOLBAR_BACK', 'index.php?option=com_akeeba&view=cpanel');
 }
开发者ID:01J,项目名称:topm,代码行数:5,代码来源:toolbar.php


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