/** * Add the page title and toolbar. */ protected function addToolbar() { JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_SPORTSTYPES_TITLE'), 'jl-sportstypes'); JLToolBarHelper::addNew('sportstype.add'); JLToolBarHelper::editList('sportstype.edit'); JLToolBarHelper::custom('sportstype.import', 'upload', 'upload', 'COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT', false); JLToolBarHelper::archiveList('sportstype.export', 'COM_JOOMLEAGUE_GLOBAL_XML_EXPORT'); JLToolBarHelper::deleteList('', 'sportstype.remove'); JToolBarHelper::divider(); 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_CLUBS_TITLE'), 'jl-clubs'); JLToolBarHelper::addNew('club.add'); JLToolBarHelper::editList('club.edit'); JLToolBarHelper::custom('club.import', 'upload', 'upload', 'COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT', false); JLToolBarHelper::archiveList('club.export', 'COM_JOOMLEAGUE_GLOBAL_XML_EXPORT'); JLToolBarHelper::deleteList('', 'club.remove'); JToolBarHelper::divider(); JToolBarHelper::help('screen.joomleague', true); }
/** * Add the page title and toolbar. * * @since 1.7 */ protected function addToolbar() { // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_SPORTSTYPES_TITLE'), 'sportstypes'); JLToolBarHelper::addNewX('sportstype.add'); JLToolBarHelper::editListX('sportstype.edit'); JLToolBarHelper::custom('sportstype.import', 'upload', 'upload', JText::_('COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT'), false); JLToolBarHelper::archiveList('sportstype.export', JText::_('COM_JOOMLEAGUE_GLOBAL_XML_EXPORT')); JLToolBarHelper::deleteList('', 'sportstype.remove'); JToolBarHelper::divider(); JLToolBarHelper::onlinehelp(); JToolBarHelper::preferences(JRequest::getCmd('option')); }
/** * Add the page title and toolbar. * * @since 1.7 */ protected function addToolbar() { // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TEAMS_TITLE'), 'Teams'); JLToolBarHelper::addNew('team.add'); JLToolBarHelper::editList('team.edit'); JLToolBarHelper::custom('team.copysave', 'copy.png', 'copy_f2.png', 'COM_JOOMLEAGUE_GLOBAL_COPY', true); JLToolBarHelper::custom('team.import', 'upload', 'upload', 'COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT', false); JLToolBarHelper::archiveList('team.export', 'COM_JOOMLEAGUE_GLOBAL_XML_EXPORT'); JLToolBarHelper::deleteList('', 'team.remove'); JToolBarHelper::divider(); JToolBarHelper::help('screen.joomleague', true); }
/** * Add the page title and toolbar. * * @since 1.7 */ protected function addToolbar() { // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TEAMS_TITLE'), 'Teams'); JLToolBarHelper::addNew('team.add'); JLToolBarHelper::editList('team.edit'); JLToolBarHelper::custom('team.copysave', 'copy.png', 'copy_f2.png', JText::_('COM_JOOMLEAGUE_GLOBAL_COPY'), true); JLToolBarHelper::custom('team.import', 'upload', 'upload', JText::_('COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT'), false); JLToolBarHelper::archiveList('team.export', JText::_('COM_JOOMLEAGUE_GLOBAL_XML_EXPORT')); JLToolBarHelper::deleteList('', 'team.remove'); JToolBarHelper::divider(); JLToolBarHelper::onlinehelp(); JToolBarHelper::preferences(JRequest::getCmd('option')); }
/** * Add the page title and toolbar. */ protected function addToolbar() { JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_STATISTICS_TITLE'), 'jl-statistics'); JLToolBarHelper::addNew('statistic.add'); JLToolBarHelper::editList('statistic.edit'); JLToolBarHelper::publishList(); JLToolBarHelper::unpublishList(); JToolBarHelper::divider(); JLToolBarHelper::custom('statistic.import', 'upload', 'upload', 'COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT', false); JLToolBarHelper::archiveList('statistic.export', 'COM_JOOMLEAGUE_GLOBAL_XML_EXPORT'); JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_STATISTICS_DELETE_WARNING'), 'statistic.fulldelete', 'COM_JOOMLEAGUE_ADMIN_STATISTICS_FULL_DELETE'); JToolBarHelper::divider(); 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() { JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TSTAFFS_TITLE')); JLToolBarHelper::publishList('teamstaff.publish'); JLToolBarHelper::unpublishList('teamstaff.unpublish'); JLToolBarHelper::apply('teamstaff.saveshort', 'COM_JOOMLEAGUE_ADMIN_TSTAFFS_APPLY'); JToolBarHelper::divider(); JLToolBarHelper::custom('teamstaff.assign', 'upload.png', 'upload_f2.png', 'COM_JOOMLEAGUE_ADMIN_TSTAFFS_ASSIGN', false); JLToolBarHelper::custom('teamstaff.unassign', 'cancel.png', 'cancel_f2.png', 'COM_JOOMLEAGUE_ADMIN_TSTAFFS_UNASSIGN', false); JToolBarHelper::divider(); JToolBarHelper::back('COM_JOOMLEAGUE_ADMIN_TSTAFFS_BACK', 'index.php?option=com_joomleague&view=projectteams&task=projectteam.display'); JToolBarHelper::divider(); JToolBarHelper::help('screen.joomleague', true); }
/** * Add the page title and toolbar. */ protected function addToolbar() { JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_POSITIONS_TITLE'), 'jl-Positions'); JLToolBarHelper::addNew('position.add'); JLToolBarHelper::editList('position.edit'); JLToolBarHelper::publishList('position.publish'); JLToolBarHelper::unpublishList('position.unpublish'); JToolBarHelper::divider(); JLToolBarHelper::apply('position.saveshort'); JLToolBarHelper::custom('position.import', 'upload', 'upload', JText::_('COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT'), false); JLToolBarHelper::archiveList('position.export', JText::_('COM_JOOMLEAGUE_GLOBAL_XML_EXPORT')); JLToolBarHelper::deleteList('', 'position.remove'); JToolBarHelper::divider(); JToolBarHelper::help('screen.joomleague', true); }
/** * Add the page title and toolbar. * * @since 1.7 */ protected function addToolbar() { // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_STATISTICS_TITLE'), 'statistics'); JLToolBarHelper::publishList(); JLToolBarHelper::unpublishList(); JToolBarHelper::divider(); JLToolBarHelper::editList('statistic.edit'); JLToolBarHelper::addNew('statistic.add'); JLToolBarHelper::custom('statistic.import', 'upload', 'upload', JText::_('COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT'), false); JLToolBarHelper::archiveList('statistic.export', JText::_('COM_JOOMLEAGUE_GLOBAL_XML_EXPORT')); JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_STATISTICS_DELETE_WARNING'), 'statistic.fulldelete', JTEXT::_('COM_JOOMLEAGUE_ADMIN_STATISTICS_FULL_DELETE')); JToolBarHelper::divider(); JLToolBarHelper::onlinehelp(); JToolBarHelper::preferences(JRequest::getCmd('option')); }
/** * Add the page title and toolbar. */ protected function addToolbar() { // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_SEASONS_TITLE'), 'seasons'); JLToolBarHelper::addNew('season.add'); JLToolBarHelper::editList('season.edit'); JToolBarHelper::divider(); JLToolBarHelper::publishList('season.publish'); JLToolBarHelper::unpublishList('season.unpublish'); JToolBarHelper::divider(); JLToolBarHelper::custom('season.import', 'upload', 'upload', 'COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT', false); JLToolBarHelper::archiveList('season.export', 'COM_JOOMLEAGUE_GLOBAL_XML_EXPORT'); JToolBarHelper::divider(); JLToolBarHelper::archiveList('season.archive'); JLToolBarHelper::trash('season.trash'); JLToolBarHelper::deleteList('', 'season.remove'); JToolBarHelper::divider(); JToolBarHelper::help('screen.joomleague', true); }
/** * 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); }
/** * Add the page title and toolbar. */ protected function addToolbar() { $massadd = $this->input->getInt('massadd', 0); // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_MATCHES_TITLE'), 'jl-Matchdays'); if (!$massadd) { JLToolBarHelper::addNew('match.addmatch', 'COM_JOOMLEAGUE_ADMIN_MATCHES_MASSADD_ADD_MATCH'); JLToolBarHelper::custom('match.massadd', 'new.png', 'new_f2.png', 'COM_JOOMLEAGUE_ADMIN_MATCHES_MASSADD_MATCHES', false); JLToolBarHelper::apply('match.saveshort'); JToolBarHelper::divider(); JLToolBarHelper::publishList('match.publish'); JLToolBarHelper::unpublishList('match.unpublish'); JToolBarHelper::divider(); JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_MATCHES_MASSADD_WARNING'), 'match.remove'); JToolBarHelper::divider(); JToolBarHelper::back('Back', 'index.php?option=com_joomleague&view=rounds&task=round.display'); } else { JLToolBarHelper::custom('match.cancelmassadd', 'cancel.png', 'cancel_f2.png', 'COM_JOOMLEAGUE_ADMIN_MATCHES_MASSADD_CANCEL_MATCHADD', false); } JToolBarHelper::help('screen.joomleague', true); }
/** * Add the page title and toolbar. * * @since 1.7 */ protected function addToolbar() { // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_P_POSITION_TITLE'), 'Positions'); JLToolBarHelper::custom('projectposition.assign', 'upload.png', 'upload_f2.png', 'COM_JOOMLEAGUE_ADMIN_P_POSITION_BUTTON_UN_ASSIGN', false); JToolBarHelper::divider(); 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_ROUNDS_TITLE'), 'jl-Matchdays'); if (!$this->massadd) { JLToolBarHelper::addNew('round.save'); JLToolBarHelper::apply('round.saveshort'); JToolBarHelper::divider(); JLToolBarHelper::custom('round.massadd', 'new.png', 'new_f2.png', 'COM_JOOMLEAGUE_ADMIN_ROUNDS_MASSADD_BUTTON', false); $teams = $this->get('projectteams'); if ($teams && count($teams) > 0) { JLToolBarHelper::addNew('round.populate', 'COM_JOOMLEAGUE_ADMIN_ROUNDS_POPULATE_BUTTON', false); } JToolBarHelper::divider(); JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_DELETE_WARNING'), 'round.deletematches', 'COM_JOOMLEAGUE_ADMIN_ROUNDS_MASSDEL_BUTTON'); JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_DELETE_WARNING'), 'round.remove'); JToolBarHelper::divider(); } else { JLToolBarHelper::custom('round.cancelmassadd', 'cancel.png', 'cancel_f2.png', 'COM_JOOMLEAGUE_ADMIN_ROUNDS_MASSADD_CANCEL', false); } JToolBarHelper::help('screen.joomleague', true); }
/** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_TITLE'), 'Matchdays'); if (!$this->massadd) { //JLToolBarHelper::custom('round.roundrobin','purge.png','purge_f2.png',JText::_('COM_JOOMLEAGUE_ADMIN_ROUND_ROBIN_MASSADD_BUTTON'),false); JLToolBarHelper::publishList('round.publish'); JLToolBarHelper::unpublishList('round.unpublish'); JToolBarHelper::divider(); JLToolBarHelper::custom('round.populate', 'purge.png', 'purge_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_POPULATE_BUTTON'), false); JToolBarHelper::divider(); JLToolBarHelper::apply('round.saveshort'); JToolBarHelper::divider(); JLToolBarHelper::custom('round.massadd', 'new.png', 'new_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_MASSADD_BUTTON'), false); //JLToolBarHelper::addNew('round.populate','purge.png','purge_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_POPULATE_BUTTON'), false); JLToolBarHelper::addNew('round.save'); JToolBarHelper::divider(); JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_DELETE_WARNING'), 'round.deletematches', JText::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_MASSDEL_BUTTON')); JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_DELETE_WARNING'), 'round.remove'); JToolBarHelper::divider(); } else { JLToolBarHelper::custom('round.cancelmassadd', 'cancel.png', 'cancel_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_MASSADD_CANCEL'), false); } JLToolBarHelper::onlinehelp(); JToolBarHelper::preferences(JRequest::getCmd('option')); }
private function _displayForm($tpl) { $app = JFactory::getApplication(); $jinput = $app->input; $mtime = microtime(); $mtime = explode(" ", $mtime); $mtime = $mtime[1] + $mtime[0]; $starttime = $mtime; $option = 'com_joomleague'; $document = JFactory::getDocument(); $db = JFactory::getDbo(); $uri = JFactory::getURI(); $model = JModelLegacy::getInstance('jlxmlimport', 'joomleaguemodel'); $data = $model->getData(); $uploadArray = $app->getUserState($option . 'uploadArray', array()); $tzValue = isset($data['project']->timezone) ? $data['project']->timezone : null; $zones = DateTimeZone::listIdentifiers(); $options = array(); $options[] = JHTML::_('select.option', '', '- ' . JText::_('SELECT_TIMEZONE') . ' -'); foreach ($zones as $zone) { if (strpos($zone, "/") === false && strpos($zone, "UTC") === false) { continue; } if (strpos($zone, "Etc") === 0) { continue; } $options[] = JHTML::_('select.option', $zone, $zone); } $lists['timezone'] = JHtml::_('select.genericlist', $options, 'timezone', ' class="inputbox"', 'value', 'text', $tzValue); // build the html select booleanlist for published $publishedValue = isset($data['project']->published) ? $data['project']->published : null; $lists['published'] = JHtml::_('select.booleanlist', 'published', ' ', $publishedValue); $countries = new Countries(); $this->uploadArray = $uploadArray; $this->starttime = $starttime; $this->countries = $countries->getCountries(); $this->request_url = $uri->toString(); $this->xml = $data; $this->leagues = $model->getLeagueList(); $this->seasons = $model->getSeasonList(); $this->sportstypes = $model->getSportsTypeList(); $this->admins = $model->getUserList(true); $this->editors = $model->getUserList(false); $this->templates = $model->getTemplateList(); $this->teams = $model->getTeamList(); $this->clubs = $model->getClubList(); $this->events = $model->getEventList(); $this->positions = $model->getPositionList(); $this->parentpositions = $model->getParentPositionList(); $this->playgrounds = $model->getPlaygroundList(); $this->persons = $model->getPersonList(); $this->statistics = $model->getStatisticList(); $this->OldCountries = $model->getCountryByOldid(); $this->import_version = $model->import_version; $this->lists = $lists; // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_XML_IMPORT_TITLE_2_3'), 'generic.png'); // task image mouseover_img alt_text_for_image check_that_standard_list_item_is_checked JLToolBarHelper::custom('jlxmlimport.insert', 'upload', 'upload', Jtext::_('COM_JOOMLEAGUE_ADMIN_XML_IMPORT_START_BUTTON'), false); // --> bij clicken op import wordt de insert view geactiveerd JToolBarHelper::back(); JToolBarHelper::help('screen.joomleague', true); parent::display($tpl); }
/** * Add the page title and toolbar. * * @since 1.7 */ protected function addToolbar() { // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TSTAFFS_TITLE')); JLToolBarHelper::publishList('teamstaff.publish'); JLToolBarHelper::unpublishList('teamstaff.unpublish'); JLToolBarHelper::apply('teamstaff.saveshort', JText::_('COM_JOOMLEAGUE_ADMIN_TSTAFFS_APPLY')); JToolBarHelper::divider(); JLToolBarHelper::custom('teamstaff.assign', 'upload.png', 'upload_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_TSTAFFS_ASSIGN'), false); JLToolBarHelper::custom('teamstaff.unassign', 'cancel.png', 'cancel_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_TSTAFFS_UNASSIGN'), false); JToolBarHelper::divider(); JToolBarHelper::back('COM_JOOMLEAGUE_ADMIN_TSTAFFS_BACK', 'index.php?option=com_joomleague&view=projectteams&task=projectteam.display'); JToolBarHelper::divider(); JLToolBarHelper::onlinehelp(); JToolBarHelper::preferences(JRequest::getCmd('option')); }
/** * Add the page title and toolbar. * * @since 1.7 */ protected function addToolbar() { $massadd = JRequest::getInt('massadd', 0); // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_MATCHES_TITLE'), 'Matchdays'); if (!$massadd) { JLToolBarHelper::publishList('match.publish'); JLToolBarHelper::unpublishList('match.unpublish'); JToolBarHelper::divider(); JLToolBarHelper::apply('match.saveshort'); JToolBarHelper::divider(); JLToolBarHelper::custom('match.massadd', 'new.png', 'new_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_MATCHES_MASSADD_MATCHES'), false); JLToolBarHelper::addNewX('match.addmatch', JText::_('COM_JOOMLEAGUE_ADMIN_MATCHES_MASSADD_ADD_MATCH')); JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_MATCHES_MASSADD_WARNING'), 'match.remove'); JToolBarHelper::divider(); JToolBarHelper::back('JPREV', 'index.php?option=com_joomleague&view=rounds&task=round.display'); } else { JLToolBarHelper::custom('match.cancelmassadd', 'cancel.png', 'cancel_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_MATCHES_MASSADD_CANCEL_MATCHADD'), false); } JLToolBarHelper::onlinehelp(); JToolBarHelper::preferences(JRequest::getCmd('option')); }
/** * Add the page title and toolbar. * * @since 1.7 */ protected function addToolbar() { // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PERSONS_TITLE'), 'user'); JLToolBarHelper::publishList('person.publish'); JLToolBarHelper::unpublishList('person.unpublish'); JToolBarHelper::divider(); JLToolBarHelper::apply('person.saveshort'); JLToolBarHelper::editList('person.edit'); JLToolBarHelper::addNew('person.add'); JLToolBarHelper::custom('person.import', 'upload', 'upload', JText::_('COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT'), false); JLToolBarHelper::archiveList('person.export', JText::_('COM_JOOMLEAGUE_GLOBAL_XML_EXPORT')); JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_PERSONS_DELETE_WARNING'), 'person.remove'); JToolBarHelper::divider(); JLToolBarHelper::onlinehelp(); JToolBarHelper::preferences(JRequest::getCmd('option')); }
/** * Add the page title and toolbar. */ protected function addToolbar() { JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PREF_TITLE'), 'jl-Referees'); JLToolBarHelper::apply('projectreferee.saveshort', 'COM_JOOMLEAGUE_ADMIN_PREF_APPLY'); JLToolBarHelper::custom('projectreferee.assign', 'upload.png', 'upload_f2.png', 'COM_JOOMLEAGUE_ADMIN_PREF_ASSIGN', false); JLToolBarHelper::custom('projectreferee.unassign', 'cancel.png', 'cancel_f2.png', 'COM_JOOMLEAGUE_ADMIN_PREF_UNASSIGN', false); JToolBarHelper::divider(); 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_TREETOMATCH_TITLE')); //JLToolBarHelper::save(); JLToolBarHelper::custom('treetomatch.editlist', 'upload.png', 'upload_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_TREETOMATCH_BUTTON_ASSIGN'), false); JToolBarHelper::back('Back', 'index.php?option=com_joomleague&view=treetonodes&task=treetonode.display'); JLToolBarHelper::onlinehelp(); ?> <fieldset class="adminform"> <legend><?php echo JText::sprintf('COM_JOOMLEAGUE_ADMIN_MATCHES_TITLE', '<i>' . $this->nodews->node . '</i>', '<i>' . $this->projectws->name . '</i>'); ?> </legend> <!-- Start games list --> <form action="<?php echo $this->request_url; ?> " method="post" id='adminForm'> <?php $colspan = 9; ?> <table class='adminlist' border='0'> <thead> <tr> <th width="5" style="vertical-align: top; "><?php echo count($this->match) . '/' . $this->pagination->total;
/** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PROJECTTEAMS_TITLE')); JLToolBarHelper::apply('projectteam.saveshort'); JLToolBarHelper::custom('projectteam.changeteams', 'move.png', 'move_f2.png', 'COM_JOOMLEAGUE_ADMIN_PROJECTTEAMS_BUTTON_CHANGE_TEAMS', false); JLToolBarHelper::custom('projectteam.editlist', 'upload.png', 'upload_f2.png', 'COM_JOOMLEAGUE_ADMIN_PROJECTTEAMS_BUTTON_ASSIGN', false); JLToolBarHelper::custom('projectteam.copy', 'copy', 'copy', 'COM_JOOMLEAGUE_GLOBAL_COPY', true); JToolBarHelper::divider(); JToolBarHelper::help('screen.joomleague', true); }
/** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PROJECTS_TITLE'), 'ProjectSettings'); JLToolBarHelper::publishList('project.publish'); JLToolBarHelper::unpublishList('project.unpublish'); JToolBarHelper::divider(); JLToolBarHelper::addNew('project.add'); JLToolBarHelper::editList('project.edit'); JLToolBarHelper::custom('project.import', 'upload', 'upload', Jtext::_('COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT'), false); JLToolBarHelper::archiveList('project.export', JText::_('COM_JOOMLEAGUE_GLOBAL_XML_EXPORT')); JLToolBarHelper::custom('project.copy', 'copy.png', 'copy_f2.png', JText::_('COM_JOOMLEAGUE_GLOBAL_COPY'), false); JLToolBarHelper::deleteList('', 'project.remove'); JToolBarHelper::divider(); JLToolBarHelper::onlinehelp(); JToolBarHelper::preferences(JRequest::getCmd('option')); }
/** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PROJECTTEAMS_TITLE')); JLToolBarHelper::deleteList('', 'projectteam.remove'); JLToolBarHelper::apply('projectteam.saveshort'); JLToolBarHelper::custom('projectteam.changeteams', 'move.png', 'move_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_PROJECTTEAMS_BUTTON_CHANGE_TEAMS'), false); JLToolBarHelper::custom('projectteam.editlist', 'upload.png', 'upload_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_PROJECTTEAMS_BUTTON_ASSIGN'), false); JLToolBarHelper::custom('projectteam.copy', 'copy', 'copy', JText::_('COM_JOOMLEAGUE_GLOBAL_COPY'), true); JToolBarHelper::divider(); JLToolBarHelper::onlinehelp(); JToolBarHelper::preferences(JRequest::getCmd('option')); }
/** * Add the page title and toolbar. */ protected function addToolbar() { // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PROJECTS_TITLE'), 'jl-ProjectSettings'); JLToolBarHelper::addNew('project.add'); JLToolBarHelper::custom('project.copy', 'copy.png', 'copy_f2.png', 'COM_JOOMLEAGUE_GLOBAL_COPY', false); JLToolBarHelper::editList('project.edit'); JToolBarHelper::divider(); JLToolBarHelper::publishList('project.publish'); JLToolBarHelper::unpublishList('project.unpublish'); JToolBarHelper::divider(); JLToolBarHelper::custom('project.import', 'upload', 'upload', 'COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT', false); JLToolBarHelper::archiveList('project.export', 'COM_JOOMLEAGUE_GLOBAL_XML_EXPORT'); JToolBarHelper::divider(); JLToolBarHelper::archiveList('project.archive'); JLToolBarHelper::trash('project.trash'); JLToolBarHelper::deleteList('COM_JOOMLEAGUE_ADMIN_PROJECTS_DELETE_WARNING', 'project.remove'); JToolBarHelper::divider(); 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;
JHTML::_('behavior.modal'); $istree = $this->treetows->tree_i; $isleafed = $this->treetows->leafed; //load navigation menu $this->addTemplatePath(JPATH_COMPONENT . DS . 'views' . DS . 'joomleague'); // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TREETONODES_TITLE')); if ($isleafed == 1) { JLToolBarHelper::apply('treetonode.saveshort', JText::_('COM_JOOMLEAGUE_ADMIN_TREETONODES_SAVE_APPLY'), false); JLToolBarHelper::custom('treetonode.removenode', 'delete.png', 'delete_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_TREETONODES_DELETE_ALL'), false); } elseif ($isleafed) { JLToolBarHelper::apply('treetonode.saveshortleaf', JText::_('COM_JOOMLEAGUE_ADMIN_TREETONODES_TEST_SHOW'), false); if ($isleafed == 3) { JLToolBarHelper::apply('treetonode.savefinishleaf', JText::_('COM_JOOMLEAGUE_ADMIN_TREETONODES_SAVE_LEAF'), false); } JLToolBarHelper::custom('treetonode.removenode', 'delete.png', 'delete_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_TREETONODES_DELETE'), false); } JLToolBarHelper::onlinehelp(); ?> <form action="<?php echo $this->request_url; ?> " method="post" id="adminForm"> <div id="editcell"> <fieldset class="adminform"> <legend><?php echo JText::sprintf('COM_JOOMLEAGUE_ADMIN_TREETONODES_LEGEND', '<i>' . $this->projectws->name . '</i>'); ?> </legend> <?php
/** * Add the page title and toolbar. * * @since 1.7 */ protected function addToolbar() { JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PREF_TITLE'), 'Referees'); JLToolBarHelper::apply('projectreferee.saveshort', JText::_('COM_JOOMLEAGUE_ADMIN_PREF_APPLY')); JLToolBarHelper::custom('projectreferee.assign', 'upload.png', 'upload_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_PREF_ASSIGN'), false); JLToolBarHelper::custom('projectreferee.unassign', 'cancel.png', 'cancel_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_PREF_UNASSIGN'), false); JToolBarHelper::divider(); JLToolBarHelper::onlinehelp(); JToolBarHelper::preferences(JRequest::getCmd('option')); }
private function _displayForm($tpl) { $mtime = microtime(); $mtime = explode(" ", $mtime); $mtime = $mtime[1] + $mtime[0]; $starttime = $mtime; $option = JRequest::getCmd('option'); $mainframe = JFactory::getApplication(); $document = JFactory::getDocument(); $db = JFactory::getDBO(); $uri = JFactory::getURI(); $model =& JModel::getInstance('jlxmlimport', 'joomleaguemodel'); $data = $model->getData(); $uploadArray = $mainframe->getUserState($option . 'uploadArray', array()); // TODO: import timezone $value = isset($data['project']->timezone) ? $data['project']->timezone : null; $lists['timezone'] = JHTML::_('select.genericlist', array(), 'timezone', ' class="inputbox"', 'value', 'text', $value); $whichfile = $mainframe->getUserState($option . 'whichfile'); $this->assignRef('whichfile', $whichfile); $projectidimport = $mainframe->getUserState($option . 'projectidimport'); $this->assignRef('projectidimport', $projectidimport); $countries = new Countries(); $this->assignRef('uploadArray', $uploadArray); $this->assignRef('starttime', $starttime); $this->assignRef('countries', $countries->getCountries()); $this->assignRef('request_url', $uri->toString()); $this->assignRef('xml', $data); $this->assignRef('leagues', $model->getLeagueList()); $this->assignRef('seasons', $model->getSeasonList()); $this->assignRef('sportstypes', $model->getSportsTypeList()); $this->assignRef('admins', $model->getUserList(false)); $this->assignRef('editors', $model->getUserList(false)); $this->assignRef('templates', $model->getTemplateList()); $this->assignRef('teams', $model->getTeamList()); $this->assignRef('clubs', $model->getClubList()); $this->assignRef('events', $model->getEventList()); $this->assignRef('positions', $model->getPositionList()); $this->assignRef('parentpositions', $model->getParentPositionList()); $this->assignRef('playgrounds', $model->getPlaygroundList()); $this->assignRef('persons', $model->getPersonList()); $this->assignRef('statistics', $model->getStatisticList()); $this->assignRef('OldCountries', $model->getCountryByOldid()); $this->assignRef('import_version', $model->import_version); $this->assignRef('lists', $lists); $this->assign('show_debug_info', JComponentHelper::getParams('com_joomleague')->get('show_debug_info', 0)); // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_XML_IMPORT_TITLE_2_3'), 'generic.png'); // task image mouseover_img alt_text_for_image check_that_standard_list_item_is_checked JLToolBarHelper::custom('jlxmlimport.insert', 'upload', 'upload', Jtext::_('COM_JOOMLEAGUE_ADMIN_XML_IMPORT_START_BUTTON'), false); // --> bij clicken op import wordt de insert view geactiveerd JToolBarHelper::back(); JLToolBarHelper::onlinehelp(); parent::display($tpl); }