Beispiel #1
0
 function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYDISCUSS_REPORTS'), 'reports');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
     JToolbarHelper::divider();
     JToolbarHelper::deleteList(JText::_('COM_EASYBLOG_CONFIRM_DISCARD_REPORTS'), 'discard', JText::_('COM_EASYBLOG_DISCARD_REPORT_BUTTON'));
 }
Beispiel #2
0
 function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYBLOG_THEMES_TITLE'), 'themes');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
     JToolbarHelper::divider();
     JToolBarHelper::custom('makedefault', 'star', '', JText::_('COM_EASYBLOG_SET_DEFAULT'), false);
 }
Beispiel #3
0
    protected function addToolbar($layout = null) {
        switch ($layout) {
            case 'export':
                JToolbarHelper::title(JText::_('COM_PRP') . ': ' . JText::_('COM_PRP_VIEW_EXPORT_TABLE_EXPORT'));
                JToolbarHelper::back('JTOOLBAR_BACK', JRoute::_('index.php?option=com_prp&view=exports'), false);
                JToolbarHelper::custom('export.xlsx', 'xlsx', 'xlsx', '', false);
                JToolbarHelper::custom('export.xls', 'xls', 'xls', '', false);
                JFactory::getDocument()->addStyleDeclaration(
                    PRPHelperExport::getStyleDeclaration('xls') 
                    . "\n\n" .
                    PRPHelperExport::getStyleDeclaration('xlsx')
                );
                JFactory::getDocument()->addStyleSheet(JUri::root().'/media/com_prp/css/export.css');
                break;
            default:
                JFactory::getApplication()->input->set('hidemainmenu', true);

                $isNew = ($this->item->id == 0);
                $title_sufix = ($isNew)?'_NEW':'_EDIT';

                JToolbarHelper::title(JText::_('COM_PRP') . ': ' . JText::_('COM_PRP_VIEW_EXPORT'.$title_sufix));

                JToolbarHelper::save('export.save');

                JToolbarHelper::save2new('export.save2new');

                if ($isNew) {
                    JToolbarHelper::cancel('export.cancel');
                } else {
                    JToolbarHelper::cancel('export.cancel', 'JTOOLBAR_CLOSE');
                }
                break;
        }
    }
Beispiel #4
0
 function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYBLOG_SUBSCRIPTION'), 'subscriptions');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
     JToolbarHelper::divider();
     JToolbarHelper::deleteList();
 }
Beispiel #5
0
 protected function addToolbar()
 {
     $state = $this->get('State');
     $canDo = DeviceHelper::getActions();
     $bar = JToolBar::getInstance('toolbar');
     JToolbarHelper::title(JText::_('COM_DEVICE_MANAGER_DEVICES'), '');
     JToolbarHelper::back('COM_DEVICE_BUTTON_BACK', 'index.php?option=com_device');
 }
Beispiel #6
0
 protected function addToolbar()
 {
     $state = $this->get('State');
     $canDo = FolioHelper::getActions();
     $bar = JToolBar::getInstance('toolbar');
     JToolbarHelper::title(JText::_('COM_FOLIO_MANAGER_FOLIOS'), '');
     JToolbarHelper::back('COM_FOLIO_BUTTON_BACK', 'index.php?option=com_folio');
 }
Beispiel #7
0
 function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYBLOG_MAIL_POOL_TITLE'), 'spools');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
     JToolbarHelper::divider();
     JToolbarHelper::deleteList();
     JToolBarHelper::divider();
     JToolBarHelper::custom('purge', 'purge', 'icon-32-unpublish.png', 'COM_EASYBLOG_PURGE_ALL', false);
 }
Beispiel #8
0
 public function addToolbar()
 {
     JToolbarHelper::Title('Absolventi - Triedy');
     JToolbarHelper::addNew('triedyAdmin.vytvorTriedu');
     JToolbarHelper::editList('triedyAdmin.upravTriedu');
     JToolBarHelper::deleteList('Are you sure you want to delete this Site Table?', 'triedyAdmin.delete');
     JToolbarHelper::back('Ucitelia', 'index.php?option=com_absolventi&view=ucitelialist');
     JToolbarHelper::back('CSV', 'index.php?option=com_absolventi&task=csv.csv');
 }
Beispiel #9
0
 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();
 }
Beispiel #10
0
 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();
 }
Beispiel #11
0
 function registerToolbar()
 {
     $mainframe = JFactory::getApplication();
     $type = $mainframe->getUserStateFromRequest('com_easyblog.acls.filter_type', 'filter_type', 'group', 'word');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
     JToolbarHelper::divider();
     if ($type == 'assigned') {
         JToolbarHelper::addNew();
         JToolbarHelper::deleteList();
     }
 }
Beispiel #12
0
 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();
 }
Beispiel #13
0
 function registerToolbar()
 {
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
     JToolbarHelper::divider();
     JToolBarHelper::apply();
     JToolBarHelper::save();
     JToolBarHelper::divider();
     JToolBarHelper::custom('enableall', 'plus', '', JText::_('COM_EASYBLOG_ENABLE_ALL'), false);
     JToolBarHelper::custom('disableall', 'minus', '', JText::_('COM_EASYBLOG_DISABLE_ALL'), false);
     JToolBarHelper::divider();
     JToolBarHelper::cancel();
 }
Beispiel #14
0
 function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYBLOG_TAGS'), 'tags');
     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::custom('setDefault', 'star', '', JText::_('COM_EASYBLOG_MAKE_DEFAULT'));
     JToolBarHelper::custom('unsetDefault', 'star-empty', '', JText::_('COM_EASYBLOG_REMOVE_DEFAULT'));
     JToolBarHelper::divider();
     JToolbarHelper::deleteList();
 }
Beispiel #15
0
 function display($tpl = null)
 {
     // @rule: Test for user access if on 1.6 and above
     if (EasyBlogHelper::getJoomlaVersion() >= '1.6') {
         if (!JFactory::getUser()->authorise('easyblog.manage.feeds', 'com_easyblog')) {
             JFactory::getApplication()->redirect('index.php', JText::_('JERROR_ALERTNOAUTHOR'), 'error');
             JFactory::getApplication()->close();
         }
     }
     //initialise variables
     $document = JFactory::getDocument();
     $user = JFactory::getUser();
     $mainframe = JFactory::getApplication();
     JHTML::_('behavior.tooltip');
     $layout = $this->getLayout();
     if ($layout != 'default') {
         $this->{$layout}($tpl);
         return;
     }
     JToolBarHelper::title(JText::_('COM_EASYBLOG_BLOGS_FEEDS_TITLE'), 'feeds');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
     JToolBarHelper::divider();
     JToolBarHelper::custom('addNew', 'new.png', 'new_f2.png', JText::_('COM_EASYBLOG_ADD_BUTTON'), false);
     JToolbarHelper::divider();
     JToolbarHelper::publishList('publish');
     JToolbarHelper::unpublishList('unpublish');
     JToolBarHelper::divider();
     JToolBarHelper::custom('download', 'download', 'download.png', JText::_('Execute'), false);
     JToolBarHelper::divider();
     JToolbarHelper::deleteList();
     $feeds = $this->get('Data');
     $pagination = $this->get('Pagination');
     $filter_state = $mainframe->getUserStateFromRequest('com_easyblog.categories.filter_state', 'filter_state', '*', 'word');
     $search = $mainframe->getUserStateFromRequest('com_easyblog.categories.search', 'search', '', 'string');
     $search = trim(JString::strtolower($search));
     $this->assign('state', JHTML::_('grid.state', $filter_state));
     $this->assign('search', $search);
     $this->assign('feeds', $feeds);
     $this->assign('pagination', $pagination);
     parent::display($tpl);
 }
Beispiel #16
0
 /**
  * Validates the data submitted based on the suffix provided
  * A controller for this plugin, you could say
  *
  * @param $task
  * @return html
  */
 function viewList()
 {
     $app = JFactory::getApplication();
     $option = 'com_j2store';
     $ns = $option . '.report';
     $html = "";
     JToolBarHelper::title(JText::_('J2STORE_REPORT') . '-' . JText::_('PLG_J2STORE_' . strtoupper($this->_element)), 'j2store-logo');
     JToolbarHelper::back('J2STORE_BACK_TO_REPORT', 'index.php?option=com_j2store&view=report');
     //JToolbarHelper::custom(JText::_('PLG_J2STORE_EXPORT_ORDERITEMS'), 'index.php?option=com_j2store&view=report&reportTask=export');
     J2StoreToolBar::_custom('export', 'new', 'new', 'J2STORE_EXPORT_ORDERS', false, false, 'reportTask');
     $vars = new JObject();
     $this->includeCustomModel('ReportOrderitems');
     $this->includeCustomTables();
     $model = JModelLegacy::getInstance('Reportorderitems', 'J2StoreModel');
     $model->setState('filter_search', $app->input->getString('filter_search'));
     $model->setState('filter_orderstatus', $app->input->getString('filter_orderstatus'));
     $model->setState('filter_order', $app->input->getString('filter_order'));
     $model->setState('filter_order_Dir', $app->input->getString('filter_order_Dir'));
     // Get the pagination request variables
     $limit = $app->getUserStateFromRequest('global.list.limit', 'limit', $app->getCfg('list_limit'), 'int');
     $limitstart = $app->getUserStateFromRequest($ns . '.limitstart', 'limitstart', 0, 'int');
     // In case limit has been changed, adjust limitstart accordingly
     $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0;
     $model->setState('limit', $limit);
     $model->setState('limitstart', $limitstart);
     $list = $model->getList();
     $vars->total = $model->getTotal();
     $vars->pagination = $model->getPagination();
     $vars->state = $model->getState();
     $vars->list = $list;
     $vars->params = JComponentHelper::getParams('com_j2store');
     $vars->orderStatus = $this->getOrderStatus();
     $id = $app->input->getInt('id', '0');
     $vars->id = $id;
     $form = array();
     $form['action'] = "index.php?option=com_j2store&view=report&task=view&id={$id}";
     $vars->form = $form;
     $html = $this->_getLayout('default', $vars);
     return $html;
 }
Beispiel #17
0
 function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYBLOG_HOME_SETTINGS'), 'settings');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
     JToolbarHelper::divider();
     JToolbarHelper::custom('export', 'export', '', JText::_('COM_EASYBLOG_EXPORT_SETTINGS'), false);
     JToolbarHelper::custom('import', 'import', '', JText::_('COM_EASYBLOG_IMPORT_SETTINGS'), false);
     JToolbarHelper::divider();
     JToolBarHelper::apply();
     JToolBarHelper::save();
     JToolBarHelper::divider();
     JToolBarHelper::cancel();
 }
 protected function addToolbar()
 {
     JToolbarHelper::title(JText::_('COM_BOOKPRO_VEHICLE_TYPE_MANAGER'));
     JToolbarHelper::apply('vehicletype.save');
     JToolbarHelper::back('Back', 'index.php?option=com_bookpro&view=vehicles');
 }
Beispiel #19
0
 function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYBLOG_BLOGGERS_TITLE'), 'users');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
     JToolbarHelper::divider();
     JToolbarHelper::divider();
     JToolbarHelper::addNew();
     JToolBarHelper::divider();
     JToolBarHelper::custom('feature', 'star', '', JText::_('COM_EASYBLOG_FEATURE_TOOLBAR'));
     JToolBarHelper::custom('unfeature', 'star-empty', '', JText::_('COM_EASYBLOG_UNFEATURE_TOOLBAR'));
     JToolBarHelper::divider();
     JToolbarHelper::deleteList();
 }
Beispiel #20
0
 /**
  * Render a toolbar element.
  *
  * @param   string  $type        The element type.
  * @param   mixed   $value       The element value.
  * @param   array   $attributes  The element attributes.
  *
  * @return  void
  *
  * @throws  InvalidArgumentException
  */
 private function renderToolbarElement($type, $value = null, array $attributes = array())
 {
     switch ($type) {
         case 'title':
             $icon = isset($attributes['icon']) ? $attributes['icon'] : 'generic.png';
             JToolbarHelper::title($value, $icon);
             break;
         case 'divider':
             JToolbarHelper::divider();
             break;
         case 'custom':
             $task = isset($attributes['task']) ? $attributes['task'] : '';
             $icon = isset($attributes['icon']) ? $attributes['icon'] : '';
             $iconOver = isset($attributes['icon_over']) ? $attributes['icon_over'] : '';
             $alt = isset($attributes['alt']) ? $attributes['alt'] : '';
             $listSelect = isset($attributes['list_select']) ? FOFStringUtils::toBool($attributes['list_select']) : true;
             JToolbarHelper::custom($task, $icon, $iconOver, $alt, $listSelect);
             break;
         case 'preview':
             $url = isset($attributes['url']) ? $attributes['url'] : '';
             $update_editors = isset($attributes['update_editors']) ? FOFStringUtils::toBool($attributes['update_editors']) : false;
             JToolbarHelper::preview($url, $update_editors);
             break;
         case 'help':
             if (!isset($attributes['help'])) {
                 throw new InvalidArgumentException('The help attribute is missing in the help button type.');
             }
             $ref = $attributes['help'];
             $com = isset($attributes['com']) ? FOFStringUtils::toBool($attributes['com']) : false;
             $override = isset($attributes['override']) ? $attributes['override'] : null;
             $component = isset($attributes['component']) ? $attributes['component'] : null;
             JToolbarHelper::help($ref, $com, $override, $component);
             break;
         case 'back':
             $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_BACK';
             $href = isset($attributes['href']) ? $attributes['href'] : 'javascript:history.back();';
             JToolbarHelper::back($alt, $href);
             break;
         case 'media_manager':
             $directory = isset($attributes['directory']) ? $attributes['directory'] : '';
             $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_UPLOAD';
             JToolbarHelper::media_manager($directory, $alt);
             break;
         case 'assign':
             $task = isset($attributes['task']) ? $attributes['task'] : 'assign';
             $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_ASSIGN';
             JToolbarHelper::assign($task, $alt);
             break;
         case 'new':
             if ($this->perms->create) {
                 $task = isset($attributes['task']) ? $attributes['task'] : 'add';
                 $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_NEW';
                 $check = isset($attributes['check']) ? FOFStringUtils::toBool($attributes['check']) : false;
                 JToolbarHelper::addNew($task, $alt, $check);
             }
             break;
         case 'publish':
             if ($this->perms->editstate) {
                 $task = isset($attributes['task']) ? $attributes['task'] : 'publish';
                 $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_PUBLISH';
                 $check = isset($attributes['check']) ? FOFStringUtils::toBool($attributes['check']) : false;
                 JToolbarHelper::publish($task, $alt, $check);
             }
             break;
         case 'publishList':
             if ($this->perms->editstate) {
                 $task = isset($attributes['task']) ? $attributes['task'] : 'publish';
                 $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_PUBLISH';
                 JToolbarHelper::publishList($task, $alt);
             }
             break;
         case 'unpublish':
             if ($this->perms->editstate) {
                 $task = isset($attributes['task']) ? $attributes['task'] : 'unpublish';
                 $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_UNPUBLISH';
                 $check = isset($attributes['check']) ? FOFStringUtils::toBool($attributes['check']) : false;
                 JToolbarHelper::unpublish($task, $alt, $check);
             }
             break;
         case 'unpublishList':
             if ($this->perms->editstate) {
                 $task = isset($attributes['task']) ? $attributes['task'] : 'unpublish';
                 $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_UNPUBLISH';
                 JToolbarHelper::unpublishList($task, $alt);
             }
             break;
         case 'archiveList':
             if ($this->perms->editstate) {
                 $task = isset($attributes['task']) ? $attributes['task'] : 'archive';
                 $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_ARCHIVE';
                 JToolbarHelper::archiveList($task, $alt);
             }
             break;
         case 'unarchiveList':
             if ($this->perms->editstate) {
                 $task = isset($attributes['task']) ? $attributes['task'] : 'unarchive';
                 $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_UNARCHIVE';
                 JToolbarHelper::unarchiveList($task, $alt);
             }
             break;
         case 'editList':
             if ($this->perms->edit) {
                 $task = isset($attributes['task']) ? $attributes['task'] : 'edit';
                 $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_EDIT';
                 JToolbarHelper::editList($task, $alt);
             }
             break;
         case 'editHtml':
             $task = isset($attributes['task']) ? $attributes['task'] : 'edit_source';
             $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_EDIT_HTML';
             JToolbarHelper::editHtml($task, $alt);
             break;
         case 'editCss':
             $task = isset($attributes['task']) ? $attributes['task'] : 'edit_css';
             $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_EDIT_CSS';
             JToolbarHelper::editCss($task, $alt);
             break;
         case 'deleteList':
             if ($this->perms->delete) {
                 $msg = isset($attributes['msg']) ? $attributes['msg'] : '';
                 $task = isset($attributes['task']) ? $attributes['task'] : 'remove';
                 $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_DELETE';
                 JToolbarHelper::deleteList($msg, $task, $alt);
             }
             break;
         case 'trash':
             if ($this->perms->editstate) {
                 $task = isset($attributes['task']) ? $attributes['task'] : 'remove';
                 $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_TRASH';
                 $check = isset($attributes['check']) ? FOFStringUtils::toBool($attributes['check']) : true;
                 JToolbarHelper::trash($task, $alt, $check);
             }
             break;
         case 'apply':
             $task = isset($attributes['task']) ? $attributes['task'] : 'apply';
             $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_APPLY';
             JToolbarHelper::apply($task, $alt);
             break;
         case 'save':
             $task = isset($attributes['task']) ? $attributes['task'] : 'save';
             $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_SAVE';
             JToolbarHelper::save($task, $alt);
             break;
         case 'save2new':
             $task = isset($attributes['task']) ? $attributes['task'] : 'save2new';
             $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_SAVE_AND_NEW';
             JToolbarHelper::save2new($task, $alt);
             break;
         case 'save2copy':
             $task = isset($attributes['task']) ? $attributes['task'] : 'save2copy';
             $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_SAVE_AS_COPY';
             JToolbarHelper::save2copy($task, $alt);
             break;
         case 'checkin':
             $task = isset($attributes['task']) ? $attributes['task'] : 'checkin';
             $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_CHECKIN';
             $check = isset($attributes['check']) ? FOFStringUtils::toBool($attributes['check']) : true;
             JToolbarHelper::checkin($task, $alt, $check);
             break;
         case 'cancel':
             $task = isset($attributes['task']) ? $attributes['task'] : 'cancel';
             $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JTOOLBAR_CANCEL';
             JToolbarHelper::cancel($task, $alt);
             break;
         case 'preferences':
             if (!isset($attributes['component'])) {
                 throw new InvalidArgumentException('The component attribute is missing in the preferences button type.');
             }
             $component = $attributes['component'];
             $height = isset($attributes['height']) ? $attributes['height'] : '550';
             $width = isset($attributes['width']) ? $attributes['width'] : '875';
             $alt = isset($attributes['alt']) ? $attributes['alt'] : 'JToolbar_Options';
             $path = isset($attributes['path']) ? $attributes['path'] : '';
             JToolbarHelper::preferences($component, $height, $width, $alt, $path);
             break;
         default:
             throw new InvalidArgumentException(sprintf('Unknown button type %s', $type));
     }
 }
Beispiel #21
0
        JToolbarHelper::addNewX($buttons[0], $button[2]);
    } else {
        if (pos(buttontask, '.edit') > 0) {
            JToolbarHelper::editListX($buttons[0], $button[2]);
        } else {
            if (pos(buttontask, '.delete') > 0) {
                JToolbarHelper::deleteListX('', $buttons[0], $button[2]);
            } else {
                if (pos(buttontask, '.save') > 0) {
                    JToolbarHelper::save($buttons[0], $button[2]);
                } else {
                    if (pos(buttontask, '.cancel') > 0) {
                        JToolbarHelper::cancel($buttons[0], $button[2]);
                    } else {
                        if (pos(buttontask, '.back') > 0) {
                            JToolbarHelper::back($buttons[0], $button[2]);
                        } else {
                            JToolbarHelper::custom($buttons[0], $buttons[1], $buttons[2], false);
                        }
                    }
                }
            }
        }
    }
}
?>
 
<script language="javascript" type="text/javascript">
btnClixk = function(task) {
		document.forms.adminForm.task.value = task;
		document.forms.adminForm.submit();
Beispiel #22
0
 function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYBLOG_META_TAG'), 'meta');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
 }
 function UPLOAD_MENU($act)
 {
     global $submenu_anders;
     if ($submenu_anders == 1) {
         JSubMenuHelper::addEntry(JText::_('JGA_CATEGORY_MANAGER'), 'index.php?option=com_joomgallery&amp;act=categories');
         JSubMenuHelper::addEntry(JText::_('JGA_PICTURE_MANAGER'), 'index.php?option=com_joomgallery&amp;act=pictures');
         JSubMenuHelper::addEntry(JText::_('JGA_COMMENTS_MANAGER'), 'index.php?option=com_joomgallery&amp;act=comments');
     }
     //ToolbarHelper::startTable();
     switch ($act) {
         case 'upload':
             JToolBarHelper::title(JText::_('JGA_PICTURE_UPLOAD_MANAGER'));
             if ($submenu_anders == 1) {
                 JSubMenuHelper::addEntry(JText::_('JGA_BATCH_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=batchupload');
                 JSubMenuHelper::addEntry(JText::_('JGA_FTP_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=ftpupload');
                 JSubMenuHelper::addEntry(JText::_('JGA_JAVA_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=jupload');
             }
             break;
         case 'batchupload':
             JToolBarHelper::title(JText::_('JGA_BATCH_UPLOAD_MANAGER'));
             if ($submenu_anders == 1) {
                 JSubMenuHelper::addEntry(JText::_('JGA_PICTURE_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=upload');
                 JSubMenuHelper::addEntry(JText::_('JGA_FTP_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=ftpupload');
                 JSubMenuHelper::addEntry(JText::_('JGA_JAVA_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=jupload');
             }
             break;
         case 'ftpupload':
             JToolBarHelper::title(JText::_('JGA_FTP_UPLOAD_MANAGER'));
             if ($submenu_anders == 1) {
                 JSubMenuHelper::addEntry(JText::_('JGA_PICTURE_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=upload');
                 JSubMenuHelper::addEntry(JText::_('JGA_BATCH_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=batchupload');
                 JSubMenuHelper::addEntry(JText::_('JGA_JAVA_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=jupload');
             }
             break;
         case 'jupload':
             JToolBarHelper::title(JText::_('JGA_JAVA_UPLOAD_MANAGER'));
             if ($submenu_anders == 1) {
                 JSubMenuHelper::addEntry(JText::_('JGA_PICTURE_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=upload');
                 JSubMenuHelper::addEntry(JText::_('JGA_BATCH_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=batchupload');
                 JSubMenuHelper::addEntry(JText::_('JGA_FTP_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=ftpupload');
             }
             break;
     }
     JToolbarHelper::back();
     JToolbarHelper::spacer();
     JToolbarHelper::divider();
     JToolbarHelper::spacer();
     JToolbarHelper::custom('cpanel', 'config.png', 'config.png', 'JGA_TOOLBAR_CPANEL', false);
     JToolbarHelper::spacer();
     //JToolbarHelper::endTable();
     if ($submenu_anders != 1) {
         return;
     }
     JSubMenuHelper::addEntry(JText::_('JGA_CONFIGURATION_MANAGER'), 'index.php?option=com_joomgallery&amp;act=configuration');
 }
Beispiel #24
0
 function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYBLOG_BLOGS_ALL_BLOG_ENTRIES_TITLE'), 'blogs');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
     JToolbarHelper::divider();
     JToolBarHelper::addNew('addNew');
     JToolBarHelper::divider();
     $app = JFactory::getApplication();
     $filterState = $app->getUserStateFromRequest('com_easyblog.blogs.filter_state', 'filter_state', '*', 'word');
     if ($filterState != 'T') {
         JToolBarHelper::custom('feature', 'star', '', JText::_('COM_EASYBLOG_FEATURE_TOOLBAR'));
         JToolBarHelper::custom('unfeature', 'star-empty', '', JText::_('COM_EASYBLOG_UNFEATURE_TOOLBAR'));
         JToolbarHelper::publishList();
         JToolbarHelper::unpublishList();
         JToolBarHelper::custom('toggleFrontpage', 'featured.png', 'featured_f2.png', JText::_('COM_EASYBLOG_FRONTPAGE_TOOLBAR'), true);
         JToolBarHelper::divider();
     }
     JToolBarHelper::custom('showMove', 'move', '', JText::_('COM_EASYBLOG_MOVE'));
     JToolBarHelper::custom('copy', 'copy', '', JText::_('COM_EASYBLOG_COPY'));
     JToolBarHelper::divider();
     $state = $app->getUserStateFromRequest('com_easyblog.blogs.filter_state', 'filter_state', '*', 'word');
     // If this is on the trash view, we need to show empty trash icon
     if ($state == 'T') {
         JToolbarHelper::publishList('restore', JText::_('COM_EASYBLOG_RESTORE'));
         JToolbarHelper::deleteList();
     } else {
         JToolbarHelper::trash('trash');
     }
 }
Beispiel #25
0
 public function onReportsBrowse()
 {
     $subtitle_key = 'COM_AKEEBASUBS_TITLE_' . strtoupper($this->input->getCmd('view', 'cpanel'));
     JToolBarHelper::title(JText::_('COM_AKEEBASUBS') . ' &ndash; <small>' . JText::_($subtitle_key) . '</small>', 'akeebasubs');
     JToolbarHelper::back('JTOOLBAR_BACK', 'index.php?option=com_akeebasubs&view=cpanel');
 }
Beispiel #26
0
 public function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYBLOG_MIGRATORS'), 'migrators');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
     JToolbarHelper::divider();
     JToolBarHelper::custom('migrators.purge', 'delete.png', 'delete_f2.png', JText::_('COM_EASYBLOG_PURGE_HISTORY'), false);
 }
 /**
  * Add the page title and toolbar.
  *
  * @return void
  */
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_MARKETPLACE_HEADER_' . $this->getName()), 'marketplace');
     JToolbarHelper::back();
     MarketplaceHelper::addSubmenu($this->getName());
 }
Beispiel #28
0
 public function onAlices()
 {
     JToolBarHelper::title(JText::_('COM_AKEEBA_TITLE_ALICES'), 'akeeba');
     JToolbarHelper::back('JTOOLBAR_BACK', 'index.php?option=com_akeeba&view=cpanel');
 }
Beispiel #29
0
 function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYBLOG_UPDATER'), 'updater');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
 }
Beispiel #30
0
 function registerToolbar()
 {
     JToolBarHelper::title(JText::_('COM_EASYBLOG_AUTOPOSTING'), 'autoposting');
     JToolbarHelper::back(JText::_('COM_EASYBLOG_TOOLBAR_HOME'), 'index.php?option=com_easyblog');
     if ($this->getLayout() == 'form') {
         JToolbarHelper::divider();
         JToolBarHelper::apply('applyForm');
         JToolBarHelper::save('saveForm');
         JToolBarHelper::cancel();
     }
 }