本文整理汇总了PHP中JLToolBarHelper::cancel方法的典型用法代码示例。如果您正苦于以下问题:PHP JLToolBarHelper::cancel方法的具体用法?PHP JLToolBarHelper::cancel怎么用?PHP JLToolBarHelper::cancel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JLToolBarHelper
的用法示例。
在下文中一共展示了JLToolBarHelper::cancel方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例2: addToolbar
/**
* Add the page title and toolbar.
*/
protected function addToolbar()
{
JLToolBarHelper::save('club.save');
if (!$this->edit) {
JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_CLUB_ADD_NEW'), 'clubs');
JToolBarHelper::divider();
JLToolBarHelper::cancel('club.cancel');
} else {
// for existing items the button is renamed `close` and the apply button is showed
JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_CLUB_EDIT') . ': ' . $this->form->getValue('name'), 'clubs');
JLToolBarHelper::apply('club.apply');
JToolBarHelper::divider();
JLToolBarHelper::cancel('club.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
}
JToolBarHelper::help('screen.joomleague', true);
}
示例3: addToolbar
/**
* Add the page title and toolbar.
*
* @since 1.7
*/
protected function addToolbar()
{
JToolBarHelper::title(JText::_('Edit project depending referee data'), 'Referees');
// Set toolbar items for the page
$edit = JRequest::getVar('edit', true);
$text = !$edit ? JText::_('COM_JOOMLEAGUE_GLOBAL_NEW') : JText::_('COM_JOOMLEAGUE_GLOBAL_EDIT');
JLToolBarHelper::save('projectreferee.save');
if (!$edit) {
JLToolBarHelper::cancel('projectreferee.cancel');
} else {
// for existing items the button is renamed `close` and the apply button is showed
JLToolBarHelper::apply('projectreferee.apply');
JLToolBarHelper::cancel('projectreferee.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
}
JLToolBarHelper::onlinehelp();
}
示例4: addToolbar_Editlist
/**
* Add the page title and toolbar.
*
* @since 1.7
*/
protected function addToolbar_Editlist()
{
JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_P_POSITION_EDIT_TITLE'), 'Positions');
JLToolBarHelper::save('projectposition.save_positionslist');
JLToolBarHelper::cancel('projectposition.cancel', JText::_('COM_JOOMLEAGUE_GLOBAL_CLOSE'));
JLToolBarHelper::onlinehelp();
}
示例5: defined
<?php
defined('_JEXEC') or die('Restricted access');
JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TEAMPLAYER_TITLE'));
// Set toolbar items for the page
$edit = JRequest::getVar('edit', true);
$text = !$edit ? JText::_('COM_JOOMLEAGUE_GLOBAL_NEW') : JText::_('COM_JOOMLEAGUE_GLOBAL_EDIT');
JLToolBarHelper::save('teamplayer.save');
if (!$edit) {
JLToolBarHelper::cancel('teamplayer.cancel');
} else {
// for existing items the button is renamed `close` and the apply button is showed
JLToolBarHelper::apply('teamplayer.apply');
JLToolBarHelper::cancel('teamplayer.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
}
JLToolBarHelper::onlinehelp();
?>
<!-- import the functions to move the events between selection lists -->
<?php
$version = urlencode(JoomleagueHelper::getVersion());
echo JHTML::script('JL_eventsediting.js?v=' . $version, 'administrator/components/com_joomleague/assets/js/');
?>
<form action="index.php" method="post" id="adminForm">
<div class="col50">
<?php
echo JHTML::_('tabs.start', 'tabs', array('useCookie' => 1));
echo JHTML::_('tabs.panel', JText::_('COM_JOOMLEAGUE_TABS_DETAILS'), 'panel1');
echo $this->loadTemplate('details');
echo JHTML::_('tabs.panel', JText::_('COM_JOOMLEAGUE_TABS_PICTURE'), 'panel2');
示例6: addToolbar_Editlist
/**
* Add the page title and toolbar.
*
* @since 1.7
*/
protected function addToolbar_Editlist()
{
JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_P_POSITION_EDIT_TITLE'), 'Positions');
JLToolBarHelper::save('projectposition.save_positionslist');
JLToolBarHelper::cancel('projectposition.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
JToolBarHelper::help('screen.joomleague', true);
}