コード例 #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 プロジェクト: knigherrant/decopatio
 public function registerToolbar()
 {
     $layout = JRequest::getVar('layout');
     JToolBarHelper::title(JText::_('COM_EASYBLOG_BLOCKS_TITLE'), 'blocks');
     JToolbarHelper::publishList('blocks.publish');
     JToolbarHelper::unpublishList('blocks.unpublish');
 }
コード例 #3
0
 /**
  * Main method to display the privacy view.
  *
  * @since	1.0
  * @access	public
  * @return	null
  *
  * @author	Sam <*****@*****.**>
  */
 public function display($tpl = null)
 {
     $this->setHeading('COM_EASYSOCIAL_HEADING_PRIVACY');
     $this->setDescription('COM_EASYSOCIAL_DESCRIPTION_PRIVACY');
     $state = JRequest::getInt('state', 1);
     JToolbarHelper::divider();
     JToolbarHelper::publishList('publish');
     JToolbarHelper::unpublishList('unpublish');
     JToolbarHelper::divider();
     JToolbarHelper::deleteList('', 'delete', JText::_('COM_EASYSOCIAL_TOOLBAR_TITLE_BUTTON_DELETE'));
     $model = FD::model('Privacy', array('initState' => true));
     $limit = $model->getState('limit');
     $ordering = $model->getState('ordering');
     $direction = $model->getState('direction');
     $search = $model->getState('search');
     $privacy = $model->getList();
     // Get pagination
     $pagination = $model->getPagination();
     $this->set('ordering', $ordering);
     $this->set('direction', $direction);
     $this->set('limit', $limit);
     $this->set('search', $search);
     $this->set('pagination', $pagination);
     $this->set('privacy', $privacy);
     $this->set('state', $state);
     FD::language()->loadSite();
     FD::apps()->loadAllLanguages();
     echo parent::display('admin/privacy/default');
 }
コード例 #4
0
ファイル: view.html.php プロジェクト: pabloarias/JoomGallery
 /**
  * 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();
     }
 }
コード例 #5
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));
 }
コード例 #6
0
 /**
  * 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_FILTERS_TOOLBAR_TITLE'), 'zoom-in 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.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_SEARCH_FILTERS');
     if ($canDo->get('core.delete')) {
         JToolbarHelper::deleteList('', 'filters.delete');
         JToolbarHelper::divider();
     }
 }
コード例 #7
0
 /**
  * Main method to display the badges view.
  *
  * @since	1.0
  * @access	public
  * @return	null
  *
  * @author	Mark Lee <*****@*****.**>
  */
 public function display($tpl = null)
 {
     // Add heading here.
     $this->setHeading('COM_EASYSOCIAL_HEADING_ALERTS');
     $this->setDescription('COM_EASYSOCIAL_DESCRIPTION_ALERTS');
     // Default filters
     $options = array();
     JToolbarHelper::publishList();
     JToolbarHelper::unpublishList();
     JToolbarHelper::divider();
     JToolbarHelper::custom('emailPublish', 'publish', '', JText::_('COM_EASYSOCIAL_TOOLBAR_TITLE_BUTTON_PUBLISH_EMAIL'));
     JToolbarHelper::custom('emailUnpublish', 'unpublish', '', JText::_('COM_EASYSOCIAL_TOOLBAR_TITLE_BUTTON_UNPUBLISH_EMAIL'));
     JToolbarHelper::divider();
     JToolbarHelper::custom('systemPublish', 'publish', '', JText::_('COM_EASYSOCIAL_TOOLBAR_TITLE_BUTTON_PUBLISH_SYSTEM'));
     JToolbarHelper::custom('systemUnpublish', 'unpublish', '', JText::_('COM_EASYSOCIAL_TOOLBAR_TITLE_BUTTON_UNPUBLISH_SYSTEM'));
     // Load badges model.
     $model = FD::model('Alert', array('initState' => true));
     // Get the current ordering.
     $ordering = $model->getState('ordering');
     $direction = $model->getState('direction');
     $published = $model->getState('published');
     $limit = $model->getState('limit');
     // Get the badges
     $alerts = $model->getItems();
     // Get pagination
     $pagination = $model->getPagination();
     $this->set('limit', $limit);
     $this->set('ordering', $ordering);
     $this->set('direction', $direction);
     $this->set('published', $published);
     $this->set('alerts', $alerts);
     $this->set('pagination', $pagination);
     echo parent::display('admin/alerts/default');
 }
コード例 #8
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')));
 }
コード例 #9
0
ファイル: view.html.php プロジェクト: pabloarias/JoomGallery
 /**
  * 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_IMGMAN_IMAGE_MANAGER'), 'images');
     if (($this->_config->get('jg_disableunrequiredchecks') || $canDo->get('joom.upload') || count(JoomHelper::getAuthorisedCategories('joom.upload'))) && $this->pagination->total) {
         JToolbarHelper::addNew('new');
     }
     if (($canDo->get('core.edit') || $canDo->get('core.edit.own')) && $this->pagination->total) {
         JToolbarHelper::editList();
         JToolbarHelper::custom('edit', 'checkbox-partial', 'checkbox-partial', 'JTOOLBAR_BATCH');
         JToolbarHelper::custom('showmove', 'move.png', 'move.png', 'COM_JOOMGALLERY_COMMON_TOOLBAR_MOVE');
         JToolbarHelper::custom('recreate', 'refresh.png', 'refresh.png', 'COM_JOOMGALLERY_COMMON_TOOLBAR_RECREATE');
         JToolbarHelper::divider();
     }
     if ($canDo->get('core.edit.state') && $this->pagination->total) {
         JToolbarHelper::publishList('publish', JText::_('COM_JOOMGALLERY_COMMON_PUBLISH'));
         JToolbarHelper::unpublishList('unpublish', JText::_('COM_JOOMGALLERY_COMMON_UNPUBLISH'));
         JToolbarHelper::custom('approve', 'upload.png', 'upload_f2.png', 'COM_JOOMGALLERY_IMGMAN_TOOLBAR_APPROVE');
         JToolbarHelper::divider();
     }
     //if($canDo->get('core.delete'))
     //{
     JToolbarHelper::deleteList('', 'remove');
     //}
 }
コード例 #10
0
ファイル: view.html.php プロジェクト: knigherrant/decopatio
 /**
  * Default access rules listing page.
  *
  * @author Jason Rey <*****@*****.**>
  * @since  1.2
  * @access public
  * @param  string    $tpl The template to load
  */
 public function display($tpl = null)
 {
     $this->setHeading('COM_EASYSOCIAL_HEADING_ACCESS');
     $this->setDescription('COM_EASYSOCIAL_DESCRIPTION_ACCESS');
     // Add Joomla buttons here
     JToolbarHelper::publishList();
     JToolbarHelper::unpublishList();
     JToolbarHelper::divider();
     JToolbarHelper::deleteList();
     $model = FD::model('accessrules', array('initState' => true));
     $state = $model->getState('published');
     $extension = $model->getState('filter');
     $limit = $model->getState('limit');
     $ordering = $model->getState('ordering');
     $direction = $model->getState('direction');
     $search = $model->getState('search');
     $access = $model->getItems();
     // Load a list of extensions so that users can filter them.
     $extensions = $model->getExtensions();
     // Get pagination
     $pagination = $model->getPagination();
     $this->set('access', $access);
     $this->set('ordering', $ordering);
     $this->set('direction', $direction);
     $this->set('limit', $limit);
     $this->set('selectedExtension', $extension);
     $this->set('search', $search);
     $this->set('pagination', $pagination);
     $this->set('extensions', $extensions);
     $this->set('extension', $extension);
     $this->set('state', $state);
     echo parent::display('admin/access/default');
 }
コード例 #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_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')));
 }
コード例 #12
0
ファイル: view.html.php プロジェクト: adjaika/J3Base
 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     $canDo = JHelperContent::getActions('com_languages');
     JToolbarHelper::title(JText::_('COM_LANGUAGES_VIEW_LANGUAGES_TITLE'), 'comments-2 langmanager');
     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('JGLOBAL_CONFIRM_DELETE', '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', 'upload', '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');
     JHtmlSidebar::setAction('index.php?option=com_languages&view=languages');
 }
コード例 #13
0
 /**
  * Add the page title and toolbar.
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     $canDo = JHelperContent::getActions('com_languages');
     JToolbarHelper::title(JText::_('COM_LANGUAGES_VIEW_LANGUAGES_TITLE'), 'comments-2 langmanager');
     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');
     JHtmlSidebar::setAction('index.php?option=com_languages&view=languages');
     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')));
 }
コード例 #14
0
 public function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYDISCUSS_REPORTS'), 'reports');
     JToolBarHelper::custom('home', 'arrow-left', '', JText::_('COM_EASYDISCUSS_TOOLBAR_HOME'), false);
     JToolBarHelper::divider();
     JToolbarHelper::publishList();
     JToolbarHelper::unpublishList();
 }
コード例 #15
0
ファイル: view.html.php プロジェクト: sansandeep143/av
 protected function addToolbar()
 {
     JToolbarHelper::title(JText::_('COM_EVENTGALLERY_PAYMENTMETHODS'), 'generic.png');
     JToolbarHelper::addNew('paymentmethod.add');
     JToolbarHelper::editList('paymentmethod.edit');
     JToolbarHelper::publishList('paymentmethods.publish');
     JToolbarHelper::unpublishList('paymentmethods.unpublish');
     JToolbarHelper::deleteList('Remove all selected Events?', 'paymentmethods.delete', 'Remove');
 }
コード例 #16
0
ファイル: view.html.php プロジェクト: sansandeep143/av
 protected function addToolbar()
 {
     JToolbarHelper::title(JText::_('COM_EVENTGALLERY_IMAGETYPES'), 'generic.png');
     JToolbarHelper::addNew('imagetype.add');
     JToolbarHelper::editList('imagetype.edit');
     JToolbarHelper::publishList('imagetypes.publish');
     JToolbarHelper::unpublishList('imagetypes.unpublish');
     JToolbarHelper::deleteList('Remove all selected Events?', 'imagetypes.delete', 'Remove');
 }
コード例 #17
0
ファイル: view.html.php プロジェクト: sansandeep143/av
 protected function addToolbar()
 {
     JToolbarHelper::title(JText::_('COM_EVENTGALLERY_WATERMARKS'), 'generic.png');
     JToolbarHelper::addNew('watermark.add');
     JToolbarHelper::editList('watermark.edit');
     JToolbarHelper::publishList('watermarks.publish');
     JToolbarHelper::unpublishList('watermarks.unpublish');
     JToolbarHelper::deleteList('Remove all selected Events?', 'watermarks.delete', 'Remove');
 }
コード例 #18
0
ファイル: view.html.php プロジェクト: alexinteam/joomla3
 function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYBLOG_PENDING_PAGE_TITLE'), 'pending');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
     JToolBarHelper::divider();
     JToolbarHelper::publishList('approve', JText::_('COM_EASYBLOG_APPROVE_BUTTON'));
     JToolbarHelper::unpublishList('reject', JText::_('COM_EASYBLOG_REJECT_BUTTON'));
     JToolBarHelper::divider();
     JToolbarHelper::deleteList();
 }
コード例 #19
0
ファイル: view.html.php プロジェクト: kosmosby/medicine-prof
 function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_KOMENTO_PENDING'), 'pending');
     JToolBarHelper::back(JText::_('COM_KOMENTO_ADMIN_HOME'), 'index.php?option=com_komento');
     JToolBarHelper::divider();
     JToolbarHelper::publishList();
     JToolbarHelper::unpublishList();
     JToolBarHelper::divider();
     JToolbarHelper::deleteList();
 }
コード例 #20
0
ファイル: view.html.php プロジェクト: alexinteam/joomla3
 function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYBLOG_TRACKBACKS_TITLE'), 'trackbacks');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
     JToolbarHelper::divider();
     JToolbarHelper::publishList();
     JToolbarHelper::unpublishList();
     JToolBarHelper::divider();
     JToolbarHelper::deleteList();
 }
コード例 #21
0
ファイル: view.html.php プロジェクト: pabloarias/JoomGallery
 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since 2.0
  */
 public function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_JOOMGALLERY_COMMAN_COMMENTS_MANAGER'), 'comments-2');
     JToolbarHelper::publishList('publish', 'COM_JOOMGALLERY_COMMAN_TOOLBAR_PUBLISH_COMMENT');
     JToolbarHelper::unpublishList('unpublish', 'COM_JOOMGALLERY_COMMAN_TOOLBAR_UNPUBLISH_COMMENT');
     JToolbarHelper::custom('approve', 'upload.png', 'upload_f2.png', 'COM_JOOMGALLERY_COMMAN_TOOLBAR_APPROVE_COMMENT');
     JToolbarHelper::divider();
     JToolbarHelper::deleteList('', 'remove', 'COM_JOOMGALLERY_COMMAN_TOOLBAR_REMOVE_COMMENT');
     JToolbarHelper::divider();
 }
コード例 #22
0
 public function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYDISCUSS_TAGS'), 'tags');
     JToolBarHelper::custom('home', 'arrow-left', '', JText::_('COM_EASYDISCUSS_TOOLBAR_HOME'), false);
     JToolBarHelper::divider();
     JToolbarHelper::publishList();
     JToolbarHelper::unpublishList();
     JToolBarHelper::divider();
     JToolbarHelper::addNew();
     JToolbarHelper::deleteList();
 }
コード例 #23
0
ファイル: view.html.php プロジェクト: alexinteam/joomla3
 function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYBLOG_CATEGORIES_TITLE'), 'category');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
     JToolBarHelper::divider();
     JToolbarHelper::addNew();
     JToolBarHelper::divider();
     JToolbarHelper::publishList();
     JToolbarHelper::unpublishList();
     JToolBarHelper::divider();
     JToolbarHelper::deleteList();
 }
コード例 #24
0
ファイル: view.html.php プロジェクト: ppantilla/bbninja
 public function state($tpl = null)
 {
     // Check access
     if (!$this->authorise('easysocial.access.regions')) {
         $this->redirect('index.php', JText::_('JERROR_ALERTNOAUTHOR'), 'error');
     }
     $parentuid = $this->input->get('parent', 0, 'int');
     $parent = FD::table('Region');
     $result = $parent->load(array('uid' => $parentuid, 'type' => SOCIAL_REGION_TYPE_COUNTRY));
     if (!$result) {
         $this->setHeading(JText::_('COM_EASYSOCIAL_REGIONS_STATES_TITLE'));
         $this->setDescription(JText::_('COM_EASYSOCIAL_REGIONS_STATES_DESCRIPTION'));
     } else {
         $this->setHeading(JText::sprintf('COM_EASYSOCIAL_REGIONS_STATES_OF_COUNTRY_TITLE', $parent->name));
         $this->setDescription(JText::sprintf('COM_EASYSOCIAL_REGIONS_STATES_OF_COUNTRY_DESCRIPTION', $parent->name));
     }
     $this->setIcon('ies-earth');
     JToolbarHelper::addNew('form', JText::_('COM_EASYSOCIAL_TOOLBAR_TITLE_BUTTON_NEW'), false);
     JToolbarHelper::publishList('publish');
     JToolbarHelper::unpublishList('unpublish');
     JToolbarHelper::divider();
     JToolbarHelper::deleteList('', 'delete', JText::_('COM_EASYSOCIAL_TOOLBAR_TITLE_BUTTON_DELETE'));
     JToolbarHelper::divider();
     JToolbarHelper::custom('init', 'refresh', '', JText::_('COM_EASYSOCIAL_REGIONS_INITIALISE_DATABASE'), false);
     $model = FD::model('Regions', array('initState' => true));
     $itemOptions = array('type' => SOCIAL_REGION_TYPE_STATE);
     if ($result && $parent->uid) {
         $itemOptions['parent_uid'] = $parent->uid;
         $itemOptions['parent_type'] = SOCIAL_REGION_TYPE_COUNTRY;
     }
     $regions = $model->getItems($itemOptions);
     $pagination = $model->getPagination();
     $this->set('regions', $regions);
     $this->set('parent', $parent);
     $this->set('pagination', $pagination);
     $search = $model->getState('search');
     $ordering = $model->getState('ordering');
     $direction = $model->getState('direction');
     $state = $model->getState('state');
     $type = $model->getState('type');
     $limit = $model->getState('limit');
     $this->set('search', $search);
     $this->set('ordering', $ordering);
     $this->set('direction', $direction);
     $this->set('state', $state);
     $this->set('type', $type);
     $this->set('limit', $limit);
     $this->set('layout', $this->input->get('layout', '', 'string'));
     // Mark this as false for now. In the future when cities are ready then mark this as true
     $this->set('childType', false);
     $this->set('showOrdering', !empty($parent->id));
     echo parent::display('admin/regions/default');
 }
コード例 #25
0
ファイル: view.html.php プロジェクト: nvthuong11/tz_pinboard
 function addTookBar()
 {
     JToolbarHelper::title(JText::_('comment'), 'article.png');
     JToolbarHelper::editList();
     JToolbarHelper::publishList();
     JToolbarHelper::unpublishList();
     JToolbarHelper::deleteList('COM_TZ_PINBOARD_COMMENT_MORE_DELETE');
     JToolBarHelper::preferences('com_tz_pinboard');
     JToolbarHelper::cancel();
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_AUTHOR'), 'filter_author_id', JHtml::_('select.options', $this->authors, 'value', 'text', $this->get('State')->get('autho'), true));
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', $this->publicc(), 'value', 'text', $this->get('State')->get('state'), true));
 }
コード例 #26
0
 public function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYDISCUSS_BADGES'), 'badges');
     JToolBarHelper::custom('home', 'arrow-left', '', JText::_('COM_EASYDISCUSS_TOOLBAR_HOME'), false);
     JToolBarHelper::divider();
     JToolBarHelper::custom('rules', 'rules', '', JText::_('COM_EASYDISCUSS_MANAGE_RULES_BUTTON'), false);
     JToolBarHelper::divider();
     JToolbarHelper::publishList();
     JToolbarHelper::unpublishList();
     JToolBarHelper::divider();
     JToolbarHelper::addNew();
     JToolbarHelper::deleteList();
 }
コード例 #27
0
ファイル: view.html.php プロジェクト: naka211/kkvn
 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since 2.0
  */
 public function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_JOOMGALLERY_COMMAN_COMMENTS_MANAGER'), 'comments-2');
     JToolbarHelper::publishList('publish', 'COM_JOOMGALLERY_COMMAN_TOOLBAR_PUBLISH_COMMENT');
     JToolbarHelper::unpublishList('unpublish', 'COM_JOOMGALLERY_COMMAN_TOOLBAR_UNPUBLISH_COMMENT');
     JToolbarHelper::custom('approve', 'upload.png', 'upload_f2.png', 'COM_JOOMGALLERY_COMMAN_TOOLBAR_APPROVE_COMMENT');
     JToolbarHelper::divider();
     JToolbarHelper::deleteList('', 'remove', 'COM_JOOMGALLERY_COMMAN_TOOLBAR_REMOVE_COMMENT');
     JToolbarHelper::divider();
     // Add filter by state
     $options = array(JHtml::_('select.option', 0, JText::_('JOPTION_SELECT_PUBLISHED')), JHtml::_('select.option', 1, JText::_('COM_JOOMGALLERY_COMMAN_OPTION_PUBLISHED_ONLY')), JHtml::_('select.option', 2, JText::_('COM_JOOMGALLERY_COMMAN_OPTION_NOT_PUBLISHED_ONLY')), JHtml::_('select.option', 3, JText::_('COM_JOOMGALLERY_COMMAN_OPTION_APPROVED_ONLY')), JHtml::_('select.option', 4, JText::_('COM_JOOMGALLERY_COMMAN_OPTION_NOT_APPROVED_ONLY')));
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_state', JHtml::_('select.options', $options, 'value', 'text', $this->state->get('filter.state'), true), true);
 }
コード例 #28
0
 public function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYDISCUSS_CATEGORIES_TITLE'), 'category');
     JToolBarHelper::custom('home', 'arrow-left', '', JText::_('COM_EASYDISCUSS_TOOLBAR_HOME'), false);
     JToolBarHelper::divider();
     JToolBarHelper::makeDefault('makeDefault');
     JToolBarHelper::divider();
     JToolbarHelper::publishList();
     JToolbarHelper::unpublishList();
     JToolBarHelper::divider();
     JToolbarHelper::addNew();
     JToolbarHelper::deleteList();
 }
コード例 #29
0
 function registerToolbar()
 {
     // JToolBarHelper::title( text, iconfilename )
     JToolBarHelper::title(JText::_('COM_KOMENTO_REPORTS'), 'reports');
     JToolBarHelper::back(JText::_('COM_KOMENTO_ADMIN_HOME'), 'index.php?option=com_komento');
     JToolBarHelper::divider();
     JToolBarHelper::custom('clear', 'kmt-clear-reports', '', JText::_('COM_KOMENTO_MARK_CLEAR'));
     JToolBarHelper::divider();
     JToolbarHelper::publishList();
     JToolbarHelper::unpublishList();
     JToolBarHelper::divider();
     JToolbarHelper::deleteList();
 }
コード例 #30
0
ファイル: view.html.php プロジェクト: bellodox/UserIdeas
 /**
  * Add the page title and toolbar.
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     // Set toolbar items for the page
     JToolbarHelper::title(JText::_('COM_USERIDEAS_COMMENTS_MANAGER'));
     JToolbarHelper::editList('comment.edit');
     JToolbarHelper::divider();
     JToolbarHelper::publishList("comments.publish");
     JToolbarHelper::unpublishList("comments.unpublish");
     JToolbarHelper::divider();
     JToolbarHelper::deleteList(JText::_("COM_USERIDEAS_DELETE_ITEMS_QUESTION"), "comments.delete");
     JToolbarHelper::divider();
     JToolbarHelper::custom('comments.backToDashboard', "dashboard", "", JText::_("COM_USERIDEAS_DASHBOARD"), false);
 }