⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readbbs.jsp

📁 一个Java网络OA办公系统。安装非常方便
💻 JSP
字号:
<%@ 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('确实要删除此条记录吗?')) 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>发布人</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>发布时间</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>回复人</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>回复时间</TD>
                <TD vAlign=top><%=rs2.getString("fbtime")%></TD></TR>
              <TR height=160>
                <TD style="WIDTH: 88px" vAlign=top>回复内容</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="回复" 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("请输入回复内容!")
      document.form1.doc_html.focus()
      return false
    }
}
//-->
</script>

<%}%>


<!----------------------------------------->



</TD></TR></TBODY></TABLE></TD></TR>
</TBODY>
</table>






<%@ include file="end.jsp"%>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -