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

📄 dispbbs.jsp

📁 BBS 论坛系统 使用JSP struts hibernate spring等技术 全部的源码
💻 JSP
📖 第 1 页 / 共 2 页
字号:
	out.println("<td width=\"40%\" valign=top><span style=\"LINE-HEIGHT: 200%;\">"+voteString+"</span></td></tr>");
	voteString="";
	if("".equals(userName))
		out.println("<tr><td colSpan=2><br><font color=#990000>您还没有登陆,不能进行投票。</font></td>");
	else
	if (theVote.getUserSign(userName))
	out.println("<tr><td colSpan=2><br><font color=#990000>您已经投过票了,请看结果吧。</font></td>");
	else
	out.println("<tr><td colSpan=2><br><input type=submit name=Submit value='投 票'></td>");
	
	out.println("</form>");
	out.println("</tr></table>");
	
	}
	catch(Exception e){
		e.printStackTrace();
		out.println(e.getMessage());
	}
}


	if (theMSG.getSignFlag())
	if (!"".equals(theUser.getSign()))
		out.println("<p><div align='right'>----------------------------------------------<br><font color=red>"+theUser.getSign()+"</font></div>");
	out.println("</font> </td><td width=16> </td></tr></table></td></tr><tr>"+ 
			"<td class=bottomline bgcolor="+bgcolor+" valign=bottom> "+
            "<hr width=100% size=1 color=#777777>"+
            "<table width=100% cellpadding=0 cellspacing=0><tr><td align=left valign=bottom> ");
	if (theUser.getUserName().equals(userName)||forumMaster||master)
			out.println("&nbsp; <a href=editannounce.jsp?forumID="+forumID+"&rootID="+rootID+"&announceID="+theMSG.getAnnounceID()+"><img src=pic/edit.gif border=0 alt=编辑这个贴子></a>");
	out.println("</td><td align=left valign=bottom> 发贴时间: "+theMSG.getDateAndTime()+" </td>"+
			"<td align=left valign=bottom> <img src=pic/ip.gif border=0 width=13 height=15 alt=\"\">  "); 
	if (("0").equals(ipFlag)) {
		if (forumMaster||master) {
		out.println(theMSG.getUserIP());
		}
		else{
        	out.println("已设置为保密!");
		
		}
	}
	else
		out.println("已设置为保密!");
		
        
	out.println("</td><td align=right nowarp valign=bottom width=110>");
	if ((forumMaster&&theForum.getForumMaster().indexOf(userName)>-1)||master){
		if (theMSG.getAnnounceID()!=rootID)				
		out.println("<a href=admin_postings.jsp?action=delmsg&forumID="+forumID+"&announceID="+theMSG.getAnnounceID()+"&rootID="+rootID+"&username="+userName+" title=注意:本操作将删除单个贴子,不能恢复><img src=pic/delete.gif border=0></a> ");
		
		out.println("<a href=admin_postings.jsp?action=copy&forumID="+forumID+"&announceID="+theMSG.getAnnounceID()+"&rootID="+rootID+" title=复制单个贴子到别的版面><img src=pic/copy.gif border=0></a>  ");
		if (!theMSG.getIsBest())
			out.println("<a href=admin_postings.jsp?action=isbest&forumID="+forumID+"&announceID="+theMSG.getAnnounceID()+"&rootID="+rootID+" title=将单个贴子加入精华><img src=pic/jing.gif border=0></a>" );
		else
			out.println("<a href=admin_postings.jsp?action=nobest&forumID="+forumID+"&announceID="+theMSG.getAnnounceID()+"&rootID="+rootID+" title=解除本贴子精华状态><img src=pic/jing.gif border=0></a>" );
	}	out.println("</td><td align=right valign=bottom width=4> </td></tr></table>"+
			"<img src=\"\" width=0 height=4><BR></td></tr></table></td>"+
			"<td bgcolor="+tableBackColor+" valign=middle width=1 height=24> </td></tr></table>");
		out.println("<table cellpadding=0 cellspacing=0 border=0 width=\"95%\" bgcolor="+tableBackColor+" align=center>"+
			"<tr><td height=1> </td></tr></table>");
			
	 }
	 
  	int n;
  	if(totalMSGNum%perPage==0)
     		n= totalMSGNum/perPage;
  	else
     		n= totalMSGNum/perPage+1;
  	
	out.println("<table border=0 cellpadding=0 cellspacing=3 width=\"95%\" align=center>"+
			"<tr><td valign=middle nowrap>"+
			"<span class=smallFont>页次:<strong>"+Page+"</strong>/<strong>"+n+"</strong>页"+
			"每页<strong>"+perPage+"</strong> 本主题贴数<strong>"+totalMSGNum+"</strong></td>"+
			"<td valign=middle nowrap><div align=right><p>分页: ");
			
	   for (int p=1;p<n+1;p++) 
	       	if (p==Page)
	       	  	out.println("<font color=gray>[<b>"+p+"</b>]</font> ");
			else
			out.println("<a href='dispbbs.jsp?forumID="+forumID+"&rootID="+rootID+"&announceID="+topicMSG.getAnnounceID()+"&Page="+p+"&skin="+1+"'>[<b>"+p+"</b>]</a>   ");
	
	out.println("</p></div></td></tr></table>");
%>
<table cellpadding=0 cellspacing=0 border=0 width="95%" align=center>
	<tr bgcolor=<%=tableTitleColor%>><td align=left width=90% valign=middle> <font color=<%=tableFontColor%>>&nbsp;<b>*快速回复</b>:<%=topicMSG.getTopic()%></font></td>
			<td width=10% align=right valign=middle height=24> <a href=#top><img src=pic/gotop.gif border=0><font color=<%=tableFontColor%>>顶端</font></a>&nbsp;</td></tr></table>

<TABLE cellSpacing=1 cellPadding=1 width=95% border=0 align=center>
			<TBODY> <TR bgColor=<%=tableBackColor%>><TD vAlign=top colSpan=3> 
			<TABLE cellSpacing=0 cellPadding=3 width=100% bgColor=<%=tableTitleColor%> border=0>
			<form action=SaveReAnnounce.jsp?method=fastreply&forumID=<%=forumID%> method=POST  name=frmAnnounce onSubmit=submitonce(this)>
			<input type=hidden name=parentID value=<%=topicMSG.getAnnounceID()%>>
			<input type=hidden name=rootID value=<%=rootID%>>
			<INPUT TYPE=hidden name=forumType value=<%=theForum.getForumType()%>>
			<TBODY><TR bgColor=<%=tableBodyColor%>><TD noWrap width=175>你的用户名:</TD>
            <TD><INPUT maxLength=25 size=15 value="<%=userName%>" name="userName">
            &nbsp;&nbsp; <A href=reg.jsp>还没注册?</A> 密码: 
            <INPUT type=password maxLength=13 size=15 value="<%=userPassword%>" name="userPassword">
            &nbsp;&nbsp; <A href=lostpass.jsp>忘记密码?</A> </TD></TR>
			<TR bgColor=<%=aTableBodyColor%>> <TD vAlign=top noWrap><b>内容</b><br>
            <li>HTML标签: 
	<%if(!theForum.getStrAllowHTML())
		out.println("不可用"); 
	else
		out.println("允许"); 

	out.println("<li>UBB标签:"); 
	if(!theForum.getStrAllowForumCode())
		out.println("不可用 ");
	else
		out.println("允许");
	
	out.println("<li>贴图标签: ");
	if (!theForum.getStrIcons())
		out.println("不可用");
	else
		out.println("允许");
	
	out.println("<li>Flash标签:");
	if (!theForum.getStrFlash())
		out.println("不可用");
	else
		out.println("允许");
	
	out.println("<li>表情字符转换:");
	if (!theForum.getStrIMGInPosts())
		out.println("不可用");
	else
		out.println("允许");
	
	out.println("<li>上传图片:");
	if ("0".equals(uploadPic))
		out.println("不可用");
	else
		out.println("允许");
%>	
<li>最多"<%=Integer.parseInt(announceMaxBytes)/1024%>"KB </TD><TD> 
			<TEXTAREA name=content cols=80 rows=6 wrap=VIRTUAL title=可以使用Ctrl+Enter直接提交贴子  onkeydown=ctlent()></TEXTAREA>
            </TD></TR><TR bgColor=<%=tableBodyColor%>><TD noWrap> 
			<INPUT type=checkbox value=0 name=emailFlag>
            邮件回复 <INPUT type=checkbox CHECKED value=1 name=signFlag>
            显示签名 </TD><TD width="100%"> 
            <input type=Submit value=OK!发表我的回应帖子 name=Submit>
            &nbsp;<input type=reset name=Clear value=清空内容!>
            [<font color=&alertFontColor&>Ctrl+Enter直接提交贴子</font>] </TD>
			</TR></FORM></TBODY></TABLE></TD></TR> </TBODY> </TABLE>

<%
	
if ((forumMaster&&theForum.getForumMaster().indexOf(userName)>-1)||master)  {
		out.println( "<TABLE cellSpacing=0 cellPadding=0 width=\""+tableWidth+"\" border=0 align=center>"+
				"<tr valign=center> <td width =100% align=right><font color="+bodyFontColor+"> ");
				if(!topicMSG.getLockTopic()){
					out.println("<a href=admin_postings.jsp?action=lock&forumID="+theForum.getForumID()+"&announceID="+topicMSG.getAnnounceID()+"&rootID="+topicMSG.getRootID()+" title=锁定本主题><font color="+bodyFontColor+">锁定</font></a> ");
				}
				else{
					out.println("<a href=admin_postings.jsp?action=unlock&forumID="+theForum.getForumID()+"&announceID="+topicMSG.getAnnounceID()+"&rootID="+topicMSG.getRootID()+" title=将本主题解开锁定><font color="+bodyFontColor+">解锁</font></a>");
				}
				out.println("  | <a href=admin_postings.jsp?action=deltopic&forumID="+theForum.getForumID()+"&announceID="+topicMSG.getAnnounceID()+"&rootID="+topicMSG.getRootID()+"&username="+response.encodeURL(topicMSG.getUserName())+" title=注意:本操作将删除本主题所有贴子,不能恢复><font color="+bodyFontColor+">删除</font></a>"+ 
				"  | <a href=admin_postings.jsp?action=move&forumID="+theForum.getForumID()+"&announceID="+topicMSG.getAnnounceID()+"&rootID="+topicMSG.getRootID()+" title=移动主题><font color="+bodyFontColor+">移动</font></a>  |  ");
				
	if (!topicMSG.getIsTop()) {
		out.println( "<a href=admin_postings.jsp?action=top&forumID="+theForum.getForumID()+"&announceID="+topicMSG.getAnnounceID()+"&rootID="+topicMSG.getRootID()+" title=将本主题固顶><font color="+bodyFontColor+">固顶</font></a>");
	}
	else{
		out.println( "<a href=admin_postings.jsp?action=untop&forumID="+theForum.getForumID()+"&announceID="+topicMSG.getAnnounceID()+"&rootID="+topicMSG.getRootID()+" title=将本主题固顶状态解除><font color="+bodyFontColor+">解固</font></a>");
	}
	out.println( "  | <a href=\"admin_boardaset.jsp?forumID="+theForum.getForumID()+"\"><font color="+bodyFontColor+">发布公告</font></a>  | <a href=\"admin_alldel.jsp?forumID="+theForum.getForumID()+"&action=delall\"><font color="+bodyFontColor+">批量删除</font></a>");
	out.println( "</font></td></tr></table>");
}

%>
<%	
	}
	catch(Exception e){
	e.printStackTrace();
	//out.println("错误请求!");
	}

%>

<script language=javascript>
<!--
ie = (document.all)? true:false
if (ie){
function ctlent(eventobject){if(event.ctrlKey && window.event.keyCode==13){this.document.frmAnnounce.submit();}}
}
//-->
</script>
 

⌨️ 快捷键说明

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