コード例 #1
0
ファイル: view.html.php プロジェクト: hfmprs/JoomLeague
 /**
  * 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
0
ファイル: view.html.php プロジェクト: hfmprs/JoomLeague
 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_P_TEAM_TITLE') . ': ' . $this->project_team->name);
     JLToolBarHelper::apply('projectteam.apply');
     JLToolBarHelper::save('projectteam.save');
     JLToolBarHelper::cancel('projectteam.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.joomleague', true);
 }
コード例 #3
0
ファイル: view.html.php プロジェクト: hfmprs/JoomLeague
 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     //create the toolbar
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_SETTINGS_TITLE'), 'jl-FrontendSettings');
     JLToolBarHelper::apply('settings.apply');
     JLToolBarHelper::save('settings.save');
     JLToolBarHelper::cancel('settings.cancel');
     JToolBarHelper::spacer();
     JToolBarHelper::help('screen.joomleague', true);
 }
コード例 #4
0
ファイル: view.html.php プロジェクト: hfmprs/JoomLeague
 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     $edit = $this->input->get('edit', true);
     $text = !$edit ? JText::_('COM_JOOMLEAGUE_GLOBAL_NEW') : JText::_('COM_JOOMLEAGUE_GLOBAL_EDIT') . ': ' . JText::_($this->projectws->name) . ' / ' . $this->division->name;
     // Set toolbar items for the page
     JToolBarHelper::title($text);
     JLToolBarHelper::save('division.save');
     if (!$edit) {
         JLToolBarHelper::cancel('division.cancel');
     } else {
         JLToolBarHelper::apply('division.apply');
         JLToolBarHelper::cancel('division.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
     }
     JToolBarHelper::help('screen.joomleague', true);
 }
コード例 #5
0
ファイル: view.html.php プロジェクト: hfmprs/JoomLeague
 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     $edit = $this->input->get('edit', true);
     $text = !$edit ? JText::_('COM_JOOMLEAGUE_GLOBAL_NEW') : JText::_('COM_JOOMLEAGUE_GLOBAL_EDIT');
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_ROUND_TITLE') . ': ' . $this->matchday->name, 'clubs', 'jl-Matchdays');
     JLToolBarHelper::apply('round.apply');
     JLToolBarHelper::save('round.save');
     if (!$edit) {
         JLToolBarHelper::cancel('round.cancel');
     } else {
         JLToolBarHelper::cancel('round.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
     }
     JToolBarHelper::help('screen.joomleague', true);
 }
コード例 #6
0
ファイル: view.html.php プロジェクト: Heart1010/JoomLeague
 /**
  * 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);
 }
コード例 #7
0
 /**
  * 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();
 }
コード例 #8
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     $edit = JRequest::getVar('edit', true);
     $text = !$edit ? JText::_('COM_JOOMLEAGUE_GLOBAL_NEW') : JText::_('COM_JOOMLEAGUE_GLOBAL_EDIT');
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_ROUND_TITLE'), 'Matchdays');
     JLToolBarHelper::save('round.save');
     JLToolBarHelper::apply('round.apply');
     if (!$edit) {
         JLToolBarHelper::cancel('round.cancel');
     } else {
         // for existing items the button is renamed `close`
         JLToolBarHelper::cancel('round.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
     }
     JToolBarHelper::help('screen.joomleague', true);
 }
コード例 #9
0
ファイル: view.html.php プロジェクト: hfmprs/JoomLeague
 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     $text = !$this->edit ? JText::_('COM_JOOMLEAGUE_GLOBAL_NEW') : JText::_('COM_JOOMLEAGUE_GLOBAL_EDIT') . ': ' . JText::_($this->form->getValue('name'));
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_STAT_TITLE') . ': <small><small>[ ' . $text . ' ]</small></small>', 'jl-statistics');
     if (!$this->edit) {
         JLToolBarHelper::apply('statistic.apply');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('statistic.cancel');
     } else {
         JLToolBarHelper::apply('statistic.apply');
         JLToolBarHelper::save('statistic.save');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('statistic.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
     }
     JToolBarHelper::help('screen.joomleague', true);
 }
コード例 #10
0
ファイル: view.html.php プロジェクト: hfmprs/JoomLeague
 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     $edit = $this->input->get('edit', true);
     $text = !$edit ? JText::_('COM_JOOMLEAGUE_GLOBAL_NEW') : JText::_('COM_JOOMLEAGUE_GLOBAL_EDIT');
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_EVENTTYPE_EVENT') . ': <small><small>[ ' . $text . ' ]</small></small>', 'jl-events');
     if (!$edit) {
         JLToolBarHelper::save('eventtype.save');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('eventtype.cancel');
     } else {
         JLToolBarHelper::apply('eventtype.apply');
         JLToolBarHelper::save('eventtype.save');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('eventtype.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
     }
     JToolBarHelper::help('screen.joomleague', true);
 }
コード例 #11
0
ファイル: view.html.php プロジェクト: Heart1010/JoomLeague
 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     $edit = JRequest::getVar('edit', true);
     $text = !$edit ? JText::_('COM_JOOMLEAGUE_GLOBAL_NEW') : JText::_('COM_JOOMLEAGUE_GLOBAL_EDIT') . ': ' . JText::_($this->form->getValue('name'));
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_EVENTTYPE_EVENT') . ': <small><small>[ ' . $text . ' ]</small></small>', 'events');
     JLToolBarHelper::save('eventtype.save');
     if (!$edit) {
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('eventtype.cancel');
     } else {
         // for existing items the button is renamed `close` and the apply button is showed
         JLToolBarHelper::apply('eventtype.apply');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('eventtype.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
     }
     JToolBarHelper::help('screen.joomleague', true);
 }
コード例 #12
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.7
  */
 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'), 'clubs');
         JLToolBarHelper::apply('club.apply');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('club.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
     }
     JToolBarHelper::divider();
     JToolBarHelper::back();
     JLToolBarHelper::onlinehelp();
 }
コード例 #13
0
ファイル: view.html.php プロジェクト: hfmprs/JoomLeague
 /**
  * Add the page title and toolbar.
  *
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     $edit = JRequest::getVar('edit', true);
     JLToolBarHelper::apply('template.apply');
     JLToolBarHelper::save('template.save');
     if (!$edit) {
         JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TEMPLATE_ADD_NEW'));
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('template.cancel');
     } else {
         JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TEMPLATE_EDIT') . ': ' . $this->form->getName());
         JLToolBarHelper::custom('template.reset', 'restore', 'restore', 'COM_JOOMLEAGUE_GLOBAL_RESET');
         JToolBarHelper::divider();
         // for existing items the button is renamed `close`
         JLToolBarHelper::cancel('template.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
     }
     JToolBarHelper::help('screen.joomleague', true);
 }
コード例 #14
0
ファイル: view.html.php プロジェクト: hfmprs/JoomLeague
 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     $edit = $this->input->get('edit', true);
     $text = !$edit ? JText::_('COM_JOOMLEAGUE_GLOBAL_NEW') : JText::_('COM_JOOMLEAGUE_GLOBAL_EDIT');
     if (!$edit) {
         JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PLAYGROUND_ADD_NEW'), 'jl-playground');
         JLToolBarHelper::save('playground.save');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('playground.cancel');
     } else {
         JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PLAYGROUND_EDIT'), 'jl-playground');
         JLToolBarHelper::apply('playground.apply');
         JLToolBarHelper::save('playground.save');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('playground.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
     }
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.joomleague', true);
 }
コード例 #15
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.7
  */
 protected function addToolbar()
 {
     // 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('league.save');
     if (!$edit) {
         JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_LEAGUE_ADD_NEW'), 'leagues');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('league.cancel');
     } else {
         // for existing items the button is renamed `close` and the apply button is showed
         JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_LEAGUE_EDIT'), 'leagues');
         JLToolBarHelper::apply('league.apply');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('league.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
     }
     JToolBarHelper::divider();
     JLToolBarHelper::onlinehelp();
 }
コード例 #16
0
ファイル: view.html.php プロジェクト: hfmprs/JoomLeague
 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     $edit = $this->input->get('edit', true);
     $text = !$edit ? JText::_('COM_JOOMLEAGUE_GLOBAL_NEW') : JText::_('COM_JOOMLEAGUE_GLOBAL_EDIT');
     if (!$edit) {
         JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_SEASON_ADD_NEW'), 'jl-seasons');
         JLToolBarHelper::save('season.save');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('season.cancel');
     } else {
         JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_SEASON_EDIT') . ': ' . $this->form->getValue('name'), 'jl-seasons');
         JLToolBarHelper::apply('season.apply');
         JLToolBarHelper::save('season.save');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('season.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
     }
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.joomleague', true);
 }
コード例 #17
0
ファイル: view.html.php プロジェクト: hfmprs/JoomLeague
 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     $edit = $this->input->get('edit', true);
     $text = !$edit ? JText::_('COM_JOOMLEAGUE_GLOBAL_NEW') : JText::_('COM_JOOMLEAGUE_GLOBAL_EDIT');
     if (!$edit) {
         JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_SPORTSTYPE_ADD_NEW'), 'jl-sportstypes');
         JLToolBarHelper::save('sportstype.save');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('sportstype.cancel');
     } else {
         // for existing items the button is renamed `close` and the apply button is showed
         JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_SPORTSTYPE_EDIT') . ': ' . JText::_($this->form->getValue('name')), 'jl-sportstypes');
         JLToolBarHelper::apply('sportstype.apply');
         JLToolBarHelper::save('sportstype.save');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('sportstype.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
     }
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.joomleague', true);
 }
コード例 #18
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.7
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     $edit = JRequest::getVar('edit', true);
     JLToolBarHelper::save('predictiontemplate.save');
     JLToolBarHelper::apply('predictiontemplate.apply');
     if (!$edit) {
         JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PREDICTION_TEMPLATE_ADD_NEW'));
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('predictiontemplate.cancel');
     } else {
         JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PREDICTION_TEMPLATE_EDIT'), 'FrontendSettings');
         JToolBarHelper::divider();
         // for existing items the button is renamed `close`
         JLToolBarHelper::cancel('predictiontemplate.cancel', JText::_('COM_JOOMLEAGUE_GLOBAL_CLOSE'));
     }
     JLToolBarHelper::onlinehelp();
 }
コード例 #19
0
 /**
  * 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();
 }
コード例 #20
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.7
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     $edit = JRequest::getVar('edit', true);
     $option = JRequest::getCmd('option');
     $params = JComponentHelper::getParams($option);
     $default_name_format = $params->get("name_format");
     $name = JoomleagueHelper::formatName(null, $this->project_teamstaff->firstname, $this->project_teamstaff->nickname, $this->project_teamstaff->lastname, $default_name_format);
     $text = !$edit ? JText::_('COM_JOOMLEAGUE_GLOBAL_NEW') : JText::_('COM_JOOMLEAGUE_ADMIN_TEAMSTAFF_TITLE') . ': ' . $name;
     JToolBarHelper::title($text);
     JLToolBarHelper::save('teamstaff.save');
     if (!$edit) {
         JLToolBarHelper::cancel('teamstaff.cancel');
     } else {
         // for existing items the button is renamed `close` and the apply button is showed
         JLToolBarHelper::apply('teamstaff.apply');
         JLToolBarHelper::cancel('teamstaff.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
     }
     JToolBarHelper::back();
     JToolBarHelper::help('screen.joomleague', true);
 }
コード例 #21
0
ファイル: view.html.php プロジェクト: Heart1010/JoomLeague
 /**
  * Add the page title and toolbar.
  *
  * @since	1.7
  */
 protected function addToolbar()
 {
     $edit = JRequest::getVar('edit', true);
     $text = !$edit ? JText::_('New') : JText::_('Edit') . ': ' . JText::_($this->projectws->name) . ' / ' . $this->division->name;
     // Set toolbar items for the page
     JToolBarHelper::title($text);
     JLToolBarHelper::save('division.save');
     if (!$edit) {
         JLToolBarHelper::cancel('division.cancel');
     } else {
         // for existing items the button is renamed `close` and the apply button is showed
         JLToolBarHelper::apply('division.apply');
         JLToolBarHelper::cancel('division.cancel', 'Close');
     }
     JToolBarHelper::help('screen.joomleague', true);
 }
コード例 #22
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.7
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     $text = !$this->edit ? JText::_('COM_JOOMLEAGUE_GLOBAL_NEW') : JText::_('COM_JOOMLEAGUE_GLOBAL_EDIT');
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_STAT_TITLE') . ': <small><small>[ ' . $text . ' ]</small></small>', 'statistics.png');
     if (!$this->edit) {
         JLToolBarHelper::apply('statistic.apply');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('statistic.cancel');
     } else {
         // for existing items the button is renamed `close` and the apply button is showed
         JLToolBarHelper::save('statistic.save');
         JLToolBarHelper::apply('statistic.apply');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('statistic.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
     }
     JLToolBarHelper::onlinehelp();
 }
コード例 #23
0
<?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');
コード例 #24
0
 /**
  * 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();
 }
コード例 #25
0
ファイル: view.html.php プロジェクト: Heart1010/JoomLeague
 /**
  * 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);
 }
コード例 #26
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.7
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     $edit = JRequest::getVar('edit', true);
     $text = !$edit ? JText::_('COM_JOOMLEAGUE_GLOBAL_NEW') : JText::_('COM_JOOMLEAGUE_GLOBAL_EDIT');
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TEAM') . ': <small><small>[ ' . $text . ' ]</small></small>', 'Teams');
     JLToolBarHelper::save('team.save');
     if (!$edit) {
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('team.cancel');
     } else {
         // for existing items the button is renamed `close` and the apply button is showed
         JLToolBarHelper::apply('team.apply');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('team.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
     }
     //JToolBarHelper::help( 'screen.joomleague.edit' );
     JLToolBarHelper::onlinehelp();
 }
コード例 #27
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.7
  */
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_P_TEAM_TITLE'));
     JLToolBarHelper::save('projectteam.save');
     JLToolBarHelper::apply('projectteam.apply');
     JLToolBarHelper::cancel('projectteam.cancel', JText::_('COM_JOOMLEAGUE_GLOBAL_CLOSE'));
     JToolBarHelper::divider();
     JLToolBarHelper::onlinehelp();
 }
コード例 #28
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.7
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     $text = !$this->edit ? JText::_('COM_JOOMLEAGUE_GLOBAL_NEW') : JText::_('COM_JOOMLEAGUE_GLOBAL_EDIT');
     JLToolBarHelper::save('person.save');
     if (!$this->edit) {
         JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PERSON_TITLE'));
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('person.cancel');
     } else {
         // for existing items the button is renamed `close` and the apply button is showed
         JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PERSON_TITLE2'));
         JLToolBarHelper::apply('person.apply');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('person.cancel', JText::_('COM_JOOMLEAGUE_GLOBAL_CLOSE'));
     }
     JToolBarHelper::divider();
     JToolBarHelper::back();
     JLToolBarHelper::onlinehelp();
 }
コード例 #29
0
ファイル: view.html.php プロジェクト: hfmprs/JoomLeague
 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     $text = !$this->edit ? JText::_('COM_JOOMLEAGUE_GLOBAL_NEW') : JText::_('COM_JOOMLEAGUE_GLOBAL_EDIT');
     if (!$this->edit) {
         JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PERSON_TITLE'));
         JLToolBarHelper::save('person.save');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('person.cancel');
     } else {
         $option = JRequest::getCmd('option');
         $params = JComponentHelper::getParams($option);
         $default_name_format = $params->get("name_format");
         // for existing items the button is renamed `close` and the apply button is showed
         $name = JoomleagueHelper::formatName(null, $this->form->getValue('firstname'), $this->form->getValue('nickname'), $this->form->getValue('lastname'), $default_name_format);
         JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PERSON_TITLE2') . ': ' . $name);
         JLToolBarHelper::apply('person.apply');
         JLToolBarHelper::save('person.save');
         JToolBarHelper::divider();
         JLToolBarHelper::cancel('person.cancel', JText::_('COM_JOOMLEAGUE_GLOBAL_CLOSE'));
     }
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.joomleague', true);
 }