/** * Add the page title and toolbar. */ 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(); 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')); }
/** * Add the page title and toolbar. */ 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', '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_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() { $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')); }