1 Star 1 Fork 10

染清。/sikemi

forked from 张焯森/sikemi 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
post.htm 16.67 KB
一键复制 编辑 原始数据 按行查看 历史
张焯森 提交于 2016-01-11 09:30 . upload
<!--{subtemplate common/header}-->
<script type="text/javascript">
var allowpostattach = parseInt('{$_G['group']['allowpostattach']}');
var allowpostimg = parseInt('$allowpostimg');
var pid = parseInt('$pid');
var tid = parseInt('$_G[tid]');
var extensions = '{$_G['group']['attachextensions']}';
var imgexts = '$imgexts';
var postminchars = parseInt('$_G['setting']['minpostsize']');
var postmaxchars = parseInt('$_G['setting']['maxpostsize']');
var disablepostctrl = parseInt('{$_G['group']['disablepostctrl']}');
var seccodecheck = parseInt('<!--{if checkperm('seccode') && $seccodecheck}-->1<!--{else}-->0<!--{/if}-->');
var secqaacheck = parseInt('<!--{if checkperm('seccode') && $secqaacheck}-->1<!--{else}-->0<!--{/if}-->');
var typerequired = parseInt('{$_G[forum][threadtypes][required]}');
var sortrequired = parseInt('{$_G[forum][threadsorts][required]}');
var special = parseInt('$special');
var isfirstpost = <!--{if $isfirstpost}-->1<!--{else}-->0<!--{/if}-->;
var allowposttrade = parseInt('{$_G['group']['allowposttrade']}');
var allowpostreward = parseInt('{$_G['group']['allowpostreward']}');
var allowpostactivity = parseInt('{$_G['group']['allowpostactivity']}');
var sortid = parseInt('$sortid');
var special = parseInt('$special');
var fid = $_G['fid'];
var ispicstyleforum = <!--{if $_G['forum']['picstyle']}-->1<!--{else}-->0<!--{/if}-->;
</script>
<!--{if $_G[gp_action] == 'edit'}--><!--{eval $editor[value] = $postinfo[message];}--><!--{else}--><!--{eval $editor[value] = $message;}--><!--{/if}-->
<script type="text/javascript" src="{$_G['setting']['jspath']}forum_post.js?{VERHASH}"></script>
<!--{if $isfirstpost && $sortid}-->
<script type="text/javascript">
var forum_optionlist = <!--{if $forum_optionlist}-->'$forum_optionlist'<!--{else}-->''<!--{/if}-->;
</script>
<script type="text/javascript" src="{$_G['setting']['jspath']}threadsort.js?{VERHASH}"></script>
<!--{/if}-->
<!--{block actiontitle}-->
<!--{if $_G['gp_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 $specialextra}-->{$_G['setting']['threadplugins'][$specialextra][name]}
<!--{/if}-->
<!--{elseif $_G['gp_action'] == 'reply' && !empty($_G['gp_addtrade'])}-->
{lang trade_add_post}
<!--{elseif $_G['gp_action'] == 'reply'}-->
{lang join_thread}
<!--{elseif $_G['gp_action'] == 'edit'}-->
<!--{if $special == 2}-->{lang edit_trade}<!--{else}-->{lang edit_thread}<!--{/if}-->
<!--{/if}-->
<!--{/block}-->
<!--{block icon}-->
<!--{if $special == 1}-->poll
<!--{elseif $special == 2}-->trade
<!--{elseif $special == 3}-->reward
<!--{elseif $special == 4}-->activity
<!--{elseif $special == 5}-->debate
<!--{elseif $isfirstpost && $sortid}-->sort
<!--{/if}-->
<!--{/block}-->
<!--{if $_G['gp_action'] != 'newthread'}-->
<!--{eval $subjectcut = cutstr($thread[subject], 30);}-->
<!--{/if}-->
<!--{block actionsubject}-->
<!--{if $_G['gp_action'] == 'reply'}-->
<em>&rsaquo;</em><a href="forum.php?mod=viewthread&tid=$thread[tid]">$subjectcut</a>
<!--{elseif $_G['gp_action'] == 'edit'}-->
<em>&rsaquo;</em><a href="forum.php?mod=redirect&goto=findpost&ptid=$thread[tid]&pid=$pid">$subjectcut</a>
<!--{/if}-->
<!--{/block}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> $navigation$actionsubject <em>&rsaquo;</em> $actiontitle</div>
</div>
<!--{eval $adveditor = $isfirstpost && $special || $special == 2 && ($_G['gp_action'] == 'newthread' || $_G['gp_action'] == 'reply' && !empty($_G['gp_addtrade']) || $_G['gp_action'] == 'edit' && $thread['special'] == 2);}-->
<!--{eval $advmore = !$showthreadsorts && !$special || $_G['gp_action'] == 'reply' && empty($_G['gp_addtrade']) || $_G['gp_action'] == 'edit' && !$isfirstpost && ($thread['special'] == 2 && !$special || $thread['special'] != 2);}-->
<form method="post" autocomplete="off" id="postform" enctype="multipart/form-data"
{if $_G[gp_action] == 'newthread'}action="forum.php?mod=post&action={if $special != 2}newthread{else}newtrade{/if}&fid=$_G[fid]&extra=$extra&topicsubmit=yes"
{elseif $_G[gp_action] == 'reply'}action="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&extra=$extra&replysubmit=yes"
{elseif $_G[gp_action] == 'edit'}action="forum.php?mod=post&action=edit&extra=$extra&editsubmit=yes" $enctype
{/if}
onsubmit="return validate(this)">
<div id="ct" class="ct2_a ct2_a_r wp cl">
<div class="mn">
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<input type="hidden" name="posttime" id="posttime" value="{TIMESTAMP}" />
<!--{if $_G['gp_action'] == 'edit'}-->
<input type="hidden" name="delattachop" id="delattachop" value="0" />
<!--{/if}-->
<!--{if !empty($_G['gp_modthreadkey'])}--><input type="hidden" name="modthreadkey" id="modthreadkey" value="$_G['gp_modthreadkey']" /><!--{/if}-->
<input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editormode" />
<!--{if $_G[gp_action] == 'reply'}-->
<input type="hidden" name="noticeauthor" value="$noticeauthor" />
<input type="hidden" name="noticetrimstr" value="$noticetrimstr" />
<input type="hidden" name="noticeauthormsg" value="$noticeauthormsg" />
<!--{if $reppid}-->
<input type="hidden" name="reppid" value="$reppid" />
<!--{/if}-->
<!--{if $_G[gp_reppost]}-->
<input type="hidden" name="reppost" value="$_G[gp_reppost]" />
<!--{elseif $_G[gp_repquote]}-->
<input type="hidden" name="reppost" value="$_G[gp_repquote]" />
<!--{/if}-->
<!--{/if}-->
<!--{if $_G[gp_action] == 'edit'}-->
<input type="hidden" name="fid" id="fid" value="$_G[fid]" />
<input type="hidden" name="tid" value="$_G[tid]" />
<input type="hidden" name="pid" value="$pid" />
<input type="hidden" name="page" value="$_G[gp_page]" />
<!--{/if}-->
<!--{if $special}-->
<input type="hidden" name="special" value="$special" />
<!--{/if}-->
<!--{if $specialextra}-->
<input type="hidden" name="specialextra" value="$specialextra" />
<!--{/if}-->
<div class="bm bw0 cl"{if !$showthreadsorts && !$adveditor} id="editorbox"{/if}>
<!--{if $_G[gp_action] == 'newthread'}-->
<ul class="tb cl mbw">
<!--{if $savecount}-->
<li class="y"><a id="draftlist" href="javascript:;" class="xi2" onmouseover="showMenu({'ctrlid':'draftlist','ctrlclass':'a','duration':2,'pos':'34'})">{lang draftbox}(<strong>$savecount</strong>)</a></li>
<!--{/if}-->
<!--{if !$_G['forum']['threadsorts']['required'] && !$_G['forum']['allowspecialonly']}--><li$postspecialcheck[0]><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread')">{lang post_newthread}</a></li><!--{/if}-->
<!--{loop $_G['forum']['threadsorts'][types] $tsortid $name}-->
<li{if $sortid == $tsortid} class="a"{/if}><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&sortid=$tsortid')"><!--{echo strip_tags($name);}--></a></li>
<!--{/loop}-->
<!--{if $_G['group']['allowpostpoll']}--><li$postspecialcheck[1]><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=1')">{lang post_newthreadpoll}</a></li><!--{/if}-->
<!--{if $_G['group']['allowpostreward']}--><li$postspecialcheck[3]><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=3')">{lang post_newthreadreward}</a></li><!--{/if}-->
<!--{if $_G['group']['allowpostdebate']}--><li$postspecialcheck[5]><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=5')">{lang post_newthreaddebate}</a></li><!--{/if}-->
<!--{if $_G['group']['allowpostactivity']}--><li$postspecialcheck[4]><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=4')">{lang post_newthreadactivity}</a></li><!--{/if}-->
<!--{if $_G['group']['allowposttrade']}--><li$postspecialcheck[2]><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=2')">{lang post_newthreadtrade}</a></li><!--{/if}-->
<!--{if $_G['setting']['threadplugins']}-->
<!--{loop $_G['forum']['threadplugin'] $tpid}-->
<!--{if array_key_exists($tpid, $_G['setting']['threadplugins']) && @in_array($tpid, $_G['group']['allowthreadplugin'])}-->
<li{if $specialextra==$tpid} class="a"{/if}><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&specialextra=$tpid')">{$_G[setting][threadplugins][$tpid][name]}</a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
</ul>
<div id="draftlist_menu" style="display:none">
<ul class="xl xl1">
<!--{if $savethreads}-->
<!--{loop $savethreads $savethread}-->
<li>
<label>[<a href="javascript:;" title="{lang reply_quote}" onclick="insertsave($savethread[pid])">{lang reply_quote}</a>]</label>
<a href="forum.php?mod=post&action=edit&fid=$savethread[fid]&tid=$savethread[tid]&pid=$savethread[pid]" class="xi2" target="_blank">$savethread[subject]</a>
<span class="xg1">$savethread[dateline]</span>
</li>
<!--{/loop}-->
<!--{/if}-->
<!--{if $savethreadothers}-->
<!--{loop $savethreadothers $savethread}-->
<li>
<label>[<a href="javascript:;" title="{lang reply_quote}" onclick="insertsave($savethread[pid])">{lang reply_quote}</a>]</label>
<a href="forum.php?mod=post&action=edit&fid=$savethread[fid]&tid=$savethread[tid]&pid=$savethread[pid]" class="xi2" target="_blank">$savethread[subject]</a>
<span class="xg1">$savethread[dateline]</span>
</li>
<!--{/loop}-->
<!--{/if}-->
<li class="xi2"><a href="home.php?mod=space&uid=$_G['uid']&do=thread&view=me&type=thread&from=&filter=save" target="_blank">{lang post_message3}</a></li>
</ul>
</div>
<!--{elseif $_G[gp_action] == 'edit' && $isfirstpost && !$thread['sortid']}-->
<ul class="tb cl mbw">
<li{if !$sortid} class="a"{/if}><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=edit&tid=$_G[tid]&pid=$pid')">$actiontitle</a></li>
<!--{if $_G[gp_action] == 'edit' && $isfirstpost && !$thread['sortid']}-->
<!--{loop $_G['forum']['threadsorts'][types] $tsortid $name}-->
<li{if $sortid == $tsortid} class="a"{/if}><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=edit&tid=$_G[tid]&pid=$pid&sortid=$tsortid')"><!--{echo strip_tags($name);}--></a></li>
<!--{/loop}-->
<!--{/if}-->
</ul>
<!--{/if}-->
<div id="postbox">
<!--{if $_G[gp_action] == 'newthread' && $_G['setting']['sitemessage'][newthread] || $_G[gp_action] == 'reply' && $_G['setting']['sitemessage'][reply]}-->
<span id="custominfo" class="y cur1{if $_G[gp_action] != 'reply'} mtn{/if}">&nbsp;<img src="{IMGDIR}/info_small.gif" alt="{lang faq}" /></span>
<!--{/if}-->
<!--{hook/post_top}-->
<!--{subtemplate forum/post_editor_extra}-->
<!--{subtemplate forum/post_editor_body}-->
<!--{hook/post_middle}-->
<!--{if $_G[gp_action] == 'newthread' || $_G[gp_action] == 'edit' && $isfirstpost}-->
<!--{subtemplate forum/post_editor_attribute}-->
<!--{/if}-->
<!--{if $_G[gp_action] != 'edit' && checkperm('seccode') && ($secqaacheck || $seccodecheck)}-->
<!--{block sectpl}--><sec> <span id="sec<hash>" onclick="showMenu(this.id);"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div><!--{/block}-->
<div class="mtm"><!--{subtemplate common/seccheck}--></div>
<!--{/if}-->
<div class="mtm mbm pnpost">
<a href="home.php?mod=spacecp&ac=credit&op=rule&fid=$_G['fid']" class="y" target="_blank">{lang post_credits_rule}</a>
<button type="submit" id="postsubmit" class="pn pnc" value="true" name="{if $_G[gp_action] == 'newthread'}topicsubmit{elseif $_G[gp_action] == 'reply'}replysubmit{elseif $_G[gp_action] == 'edit'}editsubmit{/if}">
<!--{if $_G[gp_action] == 'newthread'}-->
<!--{if $special == 0}--><span>{lang post_newthread}</span>
<!--{elseif $special == 1}--><span>{lang post_newthreadpoll}</span>
<!--{elseif $special == 2}--><span>{lang post_newthreadtrade}</span>
<!--{elseif $special == 3}--><span>{lang post_newthreadreward}</span>
<!--{elseif $special == 4}--><span>{lang post_newthreadactivity}</span>
<!--{elseif $special == 5}--><span>{lang post_newthreaddebate}</span>
<!--{elseif $special == 127}-->
<span><!--{if $buttontext}-->$buttontext<!--{else}-->{lang post_newthread}<!--{/if}--></span>
<!--{/if}-->
<!--{elseif $_G[gp_action] == 'reply' && !empty($_G['gp_addtrade'])}--><span>{lang trade_add_post}</span>
<!--{elseif $_G[gp_action] == 'reply'}--><span>{lang join_thread}</span>
<!--{elseif $_G[gp_action] == 'edit' && $isfirstpost && $thread['displayorder'] == -4}-->
<span>{lang post_newthread}</span>
<!--{elseif $_G[gp_action] == 'edit'}--><span>{lang edit_save}</span>
<!--{/if}-->
</button>
<!--{if $_G['uid']}-->
<input type="hidden" id="postsave" name="save" value="" />
<!--{if $_G[gp_action] == 'newthread' && !$modnewthreads || $_G[gp_action] == 'edit' && $isfirstpost && !$modnewreplies && $thread['displayorder'] == -4}-->
<button type="button" id="postsubmit" class="pn" value="true" onclick="$('postsave').value = 1;$('postsubmit').click();"><em>{lang save_draft}</em></button>
<!--{/if}-->
<!--{/if}-->
<!--{if $special == 2}--><label><input type="checkbox" name="continueadd" value="yes" class="pc" />{lang post_message2}</label><!--{/if}-->
<!--{hook/post_btn_extra}-->
<!--{if !empty($_G['setting']['pluginhooks']['post_sync_method'])}-->
<span>
{lang post_sync_method}:
<!--{hook/post_sync_method}-->
</span>
<!--{/if}-->
</div>
<!--{hook/post_bottom}-->
</div>
</div>
</div>
<!--{subtemplate forum/post_editor_option}-->
</div>
</form>
<iframe name="ajaxpostframe" id="ajaxpostframe" style="display: none;"></iframe>
<div id="{$editorid}_menus" class="editorrow" style="overflow: hidden; margin-top: -5px; height: 0; border: none; background: transparent;">
<!--{subtemplate common/editor_menu}-->
<!--{subtemplate forum/editor_menu_forum}-->
</div>
<!--{if $special || ($_G[gp_action] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_G[gp_action] == 'edit' && getstatus($thread['status'], 3))}-->
<script type="text/javascript" src="{$_G['setting']['jspath']}calendar.js?{VERHASH}"></script>
<!--{/if}-->
<script type="text/javascript">
var editorsubmit = $('postsubmit');
var editorform = $('postform');
<!--{if $isfirstpost && !empty($_G[forum][threadtypes][types])}-->
simulateSelect('typeid');
<!--{/if}-->
<!--{if !$isfirstpost && $thread['special'] == 5 && empty($firststand) && $_G[gp_action] != 'edit'}-->
simulateSelect('stand');
<!--{/if}-->
function switchpost(href) {
editchange = false;
saveData(1);
location.href = href + '&fid=$_G[fid]&cedit=yes<!--{if !empty($_G[tid])}-->&tid=$_G[tid]<!--{/if}--><!--{if !empty($modelid)}-->&modelid=$modelid<!--{/if}-->&extra=$extra';
doane();
}
<!--{if $_G[gp_action] == 'newthread' && $_G['setting']['sitemessage'][newthread] || $_G[gp_action] == 'reply' && $_G['setting']['sitemessage'][reply]}-->
showPrompt('custominfo', 'mouseover', '<!--{if $_G[gp_action] == 'newthread'}--><!--{echo trim($_G['setting']['sitemessage'][newthread][array_rand($_G['setting']['sitemessage'][newthread])])}--><!--{elseif $_G[gp_action] == 'reply'}--><!--{echo trim($_G['setting']['sitemessage'][reply][array_rand($_G['setting']['sitemessage'][reply])])}--><!--{/if}-->', $_G['setting']['sitemessage'][time]);
<!--{/if}-->
<!--{if $_G['setting']['swfupload'] != 1 && $_G['group']['allowpostattach']}-->addAttach();<!--{/if}-->
<!--{if $_G['setting']['swfupload'] != 1 && $allowpostimg}-->addAttach('img');<!--{/if}-->
if($('subjectbox')) {
var tmp_obj = $('e_textarea');
if(tmp_obj && tmp_obj.style.display == '') {
tmp_obj.focus();
}
} else if($('subject')) {
$('subject').focus();
}
<!--{if empty($_G['gp_cedit'])}-->
if(loadUserdata('forum')) {
$('rstnotice').style.display = '';
}
<!--{/if}-->
<!--{if !empty($userextcredit)}-->
var have_replycredit = 0;
var creditstax = $_G['setting']['creditstax'];
var replycredit_result_lang = "{lang replycredit_revenue}{$_G['setting']['extcredits'][$extcreditstype][title]} ";
var userextcredit = $userextcredit;
<!--{if $thread['replycredit'] > 0}-->
have_replycredit = {$thread['replycredit']};
<!--{/if}-->
<!--{/if}-->
<!--{if $_G[gp_action] == 'edit'}-->
extraCheckall();
<!--{/if}-->
</script>
<!--{subtemplate common/footer}-->
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/bzxxx/sikemi.git
git@gitee.com:bzxxx/sikemi.git
bzxxx
sikemi
sikemi
master

搜索帮助