PageRenderTime 2ms CodeModel.GetById 40ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/Quản lý website tin tức PHP/discuznews/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
 31	<div id="post_extra_c">
 32		<!--{if !empty($userextcredit)}-->
 33			<div id="extra_replycredit_c" class="exfm cl" style="display: none;">
 34				<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">
 35				<!--{eval for($i=1;$i<11;$i++) {;}-->
 36				<option value="$i"{if $replycredit_rule['membertimes'] == $i} selected="selected"{/if}>$i</option>
 37				<!--{eval };}-->
 38				</select> {lang replycredit_time}</label>, <label>{lang replycredit_rate} <select id="replycredit_random" name="replycredit_random" class="ps vm">
 39				 <!--{eval for($i=100;$i>9;$i=$i-10) {;}-->
 40				<option value="$i"{if $replycredit_rule['random'] == $i} selected="selected"{/if}>$i</option>
 41				<!--{eval };}-->
 42				</select> %</label></div>
 43				<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>
 44			</div>
 45		<!--{/if}-->
 46
 47		<!--{if $_G['group']['allowsetreadperm']}-->
 48			<div id="extra_readperm_c" class="exfm cl" style="display:none">
 49				<table cellspacing="0" cellpadding="0">
 50					<tr>
 51						<td class="xw1">{lang readperm}</td>
 52						<td>
 53							<select name="readperm" id="readperm" class="ps" style="width:90px" onchange="extraCheck(1)">
 54								<option value="">{lang unlimited}</option>
 55								<!--{loop $_G['cache']['groupreadaccess'] $val}-->
 56									<option value="$val[readaccess]" title="{lang readperm}: $val[readaccess]"{if $thread['readperm'] == $val[readaccess]} selected="selected"{/if}>$val[grouptitle]</option>
 57								<!--{/loop}-->
 58								<option value="255">{lang highest_right}</option>
 59							</select>
 60							<span class="xg1">{lang post_select_usergroup_readacces}</span>
 61						</td>
 62					</tr>
 63				</table>
 64			</div>
 65		<!--{/if}-->
 66
 67		<!--{if $_G['group']['maxprice'] && !$special}-->
 68			<div id="extra_price_c" class="exfm cl" style="display:none">
 69				{lang price}:
 70				<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]}
 71				<span class="xg1">({lang post_price_comment})</span>
 72				<!--{if $_G['group']['maxprice'] && ($_GET[action] == 'newthread' || $_GET[action] == 'edit' && $isfirstpost)}-->
 73					<!--{if $_G['setting']['maxincperthread']}--><p class="xg1">{lang post_price_income_comment}</p><!--{/if}-->
 74					<!--{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}-->
 75				<!--{/if}-->
 76			</div>
 77		<!--{/if}-->
 78
 79		<!--{if $_G['group']['allowposttag']}-->
 80			<div id="extra_tag_c" class="exfm cl" style="display: none;">
 81				<table cellspacing="0" cellpadding="0">
 82					<tr>
 83						<td class="xw1">{lang post_tag} </td>
 84						<td>
 85							<input type="text" class="px vm" size="60" id="tags" name="tags" value="$postinfo[tag]" onblur="extraCheck(4)" />
 86							<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>
 87						</td>
 88					</tr>
 89					<tr>
 90						<td></td>
 91						<td>
 92							<p class="xg1">{lang posttag_comment}</p>
 93							<!--{eval $recent_use_tag = recent_use_tag();}-->
 94							<!--{if $recent_use_tag}-->
 95								<p class="mtn">{lang recent_use_tag}&nbsp;
 96									<!--{eval $tagi = 0;}-->
 97									<!--{loop $recent_use_tag $var}-->
 98										<!--{if $tagi}-->, <!--{/if}--><a href="javascript:;" class="xi2" onclick="$('tags').value == '' ? $('tags').value += '$var' : $('tags').value += ',$var';extraCheck(4);doane();">$var</a>
 99										<!--{eval $tagi++;}-->
100									<!--{/loop}-->
101								</p>
102							<!--{/if}-->
103						</td>
104					</tr>
105				</table>
106			</div>
107		<!--{/if}-->
108
109		<!--{if ($_GET[action] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET[action] == 'edit' && getstatus($thread['status'], 3))}-->
110			<div class="exfm cl" id="extra_rushreplyset_c" style="display: none;">
111				<div class="sinf sppoll z">
112					<dl>
113						<dt><span style="width: 4em">&nbsp;</span></dt>
114						<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>
115						<dt><label>{lang rushreply_time}</label></dt>
116						<dd>
117							<div>
118								<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;" />
119							</div>
120						</dd>
121						<dt><label>{lang rushreply_rewardfloor}</label></dt>
122						<dd>
123							<input type="text" name="rewardfloor" id="rewardfloor" class="px oinf" value="$postinfo[rush][rewardfloor]" onkeyup="$('rushreply').checked = true;" />
124							<p class="xg1">{lang rushreply_rewardfloor_comment}</p>
125						</dd>
126					</dl>
127				</div>
128				<div class="sadd z">
129					<dl>
130						<dt>&nbsp;</dt>
131						<dd>&nbsp;</dd>
132						<dt><label for="stopfloor">{lang rushreply_end}</label></dt>
133						<dd>
134							<input type="text" name="stopfloor" id="stopfloor" class="px" autocomplete="off" value="$postinfo[rush][stopfloor]" onkeyup="$('rushreply').checked = true;" />
135						</dd>
136						<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>
137						<dd>
138							<input type="text" name="creditlimit" id="creditlimit" class="px" autocomplete="off" value="$postinfo[rush][creditlimit]" onkeyup="$('rushreply').checked = true;" />
139							<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>
140						</dd>
141					</dl>
142				</div>
143			</div>
144		<!--{/if}-->
145		<!--{if $_G['group']['allowsetpublishdate'] && ($_GET[action] == 'newthread' || ($_GET[action] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))}-->
146			<div class="exfm cl" id="extra_pubdate_c" style="display: none;">
147				<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>
148				<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;">
149			</div>
150		<!--{/if}-->
151	</div>
152</div>