do_query($strSQL); $newsAry=array(); while($row=$mysql->do_fetch_row(1)){ //$row["cut_title"]=cnSubStr($row["news_title"],44,true)."¡­"; $newsAry[]=$row; } //$smarty->assign("newsAry",toErWeiAry($newsAry,4)); $smarty->assign("newsAry",$newsAry); $smarty->assign("downPath",__dir_rel_web."uploadFiles/doc/"); $page=new Page($perpage,false); $page->css="newsPagelink"; $page->pageformat="%s"; $page->currentformat="%s"; $url_formate[] = '%s'; $page->is_rewrite = true; $page->url_formate = implode("-",$url_formate).".html"; $page->setPageSQL("select count(id) from [#TAB]news where sortid='$pid'"); $smarty->assign("page_html",$page->showPage($p_no,rebuild_query_string("p"),'p',true,true,2)); define("MY_PRO_SORT",true); include("./inc.php"); $smarty->assign("cfg_web_title",implode("_",array_reverse($header_title))); smarty_end($smarty,$tpl,$cacheId); include("./include/footer.php"); ?>