ls=50 name=content rows=6></TEXTAREA> </TD></TR>
<TR>
<TD> </TD>
<TD><INPUT name=submit onclick="return checkSubmit()" type=submit value=" 发 表 ">
<INPUT name=reset type=reset value=" 清 除 "> </TD></TR>
</FORM>
<TR>
<TD colSpan=2><BR><BR><FONT color=#797979>
<LI>本主题最后 5 个帖子 (按发帖时间倒序排列)</FONT></LI></TD></TR></TBODY></TABLE>
<TABLE align=center bgColor=#000000 border=0 cellPadding=4 cellSpacing=1
width=100%>
<TBODY>
<TR bgColor=#666666>
<TD width="10%"><FONT color=#ffffff>作 者</FONT></TD>
<TD width="90%"><FONT color=#ffffff>内 容</FONT></TD></TR>
<?php
$query = "select * from guestbook where main_id=".$theme_id." or id=".$theme_id." order by time_open DESC limit 5 ";
$res = mysql_query($query);
function TdBackColor() {
static $ColorStr;
if ($ColorStr=="#ededed") {
$ColorStr="#dedede";
} else {
$ColorStr="#ededed";
}
return($ColorStr);
}
for ($i=1;$i<=5;$i++)
{$row = @mysql_fetch_array($res);
if (!$row) break;
$ColorStr=TdBackColor();
echo "<TR bgColor=".$ColorStr.">";
echo "<TD vAlign=top>".$row['name']."</td>";
$content= str_replace ( "mysinglequotes","'",$row['content']);
echo "<td>".$content."</td></tr>";
}
?>
</TBODY></TABLE>
</TBODY></TABLE>
</FORM>
</html>
【本文版权归作者与奥索网共同拥有,如需转载,请注明作者及出处】
上一页 [1] [2]