/** * 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')); }
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); }
/** * 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. * * @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')); }
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')); }
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); }
/** * 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. * * @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() { // 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')); }
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); }
function display($tpl = null) { $option = JRequest::getCmd('option'); $mainframe = JFactory::getApplication(); $lang = JFactory::getLanguage(); $document =& JFactory::getDocument(); // if ($this->getLayout()=='form') // { // $this->_displayForm($tpl); // return; // } // if ($this->getLayout()=='info') // { // $this->_displayInfo($tpl); // return; // } // if ($this->getLayout()=='selectpage') // { // $this->_displaySelectpage($tpl); // return; // } $stylelink = '<link rel="stylesheet" href="' . JURI::root() . 'administrator/components/com_joomleague/assets/css/jlextusericons.css' . '" type="text/css" />' . "\n"; $document->addCustomTag($stylelink); // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_LMO_IMPORT_TITLE_1'), 'lmo-cpanel'); JLToolBarHelper::onlinehelp(); $uri = JFactory::getURI(); $config =& JComponentHelper::getParams('com_media'); $post = JRequest::get('post'); $files = JRequest::get('files'); $this->assignRef('request_url', $uri->toString()); $this->assignRef('config', $config); $teile = explode("-", $lang->getTag()); $country = Countries::convertIso2to3($teile[1]); $this->assignRef('country', $country); $countries = Countries::getCountryOptions(); $lists['countries'] = JHTML::_('select.genericlist', $countries, 'country', 'class="inputbox" size="1"', 'value', 'text', $country); $this->assignRef('countries', $lists['countries']); //$this->assignRef('form', $this->get('form')); parent::display($tpl); }
function display($tpl = null) { $option = JRequest::getCmd('option'); $mainframe = JFactory::getApplication(); $mainframe->setUserState($option . 'update_part', 0); // 0 $filter_order = $mainframe->getUserStateFromRequest($option . 'updates_filter_order', 'filter_order', 'dates', 'cmd'); $filter_order_Dir = $mainframe->getUserStateFromRequest($option . 'updates_filter_order_Dir', 'filter_order_Dir', '', 'word'); // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_UPDATES_TITLE'), 'generic.png'); JLToolBarHelper::onlinehelp(); JToolBarHelper::preferences(JRequest::getCmd('option')); $db = JFactory::getDBO(); $uri = JFactory::getURI(); $model = $this->getModel(); $versions = $model->getVersions(); $versionhistory = $model->getVersionHistory(); $updateFiles = array(); $lists = array(); if ($updateFiles = $model->loadUpdateFiles()) { for ($i = 0, $n = count($updateFiles); $i < $n; $i++) { foreach ($versions as $version) { if (strpos($version->version, $updateFiles[$i]['file_name'])) { $updateFiles[$i]['updateTime'] = $version->date; break; } else { $updateFiles[$i]['updateTime'] = "-"; } } } } // table ordering $lists['order_Dir'] = $filter_order_Dir; $lists['order'] = $filter_order; $this->assignRef('versionhistory', $versionhistory); $this->assignRef('updateFiles', $updateFiles); $this->assignRef('request_url', $uri->toString()); $this->assignRef('lists', $lists); parent::display($tpl); }
function display($tpl = null) { $option = JRequest::getCmd('option'); $mainframe =& JFactory::getApplication(); // Set toolbar items for the page JToolBarHelper::title(JText::_('JL_ADMIN_ASSOCIATIONS_TITLE'), 'generic.png'); JToolBarHelper::addNewX(); JToolBarHelper::editListX(); JToolBarHelper::custom('import', 'upload', 'upload', JText::_('JL_GLOBAL_CSV_IMPORT'), false); JToolBarHelper::archiveList('export', JText::_('JL_GLOBAL_XML_EXPORT')); JToolBarHelper::deleteList(); JToolBarHelper::divider(); JLToolBarHelper::onlinehelp(); $db =& JFactory::getDBO(); $uri =& JFactory::getURI(); $model =& $this->getModel(); //$istable = $model->checkTable(); $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); }
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); }
/** * 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); $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(); }
<?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;
function _displayDefault($tpl) { //global $mainframe, $option; $mainframe =& JFactory::getApplication(); $option = JRequest::getCmd('option'); $db =& JFactory::getDBO(); $uri =& JFactory::getURI(); $user =& JFactory::getUser(); // Get the view name from the query string $viewName = JRequest::getVar("view"); // $model =& $this->getModel('project') ; // $projectdata =& $this->get('Data'); // $this->assignRef( 'name', $projectdata->name); $model =& $this->getModel(); $model->checkStartExtension(); $project = $mainframe->getUserState($option . 'project'); $this->assignRef('project', $project); $config =& JComponentHelper::getParams('com_media'); //JLToolBarHelper::custom('jlextdfbnetplayerimport.description','featured.png','featured._f2.png',JText::_('COM_JOOMLEAGUE_ADMIN_DFBNET_IMPORT_DESCRIPTION'),false); $this->assignRef('request_url', $uri->toString()); $this->assignRef('config', $config); $revisionDate = '2011-04-28 - 12:00'; $this->assignRef('revisionDate', $revisionDate); $import_version = 'NEW'; $this->assignRef('import_version', $import_version); /* // Special HTML workaround to get send popup working $pfad = JURI::root().'media/com_joomleague/description/'.$viewName.'.pdf'; $send='<a class="toolbar button validate modal" rel="{handler: \'iframe\', size: {x: 800, y: 600}}" onclick="return mySelect();"'. ' href="'.$pfad.'"><span title="send" class="icon-32-featured"></span>'.JText::_('Onlinehilfe').'</a>'; $bar=& JToolBar::getInstance( 'toolbar' ); $bar->appendButton('Custom',$send); */ JLToolBarHelper::onlinehelp(); 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() { // 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() { $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. * * @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() { // 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'); JToolBarHelper::divider(); } JToolBarHelper::title($toolbarTitle, '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', JText::_('COM_JOOMLEAGUE_GLOBAL_CLOSE')); } JLToolBarHelper::onlinehelp(); }
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'); //echo '#' . $prediction_id . '#<br />'; $model = $this->getModel(); $lists = array(); $db =& JFactory::getDBO(); $uri =& JFactory::getURI(); $items =& $this->get('Data'); $total =& $this->get('Total'); $pagination =& $this->get('Pagination'); $filter_state = $mainframe->getUserStateFromRequest($option . 'pre_filter_state', 'filter_state', '', 'word'); $filter_order = $mainframe->getUserStateFromRequest($option . 'pre_filter_order', 'filter_order', 'pre.name', 'cmd'); $filter_order_Dir = $mainframe->getUserStateFromRequest($option . 'pre_filter_order_Dir', 'filter_order_Dir', '', 'word'); $search = $mainframe->getUserStateFromRequest($option . 'pre_search', 'search', '', 'string'); $search = JString::strtolower($search); // 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::_('Select Prediction 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); if ($prediction_id == 0) { JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PGAMES_TITLE'), 'pred-cpanel'); JToolBarHelper::publishList('predictiongame.publish'); JToolBarHelper::unpublishList('predictiongame.unpublish'); JToolBarHelper::divider(); JToolBarHelper::addNew('predictiongame.add'); JToolBarHelper::editList('predictiongame.edit'); //JToolBarHelper::custom( 'copy', 'copy.png', 'copy_f2.png', JText::_( 'Copy'), true ); JToolBarHelper::divider(); //JToolBarHelper::deleteList( JText::_('JL_ADMIN_PGAMES_DELETE')); JToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_PGAMES_DELETE'), 'predictiongame.remove'); JToolBarHelper::divider(); JToolBarHelper::customX('rebuild', 'restore.png', 'restore_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_PGAMES_REBUILDS'), true); } else { JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PGAMES_PROJLIST_TITLE'), 'pred-cpanel'); //JToolBarHelper::publishList(); //JToolBarHelper::unpublishList(); //JToolBarHelper::divider(); //JToolBarHelper::editListX(); //JToolBarHelper::deleteList( JText::_( 'Warning: all prediction-game-data and assigned projects, tipps and members of selected prediction game will COMPLETELY be deleted!!! This is NOT reversible!!!' ) ); } JToolBarHelper::divider(); JLToolBarHelper::onlinehelp(); $this->assignRef('user', JFactory::getUser()); $this->assignRef('lists', $lists); $this->assignRef('items', $items); $this->assignRef('dPredictionID', $prediction_id); $this->assignRef('pagination', $pagination); if ($prediction_id > 0) { $this->assignRef('predictionProjects', $this->getModel()->getChilds($prediction_id)); //$this->assignRef( 'predictionAdmins', $this->getModel()->getAdmins( $prediction_id ) ); } $url = $uri->toString(); $this->assignRef('request_url', $url); 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_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(); JLToolBarHelper::onlinehelp(); JToolBarHelper::preferences(JRequest::getCmd('option')); }
/** * 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(); }
/** * 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')); }
/** * 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')); }