public function user_list()
 {
     //申请权限管理
     import('ORG.Util.Page');
     $user = new TestViewModel();
     $data['listpdf'] = array('gt', 0);
     $count = $user->where($data)->count();
     $page = new Page($count, 30);
     $show = $page->show();
     $list = $user->where($data)->order('listpdf asc')->limit($page->firstRow . ',' . $page->listRows)->select();
     $this->assign('list', $list);
     $this->assign('page', $show);
     $this->display();
 }
 public function UserImg()
 {
     $text = trim($this->_post('text'));
     import('ORG.Util.Page');
     $data['yourname'] = array('like', array("%{$text}%"));
     $test = new TestViewModel();
     $count = $test->where($data)->count();
     $page = new Page($count, 30);
     $show = $page->show();
     $list = $test->where($data)->order('username desc')->limit($page->firstRow . ',' . $page->listRows)->select();
     if ($list == '') {
         $this->assign('empty', '没有可查询的数据');
     }
     $this->assign('page', $show);
     $this->assign('text', $text);
     $this->assign('list', $list);
     $this->display();
 }