本文整理汇总了PHP中JLToolBarHelper::save方法的典型用法代码示例。如果您正苦于以下问题:PHP JLToolBarHelper::save方法的具体用法?PHP JLToolBarHelper::save怎么用?PHP JLToolBarHelper::save使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JLToolBarHelper
的用法示例。
在下文中一共展示了JLToolBarHelper::save方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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
protected function addToolBar()
{
JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TREETO_TITLE'));
JLToolBarHelper::save('treeto.save');
JLToolBarHelper::apply('treeto.apply');
JToolBarHelper::back('Back', 'index.php?option=com_joomleague&view=treetos&task=treeto.display');
JToolBarHelper::help('screen.joomleague', true);
}
示例3: addToolbar
/**
* Add the page title and toolbar
*/
protected function addToolbar()
{
// Set toolbar items for the page
JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TEMPLATES_TITLE'), 'FrontendSettings');
JLToolBarHelper::editList('template.edit');
JLToolBarHelper::save('template.save');
if ($this->projectws->master_template) {
JLToolBarHelper::deleteList('', 'template.remove');
} else {
JLToolBarHelper::custom('template.reset', 'restore', 'restore', JText::_('COM_JOOMLEAGUE_GLOBAL_RESET'));
}
JToolBarHelper::divider();
JToolBarHelper::help('screen.joomleague', true);
}
示例4: 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();
}
示例5: 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;
示例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();
}
示例7: defined
<?php
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tooltip');
// Set toolbar items for the page
//$edit = JRequest::getVar('edit',true);
JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TREETOMATCH_ASSIGN'));
JLToolBarHelper::save('treetomatch.save_matcheslist');
// for existing items the button is renamed `close` and the apply button is showed
//JLToolBarHelper::cancel( 'cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE' );
JToolBarHelper::back('Back', 'index.php?option=com_joomleague&view=treetonodes&task=treetonode.display');
JToolBarHelper::help('screen.joomleague', true);
$uri = JFactory::getURI();
?>
<!-- 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/');
?>
<script>
function submitbutton(pressbutton)
{
var form = $('adminForm');
if (pressbutton == 'cancel')
{
submitform( pressbutton );
return;
}
var mylist = document.getElementById('node_matcheslist');
for(var i=0; i<mylist.length; i++)
{
示例8: 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);
}