1 | <!-- INCLUDE mcp_header.html -->
|
---|
2 |
|
---|
3 | <script type="text/javascript">
|
---|
4 | // <![CDATA[
|
---|
5 |
|
---|
6 | var ban_length = new Array();
|
---|
7 | ban_length[-1] = '';
|
---|
8 | <!-- BEGIN ban_length -->
|
---|
9 | ban_length['{ban_length.BAN_ID}'] = '{ban_length.A_LENGTH}';
|
---|
10 | <!-- END ban_length -->
|
---|
11 |
|
---|
12 | var ban_reason = new Array();
|
---|
13 | ban_reason[-1] = '';
|
---|
14 | <!-- BEGIN ban_reason -->
|
---|
15 | ban_reason['{ban_reason.BAN_ID}'] = '{ban_reason.A_REASON}';
|
---|
16 | <!-- END ban_reason -->
|
---|
17 |
|
---|
18 | var ban_give_reason = new Array();
|
---|
19 | ban_give_reason[-1] = '';
|
---|
20 | <!-- BEGIN ban_give_reason -->
|
---|
21 | ban_give_reason['{ban_give_reason.BAN_ID}'] = '{ban_give_reason.A_REASON}';
|
---|
22 | <!-- END ban_give_reason -->
|
---|
23 |
|
---|
24 | function display_details(option)
|
---|
25 | {
|
---|
26 | document.getElementById('mcp_ban').unbangivereason.value = ban_give_reason[option];
|
---|
27 | document.getElementById('mcp_ban').unbanreason.value = ban_reason[option];
|
---|
28 | document.getElementById('mcp_ban').unbanlength.value = ban_length[option];
|
---|
29 | }
|
---|
30 |
|
---|
31 | // ]]>
|
---|
32 | </script>
|
---|
33 |
|
---|
34 | <form id="mcp_ban" method="post" action="{U_ACTION}">
|
---|
35 |
|
---|
36 | <table width="100%" class="tablebg" cellspacing="1" cellpadding="4" border="0">
|
---|
37 | <tr>
|
---|
38 | <th colspan="2" nowrap="nowrap">{L_TITLE}</th>
|
---|
39 | </tr>
|
---|
40 | <tr>
|
---|
41 | <td class="row3" colspan="2">{L_EXPLAIN}</td>
|
---|
42 | </tr>
|
---|
43 | <tr>
|
---|
44 | <td class="row1" width="45%" valign="top"><b>{L_BAN_CELL}:</b></td>
|
---|
45 | <td class="row2">
|
---|
46 | <textarea name="ban" id="ban" cols="40" rows="3" class="post">{USERNAMES}</textarea>
|
---|
47 | <!-- IF S_USERNAME_BAN --><br />[ <a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a> ]<!-- ENDIF -->
|
---|
48 | </td>
|
---|
49 | </tr>
|
---|
50 | <tr>
|
---|
51 | <td class="row1" valign="top"><b>{L_BAN_LENGTH}:</b></td>
|
---|
52 | <td class="row2"><select name="banlength">{S_BAN_END_OPTIONS}</select><br /><input type="text" name="banlengthother" class="post" /> {L_YEAR_MONTH_DAY}</td>
|
---|
53 | </tr>
|
---|
54 | <tr>
|
---|
55 | <td class="row1" valign="top"><b>{L_BAN_EXCLUDE}:</b><br /><span class="gensmall">{L_BAN_EXCLUDE_EXPLAIN}</span></td>
|
---|
56 | <td class="row2"><input type="radio" class="radio" name="banexclude" value="1" /> {L_YES} <input type="radio" class="radio" name="banexclude" value="0" checked="checked" /> {L_NO}</td>
|
---|
57 | </tr>
|
---|
58 | <tr>
|
---|
59 | <td class="row1" valign="top"><b>{L_BAN_REASON}:</b></td>
|
---|
60 | <td class="row2"><input name="banreason" type="text" class="post" maxlength="255" /></td>
|
---|
61 | </tr>
|
---|
62 | <tr>
|
---|
63 | <td class="row1" valign="top"><b>{L_BAN_GIVE_REASON}:</b></td>
|
---|
64 | <td class="row2"><input name="bangivereason" type="text" class="post" maxlength="255" /></td>
|
---|
65 | </tr>
|
---|
66 | <tr>
|
---|
67 | <td class="cat" colspan="2" align="center"><input type="submit" name="bansubmit" value="{L_SUBMIT}" class="btnmain" /> <input type="reset" value="{L_RESET}" class="btnlite" /> </td>
|
---|
68 | </tr>
|
---|
69 | </table>
|
---|
70 |
|
---|
71 | <br /><br />
|
---|
72 |
|
---|
73 | <table width="100%" class="tablebg" cellspacing="1" cellpadding="4" border="0">
|
---|
74 | <tr>
|
---|
75 | <th colspan="2" nowrap="nowrap">{L_UNBAN_TITLE}</th>
|
---|
76 | </tr>
|
---|
77 | <tr>
|
---|
78 | <td class="row3" colspan="2">{L_UNBAN_EXPLAIN}</td>
|
---|
79 | </tr>
|
---|
80 | <!-- IF S_BANNED_OPTIONS -->
|
---|
81 | <tr>
|
---|
82 | <td class="row1" valign="top" width="45%"><b>{L_BAN_CELL}:</b></td>
|
---|
83 | <td class="row2"><select 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></td>
|
---|
84 | </tr>
|
---|
85 | <tr>
|
---|
86 | <td class="row1" valign="top"><b>{L_BAN_LENGTH}:</b></td>
|
---|
87 | <td class="row2"><input style="border: 0; width: 100%" type="text" name="unbanlength" disabled="disabled" /></td>
|
---|
88 | </tr>
|
---|
89 | <tr>
|
---|
90 | <td class="row1" valign="top"><b>{L_BAN_REASON}:</b></td>
|
---|
91 | <td class="row2"><input style="border: 0; width: 100%" type="text" name="unbanreason" disabled="disabled" /></td>
|
---|
92 | </tr>
|
---|
93 | <tr>
|
---|
94 | <td class="row1" valign="top"><b>{L_BAN_GIVE_REASON}:</b></td>
|
---|
95 | <td class="row2"><input style="border: 0; width: 100%" type="text" name="unbangivereason" disabled="disabled" /></td>
|
---|
96 | </tr>
|
---|
97 | <tr>
|
---|
98 | <td class="cat" colspan="2" align="center"><input type="submit" name="unbansubmit" value="{L_SUBMIT}" class="btnmain" /> <input type="reset" value="{L_RESET}" class="btnlite" /> </td>
|
---|
99 | </tr>
|
---|
100 | <!-- ELSE -->
|
---|
101 | <tr>
|
---|
102 | <td class="row1" colspan="2"><b>{L_NO_BAN_CELL}</b></td>
|
---|
103 | </tr>
|
---|
104 | <!-- ENDIF -->
|
---|
105 | </table>
|
---|
106 | {S_FORM_TOKEN}
|
---|
107 | </form>
|
---|
108 |
|
---|
109 | <!-- INCLUDE mcp_footer.html -->
|
---|