PageRenderTime 134ms CodeModel.GetById 35ms RepoModel.GetById 9ms app.codeStats 0ms

/web raovat.vn php/az24/template/default/forum/post_editor_attribute.htm

https://gitlab.com/phamngsinh/baitaplon_sinhvien
HTML | 152 lines | 100 code | 5 blank | 47 comment | 0 complexity | 9f02207801a67225bd7b70239fe8c998 MD5 | raw file
  1. <div id="post_extra" class="ptm cl">
  2. <div id="post_extra_tb" class="cl" onselectstart="return false">
  3. <!--{if $_G['group']['allowreplycredit'] && !in_array($special, array(2, 3))}-->
  4. <!--{if $_GET[action] == 'newthread'}-->
  5. <!--{eval $extcreditstype = $_G['setting']['creditstransextra'][10];}-->
  6. <!--{else}-->
  7. <!--{eval $extcreditstype = $replycredit_rule['extcreditstype'] ? $replycredit_rule['extcreditstype'] : $_G['setting']['creditstransextra'][10];}-->
  8. <!--{/if}-->
  9. <!--{eval $userextcredit = getuserprofile('extcredits'.$extcreditstype);}-->
  10. <!--{if ($_GET[action] == 'newthread' && $userextcredit > 0) || ($_GET[action] == 'edit' && $isorigauthor && isfirstpost)}-->
  11. <label id="extra_replycredit_b" onclick="showExtra('extra_replycredit')"><span id="extra_replycredit_chk">{lang replycredit}</span></label>
  12. <!--{/if}-->
  13. <!--{/if}-->
  14. <!--{if $_G['group']['allowsetreadperm']}-->
  15. <label id="extra_readperm_b" onclick="showExtra('extra_readperm')"><span id="extra_readperm_chk">{lang readperm}</span></label>
  16. <!--{/if}-->
  17. <!--{if $_G['group']['maxprice'] && !$special}-->
  18. <label id="extra_price_b" onclick="showExtra('extra_price')"><span id="extra_price_chk">{lang price}</span></label>
  19. <!--{/if}-->
  20. <!--{if ($_GET[action] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET[action] == 'edit' && getstatus($thread['status'], 3))}-->
  21. <label id="extra_rushreplyset_b" onclick="showExtra('extra_rushreplyset')"><span id="extra_rushreplyset_chk">{lang rushreply}</span></label>
  22. <!--{/if}-->
  23. <!--{if $_G['group']['allowposttag']}-->
  24. <label id="extra_tag_b" onclick="showExtra('extra_tag')"><span id="extra_tag_chk">{lang posttag}</span></label>
  25. <!--{/if}-->
  26. <!--{if $_G['group']['allowsetpublishdate'] && ($_GET[action] == 'newthread' || ($_GET[action] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))}-->
  27. <label id="extra_pubdate_b" onclick="showExtra('extra_pubdate')"><span id="extra_pubdate_chk">{lang post_timer}</span></label>
  28. <!--{/if}-->
  29. </div>
  30. <div id="post_extra_c">
  31. <!--{if !empty($userextcredit)}-->
  32. <div id="extra_replycredit_c" class="exfm cl" style="display: none;">
  33. <div><label>{lang replycredit_once} <input type="text" name="replycredit_extcredits" id="replycredit_extcredits" class="px pxs vm" value="{if $replycredit_rule['extcredits'] && $thread['replycredit'] > 0}{$replycredit_rule['extcredits']}{else}0{/if}" onkeyup="javascript:getreplycredit();" onblur="extraCheck(0)" /> {$_G['setting']['extcredits'][$extcreditstype][unit]}{$_G['setting']['extcredits'][$extcreditstype][title]}</label><span class="xg1">{lang replycredit_empty}</span> , <label>{lang replycredit_reward} <input type="text" name="replycredit_times" id="replycredit_times" class="px pxs vm" value="{if $replycredit_rule['lasttimes']}{$replycredit_rule['lasttimes']}{else}1{/if}" onkeyup="javascript:getreplycredit();" onblur="extraCheck(0)" /> {lang replycredit_time}</label>, <label>{lang replycredit_member} <select id="replycredit_membertimes" name="replycredit_membertimes" class="ps vm">
  34. <!--{eval for($i=1;$i<11;$i++) {;}-->
  35. <option value="$i"{if $replycredit_rule['membertimes'] == $i} selected="selected"{/if}>$i</option>
  36. <!--{eval };}-->
  37. </select> {lang replycredit_time}</label>, <label>{lang replycredit_rate} <select id="replycredit_random" name="replycredit_random" class="ps vm">
  38. <!--{eval for($i=100;$i>9;$i=$i-10) {;}-->
  39. <option value="$i"{if $replycredit_rule['random'] == $i} selected="selected"{/if}>$i</option>
  40. <!--{eval };}-->
  41. </select> %</label></div>
  42. <div class="xg1">{lang replycredit_total} <span id="replycredit_sum"><!--{if $thread['replycredit']}-->{$thread['replycredit']}<!--{else}-->0<!--{/if}--></span> {$_G['setting']['extcredits'][$extcreditstype][unit]}{$_G['setting']['extcredits'][$extcreditstype][title]}<!--{if $thread['replycredit']}--><span class="xg1">({lang replycredit_however} {$thread['replycredit']} {$_G['setting']['extcredits'][$extcreditstype][unit]}{$_G['setting']['extcredits'][$extcreditstype][title]})</span><!--{/if}-->, <span id="replycredit">{lang replycredit_revenue} {$_G['setting']['extcredits'][$extcreditstype][title]} 0</span> {$_G['setting']['extcredits'][$extcreditstype][unit]}, {lang you_have} {$_G['setting']['extcredits'][$extcreditstype][title]} $userextcredit {$_G['setting']['extcredits'][$extcreditstype][unit]}</div>
  43. </div>
  44. <!--{/if}-->
  45. <!--{if $_G['group']['allowsetreadperm']}-->
  46. <div id="extra_readperm_c" class="exfm cl" style="display:none">
  47. <table cellspacing="0" cellpadding="0">
  48. <tr>
  49. <td class="xw1">{lang readperm}</td>
  50. <td>
  51. <select name="readperm" id="readperm" class="ps" style="width:90px" onchange="extraCheck(1)">
  52. <option value="">{lang unlimited}</option>
  53. <!--{loop $_G['cache']['groupreadaccess'] $val}-->
  54. <option value="$val[readaccess]" title="{lang readperm}: $val[readaccess]"{if $thread['readperm'] == $val[readaccess]} selected="selected"{/if}>$val[grouptitle]</option>
  55. <!--{/loop}-->
  56. <option value="255">{lang highest_right}</option>
  57. </select>
  58. <span class="xg1">{lang post_select_usergroup_readacces}</span>
  59. </td>
  60. </tr>
  61. </table>
  62. </div>
  63. <!--{/if}-->
  64. <!--{if $_G['group']['maxprice'] && !$special}-->
  65. <div id="extra_price_c" class="exfm cl" style="display:none">
  66. {lang price}:
  67. <input type="text" id="price" name="price" class="px pxs" value="$thread[pricedisplay]" onblur="extraCheck(2)" /> {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}
  68. <span class="xg1">({lang post_price_comment})</span>
  69. <!--{if $_G['group']['maxprice'] && ($_GET[action] == 'newthread' || $_GET[action] == 'edit' && $isfirstpost)}-->
  70. <!--{if $_G['setting']['maxincperthread']}--><p class="xg1">{lang post_price_income_comment}</p><!--{/if}-->
  71. <!--{if $_G['setting']['maxchargespan']}--><p class="xg1">{lang post_price_charge_comment}<!--{if $_GET[action] == 'edit' && $freechargehours}-->{lang post_price_free_chargehours}<!--{/if}--></p><!--{/if}-->
  72. <!--{/if}-->
  73. </div>
  74. <!--{/if}-->
  75. <!--{if $_G['group']['allowposttag']}-->
  76. <div id="extra_tag_c" class="exfm cl" style="display: none;">
  77. <table cellspacing="0" cellpadding="0">
  78. <tr>
  79. <td class="xw1">{lang post_tag} </td>
  80. <td>
  81. <input type="text" class="px vm" size="60" id="tags" name="tags" value="$postinfo[tag]" onblur="extraCheck(4)" />
  82. <a href="javascript:;" id="clickbutton[]" class="xi2" onclick="relatekw('-1','-1');doane();">{lang auto_keyword}</a><span class="pipe">|</span><a href="javascript:;" id="choosetag" class="xi2" onclick="showWindow(this.id, 'forum.php?mod=tag', 'get', 0)">{lang choosetag}</a>
  83. </td>
  84. </tr>
  85. <tr>
  86. <td></td>
  87. <td>
  88. <p class="xg1">{lang posttag_comment}</p>
  89. <!--{eval $recent_use_tag = recent_use_tag();}-->
  90. <!--{if $recent_use_tag}-->
  91. <p class="mtn">{lang recent_use_tag}&nbsp;
  92. <!--{eval $tagi = 0;}-->
  93. <!--{loop $recent_use_tag $var}-->
  94. <!--{if $tagi}-->, <!--{/if}--><a href="javascript:;" class="xi2" onclick="$('tags').value == '' ? $('tags').value += '$var' : $('tags').value += ',$var';extraCheck(4);doane();">$var</a>
  95. <!--{eval $tagi++;}-->
  96. <!--{/loop}-->
  97. </p>
  98. <!--{/if}-->
  99. </td>
  100. </tr>
  101. </table>
  102. </div>
  103. <!--{/if}-->
  104. <!--{if ($_GET[action] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET[action] == 'edit' && getstatus($thread['status'], 3))}-->
  105. <div class="exfm cl" id="extra_rushreplyset_c" style="display: none;">
  106. <div class="sinf sppoll z">
  107. <dl>
  108. <dt><span style="width: 4em">&nbsp;</span></dt>
  109. <dd><label for="rushreply"><input type="checkbox" name="rushreply" id="rushreply" class="pc vm" value="1" {if $_GET[action] == 'edit' && getstatus($thread['status'], 3)}disabled="disabled" checked="checked"{/if} onclick="extraCheck(3)" /> {lang rushreply_change}</label></dd>
  110. <dt><label>{lang rushreply_time}</label></dt>
  111. <dd>
  112. <div>
  113. <input type="text" name="rushreplyfrom" id="rushreplyfrom" class="px" onclick="showcalendar(event, this, true)" autocomplete="off" value="$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="$postinfo[rush][starttimeto]" onkeyup="$('rushreply').checked = true;" />
  114. </div>
  115. </dd>
  116. <dt><label>{lang rushreply_rewardfloor}</label></dt>
  117. <dd>
  118. <input type="text" name="rewardfloor" id="rewardfloor" class="px oinf" value="$postinfo[rush][rewardfloor]" onkeyup="$('rushreply').checked = true;" />
  119. <p class="xg1">{lang rushreply_rewardfloor_comment}</p>
  120. </dd>
  121. </dl>
  122. </div>
  123. <div class="sadd z">
  124. <dl>
  125. <dt>&nbsp;</dt>
  126. <dd>&nbsp;</dd>
  127. <dt><label for="stopfloor">{lang rushreply_end}</label></dt>
  128. <dd>
  129. <input type="text" name="stopfloor" id="stopfloor" class="px" autocomplete="off" value="$postinfo[rush][stopfloor]" onkeyup="$('rushreply').checked = true;" />
  130. </dd>
  131. <dt><label for="creditlimit"><!--{if $_G['setting']['creditstransextra'][11]}-->{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][11]][title]}<!--{else}-->{lang credits}<!--{/if}-->{lang min_limit}:</label></dt>
  132. <dd>
  133. <input type="text" name="creditlimit" id="creditlimit" class="px" autocomplete="off" value="$postinfo[rush][creditlimit]" onkeyup="$('rushreply').checked = true;" />
  134. <p class="xg1"><!--{if $_G['setting']['creditstransextra'][11]}-->({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][11]][title]})<!--{else}-->{lang total_credits}<!--{/if}-->{lang post_rushreply_credit}</p>
  135. </dd>
  136. </dl>
  137. </div>
  138. </div>
  139. <!--{/if}-->
  140. <!--{if $_G['group']['allowsetpublishdate'] && ($_GET[action] == 'newthread' || ($_GET[action] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))}-->
  141. <div class="exfm cl" id="extra_pubdate_c" style="display: none;">
  142. <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"{if $cronpublish} checked="checked"{/if} />{lang post_timer}</label>
  143. <input type="text" name="cronpublishdate" id="cronpublishdate" class="px" onclick="showcalendar(event, this, true, false, false, true);" autocomplete="off" value="{$cronpublishdate}" onchange="if(this.value) $('cronpublish').checked = true;">
  144. </div>
  145. <!--{/if}-->
  146. </div>
  147. </div>