/** * 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); }
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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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(); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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(); }
/** * 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); }
/** * 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); }
/** * 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(); }
/** * Add the page title and toolbar. * */ protected function addToolbar() { // Set toolbar items for the page $edit = JRequest::getVar('edit', true); JLToolBarHelper::save('template.save'); JLToolBarHelper::apply('template.apply'); 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); }
/** * 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(); }
/** * 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(); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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'); JLToolBarHelper::save('person.save'); if (!$this->edit) { JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PERSON_TITLE')); 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'); JToolBarHelper::divider(); JLToolBarHelper::cancel('person.cancel', JText::_('COM_JOOMLEAGUE_GLOBAL_CLOSE')); } JToolBarHelper::divider(); JToolBarHelper::back(); JToolBarHelper::help('screen.joomleague', true); }
<?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;
/** * 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(); }
<?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++) {
/** * 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(); }
/** * 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); }
/** * 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(); }
/** * 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); }