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); $list = $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); //分页------------------------------------ $rootid = $sort['parentid']; include("common.php"); //$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/"; $smarty->display($tpl.'more_meeting.tpl.html'); } */ $tpl=dirname(__FILE__)."/templates/"; $smarty->display($tpl.'more_meeting.tpl.html');