Esempio n. 1
0
 public function search()
 {
     \Core\View::css('/manage/tablescroll/css/style.css');
     \Core\View::script('/manage/tablescroll/js/jquery.tablescroll.js');
     $user_nickname = \Core\URI::kv('user_nickname');
     $page = \Core\URI::kv('page', 1);
     $limit = 50;
     $offset = ($page - 1) * $limit;
     $where = array("user_nickname like '{$user_nickname}%'");
     $this->view->content = view('user/index.php');
     $this->view->content->rows = \DB\Account\User::fetch($where, $limit, $offset, array('create_time' => 'desc'));
     $this->view->content->page = new \Model\Page($page, \DB\Account\User::count($where), $limit);
 }