getOneById($sortid); $isIMG = 0; if (intval($sort['sorttype']) >= 1) { $isIMG = 1; } //��ҳ+++++++++++++++++++++++++++++++++++ $dbo=Factory::create('dbo_article'); $cou=$dbo->getArtCouBySortid($sortid);//�ܼ�¼�� $pagesize = $isIMG ? 15 : 30; //ÿҳ��ʾ��¼�� $pageno = intval($_REQUEST['pageno']); if ($pageno <= 1) $pageno = 1; //$pageno����ǰҳ $start_rowno = ($pageno - 1) * $pagesize; $start_rowno = ($pageno > 1)? $start_rowno-$cfg['sys']['MORE_DIFF']:$start_rowno; //���õ�һ��ҳ��¼�ص� $limit=$pagesize; $start=$start_rowno; $list = $isIMG ? $dbo->getPicsBySortid($sortid,$start,$limit) : $dbo->getArticlesBySortid($sortid,$start,$limit,'',0,0,1); $smarty->assign('list',$list); $smarty->assign('cou',$cou); $smarty->assign('limit',$pagesize); $smarty->assign('start',$start_rowno); $smarty->assign('curr',$pageno); //��ҳ------------------------------------ $smarty->assign('isIMG',$isIMG); $smarty->assign('sortid',$sortid); $smarty->assign('sort',$sort); if ($isIMG == 1) { $smarty->display('more-pic.tpl.asp'); } else { //$tpl=dirname(__FILE__)."/templates/"; //echo $tpl; //$smarty->display($tpl.'more.tpl.html'); //����ģ�� $smarty->template_dir = dirname(__FILE__)."/templates/"; $smarty->display('more_rdsc.tpl.html'); } ?>