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

📄 post_newthread.jsp

📁 论坛软件系统亦称电子公告板(BBS)系统
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<jsp:include flush="true" page="header.jsp" />
<div id="nav"><a href="${settings.indexname}">${settings.bbname}</a> ${navigation}&raquo; <c:choose><c:when test="${special == 1}">发新投票</c:when><c:when test="${special == 3}">发起悬赏</c:when><c:when test="${special == 5}">发表辩论</c:when><c:otherwise>发新话题</c:otherwise></c:choose></div>
<c:if test="${special == 4||special == 5}"><script type="text/javascript" src="include/javascript/calendar.js"></script></c:if>
<script type="text/javascript">
var postminchars = parseInt('${settings.minpostsize}');
var postmaxchars = parseInt('${settings.maxpostsize}');
var disablepostctrl = parseInt('${usergroups.disablepostctrl}');
var typerequired = parseInt('${threadtypes.required}');
var bbinsert = parseInt('${settings.bbinsert}');
var seccodecheck = parseInt('${seccodecheck?1:0}');
var secqaacheck = parseInt('${secqaacheck?1:0}');
var special = parseInt('${special}');
var isfirstpost = 1;
var allowposttrade = parseInt('${allowposttrade?1:0}');
var allowpostreward = parseInt('${allowpostreward?1:0}');
var allowpostactivity = parseInt('${allowpostactivity?1:0}');
lang['board_allowed'] = '系统限制';
lang['lento'] = '到';
lang['bytes'] = '字节';
lang['post_curlength'] = '当前长度';
lang['post_subject_and_message_isnull'] = '请完成标题或内容栏。';
lang['post_subject_toolong'] = '您的标题超过 80 个字符的限制。';
lang['post_message_length_invalid'] = '您的帖子长度不符合要求。';
lang['post_type_isnull'] = '请选择主题对应的分类。';
lang['post_reward_credits_null'] = '对不起,您输入悬赏积分。';
</script>
<jsp:include flush="true" page="post_preview.jsp" />
<form method="post" id="postform" action="post.jsp?action=newthread&fid=${fid}&page=${page}&topicsubmit=yes" enctype="multipart/form-data">
<input type="hidden" name="formhash" id="formhash" value="${formhash}" />
<input type="hidden" name="isblog" value="${isblog}" />
<input type="hidden" name="frombbs" value="1" />
<c:if test="${special>0}"><input type="hidden" name="special" value="${special}" /></c:if>
<div class="mainbox formbox">
	<span class="headactions"><a class="notabs" href="member.jsp?action=credits&view=forum_post&fid=${fid}" target="_blank">查看积分策略说明</a> </span>
	<h1><c:choose><c:when test="${special == 1}">发新投票</c:when><c:when test="${special == 3}">发起悬赏</c:when><c:when test="${special == 5}">发表辩论</c:when><c:otherwise>发新话题</c:otherwise></c:choose></h1>
	<table summary="post" cellspacing="0" cellpadding="0" id="newpost">
		<thead><tr><th>用户名</th><td><c:choose><c:when test="${jsprun_uid>0}">${jsprun_userss} [<a href="logging.jsp?action=logout&formhash=${formhash}">退出登录</a>]</c:when><c:otherwise>游客 [<a href="logging.jsp?action=login">会员登录</a>]</c:otherwise></c:choose></td></tr></thead>
		<c:if test="${seccodecheck}"><tr><th><label for="seccodeverify">验证码</label></th><td><div id="seccodeimage"></div> <input type="text" onfocus="updateseccode();this.onfocus = null" id="seccodeverify" name="seccodeverify" size="8" maxlength="4" tabindex="0" /> <em class="tips"><strong>点击输入框显示验证码</strong> 如果看不清验证码,请点图片刷新</em><script type="text/javascript">var seccodedata = [${seccodedata['width']}, ${seccodedata['height']}, ${seccodedata['type']}];</script></td></tr></c:if>
		<c:if test="${secqaacheck}"><tr><th><label for="secanswer">验证问答</label></th><td><div id="secquestion"></div> <input type="text" name="secanswer" id="secanswer" size="25" maxlength="50" tabindex="1" /><script type="text/javascript">ajaxget('ajax.do?action=updatesecqaa', 'secquestion');</script></td></tr></c:if>
		<c:if test="${special == 3&&allowpostreward}">
			<tr>
				<th>悬赏价格<c:if test="${extcredit.title!=''}">(${extcredit.title})</c:if></th>
				<td>
					<input onkeyup="getrealprice(this.value)" type="text" name="rewardprice" size="6" value="${usergroups.minrewardprice}" tabindex="2" />
					<em class="tips"> 税后支付: <span id="realprice">0</span> ${extcredit.unit} (最低 ${usergroups.minrewardprice} ${extcredit.unit}<c:if test="${usergroups.maxrewardprice>0}"> - ${usergroups.maxrewardprice} ${extcredit.unit}</c:if></em>)
				</td>
			</tr>
			<script type="text/javascript">
				$('realprice').innerHTML = parseInt($('postform').rewardprice.value) + parseInt(Math.ceil( $('postform').rewardprice.value * ${settings.creditstax} ));
				function getrealprice(price){
					if(!price.search(/^\d+$/) ) {
						n = Math.ceil(parseInt(price) + price * ${settings.creditstax});
						if(price > 32767) {
							$('realprice').innerHTML = '<b>售价不能高于 32767</b>';
						} else if(price < 1 || (0 > 0 && price > 0)) {
							$('realprice').innerHTML = '<b>售价超出范围</b>';
						} else {
							$('realprice').innerHTML = n;
						}
					}else{
						$('realprice').innerHTML = '<b>填写无效</b>';
					}
				}
			</script>
		</c:if>
		<tr>
			<th style="border-bottom: 0"><label for="subject">标题</label></th>
			<td style="border-bottom: 0">${typeselect } <input type="text" name="subject" id="subject" size="45" value="${subject}" tabindex="3"/></td>
		</tr>
		<tbody id="threadtypes"></tbody>
		<c:if test="${special==6&&allowpostvideo}">
			<tr>
				<th style="border-bottom: 0" valign="top">
					<label for="uploaddiv"><input type="radio" name="visup" value="1" checked="checked" onclick="$('uploaddiv').innerHTML = getVideoPlayer(0)">发布视频</label><br />
					<label for="recorddiv"><input type="radio" name="visup" value="0" onclick="$('uploaddiv').innerHTML = getVideoPlayer(1)">录制视频</label>
				</th>
				<td style="border-bottom: 0">
					<div id="uploaddiv"></div>
					<input type="checkbox" name="vautoplay" value="1">自动播放
					<input type="checkbox" name="vshare" value="1" checked>允许分享<br /><em>最大上限: 100M</em><br /><em>支持格式: .flv .mpg .m4v .mpeg .mpe .vod .wmv .wm .rm .rmvb .avi .asx .ra .ram .asf .3gp .mov .mp4</em>
					<input type="hidden" name="vid" id="vid" />
					<input type="hidden" name="subjectu8" id="subjectu8">
					<input type="hidden" name="tagsu8" id="tagsu8">
					<script type="text/javascript">
					function setVideoInfo(vid) {
						$('vid').value = vid;
					}
					function getVideoPlayer(isup) {
						if(!isup) {
							var s = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="351" height="30" title="aa" id="vidPlayer">';
							s += '<param name="movie" value=\'http://union.bokecc.com/flash/jsprun2/VideoDuke.swf?siteid=FFDF6D92D780353E&code=vcIaf6IBhuqgd3UpcX%2BZJYlrLtE9%2F0TmZjGDdZ%2F9XuxULQLuP4nxlwZnULc\'/>';
							s += '<param name="quality" value="high" />';
							s += '<param name="allowScriptAccess" value="always" />';
							s += '<param name="allownetworking" value="all" />';
							s += '<embed src=\'http://union.bokecc.com/flash/jsprun2/VideoDuke.swf?siteid=FFDF6D92D780353E&code=vcIaf6IBhuqgd3UpcX%2BZJYlrLtE9%2F0TmZjGDdZ%2F9XuxULQLuP4nxlwZnULc\' quality="high" allowScriptAccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="351" height="30"></embed>';
							s += '</object>';
						} else {
							var s = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="351" height="237" title="aa" id="vidPlayer">';
							s += '<param name="movie" value=\'http://union.bokecc.com/flash/jsprun2/VideoRecord.swf?siteid=FFDF6D92D780353E&code=vcIaf6IBhuqgd3UpcX%2BZJYlrLtE9%2F0TmZjGDdZ%2F9XuxULQLuP4nxlwZnULc\'/>';
							s += '<param name="quality" value="high" />';
							s += '<param name="allowScriptAccess" value="always" />';
							s += '<param name="allownetworking" value="all" />';
							s += '<embed src=\'http://union.bokecc.com/flash/jsprun2/VideoRecord.swf?siteid=FFDF6D92D780353E&code=vcIaf6IBhuqgd3UpcX%2BZJYlrLtE9%2F0TmZjGDdZ%2F9XuxULQLuP4nxlwZnULc\' quality="high" allowScriptAccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="351" height="237"></embed>';
							s += '</object>';
						}
						return s;
					}
					$('uploaddiv').innerHTML = getVideoPlayer(0);
					</script>
				</td>
			</tr>
			<tr>
				<th style="border-bottom: 0" valign="top">视频分类</th>
				<td style="border-bottom: 0" valign="top">
					<style type="text/css">
#vclassesdiv {
	list-style: none;
}

#vclassesdiv li {
	width: 80px;
	float: left;
}

⌨️ 快捷键说明

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