query($sqlnum); $intTotalNum=$DB_web->num_rows($resultnum); if($intTotalNum>0) { //--------------------------------- //处理翻页函数参数 getParam($pcurrpage,$intLineNum,$offset,$intTotalNum,15,$currpage); $limits=" AND id in(SELECT id FROM (SELECT rownum as numrow,id FROM $Table[bli] $condition order by id asc) WHERE numrow>$offset and numrow<=($offset+$intLineNum))"; //$limits=" LIMIT $offset,$intLineNum"; $intWhileNum="10"; $bgcolor="f5f5f5"; $btnColor="#E8E8FF"; $prama=""; //翻页函数 $pages=showPages($pcurrpage,$intTotalNum,$intLineNum,$intWhileNum,$prama,$bgcolor,$btnColor); //--------------------------------- echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; $sql=$sqlnum.$limits." order by id desc"; $result=$DB_web->query($sql); $num=$offset; while($row=$DB_web->fetch_array($result)) { $num++; echo""; echo""; echo""; echo""; echo""; echo""; } echo""; echo""; echo"
 全宗号目录号文件题名
".$num."".$row[qzh]." ".$row[mlh]." ".$row[tm]."
".$pages."
"; } else { echo"
没有任何信息!
"; } } function process() { global $post_var; switch($post_var['func']) { case "result": result(); break; default: interface(); break; } } include("head.htm"); process(); include("foot.htm"); ?>