">


\n"; if($article[0]["canreply"] == 1){ if(!isset($_GET["offset"])){ $offset = 0; }else{ $offset = $_GET["offset"]; } $limit = 10; $total = getResult("select count(*) as total from `commant` where articleid='$id'"); $pagemsg = getPage($total[0]["total"], $offset, $limit, "article.php?id=$id", $pre_msg="上一頁", $next_msg="下一頁"); $commant = getResult("select * from `commant` where articleid='$id' order by id desc limit $offset, $limit"); if(isset($commant)){ echo "\n"; } for($i=0; $i\n"; /* if($showcommant == $commant[$i]["id"]){ echo ""; } */ echo "\n"; echo "\n"; } if(isset($commant)){ echo ""; } ?>
嘉賓留言嘉賓名稱回覆日期
".$commant[$i]["title"]."".$commant[$i]["username"]."".date("d/m/Y", $commant[$i]["time"])."
".$commant[$i]["content"]."
"; // 20050709 (phase2), just use html table to format, nl2br, add url2Href, add icon //if(strlen($commant[$i]["content"]) > 75){ //for($j=0; $j"; //} //echo nl2br($new_str); //}else{ for ($j=1;$j<=63;$j++) $commant[$i]["content"] = str_replace ("[s".$j."]", "", $commant[$i]["content"]); echo nl2br (url2Href($commant[$i]["content"])); //} echo "".$commant[$i]["username"]."".date("d/m/Y", $commant[$i]["time"])."

".$pagemsg."

.html">
姓名:
Email:
內容:
心情: 按圖加入公仔