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


PHP AdminbaseAction::_list方法代码示例

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


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

示例1: index

 public function index()
 {
     if ($_REQUEST['sn']) {
         $sn = get_safe_replace($_REQUEST['sn']);
         unset($_REQUEST['sn']);
     }
     import('@.Action.Adminbase');
     $c = new AdminbaseAction();
     if ($this->_userid || $sn) {
         $map['userid'] = intval($this->_userid);
         if ($sn) {
             $map['sn'] = $sn;
         }
         $c->_list(MODULE_NAME, $map);
     }
     $this->display();
 }
开发者ID:yunsite,项目名称:yourphpcms,代码行数:17,代码来源:OrderAction.class.php

示例2: index

 public function index()
 {
     if ($_REQUEST['sn']) {
         $sn = get_safe_replace($_REQUEST['sn']);
         unset($_REQUEST['sn']);
     }
     if ($this->_userid || $sn) {
         A('Adminbase');
         $c = new AdminbaseAction();
         $map = array();
         $map['userid'] = intval($this->_userid);
         if ($sn) {
             $map['sn'] = $sn;
         }
         $data = $c->_list(MODULE_NAME, $map);
         $this->assign('page', $data['page']);
         $this->assign('list', $data['list']);
     }
     $this->display();
 }
开发者ID:bossyuetao,项目名称:yuephp,代码行数:20,代码来源:OrderAction.class.php

示例3: index

 /**
  * 列表
  *
  */
 public function index()
 {
     if (!$this->_userid) {
         $this->error(L('nologin'));
     }
     if ($this->module[$this->moduleid]['type'] == 1) {
         if ($this->categorys) {
             foreach ($this->categorys as $r) {
                 if ($r['type'] == 1 || !in_array($this->_groupid, explode(',', $r['postgroup']))) {
                     continue;
                 }
                 if ($r['moduleid'] != $this->moduleid || $r['child']) {
                     $arr = explode(",", $r['arrchildid']);
                     $show = 0;
                     foreach ((array) $arr as $rr) {
                         if ($this->categorys[$rr]['moduleid'] == $this->moduleid) {
                             $show = 1;
                         }
                     }
                     if (empty($show)) {
                         continue;
                     }
                     $r['disabled'] = $r['child'] ? ' disabled' : '';
                 } else {
                     $r['disabled'] = '';
                 }
                 $array[] = $r;
             }
             import('@.ORG.Tree');
             $str = "<option value='\$id' \$disabled \$selected>\$spacer \$catname</option>";
             $tree = new Tree($array);
             $select_categorys = $tree->get_tree(0, $str);
             $this->assign('select_categorys', $select_categorys);
             $this->assign('categorys', $this->categorys);
         }
         $this->assign('posids', F('Posid'));
     }
     import('@.Action.Adminbase');
     $c = new AdminbaseAction();
     $module = $this->module[$this->moduleid]['name'];
     $map['userid'] = array('eq', $this->_userid);
     if (APP_LANG) {
         $map['lang'] = array('eq', $this->Lang[LANG_NAME][id]);
     }
     $result = $c->_list($module, $map, "id", false, 15, true);
     $this->assign("list", $result);
     $this->display();
 }
开发者ID:anywn3773,项目名称:gzsrex,代码行数:52,代码来源:PostAction.class.php


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