当前位置: 首页>>代码示例>>PHP>>正文


PHP JToolBarHelper::customX方法代码示例

本文整理汇总了PHP中JToolBarHelper::customX方法的典型用法代码示例。如果您正苦于以下问题:PHP JToolBarHelper::customX方法的具体用法?PHP JToolBarHelper::customX怎么用?PHP JToolBarHelper::customX使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JToolBarHelper的用法示例。


在下文中一共展示了JToolBarHelper::customX方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display

 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();
 }
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:27,代码来源:view.html.php

示例2: display

 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);
 }
开发者ID:JSWebdesign,项目名称:intranet-platform,代码行数:28,代码来源:view.php

示例3: _VIEW

 function _VIEW()
 {
     JToolBarHelper::title(JText::_('View Private Message'), 'inbox.png');
     JToolBarHelper::customX('reply', 'restore.png', 'restore_f2.png', 'Reply', false);
     JToolBarHelper::deleteList();
     JToolBarHelper::cancel();
 }
开发者ID:Fellah,项目名称:govnobaki,代码行数:7,代码来源:toolbar.messages.html.php

示例4: display

 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);
 }
开发者ID:jaanusnurmoja,项目名称:redjoomla,代码行数:27,代码来源:view.html.php

示例5: chooseElementTypesToolBar

 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');
 }
开发者ID:juliano-hallac,项目名称:fabrik,代码行数:7,代码来源:view.html.php

示例6: setMTurniereToolbar

 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');
 }
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:25,代码来源:mturniere.php

示例7: addToolBar

 /**
  * 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');
 }
开发者ID:rogeriocc,项目名称:fabrik,代码行数:14,代码来源:view.html.php

示例8: display

 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);
 }
开发者ID:jaanusnurmoja,项目名称:redjoomla,代码行数:60,代码来源:view.html.php

示例9: setVereineToolbar

 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');
 }
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:30,代码来源:vereine.php

示例10: display

 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);
 }
开发者ID:prox91,项目名称:joomla-dev,代码行数:35,代码来源:view.html.php

示例11: _NEW

 /**
  * 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');
 }
开发者ID:Fellah,项目名称:govnobaki,代码行数:10,代码来源:toolbar.modules.html.php

示例12: _setToolBar

 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'));
 }
开发者ID:laiello,项目名称:yrm,代码行数:8,代码来源:view.html.php

示例13: setVisualizationsToolbar

 /**
  * 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();
 }
开发者ID:romuland,项目名称:khparts,代码行数:11,代码来源:visualization.php

示例14: display

 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);
 }
开发者ID:ranrolls,项目名称:ras-full-portal,代码行数:58,代码来源:view.html.php

示例15: displayList

 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);
 }
开发者ID:arkane0906,项目名称:lasercut-bootstrap,代码行数:9,代码来源:view.html.php


注:本文中的JToolBarHelper::customX方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。