getpath("Traditional Trades"); $db -> execute("SELECT a.`articleID`,a.`arTitle`,a.`arTyID`,a.`zimg`,a.`arSynopsis` FROM `article` a,`articletype` at WHERE a.`arTyID` = at.`arTyID` AND at.`path` LIKE '$path%' ORDER BY a.`articleID` DESC limit $pagenum , 20"); $AllResult = $db -> fetchAll("row"); $db -> execute("select count(*) FROM `article` a,`articletype` at WHERE a.`arTyID` = at.`arTyID` AND at.`path` LIKE '$path%' "); $page = $db -> fetchAll("row"); $page_count=$page[0][0]; $page_end=($c_page+1)*20; if($page_count<$page_end) $page_end=$page_count; $page_info=($c_page*20+1)." - ".$page_end; $p_no=$page_count/20; ?> Traditional Trades
Results of about < Prev "; } else echo ""; echo "[".($i+1)."]"; echo ""; echo " "; } ?> Next >
$length){ //处理标题,太长用……表示 for($i=0; $i < $length; $i++){ if (ord($str_cut[$i]) > 128) $i++; } $str_cut = substr($str_cut,0,$i); $str_cut=$str_cut."..."; } return $str_cut; } ?>