コード例 #1
0
 /**
  * 禁用
  */
 public function disable()
 {
     if (is_administrator(I('uid', 0))) {
         $this->error("禁止对超级管理员进行禁用操作!");
     }
     parent::disable("uid");
 }
コード例 #2
0
 public function add()
 {
     if (IS_POST) {
         $entity = array('title' => I('post.title', '', 'trim'), 'notes' => I('post.notes', '', 'trim'));
         parent::add($entity);
     } else {
         $this->display();
     }
 }
コード例 #3
0
 /**
  * 菜单
  */
 public function index()
 {
     $map = array();
     $map['pid'] = I('get.pid', 0);
     $page = array('curpage' => I('get.p', 0), 'size' => C('LIST_ROWS'));
     $order = "sort desc";
     $result = apiCall("Ucenter/Menu/query", array($map, $page, $order));
     parent::queryResult($result);
 }
コード例 #4
0
 protected function _initialize()
 {
     parent::_initialize();
     $this->assignTitle('日志管理');
 }
コード例 #5
0
 protected function _initialize()
 {
     parent::_initialize();
 }
コード例 #6
0
 public function edit()
 {
     $this->configVars();
     parent::edit();
 }