source: trunk/forum/adm/style/acp_ban.html

Last change on this file was 702, checked in by george, 15 years ago
  • Upraveno: Aktualizace fóra.
File size: 4.3 KB
Line 
1<!-- INCLUDE overall_header.html -->
2
3<a name="maincontent"></a>
4
5<p>{L_ACP_BAN_EXPLAIN}</p>
6
7<h1>{L_TITLE}</h1>
8
9<p>{L_EXPLAIN}</p>
10
11<script type="text/javascript">
12// <![CDATA[
13
14 var ban_length = new Array();
15 ban_length[-1] = '';
16 <!-- BEGIN ban_length -->
17 ban_length['{ban_length.BAN_ID}'] = '{ban_length.A_LENGTH}';
18 <!-- END ban_length -->
19
20 var ban_reason = new Array();
21 ban_reason[-1] = '';
22 <!-- BEGIN ban_reason -->
23 ban_reason['{ban_reason.BAN_ID}'] = '{ban_reason.A_REASON}';
24 <!-- END ban_reason -->
25
26 var ban_give_reason = new Array();
27 ban_give_reason[-1] = '';
28 <!-- BEGIN ban_give_reason -->
29 ban_give_reason['{ban_give_reason.BAN_ID}'] = '{ban_give_reason.A_REASON}';
30 <!-- END ban_give_reason -->
31
32 function display_details(option)
33 {
34 document.getElementById('acp_unban').unbangivereason.value = ban_give_reason[option];
35 document.getElementById('acp_unban').unbanreason.value = ban_reason[option];
36 document.getElementById('acp_unban').unbanlength.value = ban_length[option];
37 }
38
39// ]]>
40</script>
41
42<form id="acp_ban" method="post" action="{U_ACTION}">
43
44<fieldset>
45 <legend>{L_TITLE}</legend>
46<dl>
47 <dt><label for="ban">{L_BAN_CELL}:</label></dt>
48 <dd><textarea name="ban" cols="40" rows="3" id="ban"></textarea></dd>
49 <!-- IF S_USERNAME_BAN --><dd>[ <a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a> ]</dd><!-- ENDIF -->
50</dl>
51<dl>
52 <dt><label for="banlength">{L_BAN_LENGTH}:</label></dt>
53 <dd><label for="banlength"><select name="banlength" id="banlength" onchange="if(this.value==-1){document.getElementById('banlengthother').style.display = 'block';}else{document.getElementById('banlengthother').style.display='none';}">{S_BAN_END_OPTIONS}</select></label></dd>
54 <dd id="banlengthother" style="display: none;"><label><input type="text" name="banlengthother" class="inputbox" /><br /><span>{L_YEAR_MONTH_DAY}</span></label></dd>
55</dl>
56<dl>
57 <dt><label for="banexclude">{L_BAN_EXCLUDE}:</label><br /><span>{L_BAN_EXCLUDE_EXPLAIN}</span></dt>
58 <dd><label><input type="radio" name="banexclude" value="1" class="radio" /> {L_YES}</label>
59 <label><input type="radio" name="banexclude" id="banexclude" value="0" checked="checked" class="radio" /> {L_NO}</label></dd>
60</dl>
61<dl>
62 <dt><label for="banreason">{L_BAN_REASON}:</label></dt>
63 <dd><input name="banreason" type="text" class="text medium" maxlength="255" id="banreason" /></dd>
64</dl>
65<dl>
66 <dt><label for="bangivereason">{L_BAN_GIVE_REASON}:</label></dt>
67 <dd><input name="bangivereason" type="text" class="text medium" maxlength="255" id="bangivereason" /></dd>
68</dl>
69
70<p class="submit-buttons">
71 <input class="button1" type="submit" id="bansubmit" name="bansubmit" value="{L_SUBMIT}" />&nbsp;
72 <input class="button2" type="reset" id="banreset" name="banreset" value="{L_RESET}" />
73</p>
74{S_FORM_TOKEN}
75</fieldset>
76</form>
77
78<br /><br />
79
80<h1>{L_UNBAN_TITLE}</h1>
81
82<p>{L_UNBAN_EXPLAIN}</p>
83
84<form id="acp_unban" method="post" action="{U_ACTION}">
85
86<fieldset>
87 <legend>{L_UNBAN_TITLE}</legend>
88
89<!-- IF S_BANNED_OPTIONS -->
90 <dl>
91 <dt><label for="unban">{L_BAN_CELL}:</label></dt>
92 <dd><select id="unban" name="unban[]" multiple="multiple" size="10" style="width: 50%" onchange="if (this.selectedIndex > -1) display_details(this.options[this.selectedIndex].value); else display_details(-1);">{BANNED_OPTIONS}</select></dd>
93 </dl>
94 <dl>
95 <dt><label for="unbanlength">{L_BAN_LENGTH}:</label></dt>
96 <dd><input style="border: 0;" type="text" class="text full" readonly="readonly" name="unbanlength" id="unbanlength" /></dd>
97 </dl>
98 <dl>
99 <dt><label for="unbanreason">{L_BAN_REASON}:</label></dt>
100 <dd><textarea style="border: 0;" class="text full" readonly="readonly" name="unbanreason" id="unbanreason" rows="5" cols="80">&nbsp;</textarea></dd>
101 </dl>
102 <dl>
103 <dt><label for="unbangivereason">{L_BAN_GIVE_REASON}:</label></dt>
104 <dd><textarea style="border: 0;" class="text full" readonly="readonly" name="unbangivereason" id="unbangivereason" rows="5" cols="80">&nbsp;</textarea></dd>
105 </dl>
106
107 <p class="submit-buttons">
108 <input class="button1" type="submit" id="unbansubmit" name="unbansubmit" value="{L_SUBMIT}" />&nbsp;
109 <input class="button2" type="reset" id="unbanreset" name="unbanreset" value="{L_RESET}" />
110 </p>
111 {S_FORM_TOKEN}
112 </fieldset>
113
114<!-- ELSE -->
115
116 <p>{L_NO_BAN_CELL}</p>
117 {S_FORM_TOKEN}
118</fieldset>
119
120<!-- ENDIF -->
121
122</form>
123
124<!-- INCLUDE overall_footer.html -->
Note: See TracBrowser for help on using the repository browser.