PageRenderTime 62ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 1ms

/data/template/1_1_forum_post.tpl.php

https://github.com/kuaileshike/upload
PHP | 1297 lines | 1194 code | 103 blank | 0 comment | 656 complexity | da3a287d3af7b408cc7d99374f073a3d MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1. <?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('post');
  2. 0
  3. || checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_editor_extra.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
  4. || checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_editor_body.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
  5. || checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_editor_attribute.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
  6. || checktplrefresh('./template/default/forum/post.htm', './template/default/common/seccheck.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
  7. || checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_editor_option.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
  8. || checktplrefresh('./template/default/forum/post.htm', './template/default/common/editor_menu.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
  9. || checktplrefresh('./template/default/forum/post.htm', './template/default/forum/editor_menu_forum.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
  10. || checktplrefresh('./template/default/forum/post.htm', './template/default/common/editor.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
  11. || checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_attachlimit.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
  12. || checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_attachlimit.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
  13. || checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_attachlimit.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
  14. || checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_attachlimit.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
  15. ;?><?php include template('common/header'); ?><script type="text/javascript">
  16. var allowpostattach = parseInt('<?php echo $_G['group']['allowpostattach'];?>');
  17. var allowpostimg = parseInt('<?php echo $allowpostimg;?>');
  18. var pid = parseInt('<?php echo $pid;?>');
  19. var tid = parseInt('<?php echo $_G['tid'];?>');
  20. var extensions = '<?php echo $_G['group']['attachextensions'];?>';
  21. var imgexts = '<?php echo $imgexts;?>';
  22. var postminchars = parseInt('<?php echo $_G['setting']['minpostsize'];?>');
  23. var postmaxchars = parseInt('<?php echo $_G['setting']['maxpostsize'];?>');
  24. var disablepostctrl = parseInt('<?php echo $_G['group']['disablepostctrl'];?>');
  25. var seccodecheck = parseInt('<?php if(checkperm('seccode') && $seccodecheck) { ?>1<?php } else { ?>0<?php } ?>');
  26. var secqaacheck = parseInt('<?php if(checkperm('seccode') && $secqaacheck) { ?>1<?php } else { ?>0<?php } ?>');
  27. var typerequired = parseInt('<?php echo $_G['forum']['threadtypes']['required'];?>');
  28. var sortrequired = parseInt('<?php echo $_G['forum']['threadsorts']['required'];?>');
  29. var special = parseInt('<?php echo $special;?>');
  30. var isfirstpost = <?php if($isfirstpost) { ?>1<?php } else { ?>0<?php } ?>;
  31. var allowposttrade = parseInt('<?php echo $_G['group']['allowposttrade'];?>');
  32. var allowpostreward = parseInt('<?php echo $_G['group']['allowpostreward'];?>');
  33. var allowpostactivity = parseInt('<?php echo $_G['group']['allowpostactivity'];?>');
  34. var sortid = parseInt('<?php echo $sortid;?>');
  35. var special = parseInt('<?php echo $special;?>');
  36. var fid = <?php echo $_G['fid'];?>;
  37. var postaction = '<?php echo $_GET['action'];?>';
  38. var ispicstyleforum = <?php if($_G['forum']['picstyle']) { ?>1<?php } else { ?>0<?php } ?>;
  39. </script>
  40. <?php if($_GET['action'] == 'edit') { ?><?php $editor[value] = $postinfo[message];?><?php } else { ?><?php $editor[value] = $message;?><?php } ?>
  41. <script src="<?php echo $_G['setting']['jspath'];?>forum_post.js?<?php echo VERHASH;?>" type="text/javascript"></script>
  42. <?php if($isfirstpost && $sortid) { ?>
  43. <script type="text/javascript">
  44. var forum_optionlist = <?php if($forum_optionlist) { ?>'<?php echo $forum_optionlist;?>'<?php } else { ?>''<?php } ?>;
  45. </script>
  46. <script src="<?php echo $_G['setting']['jspath'];?>threadsort.js?<?php echo VERHASH;?>" type="text/javascript"></script>
  47. <?php } ?><?php
  48. $actiontitle = <<<EOF
  49. EOF;
  50. if($_GET['action'] == 'newthread') { if($special == 0) {
  51. $actiontitle .= <<<EOF
  52. 发表帖子
  53. EOF;
  54. } elseif($special == 1) {
  55. $actiontitle .= <<<EOF
  56. 发起投票
  57. EOF;
  58. } elseif($special == 2) {
  59. $actiontitle .= <<<EOF
  60. 出售商品
  61. EOF;
  62. } elseif($special == 3) {
  63. $actiontitle .= <<<EOF
  64. 发布悬赏
  65. EOF;
  66. } elseif($special == 4) {
  67. $actiontitle .= <<<EOF
  68. 发起活动
  69. EOF;
  70. } elseif($special == 5) {
  71. $actiontitle .= <<<EOF
  72. 发起辩论
  73. EOF;
  74. } elseif($specialextra) {
  75. $actiontitle .= <<<EOF
  76. {$_G['setting']['threadplugins'][$specialextra]['name']}
  77. EOF;
  78. } } elseif($_GET['action'] == 'reply' && !empty($_GET['addtrade'])) {
  79. $actiontitle .= <<<EOF
  80. 添加商品
  81. EOF;
  82. } elseif($_GET['action'] == 'reply') {
  83. $actiontitle .= <<<EOF
  84. 参与/回复主题
  85. EOF;
  86. } elseif($_GET['action'] == 'edit') { if($special == 2) {
  87. $actiontitle .= <<<EOF
  88. 编辑商品
  89. EOF;
  90. } else {
  91. $actiontitle .= <<<EOF
  92. 编辑帖子
  93. EOF;
  94. } }
  95. $actiontitle .= <<<EOF
  96. EOF;
  97. ?><?php
  98. $icon = <<<EOF
  99. EOF;
  100. if($special == 1) {
  101. $icon .= <<<EOF
  102. poll
  103. EOF;
  104. } elseif($special == 2) {
  105. $icon .= <<<EOF
  106. trade
  107. EOF;
  108. } elseif($special == 3) {
  109. $icon .= <<<EOF
  110. reward
  111. EOF;
  112. } elseif($special == 4) {
  113. $icon .= <<<EOF
  114. activity
  115. EOF;
  116. } elseif($special == 5) {
  117. $icon .= <<<EOF
  118. debate
  119. EOF;
  120. } elseif($isfirstpost && $sortid) {
  121. $icon .= <<<EOF
  122. sort
  123. EOF;
  124. }
  125. $icon .= <<<EOF
  126. EOF;
  127. ?>
  128. <?php if($_GET['action'] != 'newthread') { ?><?php $subjectcut = cutstr($thread[subject], 30);?><?php } ?><?php
  129. $actionsubject = <<<EOF
  130. EOF;
  131. if($_GET['action'] == 'reply') {
  132. $actionsubject .= <<<EOF
  133. <em>&rsaquo;</em><a href="forum.php?mod=viewthread&amp;tid={$thread['tid']}">{$subjectcut}</a>
  134. EOF;
  135. } elseif($_GET['action'] == 'edit') {
  136. $actionsubject .= <<<EOF
  137. <em>&rsaquo;</em><a href="forum.php?mod=redirect&amp;goto=findpost&amp;ptid={$thread['tid']}&amp;pid={$pid}">{$subjectcut}</a>
  138. EOF;
  139. }
  140. $actionsubject .= <<<EOF
  141. EOF;
  142. ?>
  143. <div id="pt" class="bm cl">
  144. <div class="z"><a href="./" class="nvhm" title="首页"><?php echo $_G['setting']['bbname'];?></a> <?php echo $navigation;?><?php echo $actionsubject;?> <em>&rsaquo;</em> <?php echo $actiontitle;?></div>
  145. </div><?php $adveditor = $isfirstpost && $special || $special == 2 && ($_GET['action'] == 'newthread' || $_GET['action'] == 'reply' && !empty($_GET['addtrade']) || $_GET['action'] == 'edit' && $thread['special'] == 2);?><?php $advmore = !$showthreadsorts && !$special || $_GET['action'] == 'reply' && empty($_GET['addtrade']) || $_GET['action'] == 'edit' && !$isfirstpost && ($thread['special'] == 2 && !$special || $thread['special'] != 2);?><form method="post" autocomplete="off" id="postform"
  146. <?php if($_GET['action'] == 'newthread') { ?>action="forum.php?mod=post&amp;action=<?php if($special != 2) { ?>newthread<?php } else { ?>newtrade<?php } ?>&amp;fid=<?php echo $_G['fid'];?>&amp;extra=<?php echo $extra;?>&amp;topicsubmit=yes"
  147. <?php } elseif($_GET['action'] == 'reply') { ?>action="forum.php?mod=post&amp;action=reply&amp;fid=<?php echo $_G['fid'];?>&amp;tid=<?php echo $_G['tid'];?>&amp;extra=<?php echo $extra;?>&amp;replysubmit=yes"
  148. <?php } elseif($_GET['action'] == 'edit') { ?>action="forum.php?mod=post&amp;action=edit&amp;extra=<?php echo $extra;?>&amp;editsubmit=yes" <?php echo $enctype;?>
  149. <?php } ?>
  150. onsubmit="return validate(this)">
  151. <div id="ct" class="ct2_a ct2_a_r wp cl">
  152. <div class="mn">
  153. <input type="hidden" name="formhash" id="formhash" value="<?php echo FORMHASH;?>" />
  154. <input type="hidden" name="posttime" id="posttime" value="<?php echo TIMESTAMP;?>" />
  155. <?php if($_GET['action'] == 'edit') { ?>
  156. <input type="hidden" name="delattachop" id="delattachop" value="0" />
  157. <?php } if(!empty($_GET['modthreadkey'])) { ?><input type="hidden" name="modthreadkey" id="modthreadkey" value="<?php echo $_GET['modthreadkey'];?>" /><?php } ?>
  158. <input type="hidden" name="wysiwyg" id="<?php echo $editorid;?>_mode" value="<?php echo $editormode;?>" />
  159. <?php if($_GET['action'] == 'reply') { ?>
  160. <input type="hidden" name="noticeauthor" value="<?php echo $noticeauthor;?>" />
  161. <input type="hidden" name="noticetrimstr" value="<?php echo $noticetrimstr;?>" />
  162. <input type="hidden" name="noticeauthormsg" value="<?php echo $noticeauthormsg;?>" />
  163. <?php if($reppid) { ?>
  164. <input type="hidden" name="reppid" value="<?php echo $reppid;?>" />
  165. <?php } if($_GET['reppost']) { ?>
  166. <input type="hidden" name="reppost" value="<?php echo $_GET['reppost'];?>" />
  167. <?php } elseif($_GET['repquote']) { ?>
  168. <input type="hidden" name="reppost" value="<?php echo $_GET['repquote'];?>" />
  169. <?php } } if($_GET['action'] == 'edit') { ?>
  170. <input type="hidden" name="fid" id="fid" value="<?php echo $_G['fid'];?>" />
  171. <input type="hidden" name="tid" value="<?php echo $_G['tid'];?>" />
  172. <input type="hidden" name="pid" value="<?php echo $pid;?>" />
  173. <input type="hidden" name="page" value="<?php echo $_GET['page'];?>" />
  174. <?php } if($special) { ?>
  175. <input type="hidden" name="special" value="<?php echo $special;?>" />
  176. <?php } if($specialextra) { ?>
  177. <input type="hidden" name="specialextra" value="<?php echo $specialextra;?>" />
  178. <?php } ?>
  179. <div class="bm bw0 cl"<?php if(!$showthreadsorts && !$adveditor) { ?> id="editorbox"<?php } ?>>
  180. <?php if($_GET['action'] == 'newthread') { ?>
  181. <ul class="tb cl mbw">
  182. <?php if($savecount) { ?>
  183. <li class="y"><a id="draftlist" href="javascript:;" class="xi2" onmouseover="showMenu({'ctrlid':'draftlist','ctrlclass':'a','duration':2,'pos':'34'})">草稿箱(<strong><?php echo $savecount;?></strong>)</a></li>
  184. <?php } if(!$_G['forum']['threadsorts']['required'] && !$_G['forum']['allowspecialonly']) { ?><li<?php echo $postspecialcheck['0'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread')">发表帖子</a></li><?php } if(is_array($_G['forum']['threadsorts']['types'])) foreach($_G['forum']['threadsorts']['types'] as $tsortid => $name) { ?><li<?php if($sortid == $tsortid) { ?> class="a"<?php } ?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&sortid=<?php echo $tsortid;?>')"><?php echo strip_tags($name);; ?></a></li>
  185. <?php } if($_G['group']['allowpostpoll']) { ?><li<?php echo $postspecialcheck['1'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=1')">发起投票</a></li><?php } if($_G['group']['allowpostreward']) { ?><li<?php echo $postspecialcheck['3'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=3')">发布悬赏</a></li><?php } if($_G['group']['allowpostdebate']) { ?><li<?php echo $postspecialcheck['5'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=5')">发起辩论</a></li><?php } if($_G['group']['allowpostactivity']) { ?><li<?php echo $postspecialcheck['4'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=4')">发起活动</a></li><?php } if($_G['group']['allowposttrade']) { ?><li<?php echo $postspecialcheck['2'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=2')">出售商品</a></li><?php } if($_G['setting']['threadplugins']) { if(is_array($_G['forum']['threadplugin'])) foreach($_G['forum']['threadplugin'] as $tpid) { if(array_key_exists($tpid, $_G['setting']['threadplugins']) && @in_array($tpid, $_G['group']['allowthreadplugin'])) { ?>
  186. <li<?php if($specialextra==$tpid) { ?> class="a"<?php } ?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&specialextra=<?php echo $tpid;?>')"><?php echo $_G['setting']['threadplugins'][$tpid]['name'];?></a></li>
  187. <?php } } } ?>
  188. </ul>
  189. <div id="draftlist_menu" style="display:none">
  190. <ul class="xl xl1">
  191. <?php if($savethreads) { if(is_array($savethreads)) foreach($savethreads as $savethread) { ?><li>
  192. <label>[<a href="javascript:;" title="引用" onclick="insertsave(<?php echo $savethread['pid'];?>)">引用</a>]</label>
  193. <a href="forum.php?mod=post&amp;action=edit&amp;fid=<?php echo $savethread['fid'];?>&amp;tid=<?php echo $savethread['tid'];?>&amp;pid=<?php echo $savethread['pid'];?>" class="xi2" target="_blank"><?php echo $savethread['subject'];?></a>
  194. <span class="xg1"><?php echo $savethread['dateline'];?></span>
  195. </li>
  196. <?php } } if($savethreadothers) { if(is_array($savethreadothers)) foreach($savethreadothers as $savethread) { ?><li>
  197. <label>[<a href="javascript:;" title="引用" onclick="insertsave(<?php echo $savethread['pid'];?>)">引用</a>]</label>
  198. <a href="forum.php?mod=post&amp;action=edit&amp;fid=<?php echo $savethread['fid'];?>&amp;tid=<?php echo $savethread['tid'];?>&amp;pid=<?php echo $savethread['pid'];?>" class="xi2" target="_blank"><?php echo $savethread['subject'];?></a>
  199. <span class="xg1"><?php echo $savethread['dateline'];?></span>
  200. </li>
  201. <?php } } ?>
  202. <li class="xi2"><a href="forum.php?mod=guide&amp;view=my&amp;type=thread&amp;filter=save&amp;fid=0" target="_blank">查看所有草稿</a></li>
  203. </ul>
  204. </div>
  205. <?php } elseif($_GET['action'] == 'edit' && $isfirstpost && !$thread['sortid']) { ?>
  206. <ul class="tb cl mbw">
  207. <li<?php if(!$sortid) { ?> class="a"<?php } ?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=edit&tid=<?php echo $_G['tid'];?>&pid=<?php echo $pid;?>')"><?php echo $actiontitle;?></a></li>
  208. <?php if($_GET['action'] == 'edit' && $isfirstpost && !$thread['sortid']) { if(is_array($_G['forum']['threadsorts']['types'])) foreach($_G['forum']['threadsorts']['types'] as $tsortid => $name) { ?><li<?php if($sortid == $tsortid) { ?> class="a"<?php } ?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=edit&tid=<?php echo $_G['tid'];?>&pid=<?php echo $pid;?>&sortid=<?php echo $tsortid;?>')"><?php echo strip_tags($name);; ?></a></li>
  209. <?php } } ?>
  210. </ul>
  211. <?php } ?>
  212. <div id="postbox">
  213. <?php if($_GET['action'] == 'newthread' && $_G['setting']['sitemessage']['newthread'] || $_GET['action'] == 'reply' && $_G['setting']['sitemessage']['reply']) { ?>
  214. <span id="custominfo" class="y cur1<?php if($_GET['action'] != 'reply') { ?> mtn<?php } ?>">&nbsp;<img src="<?php echo IMGDIR;?>/info_small.gif" alt="帮助" /></span>
  215. <?php } ?>
  216. <?php if(!empty($_G['setting']['pluginhooks']['post_top'])) echo $_G['setting']['pluginhooks']['post_top'];?><div class="pbt cl">
  217. <?php if($sortid) { ?>
  218. <input type="hidden" name="sortid" value="<?php echo $sortid;?>" />
  219. <?php } if($isfirstpost && !empty($_G['forum']['threadtypes']['types'])) { ?>
  220. <div class="ftid">
  221. <?php if($_G['forum']['ismoderator'] || empty($_G['forum']['threadtypes']['moderators'][$thread['typeid']])) { ?>
  222. <select name="typeid" id="typeid" width="80">
  223. <option value="0">选择主题分类</option><?php if(is_array($_G['forum']['threadtypes']['types'])) foreach($_G['forum']['threadtypes']['types'] as $typeid => $name) { if(empty($_G['forum']['threadtypes']['moderators'][$typeid]) || $_G['forum']['ismoderator']) { ?>
  224. <option value="<?php echo $typeid;?>"<?php if($thread['typeid'] == $typeid || $_GET['typeid'] == $typeid) { ?> selected="selected"<?php } ?>><?php echo strip_tags($name);; ?></option>
  225. <?php } } ?>
  226. </select>
  227. <?php } else { ?>
  228. [<?php echo strip_tags($_G['forum']['threadtypes']['types'][$thread['typeid']]);; ?>]
  229. <?php } ?>
  230. </div>
  231. <?php } ?>
  232. <div class="z">
  233. <?php if($_GET['action'] == 'reply' && !empty($_GET['addtrade']) || $_GET['action'] == 'edit' && $thread['special'] == 2 && !$postinfo['first']) { ?>
  234. <input name="subject" type="hidden" value="" />
  235. <?php } else { if($_GET['action'] != 'reply') { ?>
  236. <span><input type="text" name="subject" id="subject" class="px" value="<?php echo $postinfo['subject'];?>" <?php if($_GET['action'] == 'newthread') { ?>onblur="if($('tags')){relatekw('-1','-1'<?php if($_G['group']['allowposttag']) { ?>,function(){extraCheck(4)}<?php } ?>);doane();}"<?php } ?> onkeyup="strLenCalc(this, 'checklen', 80);" style="width: 25em" tabindex="1" /></span>
  237. <?php } else { ?>
  238. <span id="subjecthide" class="z">RE: <?php echo $thread['subject'];?> [<a href="javascript:;" onclick="display('subjecthide');display('subjectbox');$('subject').value='RE: <?php echo dhtmlspecialchars(str_replace('\'', '\\\'', $thread['subject'])); ?>';display('subjectchk');strLenCalc($('subject'), 'checklen', 80);return false;">修改</a>]</span>
  239. <span id="subjectbox" style="display:none"><input type="text" name="subject" id="subject" class="px" value="" onkeyup="strLenCalc(this, 'checklen', 80);" style="width: 25em" /></span>
  240. <?php } ?>
  241. <span id="subjectchk"<?php if($_GET['action'] == 'reply') { ?> style="display:none"<?php } ?>>还可输入 <strong id="checklen">80</strong> 个字符</span>
  242. <?php } if($_GET['action'] == 'newthread' && $modnewthreads) { ?> <span class="xg1 xw0">(需审核)</span><?php } if($_GET['action'] == 'reply' && $modnewreplies) { ?> <span class="xg1 xw0">(需审核)</span><?php } if($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4) { ?> <span class="xg1 xw0">(草稿)</span><?php } ?>
  243. </div>
  244. </div>
  245. <?php if(!$isfirstpost && $thread['special'] == 5 && empty($firststand) && $_GET['action'] != 'edit') { ?>
  246. <div class="pbt cl">
  247. <div class="ftid">
  248. <select name="stand" id="stand">
  249. <option value="">选择观点</option>
  250. <option value="0">中立</option>
  251. <option value="1"<?php if($stand == 1) { ?> selected="selected"<?php } ?>>正方</option>
  252. <option value="2"<?php if($stand == 2) { ?> selected="selected"<?php } ?>>反方</option>
  253. </select>
  254. </div>
  255. </div>
  256. <?php } ?>
  257. <div id="attachnotice_attach" class="tbms mbm xl" style="display:none">
  258. 您有 <span id="unusednum_attach"></span> 个未使用的附件 &nbsp; <a href="javascript:;" class="xi2" onclick="attachoption('attach', 2);" />查看</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('attach', 1)">使用</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('attach', 0)">删除</a>
  259. <div id="unusedlist_attach" style="display:none"></div>
  260. </div>
  261. <div id="attachnotice_img" class="tbms mbm xl" style="display:none">
  262. 您有 <span id="unusednum_img"></span> 个未使用的图片 &nbsp; <a href="javascript:;" class="xi2" onclick="attachoption('img', 2);" />查看</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('img', 1)">使用</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('img', 0)">删除</a>
  263. <div id="unusedlist_img" style="display:none"></div>
  264. </div>
  265. <?php if($showthreadsorts) { ?>
  266. <div class="exfm cl"><?php include template('forum/post_sortoption'); ?></div>
  267. <?php } elseif($adveditor) { if($special == 1) { include template('forum/post_poll'); } elseif($special == 2 && ($_GET['action'] != 'edit' || ($_GET['action'] == 'edit' && ($thread['authorid'] == $_G['uid'] && $_G['group']['allowposttrade'] || $_G['group']['allowedittrade'])))) { ?><p class="xg1">添加商品信息完成后可在本帖中继续添加多个商品</p><?php include template('forum/post_trade'); } elseif($special == 3) { include template('forum/post_reward'); } elseif($special == 4) { include template('forum/post_activity'); } elseif($special == 5) { include template('forum/post_debate'); } elseif($specialextra) { ?><div class="specialpost s_clear"><?php echo $threadplughtml;?></div>
  268. <?php } } if($_GET['action'] == 'reply' && $quotemessage) { ?>
  269. <div class="pbt cl"><?php echo $quotemessage;?></div>
  270. <?php } ?><div id="<?php echo $editorid;?>_body_loading"><img src="<?php echo IMGDIR;?>/loading.gif" width="16" height="16" class="vm" /> 请稍后 ...</div>
  271. <div class="edt" id="<?php echo $editorid;?>_body" style="display: none">
  272. <div id="<?php echo $editorid;?>_controls" class="bar">
  273. <div class="y">
  274. <div class="b2r nbl nbr" id="<?php echo $editorid;?>_adv_5">
  275. <p>
  276. <a id="<?php echo $editorid;?>_undo" title="撤销">Undo</a>
  277. </p>
  278. <p>
  279. <a id="<?php echo $editorid;?>_redo" title="重做">Redo</a>
  280. </p>
  281. </div>
  282. <div class="z">
  283. <span class="mbn"><a id="<?php echo $editorid;?>_fullswitcher"></a><a id="<?php echo $editorid;?>_simple"></a></span>
  284. <label id="<?php echo $editorid;?>_switcher" class="bar_swch ptn"><input id="<?php echo $editorid;?>_switchercheck" type="checkbox" class="pc" name="checkbox" value="0" <?php if(!$editor['editormode']) { ?>checked="checked"<?php } ?> onclick="switchEditor(this.checked?0:1)" />纯文本</label>
  285. </div>
  286. </div>
  287. <?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_right'])) { ?>
  288. <div class="y"><?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_right'])) echo $_G['setting']['pluginhooks']['post_editorctrl_right'];?></div>
  289. <?php } ?>
  290. <div id="<?php echo $editorid;?>_button" class="btn cl">
  291. <div class="b2r nbr nbl" id="<?php echo $editorid;?>_adv_s2">
  292. <a id="<?php echo $editorid;?>_fontname" class="dp" title="设置字体" menupos="43!"><span id="<?php echo $editorid;?>_font">字体</span></a>
  293. <a id="<?php echo $editorid;?>_fontsize" class="dp" title="设置文字大小" menupos="43!" menuwidth="25"><span id="<?php echo $editorid;?>_size">大小</span></a>
  294. <span id="<?php echo $editorid;?>_adv_1">
  295. <a id="<?php echo $editorid;?>_inserthorizontalrule" title="分隔线">Hr</a>
  296. <br />
  297. </span>
  298. <a id="<?php echo $editorid;?>_bold" title="文字加粗">B</a>
  299. <a id="<?php echo $editorid;?>_italic" title="文字斜体">I</a>
  300. <a id="<?php echo $editorid;?>_underline" title="文字加下划线">U</a>
  301. <a id="<?php echo $editorid;?>_forecolor" title="设置文字颜色">Color</a>
  302. <a id="<?php echo $editorid;?>_backcolor" title="设置文字背景色">BgColor</a>
  303. <a id="<?php echo $editorid;?>_url" title="添加链接">Url</a>
  304. <span id="<?php echo $editorid;?>_adv_8">
  305. <a id="<?php echo $editorid;?>_unlink" title="移除链接">Unlink</a>
  306. </span>
  307. </div>
  308. <div class="b2r nbl" id="<?php echo $editorid;?>_adv_2">
  309. <p id="<?php echo $editorid;?>_adv_3">
  310. <a id="<?php echo $editorid;?>_tbl" title="添加表格">Table</a>
  311. </p>
  312. <p>
  313. <a id="<?php echo $editorid;?>_removeformat" title="清除文本格式">Removeformat</a>
  314. </p>
  315. </div>
  316. <div class="b2r">
  317. <p>
  318. <a id="<?php echo $editorid;?>_autotypeset" title="自动排版">Autotypeset</a>
  319. <a id="<?php echo $editorid;?>_justifyleft" title="居左">Left</a>
  320. <a id="<?php echo $editorid;?>_justifycenter" title="居中">Center</a>
  321. <a id="<?php echo $editorid;?>_justifyright" title="居右">Right</a>
  322. </p>
  323. <p id="<?php echo $editorid;?>_adv_4">
  324. <a id="<?php echo $editorid;?>_floatleft" title="左浮动">FloatLeft</a>
  325. <a id="<?php echo $editorid;?>_floatright" title="右浮动">FloatRight</a>
  326. <a id="<?php echo $editorid;?>_insertorderedlist" title="排序的列表">Orderedlist</a>
  327. <a id="<?php echo $editorid;?>_insertunorderedlist" title="未排序列表">Unorderedlist</a>
  328. </p>
  329. </div>
  330. <div class="b1r" id="<?php echo $editorid;?>_adv_s1">
  331. <a id="<?php echo $editorid;?>_sml" title="添加表情">表情</a>
  332. <div id="<?php echo $editorid;?>_imagen" style="display:none">!</div>
  333. <a id="<?php echo $editorid;?>_image" title="添加图片" menupos="00" menuwidth="600">图片</a>
  334. <?php if($_G['group']['allowpostattach']) { ?>
  335. <div id="<?php echo $editorid;?>_attachn" style="display:none">!</div>
  336. <a id="<?php echo $editorid;?>_attach" title="添加附件" menupos="00" menuwidth="600">附件</a>
  337. <?php } if($_G['forum']['allowmediacode'] && $_G['group']['allowmediacode']) { ?>
  338. <a id="<?php echo $editorid;?>_aud" title="添加音乐">音乐</a>
  339. <a id="<?php echo $editorid;?>_vid" title="添加视频">视频</a>
  340. <a id="<?php echo $editorid;?>_fls" title="添加 Flash">Flash</a>
  341. <?php } if(($_GET['action'] == 'newthread' || $_GET['action'] == 'reply' || $_GET['action'] == 'edit') && $_G['group']['allowat']) { ?>
  342. <a id="<?php echo $editorid;?>_at" title="@好友和关注的人" menupos="43" menuwidth="600">@朋友</a>
  343. <?php } ?>
  344. <?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_left'])) echo $_G['setting']['pluginhooks']['post_editorctrl_left'];?>
  345. </div>
  346. <div class="b2r" id="<?php echo $editorid;?>_adv_6">
  347. <p>
  348. <a id="<?php echo $editorid;?>_code" title="添加代码文字">代码</a>
  349. <?php if($isfirstpost) { ?><a id="<?php echo $editorid;?>_free" title="添加免费信息">Free</a><?php } ?>
  350. <a id="<?php echo $editorid;?>_pasteword" title="从 Word 粘贴内容">Word 粘贴</a>
  351. <?php if($_G['group']['allowdownremoteimg']) { if(!($_G['setting']['magicstatus'] && !empty($_G['setting']['magics']['doodle']))) { } ?><a id="<?php echo $editorid;?>_downremoteimg" title="下载远程图片">下载图片</a><?php } ?>
  352. </p>
  353. <p>
  354. <a id="<?php echo $editorid;?>_quote" title="添加引用文字">引用</a>
  355. <?php if($isfirstpost) { ?><a id="<?php echo $editorid;?>_hide" title="添加隐藏内容"<?php if(!$_G['group']['allowhidecode']) { ?> style="visibility:hidden;"<?php } ?>>Hide</a><?php } if($_G['setting']['magicstatus'] && !empty($_G['setting']['magics']['doodle'])) { ?>
  356. <a id="a_magic_doodle" href="home.php?mod=magic&amp;mid=doodle&amp;showid=comment_doodle&amp;target=<?php echo $editorid;?>_textarea&amp;from=forumeditor" class="cst" onclick="showWindow(this.id, this.href, 'get', 0)"><img src="<?php echo STATICURL;?>image/magic/doodle.small.gif" alt="doodle" title="<?php echo $_G['setting']['magics']['doodle'];?>" style="margin-top:2px" /></a>
  357. <?php } ?>
  358. </p>
  359. </div>
  360. <?php if($_G['cache']['bbcodes_display'][$_G['groupid']]) { ?>
  361. <div class="b2r cst nbb" id="<?php echo $editorid;?>_cst" style="display:none">
  362. <?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_top'])) echo $_G['setting']['pluginhooks']['post_editorctrl_top'];?><?php if(is_array($_G['cache']['bbcodes_display'][$_G['groupid']])) foreach($_G['cache']['bbcodes_display'][$_G['groupid']] as $tag => $bbcode) { ?><a id="<?php echo $editorid;?>_cst<?php echo $bbcode['params'];?>_<?php echo $tag;?>" class="cst" title="<?php echo $bbcode['explanation'];?>"><img src="<?php echo STATICURL;?>image/common/<?php echo $bbcode['icon'];?>" title="<?php echo $bbcode['explanation'];?>" alt="<?php echo $tag;?>" /></a>
  363. <?php } ?>
  364. <?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_bottom'])) echo $_G['setting']['pluginhooks']['post_editorctrl_bottom'];?>
  365. </div>
  366. <?php } ?>
  367. </div>
  368. </div>
  369. <div id="rstnotice" class="ntc_l bbs" style="display:none">
  370. <a href="javascript:;" title="清除内容" class="d y" onclick="userdataoption(0)">close</a>您有上次未提交成功的数据 <a class="xi2" href="javascript:;" onclick="userdataoption(1)"><strong>恢复数据</strong></a>
  371. </div>
  372. <div class="area">
  373. <textarea name="<?php echo $editor['textarea'];?>" id="<?php echo $editorid;?>_textarea" class="pt" rows="15" tabindex="2"><?php echo $editor['value'];?></textarea>
  374. </div><link rel="stylesheet" type="text/css" href="data/cache/style_<?php echo STYLEID;?>_editor.css?<?php echo VERHASH;?>" />
  375. <script src="<?php echo $_G['setting']['jspath'];?>editor.js?<?php echo VERHASH;?>" type="text/javascript"></script>
  376. <script src="<?php echo $_G['setting']['jspath'];?>bbcode.js?<?php echo VERHASH;?>" type="text/javascript"></script>
  377. <script type="text/javascript">
  378. var editorid = '<?php echo $editorid;?>';
  379. var textobj = $(editorid + '_textarea');
  380. var wysiwyg = (BROWSER.ie || BROWSER.firefox || (BROWSER.opera >= 9)) && parseInt('<?php echo $editor['editormode'];?>') == 1 ? 1 : 0;
  381. var allowswitcheditor = parseInt('<?php echo $editor['allowswitcheditor'];?>');
  382. var allowhtml = parseInt('<?php echo $editor['allowhtml'];?>');
  383. var allowsmilies = parseInt('<?php echo $editor['allowsmilies'];?>');
  384. var allowbbcode = parseInt('<?php echo $editor['allowbbcode'];?>');
  385. var allowimgcode = parseInt('<?php echo $editor['allowimgcode'];?>');
  386. var simplodemode = parseInt('<?php if($editor['simplemode'] > 0) { ?>1<?php } else { ?>0<?php } ?>');
  387. var fontoptions = new Array("宋体", "新宋体", "黑体", "微软雅黑", "Arial", "Verdana", "simsun", "Helvetica", "Trebuchet MS", "Tahoma", "Impact", "Times New Roman", "仿宋,仿宋_GB2312", "楷体,楷体_GB2312");
  388. var smcols = <?php echo $_G['setting']['smcols'];?>;
  389. var custombbcodes = new Array();
  390. <?php if($_G['cache']['bbcodes_display'][$_G['groupid']]) { if(is_array($_G['cache']['bbcodes_display'][$_G['groupid']])) foreach($_G['cache']['bbcodes_display'][$_G['groupid']] as $tag => $bbcode) { ?>custombbcodes["<?php echo $tag;?>"] = {'prompt' : '<?php echo $bbcode['prompt'];?>'};
  391. <?php } } ?>
  392. </script>
  393. <div id="<?php echo $editorid;?>_bbar" class="bbar">
  394. <em id="<?php echo $editorid;?>_tip"></em>
  395. <span id="<?php echo $editorid;?>_svdsecond"></span>
  396. <a href="javascript:;" onclick="discuzcode('svd');return false;" id="<?php echo $editorid;?>_svd">保存数据</a> |
  397. <a href="javascript:;" onclick="discuzcode('rst');return false;" id="<?php echo $editorid;?>_rst">恢复数据</a> &nbsp;&nbsp;
  398. <?php if($editor['allowchecklength']) { ?>
  399. <a href="javascript:;" onclick="discuzcode('chck');return false;" id="<?php echo $editorid;?>_chck">字数检查</a> |
  400. <?php } if($editor['allowtopicreset']) { ?>
  401. <a href="javascript:;" onclick="discuzcode('tpr');return false;" id="<?php echo $editorid;?>_tpr">清除内容</a> &nbsp;&nbsp;
  402. <?php } if($editor['allowresize']) { ?>
  403. <span id="<?php echo $editorid;?>_resize"><a href="javascript:;" onclick="editorsize('+');return false;">加大编辑框</a> | <a href="javascript:;" onclick="editorsize('-');return false;">缩小编辑框</a><img src="<?php echo STATICURL;?>image/editor/resize.gif" onmousedown="editorresize(event)" /></span>
  404. <?php } ?>
  405. </div></div>
  406. <?php if(!empty($_G['setting']['pluginhooks']['post_middle'])) echo $_G['setting']['pluginhooks']['post_middle'];?>
  407. <?php if($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost) { ?><div id="post_extra" class="ptm cl">
  408. <div id="post_extra_tb" class="cl" onselectstart="return false">
  409. <?php if($_G['group']['allowreplycredit'] && !in_array($special, array(2, 3))) { if($_GET['action'] == 'newthread') { ?><?php $extcreditstype = $_G['setting']['creditstransextra'][10];?><?php } else { ?><?php $extcreditstype = $replycredit_rule['extcreditstype'] ? $replycredit_rule['extcreditstype'] : $_G['setting']['creditstransextra'][10];?><?php } ?><?php $userextcredit = getuserprofile('extcredits'.$extcreditstype);?><?php if(($_GET['action'] == 'newthread' && $userextcredit > 0) || ($_GET['action'] == 'edit' && $isorigauthor && isfirstpost)) { ?>
  410. <label id="extra_replycredit_b" onclick="showExtra('extra_replycredit')"><span id="extra_replycredit_chk">回帖奖励</span></label>
  411. <?php } } if($_G['group']['allowsetreadperm']) { ?>
  412. <label id="extra_readperm_b" onclick="showExtra('extra_readperm')"><span id="extra_readperm_chk">阅读权限</span></label>
  413. <?php } if($_G['group']['maxprice'] && !$special) { ?>
  414. <label id="extra_price_b" onclick="showExtra('extra_price')"><span id="extra_price_chk">售价</span></label>
  415. <?php } if(($_GET['action'] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET['action'] == 'edit' && getstatus($thread['status'], 3))) { ?>
  416. <label id="extra_rushreplyset_b" onclick="showExtra('extra_rushreplyset')"><span id="extra_rushreplyset_chk">抢楼</span></label>
  417. <?php } if($_G['group']['allowposttag']) { ?>
  418. <label id="extra_tag_b" onclick="showExtra('extra_tag')"><span id="extra_tag_chk">设置主题标签</span></label>
  419. <?php } if($_G['group']['allowsetpublishdate'] && ($_GET['action'] == 'newthread' || ($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))) { ?>
  420. <label id="extra_pubdate_b" onclick="showExtra('extra_pubdate')"><span id="extra_pubdate_chk">定时发布</span></label>
  421. <?php } ?>
  422. </div>
  423. <div id="post_extra_c">
  424. <?php if(!empty($userextcredit)) { ?>
  425. <div id="extra_replycredit_c" class="exfm cl" style="display: none;">
  426. <div><label>每次回帖奖励: <input type="text" name="replycredit_extcredits" id="replycredit_extcredits" class="px pxs vm" value="<?php if($replycredit_rule['extcredits'] && $thread['replycredit'] > 0) { ?><?php echo $replycredit_rule['extcredits'];?><?php } else { ?>0<?php } ?>" onkeyup="javascript:getreplycredit();" onblur="extraCheck(0)" /> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?><?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?></label><span class="xg1">(留空或填 0 为不奖励)</span> , <label>奖励 <input type="text" name="replycredit_times" id="replycredit_times" class="px pxs vm" value="<?php if($replycredit_rule['lasttimes']) { ?><?php echo $replycredit_rule['lasttimes'];?><?php } else { ?>1<?php } ?>" onkeyup="javascript:getreplycredit();" onblur="extraCheck(0)" /> </label>, <label>每人最多可获得 <select id="replycredit_membertimes" name="replycredit_membertimes" class="ps vm"><?php for($i=1;$i<11;$i++) {;?><option value="<?php echo $i;?>"<?php if($replycredit_rule['membertimes'] == $i) { ?> selected="selected"<?php } ?>><?php echo $i;?></option><?php };?></select> </label>, <label>中奖率 <select id="replycredit_random" name="replycredit_random" class="ps vm">
  427. <?php for($i=100;$i>9;$i=$i-10) {;?><option value="<?php echo $i;?>"<?php if($replycredit_rule['random'] == $i) { ?> selected="selected"<?php } ?>><?php echo $i;?></option><?php };?></select> %</label></div>
  428. <div class="xg1">回帖奖励总额: <span id="replycredit_sum"><?php if($thread['replycredit']) { ?><?php echo $thread['replycredit'];?><?php } else { ?>0<?php } ?></span> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?><?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?><?php if($thread['replycredit']) { ?><span class="xg1">(本帖尚有 <?php echo $thread['replycredit'];?> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?><?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?>)</span><?php } ?>, <span id="replycredit">税后支付 <?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?> 0</span> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?>, 您有 <?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?> <?php echo $userextcredit;?> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?></div>
  429. </div>
  430. <?php } if($_G['group']['allowsetreadperm']) { ?>
  431. <div id="extra_readperm_c" class="exfm cl" style="display:none">
  432. <table cellspacing="0" cellpadding="0">
  433. <tr>
  434. <td class="xw1">阅读权限</td>
  435. <td>
  436. <select name="readperm" id="readperm" class="ps" style="width:90px" onchange="extraCheck(1)">
  437. <option value="">不限</option><?php if(is_array($_G['cache']['groupreadaccess'])) foreach($_G['cache']['groupreadaccess'] as $val) { ?><option value="<?php echo $val['readaccess'];?>" title="阅读权限: <?php echo $val['readaccess'];?>"<?php if($thread['readperm'] == $val['readaccess']) { ?> selected="selected"<?php } ?>><?php echo $val['grouptitle'];?></option>
  438. <?php } ?>
  439. <option value="255">最高权限</option>
  440. </select>
  441. <span class="xg1">阅读权限按由高到低排列高于或等于选中组的用户才可以阅读</span>
  442. </td>
  443. </tr>
  444. </table>
  445. </div>
  446. <?php } if($_G['group']['maxprice'] && !$special) { ?>
  447. <div id="extra_price_c" class="exfm cl" style="display:none">
  448. 售价:
  449. <input type="text" id="price" name="price" class="px pxs" value="<?php echo $thread['pricedisplay'];?>" onblur="extraCheck(2)" /> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit'];?><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['title'];?>
  450. <span class="xg1">(最高 <?php echo $_G['group']['maxprice'];?> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit'];?>)</span>
  451. <?php if($_G['group']['maxprice'] && ($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost)) { if($_G['setting']['maxincperthread']) { ?><p class="xg1">主题出售最高收入上限为 <?php echo $_G['setting']['maxincperthread'];?> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit'];?>&nbsp;&nbsp;&nbsp;&nbsp;</p><?php } if($_G['setting']['maxchargespan']) { ?><p class="xg1">主题最多能销售 <?php echo $_G['setting']['maxchargespan'];?> 个小时<?php if($_GET['action'] == 'edit' && $freechargehours) { ?>本主题还能销售 <?php echo $freechargehours;?> 个小时<?php } ?></p><?php } } ?>
  452. </div>
  453. <?php } if($_G['group']['allowposttag']) { ?>
  454. <div id="extra_tag_c" class="exfm cl" style="display: none;">
  455. <table cellspacing="0" cellpadding="0">
  456. <tr>
  457. <td class="xw1">标签 </td>
  458. <td>
  459. <input type="text" class="px vm" size="60" id="tags" name="tags" value="<?php echo $postinfo['tag'];?>" onblur="extraCheck(4)" />
  460. <a href="javascript:;" id="clickbutton[]" class="xi2" onclick="relatekw('-1','-1');doane();">自动获取</a><span class="pipe">|</span><a href="javascript:;" id="choosetag" class="xi2" onclick="showWindow(this.id, 'forum.php?mod=tag', 'get', 0)">选择标签</a>
  461. </td>
  462. </tr>
  463. <tr>
  464. <td></td>
  465. <td>
  466. <p class="xg1">用逗号或空格隔开多个标签最多可填写 5 </p><?php $recent_use_tag = recent_use_tag();?><?php if($recent_use_tag) { ?>
  467. <p class="mtn">最近使用标签:&nbsp;<?php $tagi = 0;?><?php if(is_array($recent_use_tag)) foreach($recent_use_tag as $var) { if($tagi) { ?>, <?php } ?><a href="javascript:;" class="xi2" onclick="$('tags').value == '' ? $('tags').value += '<?php echo $var;?>' : $('tags').value += ',<?php echo $var;?>';extraCheck(4);doane();"><?php echo $var;?></a><?php $tagi++;?><?php } ?>
  468. </p>
  469. <?php } ?>
  470. </td>
  471. </tr>
  472. </table>
  473. </div>
  474. <?php } if(($_GET['action'] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET['action'] == 'edit' && getstatus($thread['status'], 3))) { ?>
  475. <div class="exfm cl" id="extra_rushreplyset_c" style="display: none;">
  476. <div class="sinf sppoll z">
  477. <dl>
  478. <dt><span style="width: 4em">&nbsp;</span></dt>
  479. <dd><label for="rushreply"><input type="checkbox" name="rushreply" id="rushreply" class="pc vm" value="1" <?php if($_GET['action'] == 'edit' && getstatus($thread['status'], 3)) { ?>disabled="disabled" checked="checked"<?php } ?> onclick="extraCheck(3)" /> 将该帖设为抢楼帖</label></dd>
  480. <dt><label>抢楼时间:</label></dt>
  481. <dd>
  482. <div>
  483. <input type="text" name="rushreplyfrom" id="rushreplyfrom" class="px" onclick="showcalendar(event, this, true)" autocomplete="off" value="<?php echo $postinfo['rush']['starttimefrom'];?>" onkeyup="$('rushreply').checked = true;" /><span> ~ </span><input type="text" onclick="showcalendar(event, this, true)" autocomplete="off" id="rushreplyto" name="rushreplyto" class="px" value="<?php echo $postinfo['rush']['starttimeto'];?>" onkeyup="$('rushreply').checked = true;" />
  484. </div>
  485. </dd>
  486. <dt><label>奖励楼层:</label></dt>
  487. <dd>
  488. <input type="text" name="rewardfloor" id="rewardfloor" class="px oinf" value="<?php echo $postinfo['rush']['rewardfloor'];?>" onkeyup="$('rushreply').checked = true;" />
  489. <p class="xg1">多楼层用逗号隔开,*号可匹配任意数或空值,:8,88,*88</p>
  490. </dd>
  491. </dl>
  492. </div>
  493. <div class="sadd z">
  494. <dl>
  495. <dt>&nbsp;</dt>
  496. <dd>&nbsp;</dd>
  497. <dt><label for="stopfloor">截止楼层:</label></dt>
  498. <dd>
  499. <input type="text" name="stopfloor" id="stopfloor" class="px" autocomplete="off" value="<?php echo $postinfo['rush']['stopfloor'];?>" onkeyup="$('rushreply').checked = true;" />
  500. </dd>
  501. <dt><label for="creditlimit"><?php if($_G['setting']['creditstransextra']['11']) { ?><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['11']]['title'];?><?php } else { ?>积分<?php } ?>下限:</label></dt>
  502. <dd>
  503. <input type="text" name="creditlimit" id="creditlimit" class="px" autocomplete="off" value="<?php echo $postinfo['rush']['creditlimit'];?>" onkeyup="$('rushreply').checked = true;" />
  504. <p class="xg1"><?php if($_G['setting']['creditstransextra']['11']) { ?>(<?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['11']]['title'];?>)<?php } else { ?>总积分<?php } ?>大于此设置才能参与抢楼可不填</p>
  505. </dd>
  506. </dl>
  507. </div>
  508. </div>
  509. <?php } if($_G['group']['allowsetpublishdate'] && ($_GET['action'] == 'newthread' || ($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))) { ?>
  510. <div class="exfm cl" id="extra_pubdate_c" style="display: none;">
  511. <label><input type="checkbox" name="cronpublish" onclick="if(this.checked) {$('cronpublishdate').click();doane(event,false);};extraCheck(5);hidenFollowBtn(this.checked);" id="cronpublish" value="true" class="pc"<?php if($cronpublish) { ?> checked="checked"<?php } ?> />定时发布</label>
  512. <input type="text" name="cronpublishdate" id="cronpublishdate" class="px" onclick="showcalendar(event, this, true, false, false, true);" autocomplete="off" value="<?php echo $cronpublishdate;?>" onchange="if(this.value) $('cronpublish').checked = true;">
  513. </div>
  514. <?php } ?>
  515. </div>
  516. </div><?php } if($_GET['action'] != 'edit' && checkperm('seccode') && ($secqaacheck || $seccodecheck)) { ?><?php
  517. $sectpl = <<<EOF
  518. <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>
  519. EOF;
  520. ?>
  521. <div class="mtm"><?php $_G['sechashi'] = !empty($_G['cookie']['sechashi']) ? $_G['sechash'] + 1 : 0;
  522. $sechash = 'S'.($_G['inajax'] ? 'A' : '').$_G['sid'].$_G['sechashi'];
  523. $sectpl = !empty($sectpl) ? explode("<sec>", $sectpl) : array('<br />',': ','<br />','');
  524. $sectpldefault = $sectpl;
  525. $sectplqaa = str_replace('<hash>', 'qaa'.$sechash, $sectpldefault);
  526. $sectplcode = str_replace('<hash>', 'code'.$sechash, $sectpldefault);
  527. $secshow = !isset($secshow) ? 1 : $secshow;
  528. $sectabindex = !isset($sectabindex) ? 1 : $sectabindex;?><?php
  529. $__STATICURL = STATICURL;$seccheckhtml = <<<EOF
  530. <input name="sechash" type="hidden" value="{$sechash}" />
  531. EOF;
  532. if($sectpl) { if($secqaacheck) {
  533. $seccheckhtml .= <<<EOF
  534. {$sectplqaa['0']}验证问答{$sectplqaa['1']}<input name="secanswer" id="secqaaverify_{$sechash}" type="text" autocomplete="off" style="width:100px" class="txt px vm" onblur="checksec('qaa', '{$sechash}')" tabindex="{$sectabindex}" />
  535. <a href="javascript:;" onclick="updatesecqaa('{$sechash}');doane(event);" class="xi2">换一个</a>
  536. <span id="checksecqaaverify_{$sechash}"><img src="{$__STATICURL}image/common/none.gif" width="16" height="16" class="vm" /></span>
  537. {$sectplqaa['2']}<span id="secqaa_{$sechash}"></span>
  538. EOF;
  539. if($secshow) {
  540. $seccheckhtml .= <<<EOF
  541. <script type="text/javascript" reload="1">updatesecqaa('{$sechash}');</script>
  542. EOF;
  543. }
  544. $seccheckhtml .= <<<EOF
  545. {$sectplqaa['3']}
  546. EOF;
  547. } if($seccodecheck) {
  548. $seccheckhtml .= <<<EOF
  549. {$sectplcode['0']}验证码{$sectplcode['1']}<input name="seccodeverify" id="seccodeverify_{$sechash}" type="text" autocomplete="off" style="
  550. EOF;
  551. if($_G['setting']['seccodedata']['type'] != 1) {
  552. $seccheckhtml .= <<<EOF
  553. ime-mode:disabled;
  554. EOF;
  555. }
  556. $seccheckhtml .= <<<EOF
  557. width:100px" class="txt px vm" onblur="checksec('code', '{$sechash}')" tabindex="{$sectabindex}" />
  558. <a href="javascript:;" onclick="updateseccode('{$sechash}');doane(event);" class="xi2">换一个</a>
  559. <span id="checkseccodeverify_{$sechash}"><img src="{$__STATICURL}image/common/none.gif" width="16" height="16" class="vm" /></span>
  560. {$sectplcode['2']}<span id="seccode_{$sechash}"></span>
  561. EOF;
  562. if($secshow) {
  563. $seccheckhtml .= <<<EOF
  564. <script type="text/javascript" reload="1">updateseccode('{$sechash}');</script>
  565. EOF;
  566. }
  567. $seccheckhtml .= <<<EOF
  568. {$sectplcode['3']}
  569. EOF;
  570. } }
  571. $seccheckhtml .= <<<EOF
  572. EOF;
  573. ?><?php unset($secshow);?><?php if(empty($secreturn)) { ?><?php echo $seccheckhtml;?><?php } ?></div>
  574. <?php } ?>
  575. <div class="mtm mbm pnpost">
  576. <a href="home.php?mod=spacecp&amp;ac=credit&amp;op=rule&amp;fid=<?php echo $_G['fid'];?>" class="y" target="_blank">本版积分规则</a>
  577. <button type="submit" id="postsubmit" class="pn pnc" value="true" name="<?php if($_GET['action'] == 'newthread') { ?>topicsubmit<?php } elseif($_GET['action'] == 'reply') { ?>replysubmit<?php } elseif($_GET['action'] == 'edit') { ?>editsubmit<?php } ?>">
  578. <?php if($_GET['action'] == 'newthread') { if($special == 0) { ?><span>发表帖子</span>
  579. <?php } elseif($special == 1) { ?><span>发起投票</span>
  580. <?php } elseif($special == 2) { ?><span>出售商品</span>
  581. <?php } elseif($special == 3) { ?><span>发布悬赏</span>
  582. <?php } elseif($special == 4) { ?><span>发起活动</span>
  583. <?php } elseif($special == 5) { ?><span>发起辩论</span>
  584. <?php } elseif($special == 127) { ?>
  585. <span><?php if($buttontext) { ?><?php echo $buttontext;?><?php } else { ?>发表帖子<?php } ?></span>
  586. <?php } } elseif($_GET['action'] == 'reply' && !empty($_GET['addtrade'])) { ?><span>添加商品</span>
  587. <?php } elseif($_GET['action'] == 'reply') { ?><span>参与/回复主题</span>
  588. <?php } elseif($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4) { ?>
  589. <span>发表帖子</span>
  590. <?php } elseif($_GET['action'] == 'edit') { ?><span>保存</span>
  591. <?php } ?>
  592. </button>
  593. <?php if($_G['uid']) { ?>
  594. <input type="hidden" id="postsave" name="save" value="" />
  595. <?php if($_GET['action'] == 'newthread' && !$modnewthreads || $_GET['action'] == 'edit' && $isfirstpost && !$modnewreplies && $thread['displayorder'] == -4) { ?>
  596. <button type="button" id="postsubmit" class="pn" value="true" onclick="$('postsave').value = 1;$('postsubmit').click();"><em>保存草稿</em></button>
  597. <?php } } ?>
  598. <?php if(!empty($_G['setting']['pluginhooks']['post_btn_extra'])) echo $_G['setting']['pluginhooks']['post_btn_extra'];?>
  599. <?php if(helper_access::check_module('follow') && $_GET['action'] != 'edit') { ?>
  600. <span id="adddynamicspan"><label><input type="checkbox" name="adddynamic" id="adddynamic" value="true" class="pc" <?php if($_G['forum']['allowfeed'] && !$_G['tid'] && empty($_G['forum']['viewperm'])) { ?>checked="checked"<?php } ?> />转播给听众</label></span>
  601. <?php } if(!empty($_G['setting']['pluginhooks']['post_sync_method'])) { ?>
  602. <span>
  603. 将此主题同步到:
  604. <?php if(!empty($_G['setting']['pluginhooks']['post_sync_method'])) echo $_G['setting']['pluginhooks']['post_sync_method'];?>
  605. </span>
  606. <?php } if($special == 2) { ?>
  607. <label><input type="checkbox" name="continueadd" value="yes" class="pc" />继续添加商品</label>
  608. <?php } ?>
  609. </div>
  610. <?php if(!empty($_G['setting']['pluginhooks']['post_bottom'])) echo $_G['setting']['pluginhooks']['post_bottom'];?>
  611. </div>
  612. </div>
  613. </div><div id="psd" class="appl">
  614. <h3 class="mbm pbm bbs">附加选项</h3>
  615. <div class="bn">
  616. <?php if(!empty($_G['setting']['pluginhooks']['post_side_top'])) echo $_G['setting']['pluginhooks']['post_side_top'];?>
  617. <?php if(($_G['forum']['allowhtml'] || ($_GET['action'] == 'edit' && ($orig['htmlon'] & 1))) && $_G['group']['allowhtml']) { ?>
  618. <p class="mbn"><input type="checkbox" name="htmlon" id="htmlon" class="pc" value="1" <?php echo $htmloncheck;?> /><label for="htmlon">HTML 代码</label></p>
  619. <?php } else { ?>
  620. <p class="mbn"><input type="checkbox" name="htmlon" id="htmlon" class="pc" value="0" <?php echo $htmloncheck;?> disabled="disabled" /><label for="htmlon">HTML 代码</label></p>
  621. <?php } ?>
  622. <p class="mbn"><input type="checkbox" id="allowimgcode" class="pc" disabled="disabled"<?php if($_G['forum']['allowimgcode']) { ?> checked="checked"<?php } ?> /><label for="allowimgcode">[img] 代码</label></p>
  623. <?php if($_G['forum']['allowimgcode']) { ?>
  624. <p class="mbn"><input type="checkbox" id="allowimgurl" class="pc" checked="checked" /><label for="allowimgurl">解析图片链接</label></p>
  625. <?php } ?>
  626. <p class="mbn"><input type="checkbox" name="parseurloff" id="parseurloff" class="pc" value="1" <?php echo $urloffcheck;?> /><label for="parseurloff">禁用链接识别</label></p>
  627. <p class="mbn"><input type="checkbox" name="smileyoff" id="smileyoff" class="pc" value="1" <?php echo $smileyoffcheck;?> /><label for="smileyoff">禁用表情</label></p>
  628. <p class="mbn"><input type="checkbox" name="bbcodeoff" id="bbcodeoff" class="pc" value="1" <?php echo $codeoffcheck;?> /><label for="bbcodeoff">禁用编辑器代码</label></p>
  629. <hr class="bk" />
  630. <p class="mbn"><input type="checkbox" name="usesig" id="usesig" class="pc" value="1" <?php if(!$_G['group']['maxsigsize']) { ?>disabled <?php } else { ?><?php echo $usesigcheck;?> <?php } ?>/><label for="usesig">使用个人签名</label></p>
  631. <?php if($_GET['action'] != 'edit') { if($_G['group']['allowanonymous']) { ?><p class="mbn"><input type="checkbox" name="isanonymous" id="isanonymous" class="pc" value="1" /><label for="isanonymous">使用匿名发帖</label></p><?php } } else { if($_G['group']['allowanonymous'] || (!$_G['group']['allowanonymous'] && $orig['anonymous'])) { ?><p class="mbn"><input type="checkbox" name="isanonymous" id="isanonymous" class="pc" value="1" <?php if($orig['anonymous']) { ?>checked="checked"<?php } ?> /><label for="isanonymous">使用匿名发帖</label></p><?php } } if($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost) { ?>
  632. <p class="mbn"><input type="checkbox" name="hiddenreplies" id="hiddenr…

Large files files are truncated, but you can click here to view the full file