include "config.php"; ?>
include "left.php"; ?>
include "j2had.php"; ?>
|
|
|
>
|
>
>
中部地區[共 echo $total;?> 筆資料] print " 頁次/共$totalpage.頁";
?> |
|
|
|
>
公司名稱 |
class=aa>聯絡電話 |
地區 |
線上報價 |
公司簡介 |
評價 |
while ($i < $num){
$row = mysql_fetch_array($result);
$id=$row["id"];
$j2h1=$row["j2h1"];
$j2h3=$row["j2h3"];
$date=$row["date"];
$stop=$row["stop"];
$city=$row["city"];
$payad=$row["payad"];
$good=$row["good"];
$bad=$row["bad"];
$username=$row["username"];
$j2hmark=$good-$bad;
if($payad==1){ $tablecolor = "$color"; } else { $tablecolor = "$color3";}
echo" $j2h1 |
$j2h3 |
$city |
我要估價 |
詳細資料 |
$j2hmark |
";
$i++;
}
?>
|
$page=(isset($page))?floor($page):1;
$perPage=10; //設定分頁幾頁
$nextFirstPage=ceil($page/$perPage)*$perPage+1;
if($page+0<=$totalpage && $page+0>0){
if($page>$perPage){
$showper= $limit * ($nextFirstPage-$perPage*2-1);
echo "<<上
".$perPage."頁 ";
}
for($i=$nextFirstPage-$perPage;($i<$nextFirstPage && $i<=$totalpage);$i++){
$show1= $limit * ($i - 1) ;
if($show1==$show){
echo "[第".$i."頁] . ";
}
else{
echo "第".$i."頁 . ";
}
}
if($nextFirstPage下$nextFirstPage 頁>>";
}
}
else{
echo "沒有此頁";
}
?>
|
include "down.php"; ?>