コード例 #1
1
ファイル: view.html.php プロジェクト: educakanchay/educared
 /**
  * Method to configure the toolbar for this view.
  *
  * @return  void
  *
  * @since   2.5
  */
 protected function addToolbar()
 {
     $canDo = JHelperContent::getActions('com_finder');
     JToolbarHelper::title(JText::_('COM_FINDER_MAPS_TOOLBAR_TITLE'), 'zoom-in finder');
     $toolbar = JToolbar::getInstance('toolbar');
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publishList('maps.publish');
         JToolbarHelper::unpublishList('maps.unpublish');
         JToolbarHelper::divider();
     }
     if ($canDo->get('core.admin') || $canDo->get('core.options')) {
         JToolbarHelper::preferences('com_finder');
     }
     JToolbarHelper::divider();
     $toolbar->appendButton('Popup', 'bars', 'COM_FINDER_STATISTICS', 'index.php?option=com_finder&view=statistics&tmpl=component', 550, 350);
     JToolbarHelper::divider();
     JToolbarHelper::help('JHELP_COMPONENTS_FINDER_MANAGE_CONTENT_MAPS');
     if ($canDo->get('core.delete')) {
         JToolbarHelper::deleteList('', 'maps.delete');
         JToolbarHelper::divider();
     }
     JHtmlSidebar::setAction('index.php?option=com_finder&view=maps');
     JHtmlSidebar::addFilter('', 'filter_branch', JHtml::_('select.options', JHtml::_('finder.mapslist'), 'value', 'text', $this->state->get('filter.branch')), true);
     JHtmlSidebar::addFilter(JText::_('COM_FINDER_INDEX_FILTER_BY_STATE'), 'filter_state', JHtml::_('select.options', JHtml::_('finder.statelist'), 'value', 'text', $this->state->get('filter.state')));
 }
コード例 #2
0
ファイル: view.html.php プロジェクト: pashakiz/crowdf
 /**
  * Add a menu on the sidebar of page
  */
 protected function addSidebar()
 {
     JHtmlSidebar::setAction('index.php?option=' . $this->option . '&view=' . $this->getName());
     $states = array(JHtml::_("select.option", "0", JText::_("COM_SOCIALCOMMUNITY_DOES_NOT_EXISTS")), JHtml::_("select.option", "1", JText::_("COM_SOCIALCOMMUNITY_EXISTS")));
     JHtmlSidebar::addFilter(JText::_('COM_SOCIALCOMMUNITY_SELECT_PROFILE_STATE'), 'filter_profile', JHtml::_('select.options', $states, 'value', 'text', $this->state->get('filter.profile'), true));
     $this->sidebar = JHtmlSidebar::render();
 }
コード例 #3
0
ファイル: view.html.php プロジェクト: site4com/acts
 /**
  * Add the page title and toolbar.
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     $state = $this->get('State');
     $canDo = JHelperContent::getActions('com_edashboard', 'category', $state->get('filter.category_id'));
     $user = JFactory::getUser();
     // Get the toolbar object instance
     $bar = JToolBar::getInstance('toolbar');
     JToolbarHelper::title(JText::_('COM_EDASHBOARD_MANAGER'), 'calendar-3');
     if (count($user->getAuthorisedCategories('com_edashboard', 'core.create')) > 0) {
         JToolbarHelper::addNew('post.add');
     }
     if ($canDo->get('core.edit')) {
         JToolbarHelper::editList('post.edit');
     }
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publish('edashboard.publish', 'JTOOLBAR_PUBLISH', true);
         JToolbarHelper::unpublish('edashboard.unpublish', 'JTOOLBAR_UNPUBLISH', true);
         JToolbarHelper::archiveList('edashboard.archive');
     }
     if ($canDo->get('core.admin')) {
         JToolbarHelper::checkin('post.checkin');
     }
     if ($state->get('filter.published') == -2 && $canDo->get('core.delete')) {
         JToolbarHelper::deleteList('', 'edashboard.delete', 'JTOOLBAR_EMPTY_TRASH');
     } elseif ($canDo->get('core.edit.state')) {
         JToolbarHelper::trash('edashboard.trash');
     }
     if ($user->authorise('core.admin', 'com_edashboard')) {
         JToolbarHelper::preferences('com_edashboard');
     }
     JToolbarHelper::help('JHELP_COMPONENTS_ACT');
     JHtmlSidebar::setAction('index.php?option=com_edashboard&view=edashboard');
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true));
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_CATEGORY'), 'filter_category_id', JHtml::_('select.options', JHtml::_('category.options', 'com_edashboard'), 'value', 'text', $this->state->get('filter.category_id')));
 }
コード例 #4
0
ファイル: view.html.php プロジェクト: RuDers/JoomlaSQL
 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     $canDo = UsersHelper::getActions();
     JToolbarHelper::title(JText::_('COM_USERS_VIEW_USERS_TITLE'), 'user');
     if ($canDo->get('core.create')) {
         JToolbarHelper::addNew('user.add');
     }
     if ($canDo->get('core.edit')) {
         JToolbarHelper::editList('user.edit');
     }
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::divider();
         JToolbarHelper::publish('users.activate', 'COM_USERS_TOOLBAR_ACTIVATE', true);
         JToolbarHelper::unpublish('users.block', 'COM_USERS_TOOLBAR_BLOCK', true);
         JToolbarHelper::custom('users.unblock', 'unblock.png', 'unblock_f2.png', 'COM_USERS_TOOLBAR_UNBLOCK', true);
         JToolbarHelper::divider();
     }
     if ($canDo->get('core.delete')) {
         JToolbarHelper::deleteList('', 'users.delete');
         JToolbarHelper::divider();
     }
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_users');
         JToolbarHelper::divider();
     }
     JToolbarHelper::help('JHELP_USERS_USER_MANAGER');
     JHtmlSidebar::setAction('index.php?option=com_users&view=users');
     JHtmlSidebar::addFilter(JText::_('COM_USERS_FILTER_STATE'), 'filter_state', JHtml::_('select.options', UsersHelper::getStateOptions(), 'value', 'text', $this->state->get('filter.state')));
     JHtmlSidebar::addFilter(JText::_('COM_USERS_FILTER_ACTIVE'), 'filter_active', JHtml::_('select.options', UsersHelper::getActiveOptions(), 'value', 'text', $this->state->get('filter.active')));
     JHtmlSidebar::addFilter(JText::_('COM_USERS_FILTER_USERGROUP'), 'filter_group_id', JHtml::_('select.options', UsersHelper::getGroups(), 'value', 'text', $this->state->get('filter.group_id')));
     JHtmlSidebar::addFilter(JText::_('COM_USERS_OPTION_FILTER_DATE'), 'filter_range', JHtml::_('select.options', Usershelper::getRangeOptions(), 'value', 'text', $this->state->get('filter.range')));
 }
コード例 #5
0
 protected function addToolbar()
 {
     $bar = JToolBar::getInstance();
     JToolBarHelper::title(JText::_('COM_TZ_PORTFOLIO_PLUS_TAGS_MANAGER'), 'tags');
     JToolBarHelper::addNew('tag.add');
     JToolBarHelper::editList('tag.edit');
     JToolBarHelper::divider();
     JToolBarHelper::publish('tags.publish', 'JTOOLBAR_PUBLISH', true);
     JToolBarHelper::unpublish('tags.unpublish', 'JTOOLBAR_UNPUBLISH', true);
     JToolBarHelper::deleteList(JText::_('COM_TZ_PORTFOLIO_PLUS_QUESTION_DELETE'), 'tags.delete');
     JToolBarHelper::divider();
     JToolBarHelper::preferences('com_tz_portfolio_plus');
     JToolBarHelper::divider();
     $doc = JFactory::getDocument();
     // If the joomla is version 3.0
     if (COM_TZ_PORTFOLIO_PLUS_JVERSION_COMPARE) {
         $doc->addStyleSheet(JURI::base(true) . '/components/com_tz_portfolio_plus/fonts/font-awesome-4.5.0/css/font-awesome.min.css');
     }
     $doc->addStyleSheet(JURI::base(true) . '/components/com_tz_portfolio_plus/css/style.min.css');
     JToolBarHelper::help('JHELP_CONTENT_ARTICLE_MANAGER', false, 'http://wiki.templaza.com/TZ_Portfolio_Plus_v3:Administration#Tags');
     // Special HTML workaround to get send popup working
     $docClass = ' class="btn btn-small"';
     $youtubeIcon = '<i class="tz-icon-youtube tz-icon-14"></i>&nbsp;';
     $wikiIcon = '<i class="tz-icon-wikipedia tz-icon-14"></i>&nbsp;';
     $youtubeTitle = JText::_('COM_TZ_PORTFOLIO_PLUS_VIDEO_TUTORIALS');
     $wikiTitle = JText::_('COM_TZ_PORTFOLIO_PLUS_WIKIPEDIA_TUTORIALS');
     $videoTutorial = '<a' . $docClass . ' onclick="Joomla.popupWindow(\'http://www.youtube.com/channel/UCykS6SX6L2GOI-n3IOPfTVQ/videos\', \'' . $youtubeTitle . '\', 800, 500, 1)"' . ' href="#">' . $youtubeIcon . $youtubeTitle . '</a>';
     $wikiTutorial = '<a' . $docClass . ' onclick="Joomla.popupWindow(\'http://wiki.templaza.com/Main_Page\', \'' . $wikiTitle . '\', 800, 500, 1)"' . ' href="#">' . $wikiIcon . $wikiTitle . '</a>';
     $bar->appendButton('Custom', $videoTutorial, 'youtube');
     $bar->appendButton('Custom', $wikiTutorial, 'wikipedia');
     $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));
 }
コード例 #6
0
ファイル: view.html.php プロジェクト: rukin/joomla
 protected function addToolbar()
 {
     $canDo = FolioHelper::getActions();
     $bar = JToolBar::getInstance('toolbar');
     JToolbarHelper::title(JText::_('COM_FOLIO_MANAGER_FOLIOS'), '');
     JToolbarHelper::addNew('folio.add');
     if ($canDo->get('core.edit')) {
         JToolbarHelper::editList('folio.edit');
     }
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publish('folios.publish', 'JTOOLBAR_PUBLISH', true);
         JToolbarHelper::unpublish('folios.unpublish', 'JTOOLBAR_UNPUBLISH', true);
         JToolbarHelper::archiveList('folios.archive');
         JToolbarHelper::checkin('folios.checkin');
     }
     $state = $this->get('State');
     if ($state->get('filter.state') == -2 && $canDo->get('core.delete')) {
         JToolbarHelper::deleteList('', 'folios.delete', 'JTOOLBAR_EMPTY_TRASH');
     } elseif ($canDo->get('core.edit.state')) {
         JToolbarHelper::trash('folios.trash');
     }
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_folio');
     }
     JHtmlSidebar::setAction('index.php?option=com_folio&view=folios');
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_state', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.state'), true));
 }
コード例 #7
0
ファイル: view.html.php プロジェクト: nvthuong11/tz_pinboard
 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
ファイル: view.html.php プロジェクト: pguilford/vcomcc
 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     require_once JPATH_COMPONENT . '/helpers/improved_ajax_login.php';
     $state = $this->get('State');
     $canDo = Improved_ajax_loginHelper::getActions($state->get('filter.category_id'));
     JToolBarHelper::title(JText::_('COM_IMPROVED_AJAX_LOGIN_TITLE_OAUTHS'), 'oauths.png');
     //Check if the form exists before showing the add/edit buttons
     $formPath = JPATH_COMPONENT_ADMINISTRATOR . '/views/oauth';
     if (file_exists($formPath)) {
         if ($canDo->get('core.edit') && isset($this->items[0])) {
             JToolBarHelper::editList('oauth.edit', 'JTOOLBAR_EDIT');
         }
     }
     if ($canDo->get('core.edit.state')) {
         if (isset($this->items[0]->published)) {
             JToolBarHelper::divider();
             JToolBarHelper::custom('oauths.publish', 'publish.png', 'publish_f2.png', 'JTOOLBAR_PUBLISH', true);
             JToolBarHelper::custom('oauths.unpublish', 'unpublish.png', 'unpublish_f2.png', 'JTOOLBAR_UNPUBLISH', true);
         } else {
             if (isset($this->items[0])) {
                 //If this component does not use state then show a direct delete button as we can not trash
                 JToolBarHelper::deleteList('', 'oauths.delete', 'JTOOLBAR_DELETE');
             }
         }
     }
     if ($canDo->get('core.admin')) {
         JToolBarHelper::preferences('com_improved_ajax_login');
     }
     //Set sidebar action - New in 3.0
     JHtmlSidebar::setAction('index.php?option=com_improved_ajax_login&view=oauths');
     $this->extra_sidebar = '';
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), "value", "text", $this->state->get('filter.state'), true));
 }
コード例 #9
0
ファイル: view.html.php プロジェクト: bellodox/UserIdeas
 /**
  * Add a menu on the sidebar of page
  */
 protected function addSidebar()
 {
     UserIdeasHelper::addSubmenu($this->getName());
     JHtmlSidebar::setAction('index.php?option=' . $this->option . '&view=' . $this->getName());
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_state', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array("archived" => false, "trash" => false)), 'value', 'text', $this->state->get('filter.state'), true));
     $this->sidebar = JHtmlSidebar::render();
 }
コード例 #10
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT . '/helpers/jcomments.php';
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     $this->liveSmiliesPath = str_replace('\\', '/', JCommentsHelper::getSmiliesPath());
     $filter_state = $this->state->get('filter.state');
     // Filter by published state
     $filter_state_options = array();
     $filter_state_options[] = JHTML::_('select.option', '1', JText::_('A_FILTER_STATE_PUBLISHED'));
     $filter_state_options[] = JHTML::_('select.option', '0', JText::_('A_FILTER_STATE_UNPUBLISHED'));
     JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
     JHtml::_('jcomments.stylesheet');
     if (version_compare(JVERSION, '3.0', 'ge')) {
         JHtml::_('bootstrap.tooltip');
         JHtml::_('formbehavior.chosen', 'select');
         JCommentsHelper::addSubmenu('smilies');
         JHtmlSidebar::setAction('index.php?option=com_jcomments&view=smilies');
         JHtmlSidebar::addFilter(JText::_('A_FILTER_STATE'), 'filter_state', JHtml::_('select.options', $filter_state_options, 'value', 'text', $filter_state, true));
         $this->bootstrap = true;
         $this->sidebar = JHtmlSidebar::render();
     } else {
         JCommentsHelper::addSubmenu('smilies');
         array_unshift($filter_state_options, JHTML::_('select.option', '', JText::_('A_FILTER_STATE')));
         $filter = JHTML::_('select.genericlist', $filter_state_options, 'filter_state', 'onchange="Joomla.submitform();"', 'value', 'text', $filter_state);
         $this->assignRef('filter', $filter);
     }
     $this->addToolbar();
     // Include the component HTML helpers.
     JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
     parent::display($tpl);
 }
コード例 #11
0
ファイル: toolbar.php プロジェクト: AlexanderKri/joom-upd
 public static function addFilter($text, $key, $options)
 {
     if (self::$isJ30) {
         JHtmlSidebar::addFilter($text, $key, $options);
     }
     // nothing for 2.5
 }
コード例 #12
0
ファイル: view.html.php プロジェクト: naka211/kkvn
 /**
  * Add the toolbar and toolbar title.
  *
  * @access  protected
  * @return  void
  *
  * @since 2.0
  */
 protected function addToolbar()
 {
     // Get the results for each action
     $canDo = JoomHelper::getActions();
     JToolBarHelper::title(JText::_('COM_JOOMGALLERY_CATMAN_CATEGORY_MANAGER'), 'folder');
     if ($this->_config->get('jg_disableunrequiredchecks') || $canDo->get('core.create') || count(JoomHelper::getAuthorisedCategories('core.create'))) {
         JToolbarHelper::addNew('new');
     }
     if (($this->_config->get('jg_disableunrequiredchecks') || $canDo->get('core.edit') || count(JoomHelper::getAuthorisedCategories('core.edit'))) && $this->pagination->total) {
         JToolbarHelper::editList('edit');
         JHtml::_('bootstrap.modal', 'collapseModal');
         $title = JText::_('JTOOLBAR_BATCH');
         $dhtml = "<button data-toggle=\"modal\" data-target=\"#collapseModal\" class=\"btn btn-small\">\n                  <i class=\"icon-checkbox-partial\" title=\"{$title}\"></i>\n                  {$title}</button>";
         JToolBar::getInstance('toolbar')->appendButton('Custom', $dhtml, 'batch');
         JToolbarHelper::divider();
     }
     if (($this->_config->get('jg_disableunrequiredchecks') || count(JoomHelper::getAuthorisedCategories('core.edit.state'))) && $this->pagination->total) {
         JToolbarHelper::publishList('publish', JText::_('COM_JOOMGALLERY_COMMON_PUBLISH'));
         JToolbarHelper::unpublishList('unpublish', JText::_('COM_JOOMGALLERY_COMMON_UNPUBLISH'));
         JToolbarHelper::divider();
     }
     if (($this->_config->get('jg_disableunrequiredchecks') || $canDo->get('core.delete') || count(JoomHelper::getAuthorisedCategories('core.delete'))) && $this->pagination->total) {
         JToolbarHelper::deleteList('', 'remove');
         JToolbarHelper::divider();
     }
     $options = array(JHtml::_('select.option', 1, JText::_('COM_JOOMGALLERY_COMMON_OPTION_PUBLISHED_ONLY')), JHtml::_('select.option', 0, JText::_('COM_JOOMGALLERY_COMMON_OPTION_NOT_PUBLISHED_ONLY')));
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', $options, 'value', 'text', $this->state->get('filter.published'), true));
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_ACCESS'), 'filter_access', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')));
     $options = array(JHtml::_('select.option', 1, JText::_('COM_JOOMGALLERY_CATMAN_OPTION_USERCATEGORIES_ONLY')), JHtml::_('select.option', 2, JText::_('COM_JOOMGALLERY_CATMAN_OPTION_BACKENDCATEGORIES_ONLY')));
     JHtmlSidebar::addFilter(JText::_('COM_JOOMGALLERY_COMMON_OPTION_SELECT_TYPE'), 'filter_type', JHtml::_('select.options', $options, 'value', 'text', $this->state->get('filter.type'), true));
 }
コード例 #13
0
ファイル: view.html.php プロジェクト: fur81/zofaxiopeu
 /**
  * Add the page title and toolbar.
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     require_once JPATH_COMPONENT . '/helpers/banners.php';
     $canDo = BannersHelper::getActions();
     JToolbarHelper::title(JText::_('COM_BANNERS_MANAGER_CLIENTS'), 'banners-clients.png');
     if ($canDo->get('core.create')) {
         JToolbarHelper::addNew('client.add');
     }
     if ($canDo->get('core.edit')) {
         JToolbarHelper::editList('client.edit');
     }
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publish('clients.publish', 'JTOOLBAR_PUBLISH', true);
         JToolbarHelper::unpublish('clients.unpublish', 'JTOOLBAR_UNPUBLISH', true);
         JToolbarHelper::archiveList('clients.archive');
         JToolbarHelper::checkin('clients.checkin');
     }
     if ($this->state->get('filter.state') == -2 && $canDo->get('core.delete')) {
         JToolbarHelper::deleteList('', 'clients.delete', 'JTOOLBAR_EMPTY_TRASH');
     } elseif ($canDo->get('core.edit.state')) {
         JToolbarHelper::trash('clients.trash');
     }
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_banners');
     }
     JToolbarHelper::help('JHELP_COMPONENTS_BANNERS_CLIENTS');
     JHtmlSidebar::setAction('index.php?option=com_banners&view=clients');
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_state', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.state'), true));
 }
コード例 #14
0
ファイル: view.html.php プロジェクト: sebarigonatto/j3reserva
 protected function addToolbar()
 {
     $canDo = ReservaHelper::getActions();
     $bar = JToolBar::getInstance('toolbar');
     JToolbarHelper::title(JText::_('COM_RESERVA_MANAGER_EVENTOS'), '');
     JToolbarHelper::addNew('evento.add');
     if ($canDo->get('core.edit')) {
         JToolbarHelper::editList('evento.edit');
     }
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publish('eventos.publish', 'JTOOLBAR_PUBLISH', true);
         JToolbarHelper::unpublish('eventos.unpublish', 'JTOOLBAR_UNPUBLISH', true);
         JToolbarHelper::archiveList('eventos.archive');
         JToolbarHelper::checkin('eventos.checkin');
     }
     //agregar filtro a la vista para busqueda
     JHtmlSidebar::setAction('index.php?option=com_reserva&view=eventos');
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_state', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.state'), true));
     /*
     if ($canDo->get('core.delete'))
     {
     	JToolBarHelper::deleteList('', 'eventos.delete', 'JTOOLBAR_DELETE');
     }
     se replaza el boton de borrado por envio a la papelera en vez de borrado completamente
     */
     $state = $this->get('State');
     if ($state->get('filter.state') == -2 && $canDo->get('core.delete')) {
         JToolbarHelper::deleteList('', 'eventos.delete', 'JTOOLBAR_EMPTY_TRASH');
     } elseif ($canDo->get('core.edit.state')) {
         JToolbarHelper::trash('eventos.trash');
     }
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_reserva');
     }
 }
コード例 #15
0
ファイル: view.html.php プロジェクト: pupsikus/bs.test
 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     $canDo = ZhYandexMapHelper::getPathActions();
     JToolBarHelper::title(JText::_('COM_ZHYANDEXMAP_MAPPATH_MANAGER'), 'mappath');
     if ($canDo->get('core.create')) {
         JToolBarHelper::addNew('mappath.add', 'JTOOLBAR_NEW');
     }
     if ($canDo->get('core.edit')) {
         JToolBarHelper::editList('mappath.edit', 'JTOOLBAR_EDIT');
     }
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::divider();
         JToolBarHelper::publish('mappaths.publish', 'JTOOLBAR_PUBLISH', true);
         JToolBarHelper::unpublish('mappaths.unpublish', 'JTOOLBAR_UNPUBLISH', true);
         JToolBarHelper::divider();
     }
     if ($canDo->get('core.delete')) {
         JToolBarHelper::deleteList('', 'mappaths.delete', 'JTOOLBAR_DELETE');
     }
     if ($canDo->get('core.admin')) {
         JToolBarHelper::divider();
         JToolBarHelper::preferences('com_zhyandexmap');
     }
     JHtmlSidebar::setAction('index.php?option=com_zhyandexmap');
     JHtmlSidebar::addFilter(JText::_('COM_ZHYANDEXMAP_MAPMARKER_FILTER_MAP'), 'filter_mapid', JHtml::_('select.options', $this->mapList, 'value', 'text', $this->state->get('filter.mapid')));
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true));
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_CATEGORY'), 'filter_category_id', JHtml::_('select.options', JHtml::_('category.options', 'com_zhyandexmap'), 'value', 'text', $this->state->get('filter.category_id')));
     $this->sidebar = JHtmlSidebar::render();
 }
コード例 #16
0
 /**
  * Add the page title and toolbar.
  *
  * @since    1.1.0
  */
 protected function addToolbar()
 {
     $canDo = FieldsandfiltersHelper::getActions();
     JToolBarHelper::title(JText::_('COM_FIELDSANDFILTERS_TITLE_FIELDVALUES'), 'faf-field-values');
     if (FieldsandfiltersFactory::isVersion() && FieldsandfiltersFactory::isVersion('<', 3.2)) {
         JHtmlSidebar::setAction('index.php?option=com_fieldsandfilters&view=fieldvalues');
         JHtmlSidebar::addFilter(null, 'filter_field_id', JHtml::_('select.options', JHtml::_('FieldsandfiltersHtml.options.fields'), 'value', 'text', $this->state->get('filter.field_id'), false));
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('FieldsandfiltersHtml.options.states', array('adminonly' => false)), 'value', 'text', $this->state->get('filter.state'), false));
     }
     if ($canDo->get('core.create')) {
         JToolBarHelper::addNew('fieldvalue.add', 'JTOOLBAR_NEW');
     }
     if ($canDo->get('core.edit')) {
         JToolBarHelper::editList('fieldvalue.edit', 'JTOOLBAR_EDIT');
     }
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::divider();
         JToolBarHelper::custom('fieldvalues.publish', 'publish.png', 'publish_f2.png', 'JTOOLBAR_PUBLISH', true);
         JToolBarHelper::custom('fieldvalues.unpublish', 'unpublish.png', 'unpublish_f2.png', 'JTOOLBAR_UNPUBLISH', true);
         JToolBarHelper::deleteList('', 'fieldvalues.delete', 'JTOOLBAR_DELETE');
     }
     if ($canDo->get('core.admin')) {
         JToolBarHelper::divider();
         JToolBarHelper::preferences('com_fieldsandfilters');
     }
 }
コード例 #17
0
 /**
  * Display the view
  *
  * @return	void
  */
 public function display($tpl = null)
 {
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     // print_r($this->state);
     $forms = $this->get('creativeForms');
     $types = $this->get('creativeTypes');
     //get form options
     $options = array();
     foreach ($forms as $form) {
         $options[] = JHtml::_('select.option', $form->id, $form->name);
     }
     //get type options
     $type_options = array();
     foreach ($types as $type) {
         $type_options[] = JHtml::_('select.option', $type->id, $type->name);
     }
     if (JV == 'j2') {
         $this->assignRef('form_options', $options);
         $this->assignRef('type_options', $type_options);
     } else {
         JHtmlSidebar::addFilter(JText::_('COM_CREATIVECONTACTFORM_SELECT_FORM'), 'filter_form_id', JHtml::_('select.options', $options, 'value', 'text', $this->state->get('filter.form_id')));
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true));
         JHtmlSidebar::addFilter(JText::_('COM_CREATIVECONTACTFORM_SELECT_TYPE'), 'filter_type_id', JHtml::_('select.options', $type_options, 'value', 'text', $this->state->get('filter.type_id')));
     }
     $this->addToolbar();
     if (JV == 'j3') {
         $this->sidebar = JHtmlSidebar::render();
     }
     parent::display($tpl);
 }
コード例 #18
0
ファイル: view.html.php プロジェクト: Glonum/tz_portfolio
 protected function addToolbar()
 {
     $canDo = JHelperContent::getActions('com_jvisualcontent');
     $user = JFactory::getUser();
     JToolbarHelper::title(JText::_('COM_JVISUALCONTENT_EXTRAFIELDS_MANAGER'));
     // Create new button
     if ($canDo->get('core.create')) {
         JToolbarHelper::addNew('extrafield.add');
         JToolbarHelper::divider();
     }
     // Create edit button
     if ($canDo->get('core.edit') || $canDo->get('core.edit.own')) {
         JToolbarHelper::editList('type.edit');
     }
     // Create publish, unpublish buttons
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publish('extrafields.publish');
         JToolbarHelper::unpublish('extrafields.unpublish');
         JToolbarHelper::divider();
     }
     if ($this->state->get('filter.published') == -2 && $user->authorise('core.delete')) {
         JToolbarHelper::deleteList('', 'extrafields.delete', 'JTOOLBAR_EMPTY_TRASH');
     } elseif ($canDo->get('core.edit.state')) {
         JToolbarHelper::trash('extrafields.trash');
     }
     // Create options button
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_jvisualcontent');
     }
     if (version_compare(JVERSION, '3.0', '>=')) {
         $fieldsType = array('textfield' => JText::_('COM_JVISUALCONTENT_TEXT_FIELD'), 'textarea' => JText::_('COM_JVISUALCONTENT_TEXTAREA'), 'select' => JText::_('COM_JVISUALCONTENT_DROPDOWN_SELECT'), 'multiselect' => JText::_('COM_JVISUALCONTENT_DROPDOWN_LIST'), 'radio' => JText::_('COM_JVISUALCONTENT_RADIO'), 'checkbox' => JText::_('COM_JVISUALCONTENT_CHECKBOX'), 'editor' => JText::_('COM_JVISUALCONTENT_EDITOR'), 'calendar' => JText::_('COM_JVISUALCONTENT_CALENDAR'), 'file' => JText::_('COM_JVISUALCONTENT_FILE'));
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('archived' => false)), 'value', 'text', $this->state->get('filter.published'), true));
         JHtmlSidebar::addFilter(JText::_('COM_JVISUALCONTENT_OPTION_SELECT_TYPE'), 'filter_type', JHtml::_('select.options', $fieldsType, 'value', 'text', $this->state->get('filter.type')));
     }
 }
コード例 #19
0
ファイル: view.html.php プロジェクト: 774878175/joomla_gc
 protected function addToolbar()
 {
     $canDo = DeviceHelper::getActions();
     $bar = JToolBar::getInstance('toolbar');
     JToolbarHelper::title(JText::_('COM_DEVICE_MANAGER_DEVICES'), 'folder categories');
     JToolbarHelper::addNew('device.add');
     if ($canDo->get('core.edit')) {
         JToolbarHelper::editList('device.edit');
     }
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publish('devices.publish', 'JTOOLBAR_PUBLISH', true);
         JToolbarHelper::unpublish('devices.unpublish', 'JTOOLBAR_UNPUBLISH', true);
         JToolbarHelper::archiveList('devices.archive');
         JToolbarHelper::checkin('devices.checkin');
     }
     /*将信息直接删除
     		if($canDo->get('core.delete')){
     			JToolbarHelper::deleteList('', 'labs.delete', 'JTOOLBAR_DELETE');
     		}*/
     $state = $this->get('State');
     if ($state->get('filter.state') == -2 && $canDo->get('core.delete')) {
         JToolbarHelper::deleteList('', 'devices.delete', 'JTOOLBAR_EMPTY_TRASH');
     } else {
         if ($canDo->get('core.edit.state')) {
             JToolbarHelper::trash('devices.trash');
         }
     }
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_device');
     }
     JHtmlSidebar::setAction('index.php?option=com_device&view=devices');
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_state', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.state'), true));
 }
コード例 #20
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'), 'zoom-in finder');
     $toolbar = JToolbar::getInstance('toolbar');
     $toolbar->appendButton('Popup', 'archive', 'COM_FINDER_INDEX', 'index.php?option=com_finder&view=indexer&tmpl=component', 500, 210, 0, 0, 'window.parent.location.reload()', 'COM_FINDER_HEADING_INDEXER');
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publishList('index.publish');
         JToolbarHelper::unpublishList('index.unpublish');
     }
     if ($canDo->get('core.delete')) {
         JToolbarHelper::deleteList('', 'index.delete');
     }
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::trash('index.purge', 'COM_FINDER_INDEX_TOOLBAR_PURGE', false);
     }
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_finder');
     }
     $toolbar->appendButton('Popup', 'stats', 'COM_FINDER_STATISTICS', 'index.php?option=com_finder&view=statistics&tmpl=component', 550, 350);
     JToolbarHelper::help('JHELP_COMPONENTS_FINDER_MANAGE_INDEXED_CONTENT');
     JHtmlSidebar::setAction('index.php?option=com_finder&view=index');
     JHtmlSidebar::addFilter(JText::_('COM_FINDER_INDEX_FILTER_BY_STATE'), 'filter_state', JHtml::_('select.options', JHtml::_('finder.statelist'), 'value', 'text', $this->state->get('filter.state')));
     JHtmlSidebar::addFilter(JText::_('COM_FINDER_INDEX_TYPE_FILTER'), 'filter_type', JHtml::_('select.options', JHtml::_('finder.typeslist'), 'value', 'text', $this->state->get('filter.type')));
 }
コード例 #21
0
ファイル: view.html.php プロジェクト: grlf/eyedock
 /**
  * Setting the toolbar
  */
 public function addToolBar()
 {
     $user = JFactory::getUser();
     JToolbarHelper::title(JText::_('COM_ALFCONTACT_MANAGER_ALFCONTACTS'), 'alfcontact');
     if ($user->authorise('core.create')) {
         JToolbarHelper::addNew('alfcontact.add');
     }
     if ($user->authorise('core.edit') || $user->authorise('core.edit.own')) {
         JToolbarHelper::editList('alfcontact.edit');
     }
     if ($user->authorise('core.edit.state')) {
         JToolbarHelper::publish('alfcontacts.publish', 'JTOOLBAR_PUBLISH', true);
         JToolbarHelper::unpublish('alfcontacts.unpublish', 'JTOOLBAR_UNPUBLISH', true);
     }
     if ($this->state->get('filter.published') == -2 && $user->authorise('core.delete')) {
         JToolbarHelper::deleteList('', 'alfcontacts.delete', 'JTOOLBAR_EMPTY_TRASH');
     } elseif ($user->authorise('core.edit.state')) {
         JToolbarHelper::trash('alfcontacts.trash');
     }
     // Options button.
     if ($user->authorise('core.admin')) {
         JToolBarHelper::preferences('com_alfcontact');
     }
     JToolbarHelper::help('JHELP_COMPONENTS_ALFCONTACT_CONTACTS');
     JHtmlSidebar::setAction('index.php?option=com_alfcontact&view=alfcontacts');
     JHtmlSideBar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true));
     JHtmlSideBar::addFilter(JText::_('JOPTION_SELECT_ACCESS'), 'filter_access', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')));
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_LANGUAGE'), 'filter_language', JHtml::_('select.options', JHtml::_('contentlanguage.existing', true, true), 'value', 'text', $this->state->get('filter.language')));
 }
コード例 #22
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, 350);
     JToolbarHelper::divider();
     JToolbarHelper::help('JHELP_COMPONENTS_FINDER_MANAGE_SEARCH_FILTERS');
     JHtmlSidebar::setAction('index.php?option=com_finder&view=filters');
     JHtmlSidebar::addFilter(JText::_('COM_FINDER_INDEX_FILTER_BY_STATE'), 'filter_state', JHtml::_('select.options', JHtml::_('finder.statelist'), 'value', 'text', $this->state->get('filter.state')));
 }
コード例 #23
0
ファイル: view.html.php プロジェクト: kidaa30/lojinha
 function display($tpl = null)
 {
     $this->categories = $this->get('Categories');
     $this->state = $this->get('State');
     $this->items = $this->get('Items');
     $this->countItems = $this->get('CountItems');
     $this->pagination = $this->get('Pagination');
     /*
     		jimport('joomla.html.pagination');		
     		$limit = JRequest::getVar('limit', '25', '', 'int');
     		$limitstart = JRequest::getVar('limitstart', '0', '', 'int');		
     		$pagination = new JPagination($this->countItems, $limitstart, $limit);
     		$this->pagination  = $pagination;*/
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->addToolbar();
     $version = new JVersion();
     if (version_compare($version->getShortVersion(), '3.0.0', '<')) {
         $tpl = 'legacy';
     } else {
         /*JHtmlSidebar::addFilter(
         			JText::_('JOPTION_SELECT_CATEGORY'),
         			'filter_category',
         			JHtml::_('select.options', DJClassifiedsCategory::getCatSelect(), 'value', 'text', $this->state->get('filter.category'), true)
         		);*/
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', array(JHtml::_('select.option', '1', 'JPUBLISHED'), JHtml::_('select.option', '0', 'JUNPUBLISHED')), 'value', 'text', $this->state->get('filter.published'), true));
         JHtmlSidebar::addFilter(JText::_('COM_DJCLASSIFIEDS_SELECT_ACTIVE'), 'filter_active', JHtml::_('select.options', array(JHtml::_('select.option', '1', 'COM_DJCLASSIFIEDS_ACTIVE'), JHtml::_('select.option', '0', 'COM_DJCLASSIFIEDS_HIDE')), 'value', 'text', $this->state->get('filter.active'), true));
         $this->sidebar = JHtmlSidebar::render();
     }
     parent::display($tpl);
 }
コード例 #24
0
ファイル: view.html.php プロジェクト: scarsroga/blog-soa
 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();
 }
コード例 #25
0
ファイル: view.html.php プロジェクト: MrJookie/pm
 /**
  * Adds the page title and toolbar.
  *
  */
 protected function addToolbar()
 {
     $user = JFactory::getUser();
     $asset = 'com_pfdesigns';
     JToolBarHelper::title(JText::_('COM_PROJECTFORK_DESIGNS_ALBUMS_TITLE'), 'article.png');
     if ($user->authorise('core.create', $asset)) {
         JToolBarHelper::addNew('album.add');
     }
     if ($user->authorise('core.edit', $asset) || $user->authorise('core.edit.own', $asset)) {
         JToolBarHelper::editList('album.edit');
     }
     if ($user->authorise('core.edit.state', $asset)) {
         JToolBarHelper::divider();
         JToolBarHelper::publish('albums.publish', 'JTOOLBAR_PUBLISH', true);
         JToolBarHelper::unpublish('albums.unpublish', 'JTOOLBAR_UNPUBLISH', true);
         JToolBarHelper::divider();
         JToolBarHelper::archiveList('albums.archive');
         JToolBarHelper::checkin('albums.checkin');
     }
     if ($this->state->get('filter.published') == -2 && $user->authorise('core.delete', $asset)) {
         JToolBarHelper::deleteList('', 'albums.delete', 'JTOOLBAR_EMPTY_TRASH');
         JToolBarHelper::divider();
     } elseif ($user->authorise('core.edit.state', $asset)) {
         JToolBarHelper::trash('albums.trash');
         JToolBarHelper::divider();
     }
     if (version_compare(JVERSION, '3', 'ge')) {
         JHtmlSidebar::setAction('index.php?option=com_pfdesigns&view=albums');
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true));
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_AUTHOR'), 'filter_author_id', JHtml::_('select.options', $this->authors, 'value', 'text', $this->state->get('filter.author_id')));
     }
 }
コード例 #26
0
ファイル: view.html.php プロジェクト: Tommar/remate
 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     JToolBarHelper::addNew('portfolio.add');
     JToolBarHelper::editList('portfolio.edit');
     JToolBarHelper::custom('portfolios.rebuild', 'refresh.png', 'refresh_f2.png', 'COM_BT_PORTFOLIO_PORTFOLIOS_REBUILD_IMAGES', false);
     JToolBarHelper::divider();
     JToolBarHelper::title(JText::_('COM_BT_PORTFOLIO_PORTFOLIOS_MANAGER'), 'portfolio.png');
     JToolBarHelper::publish('portfolios.publish', 'JTOOLBAR_PUBLISH', true);
     JToolBarHelper::unpublish('portfolios.unpublish', 'JTOOLBAR_UNPUBLISH', true);
     JToolBarHelper::custom('portfolios.featured', 'featured.png', 'featured_f2.png', 'JFEATURED', true);
     JToolBarHelper::divider();
     JToolBarHelper::checkin('portfolios.checkin');
     JToolBarHelper::deleteList('', 'portfolios.delete');
     JToolBarHelper::preferences('com_bt_portfolio');
     $this->sidebar = '';
     Bt_portfolioHelper::addSubmenu(JRequest::getCmd('view', 'cpanel'));
     //added since 2.0 for j3.0
     if (!$this->legacy) {
         JHtmlSidebar::setAction('index.php?option=com_bt_portfolio&view=portfolios');
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', Bt_portfolioHelper::getPublishedOptions(), 'value', 'text', $this->state->get('filter.published'), true));
         JHtmlSidebar::addFilter(JText::_('COM_BT_PORTFOLIO_SELECT_FEATURED'), 'filter_featured', JHtml::_('select.options', Bt_portfolioHelper::getFeaturedOptions(), 'value', 'text', $this->state->get('filter.featured'), true));
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_CATEGORY'), 'filter_catid', JHtml::_('select.options', Bt_portfolioHelper::getCategoryOptions(), 'value', 'text', $this->state->get('filter.catid')));
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_ACCESS'), 'filter_access', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')));
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_LANGUAGE'), 'filter_language', JHtml::_('select.options', JHtml::_('contentlanguage.existing', true, true), 'value', 'text', $this->state->get('filter.language')));
         $this->sidebar = JHtmlSidebar::render();
     }
 }
コード例 #27
0
 protected function addToolbar()
 {
     $state = $this->get('State');
     JToolBarHelper::title(JText::_('COM_XMAP_SITEMAPS_TITLE'), 'list');
     $canDo = JHelperContent::getActions('com_xmap', 'sitemap');
     JToolBarHelper::addNew('sitemap.add');
     JToolbarHelper::editList('sitemap.edit');
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publish('sitemaps.publish', 'JTOOLBAR_PUBLISH', true);
         JToolbarHelper::unpublish('sitemaps.unpublish', 'JTOOLBAR_UNPUBLISH', true);
     }
     if ($state->get('filter.state') == -2 && $canDo->get('core.delete')) {
         JToolbarHelper::deleteList('', 'sitemaps.delete', 'JTOOLBAR_EMPTY_TRASH');
     } elseif ($canDo->get('core.edit.state')) {
         JToolbarHelper::trash('sitemaps.trash');
     }
     if ($canDo->get('core.manage')) {
         JToolbarHelper::custom('sitemaps.ping', 'heart', 'heart', JText::_('COM_XMAP_TOOLBAR_PING'));
     }
     if (JFactory::getUser()->authorise('core.admin')) {
         JToolbarHelper::preferences('com_xmap');
     }
     if (JHelperContent::getActions('com_plugins')->get('core.edit.state')) {
         JToolbarHelper::custom('sitemaps.plugins', 'power-cord', 'power-cord', JText::_('COM_XMAP_TOOLBAR_PLUGINS'), false);
     }
     JHtmlSidebar::setAction('index.php?option=com_xmap&view=sitemaps');
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_state', JHtml::_('select.options', XmapHelper::getStateOptions(), 'value', 'text', $this->state->get('filter.state')));
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_ACCESS'), 'filter_access', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')));
     $this->sidebar = JHtmlSidebar::render();
 }
コード例 #28
0
ファイル: view.html.php プロジェクト: pashakiz/crowdf
 /**
  * Add a menu on the sidebar of page
  */
 protected function addSidebar()
 {
     JHtmlSidebar::setAction('index.php?option=' . $this->option . '&view=' . $this->getName());
     $txnStatesOptions = array(JHtml::_("select.option", 1, JText::_("COM_CROWDFUNDINGDATA_COMPLETED")), JHtml::_("select.option", 0, JText::_("COM_CROWDFUNDINGDATA_NOT_COMPLETED")));
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_transaction_state', JHtml::_('select.options', $txnStatesOptions, 'value', 'text', $this->state->get('filter.transaction_state'), true));
     $this->sidebar = JHtmlSidebar::render();
 }
コード例 #29
0
ファイル: view.html.php プロジェクト: xop32/Proof-of-Identity
 /**
  * Add a menu on the sidebar of page
  */
 protected function addSidebar()
 {
     JHtmlSidebar::setAction('index.php?option=' . $this->option . '&view=' . $this->getName());
     $statesOptions = array(JHtml::_("select.option", 0, JText::_("COM_IDENTITYPROOF_NOT_VERIFIED")), JHtml::_("select.option", 1, JText::_("COM_IDENTITYPROOF_VERIFIED")));
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_state', JHtml::_('select.options', $statesOptions, 'value', 'text', $this->state->get('filter.state'), true));
     $this->sidebar = JHtmlSidebar::render();
 }
コード例 #30
-1
 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     $canDo = JHelperContent::getActions('com_templates');
     JToolbarHelper::title(JText::_('COM_TEMPLATES_MANAGER_STYLES'), 'eye thememanager');
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::makeDefault('styles.setDefault', 'COM_TEMPLATES_TOOLBAR_SET_HOME');
         JToolbarHelper::divider();
     }
     if ($canDo->get('core.edit')) {
         JToolbarHelper::editList('style.edit');
     }
     if ($canDo->get('core.create')) {
         JToolbarHelper::custom('styles.duplicate', 'copy.png', 'copy_f2.png', 'JTOOLBAR_DUPLICATE', true);
         JToolbarHelper::divider();
     }
     if ($canDo->get('core.delete')) {
         JToolbarHelper::deleteList('', 'styles.delete');
         JToolbarHelper::divider();
     }
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_templates');
         JToolbarHelper::divider();
     }
     JToolbarHelper::help('JHELP_EXTENSIONS_TEMPLATE_MANAGER_STYLES');
     JHtmlSidebar::setAction('index.php?option=com_templates&view=styles');
     JHtmlSidebar::addFilter(JText::_('COM_TEMPLATES_FILTER_TEMPLATE'), 'filter_template', JHtml::_('select.options', TemplatesHelper::getTemplateOptions($this->state->get('filter.client_id')), 'value', 'text', $this->state->get('filter.template')));
     JHtmlSidebar::addFilter(JText::_('JGLOBAL_FILTER_CLIENT'), 'filter_client_id', JHtml::_('select.options', TemplatesHelper::getClientOptions(), 'value', 'text', $this->state->get('filter.client_id')));
 }