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

📄 post_newthread.htm

📁 论坛软件系统亦称电子公告板(BBS)系统
💻 HTM
📖 第 1 页 / 共 2 页
字号:
{template header}
<div class="subtable nav" style="width: {TABLEWIDTH}">
<a href="$indexname">$bbname</a> $navigation &raquo; {lang post_newthread}
</div><br>

<!--{if isset($trade) && $allowposttrade || isset($activity) && $allowpostactivity}-->
	<script type="text/javascript" src="include/calendar.js"></script>
<!--{/if}-->
<script type="text/javascript">
var postminchars = parseInt('$minpostsize');
var postmaxchars = parseInt('$maxpostsize');
var disablepostctrl = parseInt('$disablepostctrl');
var typerequired = parseInt('$forum[threadtypes][required]');
var bbinsert = parseInt('$bbinsert');
function checklength(theform) {
	var message = bbinsert && wysiwyg ? html2bbcode(getEditorContents()) : theform.message.value;
	var showmessage = postmaxchars != 0 ? '{lang board_allowed}: ' + postminchars + ' {lang lento} ' + postmaxchars + ' {lang bytes}' : '';
	alert('\n{lang post_curlength}: ' + message.length + ' {lang bytes}\n\n' + showmessage);
}
function validate(theform, previewpost) {
	var message = bbinsert && wysiwyg ? html2bbcode(getEditorContents()) : theform.message.value;
	if (theform.typeid && theform.typeid.options[theform.typeid.selectedIndex].value == 0 && typerequired) {
		alert("{lang post_type_isnull}");
		return false;
	} else if (theform.subject.value == "" || message == "") {
		alert("{lang post_subject_or_message_isnull}");
		return false;
	} else if (theform.subject.value.length > 80) {
		alert("{lang post_subject_toolong}");
		theform.subject.focus();
		return false;
	}<!--{if isset($trade) && $allowposttrade}--> else if (theform.seller.value == "") {
		alert("{lang trade_alipay_null}");
		theform.seller.focus();
		return false;
	} else if (theform.item_name.value == "") {
		alert("{lang post_trade_goodsname_null}");
		theform.item_name.focus();
		return false;
	} else if (theform.item_price.value == "") {
		alert("{lang post_trade_price_null}");
		theform.item_price.focus();
		return false;
	} else if (theform.item_locus.value == "") {
		alert("{lang trade_addr_null}");
		theform.item_locus.focus();
		return false;
	}<!--{elseif isset($activity) && $allowpostactivity}--> else if (theform.activityclass.value == "") {
		alert("{lang activity_sort_null}");
		theform.activityclass.focus();
		return false;
	} else if ($('starttimefrom_0').value == "" && $('starttimefrom_1').value == "") {
		alert("{lang activity_fromtime_null}");
		return false;
	} else if (theform.activityplace.value == "") {
		alert("{lang activity_addr_null}");
		theform.activityplace.focus();
		return false;
	}<!--{elseif isset($reward) && $allowpostreward}--> else if (theform.rewardprice.value == "") {
		alert("{lang reward_credits_null}");
		theform.rewardprice.focus();
		return false;
	}
	<!--{/if}-->
	if (!disablepostctrl && ((postminchars != 0 && message.length < postminchars) || (postmaxchars != 0 && message.length > postmaxchars))) {
		alert("{lang post_message_length_invalid}\n\n{lang post_curlength}: "+message.length+" {lang bytes}\n{lang board_allowed}: "+postminchars+" {lang lento} "+postmaxchars+" {lang bytes}");
		return false;
	}
	if (!previewpost) {
		theform.topicsubmit.disabled = true;
	}
	theform.message.value = message;
	return true;
}
</script>

{template post_preview}

<form method="post" id="postform" action="post.php?action=newthread&fid=$fid&extra=$extra&topicsubmit=yes" $enctype onSubmit="return validate(this)">
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}">
<input type="hidden" name="isblog" value="$isblog">

<div class="spaceborder" style="width: {TABLEWIDTH}">
<table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%">
<tr>
<td colspan="2" class="header"><a href="member.php?action=credits&view=forum_post&fid=$fid" target="_blank"><img src="{IMGDIR}/credits.gif" alt="{lang credits_policy_view}" align="right" border="0" /></a>{lang post_newthread}</td>
</tr>

<!--{if $discuz_uid}-->
	<tr><td class="altbg1"><span class="bold">{lang username}</span></td>
	<td class="altbg2">$discuz_userss <span class="smalltxt">[<a href="$link_logout">{lang member_logout}</a>]</span></td>
	</tr>
<!--{/if}-->

<!--{if $fromxspace}-->
	<tr>
	<td class="altbg1"><span class="bold">{lang supe_target_forum}</span></td>
	<td class="altbg2">
	<select name="fid" id="fid" onchange="window.location='post.php?action=newthread&itemid=$itemid&fid='+this.options[this.selectedIndex].value">
	$forumselect
	</select><td></tr>
<!--{else}-->
<input type="hidden" name="fid" id="fid" value="$fid">
<!--{/if}-->



<!--{if $allowsetreadperm}-->
	<tr>
	<td class="altbg1"><span class="bold">{lang readperm_thread}</span></td>
	<td class="altbg2"><input type="text" name="readperm" size="6" value="$readperm"> <span class="smalltxt">({lang post_zero_is_nopermission})</span></td>
	</tr>
<!--{/if}-->

<!--{if $maxprice && !isset($reward) && !isset($poll) && !isset($trade) && !isset($activity)}-->
	<tr>
	<td class="altbg1"><span class="bold">{lang price}</span>({$extcredits[$creditstrans][title]})</td>
	<td class="altbg2"><input type="text" name="price" size="6" value="$price"> <span class="smalltxt">{$extcredits[$creditstrans][unit]} ({lang post_price_comment}<!--{if $maxincperthread}-->{lang post_price_income_comment}<!--{/if}--><!--{if $maxchargespan}-->{lang post_price_charge_comment}<!--{/if}-->)</span>
	{lang post_price_free_comment}
	</td>
	</tr>
<!--{/if}-->

<!--{if isset($reward) && $allowpostreward}-->
	<input type="hidden" name="reward" value="yes">
	<tr>
	<td class="altbg1"><span class="bold">{lang reward_price}</span><!--{if !empty($extcredits[$creditstrans][title])}-->({$extcredits[$creditstrans][title]})<!--{/if}--></td>
	<td class="altbg2"><input onkeyup="getrealprice(this.value)" type="text" name="rewardprice" size="6" value="$minrewardprice"> <span class="smalltxt">
	{lang reward_tax_after}: <span id="realprice">0</span>  {$extcredits[$creditstrans][unit]} ({lang reward_low} $minrewardprice {$extcredits[$creditstrans][unit]}<!--{if $maxrewardprice > 0}--> - $maxrewardprice {$extcredits[$creditstrans][unit]}<!--{/if}--></span>)
	</td>
	</tr>
	<script type="text/javascript">
		$('realprice').innerHTML = Math.ceil($('postform').rewardprice.value * ( 1 + $creditstax));
		function getrealprice(price){
			if(!price.search(/^\d+$/) ) {
				n = Math.ceil(parseInt(price) + price * $creditstax);
				if(price < $minrewardprice || ($maxrewardprice > 0 && price > $maxrewardprice)) {
					$('realprice').innerHTML = '<b>{lang reward_price_bound}</b>';
				} else {
					$('realprice').innerHTML = n;
				}
			}else{
				$('realprice').innerHTML = '<b>{lang input_invalid}</b>';
			}
		}
	</script>
<!--{/if}-->

<tr>
<td class="altbg1" width="20%"><span class="bold"><!--{if isset($activity) && $allowpostactivity}-->{lang activity_name}<!--{else}-->{lang subject}<!--{/if}--></span></td>
<td class="altbg2">$typeselect <input type="text" name="subject" id="subject" size="45" value="$subject" tabindex="3"></td>
</tr>

<!--{if isset($poll) && $allowpostpoll}-->
	<input type="hidden" name="poll" value="yes">
	<tr><td class="altbg1"><span class="bold">{lang poll_days_valid}</span></td><td class="altbg2"><input type="text" name="expiration" value="0" size="6" tabindex="4"> <span class="smalltxt"> ({lang post_zero_is_nopermission})</span></td></tr>
	<tr>
	<td class="altbg1" valign="top"><span class="bold">{lang post_poll_options}</span><br>
	{lang post_poll_comment} $maxpolloptions<br><br>
	<input class="checkbox" type="checkbox" name="visiblepoll" value="1"> {lang poll_submit_after}<br>
	<input class="checkbox" type="checkbox" name="multiplepoll" value="1" onclick="this.checked?$('maxchoicescontrol').style.display='':$('maxchoicescontrol').style.display='none';"> {lang post_poll_allowmultiple}<br>
	<span id="maxchoicescontrol" style="display: none">{lang poll_max_options}: <input type="text" name="maxchoices" value="$maxpolloptions" size="5"><br></span>
	</td><td class="altbg2">
	<textarea rows="8" name="polloptions" style="width: 600px; word-break: break-all" tabindex="5">$polloptions</textarea></td>
	</tr>
<!--{elseif isset($trade) && $allowposttrade}-->
	<input type="hidden" name="trade" value="yes">
	<tr>
	<td class="altbg1"><span class="bold">{lang post_trade_seller}</span></td>
	<td class="altbg2"><input type="text" name="seller" size="30" value="$seller"></td>
	</tr>
	<tr>
	<td class="altbg1"><span class="bold">{lang post_trade_name}</span></td>
	<td class="altbg2"><input type="text" name="item_name" size="30" value="$item_name"></td>
	</tr>
	<tr>
	<td class="altbg1"><span class="bold">{lang post_trade_price}</span></td>
	<td class="altbg2"><input onkeyup="getrealtax(this.value)" type="text" name="item_price" size="30" value="$item_price"> <!--{if $mintradeprice && $maxtradeprice}-->{lang tarde_price_bound} $mintradeprice {lang payment_unit} - $maxtradeprice {lang payment_unit}<!--{else}-->{lang trade_min_price} $mintradeprice {lang payment_unit}<!--{/if}-->
	<!--{if $ec_commision && $tradetaxs}-->
		 ({lang trade_procedure_price}: <!--{if $tradetaxtype == 2}-->$tradetaxs%, <span id="realtax">0</span> {lang payment_unit}<!--{else}--><span id="realtax">$tradetaxs</span> {lang payment_unit}<!--{/if}-->)
	<!--{else}-->
		<span id="realtax"></span>
	<!--{/if}-->
	</td>
	</tr>

⌨️ 快捷键说明

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