getpath($getpath); $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]; $p_no=$page_count/20; ?> <?=$getpath?>
Results of about < Prev "; } else echo ""; echo "[".($i+1)."]"; echo ""; echo " "; } ?> Next >
    $value) { $test = explode(",",$value[2]); $arTyID = $test[0]; echo "
  • "; echo "

    ".str_cut($value[1],30)."

    "; echo "
    "; echo "
    "; echo ""; echo ""; echo ""; echo "

    "; echo str_cut($value[4],90); echo "

    "; echo "
    "; echo "
    "; echo "
  • "; } ?>
$length){ //处理标题,太长用……表示 for($i=0; $i < $length; $i++){ if (ord($str_cut[$i]) > 128){ $i=$i+2; } } $str_cut = substr($str_cut,0,$i); $str_cut=$str_cut."..."; } return $str_cut; } ?>