コード例 #1
0
ファイル: view.html.php プロジェクト: hfmprs/JoomLeague
 /**
  * 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);
 }
コード例 #2
0
ファイル: view.html.php プロジェクト: hfmprs/JoomLeague
 /**
  * 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);
 }
コード例 #3
0
ファイル: view.html.php プロジェクト: hfmprs/JoomLeague
 /**
  * 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);
 }
コード例 #4
0
ファイル: view.html.php プロジェクト: Heart1010/JoomLeague
 /**
  * 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);
 }
コード例 #5
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_SEASONS_TITLE'), 'seasons');
     JLToolBarHelper::addNew('season.add');
     JLToolBarHelper::editList('season.edit');
     JLToolBarHelper::custom('season.import', 'upload', 'upload', JText::_('COM_JOOMLEAGUE_GLOBAL_CSV_IMPORT'), false);
     JLToolBarHelper::archiveList('season.export', JText::_('COM_JOOMLEAGUE_GLOBAL_XML_EXPORT'));
     JLToolBarHelper::deleteList('', 'season.remove');
     JToolBarHelper::divider();
     JLToolBarHelper::onlinehelp();
     JToolBarHelper::preferences(JRequest::getCmd('option'));
 }
コード例 #6
0
 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);
 }
コード例 #7
0
ファイル: view.html.php プロジェクト: Heart1010/JoomLeague
 /**
  * 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);
 }
コード例 #8
0
ファイル: view.html.php プロジェクト: hfmprs/JoomLeague
 /**
  * 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);
 }
コード例 #9
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', 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'));
 }
コード例 #10
0
ファイル: view.html.php プロジェクト: hfmprs/JoomLeague
 /**
  * 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);
 }
コード例 #11
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_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'));
 }
コード例 #12
0
ファイル: view.html.php プロジェクト: Heart1010/JoomLeague
 /**
  * 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);
 }
コード例 #13
0
ファイル: view.html.php プロジェクト: hfmprs/JoomLeague
 /**
  * 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);
 }
コード例 #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_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'));
 }
コード例 #15
0
 function _display($tpl = null)
 {
     // 		$mainframe			=& JFactory::getApplication();
     // 		$option				= 'com_joomleague';
     $document = JFactory::getDocument();
     $option = JRequest::getCmd('option');
     $optiontext = strtoupper(JRequest::getCmd('option') . '_');
     $this->assignRef('optiontext', $optiontext);
     $mainframe = JFactory::getApplication();
     $prediction_id = (int) $mainframe->getUserState($option . 'prediction_id');
     //echo '#' . $prediction_id . '#<br />';
     $lists = array();
     $db =& JFactory::getDBO();
     $uri =& JFactory::getURI();
     $items =& $this->get('Data');
     $total =& $this->get('Total');
     $pagination =& $this->get('Pagination');
     //$model				=& $this->getModel();
     $filter_state = $mainframe->getUserStateFromRequest($option . 'tmb_filter_state', 'filter_state', '', 'word');
     $filter_order = $mainframe->getUserStateFromRequest($option . 'tmb_filter_order', 'filter_order', 'u.username', 'cmd');
     $filter_order_Dir = $mainframe->getUserStateFromRequest($option . 'tmb_filter_order_Dir', 'filter_order_Dir', '', 'word');
     $search = $mainframe->getUserStateFromRequest($option . 'tmb_search', 'search', '', 'string');
     $search = JString::strtolower($search);
     $baseurl = JURI::root();
     $document->addScript($baseurl . 'administrator/components/com_joomleague/assets/js/autocompleter/1_4/Autocompleter.js');
     $document->addScript($baseurl . 'administrator/components/com_joomleague/assets/js/autocompleter/1_4/Autocompleter.Request.js');
     $document->addScript($baseurl . 'administrator/components/com_joomleague/assets/js/autocompleter/1_4/Observer.js');
     $document->addScript($baseurl . 'administrator/components/com_joomleague/assets/js/autocompleter/1_4/quickaddteam.js');
     $document->addStyleSheet($baseurl . 'administrator/components/com_joomleague/assets/css/Autocompleter.css');
     // state filter
     $lists['state'] = JHTML::_('grid.state', $filter_state);
     // table ordering
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     // search filter
     $lists['search'] = $search;
     //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_PMEMBERS_TITLE'), 'pred-cpanel');
     JToolBarHelper::custom('predictionmember.reminder', 'send.png', 'send_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_PMEMBERS_SEND_REMINDER'), true);
     JToolBarHelper::divider();
     if ($prediction_id) {
         JLToolBarHelper::editList('predictionmember.edit');
         JToolBarHelper::custom('predictionmember.editlist', 'upload.png', 'upload_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_PMEMBERS_BUTTON_ASSIGN'), false);
         JToolBarHelper::divider();
     }
     JToolBarHelper::publishList('predictionmember.publish', JText::_('COM_JOOMLEAGUE_ADMIN_PMEMBERS_APPROVE'));
     JToolBarHelper::unpublishList('predictionmember.unpublish', JText::_('COM_JOOMLEAGUE_ADMIN_PMEMBERS_REJECT'));
     JToolBarHelper::divider();
     //JToolBarHelper::addNewX();
     //JToolBarHelper::divider();
     //JToolBarHelper::editListX();
     JToolBarHelper::deleteList('', 'predictionmember.remove');
     JToolBarHelper::divider();
     JLToolBarHelper::onlinehelp();
     $this->assignRef('user', JFactory::getUser());
     $this->assignRef('lists', $lists);
     if ($prediction_id) {
         $this->assignRef('items', $items);
     }
     $this->assignRef('pagination', $pagination);
     $url = $uri->toString();
     $this->assignRef('request_url', $url);
     parent::display($tpl);
 }
コード例 #16
0
 /**
  * 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'));
 }