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

📄 post_newreply.htm

📁 php最好的论坛程序! php最好的论坛程序! php最好的论坛程序!
💻 HTM
字号:
{template header}
<div class="subtable nav" style="width: {TABLEWIDTH}">
<div class="right">&nbsp;<a href="#bottom"><img src="{IMGDIR}/arrow_dw.gif" border="0" alt="" /></a></div>
<a href="discuz.php">$bbname</a> $navigation &raquo; {lang post_newreply}
</div><br>

<script type="text/javascript">
var postminchars = parseInt('$minpostsize');
var postmaxchars = parseInt('$maxpostsize');
var disablepostctrl = parseInt('$disablepostctrl');
var bbinsert = parseInt('$bbinsert');
function checklength(theform) {
	if (bbinsert && findobj("{$editorid}_mode").value == '1') { theform.message.value = Editor['$editorid'].getEditorContents(); }
	if (postmaxchars != 0) { message = "{lang board_allowed}: "+postminchars+" {lang to} "+postmaxchars+" {lang bytes}"; }
	else { message = ""; }
	alert("\n{lang post_curlength}: "+theform.message.value.length+" {lang bytes}\n\n"+message);
}
function validate(theform, previewpost, switcheditormode) {
	if (bbinsert && findobj("{$editorid}_mode").value == '1') { theform.message.value = Editor['$editorid'].getEditorContents(); }
	if (!switcheditormode) {
		if (theform.message.value == "" && theform.subject.value == "") {
			alert("{lang post_subject_and_message_isnull}");
			return false;
		} else if (theform.subject.value.length > 80) {
			alert("{lang post_subject_toolong}");
			return false;
		}
	}
	if (!disablepostctrl && ((postminchars != 0 && theform.message.value.length < postminchars) || (postmaxchars != 0 && theform.message.value.length > postmaxchars))) {
		alert("{lang post_message_length_invalid}\n\n{lang post_curlength}: "+theform.message.value.length+" {lang bytes}\n{lang board_allowed}: "+postminchars+" {lang to} "+postmaxchars+" {lang bytes}");
		return false;
	}
	if (!switcheditormode && !previewpost) {
		theform.replysubmit.disabled = true;
	}
	return true;
}
</script>

{template post_preview}

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

<table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
<tr>
<td colspan="2" class="header"><a href="member.php?action=credits&view=forum_reply&fid=$fid" target="_blank"><img src="{IMGDIR}/credits.gif" alt="{lang credits_policy_view}" align="right" border="0" /></a>{lang post_newreply}</td>
</tr>

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

<tr>
<td class="altbg1" width="20%">{lang subject}:</td>
<td class="altbg2"><input type="text" name="subject" id="subject" size="45" value="$subject" tabindex="3">&nbsp; <span class="smalltxt">({lang optional})</span></td>
</tr>

<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 $allowhtml}--><input type="checkbox" name="htmlon" id="htmlon" value="1" $htmloncheck> {lang enable} {lang post_html}<br><!--{/if}-->
<!--{if $allowanonymous}--><input type="checkbox" name="isanonymous" value="1"> {lang post_anonymous}<br><!--{/if}-->
<input type="checkbox" name="usesig" value="1" $usesigcheck> {lang post_show_sig}<br>
<input type="checkbox" name="emailnotify" value="1" $emailcheck> {lang post_email_notify}
</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);">$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 && !$seccodecheck}-->
	{template post_attachments}
<!--{/if}-->

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

<br><center><input type="submit" name="replysubmit" value="{lang post_newreply}" 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">
<input type="hidden" name="fid" id="fid" value="$fid">
</center>
</form>

<br>
<table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
<tr class="header">
<td colspan="2">{lang post_thread_review}</td>
</tr>

<!--{if $thread['replies'] > $ppp}-->
	<tr class="altbg1"><td colspan="2" valign="top" width="20%">{lang post_replies_toolong}</td></tr>
<!--{else}-->
	<!--{loop $postlist $post}-->
		<tr class="$post[thisbg]">
		<td rowspan="2" valign="top" width="20%"><span class="bold"><!--{if $post['author'] && !$post['anonymous']}-->$post[author]<!--{else}-->{lang anonymous}<!--{/if}--></span><br><br></td><td class="smalltxt">
		&nbsp;{lang poston} $post[dateline]</td></tr>
		<tr class="$post[thisbg]"><td>
		<table height="100%" width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed; word-wrap: break-word">
		<tr><td><p>$post[message]</p><br></td></tr></table></td></tr>
	<!--{/loop}-->
<!--{/if}-->

</table>

<!--{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 + -