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


PHP JToolBarHelper::unpublishlist方法代码示例

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


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

示例1: display

 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/views/common.php';
     //        layout start
     if ($layoutName == 'fieldsordering') {
         // field ordering
         $fieldfor = JRequest::getVar('ff', 0);
         $session = JFactory::getSession();
         $session->set('fieldfor', $fieldfor);
         $fieldfor = $session->get('fieldfor');
         JToolBarHelper::publishlist('fieldordering.fieldpublished');
         JToolBarHelper::unpublishlist('fieldordering.fieldunpublished');
         JToolBarHelper::custom('fieldordering.visitorfieldpublished', 'visitorpublishedbutton', '', 'Visitor Publish', true);
         JToolBarHelper::custom('fieldordering.visitorfieldunpublished', 'visitorunpublishedbutton', '', 'Visitor Unpublish', true);
         JToolBarHelper::custom('fieldordering.fieldrequired', 'required', '', 'Required', true);
         JToolBarHelper::custom('fieldordering.fieldnotrequired', 'notrequired', '', 'Not Required', true);
         if ($fieldfor) {
             $_SESSION['fford'] = $fieldfor;
         } else {
             $fieldfor = $_SESSION['fford'];
         }
         if ($fieldfor == 11 || $fieldfor == 12 || $fieldfor == 13) {
             JToolBarHelper::title(JText::_('JS_VISITOR_FIELDS'));
         } else {
             JToolBarHelper::title(JText::_('JS_FIELDS'));
         }
         $result = $this->getJSModel('fieldordering')->getFieldsOrdering($fieldfor, $limitstart, $limit);
         // 1 for company
         $items = $result[0];
         $total = $result[1];
         if ($total <= $limitstart) {
             $limitstart = 0;
         }
         $pagination = new JPagination($total, $limitstart, $limit);
         $this->assignRef('pagination', $pagination);
     }
     //        layout end
     $this->assignRef('config', $config);
     $this->assignRef('ff', $fieldfor);
     $this->assignRef('application', $application);
     $this->assignRef('items', $items);
     $this->assignRef('theme', $theme);
     $this->assignRef('option', $option);
     $this->assignRef('uid', $uid);
     $this->assignRef('msg', $msg);
     $this->assignRef('isjobsharing', $_client_auth_key);
     parent::display($tpl);
 }
开发者ID:jamielaff,项目名称:als_resourcing,代码行数:48,代码来源:view.html.php


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