예제 #1
0
 function display()
 {
     // Das Modell wird instanziert und steht als Objekt in der Variable $model zur Verfügung
     $model =& $this->getModel();
     require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_clm' . DS . 'images' . DS . 'admin_menue_images.php';
     JToolBarHelper::title(JText::_('TITLE_TERMINE'), 'clm_headmenu_termine.png');
     JToolBarHelper::addNewX();
     JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', 'Copy');
     JToolBarHelper::spacer();
     JToolBarHelper::editListX();
     JToolBarHelper::spacer();
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     if (CLM_usertype === 'admin') {
         JToolBarHelper::spacer();
         JToolBarHelper::custom('delete', 'delete.png', 'delete_f2.png', JText::_('DELETE'), false);
     }
     // Daten an Template übergeben
     $this->assignRef('user', $model->user);
     $this->assignRef('termine', $model->termine);
     $this->assignRef('form', $model->form);
     $this->assignRef('param', $model->param);
     $this->assignRef('pagination', $model->pagination);
     // zusätzliche Funktionalitäten
     JHTML::_('behavior.tooltip');
     parent::display();
 }
예제 #2
0
 function display($tpl = null)
 {
     global $mainframe;
     $this->_layout = 'default';
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('Menu Manager'), 'menumgr.png');
     JToolBarHelper::addNewX('addMenu');
     JToolBarHelper::spacer();
     JToolBarHelper::customX('deleteMenu', 'delete.png', 'delete_f2.png', 'Delete', true);
     JToolBarHelper::spacer();
     JToolBarHelper::customX('copyMenu', 'copy.png', 'copy_f2.png', 'Copy', true);
     JToolBarHelper::help('screen.menumanager');
     JSubMenuHelper::addEntry(JText::_('Items'), 'index.php?option=com_menus&task=view');
     JSubMenuHelper::addEntry(JText::_('Menus'), 'index.php?option=com_menus', true);
     if (JFactory::getUser()->authorize('com_trash', 'manage')) {
         JSubMenuHelper::addEntry(JText::_('Trash'), 'index.php?option=com_trash&task=viewMenu');
     }
     $document =& JFactory::getDocument();
     $document->setTitle(JText::_('View Menus'));
     $limitstart = JRequest::getVar('limitstart', '0', '', 'int');
     $menus =& $this->get('Menus');
     $pagination =& $this->get('Pagination');
     $this->assignRef('menus', $menus);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('limitstart', $limitstart);
     JHTML::_('behavior.tooltip');
     parent::display($tpl);
 }
예제 #3
0
 public function display($tpl = null)
 {
     $context = 'template_id';
     $uri = JFactory::getURI();
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('COM_REDSHOP_TEMPLATES'));
     JToolBarHelper::title(JText::_('COM_REDSHOP_TEMPLATES_MANAGEMENT'), 'redshop_templates48');
     JToolBarHelper::addNewX();
     JToolBarHelper::editListX();
     JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', JText::_('COM_REDSHOP_TOOLBAR_COPY'), true);
     JToolBarHelper::deleteList();
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     $context = 'template';
     $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'template_id');
     $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '');
     $template_section = $app->getUserStateFromRequest($context . 'template_section', 'template_section', 0);
     $lists['order'] = $filter_order;
     $lists['order_Dir'] = $filter_order_Dir;
     $templates = $this->get('Data');
     $total = $this->get('Total');
     $pagination = $this->get('Pagination');
     $redtemplate = new Redtemplate();
     $optionsection = $redtemplate->getTemplateSections();
     $lists['section'] = JHTML::_('select.genericlist', $optionsection, 'template_section', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', 'value', 'text', $template_section);
     $this->user = JFactory::getUser();
     $this->lists = $lists;
     $this->templates = $templates;
     $this->pagination = $pagination;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
예제 #4
0
 function display()
 {
     // Die Toolbar erstellen, die über der Seite angezeigt wird
     JToolBarHelper::title(JText::_('CATEGORIES'));
     // nur, wenn Admin
     if (CLM_usertype == 'admin' or CLM_usertype == 'tl') {
         JToolBarHelper::custom('add', 'new.png', 'new_f2.png', JText::_('ADD'), false);
         JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', JText::_('COPY'));
     }
     JToolBarHelper::editListX();
     // nur, wenn Admin
     if (CLM_usertype == 'admin' or CLM_usertype == 'tl') {
         JToolBarHelper::spacer();
         JToolBarHelper::publishList();
         JToolBarHelper::unpublishList();
     }
     if (CLM_usertype === 'admin') {
         JToolBarHelper::spacer();
         JToolBarHelper::custom('delete', 'delete.png', 'delete_f2.png', JText::_('DELETE'), false);
     }
     // Das Modell wird instanziert und steht als Objekt in der Variable $model zur Verfügung
     $model =& $this->getModel();
     // Daten an Template übergeben
     $this->assignRef('user', $model->user);
     $this->assignRef('categories', $model->categories);
     $this->assignRef('param', $model->param);
     $this->assignRef('form', $model->form);
     $this->assignRef('pagination', $model->pagination);
     // zusätzliche Funktionalitäten
     JHTML::_('behavior.tooltip');
     parent::display();
 }
예제 #5
0
 function _VIEW()
 {
     JToolBarHelper::title(JText::_('View Private Message'), 'inbox.png');
     JToolBarHelper::customX('reply', 'restore.png', 'restore_f2.png', 'Reply', false);
     JToolBarHelper::deleteList();
     JToolBarHelper::cancel();
 }
예제 #6
0
 public function display($tpl = null)
 {
     global $context;
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('COM_REDSHOP_ATTRIBUTE_SET'));
     JToolBarHelper::title(JText::_('COM_REDSHOP_ATTRIBUTE_SET'), 'redshop_attribute_bank48');
     JToolBarHelper::addNewX();
     JToolBarHelper::editListX();
     JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', JText::_('COM_REDSHOP_TOOLBAR_COPY'), true);
     JToolBarHelper::deleteList();
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     $uri = JFactory::getURI();
     $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'attribute_set_id');
     $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '');
     $lists = array();
     $lists['order'] = $filter_order;
     $lists['order_Dir'] = $filter_order_Dir;
     $products = $this->get('Data');
     $pagination = $this->get('Pagination');
     $this->lists = $lists;
     $this->products = $products;
     $this->pagination = $pagination;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
예제 #7
0
 protected function chooseElementTypesToolBar()
 {
     JRequest::setVar('hidemainmenu', true);
     JToolBarHelper::title(JText::_('COM_FABRIK_MANAGER_LIST_IMPORT'), 'list.png');
     JToolBarHelper::customX('import.makeTableFromCSV', 'forward.png', 'forward.png', 'Continue', false);
     JToolBarHelper::cancel('import.cancel', 'JTOOLBAR_CANCEL');
 }
예제 #8
0
 function setMTurniereToolbar()
 {
     // Menubilder laden
     require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_clm' . DS . 'images' . DS . 'admin_menue_images.php';
     JToolBarHelper::title(JText::_('TITLE_MTURNIERE'), 'clm_headmenu_mturnier.png');
     JToolBarHelper::custom('paarung', 'edit.png', 'edit_f2.png', JText::_('LEAGUE_BUTTON_1'), false);
     JToolBarHelper::custom('wertpunkte', 'default.png', 'apply_f2.png', 'LEAGUE_BUTTON_W', false);
     //klkl
     if (CLM_usertype === 'admin') {
         JToolBarHelper::custom('runden', 'back.png', 'edit_f2.png', JText::_('LEAGUE_BUTTON_2'), false);
         JToolBarHelper::custom('del_runden', 'cancel.png', 'unarchive_f2.png', JText::_('LEAGUE_BUTTON_3'), false);
     }
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     JToolBarHelper::custom('sortByTWZ', 'copy.png', 'copy_f2.png', JText::_('MTURN_BUTTON_S'), false);
     if (CLM_usertype === 'admin') {
         JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', JText::_('LEAGUE_BUTTON_4'));
         JToolBarHelper::custom('remove', 'delete.png', 'delete_f2.png', JText::_('MTURN_BUTTON_5'), false);
     }
     // JToolBarHelper::editListX();
     if (CLM_usertype === 'admin') {
         JToolBarHelper::custom('add', 'new.png', 'new_f2.png', JText::_('MTURN_BUTTON_6'), false);
     }
     JToolBarHelper::help('screen.clm.mturnier');
 }
예제 #9
0
 public function display($tpl = null)
 {
     $context = 'newsletter_id';
     $uri = JFactory::getURI();
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('COM_REDSHOP_NEWSLETTER'));
     JToolBarHelper::title(JText::_('COM_REDSHOP_NEWSLETTER_MANAGEMENT'), 'redshop_newsletter48');
     $layout = JRequest::getVar('layout');
     $task = JRequest::getVar('task');
     if ($layout == 'previewlog') {
         $this->setLayout($layout);
     } else {
         JToolBarHelper::custom('send_newsletter_preview', 'send.png', 'send.png', JText::_('COM_REDSHOP_SEND_NEWSLETTER'), true, false);
         JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', JText::_('COM_REDSHOP_TOOLBAR_COPY'), true);
         JToolBarHelper::addNewX();
         JToolBarHelper::editListX();
         JToolBarHelper::deleteList();
         JToolBarHelper::publishList();
         JToolBarHelper::unpublishList();
     }
     $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'newsletter_id');
     $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '');
     $lists['order'] = $filter_order;
     $lists['order_Dir'] = $filter_order_Dir;
     $newsletters = $this->get('Data');
     $total = $this->get('Total');
     $pagination = $this->get('Pagination');
     $this->user = JFactory::getUser();
     $this->lists = $lists;
     $this->newsletters = $newsletters;
     $this->pagination = $pagination;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
예제 #10
0
 public function display($tpl = null)
 {
     $context = 'stockroom_id';
     $uri = JFactory::getURI();
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('COM_REDSHOP_STOCKROOM'));
     JToolBarHelper::title(JText::_('COM_REDSHOP_STOCKROOM_MANAGEMENT'), 'redshop_stockroom48');
     JToolBarHelper::customX('listing', 'copy.png', 'copy_f2.png', JText::_('COM_REDSHOP_LISTING'), false);
     JToolBarHelper::addNewX();
     JToolBarHelper::editListX();
     JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', JText::_('COM_REDSHOP_TOOLBAR_COPY'), true);
     JToolBarHelper::deleteList();
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'stockroom_id');
     $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '');
     $lists['order'] = $filter_order;
     $lists['order_Dir'] = $filter_order_Dir;
     $stockroom = $this->get('Data');
     $pagination = $this->get('Pagination');
     $this->lists = $lists;
     $this->stockroom = $stockroom;
     $this->pagination = $pagination;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
예제 #11
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  *
  * @return  void
  */
 protected function addToolBar()
 {
     JRequest::setVar('hidemainmenu', true);
     JToolBarHelper::title(JText::_('COM_FABRIK_MANAGER_LIST_IMPORT'), 'list.png');
     JToolBarHelper::customX('import.doimport', 'forward.png', 'forward.png', 'COM_FABRIK_CONTINUE', false);
     JToolBarHelper::cancel('import.cancel', 'JTOOLBAR_CANCEL');
 }
예제 #12
0
 function display($tpl = null)
 {
     $mainframe =& JFactory::getApplication();
     $option = JRequest::getCmd('option');
     //initialise variables
     $document =& JFactory::getDocument();
     $db =& JFactory::getDBO();
     $user =& JFactory::getUser();
     $elsettings = JComponentHelper::getParams('com_redevent');
     //get vars
     $filter_order = $mainframe->getUserStateFromRequest($option . '.archive.filter_order', 'filter_order', 'x.dates', 'cmd');
     $filter_order_Dir = $mainframe->getUserStateFromRequest($option . '.archive.filter_order_Dir', 'filter_order_Dir', '', 'word');
     $filter = $mainframe->getUserStateFromRequest($option . '.archive.filter', 'filter', '', 'int');
     $filter = intval($filter);
     $search = $mainframe->getUserStateFromRequest($option . '.archive.search', 'search', '', 'string');
     $search = $db->getEscaped(trim(JString::strtolower($search)));
     $template = $mainframe->getTemplate();
     $document->setTitle(JText::_('COM_REDEVENT_PAGETITLE_ARCHIVE'));
     //add css and submenu to document
     $document->addStyleSheet('components/com_redevent/assets/css/redeventbackend.css');
     //Create Submenu
     ELAdmin::setMenu();
     JHTML::_('behavior.tooltip');
     //create the toolbar
     JToolBarHelper::title(JText::_('COM_REDEVENT_ARCHIVESCREEN'), 'archive');
     JToolBarHelper::customX('unarchive', 'redevent_unarchive', 'redevent_unarchive', JText::_('COM_REDEVENT_Unarchive'), true);
     JToolBarHelper::spacer();
     JToolBarHelper::deleteList();
     JToolBarHelper::spacer();
     if ($user->authorise('core.admin', 'com_redevent')) {
         JToolBarHelper::preferences('com_redevent', '600', '800');
     }
     // Get data from the model
     $rows =& $this->get('Data');
     //$total      = & $this->get( 'Total');
     $pageNav =& $this->get('Pagination');
     //search filter
     $filters = array();
     $filters[] = JHTML::_('select.option', '1', JText::_('COM_REDEVENT_EVENT_TITLE'));
     $filters[] = JHTML::_('select.option', '2', JText::_('COM_REDEVENT_VENUE'));
     $filters[] = JHTML::_('select.option', '3', JText::_('COM_REDEVENT_CITY'));
     $filters[] = JHTML::_('select.option', '4', JText::_('COM_REDEVENT_CATEGORY'));
     $lists['filter'] = JHTML::_('select.genericlist', $filters, 'filter', 'size="1" class="inputbox"', 'value', 'text', $filter);
     // table ordering
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     /* Venue and time details */
     $eventvenues = $this->get('ArchiveEventVenues');
     // search filter
     $lists['search'] = $search;
     //assign data to template
     $this->assignRef('lists', $lists);
     $this->assignRef('user', $user);
     $this->assignRef('rows', $rows);
     $this->assignRef('pageNav', $pageNav);
     $this->assignRef('elsettings', $elsettings);
     $this->assignRef('template', $template);
     $this->assignRef('eventvenues', $eventvenues);
     parent::display($tpl);
 }
예제 #13
0
 function setVereineToolbar()
 {
     // Menubilder laden
     require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_clm' . DS . 'images' . DS . 'admin_menue_images.php';
     JToolBarHelper::title(JText::_('TITLE_VEREIN'), 'clm_headmenu_vereine.png');
     if (CLM_usertype === 'admin') {
         JToolBarHelper::custom('copy_saison', 'copy.png', 'copy_f2.png', 'VEREIN_BUTTON_COPY_LAST_YEAR', false);
     }
     //if (CLM_sl_count !== '0' OR CLM_usertype === 'admin') {
     if (CLM_usertype === 'admin' || CLM_usertype === 'sl') {
         JToolBarHelper::custom('gruppen', 'send.png', 'send_f2.png', 'VEREIN_BUTTON_GROUP_EDIT', false);
         JToolBarHelper::custom('rangliste', 'send.png', 'send_f2.png', 'VEREIN_BUTTON_RANG_EDIT', false);
     }
     if (CLM_usertype === 'admin' or CLM_usertype === 'dv' or CLM_usertype === 'dwz') {
         JToolBarHelper::custom('dwz', 'send.png', 'send_f2.png', 'VEREIN_BUTTON_MEMBER_EDIT', false);
     }
     if (CLM_usertype === 'admin' || CLM_usertype === 'dv' || CLM_usertype === 'sl') {
         JToolBarHelper::publishList();
         JToolBarHelper::unpublishList();
     }
     if (CLM_usertype === 'admin') {
         JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', 'VEREIN_BUTTON_COPY');
         JToolBarHelper::custom('remove', 'delete.png', 'delete_f2.png', 'VEREIN_BUTTON_DEL', false);
     }
     JToolBarHelper::editListX();
     if (CLM_usertype === 'admin') {
         JToolBarHelper::custom('add', 'new.png', 'new_f2.png', 'VEREIN_BUTTON_NEW', false);
     }
     JToolBarHelper::help('screen.clm.verein');
 }
예제 #14
0
 function display($tpl = null)
 {
     //DEVNOTE: we need these 2 globals
     $mainframe = JFactory::getApplication();
     $context = "posts";
     //DEVNOTE: set document title
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('COM_REDSOCIALSTREAM_REDSOCIALSTREAMS'));
     //DEVNOTE: Set ToolBar title
     JToolBarHelper::title(JText::_('COM_REDSOCIALSTREAM_POSTFEEDS'), 'posts.png');
     //DEVNOTE: Set toolbar items for the page
     JToolBarHelper::customX('postFeeds', 'folderup_32.png', 'folderup_32.png', JText::_('COM_REDSOCIALSTREAM_POST_FEEDS'), false);
     JToolBarHelper::cancel('cancel', 'Close');
     //DEVNOTE: Get URL
     $uri = JFactory::getURI();
     //DEVNOTE:give me ordering from request
     $filter_order = $mainframe->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'ordering');
     $filter_order_Dir = $mainframe->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '');
     //DEVNOTE:remember the actual order and column
     $lists['order'] = $filter_order;
     $lists['order_Dir'] = $filter_order_Dir;
     //DEVNOTE:Get data from the model
     $items = $this->get('Data');
     $total = $this->get('Total');
     $pagination = $this->get('Pagination');
     $ordering = $lists['order'] == 'm.ordering';
     //DEVNOTE:save a reference into view
     $this->user = JFactory::getUser();
     $this->assignRef('lists', $lists);
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('ordering', $ordering);
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
예제 #15
0
 public function display($tpl = null)
 {
     global $context;
     $uri = JFactory::getURI();
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('COM_REDSHOP_GIFTCARD'));
     JToolBarHelper::title(JText::_('COM_REDSHOP_GIFTCARD_MANAGEMENT'), 'redshop_giftcard_48');
     JToolBarHelper::addNewX();
     JToolBarHelper::editListX();
     JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', JText::_('COM_REDSHOP_TOOLBAR_COPY'), true);
     JToolBarHelper::deleteList();
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'giftcard_id');
     $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '');
     $lists['order'] = $filter_order;
     $lists['order_Dir'] = $filter_order_Dir;
     $giftcard = $this->get('Data');
     $total = $this->get('Total');
     $pagination = $this->get('Pagination');
     $this->user = JFactory::getUser();
     $this->lists = $lists;
     $this->giftcard = $giftcard;
     $this->pagination = $pagination;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
예제 #16
0
 /**
  * Draws the menu for a New module
  */
 function _NEW($client)
 {
     JToolBarHelper::title(JText::_('Module') . ': <small><small>[ ' . JText::_('New') . ' ]</small></small>', 'module.png');
     JToolBarHelper::customX('edit', 'forward.png', 'forward_f2.png', 'Next', true);
     JToolBarHelper::cancel();
     JToolBarHelper::help('screen.modules.new');
 }
예제 #17
0
파일: view.html.php 프로젝트: laiello/yrm
 function _setToolBar()
 {
     JToolBarHelper::title(JText::_('USERS_MANAGER'), 'users');
     JToolBarHelper::customX('groups', 'groups', '', JText::_('USERS_MANAGER_GROUPS'));
     JToolBarHelper::customX('roles', 'roles', '', JText::_('USERS_MANAGER_ROLES'));
     JToolBarHelper::customX('resources', 'resources', '', JText::_('USERS_MANAGER_RESOURCES'));
     JToolBarHelper::customX('resources_banned', 'resources_banned', '', JText::_('USERS_MANAGER_RESOURCES_BANNED'));
 }
예제 #18
0
 /**
  * set up the menu when viewing the list of  Visualizations
  */
 function setVisualizationsToolbar()
 {
     JToolBarHelper::title(JText::_('VISUALIZATIONS'), 'fabrik-visualization.png');
     JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', 'Copy');
     JToolBarHelper::deleteList();
     JToolBarHelper::editListX();
     JToolBarHelper::addNewX();
 }
예제 #19
0
 function display($tpl = null)
 {
     JHTML::_('behavior.tooltip');
     $document = JFactory::getDocument();
     $document->addScript(JURI::root(true) . '/administrator/components/com_contentbuilder/assets/js/jscolor/jscolor.js');
     echo '
     <style type="text/css">
     .icon-48-logo_left { background-image: url(../administrator/components/com_contentbuilder/views/logo_left.png); }
     </style>
     ';
     jimport('joomla.version');
     $version = new JVersion();
     if (version_compare($version->getShortVersion(), '1.6', '>=')) {
         echo '<link rel="stylesheet" href="' . JURI::root(true) . '/administrator/components/com_contentbuilder/views/bluestork.fix.css" type="text/css" />';
     }
     $tables = $this->get('DbTables');
     $form = $this->get('Storage');
     $elements = $this->get('Data');
     $pagination = $this->get('Pagination');
     $isNew = $form->id < 1;
     $text = $isNew ? JText::_('COM_CONTENTBUILDER_NEW') : JText::_('COM_CONTENTBUILDER_EDIT');
     if (version_compare(CBJOOMLAVERSION, '3.0', '<')) {
         JToolBarHelper::title('<img src="components/com_contentbuilder/views/logo_right.png" alt="" align="top" /> <span style="display:inline-block; vertical-align:middle"> :: ' . ($isNew ? JText::_('COM_CONTENTBUILDER_STORAGES') : $form->title) . ' : <small><small>[ ' . $text . ' ]</small></small></span>', 'logo_left.png');
     } else {
         JToolBarHelper::title('ContentBuilder :: ' . ($isNew ? JText::_('COM_CONTENTBUILDER_STORAGES') : $form->title) . ' : <small><small>[ ' . $text . ' ]</small></small></span>', 'logo_left.png');
     }
     JToolBarHelper::apply();
     JToolBarHelper::save();
     if (version_compare(CBJOOMLAVERSION, '3.0', '<')) {
         JToolBarHelper::customX('saveNew', 'save', '', JText::_('COM_CONTENTBUILDER_SAVENEW'), false);
         JToolBarHelper::customX('listpublish', 'publish', '', JText::_('COM_CONTENTBUILDER_PUBLISH'), false);
         JToolBarHelper::customX('listunpublish', 'unpublish', '', JText::_('COM_CONTENTBUILDER_UNPUBLISH'), false);
         JToolBarHelper::customX('listdelete', 'delete', '', JText::_('COM_CONTENTBUILDER_DELETE_FIELDS'), false);
     } else {
         JToolBarHelper::custom('saveNew', 'save', '', JText::_('COM_CONTENTBUILDER_SAVENEW'), false);
         JToolBarHelper::custom('listpublish', 'publish', '', JText::_('COM_CONTENTBUILDER_PUBLISH'), false);
         JToolBarHelper::custom('listunpublish', 'unpublish', '', JText::_('COM_CONTENTBUILDER_UNPUBLISH'), false);
         JToolBarHelper::custom('listdelete', 'delete', '', JText::_('COM_CONTENTBUILDER_DELETE_FIELDS'), false);
     }
     //JToolBarHelper::deleteList();
     if ($isNew) {
         JToolBarHelper::cancel();
     } else {
         // for existing items the button is renamed `close`
         JToolBarHelper::cancel('cancel', 'Close');
     }
     $state = $this->get('state');
     $lists['order_Dir'] = $state->get('fields_filter_order_Dir');
     $lists['order'] = $state->get('fields_filter_order');
     $lists['limitstart'] = $state->get('limitstart');
     $ordering = $lists['order'] == 'ordering';
     $this->assignRef('ordering', $ordering);
     $this->assignRef('form', $form);
     $this->assignRef('elements', $elements);
     $this->assignRef('tables', $tables);
     $this->assignRef('pagination', $pagination);
     parent::display($tpl);
 }
예제 #20
0
 public function display($tpl = null)
 {
     $app = JFactory::getApplication();
     $context = 'category_id';
     $redTemplate = new Redtemplate();
     $product_category = new product_category();
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('COM_REDSHOP_CATEGORY'));
     JToolBarHelper::title(JText::_('COM_REDSHOP_CATEGORY_MANAGEMENT'), 'redshop_categories48');
     JToolBarHelper::addNewX();
     JToolBarHelper::editListX();
     JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', JText::_('COM_REDSHOP_TOOLBAR_COPY'), true);
     JToolBarHelper::deleteList();
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     $uri = JFactory::getURI();
     $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'c.ordering');
     $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '');
     $limitstart = $app->getUserStateFromRequest($context . 'limitstart', 'limitstart', '0');
     $limit = $app->getUserStateFromRequest($context . 'limit', 'limit', '10');
     $lists['order'] = $filter_order;
     $lists['order_Dir'] = $filter_order_Dir;
     $GLOBALS['catlist'] = array();
     $catid = JRequest::getVar('category_id', 0, '');
     $categories = $this->get('Data');
     $pagination = $this->get('Pagination');
     $category_main_filter = $app->getUserStateFromRequest($context . 'category_main_filter', 'category_main_filter', '');
     $optionsection = array();
     $optionsection[] = JHTML::_('select.option', '0', JText::_('COM_REDSHOP_SELECT'));
     $category_id = $app->getUserStateFromRequest($context . 'category_id', 'category_id', '');
     $category_name = $app->getUserStateFromRequest($context . 'category_name', 'category_name', 0);
     $category = new product_category();
     $categories_parent = $category->getParentCategories();
     $temps = array();
     $temps[0] = new stdClass();
     $temps[0]->category_id = "0";
     $temps[0]->category_name = JText::_('COM_REDSHOP_SELECT');
     $categories_parent = @array_merge($temps, $categories_parent);
     $lists['category'] = JHTML::_('select.genericlist', $categories_parent, 'category_id', 'class="inputbox" onchange="document.adminForm.submit();"      ', 'category_id', 'category_name', $category_id);
     /*
      * assign template
      */
     $templates = $redTemplate->getTemplate('category');
     $temps = array();
     $temps[0] = new stdClass();
     $temps[0]->template_id = "0";
     $temps[0]->template_name = JText::_('COM_REDSHOP_ASSIGN_TEMPLATE');
     $templates = @array_merge($temps, $templates);
     $lists['category_template'] = JHTML::_('select.genericlist', $templates, 'category_template', 'class="inputbox" size="1"  onchange="return AssignTemplate()" ', 'template_id', 'template_name', 0);
     $this->category_main_filter = $category_main_filter;
     $this->user = JFactory::getUser();
     $this->lists = $lists;
     $this->categories = $categories;
     $this->pagination = $pagination;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
예제 #21
0
 function displayList($tpl = null)
 {
     JToolBarHelper::title(_JSHOP_PRODUCT_EXTRA_FIELDS, 'generic.png');
     JToolBarHelper::addNewX();
     JToolBarHelper::deleteList();
     JToolBarHelper::spacer();
     JToolBarHelper::customX("addgroup", "new-style", "new-style", _JSHOP_GROUP, false);
     parent::display($tpl);
 }
예제 #22
0
파일: view.html.php 프로젝트: laiello/yrm
 function _setToolBar()
 {
     JToolBarHelper::title(JText::_('GROUPS_MANAGER'), 'groups');
     JToolBarHelper::addNewX();
     JToolBarHelper::editListX();
     JToolBarHelper::deleteList();
     JToolBarHelper::customX('users', 'users', '', JText::_('GROUP_USERS'));
     JToolBarHelper::customX('packages', 'packages', '', JText::_('GROUP_PACKAGES'));
     JToolBarHelper::customX('roles', 'roles', '', JText::_('GROUP_ROLES'));
 }
예제 #23
0
 function displayList($tpl = null)
 {
     JToolBarHelper::title(_JSHOP_LIST_SHIPPINGS, 'generic.png');
     JToolBarHelper::addNewX();
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     JToolBarHelper::deleteList();
     JToolBarHelper::customX("ext_price_calc", "options", "options", _JSHOP_SHIPPING_EXT_PRICE_CALC, false);
     parent::display($tpl);
 }
예제 #24
0
파일: form.php 프로젝트: nikshade/fabrik21
 /**
  * set up the menu when viewing the list of forms
  */
 function setFormsToolbar()
 {
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     JToolBarHelper::title(JText::_('FORMS'), 'fabrik-form.png');
     JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', 'Copy');
     JToolBarHelper::deleteList();
     JToolBarHelper::editListX();
     JToolBarHelper::addNewX();
 }
예제 #25
0
 /**
  * Draws the menu for a New module
  */
 function _NEW($client)
 {
     JToolBarHelper::title(JText::_('Module') . ': <small><small>[ ' . JText::_('New') . ' ]</small></small>', 'module.png');
     JToolBarHelper::customX('edit', 'forward.png', 'forward_f2.png', 'Next', true);
     JToolBarHelper::cancel();
     if ($client->name == 'site') {
         JToolBarHelper::help('screen.modulessite.edit');
     } else {
         JToolBarHelper::help('screen.modulesadministrator.edit');
     }
 }
예제 #26
0
 /**
  * set up the menu when viewing the list of connections
  */
 function setConnectionsToolbar()
 {
     JToolBarHelper::title(JText::_('CONNECTIONS'), 'fabrik-connection.png');
     JToolBarHelper::makeDefault('setdefault');
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', 'Copy');
     JToolBarHelper::deleteList();
     JToolBarHelper::editListX();
     JToolBarHelper::addNewX();
 }
예제 #27
0
파일: view.html.php 프로젝트: laiello/yrm
 function _setToolBar()
 {
     JToolBarHelper::title(JText::_('ROLES_MANAGER_TITLE'), 'roles');
     JToolBarHelper::addNewX();
     JToolBarHelper::editListX();
     JToolBarHelper::deleteList();
     JToolBarHelper::customX('resources', 'resources', '', JText::_('ROLES_MANAGER_RESOURCES'));
     JToolBarHelper::customX('users', 'users', '', JText::_('ROLES_MANAGER_USERS'));
     JToolBarHelper::customX('packages', 'packages', '', JText::_('ROLES_MANAGER_PACKAGES'));
     JToolBarHelper::customX('groups', 'groups', '', JText::_('ROLES_MANAGER_GROUPS'));
 }
예제 #28
0
파일: cron.php 프로젝트: nikshade/fabrik21
 /**
  * set up the menu when viewing the list of cron jobs
  */
 function setCronsToolbar()
 {
     JToolBarHelper::title(JText::_('SCHEDULED TASKS'), 'fabrik-schedule.png');
     JToolBarHelper::customX('run', 'upload.png', 'upload_f2.png', 'Run');
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', 'Copy');
     JToolBarHelper::deleteList();
     JToolBarHelper::editListX();
     JToolBarHelper::addNewX();
 }
예제 #29
0
 function display($tpl = null)
 {
     global $mainframe;
     $this->_layout = 'default';
     /*
      * Set toolbar items for the page
      */
     $menutype = $mainframe->getUserStateFromRequest('com_menus.menutype', 'menutype', 'mainmenu', 'menutype');
     JToolBarHelper::title(JText::_('MENU ITEM MANAGER'), 'menu.png');
     JToolBarHelper::addNewX('newItem');
     JToolBarHelper::spacer();
     JToolBarHelper::trash();
     JToolBarHelper::spacer();
     JToolBarHelper::customX('move', 'move.png', 'move_f2.png', 'Move', true);
     JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', 'Copy', true);
     JToolBarHelper::spacer();
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     JToolBarHelper::spacer();
     JToolBarHelper::makeDefault('setdefault');
     JSubMenuHelper::addEntry(JText::_('Items'), 'index.php?option=com_menus&task=view', true);
     JSubMenuHelper::addEntry(JText::_('Menus'), 'index.php?option=com_menus');
     if (JFactory::getUser()->authorize('com_trash', 'manage')) {
         JSubMenuHelper::addEntry(JText::_('Trash'), 'index.php?option=com_trash&task=viewMenu');
     }
     $document =& JFactory::getDocument();
     $document->setTitle(JText::_('View Menu Items'));
     $limitstart = JRequest::getVar('limitstart', '0', '', 'int');
     $items =& $this->get('Items');
     $pagination =& $this->get('Pagination');
     $lists =& $this->_getViewLists();
     $user =& JFactory::getUser();
     require_once JPATH_COMPONENT . DS . 'helpers' . DS . 'helper.php';
     $menus = MenusHelper::getMenuTypelist();
     // Ensure ampersands and double quotes are encoded in item titles
     foreach ($items as $i => $item) {
         $treename = $item->treename;
         $treename = JFilterOutput::ampReplace($treename);
         $treename = str_replace('"', '&quot;', $treename);
         $items[$i]->treename = $treename;
     }
     //Ordering allowed ?
     $ordering = $lists['order'] == 'm.ordering';
     JHTML::_('behavior.tooltip');
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('lists', $lists);
     $this->assignRef('user', $user);
     $this->assignRef('menutype', $menutype);
     $this->assignRef('ordering', $ordering);
     $this->assignRef('limitstart', $limitstart);
     $this->assignRef('menus', $menus);
     parent::display($tpl);
 }
예제 #30
0
 /**
  * Draws the menu for Editing an existing category
  */
 function _DEFAULT()
 {
     JToolBarHelper::title(JText::_('Section Manager'), 'sections.png');
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     JToolBarHelper::customX('copyselect', 'copy.png', 'copy_f2.png', 'Copy', true);
     JToolBarHelper::deleteList();
     JToolBarHelper::editListX();
     JToolBarHelper::addNewX();
     JToolBarHelper::help('screen.sections');
 }