예제 #1
0
 /**
  * Add Toolbar
  */
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_JEM_EVENTS'), 'events');
     /* retrieving the allowed actions for the user */
     $canDo = JEMHelperBackend::getActions(0);
     /* create */
     if ($canDo->get('core.create')) {
         JToolBarHelper::addNew('event.add');
     }
     /* edit */
     if ($canDo->get('core.edit')) {
         JToolBarHelper::editList('event.edit');
         JToolBarHelper::divider();
     }
     /* state */
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::publishList('events.publish', 'JTOOLBAR_PUBLISH', true);
         JToolBarHelper::unpublishList('events.unpublish', 'JTOOLBAR_UNPUBLISH', true);
         JToolBarHelper::custom('events.featured', 'featured.png', 'featured_f2.png', 'JFEATURED', true);
         JToolBarHelper::archiveList('events.archive');
         JToolBarHelper::checkin('events.checkin');
     }
     if ($this->state->get('filter.published') == -2 && $canDo->get('core.delete')) {
         JToolBarHelper::deleteList('COM_JEM_CONFIRM_DELETE', 'events.delete', 'JTOOLBAR_EMPTY_TRASH');
     } elseif ($canDo->get('core.edit.state')) {
         JToolBarHelper::trash('events.trash');
     }
     JToolBarHelper::divider();
     JToolBarHelper::help('listevents', true);
 }
예제 #2
0
 function display($tpl = null)
 {
     $mainframe = JFactory::getApplication('site');
     $task = $mainframe->input->get('task', 'manage_scores');
     $this->task = $task;
     $filter_order = $mainframe->getUserStateFromRequest('com_jvarcade.manage_scores.filter_order', 'filter_order', 'p.date', 'cmd');
     $filter_order_Dir = $mainframe->getUserStateFromRequest('com_jvarcade.manage_scores.filter_order_Dir', 'filter_order_Dir', '', 'word');
     $filter_order_Dir = $filter_order_Dir ? $filter_order_Dir : 'DESC';
     // ensure filter_order has a valid value.
     if (!in_array($filter_order, array('g.title', 'u.username', 'p.ip', 'p.score', 'p.date', 'p.published'))) {
         $filter_order = 'p.date';
     }
     $model = $this->getModel();
     $model->setOrderBy($filter_order);
     $model->setOrderDir($filter_order_Dir);
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     $this->lists = $lists;
     $scores = $model->getScores();
     $pagination = $model->getPagination();
     $this->pagination = $pagination;
     $this->scores = $scores;
     JToolBarHelper::title(JText::_('COM_JVARCADE_MANAGE_SCORES'), 'jvascores');
     JToolBarHelper::deleteList(JText::_('COM_JVARCADE_SCORES_ASK_DELETE'), 'deletescore', JText::_('COM_JVARCADE_SCORES_DELETE'));
     JToolBarHelper::publishList('scorePublish', JText::_('COM_JVARCADE_SCORES_PUBLISH'));
     JToolBarHelper::unpublishList('scoreUnPublish', JText::_('COM_JVARCADE_SCORES_UNPUBLISH'));
     jvarcadeToolbarHelper::addSubmenu($this->getName());
     $this->addSidebar('manage_scores');
     parent::display($tpl);
 }
예제 #3
0
 protected function addToolbar()
 {
     $bar = JToolBar::getInstance('toolbar');
     $canDo = JCKHelper::getActions();
     JToolBarHelper::title(JText::_('COM_JCKMAN_SUBMENU_PLUGIN_NAME'), 'plugin.png');
     if ($canDo->get('core.edit')) {
         JToolBarHelper::editList('list.edit');
     }
     //end if
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::publishList('list.publish');
         JToolBarHelper::unpublishList('list.unpublish');
         JToolbarHelper::checkin('list.checkin');
     }
     //end if
     // Add a Link button for Control Panel
     $bar->appendButton('Link', 'cpanel', JText::_('COM_JCKMAN_SUBMENU_CPANEL_NAME'), 'index.php?option=com_jckman&view=cpanel');
     JToolBarHelper::help($this->app->input->get('view'), false, 'http://www.joomlackeditor.com/installation-guide?start=14#plugin_man_help');
     JCKHelper::addSubmenu($this->app->input->get('view'));
     JHtmlSidebar::setAction('index.php?option=com_jckman&view=list');
     // FILTERS
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_state', JHtml::_('select.options', JCKHelper::getStateOptions(), 'value', 'text', $this->state->get('filter.state')));
     JHtmlSidebar::addFilter(JText::_('- Select Core Type -'), 'filter_iscore', JHtml::_('select.options', array(JHtml::_('select.option', '1', 'Core Plugins'), JHtml::_('select.option', '0', 'Not Core Plugins')), 'value', 'text', $this->state->get('filter.iscore')));
     $this->sidebar = JHtmlSidebar::render();
 }
예제 #4
0
 public function display($tpl = null)
 {
     global $context;
     $uri = JFactory::getURI();
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('COM_REDSHOP_GIFTCARD'));
     JToolBarHelper::title(JText::_('COM_REDSHOP_GIFTCARD_MANAGEMENT'), 'redshop_giftcard_48');
     JToolBarHelper::addNewX();
     JToolBarHelper::editListX();
     JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', JText::_('COM_REDSHOP_TOOLBAR_COPY'), true);
     JToolBarHelper::deleteList();
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'giftcard_id');
     $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '');
     $lists['order'] = $filter_order;
     $lists['order_Dir'] = $filter_order_Dir;
     $giftcard = $this->get('Data');
     $total = $this->get('Total');
     $pagination = $this->get('Pagination');
     $this->user = JFactory::getUser();
     $this->lists = $lists;
     $this->giftcard = $giftcard;
     $this->pagination = $pagination;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
예제 #5
0
 public function display($tpl = null)
 {
     $context = "rating";
     $uri = JFactory::getURI();
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $user = JFactory::getUser();
     $document->setTitle(JText::_('COM_REDSHOP_RATING'));
     JToolBarHelper::title(JText::_('COM_REDSHOP_RATING_MANAGEMENT'), 'redshop_rating48');
     JToolBarHelper::addNewX();
     JToolBarHelper::editListX();
     JToolBarHelper::deleteList();
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'rating_id');
     $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '');
     $lists['order'] = $filter_order;
     $lists['order_Dir'] = $filter_order_Dir;
     $ratings = $this->get('Data');
     $total = $this->get('Total');
     $pagination = $this->get('Pagination');
     $this->user = $user;
     $this->lists = $lists;
     $this->ratings = $ratings;
     $this->pagination = $pagination;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
예제 #6
0
 /**
  * Method to configure the toolbar for this view.
  *
  * @return  void
  *
  * @since   2.5
  */
 protected function addToolbar()
 {
     $canDo = FinderHelper::getActions();
     JToolBarHelper::title(JText::_('COM_FINDER_FILTERS_TOOLBAR_TITLE'), 'finder');
     $toolbar = JToolBar::getInstance('toolbar');
     if ($canDo->get('core.create')) {
         JToolBarHelper::addNew('filter.add');
         JToolBarHelper::editList('filter.edit');
         JToolBarHelper::divider();
     }
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::publishList('filters.publish');
         JToolBarHelper::unpublishList('filters.unpublish');
         JToolBarHelper::divider();
     }
     if ($canDo->get('core.delete')) {
         JToolBarHelper::deleteList('', 'filters.delete');
         JToolBarHelper::divider();
     }
     if ($canDo->get('core.admin')) {
         JToolBarHelper::preferences('com_finder');
     }
     JToolBarHelper::divider();
     $toolbar->appendButton('Popup', 'stats', 'COM_FINDER_STATISTICS', 'index.php?option=com_finder&view=statistics&tmpl=component', 550, 500);
     JToolBarHelper::divider();
     JToolBarHelper::help('JHELP_COMPONENTS_FINDER_MANAGE_SEARCH_FILTERS');
 }
예제 #7
0
 function setToolbar()
 {
     switch ($this->_task) {
         default:
             JToolBarHelper::title(JText::_('Tags Manager'));
             JToolBarHelper::editList();
             JToolBarHelper::divider();
             JToolBarHelper::publishList();
             JToolBarHelper::unpublishList();
             JToolBarHelper::divider();
             JToolBarHelper::deleteList(JText::_('COM_TZ_PINBOARD_QUESTION_DELETE'));
             JToolBarHelper::preferences('com_tz_pinboard');
             break;
         case 'add':
         case 'new':
             JRequest::setVar('hidemainmenu', true);
             JToolBarHelper::title(JText::_('Tags Manager: <small><small>' . JText::_(ucfirst($this->_task)) . '</small></small>'));
             JToolBarHelper::save2new();
             JToolBarHelper::save();
             JToolBarHelper::apply();
             JToolBarHelper::cancel();
             break;
         case 'edit':
             JRequest::setVar('hidemainmenu', true);
             JToolBarHelper::title(JText::_('Tags Manager: <small><small>' . JText::_(ucfirst(JRequest::getCmd('task'))) . '</small></small>'));
             JToolBarHelper::save();
             JToolBarHelper::apply();
             JToolBarHelper::cancel('cancel', JText::_('JTOOLBAR_CLOSE'));
             break;
     }
     $state = array('P' => JText::_('JPUBLISHED'), 'U' => JText::_('JUNPUBLISHED'));
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_state', JHtml::_('select.options', $state, 'value', 'text', $this->state->filter_state));
 }
예제 #8
0
 function display()
 {
     // Das Modell wird instanziert und steht als Objekt in der Variable $model zur Verfügung
     $model =& $this->getModel();
     // Die Toolbar erstellen, die über der Seite angezeigt wird
     require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_clm' . DS . 'images' . DS . 'admin_menue_images.php';
     JToolBarHelper::title($model->turnier->name . ": " . JText::_('ROUNDS'), 'clm_turnier.png');
     JToolBarHelper::spacer();
     if (CLM_usertype == 'admin' or CLM_usertype == 'tl') {
         // auslosen
         if ($model->turnier->roundToDraw != 0) {
             JToolBarHelper::spacer();
             JToolBarHelper::custom('assignMatches', 'edit.png', 'edit_f2.png', JText::_('MATCHES_ASSIGN'), FALSE);
         }
         JToolBarHelper::spacer();
         JToolBarHelper::publishList();
         JToolBarHelper::unpublishList();
     }
     JToolBarHelper::spacer();
     JToolBarHelper::cancel();
     if (CLM_usertype == 'admin' or CLM_usertype == 'tl') {
         JToolBarHelper::divider();
         JToolBarHelper::spacer();
         JToolBarHelper::custom('turform', 'config.png', 'config_f2.png', JText::_('TOURNAMENT'), false);
     }
     // Daten an Template übergeben
     $this->assignRef('user', $model->user);
     $this->assignRef('turrounds', $model->turRounds);
     $this->assignRef('form', $model->form);
     $this->assignRef('param', $model->param);
     $this->assignRef('pagination', $model->pagination);
     // zusätzliche Funktionalitäten
     JHTML::_('behavior.tooltip');
     parent::display();
 }
예제 #9
0
 public static function setVereineToolbar()
 {
     $clmAccess = clm_core::$access;
     // Menubilder laden
     clm_core::$load->load_css("icons_images");
     JToolBarHelper::title(JText::_('TITLE_VEREIN'), 'clm_headmenu_vereine.png');
     if ($clmAccess->access('BE_club_copy') === true) {
         //if (clm_core::$access->getType() === 'admin') {
         JToolBarHelper::custom('copy_saison', 'copy.png', 'copy_f2.png', 'VEREIN_BUTTON_COPY_LAST_YEAR', false);
     }
     if ($clmAccess->access('BE_club_general') === true) {
         JToolBarHelper::custom('gruppen', 'send.png', 'send_f2.png', 'VEREIN_BUTTON_GROUP_EDIT', false);
         JToolBarHelper::custom('rangliste', 'send.png', 'send_f2.png', 'VEREIN_BUTTON_RANG_EDIT', false);
     }
     if ($clmAccess->access('BE_club_edit_member') === true) {
         //if (clm_core::$access->getType() === 'admin' OR clm_core::$access->getType() === 'dv' OR clm_core::$access->getType() === 'dwz') {
         JToolBarHelper::custom('dwz', 'send.png', 'send_f2.png', 'VEREIN_BUTTON_MEMBER_EDIT', false);
     }
     if ($clmAccess->access('BE_club_general') === true) {
         JToolBarHelper::publishList();
         JToolBarHelper::unpublishList();
     }
     if ($clmAccess->access('BE_club_create') === true) {
         JToolBarHelper::custom('copy', 'copy.png', 'copy_f2.png', 'VEREIN_BUTTON_COPY');
         JToolBarHelper::custom('remove', 'delete.png', 'delete_f2.png', 'VEREIN_BUTTON_DEL', false);
         JToolBarHelper::editList();
         JToolBarHelper::custom('add', 'new.png', 'new_f2.png', 'VEREIN_BUTTON_NEW', false);
     }
     JToolBarHelper::help('screen.clm.verein');
 }
예제 #10
0
 public function display($tpl = null)
 {
     if ($this->getLayout() == 'edit') {
         $this->_displayEditLayout($tpl);
         return;
     }
     // Set the titlebar text
     JToolBarHelper::title(JText::_('COM_COMMUNITY_CONFIGURATION_BADGES'), 'badges');
     // Add the necessary buttons
     JToolBarHelper::addNew('newBadge', JText::_('COM_COMMUNITY_BADGES_NEW_BADGE'));
     JToolBarHelper::deleteList(JText::_('COM_COMMUNITY_BADGES_DELETION_WARNING'), 'deleteBadge', JText::_('COM_COMMUNITY_DELETE'));
     JToolBarHelper::divider();
     JToolBarHelper::publishList('publish', JText::_('COM_COMMUNITY_PUBLISH'));
     JToolBarHelper::unpublishList('unpublish', JText::_('COM_COMMUNITY_UNPUBLISH'));
     // Get badges
     $badgesTable = JTable::getInstance('Badges', 'CommunityTable');
     $this->assign('badges', $this->prepare($badgesTable->getBadges()));
     $mainframe = JFactory::getApplication();
     $filter_order = $mainframe->getUserStateFromRequest("com_community.badges.filter_order", 'filter_order', 'a.points', 'cmd');
     $filter_order_Dir = $mainframe->getUserStateFromRequest("com_community.badges.filter_order_Dir", 'filter_order_Dir', '', 'word');
     // table ordering
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     $this->assign('lists', $lists);
     parent::display($tpl);
 }
예제 #11
0
 /**
  * Method to configure the toolbar for this view.
  *
  * @return  void
  *
  * @since   2.5
  */
 protected function addToolbar()
 {
     $canDo = FinderHelper::getActions();
     JToolBarHelper::title(JText::_('COM_FINDER_INDEX_TOOLBAR_TITLE'), 'finder');
     $toolbar = JToolBar::getInstance('toolbar');
     $toolbar->appendButton('Popup', 'archive', 'COM_FINDER_INDEX', 'index.php?option=com_finder&view=indexer&tmpl=component', 500, 210);
     JToolBarHelper::divider();
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::publishList('index.publish');
         JToolBarHelper::unpublishList('index.unpublish');
         JToolBarHelper::divider();
     }
     if ($canDo->get('core.delete')) {
         JToolBarHelper::deleteList('', 'index.delete');
         JToolBarHelper::divider();
     }
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::trash('index.purge', 'COM_FINDER_INDEX_TOOLBAR_PURGE', false);
         JToolBarHelper::divider();
     }
     if ($canDo->get('core.admin')) {
         JToolBarHelper::preferences('com_finder');
     }
     JToolBarHelper::divider();
     $toolbar->appendButton('Popup', 'stats', 'COM_FINDER_STATISTICS', 'index.php?option=com_finder&view=statistics&tmpl=component', 550, 500);
     JToolBarHelper::divider();
     JToolBarHelper::help('JHELP_COMPONENTS_FINDER_MANAGE_INDEXED_CONTENT');
 }
예제 #12
0
 /**
  * Add Toolbar
  */
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_JEM_VENUES'), 'venues');
     $canDo = JEMHelperBackend::getActions(0);
     /* create */
     if ($canDo->get('core.create')) {
         JToolBarHelper::addNew('venue.add');
     }
     /* edit */
     if ($canDo->get('core.edit')) {
         JToolBarHelper::editList('venue.edit');
         JToolBarHelper::divider();
     }
     /* state */
     if ($canDo->get('core.edit.state')) {
         if ($this->state->get('filter.published') != 2) {
             JToolBarHelper::publishList('venues.publish');
             JToolBarHelper::unpublishList('venues.unpublish');
             JToolBarHelper::divider();
         }
     }
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::checkin('venues.checkin');
     }
     /* delete-trash */
     if ($canDo->get('core.delete')) {
         JToolBarHelper::deleteList('COM_JEM_CONFIRM_DELETE', 'venues.remove', 'JACTION_DELETE');
     }
     JToolBarHelper::divider();
     JToolBarHelper::help('listvenues', true);
 }
예제 #13
0
 /**
  * Easybook view display method
  * @return void
  **/
 function display($tpl = null)
 {
     global $mainframe;
     JToolBarHelper::title(JText::_('Easybook'), 'easybook');
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     JToolBarHelper::deleteList();
     JToolBarHelper::editListX();
     JToolBarHelper::addNewX();
     JToolBarHelper::preferences('com_easybook', '500');
     JHTML::_('stylesheet', 'easybook.css', 'administrator/components/com_easybook/css/');
     // Get data from the model
     $items =& $this->get('Data');
     $pagination = $this->get('Pagination');
     $version =& $this->get('Version');
     switch ($version->checkVersion(_EASYBOOK_VERSION)) {
         case 1:
             $this->assign('version', "<span style='border-bottom: dotted 1px #b9b9b9; padding-right: 5px; padding-left: 5px;'><b>EasyBook " . _EASYBOOK_VERSION . "</b></span><br /><div style='margin-top: 5px;'><a href='http://www.easy-joomla.org/index.php?option=com_versions&catid=3&myVersion=" . _EASYBOOK_VERSION . "' target='_blank'><img src='" . JURI::base() . "components/com_easybook/images/shield.gif' border='0' style='vertical-align: text-bottom; padding-right: 5px;'/> <span style='color: #e2ad43;'><b>" . JTEXT::_('no updates available') . "</b></span></a></div>");
             break;
         case -1:
             $this->assign('version', "<span style='border-bottom: dotted 1px #b9b9b9; padding-right: 5px; padding-left: 5px;'><b>EasyBook " . _EASYBOOK_VERSION . "</b></span><br /><div style='margin-top: 5px;'><a href='http://www.easy-joomla.org/index.php?option=com_versions&catid=3&myVersion=" . _EASYBOOK_VERSION . "' target='_blank'><img src='" . JURI::base() . "components/com_easybook/images/box.gif' border='0' style='vertical-align: text-bottom; padding-right: 5px;'/> <span style='color: #ce763a;'><b>" . JTEXT::_('updates available') . "</b> EasyBook " . $version->_current . "</span></a></div>");
             break;
         case -2:
             $this->assign('version', "<span style='border-bottom: dotted 1px #b9b9b9; padding-right: 5px; padding-left: 5px;'><b>EasyBook " . _EASYBOOK_VERSION . "</b></span><br /><div style='margin-top: 5px;'><a href='http://www.easy-joomla.org/index.php?option=com_versions&catid=3&myVersion=" . _EASYBOOK_VERSION . "' target='_blank'><img src='" . JURI::base() . "components/com_easybook/images/fail.gif' border='0' style='vertical-align: middle; padding-right: 5px;'/><span style='color: #e34639;'><b>" . JTEXT::_('connection failed') . "</b></span></a></div>");
             break;
     }
     $this->assignRef('pagination', $pagination);
     $this->assignRef('items', $items);
     parent::display($tpl);
 }
예제 #14
0
 public function display($tpl = null)
 {
     $context = 'mail_id';
     $uri = JFactory::getURI();
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('COM_REDSHOP_MAIL'));
     jimport('joomla.html.pagination');
     JToolBarHelper::title(JText::_('COM_REDSHOP_MAIL_MANAGEMENT'), 'redshop_mailcenter48');
     JToolBarHelper::addNewX();
     JToolBarHelper::editListX();
     JToolBarHelper::deleteList();
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'm.mail_id');
     $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '');
     $filter_section = $app->getUserStateFromRequest($context . 'filter_section', 'filter_section', 0);
     $lists['order'] = $filter_order;
     $lists['order_Dir'] = $filter_order_Dir;
     $redtemplate = new Redtemplate();
     $optionsection = $redtemplate->getMailSections();
     $lists['mailsection'] = JHTML::_('select.genericlist', $optionsection, 'filter_section', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', 'value', 'text', $filter_section);
     $total = $this->get('Total');
     $media = $this->get('Data');
     $pagination = $this->get('Pagination');
     $this->user = JFactory::getUser();
     $this->lists = $lists;
     $this->media = $media;
     $this->pagination = $pagination;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
예제 #15
0
 public function display($tpl = null)
 {
     global $context;
     $shoppergroup = new shoppergroup();
     $uri = JFactory::getURI();
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('COM_REDSHOP_SHOPPER_GROUP'));
     jimport('joomla.html.pagination');
     JToolBarHelper::title(JText::_('COM_REDSHOP_SHOPPER_GROUP_MANAGEMENT'), 'redshop_manufact48');
     JToolBarHelper::addNewX();
     JToolBarHelper::editListX();
     JToolBarHelper::deleteList();
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'shopper_group_id');
     $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '');
     $lists['order'] = $filter_order;
     $lists['order_Dir'] = $filter_order_Dir;
     $groups = $shoppergroup->getshopperGroupListArray();
     $pagination = $this->get('Pagination');
     $this->user = JFactory::getUser();
     $this->lists = $lists;
     $this->media = $groups;
     $this->pagination = $pagination;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
예제 #16
0
 function display($tpl = null)
 {
     $document =& JFactory::getDocument();
     $document->addStyleSheet('components/com_acepolls/assets/css/acepolls.css');
     JToolBarHelper::title(JText::_('COM_ACEPOLLS_POLLS'), 'acepolls');
     JToolBarHelper::addNewX();
     JToolBarHelper::editListX();
     JToolBarHelper::deleteList();
     JToolBarHelper::divider();
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     JToolBarHelper::divider();
     JToolBarHelper::custom('resetVotes', 'cancel.png', 'cancel.png', JText::_('COM_ACEPOLLS_RESET_VOTES'), true, false);
     JToolBarHelper::preferences('com_acepolls');
     $this->mainframe = JFactory::getApplication();
     $this->option = JRequest::getWord('option');
     $filter_order = $this->mainframe->getUserStateFromRequest($this->option . '.polls.filter_order', 'filter_order', 'm.title', 'string');
     $filter_order_Dir = $this->mainframe->getUserStateFromRequest($this->option . '.polls.filter_order_Dir', 'filter_order_Dir', '', 'word');
     $filter_state = $this->mainframe->getUserStateFromRequest($this->option . '.polls.filter_state', 'filter_state', '', 'word');
     $search = $this->mainframe->getUserStateFromRequest($this->option . '.polls.search', 'search', '', 'string');
     JHTML::_('behavior.tooltip');
     // 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;
     $this->assignRef('user', JFactory::getUser());
     $this->assignRef('lists', $lists);
     $this->assignRef('items', $this->get('Data'));
     $this->assignRef('pagination', $this->get('Pagination'));
     parent::display($tpl);
 }
예제 #17
0
 function setVereineToolbar()
 {
     // Menubilder laden
     require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_clm' . DS . 'images' . DS . 'admin_menue_images.php';
     JToolBarHelper::title(JText::_('TITLE_VEREIN'), 'clm_headmenu_vereine.png');
     if (CLM_usertype === 'admin') {
         JToolBarHelper::custom('copy_saison', 'copy.png', 'copy_f2.png', 'VEREIN_BUTTON_COPY_LAST_YEAR', false);
     }
     //if (CLM_sl_count !== '0' OR CLM_usertype === 'admin') {
     if (CLM_usertype === 'admin' || CLM_usertype === 'sl') {
         JToolBarHelper::custom('gruppen', 'send.png', 'send_f2.png', 'VEREIN_BUTTON_GROUP_EDIT', false);
         JToolBarHelper::custom('rangliste', 'send.png', 'send_f2.png', 'VEREIN_BUTTON_RANG_EDIT', false);
     }
     if (CLM_usertype === 'admin' or CLM_usertype === 'dv' or CLM_usertype === 'dwz') {
         JToolBarHelper::custom('dwz', 'send.png', 'send_f2.png', 'VEREIN_BUTTON_MEMBER_EDIT', false);
     }
     if (CLM_usertype === 'admin' || CLM_usertype === 'dv' || CLM_usertype === 'sl') {
         JToolBarHelper::publishList();
         JToolBarHelper::unpublishList();
     }
     if (CLM_usertype === 'admin') {
         JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', 'VEREIN_BUTTON_COPY');
         JToolBarHelper::custom('remove', 'delete.png', 'delete_f2.png', 'VEREIN_BUTTON_DEL', false);
     }
     JToolBarHelper::editListX();
     if (CLM_usertype === 'admin') {
         JToolBarHelper::custom('add', 'new.png', 'new_f2.png', 'VEREIN_BUTTON_NEW', false);
     }
     JToolBarHelper::help('screen.clm.verein');
 }
예제 #18
0
 /**
  * (non-PHPdoc)
  * @see Citruscart/admin/views/CitruscartViewBase#_defaultToolbar()
  */
 function _defaultToolbar()
 {
     JToolBarHelper::publishList('coupon_enabled.enable');
     JToolBarHelper::unpublishList('coupon_enabled.disable');
     JToolBarHelper::divider();
     parent::_defaultToolbar();
 }
 function MENU_Default()
 {
     JToolBarHelper::title(JText::_('Forms Manager'));
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     //JToolBarHelper::divider();
     JToolBarHelper::addNew();
     JToolBarHelper::custom($task = 'copy', $icon = 'copy_f2.png', $iconOver = 'copy_f2.png', $alt = JText::_('Copy form'), $listSelect = true);
     JToolBarHelper::editList();
     JToolBarHelper::deleteList();
     JToolBarHelper::divider();
     JToolBarHelper::custom($task = 'transform', $icon = 'transform.png', $iconOver = 'transform.png', $alt = JText::_('Transform Form'), $listSelect = true);
     JToolBarHelper::custom($task = 'wizardedit', $icon = 'wizardedit.png', $iconOver = 'wizardedit.png', $alt = JText::_('Wizard Edit'), $listSelect = true);
     JToolBarHelper::divider();
     //JToolBarHelper::custom($task = 'adminview', $icon = 'person2_f2.png', $iconOver = 'person2_f2.png', $alt = 'Admin View', $listSelect = true) ;
     //JToolBarHelper::custom($task = 'show', $icon = 'extensions_f2.png', $iconOver = 'extensions_f2.png', $alt = 'Show Data', $listSelect = true) ;
     JToolBarHelper::custom($task = 'createtable', $icon = 'properties_f2.png', $iconOver = 'properties_f2.png', $alt = JText::_('Create table'), $listSelect = true);
     //JToolBarHelper::custom($task = 'tablemanager', $icon = 'properties_f2.png', $iconOver = 'properties_f2.png', $alt = JText::_('Tables Manager'), $listSelect = false) ;
     JToolBarHelper::deleteList('', 'deletetable', 'Remove Table');
     JToolBarHelper::custom($task = 'backup', $icon = 'downloads_f2.png', $iconOver = 'downloads_f2.png', $alt = JText::_('Backup Form'), $listSelect = true);
     JToolBarHelper::custom($task = 'backupall', $icon = 'downloads_f2.png', $iconOver = 'downloads_f2.png', $alt = JText::_('Backup Forms'), $listSelect = false);
     JToolBarHelper::custom($task = 'restore1', $icon = 'restore_f2.png', $iconOver = 'restore_f2.png', $alt = JText::_('Restore Form(s)'), $listSelect = false);
     //JToolBarHelper::divider();
     //JToolBarHelper::preferences('com_chronocontact', '500' , '750');
 }
예제 #20
0
 function addToolbar()
 {
     $task = JRequest::getWord('task', '');
     JToolBarHelper::title(JText::_('EMAIL_TEMPLATE_MANAGER'));
     switch ($task) {
         case 'add':
         case 'edit':
             JToolBarHelper::apply();
             JToolBarHelper::save();
             JToolBarHelper::cancel();
             break;
         case 'show_duplicate':
         case 'show_import':
         case 'show_export':
             break;
         default:
             JToolBarHelper::custom('show_duplicate', 'copy', '', JText::_('COPY_TO'));
             JToolBarHelper::custom('show_import', 'upload', '', JText::_('IMPORT'), false);
             JToolBarHelper::custom('export', 'export', '', JText::_('EXPORT'));
             JToolBarHelper::publishList();
             JToolBarHelper::unpublishList();
             JToolBarHelper::deleteList(JText::_('ARE_YOU_SURE_TO_DELETE'));
             JToolBarHelper::editList();
             JToolBarHelper::addNew();
             break;
     }
 }
예제 #21
0
 public static function setRundenToolbar($sid, $params_round_date)
 {
     $clmAccess = clm_core::$access;
     // Menubilder laden
     clm_core::$load->load_css("icons_images");
     JToolBarHelper::title(JText::_('TITLE_RUNDE'), 'clm_settings.png');
     if (clm_core::$db->saison->get($sid)->published == 1 and clm_core::$db->saison->get($sid)->archiv == 0) {
         if ($clmAccess->access('BE_league_edit_fixture') !== false) {
             JToolBarHelper::custom('paarung', 'edit.png', 'edit_f2.png', JText::_('LEAGUE_BUTTON_1'), false);
             if ($params_round_date == '1') {
                 JToolBarHelper::custom('pairingdates', 'edit.png', 'edit_f2.png', JText::_('ROUND_EDIT_PAIRING_DATES'), false);
             }
         }
         JToolBarHelper::custom('check', 'preview.png', 'upload_f2.png', 'RUNDE_CHECK', false);
         // Nur CLM-Admin hat Zugriff auf Toolbar
         if ($clmAccess->access('BE_league_edit_round') !== false) {
             JToolBarHelper::publishList();
             JToolBarHelper::unpublishList();
             JToolBarHelper::custom('copy', 'copy.png', 'copy_f2.png', 'Copy');
             JToolBarHelper::deleteList();
             // JToolBarHelper::editList();
             JToolBarHelper::addNew();
         }
     }
     JToolBarHelper::help('screen.clm.runde');
 }
예제 #22
0
 function display($tpl = null)
 {
     // Load the helper(s)
     if (!class_exists('VmHTML')) {
         require VMPATH_ADMIN . DS . 'helpers' . DS . 'html.php';
     }
     $this->setLayout('default');
     $model = tmsModel::getModel();
     $app = JFactory::getApplication();
     $task = $app->input->getString('task', '');
     $config = JFactory::getConfig();
     $layoutName = vRequest::getCmd('layout', 'default');
     $this->tsmart_product_id = $app->input->get('tsmart_product_id', 0, 'int');
     require_once JPATH_ROOT . '/administrator/components/com_tsmart/helpers/tsmproduct.php';
     $this->SetViewTitle();
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     JToolBarHelper::editList();
     JToolBarHelper::addNew();
     JToolBarHelper::deleteList();
     $model->setDefaultValidOrderingFields('itinerary');
     $this->addStandardDefaultViewLists($model, 0, 'ASC');
     $this->state = $model->getState();
     $this->filterForm = $this->getFilterForm();
     $this->items = $model->getItemList(vRequest::getCmd('search', false));
     $this->pagination = $model->getPagination();
     if ($task == 'edit' || $task == 'add') {
         require_once JPATH_ROOT . '/administrator/components/com_tsmart/helpers/vmcities.php';
         $this->item = $model->getItem();
         $cities = tsmcities::get_cities();
         $this->assignRef('cities', $cities);
     }
     parent::display($tpl);
 }
예제 #23
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     require_once JPATH_COMPONENT . '/helpers/languages.php';
     $canDo = LanguagesHelper::getActions();
     JToolBarHelper::title(JText::_('COM_LANGUAGES_VIEW_LANGUAGES_TITLE'), 'langmanager.png');
     if ($canDo->get('core.create')) {
         JToolBarHelper::addNew('language.add');
     }
     if ($canDo->get('core.edit')) {
         JToolBarHelper::editList('language.edit');
         JToolBarHelper::divider();
     }
     if ($canDo->get('core.edit.state')) {
         if ($this->state->get('filter.published') != 2) {
             JToolBarHelper::publishList('languages.publish');
             JToolBarHelper::unpublishList('languages.unpublish');
         }
     }
     if ($this->state->get('filter.published') == -2 && $canDo->get('core.delete')) {
         JToolBarHelper::deleteList('', 'languages.delete', 'JTOOLBAR_EMPTY_TRASH');
         JToolBarHelper::divider();
     } elseif ($canDo->get('core.edit.state')) {
         JToolBarHelper::trash('languages.trash');
         JToolBarHelper::divider();
     }
     if ($canDo->get('core.admin')) {
         JToolBarHelper::preferences('com_languages');
         JToolBarHelper::divider();
     }
     JToolBarHelper::help('JHELP_EXTENSIONS_LANGUAGE_MANAGER_CONTENT');
 }
예제 #24
0
 function overview($tpl = null)
 {
     $this->state = $this->get('State');
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!!
     JEVHelper::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/');
     $document =& JFactory::getDocument();
     $document->setTitle(JText::_('CATEGORIES'));
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('CATEGORIES'), 'jevents');
     JToolBarHelper::publishList('categories.publish');
     JToolBarHelper::unpublishList('categories.unpublish');
     JToolBarHelper::addNew('categories.add');
     JToolBarHelper::editList('categories.edit');
     JToolBarHelper::deleteList("delete category", 'categories.delete');
     JToolBarHelper::spacer();
     JToolBarHelper::custom('cpanel.cpanel', 'default.png', 'default.png', 'JEV_ADMIN_CPANEL', false);
     //JToolBarHelper::help( 'screen.categories', true);
     JSubMenuHelper::addEntry(JText::_('CONTROL_PANEL'), 'index.php?option=' . JEV_COM_COMPONENT, true);
     JHTML::_('behavior.tooltip');
     // Preprocess the list of items to find ordering divisions.
     // RSH 9/28/10 Added check for empty list - if no items were created.
     if (count($this->items) > 0) {
         foreach ($this->items as &$item) {
             $this->ordering[$item->parent_id][] = $item->id;
         }
     }
 }
예제 #25
0
 function toolbar()
 {
     switch (JRequest::getCmd('task')) {
         case 'edit':
         case 'apply':
         case 'add':
             switch (JRequest::getCmd('task')) {
                 case 'add':
                     JToolBarHelper::title(JText::_('COM_REDFORM_Add_Value'), 'redform_plus');
                     break;
                 default:
                     JToolBarHelper::title(JText::_('COM_REDFORM_Edit_Value'), 'redform_plus');
                     break;
             }
             JToolBarHelper::save();
             JToolBarHelper::apply();
             JToolBarHelper::cancel();
             break;
         default:
             JToolBarHelper::title(JText::_('COM_REDFORM_Values'), 'redform_values');
             if ($this->get('Total', 'fields') > 0) {
                 JToolBarHelper::publishList();
                 JToolBarHelper::unpublishList();
                 JToolBarHelper::spacer();
                 JToolBarHelper::deleteList();
                 JToolBarHelper::editListX();
                 JToolBarHelper::addNew();
             }
             break;
     }
 }
예제 #26
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     require_once JPATH_COMPONENT . '/helpers/languages.php';
     $canDo = LanguagesHelper::getActions();
     JToolBarHelper::title(JText::_('COM_LANGUAGES_VIEW_LANGUAGES_TITLE'), 'langmanager.png');
     if ($canDo->get('core.create')) {
         JToolBarHelper::addNew('language.add');
     }
     if ($canDo->get('core.edit')) {
         JToolBarHelper::editList('language.edit');
         JToolBarHelper::divider();
     }
     if ($canDo->get('core.edit.state')) {
         if ($this->state->get('filter.published') != 2) {
             JToolBarHelper::publishList('languages.publish');
             JToolBarHelper::unpublishList('languages.unpublish');
         }
     }
     if ($this->state->get('filter.published') == -2 && $canDo->get('core.delete')) {
         JToolBarHelper::deleteList('', 'languages.delete', 'JTOOLBAR_EMPTY_TRASH');
         JToolBarHelper::divider();
     } elseif ($canDo->get('core.edit.state')) {
         JToolBarHelper::trash('languages.trash');
         JToolBarHelper::divider();
     }
     if ($canDo->get('core.admin')) {
         // Add install languages link to the lang installer component
         $bar = JToolBar::getInstance('toolbar');
         $bar->appendButton('Link', 'extension', 'COM_LANGUAGES_INSTALL', 'index.php?option=com_installer&view=languages');
         JToolBarHelper::divider();
         JToolBarHelper::preferences('com_languages');
         JToolBarHelper::divider();
     }
     JToolBarHelper::help('JHELP_EXTENSIONS_LANGUAGE_MANAGER_CONTENT');
 }
예제 #27
0
 function overview($tpl = null)
 {
     // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!!
     if (JVersion::isCompatible("1.6.0")) {
         JHTML::stylesheet('administrator/components/' . JEV_COM_COMPONENT . '/assets/css/eventsadmin.css');
     } else {
         JHTML::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/');
     }
     $document =& JFactory::getDocument();
     $document->setTitle(JText::_('ICAL_EVENTS'));
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('ICAL_EVENTS'), 'jevents');
     //JToolBarHelper::custom('icalevent.csvimport','upload.png','upload.png','JEV_ADMIN_CSVIMPORT',false);
     JToolBarHelper::publishList('icalevent.publish');
     JToolBarHelper::unpublishList('icalevent.unpublish');
     JToolBarHelper::addNew('icalevent.edit');
     JToolBarHelper::editList('icalevent.edit');
     JToolBarHelper::custom('icalevent.editcopy', 'copy.png', 'copy.png', 'JEV_ADMIN_COPYEDIT');
     JToolBarHelper::deleteList('Delete Event and all repeats?', 'icalevent.delete');
     JToolBarHelper::spacer();
     JToolBarHelper::custom('cpanel.cpanel', 'default.png', 'default.png', 'JEV_ADMIN_CPANEL', false);
     //JToolBarHelper::help( 'screen.ical', true);
     JSubMenuHelper::addEntry(JText::_('CONTROL_PANEL'), 'index.php?option=' . JEV_COM_COMPONENT, true);
     $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
     //$section = $params->getValue("section",0);
     JHTML::_('behavior.tooltip');
 }
예제 #28
0
 function displayItems()
 {
     $mainframe = JFactory::getApplication();
     $user = JFactory::getUser();
     $option = JRequest::getCmd('option');
     $view = JRequest::getCmd('view');
     $limit = $mainframe->getUserStateFromRequest('global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int');
     $limitstart = $mainframe->getUserStateFromRequest($option . $view . '.limitstart', 'limitstart', 0, 'int');
     $filter_order = $mainframe->getUserStateFromRequest($option . $view . 'filter_order', 'filter_order', 'id', 'cmd');
     $filter_order_Dir = $mainframe->getUserStateFromRequest($option . $view . 'filter_order_Dir', 'filter_order_Dir', 'DESC', 'word');
     $filter_state = $mainframe->getUserStateFromRequest($option . $view . 'filter_state', 'filter_state', -1, 'int');
     $search = $mainframe->getUserStateFromRequest($option . $view . 'search', 'search', '', 'string');
     $search = JString::strtolower($search);
     $model = $this->getModel();
     $tags = $model->getData();
     $this->assignRef('rows', $tags);
     $total = $model->getTotal();
     jimport('joomla.html.pagination');
     $pageNav = new JPagination($total, $limitstart, $limit);
     $this->assignRef('page', $pageNav);
     $lists = array();
     $lists['search'] = $search;
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     $filter_state_options[] = JHTML::_('select.option', -1, JText::_('_SELECT_STATE_'));
     $filter_state_options[] = JHTML::_('select.option', 1, JText::_('PUBLISHED'));
     $filter_state_options[] = JHTML::_('select.option', 0, JText::_('UNPUBLISHED'));
     $lists['state'] = JHTML::_('select.genericlist', $filter_state_options, 'filter_state', 'onchange="this.form.submit();"', 'value', 'text', $filter_state);
     $this->assignRef('lists', $lists);
     JToolBarHelper::title(JText::_('TAGS'));
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     JToolBarHelper::deleteList(JText::_('ARE_YOU_SURE_YOU_WANT_TO_DELETE_SELECTED_TAGS'), 'remove', JText::_('DELETE'));
     JToolBarHelper::addNew();
 }
예제 #29
0
 /**
  * The default method that will display the output of this view which is called by
  * Joomla
  *
  * @param	string template	Template file name
  **/
 public function display($tpl = null)
 {
     $mainframe = JFactory::getApplication();
     $jinput = $mainframe->input;
     //$search				= $mainframe->getUserStateFromRequest( "com_community.videos.search", 'search', '', 'string' );
     $search = JRequest::getVar('search', '');
     // Set the titlebar text
     JToolBarHelper::title(JText::_('COM_COMMUNITY_VIDEOS'), 'videos');
     // Add the necessary buttons
     JToolbarHelper::custom('fetchThumbnail', 'pictures', '', JText::_('COM_COMMUNITY_FETCH_THUMBNAIL'));
     JToolBarHelper::trash('delete', JText::_('COM_COMMUNITY_DELETE'));
     JToolBarHelper::publishList('publish', JText::_('COM_COMMUNITY_PUBLISH'));
     JToolBarHelper::unpublishList('unpublish', JText::_('COM_COMMUNITY_UNPUBLISH'));
     $videos = $this->get('Videos');
     $pagination = $this->get('Pagination');
     $categories = $this->get('Categories');
     foreach ($videos as $key => $vid) {
         foreach ($categories as $cat) {
             $videos[$key]->categoryName = '';
             if ($cat->id == $vid->category_id) {
                 $videos[$key]->categoryName = $cat->name;
                 break;
             }
         }
     }
     $catHTML = $this->_getCategoriesHTML($categories);
     $this->assignRef('videos', $videos);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('search', $search);
     $this->assignRef('categories', $catHTML);
     parent::display($tpl);
 }
예제 #30
0
파일: view.html.php 프로젝트: Ruud68/cjblog
 function display($tpl = null)
 {
     JToolBarHelper::title(JText::_('COM_CJBLOG') . " <small>[" . JText::_("COM_CJBLOG_POINT_RULES") . "]</small>");
     JToolBarHelper::divider();
     $model = $this->getModel();
     $app = JFactory::getApplication();
     switch ($this->action) {
         case 'default':
             JToolBarHelper::publishList();
             JToolBarHelper::unpublishList();
             JToolBarHelper::deleteList();
             $return = $model->get_rules();
             $items = $return->rules ? $return->rules : array();
             $this->assignRef('items', $items);
             $this->assignRef('state', $return->state);
             $this->assignRef('pagination', $return->pagination);
             $tpl = null;
             break;
         case 'form':
             JToolBarHelper::save();
             JToolBarHelper::cancel();
             $id = $app->input->getInt('id', 0);
             if (!$id) {
                 return CJFunctions::throw_error(JText::_('COM_CJBLOG_NO_ITEM_FOUND'), 404);
             }
             $rule = $model->get_rule($id);
             $this->assignRef('rule', $rule);
             $tpl = 'form';
             break;
     }
     parent::display($tpl);
 }