<div id="Layer1">
<table width="552" height="264" border="0">
<%
while (rs.next()) {
Tinfo=rs.getString("title");
%>
<tr>
<td height="19" colspan="2" bgcolor='#FF99CC'>
<font size=+1> <a href=#> <%
out.println(rs.getString("title"));
%> </a> </font>
</td>
<td bgcolor='#FF99CC'>
<%
out
.println(rs.getDate("pdate") + " "
+ rs.getTime("pdate"));
%>
</td>
</tr>
<tr>
<td height="19" colspan="3">
<font size=+1> <%
out.println(rs.getString("cont"));
%> </font>
</td>
</tr>
<tr>
<td height="19" colspan="3" bgcolor='#CCFFCC'>
<font size=+1><a href=#> <%
out.println(rs.getString("leaver"));
%> </a> <%
out.println("  留言");
%> </font>
</td>
</tr>
<%
TZ++;
}
%>
<tr>
<td height="19" colspan="2">
<font size=-1>共有帖子数:<font color=blue><%=TZ%>篇</font> </font>
</td>
<td>
</td>
</tr>
<tr>
<td height="19">
</td>
<td colspan="2">
</td>
</tr>
<tr>
<td width="67" height="19">
标题:
</td>
<td colspan="2">
<label>
<%
String title="<input name='title' type='text' id='title' size='50' value='回复:"+Tinfo+"'>";
out.println(title);
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
} finally {
try {
if (stm != null) {
stm.close();
stm = null;
}
if (rs != null) {
rs.close();
rs = null;
}
if (conn != null) {
conn.close();
conn = null;
}
} catch (SQLException e) {
}
}
%>
</label>
</td>
</tr>
<tr>
<td height="115">
</td>
<td height="115" colspan="2">
<label>
<textarea name="Msg" cols="60" rows="10" id="Msg"></textarea>
</label>
</td>
</tr>
<tr>
<td height="17">
</td>
<td width="259" height="17">
</td>
<td width="204">
<label>
<input type="submit" name="Submit" value="发表帖子">
</label>
</td>
</tr>
</table>
</div>
<div id="Layer3">
<table width="1032" height="33" border="0">
<tr>
<td height="27" bgcolor="#CCCCCC"><div align="center">@2008 School:<a href="#">贴吧协议</a> </div></td>
</tr>
</table>
</div>
评论0