public function topic4()
 {
     $page = (int) @$_GET['page'];
     if (!$page) {
         $page = 1;
     }
     $topic = C("TOPIC");
     $partId = (int) $topic[3]['id'];
     $total = Alist::itemNum($partId);
     //get total number of newd-cata
     $this->assign('page', $page);
     //curr page
     $this->assign('total', ceil($total / 10));
     //prev page
     $this->assign('tid', $partId);
     $this->assign('topic', $topic);
     $list = Alist::getList($partId, 1);
     $this->assign('list', $list);
     $this->display();
 }
 public function index()
 {
     $partId = (int) @$_GET['part'];
     $page = (int) @$_GET['page'];
     if (!$page) {
         $page = 1;
     }
     $total = Alist::itemNum($partId);
     //get total number of newd-cata
     $this->assign('page', $page);
     //curr page
     $this->assign('total', ceil($total / 10));
     //prev page
     $this->assign('tid', $partId);
     $title = Alist::getTypeName($partId);
     $this->assign('title', $title);
     $list = Alist::getList($partId, $page);
     $this->assign('list', $list);
     $this->display();
 }