Esempio n. 1
0
 public function userComment()
 {
     $commentUser = new CommentuserModel();
     $count = $commentUser->getCount();
     $p = !empty($_GET['p']) ? $_GET['p'] : 1;
     if ($p < 1 || $p > ceil($count / $this->pageNum)) {
         $this->display("Error/index.tpl");
         exit;
     }
     $this->commentUser = $commentUser->getUser(array(($p - 1) * $this->pageNum, $this->pageNum));
     $page = new Page();
     $this->show = $page->getPage(APP . '/Admin/User/usercomment/p/', $count, $this->pageNum, $p);
     $this->ps = ($p - 1) * $this->pageNum + 1;
     $this->display('User/usercomment.tpl');
 }