include ("config.php3");
include ("function.php3");
if($if_allow_edit=="y"){
if (!empty($passwd)) {
?>
}
}
?>
按
來回應留言  我要留言
按
來編修留言
if (!isset($show)) {$show=0;}
/*求留言總數*/
$result1 = mysql_query("select Count(*) as total from $userstable") or die(mysql_error());
$row=mysql_fetch_Array($result1);
$total=$row[total];
/*取出留言*/
$query = "select * from $userstable order by show_index desc,thread desc,sort limit $show, $limit";
$result = mysql_query($query);
$number = mysql_numrows($result);
$i = 0;
if ($total == 0){
print "
";
print "
沒有任何留言";
print "
";
}
elseif ($total > 0) {
if ($total%$limit!=0) {
$totalpage=intval($total/$limit)+1; }
else {
$totalpage=intval($total/$limit); }
$nowpage=intval($show/$limit)+1;
print "
HTML: ";
if ($htmlcode=="true"){$htmlswitch="開";} elseif ($htmlcode=="false"){$htmlswitch="關";}
print "
$htmlswitch";
print " 總留言數:$total ";
print "
/共$totalpage.頁 ";
?>
本網站上所提供的資訊不能取代實體的醫療與諮商服務,請尋求正式的醫療與諮商協助。
while ($i < $number){
$row = mysql_fetch_array($result);
$name = stripslashes($row[name]);
$email = $row[email];
$url = $row[url];
$sex = $row[sex];
$comment = stripslashes(nl2br($row[comment]));
$face = $row[face];
$sort=$row[sort];
$lev=explode(".",$sort);
$level=count($lev)-1;
$id=$row[id];
$inputdate = $row[inputdate];
if ($level == 0 OR $i==0){
print "
";
}
print "
";
include ("pages.php3");
############################版權宣告,請勿拿掉###########################
}
print "
[Design by";
print " raych studio]
";
include("../googletracking.php");
print "";
?>