viewthread_fastpost.htm 8.1 KB

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