/Quản lý website tin tức PHP/discuznews/template/default/forum/post_editor_attribute.htm
HTML | 152 lines | 100 code | 5 blank | 47 comment | 0 complexity | 9f02207801a67225bd7b70239fe8c998 MD5 | raw file
- <div id="post_extra" class="ptm cl">
- <div id="post_extra_tb" class="cl" onselectstart="return false">
- <!--{if $_G['group']['allowreplycredit'] && !in_array($special, array(2, 3))}-->
- <!--{if $_GET[action] == 'newthread'}-->
- <!--{eval $extcreditstype = $_G['setting']['creditstransextra'][10];}-->
- <!--{else}-->
- <!--{eval $extcreditstype = $replycredit_rule['extcreditstype'] ? $replycredit_rule['extcreditstype'] : $_G['setting']['creditstransextra'][10];}-->
- <!--{/if}-->
- <!--{eval $userextcredit = getuserprofile('extcredits'.$extcreditstype);}-->
- <!--{if ($_GET[action] == 'newthread' && $userextcredit > 0) || ($_GET[action] == 'edit' && $isorigauthor && isfirstpost)}-->
- <label id="extra_replycredit_b" onclick="showExtra('extra_replycredit')"><span id="extra_replycredit_chk">{lang replycredit}</span></label>
- <!--{/if}-->
- <!--{/if}-->
- <!--{if $_G['group']['allowsetreadperm']}-->
- <label id="extra_readperm_b" onclick="showExtra('extra_readperm')"><span id="extra_readperm_chk">{lang readperm}</span></label>
- <!--{/if}-->
- <!--{if $_G['group']['maxprice'] && !$special}-->
- <label id="extra_price_b" onclick="showExtra('extra_price')"><span id="extra_price_chk">{lang price}</span></label>
- <!--{/if}-->
- <!--{if ($_GET[action] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET[action] == 'edit' && getstatus($thread['status'], 3))}-->
- <label id="extra_rushreplyset_b" onclick="showExtra('extra_rushreplyset')"><span id="extra_rushreplyset_chk">{lang rushreply}</span></label>
- <!--{/if}-->
- <!--{if $_G['group']['allowposttag']}-->
- <label id="extra_tag_b" onclick="showExtra('extra_tag')"><span id="extra_tag_chk">{lang posttag}</span></label>
- <!--{/if}-->
- <!--{if $_G['group']['allowsetpublishdate'] && ($_GET[action] == 'newthread' || ($_GET[action] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))}-->
- <label id="extra_pubdate_b" onclick="showExtra('extra_pubdate')"><span id="extra_pubdate_chk">{lang post_timer}</span></label>
- <!--{/if}-->
- </div>
- <div id="post_extra_c">
- <!--{if !empty($userextcredit)}-->
- <div id="extra_replycredit_c" class="exfm cl" style="display: none;">
- <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">
- <!--{eval for($i=1;$i<11;$i++) {;}-->
- <option value="$i"{if $replycredit_rule['membertimes'] == $i} selected="selected"{/if}>$i</option>
- <!--{eval };}-->
- </select> {lang replycredit_time}</label>, <label>{lang replycredit_rate} <select id="replycredit_random" name="replycredit_random" class="ps vm">
- <!--{eval for($i=100;$i>9;$i=$i-10) {;}-->
- <option value="$i"{if $replycredit_rule['random'] == $i} selected="selected"{/if}>$i</option>
- <!--{eval };}-->
- </select> %</label></div>
- <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>
- </div>
- <!--{/if}-->
- <!--{if $_G['group']['allowsetreadperm']}-->
- <div id="extra_readperm_c" class="exfm cl" style="display:none">
- <table cellspacing="0" cellpadding="0">
- <tr>
- <td class="xw1">{lang readperm}</td>
- <td>
- <select name="readperm" id="readperm" class="ps" style="width:90px" onchange="extraCheck(1)">
- <option value="">{lang unlimited}</option>
- <!--{loop $_G['cache']['groupreadaccess'] $val}-->
- <option value="$val[readaccess]" title="{lang readperm}: $val[readaccess]"{if $thread['readperm'] == $val[readaccess]} selected="selected"{/if}>$val[grouptitle]</option>
- <!--{/loop}-->
- <option value="255">{lang highest_right}</option>
- </select>
- <span class="xg1">{lang post_select_usergroup_readacces}</span>
- </td>
- </tr>
- </table>
- </div>
- <!--{/if}-->
- <!--{if $_G['group']['maxprice'] && !$special}-->
- <div id="extra_price_c" class="exfm cl" style="display:none">
- {lang price}:
- <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]}
- <span class="xg1">({lang post_price_comment})</span>
- <!--{if $_G['group']['maxprice'] && ($_GET[action] == 'newthread' || $_GET[action] == 'edit' && $isfirstpost)}-->
- <!--{if $_G['setting']['maxincperthread']}--><p class="xg1">{lang post_price_income_comment}</p><!--{/if}-->
- <!--{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}-->
- <!--{/if}-->
- </div>
- <!--{/if}-->
- <!--{if $_G['group']['allowposttag']}-->
- <div id="extra_tag_c" class="exfm cl" style="display: none;">
- <table cellspacing="0" cellpadding="0">
- <tr>
- <td class="xw1">{lang post_tag} </td>
- <td>
- <input type="text" class="px vm" size="60" id="tags" name="tags" value="$postinfo[tag]" onblur="extraCheck(4)" />
- <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>
- </td>
- </tr>
- <tr>
- <td></td>
- <td>
- <p class="xg1">{lang posttag_comment}</p>
- <!--{eval $recent_use_tag = recent_use_tag();}-->
- <!--{if $recent_use_tag}-->
- <p class="mtn">{lang recent_use_tag}
- <!--{eval $tagi = 0;}-->
- <!--{loop $recent_use_tag $var}-->
- <!--{if $tagi}-->, <!--{/if}--><a href="javascript:;" class="xi2" onclick="$('tags').value == '' ? $('tags').value += '$var' : $('tags').value += ',$var';extraCheck(4);doane();">$var</a>
- <!--{eval $tagi++;}-->
- <!--{/loop}-->
- </p>
- <!--{/if}-->
- </td>
- </tr>
- </table>
- </div>
- <!--{/if}-->
- <!--{if ($_GET[action] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET[action] == 'edit' && getstatus($thread['status'], 3))}-->
- <div class="exfm cl" id="extra_rushreplyset_c" style="display: none;">
- <div class="sinf sppoll z">
- <dl>
- <dt><span style="width: 4em"> </span></dt>
- <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>
- <dt><label>{lang rushreply_time}</label></dt>
- <dd>
- <div>
- <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;" />
- </div>
- </dd>
- <dt><label>{lang rushreply_rewardfloor}</label></dt>
- <dd>
- <input type="text" name="rewardfloor" id="rewardfloor" class="px oinf" value="$postinfo[rush][rewardfloor]" onkeyup="$('rushreply').checked = true;" />
- <p class="xg1">{lang rushreply_rewardfloor_comment}</p>
- </dd>
- </dl>
- </div>
- <div class="sadd z">
- <dl>
- <dt> </dt>
- <dd> </dd>
- <dt><label for="stopfloor">{lang rushreply_end}</label></dt>
- <dd>
- <input type="text" name="stopfloor" id="stopfloor" class="px" autocomplete="off" value="$postinfo[rush][stopfloor]" onkeyup="$('rushreply').checked = true;" />
- </dd>
- <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>
- <dd>
- <input type="text" name="creditlimit" id="creditlimit" class="px" autocomplete="off" value="$postinfo[rush][creditlimit]" onkeyup="$('rushreply').checked = true;" />
- <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>
- </dd>
- </dl>
- </div>
- </div>
- <!--{/if}-->
- <!--{if $_G['group']['allowsetpublishdate'] && ($_GET[action] == 'newthread' || ($_GET[action] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))}-->
- <div class="exfm cl" id="extra_pubdate_c" style="display: none;">
- <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>
- <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;">
- </div>
- <!--{/if}-->
- </div>
- </div>