thinkphp Study Notes (12) thinkphp pagination and use of verification codes
Commonaction
Pageaction
Count (); $page =new page ($count, 3);//Modify prompt information $page->setconfig (' header ', ' member '); $page->setconfig (' prev ', "previous group"); $page->setconfig (' Next ', ' next group '), $page->setconfig (' first ', ' home '), $page->setconfig (' Last ', "end");// Define theme Style (go to document)//$page->setconfig (' theme ', ' percent of '); $show = $page->show (); $list = $user->order (' id desc ') Limit ($page->firstrow ', '. $page->listrows)->select (); $this->assign (' title ', ' page demo '); $this Assign (' Alist ', $list); $this->assign (' page ', $show); $this->display ();} function Check () {$verify =$_session[' verify '];if ($verify!=md5 ($_post[' verify ')) {$this->error ("Captcha error");}} function Next () {}}?>
Index
ID
User name
IP