本文整理汇总了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'));
}
示例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;
}
}
示例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');
}
示例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');
}
示例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');
}
示例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);
}
示例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;
}
示例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');
}
示例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';
//.........这里部分代码省略.........
示例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();
示例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&act=categories');
JSubMenuHelper::addEntry(JText::_('JGA_PICTURE_MANAGER'), 'index.php?option=com_joomgallery&act=pictures');
JSubMenuHelper::addEntry(JText::_('JGA_COMMENTS_MANAGER'), 'index.php?option=com_joomgallery&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&act=batchupload');
JSubMenuHelper::addEntry(JText::_('JGA_FTP_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&act=ftpupload');
JSubMenuHelper::addEntry(JText::_('JGA_JAVA_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&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&act=upload');
JSubMenuHelper::addEntry(JText::_('JGA_FTP_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&act=ftpupload');
JSubMenuHelper::addEntry(JText::_('JGA_JAVA_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&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&act=upload');
JSubMenuHelper::addEntry(JText::_('JGA_BATCH_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&act=batchupload');
JSubMenuHelper::addEntry(JText::_('JGA_JAVA_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&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&act=upload');
JSubMenuHelper::addEntry(JText::_('JGA_BATCH_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&act=batchupload');
JSubMenuHelper::addEntry(JText::_('JGA_FTP_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&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&act=configuration');
}
示例12: onReportsBrowse
public function onReportsBrowse()
{
$subtitle_key = 'COM_AKEEBASUBS_TITLE_' . strtoupper($this->input->getCmd('view', 'cpanel'));
JToolBarHelper::title(JText::_('COM_AKEEBASUBS') . ' – <small>' . JText::_($subtitle_key) . '</small>', 'akeebasubs');
JToolbarHelper::back('JTOOLBAR_BACK', 'index.php?option=com_akeebasubs&view=cpanel');
}
示例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);
}
示例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());
}
示例15: onAlices
public function onAlices()
{
JToolBarHelper::title(JText::_('COM_AKEEBA_TITLE_ALICES'), 'akeeba');
JToolbarHelper::back('JTOOLBAR_BACK', 'index.php?option=com_akeeba&view=cpanel');
}