forumdisplay_fastpost.php 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <?php echo 'Theme by Jeaviking http://www.jeavi.name';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. var fid = parseInt('$_G[fid]');
  7. </script>
  8. <div id="f_pst" class="bm">
  9. <div class="bm_c">
  10. <form method="post" autocomplete="off" id="fastpostform" action="forum.php?mod=post&action=newthread&fid=$_G[fid]&topicsubmit=yes&infloat=yes&handlekey=fastnewpost" onSubmit="return fastpostvalidate(this)">
  11. <!--{hook/forumdisplay_fastpost_content}-->
  12. <div id="fastpostreturn" style="margin:-5px 0 5px"></div>
  13. <div class="pbt cl">
  14. <!--{if $_G['forum'][threadtypes][types]}-->
  15. <div class="ftid">
  16. <select name="typeid" id="typeid_fast" width="80">
  17. <option value="0" selected="selected">{lang select_thread_catgory}</option>
  18. <!--{loop $_G['forum'][threadtypes][types] $typeid $name}-->
  19. <!--{if empty($_G['forum']['threadtypes']['moderators'][$typeid]) || $_G['forum']['ismoderator']}-->
  20. <option value="$typeid"><!--{echo strip_tags($name);}--></option>
  21. <!--{/if}-->
  22. <!--{/loop}-->
  23. </select>
  24. </div>
  25. <script type="text/javascript" reload="1">simulateSelect('typeid_fast');</script>
  26. <!--{/if}-->
  27. <input type="text" id="subject" name="subject" class="px" value="" onkeyup="strLenCalc(this, 'checklen', 80);" tabindex="11" style="width: 25em" />
  28. <span>{lang comment_message1} <strong id="checklen">80</strong> {lang comment_message2}</span>
  29. </div>
  30. <div class="cl">
  31. <!--{if $_G[setting][fastsmilies]}--><div id="fastsmiliesdiv" class="y"><div id="fastsmiliesdiv_data"><div id="fastsmilies"></div></div></div><!--{/if}-->
  32. <div{if $_G[setting][fastsmilies]} class="hasfsl"{/if} id="fastposteditor">
  33. <div class="tedt">
  34. <div class="bar">
  35. <span class="y">
  36. <!--{hook/forumdisplay_fastpost_func_extra}-->
  37. <a href="forum.php?mod=post&action=newthread&fid=$_G[fid]" onclick="switchAdvanceMode(this.href);doane(event);">{lang post_advancemode}</a>
  38. </span>
  39. <!--{eval $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>' : '');}-->
  40. <!--{hook/forumdisplay_fastpost_ctrl_extra}-->
  41. <!--{subtemplate common/seditor}-->
  42. </div>
  43. <div class="area">
  44. <!--{if $allowfastpost}-->
  45. <textarea rows="6" cols="80" name="message" id="fastpostmessage" onKeyDown="seditor_ctlent(event, '$(\'fastpostsubmit\').click()');" tabindex="12" class="pt"{eval echo getreplybg($_G['forum']['replybg']);}></textarea>
  46. <!--{else}-->
  47. <div class="pt hm">
  48. <!--{if !$_G['uid']}-->
  49. <!--{if !$_G['connectguest']}-->
  50. {lang login_to_post} <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>
  51. <!--{else}-->
  52. {lang connect_fill_profile_to_post}
  53. <!--{/if}-->
  54. <!--{else}-->
  55. {lang no_permission_to_post}<a href="javascript:;" onclick="$('newspecial').onclick()" class="xi2">{lang click_to_show_reason}</a>
  56. <!--{/if}-->
  57. <!--{hook/global_login_text}-->
  58. </div>
  59. <!--{/if}-->
  60. </div>
  61. </div>
  62. </div>
  63. <!--{if $fastpost && checkperm('seccode') && ($secqaacheck || $seccodecheck)}-->
  64. <!--{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}-->
  65. <div class="mtm sec"><!--{subtemplate common/seccheck}--></div>
  66. <!--{/if}-->
  67. <input type="hidden" name="formhash" value="{FORMHASH}" />
  68. <input type="hidden" name="usesig" value="$usesigcheck" />
  69. </div>
  70. <!--{if $allowpostattach}-->
  71. <script type="text/javascript">
  72. var editorid = '';
  73. var ATTACHNUM = {'imageused':0,'imageunused':0,'attachused':0,'attachunused':0}, ATTACHUNUSEDAID = new Array(), IMGUNUSEDAID = new Array();
  74. </script>
  75. <input type="hidden" name="posttime" id="posttime" value="{TIMESTAMP}" />
  76. <div class="upfl{if empty($_GET[from]) && $_G[setting][fastsmilies]} hasfsl{/if}">
  77. <table cellpadding="0" cellspacing="0" border="0" width="100%" id="attach_tblheader" style="display: none">
  78. <tr>
  79. <td>{lang e_attach_insert}</td>
  80. <td class="atds">{lang description}</td>
  81. <!--{if $_G['group']['allowsetattachperm']}-->
  82. <td class="attv">
  83. {lang readperm}
  84. <img src="{IMGDIR}/faq.gif" alt="Tip" class="vm" onmouseover="showTip(this)" tip="{lang post_select_usergroup_readacces}" />
  85. </td>
  86. <!--{/if}-->
  87. <!--{if $_G['group']['maxprice']}--><td class="attpr">{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}</td><!--{/if}-->
  88. <td class="attc"></td>
  89. </tr>
  90. </table>
  91. <div class="fieldset flash" id="attachlist"></div>
  92. <!--{if empty($_G['setting']['pluginhooks']['forumdisplay_fastpost_upload_extend'])}-->
  93. <!--{subtemplate common/upload}-->
  94. <script type="text/javascript">
  95. var upload = new SWFUpload({
  96. upload_url: "{$_G[siteurl]}misc.php?mod=swfupload&action=swfupload&operation=upload&fid=$_G[fid]",
  97. post_params: {"uid" : "$_G[uid]", "hash":"$swfconfig[hash]"},
  98. file_size_limit : "$swfconfig[max]",
  99. file_types : "$swfconfig[attachexts][ext]",
  100. file_types_description : "$swfconfig[attachexts][depict]",
  101. file_upload_limit : $swfconfig['limit'],
  102. file_queue_limit : 0,
  103. swfupload_preload_handler : preLoad,
  104. swfupload_load_failed_handler : loadFailed,
  105. file_dialog_start_handler : fileDialogStart,
  106. file_queued_handler : fileQueued,
  107. file_queue_error_handler : fileQueueError,
  108. file_dialog_complete_handler : fileDialogComplete,
  109. upload_start_handler : uploadStart,
  110. upload_progress_handler : uploadProgress,
  111. upload_error_handler : uploadError,
  112. upload_success_handler : uploadSuccess,
  113. upload_complete_handler : uploadComplete,
  114. button_image_url : "{IMGDIR}/uploadbutton_small.png",
  115. button_placeholder_id : "spanButtonPlaceholder",
  116. button_width: 17,
  117. button_height: 25,
  118. button_cursor:SWFUpload.CURSOR.HAND,
  119. button_window_mode: "transparent",
  120. custom_settings : {
  121. progressTarget : "attachlist",
  122. uploadSource: 'forum',
  123. uploadType: 'attach',
  124. <!--{if $swfconfig['maxsizeperday']}-->
  125. maxSizePerDay: $swfconfig['maxsizeperday'],
  126. <!--{/if}-->
  127. <!--{if $swfconfig['maxattachnum']}-->
  128. maxAttachNum: $swfconfig['maxattachnum'],
  129. <!--{/if}-->
  130. uploadFrom: 'fastpost'
  131. },
  132. debug: false
  133. });
  134. </script>
  135. <!--{else}-->
  136. <!--{hook/forumdisplay_fastpost_upload_extend}-->
  137. <!--{/if}-->
  138. </div>
  139. <!--{/if}-->
  140. <p class="ptm pnpost">
  141. <a href="home.php?mod=spacecp&ac=credit&op=rule&fid=$_G[fid]" class="y" target="_blank">{lang post_credits_rule}</a>
  142. <button {if $fastpost}type="submit" {elseif !$_G['uid']}type="button" onclick="showWindow('login', 'member.php?mod=logging&action=login&guestmessage=yes')" {/if}name="topicsubmit" id="fastpostsubmit" value="topicsubmit" tabindex="13" class="pn pnc"><strong>{lang post_newthread}</strong></button>
  143. <!--{hook/forumdisplay_fastpost_btn_extra}-->
  144. <!--{if !empty($_G['setting']['pluginhooks']['forumdisplay_fastpost_sync_method'])}-->
  145. <span>
  146. {lang post_sync_method}:
  147. <!--{hook/forumdisplay_fastpost_sync_method}-->
  148. </span>
  149. <!--{/if}-->
  150. <!--{if helper_access::check_module('follow')}-->
  151. <label><input type="checkbox" name="adddynamic" class="pc" value="1" {if $_G['forum']['allowfeed'] && !$_G[tid] && empty($_G['forum']['viewperm'])}checked="checked"{/if} />{lang post_relay}</label>
  152. <!--{/if}-->
  153. </p>
  154. </form>
  155. </div>
  156. </div>