3_3_forum_forumdisplay_fastpost.tpl.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <?php if(!defined('IN_DISCUZ')) exit('Access Denied');
  2. 0
  3. || checktplrefresh('./template/default/forum/forumdisplay_fastpost.htm', './template/default/common/seditor.htm', 1524717344, '3', './data/template/3_3_forum_forumdisplay_fastpost.tpl.php', './template/wfdsoft_jiaohu', 'forum/forumdisplay_fastpost')
  4. || checktplrefresh('./template/default/forum/forumdisplay_fastpost.htm', './template/default/forum/seccheck_post.htm', 1524717344, '3', './data/template/3_3_forum_forumdisplay_fastpost.tpl.php', './template/wfdsoft_jiaohu', 'forum/forumdisplay_fastpost')
  5. || checktplrefresh('./template/default/forum/forumdisplay_fastpost.htm', './template/default/common/upload.htm', 1524717344, '3', './data/template/3_3_forum_forumdisplay_fastpost.tpl.php', './template/wfdsoft_jiaohu', 'forum/forumdisplay_fastpost')
  6. || checktplrefresh('./template/default/forum/forumdisplay_fastpost.htm', './template/default/common/seccheck.htm', 1524717344, '3', './data/template/3_3_forum_forumdisplay_fastpost.tpl.php', './template/wfdsoft_jiaohu', 'forum/forumdisplay_fastpost')
  7. ;?>
  8. <script type="text/javascript">
  9. var postminchars = parseInt('<?php echo $_G['setting']['minpostsize'];?>');
  10. var postmaxchars = parseInt('<?php echo $_G['setting']['maxpostsize'];?>');
  11. var disablepostctrl = parseInt('<?php echo $_G['group']['disablepostctrl'];?>');
  12. var fid = parseInt('<?php echo $_G['fid'];?>');
  13. </script>
  14. <div id="f_pst" class="bm">
  15. <div class="bm_h">
  16. <h2>快速发帖</h2>
  17. </div>
  18. <div class="bm_c">
  19. <form method="post" autocomplete="off" id="fastpostform" action="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;topicsubmit=yes&amp;infloat=yes&amp;handlekey=fastnewpost" onSubmit="return fastpostvalidate(this)">
  20. <?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_fastpost_content'])) echo $_G['setting']['pluginhooks']['forumdisplay_fastpost_content'];?>
  21. <div id="fastpostreturn" style="margin:-5px 0 5px"></div>
  22. <div class="pbt cl">
  23. <?php if($_G['forum']['threadtypes']['types']) { ?>
  24. <div class="ftid">
  25. <select name="typeid" id="typeid_fast" width="80">
  26. <option value="0" selected="selected">选择主题分类</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']) { ?>
  27. <option value="<?php echo $typeid;?>"><?php echo strip_tags($name);; ?></option>
  28. <?php } } ?>
  29. </select>
  30. </div>
  31. <script type="text/javascript" reload="1">simulateSelect('typeid_fast');</script>
  32. <?php } ?>
  33. <input type="text" id="subject" name="subject" class="px" value="" onkeyup="strLenCalc(this, 'checklen', 80);" tabindex="11" style="width: 25em" />
  34. <span>还可输入 <strong id="checklen">80</strong> 个字符</span>
  35. </div>
  36. <div class="cl">
  37. <?php if($_G['setting']['fastsmilies']) { ?><div id="fastsmiliesdiv" class="y"><div id="fastsmiliesdiv_data"><div id="fastsmilies"></div></div></div><?php } ?>
  38. <div<?php if($_G['setting']['fastsmilies']) { ?> class="hasfsl"<?php } ?> id="fastposteditor">
  39. <div class="tedt">
  40. <div class="bar">
  41. <span class="y">
  42. <?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_fastpost_func_extra'])) echo $_G['setting']['pluginhooks']['forumdisplay_fastpost_func_extra'];?>
  43. <a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>" onclick="switchAdvanceMode(this.href);doane(event);">高级模式</a>
  44. </span><?php $seditor = array('fastpost', array('at', 'bold', 'color', 'img', 'link', 'quote', 'code', 'smilies'), !$allowfastpost ? 1 : 0, $allowpostattach && $allowfastpost ? '<span class="pipe z">|</span><span id="spanButtonPlaceholder">'.lang('template', 'upload').'</span>' : '');?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_fastpost_ctrl_extra'])) echo $_G['setting']['pluginhooks']['forumdisplay_fastpost_ctrl_extra'];?><script src="<?php echo $_G['setting']['jspath'];?>seditor.js?<?php echo VERHASH;?>" type="text/javascript"></script>
  45. <div class="fpd">
  46. <?php if(in_array('bold', $seditor['1'])) { ?>
  47. <a href="javascript:;" title="文字加粗" class="fbld"<?php if(empty($seditor['2'])) { ?> onclick="seditor_insertunit('<?php echo $seditor['0'];?>', '[b]', '[/b]');doane(event);"<?php } ?>>B</a>
  48. <?php } if(in_array('color', $seditor['1'])) { ?>
  49. <a href="javascript:;" title="设置文字颜色" class="fclr" id="<?php echo $seditor['0'];?>forecolor"<?php if(empty($seditor['2'])) { ?> onclick="showColorBox(this.id, 2, '<?php echo $seditor['0'];?>');doane(event);"<?php } ?>>Color</a>
  50. <?php } if(in_array('img', $seditor['1'])) { ?>
  51. <a id="<?php echo $seditor['0'];?>img" href="javascript:;" title="图片" class="fmg"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'img');doane(event);"<?php } ?>>Image</a>
  52. <?php } if(in_array('link', $seditor['1'])) { ?>
  53. <a id="<?php echo $seditor['0'];?>url" href="javascript:;" title="添加链接" class="flnk"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'url');doane(event);"<?php } ?>>Link</a>
  54. <?php } if(in_array('quote', $seditor['1'])) { ?>
  55. <a id="<?php echo $seditor['0'];?>quote" href="javascript:;" title="引用" class="fqt"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'quote');doane(event);"<?php } ?>>Quote</a>
  56. <?php } if(in_array('code', $seditor['1'])) { ?>
  57. <a id="<?php echo $seditor['0'];?>code" href="javascript:;" title="代码" class="fcd"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'code');doane(event);"<?php } ?>>Code</a>
  58. <?php } if(in_array('smilies', $seditor['1'])) { ?>
  59. <a href="javascript:;" class="fsml" id="<?php echo $seditor['0'];?>sml"<?php if(empty($seditor['2'])) { ?> onclick="showMenu({'ctrlid':this.id,'evt':'click','layer':2});return false;"<?php } ?>>Smilies</a>
  60. <?php if(empty($seditor['2'])) { ?>
  61. <script type="text/javascript" reload="1">smilies_show('<?php echo $seditor['0'];?>smiliesdiv', <?php echo $_G['setting']['smcols'];?>, '<?php echo $seditor['0'];?>');</script>
  62. <?php } } if(in_array('at', $seditor['1']) && $_G['group']['allowat']) { ?>
  63. <script src="<?php echo $_G['setting']['jspath'];?>at.js?<?php echo VERHASH;?>" type="text/javascript"></script>
  64. <a id="<?php echo $seditor['0'];?>at" href="javascript:;" title="@朋友" class="fat"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'at');doane(event);"<?php } ?>>@朋友</a>
  65. <?php } ?>
  66. <?php echo $seditor['3'];?>
  67. </div></div>
  68. <div class="area">
  69. <?php if($allowfastpost) { ?>
  70. <textarea rows="6" cols="80" name="message" id="fastpostmessage" onKeyDown="seditor_ctlent(event, '$(\'fastpostsubmit\').click()');" tabindex="12" class="pt"<?php echo getreplybg($_G['forum']['replybg']);?>></textarea>
  71. <?php } else { ?>
  72. <div class="pt hm">
  73. <?php if(!$_G['uid']) { if(!$_G['connectguest']) { ?>
  74. 您需要登录后才可以发帖 <a href="member.php?mod=logging&amp;action=login" onclick="showWindow('login', this.href)" class="xi2">登录</a> | <a href="member.php?mod=<?php echo $_G['setting']['regname'];?>" class="xi2"><?php echo $_G['setting']['reglinkname'];?></a>
  75. <?php } else { ?>
  76. 您需要 <a href="member.php?mod=connect" class="xi2">完善帐号信息</a> 或 <a href="member.php?mod=connect&amp;ac=bind" class="xi2">绑定已有帐号</a> 后才可以发帖
  77. <?php } } else { ?>
  78. 您现在无权发帖。<a href="javascript:;" onclick="$('newspecial').onclick()" class="xi2">点击查看原因</a>
  79. <?php } ?>
  80. <?php if(!empty($_G['setting']['pluginhooks']['global_login_text'])) echo $_G['setting']['pluginhooks']['global_login_text'];?>
  81. </div>
  82. <?php } ?>
  83. </div>
  84. </div>
  85. </div>
  86. <div id="seccheck_fastpost">
  87. <?php if($fastpost && ($secqaacheck || $seccodecheck)) { ?><?php
  88. $sectpl = <<<EOF
  89. <sec> <span id="sec<hash>" onclick="showMenu(
  90. EOF;
  91. if(!empty($_G['gp_infloat'])) {
  92. $sectpl .= <<<EOF
  93. {'ctrlid':this.id,'win':'{$_GET['handlekey']}'}
  94. EOF;
  95. } else {
  96. $sectpl .= <<<EOF
  97. this.id
  98. EOF;
  99. }
  100. $sectpl .= <<<EOF
  101. )"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div>
  102. EOF;
  103. ?>
  104. <div class="mtm"><?php $sechash = !isset($sechash) ? 'S'.($_G['inajax'] ? 'A' : '').$_G['sid'] : $sechash.random(3);
  105. $sectpl = str_replace("'", "\'", $sectpl);?><?php if($secqaacheck) { ?>
  106. <span id="secqaa_q<?php echo $sechash;?>"></span>
  107. <script type="text/javascript" reload="1">updatesecqaa('q<?php echo $sechash;?>', '<?php echo $sectpl;?>', '<?php echo $_G['basescript'];?>::<?php echo CURMODULE;?>');</script>
  108. <?php } if($seccodecheck) { ?>
  109. <span id="seccode_c<?php echo $sechash;?>"></span>
  110. <script type="text/javascript" reload="1">updateseccode('c<?php echo $sechash;?>', '<?php echo $sectpl;?>', '<?php echo $_G['basescript'];?>::<?php echo CURMODULE;?>');</script>
  111. <?php } ?></div><?php } ?>
  112. </div>
  113. <input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
  114. <input type="hidden" name="usesig" value="<?php echo $usesigcheck;?>" />
  115. </div>
  116. <?php if($allowpostattach) { ?>
  117. <script type="text/javascript">
  118. var editorid = '';
  119. var ATTACHNUM = {'imageused':0,'imageunused':0,'attachused':0,'attachunused':0}, ATTACHUNUSEDAID = new Array(), IMGUNUSEDAID = new Array();
  120. </script>
  121. <input type="hidden" name="posttime" id="posttime" value="<?php echo TIMESTAMP;?>" />
  122. <div class="upfl<?php if(empty($_GET['from']) && $_G['setting']['fastsmilies']) { ?> hasfsl<?php } ?>">
  123. <table cellpadding="0" cellspacing="0" border="0" width="100%" id="attach_tblheader" style="display: none">
  124. <tr>
  125. <td>点击附件文件名添加到帖子内容中</td>
  126. <td class="atds">描述</td>
  127. <?php if($_G['group']['allowsetattachperm']) { ?>
  128. <td class="attv">
  129. 阅读权限
  130. <img src="<?php echo IMGDIR;?>/faq.gif" alt="Tip" class="vm" onmouseover="showTip(this)" tip="阅读权限按由高到低排列,高于或等于选中组的用户才可以阅读" />
  131. </td>
  132. <?php } if($_G['group']['maxprice']) { ?><td class="attpr"><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['title'];?></td><?php } ?>
  133. <td class="attc"></td>
  134. </tr>
  135. </table>
  136. <div class="fieldset flash" id="attachlist"></div>
  137. <?php if(empty($_G['setting']['pluginhooks']['forumdisplay_fastpost_upload_extend'])) { if(empty($_G['uploadjs'])) { ?>
  138. <script src="<?php echo $_G['setting']['jspath'];?>upload.js?<?php echo VERHASH;?>" type="text/javascript"></script><?php $_G['uploadjs'] = 1;?><?php } ?><script type="text/javascript">
  139. var upload = new SWFUpload({
  140. upload_url: "<?php echo $_G['siteurl'];?>misc.php?mod=swfupload&action=swfupload&operation=upload&fid=<?php echo $_G['fid'];?>",
  141. post_params: {"uid" : "<?php echo $_G['uid'];?>", "hash":"<?php echo $swfconfig['hash'];?>"},
  142. file_size_limit : "<?php echo $swfconfig['max'];?>",
  143. file_types : "<?php echo $swfconfig['attachexts']['ext'];?>",
  144. file_types_description : "<?php echo $swfconfig['attachexts']['depict'];?>",
  145. file_upload_limit : <?php echo $swfconfig['limit'];?>,
  146. file_queue_limit : 0,
  147. swfupload_preload_handler : preLoad,
  148. swfupload_load_failed_handler : loadFailed,
  149. file_dialog_start_handler : fileDialogStart,
  150. file_queued_handler : fileQueued,
  151. file_queue_error_handler : fileQueueError,
  152. file_dialog_complete_handler : fileDialogComplete,
  153. upload_start_handler : uploadStart,
  154. upload_progress_handler : uploadProgress,
  155. upload_error_handler : uploadError,
  156. upload_success_handler : uploadSuccess,
  157. upload_complete_handler : uploadComplete,
  158. button_image_url : "<?php echo IMGDIR;?>/uploadbutton_small.png",
  159. button_placeholder_id : "spanButtonPlaceholder",
  160. button_width: 17,
  161. button_height: 25,
  162. button_cursor:SWFUpload.CURSOR.HAND,
  163. button_window_mode: "transparent",
  164. custom_settings : {
  165. progressTarget : "attachlist",
  166. uploadSource: 'forum',
  167. uploadType: 'attach',
  168. <?php if($swfconfig['maxsizeperday']) { ?>
  169. maxSizePerDay: <?php echo $swfconfig['maxsizeperday'];?>,
  170. <?php } if($swfconfig['maxattachnum']) { ?>
  171. maxAttachNum: <?php echo $swfconfig['maxattachnum'];?>,
  172. <?php } ?>
  173. uploadFrom: 'fastpost'
  174. },
  175. debug: false
  176. });
  177. </script>
  178. <?php } else { ?>
  179. <?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_fastpost_upload_extend'])) echo $_G['setting']['pluginhooks']['forumdisplay_fastpost_upload_extend'];?>
  180. <?php } ?>
  181. </div>
  182. <?php } ?>
  183. <p class="ptm pnpost">
  184. <a href="home.php?mod=spacecp&amp;ac=credit&amp;op=rule&amp;fid=<?php echo $_G['fid'];?>" class="y" target="_blank">本版积分规则</a>
  185. <button <?php if($fastpost) { ?>type="submit" <?php } elseif(!$_G['uid']) { ?>type="button" onclick="showWindow('login', 'member.php?mod=logging&action=login&guestmessage=yes')" <?php } if(!$seccodecheck && !$secqaacheck) { ?>onmouseover="checkpostrule('seccheck_fastpost', 'ac=newthread');this.onmouseover=null" <?php } ?>name="topicsubmit" id="fastpostsubmit" value="topicsubmit" tabindex="13" class="pn pnc"><strong>发表帖子</strong></button>
  186. <?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_fastpost_btn_extra'])) echo $_G['setting']['pluginhooks']['forumdisplay_fastpost_btn_extra'];?>
  187. <?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_fastpost_sync_method'])) { ?>
  188. <span>
  189. 将此主题同步到:
  190. <?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_fastpost_sync_method'])) echo $_G['setting']['pluginhooks']['forumdisplay_fastpost_sync_method'];?>
  191. </span>
  192. <?php } if(helper_access::check_module('follow')) { ?>
  193. <label><input type="checkbox" name="adddynamic" class="pc" value="1" <?php if($_G['forum']['allowfeed'] && !$_G['tid'] && empty($_G['forum']['viewperm'])) { ?>checked="checked"<?php } ?> />转播给听众</label>
  194. <?php } ?>
  195. </p>
  196. </form>
  197. </div>
  198. </div>