viewthread_fastpost.php 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?php echo '周末设计商业模板保护!请购买正版模板, 客服QQ: 125422921 , http://www.wfdsoft.com/ ';exit;?>
  2. <script type="text/javascript">
  3. var postminchars = parseInt('$_G['setting']['minpostsize']');
  4. var postmaxchars = parseInt('$_G['setting']['maxpostsize']');
  5. var disablepostctrl = parseInt('{$_G['group']['disablepostctrl']}');
  6. </script>
  7. <div id="f_pst" class="pl{if empty($_GET[from])} bm bmw{/if} wk_bmwft">
  8. <form method="post" autocomplete="off" id="fastpostform" action="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&extra=$_GET[extra]&replysubmit=yes{if $_GET['ordertype'] != 1}&infloat=yes&handlekey=fastpost{/if}{if $_GET[from]}&from=$_GET[from]{/if}"{if $_GET['ordertype'] != 1} onSubmit="return fastpostvalidate(this)"{/if}>
  9. <!--{if empty($_GET[from])}-->
  10. <table cellspacing="0" cellpadding="0">
  11. <tr>
  12. <td class="pls">
  13. <!--{if $_G['uid']}--><div class="avatar avtm"><!--{echo avatar($_G['uid'])}--></div><!--{/if}-->
  14. <!--{hook/viewthread_fastpost_side}-->
  15. </td>
  16. <td class="plc">
  17. <!--{/if}-->
  18. <!--{hook/viewthread_fastpost_content}-->
  19. <span id="fastpostreturn"></span>
  20. <!--{if $_G[forum_thread][special] == 5 && empty($firststand)}-->
  21. <div class="pbt cl">
  22. <div class="ftid sslt">
  23. <select id="stand" name="stand">
  24. <option value="">{lang debate_viewpoint}</option>
  25. <option value="0">{lang debate_neutral}</option>
  26. <option value="1">{lang debate_square}</option>
  27. <option value="2">{lang debate_opponent}</option>
  28. </select>
  29. </div>
  30. <script type="text/javascript">simulateSelect('stand');</script>
  31. </div>
  32. <!--{/if}-->
  33. <div class="cl">
  34. <!--{if empty($_GET[from]) && $_G[setting][fastsmilies]}--><div id="fastsmiliesdiv" class="y"><div id="fastsmiliesdiv_data"><div id="fastsmilies"></div></div></div><!--{/if}-->
  35. <div{if empty($_GET[from]) && $_G[setting][fastsmilies]} class="hasfsl"{/if} id="fastposteditor">
  36. <div class="tedt{if !($_G[forum_thread][special] == 5 && empty($firststand))} mtn{/if}">
  37. <div class="bar">
  38. <span class="y">
  39. <!--{hook/viewthread_fastpost_func_extra}-->
  40. <a href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]{if $_GET[from]}&from=$_GET[from]{/if}" onclick="return switchAdvanceMode(this.href)">{lang post_advancemode}</a>
  41. </span>
  42. <!--{eval $seditor = array('fastpost', array('at', 'bold', 'color', 'img', 'link', 'quote', 'code', 'smilies'), !$allowfastpost ? 1 : 0, $allowpostattach && $_GET['from'] != 'preview' && $allowfastpost ? '<span class="pipe z">|</span><span id="spanButtonPlaceholder">'.lang('template', 'upload').'</span>' : '');}-->
  43. <!--{hook/viewthread_fastpost_ctrl_extra}-->
  44. <!--{subtemplate common/seditor}-->
  45. </div>
  46. <div class="area">
  47. <!--{if $allowfastpost}-->
  48. <textarea rows="6" cols="80" name="message" id="fastpostmessage" onKeyDown="seditor_ctlent(event, {if $_GET['ordertype'] != 1}'fastpostvalidate($(\'fastpostform\'))'{else}'$(\'fastpostform\').submit()'{/if});" tabindex="4" class="pt"{eval echo getreplybg($_G['forum']['replybg']);}></textarea>
  49. <!--{else}-->
  50. <div class="pt hm">
  51. <!--{if !$_G['uid']}-->
  52. <!--{if !$_G['connectguest']}-->
  53. {lang login_to_reply} <a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)" class="xi2">{lang login}</a> | <a href="member.php?mod={$_G[setting][regname]}" class="xi2">$_G['setting']['reglinkname']</a>
  54. <!--{else}-->
  55. {lang connect_fill_profile_to_post}
  56. <!--{/if}-->
  57. <!--{else}-->
  58. {lang no_permission_to_post}<a href="javascript:;" onclick="$('fastpostform').submit()" class="xi2">{lang click_to_show_reason}</a>
  59. <!--{/if}-->
  60. <!--{hook/global_login_text}-->
  61. </div>
  62. <!--{/if}-->
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. <div id="seccheck_fastpost">
  68. <!--{if $allowpostreply && ($secqaacheck || $seccodecheck)}-->
  69. <!--{subtemplate forum/seccheck_post}-->
  70. <!--{/if}-->
  71. </div>
  72. <!--{if $allowpostattach && $_GET['from'] != 'preview'}-->
  73. <script type="text/javascript">
  74. var editorid = '';
  75. var ATTACHNUM = {'imageused':0,'imageunused':0,'attachused':0,'attachunused':0}, ATTACHUNUSEDAID = new Array(), IMGUNUSEDAID = new Array();
  76. </script>
  77. <input type="hidden" name="posttime" id="posttime" value="{TIMESTAMP}" />
  78. <div class="upfl{if empty($_GET[from]) && $_G[setting][fastsmilies]} hasfsl{/if}">
  79. <table cellpadding="0" cellspacing="0" border="0" id="attach_tblheader" style="display: none;">
  80. <tr>
  81. <td>{lang e_attach_insert}</td>
  82. <td class="atds">{lang description}</td>
  83. <!--{if $_G['group']['allowsetattachperm']}-->
  84. <td class="attv">
  85. {lang readperm}
  86. <img src="{IMGDIR}/faq.gif" alt="Tip" class="vm" onmouseover="showTip(this)" tip="{lang post_select_usergroup_readacces}" />
  87. </td>
  88. <!--{/if}-->
  89. <!--{if $_G['group']['maxprice']}--><td class="attpr">{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}</td><!--{/if}-->
  90. <td class="attc"></td>
  91. </tr>
  92. </table>
  93. <div class="fieldset flash" id="attachlist"></div>
  94. <!--{if empty($_G['setting']['pluginhooks']['viewthread_fastpost_upload_extend'])}-->
  95. <!--{subtemplate common/upload}-->
  96. <script type="text/javascript">
  97. var upload = new SWFUpload({
  98. upload_url: "{$_G[siteurl]}misc.php?mod=swfupload&action=swfupload&operation=upload&fid=$_G[fid]",
  99. post_params: {"uid" : "$_G[uid]", "hash":"$swfconfig[hash]"},
  100. file_size_limit : "$swfconfig[max]",
  101. file_types : "$swfconfig[attachexts][ext]",
  102. file_types_description : "$swfconfig[attachexts][depict]",
  103. file_upload_limit : $swfconfig['limit'],
  104. file_queue_limit : 0,
  105. swfupload_preload_handler : preLoad,
  106. swfupload_load_failed_handler : loadFailed,
  107. file_dialog_start_handler : fileDialogStart,
  108. file_queued_handler : fileQueued,
  109. file_queue_error_handler : fileQueueError,
  110. file_dialog_complete_handler : fileDialogComplete,
  111. upload_start_handler : uploadStart,
  112. upload_progress_handler : uploadProgress,
  113. upload_error_handler : uploadError,
  114. upload_success_handler : uploadSuccess,
  115. upload_complete_handler : uploadComplete,
  116. button_image_url : "{IMGDIR}/uploadbutton_small.png",
  117. button_placeholder_id : "spanButtonPlaceholder",
  118. button_width: 17,
  119. button_height: 25,
  120. button_cursor:SWFUpload.CURSOR.HAND,
  121. button_window_mode: "transparent",
  122. custom_settings : {
  123. progressTarget : "attachlist",
  124. uploadSource: 'forum',
  125. uploadType: 'attach',
  126. <!--{if $swfconfig['maxsizeperday']}-->
  127. maxSizePerDay: $swfconfig['maxsizeperday'],
  128. <!--{/if}-->
  129. <!--{if $swfconfig['maxattachnum']}-->
  130. maxAttachNum: $swfconfig['maxattachnum'],
  131. <!--{/if}-->
  132. uploadFrom: 'fastpost'
  133. },
  134. debug: false
  135. });
  136. </script>
  137. <!--{else}-->
  138. <!--{hook/viewthread_fastpost_upload_extend}-->
  139. <!--{/if}-->
  140. </div>
  141. <!--{/if}-->
  142. <input type="hidden" name="formhash" value="{FORMHASH}" />
  143. <input type="hidden" name="usesig" value="$usesigcheck" />
  144. <input type="hidden" name="subject" value=" " />
  145. <p class="ptm pnpost">
  146. <a href="home.php?mod=spacecp&ac=credit&op=rule&fid=$_G[fid]" class="y" target="_blank">{lang post_credits_rule}</a>
  147. <button {if $allowpostreply}type="submit" {elseif !$_G['uid']}type="button" onclick="showWindow('login', 'member.php?mod=logging&action=login&guestmessage=yes')" {/if}{if !$seccodecheck}onmouseover="checkpostrule('seccheck_fastpost', 'ac=reply');this.onmouseover=null" {/if}name="replysubmit" id="fastpostsubmit" class="pn pnc vm" value="replysubmit" tabindex="5"><strong>{lang post_newreply}</strong></button>
  148. <!--{hook/viewthread_fastpost_btn_extra}-->
  149. <!--{if helper_access::check_module('follow')}-->
  150. <label class="lb"><input type="checkbox" name="adddynamic" class="pc" value="1" />{lang post_reply_relay}</label>
  151. <!--{/if}-->
  152. <!--{if $_GET['ordertype'] != 1 && empty($_GET[from])}-->
  153. <label for="fastpostrefresh"><input id="fastpostrefresh" type="checkbox" class="pc" />{lang post_fastreply_gotolast}</label>
  154. <script type="text/javascript">if(getcookie('fastpostrefresh') == 1) {$('fastpostrefresh').checked=true;}</script>
  155. <!--{/if}-->
  156. </p>
  157. <!--{if empty($_GET[from])}-->
  158. </td>
  159. </tr>
  160. </table>
  161. <!--{/if}-->
  162. </form>
  163. </div>