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


PHP JLToolBarHelper::cancel方法代码示例

本文整理汇总了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);
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:28,代码来源:view.html.php

示例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);
 }
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:19,代码来源:view.html.php

示例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();
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:21,代码来源:view.html.php

示例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();
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:12,代码来源:view.html.php

示例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');
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:31,代码来源:form.php

示例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);
 }
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:12,代码来源:view.html.php


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