Example #1
0
 /**
  * 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);
 }
 /**
  * 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');
     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_DBTOOLS_TITLE'), 'config.png');
     JToolBarHelper::back();
     JLToolBarHelper::onlinehelp();
     JToolBarHelper::preferences(JRequest::getCmd('option'));
 }
Example #4
0
 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);
 }
Example #5
0
 /**
  * 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);
 }
 function display($tpl = null)
 {
     $mainframe =& JFactory::getApplication();
     // Get a refrence of the page instance in joomla
     $document =& JFactory::getDocument();
     $option = JRequest::getCmd('option');
     $optiontext = strtoupper(JRequest::getCmd('option') . '_');
     $this->assignRef('optiontext', $optiontext);
     $prediction_id = (int) $mainframe->getUserState($option . 'prediction_id');
     $lists = array();
     $db =& JFactory::getDBO();
     $uri =& JFactory::getURI();
     $items =& $this->get('Data');
     $total =& $this->get('Total');
     $pagination =& $this->get('Pagination');
     $predictiongame =& $this->getModel()->getPredictionGame($prediction_id);
     //echo '<pre>' . print_r( $predictiongame, true ) . '</pre>';
     $filter_order = $mainframe->getUserStateFromRequest($option . 'tmpl_filter_order', 'filter_order', 'tmpl.title', 'cmd');
     $filter_order_Dir = $mainframe->getUserStateFromRequest($option . 'tmpl_filter_order_Dir', 'filter_order_Dir', '', 'word');
     // table ordering
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     //build the html select list for prediction games
     $predictions[] = JHTML::_('select.option', '0', '- ' . JText::_('COM_JOOMLEAGUE_GLOBAL_SELECT_PRED_GAME') . ' -', 'value', 'text');
     if ($res =& $this->getModel()->getPredictionGames()) {
         $predictions = array_merge($predictions, $res);
     }
     $lists['predictions'] = JHTML::_('select.genericlist', $predictions, 'prediction_id', 'class="inputbox" onChange="this.form.submit();" ', 'value', 'text', $prediction_id);
     unset($res);
     // Set toolbar items for the page
     $stylelink = '<link rel="stylesheet" href="' . JURI::root() . 'administrator/components/com_joomleague/assets/css/jlextusericons.css' . '" type="text/css" />' . "\n";
     $document->addCustomTag($stylelink);
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PTMPLS_TITLE'), 'pred-cpanel');
     if ($prediction_id > 0) {
         JToolBarHelper::editListX('predictiontemplate.edit');
         //JToolBarHelper::save();  // TO BE FIXED: Marked out. Better an import Button should be added here if it is not master-template
         JToolBarHelper::divider();
         if ($prediction_id > 0 && $predictiongame->master_template) {
             JToolBarHelper::deleteList();
             //JToolBarHelper::deleteList( JText::_( 'Warning: all prediction-user-data and tipps of selected member will COMPLETELY be deleted!!! This is NOT reversible!!!' ) );
         } else {
             JToolBarHelper::custom('predictiontemplate.reset', 'restore', 'restore', JText::_('COM_JOOMLEAGUE_GLOBAL_RESET'), true);
         }
         JToolBarHelper::divider();
     }
     JLToolBarHelper::onlinehelp();
     $this->assignRef('user', JFactory::getUser());
     $this->assignRef('pred_id', $prediction_id);
     $this->assignRef('lists', $lists);
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('predictiongame', $predictiongame);
     $url = $uri->toString();
     $this->assignRef('request_url', $url);
     parent::display($tpl);
 }
Example #7
0
 /**
  * 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);
 }
Example #8
0
 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_DIVS_TITLE'));
     JLToolBarHelper::addNew('division.add');
     JLToolBarHelper::editList('division.edit');
     JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_DIVISIONS_DELETE_WARNING'), 'division.remove');
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.joomleague', true);
 }
Example #9
0
 /**
  * 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.
  *
  * @since	1.7
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_DIVS_TITLE'));
     JLToolBarHelper::addNewX('division.add');
     JLToolBarHelper::editListX('division.edit');
     JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_DIVISIONS_DELETE_WARNING'), 'division.remove');
     JToolBarHelper::divider();
     JLToolBarHelper::onlinehelp();
     JToolBarHelper::preferences(JRequest::getCmd('option'));
 }
Example #11
0
 /**
  * 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);
 }
Example #12
0
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TREETOS_TITLE'), 'Tree');
     JLToolBarHelper::apply('treeto.saveshort');
     JLToolBarHelper::publishList('treeto.publish');
     JLToolBarHelper::unpublishList('treeto.unpublish');
     JToolBarHelper::divider();
     JLToolBarHelper::addNew('treeto.save');
     JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_TREETOS_WARNING'), 'treeto.remove');
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.joomleague', true);
 }
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TREETOS_TITLE'), 'Tree');
     JLToolBarHelper::apply('treeto.saveshort');
     JLToolBarHelper::publishList('treeto.publish');
     JLToolBarHelper::unpublishList('treeto.unpublish');
     JToolBarHelper::divider();
     JLToolBarHelper::addNew('treeto.save');
     JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_TREETOS_WARNING'), 'treeto.remove');
     JToolBarHelper::divider();
     JLToolBarHelper::onlinehelp();
     JToolBarHelper::preferences(JRequest::getCmd('option'));
 }
Example #14
0
 /**
  * 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_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'));
 }
 function display($tpl = null)
 {
     $mainframe =& JFactory::getApplication();
     $db =& JFactory::getDBO();
     $uri =& JFactory::getURI();
     $document =& JFactory::getDocument();
     $option = JRequest::getCmd('option');
     $optiontext = strtoupper(JRequest::getCmd('option') . '_');
     $this->assignRef('optiontext', $optiontext);
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_ROSTERPOSITIONS_TITLE'), 'generic.png');
     /*
         JToolBarHelper::addNewX();
     JToolBarHelper::editListX();
     JToolBarHelper::custom('import','upload','upload',JText::_('COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT'),false);
     JToolBarHelper::archiveList('export',JText::_('COM_JOOMLEAGUE_GLOBAL_XML_EXPORT'));
     JToolBarHelper::deleteList();
     JToolBarHelper::divider();
     */
     //    JLToolBarHelper::addNew('rosterposition.add');
     JToolBarHelper::custom('rosterposition.addhome', 'new', 'new', JText::_('COM_JOOMLEAGUE_ADMIN_ROSTERPOSITIONS_HOME'), false);
     JToolBarHelper::custom('rosterposition.addaway', 'new', 'new', JText::_('COM_JOOMLEAGUE_ADMIN_ROSTERPOSITIONS_AWAY'), false);
     JLToolBarHelper::editList('rosterposition.edit');
     JToolBarHelper::custom('rosterposition.import', 'upload', 'upload', JText::_('COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT'), false);
     JToolBarHelper::archiveList('rosterposition.export', JText::_('COM_JOOMLEAGUE_GLOBAL_XML_EXPORT'));
     //JToolBarHelper::deleteList();
     JLToolBarHelper::deleteList('', 'rosterposition.remove');
     JToolBarHelper::divider();
     JLToolBarHelper::onlinehelp();
     JToolBarHelper::preferences(JRequest::getCmd('option'));
     $db =& JFactory::getDBO();
     $uri =& JFactory::getURI();
     $filter_order = $mainframe->getUserStateFromRequest($option . 'l_filter_order', 'filter_order', 'obj.ordering', 'cmd');
     $filter_order_Dir = $mainframe->getUserStateFromRequest($option . 'l_filter_order_Dir', 'filter_order_Dir', '', 'word');
     $search = $mainframe->getUserStateFromRequest($option . 'l_search', 'search', '', 'string');
     $search = JString::strtolower($search);
     $items =& $this->get('Data');
     $total =& $this->get('Total');
     $pagination =& $this->get('Pagination');
     // table ordering
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     // search filter
     $lists['search'] = $search;
     $this->assignRef('user', JFactory::getUser());
     $this->assignRef('lists', $lists);
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('request_url', $uri->toString());
     parent::display($tpl);
 }
Example #17
0
 /**
  * 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);
 }
Example #18
0
 /**
  * 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);
 }
Example #19
0
 /**
  * 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.
  *
  * @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'));
 }
Example #21
0
 /**
  * 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);
 }
Example #22
0
 /**
  * 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);
 }
Example #23
0
 /**
  * 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.
  *
  * @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.
  *
  * @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.
  *
  * @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();
 }
Example #27
0
 /**
  * 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);
 }
Example #28
0
 /**
  * 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);
 }
 function display($tpl = null)
 {
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('JoomLeague XML Import'), 'generic.png');
     JToolBarHelper::back();
     #JLToolBarHelper::save( 'save', 'Import' );
     JLToolBarHelper::onlinehelp();
     $db = JFactory::getDBO();
     $uri = JFactory::getURI();
     #$user = JFactory::getUser();
     #$config = JFactory::getConfig();
     $config =& JComponentHelper::getParams('com_media');
     #$this->assignRef( 'user',			JFactory::getUser() );
     $this->assignRef('request_url', $uri->toString());
     #$this->assignRef( 'user',		$user);
     $this->assignRef('config', $config);
     parent::display($tpl);
 }
Example #30
0
 /**
  * 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);
 }