View file mobile/template/mcp_ban.html

File size: 3.39Kb
<!-- 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="row_hard">{L_TITLE}<br/>
<span class="genmed">{L_EXPLAIN}</span></div>
<div class="row1"><span class="gensmall">{L_BAN_CELL}:</span><br/>
<textarea name="ban" id="ban" cols="40" rows="3" class="post">{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} &nbsp; <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" class="post" maxlength="255" /></div>
<div class="row1"><span class="gensmall">{L_BAN_GIVE_REASON}:</span><br/>
<input name="bangivereason" type="text" maxlength="255" /></div>
<div class="cat">
<input type="submit" name="bansubmit" value="{L_SUBMIT}"/>&nbsp; <input type="reset" value="{L_RESET}"/>
</div>
<div class="row_easy">{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="10" style="width: 50%" 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 style="border: 0; width: 100%" type="text" name="unbanlength" disabled="disabled" /></div>
<div class="row1"><span class="gensmall">{L_BAN_REASON}:</span><br/>
<input style="border: 0; width: 100%" type="text" name="unbanreason" disabled="disabled" /></div>
<div class="row1"><span class="gensmall">{L_BAN_GIVE_REASON}:</span><br/>
<input style="border: 0; width: 100%" type="text" name="unbangivereason" disabled="disabled" /></div>
<div class="cat"><input type="submit" name="unbansubmit" value="{L_SUBMIT}"/>&nbsp; <input type="reset" value="{L_RESET}"/>
</div>
<!-- ELSE -->
	<div class="row1"><span class="gensmall">{L_NO_BAN_CELL}</span></div>
<!-- ENDIF -->
{S_FORM_TOKEN}
</form>
<!-- INCLUDE mcp_footer.html -->