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

📄 post.htm

📁 Discuz功能源码(开源)
💻 HTM
📖 第 1 页 / 共 3 页
字号:
{template header}<!--{block actiontitle}--><!--{if $action == 'newthread'}--><!--{if $special == 0}-->{lang post_newthread}<!--{elseif $special == 1}-->{lang post_newthreadpoll}<!--{elseif $special == 2}-->{lang post_newthreadtrade}<!--{elseif $special == 3}-->{lang post_newthreadreward}<!--{elseif $special == 4}-->{lang post_newthreadactivity}<!--{elseif $special == 5}-->{lang post_newthreaddebate}<!--{elseif $special == 6}-->{lang post_newthreadvideo}<!--{/if}--><!--{elseif $action == 'reply' && !empty($addtrade)}-->{lang trade_add_post}<!--{elseif $action == 'reply'}-->{lang join_thread}<!--{elseif $action == 'edit'}-->{lang edit_thread}<!--{/if}--><!--{/block}--><!--{if empty($infloat)}-->	{eval $navigation .= '&raquo; '.$actiontitle;}	{subtemplate header_nofloat}<!--{/if}--><script type="text/javascript" reload="1">var infloat = {if !empty($infloat)}1{else}0{/if};var InFloat_Editor = 'floatlayout_$action';var editoraction = '$action';</script>{eval $adveditor = $isfirstpost && $special || $special == 2 && ($action == 'newthread' || $action == 'reply' && !empty($addtrade) || $action == 'edit' && $thread['special'] == 2);}{eval $advmore = !$showthreadsorts && !$special || $action == 'reply' && empty($addtrade) || $action == 'edit' && !$isfirstpost && ($thread['special'] == 2 && !$special || $thread['special'] != 2);}<div class="float" id="floatlayout_$action" style="{if !empty($infloat)}width: 600px; height: 410px;{/if}">	<form method="post" id="postform"		{if $action == 'newthread'}action="post.php?{if !empty($infloat)}infloat=yes{/if}&action={if $special != 2}newthread{else}newtrade{/if}&fid=$fid&extra=$extra&topicsubmit=yes"		{elseif $action == 'reply'}action="post.php?{if !empty($infloat)}infloat=yes{/if}&action=reply&fid=$fid&tid=$tid&extra=$extra&replysubmit=yes"		{elseif $action == 'edit'}action="post.php?{if !empty($infloat)}infloat=yes{/if}&action=edit&extra=$extra&editsubmit=yes&mod=$mod"		{/if}		$enctype onsubmit="return validate(this)">	<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />	<!--{if !empty($modthreadkey)}--><input type="hidden" name="modthreadkey" id="modthreadkey" value="$modthreadkey" /><!--{/if}-->	<!--{if !empty($infloat)}--><input type="hidden" name="handlekey" value="$handlekey" /><!--{/if}-->	<input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editormode" />	<!--{if $action == 'edit'}-->		<input type="hidden" name="fid" id="fid" value="$fid" />		<input type="hidden" name="tid" value="$tid" />		<input type="hidden" name="pid" value="$pid" />	<!--{/if}-->	<!--{if $special}-->		<input type="hidden" name="special" value="$special" />	<!--{/if}-->	<!--{if $isfirstpost}-->		<input type="hidden" name="iconid" id="iconid" value="$thread[iconid]" />	<!--{/if}-->	<input type="hidden" name="updateswfattach" value="0" />	<div style="clear:both;<!--{if !empty($infloat)}--> width:2500px<!--{/if}-->">	<!--{if !empty($infloat)}--><div class="floatbox floatbox1" id="extcreditbox1"></div><!--{/if}-->	<div class="floatbox floatbox1"{if !$showthreadsorts && !$adveditor} id="editorbox"{/if}>		<h3 class="float_ctrl">			<em id="returnmessage">				$actiontitle				<!--{if $showthreadsorts}--> $forum[threadsorts][types][$sortid]<!--{/if}-->			</em>			<!--{if $action == 'newthread' && $modnewthreads}--><em class="needverify">{lang approve}</em><!--{/if}-->			<!--{if $action == 'reply' && $modnewreplies}--><em class="needverify">{lang approve}</em><!--{/if}-->			<span>				<a href="javascript:;" id="creditlink" onclick="pagescrolls('credit1')" title="{lang credits_policy}">{lang credits_policy}</a>				<!--{if !empty($infloat)}-->					<a href="javascript:;" class="float_newwindow" onclick="editorwindowopen('post.php?$posturl')" title="{lang new_window}">{lang new_window}</a>					<!--{if !$special && !$showthreadsorts}-->						<a href="javascript:;" class="float_max" onclick="resizeEditorwin()" title="{lang maximize}" id="resizeEditorwin">{lang maximize}</a>					<!--{/if}-->					<a href="javascript:;" class="float_close" onclick="closeEditorwin()" title="{lang close}">{lang close}</a>				<!--{/if}-->			</span>		</h3>		<div class="postbox" id="postbox">			<div class="float_postinfo s_clear"<!--{if $action == 'reply'}--> style="overflow:hidden"<!--{/if}-->>				<!--{if !$special && $isfirstpost}-->					<em id="icon" class="dropmenu" onmouseover="InFloat='floatlayout_$action';showMenu(this.id)"><img id="icon_img" src="images/icons/{if $action == 'edit' && $thread[iconid]}{$_DCACHE['icons'][$thread[iconid]]}{else}icon1.gif{/if}" /></em>					<ul id="icon_menu" class="popupmenu_popup" style="display:none">					<!--{loop $_DCACHE['icons'] $id $icon}-->						<li><a href="javascript:;"><img onclick="switchicon($id, this)" src="images/icons/$icon" alt="" /></a></li>					<!--{/loop}-->					</ul>				<!--{/if}-->				<!--{if !$isfirstpost && $thread[special] == 5 && empty($firststand) && $action != 'edit'}-->				<div class="float_typeid short_select">					<select id="stand" name="stand">						<option value="0">{lang debate_neutral}</option>						<option value="1">{lang debate_square}</option>						<option value="2">{lang debate_opponent}</option>					</select>				</div>				<!--{/if}-->				<!--{if $action == 'reply' && !empty($addtrade) || $action == 'edit' && $thread['special'] == 2 && !$postinfo['first']}-->					<input name="subject" type="hidden" value="" />				<!--{else}-->					<!--{if $action != 'reply'}-->						<span><input name="subject" id="subject" class="txt" value="$postinfo[subject]" tabindex="1" /></span>					<!--{else}-->						<span id="subjecthide">RE: $thread[subject] [<a href="javascript:;" onclick="display('subjecthide');display('subjectbox');$('subject').value='RE: {echo htmlspecialchars(str_replace('\'', '\\\'', $thread[subject]))}'">{lang modify}</a>]</span>						<span id="subjectbox" style="display:none"><input name="subject" id="subject" class="txt" value="" tabindex="1" /></span>					<!--{/if}-->				<!--{/if}-->				<!--{if $action == 'edit' && ($isfirstpost && $thread['replies'] < 1 || !$isfirstpost && ($isorigauthor || $forum['ismoderator']))}-->					<div class="right"><input type="checkbox" name="delete" id="delete" value="1" title="{lang post_delpost}{if $thread[special] == 3}{lang reward_price_back}{/if}"><label for="delete">{lang delete_check}</label></div>				<!--{/if}-->				<div class="left">					<!--{if !$special && ($threadsorts = $forum[threadsorts]) && ($action == 'newthread' || $action == 'edit' && $isfirstpost && !$thread['sortid'])}-->					<div class="float_typeid">						<select name="sortid" id="sortid" change="switchsort()">						<!--{if !$sortid}--><option value="0">{lang threadtype_option}</option><!--{/if}-->						<!--{loop $threadsorts[types] $tsortid $name}-->							<!--{if !empty($modelid) && $threadsorts[modelid][$tsortid] == $modelid || empty($modelid)}-->								<option value="$tsortid"{if $sortid == $tsortid} selected="selected"{/if}>{echo strip_tags($name);}</option>							<!--{/if}-->						<!--{/loop}-->						</select>					</div>					<!--{/if}-->					<!--{if $action == 'edit' && $isfirstpost && $sortid}-->						<input type="hidden" name="sortid" value="$sortid" />					<!--{/if}-->					<!--{if $isfirstpost && $forum[threadtypes][types]}-->					<div class="float_typeid">						<select name="typeid" id="typeid">						<option value="0">{lang types}</option>						<!--{loop $forum[threadtypes][types] $typeid $name}-->							<option value="$typeid"{if $thread['typeid'] == $typeid} selected="selected"{/if}>{echo strip_tags($name);}</option>						<!--{/loop}-->						</select>					</div>					<!--{/if}-->				</div>			</div>			<!--{if $showthreadsorts}-->				<div class="classifieds"{if empty($infloat)} style="overflow-y:visible;height:auto;"{/if}>					<table cellpadding="0" cellspacing="0" class="formtable">						<tbody id="threadsorts"><span id="threadsortswait"></span></tbody>					</table>				</div>				</div></div></div>				<div style="clear:both;<!--{if !empty($infloat)}--> width:2500px<!--{/if}-->">				<!--{if !empty($infloat)}--><div class="floatbox floatbox1" id="extcreditbox3"></div><!--{/if}-->				<div class="floatbox floatbox1" id="editorbox">				<!--{if !empty($infloat)}-->					<h3 class="float_ctrl">						<em><button id="creditlink" onclick="pagescrolls('return');return false">{lang return}</button></em>						<span>							<a href="javascript:;" onclick="pagescrolls('credit3')" title="{lang credits_policy}">{lang credits_policy}</a>							<!--{if !empty($infloat)}-->								<a href="javascript:;" class="float_max" onclick="editorwindowopen('post.php?$posturl')" title="{lang new_window}">{lang new_window}</a>								<a href="javascript:;" class="float_max" onclick="resizeEditorwin()" title="{lang maximize}" id="resizeEditorwin">{lang maximize}</a>								<a href="javascript:;" class="float_close" onclick="closeEditorwin()" title="{lang close}">{lang close}</a>							<!--{/if}-->						</span>					</h3>				<!--{/if}-->				<div class="postbox">			<!--{elseif $adveditor}-->				<!--{if $special == 1}-->{template post_poll}				<!--{elseif $special == 2}-->{template post_trade}				<!--{elseif $special == 3}-->{template post_reward}				<!--{elseif $special == 4}-->{template post_activity}				<!--{elseif $special == 5}-->{template post_debate}				<!--{elseif $special == 6}-->{template post_video}				<!--{/if}-->				</div>				<div style="clear:both;<!--{if !empty($infloat)}--> width:2500px<!--{/if}-->">				<!--{if !empty($infloat)}--><div class="floatbox floatbox1" id="extcreditbox3"></div><!--{/if}-->				<div class="floatbox floatbox1" id="editorbox">				<!--{if !empty($infloat)}-->					<h3 class="float_ctrl">						<em><button id="creditlink" onclick="pagescrolls('return');return false">{lang return}</button></em>						<span>							<a href="javascript:;" onclick="pagescrolls('credit3')" title="{lang credits_policy}">{lang credits_policy}</a>							<!--{if !empty($infloat)}-->								<a href="javascript:;" class="float_max" onclick="editorwindowopen('post.php?$posturl')" title="{lang new_window}">{lang new_window}</a>								<a href="javascript:;" class="float_max" onclick="resizeEditorwin()" title="{lang maximize}" id="resizeEditorwin">{lang maximize}</a>								<a href="javascript:;" class="float_close" onclick="closeEditorwin()" title="{lang close}">{lang close}</a>							<!--{/if}-->						</span>					</h3>				<!--{/if}-->				<div class="postbox">			<!--{/if}-->			<div id="{$editorid}_controls" class="editorrow">				<div class="editor">					<a id="{$editorid}_switcher" class="plugeditor editormode"><input type="checkbox" name="checkbox" value="0" {if !$editormode}checked="checked"{/if} onclick="switchEditor(this.checked?0:1)" />{lang code}</a>					<div class="editorbtn">						<!--{loop $_DCACHE['bbcodes_display'] $tag $bbcode}-->							<!--{if $bbcode[type] == '1'}-->								<!--{if $bbcode[icon] == 'popup_simple'}-->									<a id="{$editorid}_cmd_bold" title="{lang e_bold}">$bbcode[tag]</a>									<a id="{$editorid}_popup_simple" title="$bbcode[explanation]">$bbcode[tag]</a>								<!--{elseif !($tag == 'media' && !$forum['allowmediacode']) && !($tag == 'hide' && !$allowhidecode)}-->									<a id="{$editorid}_{$bbcode[icon]}" title="$bbcode[explanation]">$bbcode[tag]</a>								<!--{/if}-->							<!--{elseif $bbcode[type] == '0' && $forum['allowbbcode'] && $allowcusbbcode}-->								<a id="{$editorid}_cmd_custom{$bbcode[params]}_$tag" class="customedit" title="$bbcode[explanation]"><img src="images/common/$bbcode[icon]" title="$bbcode[explanation]" alt="$tag" /></a>							<!--{/if}-->						<!--{/loop}-->					</div>				</div>				<div class="editortoolbar">					<div class="popupmenu_popup fontstyle_menu" id="{$editorid}_popup_simple_menu" style="display: none">					<ul unselectable="on">						<li><a id="{$editorid}_cmd_italic" title="{lang e_italic}">{lang e_italic}</a></li>						<li><a id="{$editorid}_cmd_underline" title="{lang e_underline}">{lang e_underline}</a></li>					</ul>					</div>					<!--{eval $fontoptions = array({lang e_fontoptions})}-->					<div class="popupmenu_popup fontname_menu" id="{$editorid}_popup_fontname_menu" style="display: none">					<ul unselectable="on">					<!--{loop $fontoptions $fontname}-->							<li onclick="discuzcode('fontname', '$fontname')" style="font-family: $fontname" unselectable="on">$fontname</li>					<!--{/loop}-->					</ul>					</div>					<!--{eval $sizeoptions = array(1, 2, 3, 4, 5, 6, 7)}-->					<div class="popupmenu_popup fontsize_menu" id="{$editorid}_popup_fontsize_menu" style="display: none">					<ul unselectable="on">					<!--{loop $sizeoptions $size}-->							<li onclick="discuzcode('fontsize', $size)" unselectable="on"><font size="$size" unselectable="on">$size</font></li>					<!--{/loop}-->					</ul>					</div>					<!--{eval $coloroptions = array('Black', 'Sienna', 'DarkOliveGreen', 'DarkGreen', 'DarkSlateBlue', 'Navy', 'Indigo', 'DarkSlateGray', 'DarkRed', 'DarkOrange', 'Olive', 'Green', 'Teal', 'Blue', 'SlateGray', 'DimGray', 'Red', 'SandyBrown', 'YellowGreen','SeaGreen', 'MediumTurquoise','RoyalBlue', 'Purple', 'Gray', 'Magenta', 'Orange', 'Yellow', 'Lime', 'Cyan', 'DeepSkyBlue', 'DarkOrchid', 'Silver', 'Pink', 'Wheat', 'LemonChiffon', 'PaleGreen', 'PaleTurquoise', 'LightBlue', 'Plum', 'White')}-->					<div class="popupmenu_popup" id="{$editorid}_popup_forecolor_menu" style="display: none">					<table cellpadding="0" cellspacing="0" border="0" unselectable="on" style="width: auto;"><tr>					<!--{loop $coloroptions $key $colorname}-->						<td class="editor_colornormal" onclick="discuzcode('forecolor', '$colorname')" unselectable="on"><div style="background-color: $colorname" unselectable="on"></div></td><!--{if ($key + 1) % 8 == 0}--></tr><tr><!--{/if}-->					<!--{/loop}-->					</tr></table></div>					<div class="popupmenu_popup" id="{$editorid}_popup_justify_menu" style="display: none">					<ul unselectable="on">						<li><a id="{$editorid}_cmd_justifyleft" title="{lang e_left}">{lang e_left}</a></li>						<li><a id="{$editorid}_cmd_justifycenter" title="{lang e_center}">{lang e_center}</a></li>						<li><a id="{$editorid}_cmd_justifyright" title="{lang e_right}">{lang e_right}</a></li>					</ul>					</div>					<!--{if $_DCACHE['bbcodes_display']['smilies']}-->						<div class="smilies" id="{$editorid}_popup_smilies_menu" style="display: none">							<div class="smilieslist">							<div id="smiliesdiv"></div>							<script type="text/javascript" reload="1">							smilies_show('smiliesdiv', $smcols, 1);							function smilies_onload_smiliesdiv() {								loadselect('smiliesdiv_seltype', 0, 'floatlayout_$action');							}							</script>							</div>						</div>					<!--{/if}-->					<div class="popupmenu_popup" id="{$editorid}_popup_dent_menu" style="display: none">					<ul unselectable="on">						<li><a id="{$editorid}_cmd_indent" title="{lang e_indent}">{lang e_indent}</a></li>						<li><a id="{$editorid}_cmd_outdent" title="{lang e_outdent}">{lang e_outdent}</a></li>					</ul>					</div>					<div class="popupmenu_popup" id="{$editorid}_popup_float_menu" style="display: none">					<ul unselectable="on">						<li><a id="{$editorid}_cmd_floatleft" title="{lang e_floatleft}">{lang e_floatleft}</a></li>						<li><a id="{$editorid}_cmd_floatright" title="{lang e_floatright}">{lang e_floatright}</a></li>					</ul>					</div>					<div class="popupmenu_popup" id="{$editorid}_popup_list_menu" style="display: none">					<ul unselectable="on">						<li><a id="{$editorid}_cmd_insertorderedlist" title="{lang e_orderedlist}">{lang e_orderedlist}</a></li>						<li><a id="{$editorid}_cmd_insertunorderedlist" title="{lang e_unorderedlist}">{lang e_unorderedlist}</a></li>					</ul>					</div>					<div class="popupmenu_popup" id="{$editorid}_popup_hide_menu" style="display: none">					<ul unselectable="on">						<!--{if $allowhidecode}--><li><a id="{$editorid}_popup_hide" title="{lang e_hide}">{lang e_hide}</a></li><!--{/if}-->						<li><a id="{$editorid}_cmd_table" title="{lang e_table}">{lang e_table}</a></li>						<li><a id="{$editorid}_cmd_free" title="{lang e_free}">{lang e_free}</a></li>					</ul>					</div>					<div class="popupmenu_popup" id="{$editorid}_popup_tools_menu" style="display: none">					<ul unselectable="on">						<a id="{$editorid}_cmd_removeformat" title="{lang e_removeformat}">{lang e_removeformat}</a>						<a id="{$editorid}_cmd_unlink" title="{lang e_unlink}">{lang e_unlink}</a>						<a id="{$editorid}_cmd_undo" title="{lang e_undo}">{lang e_undo}</a>						<a id="{$editorid}_cmd_redo" title="{lang e_redo}">{lang e_redo}</a>						<a id="{$editorid}_cmd_checklength" title="{lang post_check_length}">{lang post_check_length}</a>						<a id="{$editorid}_cmd_clearcontent" title="{lang post_topicreset}">{lang post_topicreset}</a>						<br />						<a id="{$editorid}_cmd_autosave" title="{lang post_autosave}">{lang post_autosave}<em id="autsavet">({lang post_autosave_stop})</em></a>						<a id="{$editorid}_cmd_saveData" title="{lang post_savedata}">{lang post_savedata}</a>						<a id="{$editorid}_cmd_loadData" title="{lang post_autosave_restore}">{lang post_autosave_restore}</a>					</ul>					</div>				</div>			</div>			<div class="newediter">				<table cellpadding="0" cellspacing="0" border="0" width="100%">					<tr><td>

⌨️ 快捷键说明

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