/** * 禁用 */ public function disable() { if (is_administrator(I('uid', 0))) { $this->error("禁止对超级管理员进行禁用操作!"); } parent::disable("uid"); }
public function add() { if (IS_POST) { $entity = array('title' => I('post.title', '', 'trim'), 'notes' => I('post.notes', '', 'trim')); parent::add($entity); } else { $this->display(); } }
/** * 菜单 */ 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); }
protected function _initialize() { parent::_initialize(); $this->assignTitle('日志管理'); }
protected function _initialize() { parent::_initialize(); }
public function edit() { $this->configVars(); parent::edit(); }