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


PHP JToolBarHelper::save2new方法代码示例

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


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

示例1: addToolbar

 protected function addToolbar()
 {
     JFactory::getApplication()->input->set('hidemainmenu', true);
     $bar = JToolBar::getInstance();
     $doc = JFactory::getDocument();
     $isNew = $this->item->id == 0;
     JToolBarHelper::title(JText::sprintf('COM_TZ_PORTFOLIO_PLUS_GROUP_FIELDS_MANAGER_TASK', JText::_($isNew ? 'COM_TZ_PORTFOLIO_PLUS_PAGE_ADD_GROUP_FIELD' : 'COM_TZ_PORTFOLIO_PLUS_PAGE_EDIT_GROUP_FIELD')), 'folder-plus-2');
     JToolBarHelper::apply('group.apply');
     JToolBarHelper::save('group.save');
     JToolBarHelper::save2new('group.save2new');
     JToolBarHelper::cancel('group.cancel', JText::_('JTOOLBAR_CLOSE'));
     JToolBarHelper::divider();
     JToolBarHelper::help('JHELP_CONTENT_ARTICLE_MANAGER', false, 'http://wiki.templaza.com/TZ_Portfolio_Plus_v3:Administration#How_to_Add_or_Edit');
     // If the joomla is version 3.0
     if (COM_TZ_PORTFOLIO_PLUS_JVERSION_COMPARE) {
         $doc->addStyleSheet(JURI::base(true) . '/components/com_tz_portfolio_plus/fonts/font-awesome-4.5.0/css/font-awesome.min.css');
     }
     $doc->addStyleSheet(JURI::base(true) . '/components/com_tz_portfolio_plus/css/style.min.css');
     // Special HTML workaround to get send popup working
     $docClass = ' class="btn btn-small"';
     $youtubeIcon = '<i class="tz-icon-youtube tz-icon-14"></i>&nbsp;';
     $wikiIcon = '<i class="tz-icon-wikipedia tz-icon-14"></i>&nbsp;';
     $youtubeTitle = JText::_('COM_TZ_PORTFOLIO_PLUS_VIDEO_TUTORIALS');
     $wikiTitle = JText::_('COM_TZ_PORTFOLIO_PLUS_WIKIPEDIA_TUTORIALS');
     $videoTutorial = '<a' . $docClass . ' onclick="Joomla.popupWindow(\'http://www.youtube.com/channel/UCykS6SX6L2GOI-n3IOPfTVQ/videos\', \'' . $youtubeTitle . '\', 800, 500, 1)"' . ' href="#">' . $youtubeIcon . $youtubeTitle . '</a>';
     $wikiTutorial = '<a' . $docClass . ' onclick="Joomla.popupWindow(\'http://wiki.templaza.com/Main_Page\', \'' . $wikiTitle . '\', 800, 500, 1)"' . ' href="#">' . $wikiIcon . $wikiTitle . '</a>';
     $bar->appendButton('Custom', $videoTutorial, 'youtube');
     $bar->appendButton('Custom', $wikiTutorial, 'wikipedia');
 }
开发者ID:templaza,项目名称:tz_portfolio_plus,代码行数:29,代码来源:view.html.php

示例2: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     require_once JPATH_COMPONENT . '/helpers/languages.php';
     JRequest::setVar('hidemainmenu', 1);
     $isNew = empty($this->item->lang_id);
     $canDo = LanguagesHelper::getActions();
     JToolBarHelper::title(JText::_($isNew ? 'COM_LANGUAGES_VIEW_LANGUAGE_EDIT_NEW_TITLE' : 'COM_LANGUAGES_VIEW_LANGUAGE_EDIT_EDIT_TITLE'), 'langmanager.png');
     // If a new item, can save.
     if ($isNew && $canDo->get('core.create')) {
         JToolBarHelper::save('language.save');
     }
     //If an existing item, allow to Apply and Save.
     if (!$isNew && $canDo->get('core.edit')) {
         JToolBarHelper::apply('language.apply');
         JToolBarHelper::save('language.save');
     }
     // If an existing item, can save to a copy only if we have create rights.
     if ($canDo->get('core.create')) {
         JToolBarHelper::save2new('language.save2new');
     }
     if ($isNew) {
         JToolBarHelper::cancel('language.cancel');
     } else {
         JToolBarHelper::cancel('language.cancel', 'JTOOLBAR_CLOSE');
     }
     JToolBarHelper::divider();
     JToolBarHelper::help('JHELP_EXTENSIONS_LANGUAGE_MANAGER_EDIT');
 }
开发者ID:carmerin,项目名称:cesae-web,代码行数:33,代码来源:view.html.php

示例3: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     JRequest::setVar('hidemainmenu', true);
     $user = JFactory::getUser();
     $userId = $user->get('id');
     $isNew = $this->item->id == 0;
     $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $userId);
     $canDo = Jnt_HanhphucHelper::getActions($this->state->get('filter.category_id'));
     JToolBarHelper::title($isNew ? JText::_('User Content: Edit') : JText::_('User Content: New'), 'article.png');
     // If not checked out, can save the item.
     if (!$checkedOut && ($canDo->get('core.edit') || count($user->getAuthorisedCategories('com_je_content', 'core.create')) > 0)) {
         JToolBarHelper::apply('article.apply');
         JToolBarHelper::save('article.save');
         if ($canDo->get('core.create')) {
             JToolBarHelper::save2new('article.save2new');
         }
     }
     // If an existing item, can save to a copy.
     if (!$isNew && $canDo->get('core.create')) {
         JToolBarHelper::save2copy('article.save2copy');
     }
     if (empty($this->item->id)) {
         JToolBarHelper::cancel('article.cancel');
     } else {
         JToolBarHelper::cancel('article.cancel', 'JTOOLBAR_CLOSE');
     }
 }
开发者ID:ngxuanmui,项目名称:hp3,代码行数:32,代码来源:view.html.php

示例4: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     JRequest::setVar('hidemainmenu', true);
     $user = JFactory::getUser();
     $isNew = $this->item->id == 0;
     $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $user->get('id'));
     $canDo = MenusHelper::getActions($this->state->get('filter.parent_id'));
     JToolBarHelper::title(JText::_($isNew ? 'COM_MENUS_VIEW_NEW_ITEM_TITLE' : 'COM_MENUS_VIEW_EDIT_ITEM_TITLE'), 'menu-add');
     // If a new item, can save the item.  Allow users with edit permissions to apply changes to prevent returning to grid.
     if ($isNew && $canDo->get('core.create')) {
         if ($canDo->get('core.edit')) {
             JToolBarHelper::apply('adminitem.apply');
         }
         JToolBarHelper::save('adminitem.save');
     }
     // If not checked out, can save the item.
     if (!$isNew && !$checkedOut && $canDo->get('core.edit')) {
         JToolBarHelper::apply('adminitem.apply');
         JToolBarHelper::save('adminitem.save');
     }
     // If the user can create new items, allow them to see Save & New
     if ($canDo->get('core.create')) {
         JToolBarHelper::save2new('adminitem.save2new');
     }
     // If an existing item, can save to a copy only if we have create rights.
     if (!$isNew && $canDo->get('core.create')) {
         JToolBarHelper::save2copy('adminitem.save2copy');
     }
     if ($isNew) {
         JToolBarHelper::cancel('adminitem.cancel');
     } else {
         JToolBarHelper::cancel('adminitem.cancel', 'JTOOLBAR_CLOSE');
     }
 }
开发者ID:rdeutz,项目名称:square-one-cms,代码行数:39,代码来源:view.html.php

示例5: addToolbar

 /**
  * Setting the toolbar
  */
 protected function addToolbar()
 {
     JRequest::setVar('hidemainmenu', true);
     $user = JFactory::getUser();
     $userId = $user->get('id');
     $isNew = $this->item->id == 0;
     $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $userId);
     JToolBarHelper::title($isNew ? JText::_('COM_BT_PORTFOLIO_NEW_CATEGORY') : JText::_('COM_BT_PORTFOLIO_EDIT_CATEGORY'), 'category-add.png');
     if ($isNew) {
         JToolBarHelper::apply('category.apply');
         JToolBarHelper::save('category.save');
         JToolBarHelper::save2new('category.save2new');
         JToolBarHelper::save2copy('category.save2copy');
         JToolBarHelper::cancel('category.cancel');
     } else {
         // Can't save the record if it's checked out.
         if (!$checkedOut) {
             JToolBarHelper::apply('category.apply');
             JToolBarHelper::save('category.save');
             JToolBarHelper::save2new('category.save2new');
         }
         JToolBarHelper::save2copy('category.save2copy');
         JToolBarHelper::cancel('category.cancel', 'JTOOLBAR_CLOSE');
     }
 }
开发者ID:Tommar,项目名称:remate,代码行数:28,代码来源:view.html.php

示例6: display

 function display($tpl = null)
 {
     $prod = $this->get('Data');
     $isNew = $prod->id < 1;
     $text = $isNew ? JText::_("NEW") : JText::_("EDIT");
     JToolBarHelper::title(JText::_("PRODUCT") . ': <small><small>[ ' . $text . ' ]</small></small>', 'fss_prods');
     JToolBarHelper::custom('translate', 'translate', 'translate', 'Translate', false);
     JToolBarHelper::spacer();
     JToolBarHelper::apply();
     JToolBarHelper::save();
     JToolBarHelper::save2new();
     if ($isNew) {
         JToolBarHelper::cancel();
     } else {
         // for existing items the button is renamed `close`
         JToolBarHelper::cancel('cancel', 'Close');
     }
     FSSAdminHelper::DoSubToolbar();
     $this->prod = $prod;
     $path = JPATH_SITE . DS . 'images' . DS . 'fss' . DS . 'products';
     if (!file_exists($path)) {
         mkdir($path, 0777, true);
     }
     $files = JFolder::files($path, '(.png$|.jpg$|.jpeg$|.gif$)');
     $sections[] = JHTML::_('select.option', '', JText::_("NO_IMAGE"), 'id', 'title');
     foreach ($files as $file) {
         $sections[] = JHTML::_('select.option', $file, $file, 'id', 'title');
     }
     $lists['images'] = JHTML::_('select.genericlist', $sections, 'image', 'class="inputbox" size="1" ', 'id', 'title', $prod->image);
     $this->lists = $lists;
     parent::display($tpl);
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:32,代码来源:view.html.php

示例7: addToolbar

 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     JRequest::setVar('hidemainmenu', true);
     $doc = JFactory::getDocument();
     $doc->addStyleDeclaration('.icon-48-babioon {background-image: url(../media/babioon/images/icon-48-babioon.png);}');
     $user = JFactory::getUser();
     $userId = $user->get('id');
     $isNew = $this->item->id == 0;
     $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $userId);
     $canDo = BabioonDownloadHelpers::getActions();
     JToolBarHelper::title($isNew ? JText::_('COM_BABIOONDOWNLOAD_DOWNLOAD_NEW') : JText::_('COM_BABIOONDOWNLOAD_DOWNLOAD_EDIT'), 'babioon.png');
     // If not checked out, can save the item.
     if (!$checkedOut && ($canDo->get('core.edit') || count($user->getAuthorisedCategories('com_babioondownload', 'core.create')) > 0)) {
         JToolBarHelper::apply('download.apply');
         JToolBarHelper::save('download.save');
         if ($canDo->get('core.create')) {
             JToolBarHelper::save2new('download.save2new');
         }
     }
     // If an existing item, can save to a copy.
     if (!$isNew && $canDo->get('core.create')) {
         JToolBarHelper::save2copy('download.save2copy');
     }
     if (empty($this->item->id)) {
         JToolBarHelper::cancel('download.cancel');
     } else {
         JToolBarHelper::cancel('download.cancel', 'JTOOLBAR_CLOSE');
     }
 }
开发者ID:rdeutz,项目名称:babioon-download,代码行数:32,代码来源:view.html.php

示例8: addToolbar

 /**
  * Add the page title and toolbar.
  *
  */
 protected function addToolbar()
 {
     $jinput = JFactory::getApplication()->input;
     $jinput->set('hidemainmenu', true);
     $user = JFactory::getUser();
     $isNew = $this->item->id == 0;
     $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $user->get('id'));
     $canDo = JEMHelperBackend::getActions();
     JToolBarHelper::title($isNew ? JText::_('COM_JEM_ADD_VENUE') : JText::_('COM_JEM_EDIT_VENUE'), 'venuesedit');
     // If not checked out, can save the item.
     if (!$checkedOut && ($canDo->get('core.edit') || $canDo->get('core.create'))) {
         JToolBarHelper::apply('venue.apply');
         JToolBarHelper::save('venue.save');
     }
     if (!$checkedOut && $canDo->get('core.create')) {
         JToolBarHelper::save2new('venue.save2new');
     }
     // If an existing item, can save to a copy.
     if (!$isNew && $canDo->get('core.create')) {
         JToolBarHelper::save2copy('venue.save2copy');
     }
     if (empty($this->item->id)) {
         JToolBarHelper::cancel('venue.cancel');
     } else {
         JToolBarHelper::cancel('venue.cancel', 'JTOOLBAR_CLOSE');
     }
     JToolBarHelper::divider();
     JToolBarHelper::help('editvenues', true);
 }
开发者ID:JKoelman,项目名称:JEM-3,代码行数:33,代码来源:view.html.php

示例9: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * 
  */
 protected function addToolbar()
 {
     require_once JPATH_COMPONENT . '/helpers/jdownloadshelper.php';
     JRequest::setVar('hidemainmenu', true);
     $user = JFactory::getUser();
     $isNew = $this->item->id == 0;
     $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $user->get('id'));
     $canDo = JDownloadsHelper::getActions();
     $document = JFactory::getDocument();
     $document->addStyleSheet('components/com_jdownloads/assets/css/style.css');
     $title = $isNew ? JText::_('COM_JDOWNLOADS_LICEDIT_ADD') : JText::_('COM_JDOWNLOADS_LICEDIT_EDIT');
     JToolBarHelper::title(JText::_('COM_JDOWNLOADS') . ': ' . $title, 'jdlicenses');
     // If not checked out, can save the item.
     if (!$checkedOut && ($canDo->get('core.edit') || $canDo->get('core.create'))) {
         JToolBarHelper::apply('license.apply');
         JToolBarHelper::save('license.save');
     }
     if (!$checkedOut && $canDo->get('core.create')) {
         JToolBarHelper::save2new('license.save2new');
     }
     // If an existing item, can save to a copy.
     if (!$isNew && $canDo->get('core.create')) {
         JToolBarHelper::save2copy('license.save2copy');
     }
     if (empty($this->item->id)) {
         JToolBarHelper::cancel('license.cancel');
     } else {
         JToolBarHelper::cancel('license.cancel', 'JTOOLBAR_CLOSE');
     }
     JToolBarHelper::divider();
     JToolBarHelper::help('help.license', true);
 }
开发者ID:madcsaba,项目名称:li-de,代码行数:37,代码来源:view.html.php

示例10: addToolBar

 protected function addToolBar()
 {
     $app = JFactory::getApplication();
     $app->input->set('hidemainmenu', true);
     $isNew = $this->item->id == 0;
     $user = JFactory::getUser();
     $userId = $user->id;
     $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $userId);
     JToolBarHelper::title(JText::_('COM_JUDOWNLOAD_PAGE_' . ($checkedOut ? 'VIEW_CRITERIAGROUP' : ($isNew ? 'ADD_CRITERIAGROUP' : 'EDIT_CRITERIAGROUP'))), 'criteriagroup-add');
     if ($isNew && $user->authorise('core.create', 'com_judownload')) {
         JToolBarHelper::apply('criteriagroup.apply');
         JToolBarHelper::save('criteriagroup.save');
         JToolBarHelper::save2new('criteriagroup.save2new');
         JToolBarHelper::cancel('criteriagroup.cancel');
     } else {
         if (!$checkedOut) {
             if ($this->canDo->get('core.edit') || $this->canDo->get('core.edit.own') && $this->item->created_by == $userId) {
                 JToolBarHelper::apply('criteriagroup.apply');
                 JToolBarHelper::save('criteriagroup.save');
                 if ($this->canDo->get('core.create')) {
                     JToolBarHelper::save2new('criteriagroup.save2new');
                 }
             }
         }
         JToolBarHelper::cancel('criteriagroup.cancel', 'JTOOLBAR_CLOSE');
     }
     JToolBarHelper::divider();
     $bar = JToolBar::getInstance('toolbar');
     $bar->addButtonPath(JPATH_ADMINISTRATOR . "/components/com_judownload/helpers/button");
     $bar->appendButton('JUHelp', 'help', JText::_('JTOOLBAR_HELP'));
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:31,代码来源:view.html.php

示例11: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     JRequest::setVar('hidemainmenu', true);
     $user = JFactory::getUser();
     $isNew = $this->item->id == 0;
     $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $user->get('id'));
     $canDo = J2XMLHelper::getActions();
     $doc = JFactory::getDocument();
     $icon_48_websites = " .icon-48-websites {background:url(../media/com_j2xml/images/icon-48-websites.png) no-repeat; }";
     $doc->addStyleDeclaration($icon_48_websites);
     JToolBarHelper::title($isNew ? JText::_('COM_J2XML_MANAGER_WEBSITE_NEW') : JText::_('COM_J2XML_MANAGER_WEBSITE_EDIT'), 'websites.png');
     // If not checked out, can save the item.
     if (!$checkedOut && ($canDo->get('core.edit') || $canDo->get('core.create'))) {
         JToolBarHelper::apply('website.apply');
         JToolBarHelper::save('website.save');
     }
     if (!$checkedOut && $canDo->get('core.create')) {
         JToolBarHelper::save2new('website.save2new');
     }
     // If an existing item, can save to a copy.
     if (!$isNew && $canDo->get('core.create')) {
         JToolBarHelper::save2copy('website.save2copy');
     }
     if (empty($this->item->id)) {
         JToolBarHelper::cancel('website.cancel');
     } else {
         JToolBarHelper::cancel('website.cancel', 'JTOOLBAR_CLOSE');
     }
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:34,代码来源:view.html.php

示例12: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     JRequest::setVar('hidemainmenu', true);
     $user = JFactory::getUser();
     $userId = $user->get('id');
     $isNew = $this->item->id == 0;
     $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $userId);
     $canDo = RentalHelper::getActions($this->state->get('filter.category_id'));
     JToolBarHelper::title($isNew ? JText::_('COM_RENTAL_MANAGER_APARTMENT_NEW') : JText::_('COM_RENTAL_MANAGER_APARTMENT_EDIT'), '#xs#.png');
     // If not checked out, can save the item.
     if (!$checkedOut && ($canDo->get('core.edit') || count($user->getAuthorisedCategories('com_rental', 'core.create')) > 0)) {
         JToolBarHelper::apply('apartment.apply');
         JToolBarHelper::save('apartment.save');
         if ($canDo->get('core.create')) {
             JToolBarHelper::save2new('apartment.save2new');
         }
     }
     // If an existing item, can save to a copy.
     if (!$isNew && $canDo->get('core.create')) {
         JToolBarHelper::save2copy('apartment.save2copy');
     }
     if (empty($this->item->id)) {
         JToolBarHelper::cancel('apartment.cancel');
     } else {
         JToolBarHelper::cancel('apartment.cancel', 'JTOOLBAR_CLOSE');
     }
 }
开发者ID:salomalo,项目名称:nbs-01,代码行数:32,代码来源:view.html.php

示例13: display

 /**
  * Mapbox view display method
  * @return void
  **/
 function display($tpl = null)
 {
     $input = JFactory::getApplication()->input;
     $layout = $input->get->get('layout', 'list', 'string');
     $this->setLayout($layout);
     switch ($layout) {
         case "list":
             MapboxHelper::addSubmenu($input->get('view', 'mapbox'));
             JToolBarHelper::title(JText::_('COM_MAPBOX_VIEW_MAPBOX_LIST_TITLE'), 'generic.png');
             JToolBarHelper::addNew('mapbox.add', 'JTOOLBAR_NEW');
             JToolBarHelper::editList('mapbox.edit', 'JTOOLBAR_EDIT', true);
             JToolBarHelper::deleteList(JText::_('COM_MAPBOX_MSG_DELETE_CONFIRM'), 'mapbox.delete', 'JTOOLBAR_DELETE', true);
             JToolBarHelper::preferences('com_mapbox', '500');
             // GET DATA FROM THE MODEL
             $this->filter = $this->get('State');
             $this->items = $this->get('List');
             $this->page = $this->get('Pagination');
             break;
         default:
             $input->set('hidemainmenu', 1);
             JToolBarHelper::title(JText::_('COM_MAPBOX_VIEW_MAPBOX_EDIT_TITLE'), 'generic.png');
             JToolBarHelper::apply('mapbox.apply');
             JToolBarHelper::save('mapbox.save');
             JToolBarHelper::save2new('mapbox.save2new');
             JToolBarHelper::cancel('mapbox.cancel');
             $this->form = $this->get('Form');
             break;
     }
     parent::display($tpl);
 }
开发者ID:SchoolDangersOrg,项目名称:com_mapbox,代码行数:34,代码来源:view.html.php

示例14: addToolBar

 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     JRequest::setVar('hidemainmenu', true);
     $user = JFactory::getUser();
     $userId = $user->get('id');
     $canDo = MaintHelper::getActions();
     $isNew = false == isset($this->order) || $this->order->id == 0;
     $this->canDeliver = $canDo->get('core.deliver');
     JToolBarHelper::title($isNew ? JText::_('COM_MAINT_ADD_APPLICATION') : JText::_('COM_MAINT_EDIT_APPLICATION'));
     if ($isNew) {
         // For new records, check the create permission.
         if ($canDo->get('core.create')) {
             JToolBarHelper::apply('maint.apply', 'JTOOLBAR_APPLY');
             JToolBarHelper::save('maint.save', 'JTOOLBAR_SAVE');
             JToolBarHelper::save2new('maint.save2new');
         }
     } else {
         if ($canDo->get('core.edit')) {
             JToolBarHelper::apply('maint.apply', 'JTOOLBAR_APPLY');
             JToolBarHelper::save('maint.save', 'JTOOLBAR_SAVE');
             // if we can return to make a new one.
             if ($canDo->get('core.create')) {
                 JToolBarHelper::save2new('maint.save2new');
             }
         }
         $bar = JToolBar::getInstance('toolbar');
         $bar->addButtonPath(JPATH_COMPONENT . '/button/');
         $bar->appendButton('Print', 'COM_MAINT_PRINT', 'index.php?option=com_maint&task=maints.pprint&id=' . $this->order->id);
     }
     JToolBarHelper::cancel('maint.cancel', 'JTOOLBAR_CANCEL');
 }
开发者ID:aboudmurad,项目名称:jommla-com_maint,代码行数:34,代码来源:view.html.php

示例15: setToolbar

 function setToolbar()
 {
     switch ($this->_task) {
         default:
             JToolBarHelper::title(JText::_('Tags Manager'));
             JToolBarHelper::editList();
             JToolBarHelper::divider();
             JToolBarHelper::publishList();
             JToolBarHelper::unpublishList();
             JToolBarHelper::divider();
             JToolBarHelper::deleteList(JText::_('COM_TZ_PINBOARD_QUESTION_DELETE'));
             JToolBarHelper::preferences('com_tz_pinboard');
             break;
         case 'add':
         case 'new':
             JRequest::setVar('hidemainmenu', true);
             JToolBarHelper::title(JText::_('Tags Manager: <small><small>' . JText::_(ucfirst($this->_task)) . '</small></small>'));
             JToolBarHelper::save2new();
             JToolBarHelper::save();
             JToolBarHelper::apply();
             JToolBarHelper::cancel();
             break;
         case 'edit':
             JRequest::setVar('hidemainmenu', true);
             JToolBarHelper::title(JText::_('Tags Manager: <small><small>' . JText::_(ucfirst(JRequest::getCmd('task'))) . '</small></small>'));
             JToolBarHelper::save();
             JToolBarHelper::apply();
             JToolBarHelper::cancel('cancel', JText::_('JTOOLBAR_CLOSE'));
             break;
     }
     $state = array('P' => JText::_('JPUBLISHED'), 'U' => JText::_('JUNPUBLISHED'));
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_state', JHtml::_('select.options', $state, 'value', 'text', $this->state->filter_state));
 }
开发者ID:nvthuong11,项目名称:tz_pinboard,代码行数:33,代码来源:view.html.php


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