Example #1
0
 public function edit()
 {
     $model = M();
     $id = $_REQUEST['id'];
     $vo = $model->where("id={$id}")->find();
     require Tpl();
 }
Example #2
0
 protected function _list($model, $map, $asc = false)
 {
     $voList = $model->where($map)->select();
     if (method_exists($this, '_after_list')) {
         $voList = $this->_after_list($voList);
     }
     //模板赋值显示
     //         cookie('_currentUrl_', __SELF__);
     $record = array($voList, $map);
     Tpl($record);
 }
Example #3
0
 public function add()
 {
     $role = array();
     $role = M('role')->where("status=1")->select();
     require Tpl();
 }
Example #4
0
 public function index()
 {
     echo $a = 11111;
     Tpl();
 }
Example #5
0
 public function add()
 {
     Tpl();
 }
Example #6
0
 public function add()
 {
     require Tpl();
 }