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

📄 article.jsp

📁 一个不错的bbs论坛系统.对初学者很有帮助
💻 JSP
字号:
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="comm/header.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>论坛帖子</title>
<script language="JavaScript">
  function menu(){
    var url = document.jump.jumpcf.options[document.jump.jumpcf.selectedIndex].value;
    location.href = url;
  }

	function bbimg(o){ 
	  var zoom=parseInt(o.style.zoom, 10)||100; 
	  zoom+=event.wheelDelta/12; 
	  if (zoom>0) o.style.zoom=zoom+'%'; 
	} 
	function addthis() { 
		var e=window.event?window.event:e;  
		var srcE=e.srcElement?e.srcElement:e.target; 
		if(!srcE) return; 
		if (String(srcE.tagName).toLowerCase()=='img'){ 
		bbimg(srcE) 
	} 
	} 
	function backthis(e){ 
		var e=window.event?window.event:e;  
		var srcE=e.srcElement?e.srcElement:e.target; 
		if(!srcE) return; 
		if ((String(srcE.tagName).toLowerCase()=='img')&&(window.event.ctrlKey)){ 
		srcE.style.zoom='100%'; 
		}
	} 
	document.onmousewheel=addthis; 
	document.onmouseout=backthis; 
	
    ie = (document.all)? true:false
    if (ie){
	 function ctlent(eventobject){
	  if(event.ctrlKey && window.event.keyCode==13){
	 	document.forms[1].subbt.disabled=true;
	 	document.forms[1].submit();
	  }
	 }
    }
  // the vote form can't do
   function checkpost(){
 	 if (document.forms[1].content.value.length <1){
		alert("帖子内容不能够为空.");
		document.forms[1].content.focus();
		return false;
	 }
	 document.forms[1].subbt.disabled=true;
	 document.forms[1].submit();
   }
</script>
<style type="text/css">
.artsize{
	line-height:20px;
 	font-size: 9pt;
 }
.code{
    font-size: 9pt;
	border: 1px dashed #B6B6B6;
	background-color: #f6f6f6;
	line-height: 18px;
	width: 98%;
	margin-left: 10px;
	align: center;
}
.quote{
    font-size: 9pt;
	border: 1px dashed #B6B6B6;
	background-color: #f6f6f6;
	line-height: 18px;
	width: 98%;
	margin-left: 10px;
	align: center;
}
</style></head><body>
   <div class="tabwidth"><yhbbs:mainHead /></div>
   <div class="tabwidth"><yhbbs:articleShow /></div>
   <div class="tabwidth"><yhbbs:forumJump /></div>
   <div class="tabwidth">
   <logic:present name="bbsuser">
    <logic:equal name="islock" value="0">
	<table class=tab1 align=center cellSpacing=0 cellPadding=0 width=100% >
		<tr height=20px>
		 <td class=tab_c><b>&nbsp;&nbsp;主  题</b></td>
		 <td class=tab_c><b><font color=#FFFFFF><bean:write name="arttitle"/></font></b></td>
		</tr>
		<tr height=40px>
		 <td class=td_tbg>上传附件或图片<br>&nbsp;&nbsp;主题帖最大允许 1000KB<br>&nbsp;&nbsp;回复帖最大允许 1000KB</td>
		 <td class=td_lt>&nbsp;<input type=button value='管理附件' disabled="true">&nbsp;
		    	<font color="#666666">暂不允许回帖上传附件</font>
		   </td></tr>
		   <tr height=80px>
		    <td class=td_tbg valign=top>
		      <br>&nbsp;<b>帖子内容格式</b><br>&nbsp;&nbsp;
			  <li>HTML标签&nbsp;&nbsp;不可用
			  <li>Yhbbs标签&nbsp;&nbsp;可用
			  <li>贴图标签&nbsp;&nbsp;可用
			  <li>字体标签&nbsp;&nbsp;可用
			  <li>Flash标签&nbsp;&nbsp;可用
		    </td>
		    <td align=left class=td_lt>
		      <html:form action="PostAction.htm" method="post">
		    	<input type=hidden name=classId value="<bean:write name="cid" />"/>
		     	<input type=hidden name=forumId value="<bean:write name="fid" />"/>
		     	<input type=hidden name=action value="replay"/>
		     	<input type=hidden name=ptitle value="<bean:write name="arttitle"/>"/>
		     	<input type=hidden name=artId value="<bean:write name="aid"/>"/>&nbsp;
		    	<textarea name=content cols=60 name=content rows=8 onkeydown=ctlent() title='可以用Ctrl+Enter发帖'></textarea><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		    	<input type=button name=subbt value=发帖 onClick="return checkpost();"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			    <input type=reset name=reset value=清除 /><br>
			  </html:form>
			 </td></tr>
	 </table><br>
	 </logic:equal>
	</logic:present>
	</div>
   <div class="tabwidth"><yhbbs:footer /></div>
</body></html>

⌨️ 快捷键说明

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