File size: 3.28Kb
<!-- INCLUDE mcp_header.html -->
<script type="text/javascript">
// <![CDATA[
var ban_length = new Array();
ban_length[-1] = '';
<!-- BEGIN ban_length -->
ban_length['{ban_length.BAN_ID}'] = '{ban_length.A_LENGTH}';
<!-- END ban_length -->
var ban_reason = new Array();
ban_reason[-1] = '';
<!-- BEGIN ban_reason -->
ban_reason['{ban_reason.BAN_ID}'] = '{ban_reason.A_REASON}';
<!-- END ban_reason -->
var ban_give_reason = new Array();
ban_give_reason[-1] = '';
<!-- BEGIN ban_give_reason -->
ban_give_reason['{ban_give_reason.BAN_ID}'] = '{ban_give_reason.A_REASON}';
<!-- END ban_give_reason -->
function display_details(option)
{
document.getElementById('mcp_ban').unbangivereason.value = ban_give_reason[option];
document.getElementById('mcp_ban').unbanreason.value = ban_reason[option];
document.getElementById('mcp_ban').unbanlength.value = ban_length[option];
}
// ]]>
</script>
<form id="mcp_ban" method="post" action="{U_ACTION}">
<div class="row1">{L_TITLE}<br /><span class="genmed">{L_EXPLAIN}</span></div>
<div class="row1"><span class="gensmall">{L_BAN_CELL}:</span><br />
<textarea name="ban" cols="20" rows="3">{USERNAMES}</textarea>
<!-- IF S_USERNAME_BAN --><br />[<a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a>]<!-- ENDIF -->
</div>
<div class="row1"><span class="gensmall">{L_BAN_LENGTH}:</span><br />
<select name="banlength">{S_BAN_END_OPTIONS}</select><br /><input type="text" name="banlengthother" /> {L_YEAR_MONTH_DAY}</div>
<div class="row1"><span class="gensmall">{L_BAN_EXCLUDE}:</span><br /><span class="genmed">{L_BAN_EXCLUDE_EXPLAIN}</span><br />
<input type="radio" name="banexclude" value="1" /> {L_YES} <input type="radio" name="banexclude" value="0" checked="checked" /> {L_NO}
</div>
<div class="row1"><span class="gensmall">{L_BAN_REASON}:</span><br /><input name="banreason" type="text" maxlength="255" /></div>
<div class="row1"><span class="gensmall">{L_BAN_GIVE_REASON}:</span><br /><input name="bangivereason" type="text" maxlength="255" /></div>
<input type="submit" name="subbutton" value="{L_SUBMIT}" class="subbutton" />
<div class="row1">{L_UNBAN_TITLE}<br /><span class="genmed">{L_UNBAN_EXPLAIN}</span></div>
<!-- IF S_BANNED_OPTIONS -->
<div class="row1"><span class="gensmall">{L_BAN_CELL}:</span><br />
<select name="unban[]" multiple="multiple" size="5" onchange="if (this.selectedIndex > -1) display_details(this.options[this.selectedIndex].value); else display_details(-1);">{BANNED_OPTIONS}</select>
</div>
<div class="row1"><span class="gensmall">{L_BAN_LENGTH}:</span><br /><input type="text" name="unbanlength" disabled="disabled" /></div>
<div class="row1"><span class="gensmall">{L_BAN_REASON}:</span><br /><input type="text" name="unbanreason" disabled="disabled" /></div>
<div class="row1"><span class="gensmall">{L_BAN_GIVE_REASON}:</span><br /><input type="text" name="unbangivereason" disabled="disabled" /></div>
<div class="submit"><input type="submit" name="unbansubmit" value="{L_SUBMIT}" class="subbutton"/>
<input type="reset" value="{L_RESET}" class="subbutton"/></div>
<!-- ELSE -->
<div class="row1">{L_NO_BAN_CELL}</div>
<!-- ENDIF -->
<fieldset>{S_FORM_TOKEN}</fieldset>
</form>
<!-- INCLUDE mcp_footer.html -->