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

📄 post_editpost.htm

📁 php最好的论坛程序! php最好的论坛程序! php最好的论坛程序!
💻 HTM
📖 第 1 页 / 共 2 页
字号:
	<td class="altbg2"><input onkeyup="getrealtax(this.value)" type="text" name="item_price" size="30" value="$trade[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>
	<script type="text/javascript">
		function getrealtax(price){
			if(!price.search(/^[\d\.]+$/) ) {
				<!--{if $tradetaxtype == 2}-->n = Math.ceil(price * ($tradetaxs / 100));<!--{else}-->n = Math.ceil($tradetaxs)<!--{/if}-->
				if(price < $mintradeprice<!--{if $maxtradeprice}--> || price > $maxtradeprice<!--{/if}-->) {
					document.getElementById('realtax').innerHTML = '<b>{lang trade_price_exceed}</b>';
				} else {
					<!--{if $ec_commision && $tradetaxs}-->
						if(price > n) {
							document.getElementById('realtax').innerHTML = n;
						} else {
							document.getElementById('realtax').innerHTML = 0;
						}
					<!--{else}-->
						document.getElementById('realtax').innerHTML = '';
					<!--{/if}-->
				}
			}else{
				document.getElementById('realtax').innerHTML = '<b>{lang input_invalid}</b>';
			}
		}
		<!--{if $tradetaxtype == 2}-->document.getElementById('realtax').innerHTML = Math.ceil($trade[price] * ($tradetaxs / 100));<!--{/if}-->
	</script>
	<tr>
	<td class="altbg1">{lang post_trade_locus}:</td>
	<td class="altbg2"><input type="text" name="item_locus" size="30" value="$trade[locus]"></td>
	</tr>
	<tr>
	<td class="altbg1">{lang trade_goods_number}:</td>
	<td class="altbg2"><input type="text" name="item_number" size="30" value="$trade[amount]"></td>
	</tr>
	<tr>
	<td class="altbg1">{lang post_trade_quality}:</td>
	<td class="altbg2">
	<select name="item_quality">
	<option value="1" <!--{if $trade['quality'] == 1}-->selected<!--{/if}-->>{lang trade_new}</option>
	<option value="2" <!--{if $trade['quality'] == 2}-->selected<!--{/if}-->>{lang trade_old}</option>
	</select>
	</td>
	</tr>
	<tr>
	<td class="altbg1">{lang trade_type}:</td>
	<td class="altbg2">
	<select name="item_type">
	<option value="1" <!--{if $trade['itemtype'] == 1}-->selected<!--{/if}-->>{lang trade_type_buy}</option>
	<option value="2" <!--{if $trade['itemtype'] == 2}-->selected<!--{/if}-->>{lang trade_type_service}</option>
	<option value="3" <!--{if $trade['itemtype'] == 3}-->selected<!--{/if}-->>{lang trade_type_auction}</option>
	<option value="4" <!--{if $trade['itemtype'] == 4}-->selected<!--{/if}-->>{lang trade_type_donate}</option>
	<option value="5" <!--{if $trade['itemtype'] == 5}-->selected<!--{/if}-->>{lang trade_type_compensate}</option>
	<option value="6" <!--{if $trade['itemtype'] == 6}-->selected<!--{/if}-->>{lang trade_type_bonus}</option>
	</select>
	</td>
	</tr>
	<tr>
	<td class="altbg1" valign="top">{lang post_trade_transport}:</td>
	<td class="altbg2">
	<input type="radio" name="transport" value="virtual" <!--{if $trade['transport'] == 3}-->checked<!--{/if}--> onclick="findobj('logisticssetting').style.display='none'"> {lang post_trade_transport_virtual}<br>
	<input type="radio" name="transport" value="seller" <!--{if $trade['transport'] == 1}-->checked<!--{/if}--> onclick="findobj('logisticssetting').style.display=''"> {lang post_trade_transport_seller}
	<input type="radio" name="transport" value="buyer" <!--{if $trade['transport'] == 2}-->checked<!--{/if}--> onclick="findobj('logisticssetting').style.display=''"> {lang post_trade_transport_buyer}
	<input type="radio" name="transport" value="logistics" <!--{if $trade['transport'] == 4}-->checked<!--{/if}--> onclick="findobj('logisticssetting').style.display=''"> {lang trade_type_transport_physical}<br>
	<span id="logisticssetting" style="display:<!--{if $trade['transport'] == 3}-->none<!--{/if}-->">
	{lang post_trade_transport_mail} <input type="text" name="postage_mail" size="3" value="$trade[ordinaryfee]"> {lang payment_unit} ({lang post_trade_transport_mail_unit})<br>
	{lang post_trade_transport_express} <input type="text" name="postage_express" size="3" value="$trade[expressfee]"> {lang payment_unit} ({lang post_trade_transport_express_unit})<br>
	EMS <input type="text" name="postage_ems" size="3" value="$trade[emsfee]"> {lang payment_unit} ({lang post_trade_transport_ems_unit})<br>
	</td>
	</tr>
	<tr>
	<td class="altbg1">{lang trade_start}:</td>
	<td class="altbg2">
	<select name="closed">
	<option value="0" <!--{if $trade['closed'] == 0}-->selected<!--{/if}-->>{lang yes}</option>
	<option value="1" <!--{if $trade['closed'] == 1}-->selected<!--{/if}-->>{lang no}</option>
	</select>
	</td>
	</tr>
	<tr>
	<td class="altbg1">{lang thread_moderations_expiration}:</td>
	<td class="altbg2"><input onclick="showcalendar(event, this, false)" type="text" name="item_expiration" size="30" value="$trade[expiration]">
	<select onchange="this.form.item_expiration.value = this.value">
	<option value=''></option>
	<option value=''>{lang thread_moderations_expiration_unlimit}</option>
	<option value='$expiration_7'>{lang seven_days}</option>
	<option value='$expiration_14'>{lang fourteen}</option>
	<option value='$expiration_month'>{lang one_months}</option>
	</select>
	({lang trade_expiration_forever}) {lang sample}: <!--{eval echo date("Y-m-d", $timestamp + 86400 * 14)}--></td>
	</tr>
<!--{/if}-->

<!--{if $thread['special'] == 4 && $isfirstpost}-->
	<input type="hidden" name="activity" value="yes">
	<tr>
	<td class="altbg1">{lang activiy_sort}:</td>
	<td class="altbg2">
	<input type="text" size="45" name="activityclass" value="$activity['class']" tabindex="4">
	</td>
	</tr><tr>
	<td class="altbg1">{lang activity_starttime}:</td>
	<td class="altbg2">
	<input type="radio" value="0" name="activitytime" onclick="findobj('certainstarttime').style.display='';findobj('uncertainstarttime').style.display='none';" <!--{if !$activity['starttimeto']}-->checked<!--{/if}-->>{lang activity_specific_time}: <span id="certainstarttime" <!--{if $activity['starttimeto']}-->style="display: none"<!--{/if}-->><input onclick="showcalendar(event, this, true)" type="text" name="starttimefrom[0]" size="15" value="<!--{if !$activity['starttimeto']}-->$activity[starttimefrom]<!--{/if}-->"> {lang sample}:<!--{eval echo date("Y-m-d H:i", $timestamp + 86400)}--></span><br>
	<input type="radio" value="1" name="activitytime" onclick="findobj('certainstarttime').style.display='none';findobj('uncertainstarttime').style.display=''" <!--{if $activity['starttimeto']}-->checked<!--{/if}-->>{lang activity_bound_time}: <span id="uncertainstarttime" <!--{if !$activity['starttimeto']}-->style="display: none"<!--{/if}-->> <input onclick="showcalendar(event, this, true)" type="text" name="starttimefrom[1]" size="20" value="<!--{if $activity[starttimeto]}-->$activity[starttimefrom]<!--{/if}-->"> - <input onclick="showcalendar(event, this, true)" type="text" name="starttimeto" size="20" value="<!--{if $activity['starttimeto']}-->$activity[starttimeto]<!--{/if}-->"></span>
	</td>
	</tr><tr>
	<td class="altbg1">{lang activity_space}:</td>
	<td class="altbg2"><input type="text" name="activityplace"size="45" value="$activity['place']" tabindex="6"></td>
	</tr><tr>
	<td class="altbg1">{lang activity_payment}:</td>
	<td class="altbg2">
	<input onkeyup="checkvalue(this.value, 'costmessage')" type="text" name="cost" size="8" value="$activity['cost']" tabindex="7"> {lang payment_unit} <span id="costmessage"></span>
	</td>
	</tr><tr>
	<td class="altbg1">{lang gender}:</td>
	<td class="altbg2">
	<input type="radio" name="gender" value="0" <!--{if !$activity['gender']}-->checked<!--{/if}-->>{lang unlimited} <input type="radio" name="gender" value="1" <!--{if $activity['gender'] == 1}-->checked<!--{/if}-->>{lang male} <input type="radio" name="gender" value="2" <!--{if $activity['gender'] == 2}-->checked<!--{/if}-->>{lang female}</td>
	</tr><tr>
	<td class="altbg1">{lang activity_about_member} ({lang optional_info}):</td>
	<td class="altbg2"><input onkeyup="checkvalue(this.value, 'activitynumbermessage')" type="text" name="activitynumber" size="45" value="$activity['number']" tabindex="8"> <span id="activitynumbermessage"></span></td>
	</tr>
	<script type="text/javascript">
		function checkvalue(value, message){
			if(!value.search(/^\d+$/)) {
				findobj(message).innerHTML = '';
			} else {
				findobj(message).innerHTML = '<b>{lang input_invalid}</b>';
			}
		}
	</script>
	<tr>
	<td class="altbg1">{lang activity_totime} ({lang optional_info}):<br>{lang post_zero_is_nopermission}</td>
	<td class="altbg2"><input onclick="showcalendar(event, this, true)" type="text" name="activityexpiration" size="45" value="$activity['expiration']" tabindex="9"> {lang sample}:<!--{eval echo date("Y-m-d H:i", $timestamp + 86400)}--></td>
	</tr>
<!--{/if}-->

<!--{if $isfirstpost}-->
	<tr>
	<td class="altbg1">{lang icon}:</td><td class="altbg2"><input type="radio" name="iconid" value="0" checked> {lang none} $icons</td>
	</tr>
<!--{/if}-->

<tr>
<td class="altbg1" valign="top">
{template post_sminsert}
<input type="checkbox" name="parseurloff" id="parseurloff" value="1" $urloffcheck> {lang disable} {lang post_parseurl}<br>
<input type="checkbox" name="smileyoff" id="smileyoff" value="1" $smileyoffcheck> {lang disable} <a href="faq.php?page=messages#6" target="_blank">{lang post_smilies}</a><br>
<input type="checkbox" name="bbcodeoff" id="bbcodeoff" value="1" $codeoffcheck> {lang disable} <a href="faq.php?page=misc#1" target="_blank">{lang post_discuzcode}</a><br>
<!--{if $orig['allowhtml']}--><input type="checkbox" name="htmlon" id="htmlon" value="1" $htmloncheck> {lang enable} {lang post_html}<br><!--{/if}-->
<!--{if $allowanonymous || (!$allowanonymous && $orig['anonymous'])}--><input type="checkbox" name="isanonymous" value="1" <!--{if $orig['anonymous']}-->checked<!--{/if}-->> {lang post_anonymous}<br><!--{/if}-->
<input type="checkbox" name="usesig" value="1" $usesigcheck> {lang post_show_sig}<br>
<!--{if $isorigauthor}--><input type="checkbox" name="delete" value="1"> <b>{lang post_delpost}</b><!--{if $thread['special'] == 3}-->{lang reward_price_back}<!--{/if}--><br><!--{/if}-->
<!--{if $auditstatuson}--><input type="checkbox" name="audit" value="1"> <b>{lang auditstatuson}</b><!--{/if}-->
</td>

<td align="left" class="altbg2" valign="top">
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td class="editor">

<div id="$editorid">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
{template post_bbinsert}
<tr valign="top">
<td class="editor_controlbar"><textarea name="message" rows="10" cols="60" class="editor_textarea" style="width:100%; height:350px;" tabindex="100" id="{$editorid}_textarea" onSelect="javascript: storeCaret(this);" onClick="javascript: storeCaret(this);" onKeyUp="javascript: storeCaret(this);" onKeyDown="ctlent(event);">$postinfo[message]</textarea></td>
</tr>
</table>
<span class="smalltxt">
<div class="right"><a href="###" onclick="checklength(document.input)" class="smalltxt">[{lang post_check_length}]</a></div>
<!--{if $bbinsert}-->
	<input type="button" name="editormode" id="bbcodemode" value="{lang editor_mode_discuzcode}" onclick="switchEditorMode('$editorid', '0')">
	<input type="button" name="editormode" id="wysiwygmode" value="{lang editor_mode_wysiwyg}" onclick="switchEditorMode('$editorid', '1')">
<!--{/if}-->
</span>
</div>

</td></tr>
</table>

<br>
<!--{if $allowpostattach}-->
	{template post_attachments}
<!--{/if}-->

</td></tr></table>

<!--{if $postinfo['attachment']}-->
	<br>
	<table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
	<tr><td colspan="8" class="header">{lang attachments}</td></tr>
	<tr align="center" class="category"><td>{lang delete_check}</td><td width="30%">{lang attachment}</td><td>aid</td><td>{lang time}</td><td>{lang attachment_size}</td><td>{lang downloads}</td><td>{lang readperm}</td><td>{lang description}</td></tr>
	<!--{loop $attachments $attach}-->
		<tr align="center">
		<td class="altbg1"><input type="checkbox" name="deleteaid[]" value="$attach[aid]"></td>
		<td class="altbg2" id="attach$attach[aid]">$attach[filetype] <a href="attachment.php?aid=$attach[aid]" target="_blank">$attach[filename]</a> <a href="javascript:attachupdate('$attach[aid]')">[{lang update}]</a></td>
		<td class="altbg1"><a href="###" onclick="insertAttachTag('$attach[aid]')" title="{lang post_attachment_insert}">$attach[aid]</a></td>
		<td class="altbg2">$attach[dateline]</td>
		<td class="altbg1">$attach[filesize]</td>
		<td class="altbg2">$attach[downloads]</td>
		<td class="altbg1"><!--{if $allowsetattachperm}--><input type="text" size="3" name="attachpermnew[{$attach[aid]}]" value="$attach[readperm]"><!--{else}--><input type="text" size="3" value="$attach[readperm]" disabled><!--{/if}--></td>
		<td class="altbg2"><input type="text" size="25" name="attachdescnew[{$attach[aid]}]" value="$attach[description]"></td>
		</tr>
	<!--{/loop}-->
	<tr><td class="singleborder" colspan="8">&nbsp;</td></tr>
	<tr><td class="altbg1" colspan="8">{lang post_attachment_comment}</td></tr>
	</table>
<!--{/if}-->

<input type="hidden" name="fid" id="fid" value="$fid">
<input type="hidden" name="tid" value="$tid">
<input type="hidden" name="pid" value="$pid">
<input type="hidden" name="postsubject" value="$postinfo[subject]">
<br><center><input type="submit" name="editsubmit" value="{lang post_editpost}" tabindex="101">
<input type="button" name="previewbutton" id="previewbutton" value="{lang post_previewpost}" tabindex="102" onclick="previewpost('$editorid')">
<input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editormode">
</center>
</form>

<!--{if $bbinsert}-->
	<script type="text/javascript">Editor['$editorid'] = new wysiwygEditor('$editorid', '$editormode', '$forum[allowsmilies]');</script>
<!--{/if}-->

{template footer}

⌨️ 快捷键说明

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