一个Java网络OA办公系统。安装非常方便
源代码在线查看: readbbs.jsp
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);
%>
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>
发布人
发布时间
正文
ResultSet rs2=stmt.executeQuery("SELECT * from bbs where topicid='"+rs.getString("id")+"'");
int ll=2;
while(rs2.next())
{
%>
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>
回复人
回复时间
回复内容
}%>
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
}
}
//-->