?? readbbs.jsp
字號(hào):
<%@ page contentType="text/html;charset=gb2312" %>
<%@ include file="top.jsp"%>
<TABLE id=Table1 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR id=main_section vAlign=top>
<TD>
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR >
<TD class=welcomeleft id=left_pane vAlign=top width=155 >
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 background=../images/back.gif height=586>
<TBODY>
<TR>
<TD valign=top>
<%@ include file="bbs_mainmenu.jsp"%>
</TD></TR>
</TBODY></TABLE>
</TD><TD id=right_pane valign=top background=../images/adminbodybg6.gif>
<br>
<!----------------------------------------->
<%
int id = Integer.parseInt((String)request.getParameter("id"));
rs=stmt.executeQuery("SELECT * from bbs where id="+id);
while(rs.next())
{
String sql2="update bbs set readnum=(readnum+1) where id="+id;
stmt.executeUpdate(sql2);
%>
<TABLE id=Table2 cellSpacing=0 cellPadding=0 width="95%" border=0 align=center>
<TBODY>
<TR>
<TD vAlign=top height=20 ></TD>
</TR>
</TBODY>
</TABLE>
<TABLE id=Table2 cellSpacing=0 cellPadding=0 width="95%" border=0 align=center>
<TBODY>
<TR><TD class=article-title vAlign=bottom>
<IMG src="../images/tpdl.gif"><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: larger"><%=rs.getString("title")%></SPAN>
</TD><TD class=article-title vAlign=bottom align=right><%if(((String) session.getAttribute("systemop")).compareTo("1")==0){%><%if(Integer.parseInt((String)rs.getString("status"))==0){%><a href=bookstatus.jsp?id=<%=rs.getString("id")%>&status=1><img src=../images/d_top.gif border=0 title="置頂操作"></a><%}else{%><a href=bookstatus.jsp?id=<%=rs.getString("id")%>&status=0><img src=../images/d_bottom.gif border=0 title="解除置頂操作"></a><%}%> <a href=# onclick="if (confirm('確實(shí)要?jiǎng)h除此條記錄嗎?')) window.location='delbbs.jsp?id=<%=rs.getString("id")%>'"><img src=../images/delete.gif border=0 title="刪除帖子"></a> <%}%></td>
</TR>
</TBODY>
</TABLE>
<TABLE class=article-page borderColor=red cellSpacing=0 cellPadding=0 width="95%" align=center border=0 >
<TBODY>
<TR>
<TD class=article-page-body width="100%" colSpan=2 height="100%">
<TABLE borderColor=blue height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top>
<TABLE
style="BORDER-RIGHT: thin solid; BORDER-TOP: thin solid; FONT-SIZE: x-small; BORDER-LEFT: thin solid; BORDER-BOTTOM: thin solid; FONT-FAMILY: Verdana; HEIGHT: 66px" cellSpacing=0 cellPadding=2 width="100%" border=0>
<TBODY>
<TR>
<TD style="WIDTH: 88px; HEIGHT: 20px" vAlign=top>發(fā)布人</TD>
<TD vAlign=top><SPAN ><a href=user.jsp?username=<%=rs.getString("fbren")%>><%=rs.getString("fbren")%></a></SPAN></TD>
</TR>
<TR>
<TD style="WIDTH: 88px" vAlign=top>發(fā)布時(shí)間</TD>
<TD vAlign=top><%=rs.getString("fbtime")%></TD></TR>
<TR height=160>
<TD style="WIDTH: 88px" vAlign=top>正文</TD>
<TD vAlign=top bgcolor=f3f3f3><%=rs.getString("content")%></TD></TR></TBODY></TABLE>
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE id=Table2 cellSpacing=0 cellPadding=0 width="95%" border=0 align=center>
<TBODY>
<TR>
<TD vAlign=top height=10 ></TD>
</TR>
</TBODY>
</TABLE>
</BODY></HTML>
<%
ResultSet rs2=stmt.executeQuery("SELECT * from bbs where topicid='"+rs.getString("id")+"'");
int ll=2;
while(rs2.next())
{
%>
<TABLE class=article-page borderColor=red cellSpacing=0 cellPadding=0 width="95%" align=center border=0 >
<TBODY>
<TR>
<TD class=article-page-body width="100%" colSpan=2 height="100%">
<TABLE borderColor=blue height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top>
<TABLE
style="BORDER-RIGHT: thin solid; BORDER-TOP: thin solid; FONT-SIZE: x-small; BORDER-LEFT: thin solid; BORDER-BOTTOM: thin solid; FONT-FAMILY: Verdana; HEIGHT: 66px" cellSpacing=0 cellPadding=2 width="100%" border=0>
<TBODY>
<TR>
<TD style="WIDTH: 88px; HEIGHT: 20px" vAlign=top>回復(fù)人</TD>
<TD vAlign=top><SPAN ><a href=user.jsp?username=<%=rs2.getString("fbren")%>><%=rs2.getString("fbren")%></a></SPAN></TD></TR>
<TR>
<TD style="WIDTH: 88px" vAlign=top>回復(fù)時(shí)間</TD>
<TD vAlign=top><%=rs2.getString("fbtime")%></TD></TR>
<TR height=160>
<TD style="WIDTH: 88px" vAlign=top>回復(fù)內(nèi)容</TD>
<TD vAlign=top bgcolor=f3f3f3><%=rs2.getString("content")%></TD></TR></TBODY></TABLE>
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<%ll++;
}%>
<form name="form1" method="post" action="replybbsok.jsp" onSubmit="return check();">
<TABLE style="BORDER-RIGHT: thin solid; BORDER-TOP: thin solid; FONT-SIZE: x-small; BORDER-LEFT: thin solid; BORDER-BOTTOM: thin solid; FONT-FAMILY: Verdana; HEIGHT: 66px" cellSpacing="0" cellPadding="2" width="57%" border="0" align=center>
<TR>
<TD >
<input name=id value=<%=rs.getString("id")%> type=hidden>
<input name=title value="Re:<%=rs.getString("title")%>" type=hidden>
<textarea name="content" cols="50" rows="1" style="display:none"></textarea>
<OBJECT id=doc_html style="LEFT: 0px; TOP: 0px" data=webedit/editor.htm width=100% height=220 type=text/x-scriptlet VIEWASTEXT>
</OBJECT>
<div align=right><input type="submit" name="dd" value="回復(fù)" class="pushbutton"></div>
</TD>
</TR>
</TABLE>
</form>
<script language=javascript>
<!--
function check()
{
document.form1.content.value=document.form1.doc_html.value
if (document.form1.content.value==""){
window.alert("請(qǐng)輸入回復(fù)內(nèi)容!")
document.form1.doc_html.focus()
return false
}
}
//-->
</script>
<%}%>
<!----------------------------------------->
</TD></TR></TBODY></TABLE></TD></TR>
</TBODY>
</table>
<%@ include file="end.jsp"%>
</BODY>
</HTML>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -