<?php

/* acp_ban.html */
class __TwigTemplate_23acad4e7b331d8fd6b35b39c677974c1778d6600f474539ffd98268d0156c40 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        $location = "overall_header.html";
        $namespace = false;
        if (strpos($location, '@') === 0) {
            $namespace = substr($location, 1, strpos($location, '/') - 1);
            $previous_look_up_order = $this->env->getNamespaceLookUpOrder();
            $this->env->setNamespaceLookUpOrder(array($namespace, '__main__'));
        }
        $this->loadTemplate("overall_header.html", "acp_ban.html", 1)->display($context);
        if ($namespace) {
            $this->env->setNamespaceLookUpOrder($previous_look_up_order);
        }
        // line 2
        echo "
<a id=\"maincontent\"></a>

<p>";
        // line 5
        echo $this->env->getExtension('phpbb')->lang("ACP_BAN_EXPLAIN");
        echo "</p>

<h1>";
        // line 7
        echo $this->env->getExtension('phpbb')->lang("TITLE");
        echo "</h1>

<p>";
        // line 9
        echo $this->env->getExtension('phpbb')->lang("EXPLAIN");
        echo "</p>

<script type=\"text/javascript\">
// <![CDATA[

\tvar ban_length = new Array();
\t\tban_length[-1] = '';
\tvar ban_reason = new Array();
\t\tban_reason[-1] = '';
\tvar ban_give_reason = new Array();
\t\tban_give_reason[-1] = '';

\t";
        // line 21
        if (isset($context["loops"])) { $_loops_ = $context["loops"]; } else { $_loops_ = null; }
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute($_loops_, "bans", array()));
        foreach ($context['_seq'] as $context["_key"] => $context["bans"]) {
            // line 22
            echo "\t\tban_length['";
            if (isset($context["bans"])) { $_bans_ = $context["bans"]; } else { $_bans_ = null; }
            echo $this->getAttribute($_bans_, "BAN_ID", array());
            echo "'] = '";
            if (isset($context["bans"])) { $_bans_ = $context["bans"]; } else { $_bans_ = null; }
            echo $this->getAttribute($_bans_, "A_LENGTH", array());
            echo "';
\t\t";
            // line 23
            if (isset($context["bans"])) { $_bans_ = $context["bans"]; } else { $_bans_ = null; }
            if ($this->getAttribute($_bans_, "A_REASON", array())) {
                // line 24
                echo "\t\t\tban_reason['";
                if (isset($context["bans"])) { $_bans_ = $context["bans"]; } else { $_bans_ = null; }
                echo $this->getAttribute($_bans_, "BAN_ID", array());
                echo "'] = '";
                if (isset($context["bans"])) { $_bans_ = $context["bans"]; } else { $_bans_ = null; }
                echo $this->getAttribute($_bans_, "A_REASON", array());
                echo "';
\t\t";
            }
            // line 26
            echo "\t\t";
            if (isset($context["bans"])) { $_bans_ = $context["bans"]; } else { $_bans_ = null; }
            if ($this->getAttribute($_bans_, "A_GIVE_REASON", array())) {
                // line 27
                echo "\t\t\tban_give_reason['";
                if (isset($context["bans"])) { $_bans_ = $context["bans"]; } else { $_bans_ = null; }
                echo $this->getAttribute($_bans_, "BAN_ID", array());
                echo "'] = '";
                if (isset($context["bans"])) { $_bans_ = $context["bans"]; } else { $_bans_ = null; }
                echo $this->getAttribute($_bans_, "A_GIVE_REASON", array());
                echo "';
\t\t";
            }
            // line 29
            echo "\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bans'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 30
        echo "
\tfunction display_details(option)
\t{
\t\tdocument.getElementById('unbanlength').value = ban_length[option];
\t\tif (option in ban_reason) {
\t\t\tdocument.getElementById('unbanreason').innerHTML = ban_reason[option];
\t\t} else {
\t\t\tdocument.getElementById('unbanreason').innerHTML = '';
\t\t}
\t\tif (option in ban_give_reason) {
\t\t\tdocument.getElementById('unbangivereason').innerHTML = ban_give_reason[option];
\t\t} else {
\t\t\tdocument.getElementById('unbangivereason').innerHTML = '';
\t\t}
\t}

// ]]>
</script>

<form id=\"acp_ban\" method=\"post\" action=\"";
        // line 49
        if (isset($context["U_ACTION"])) { $_U_ACTION_ = $context["U_ACTION"]; } else { $_U_ACTION_ = null; }
        echo $_U_ACTION_;
        echo "\">

<fieldset>
\t<legend>";
        // line 52
        echo $this->env->getExtension('phpbb')->lang("TITLE");
        echo "</legend>
<dl>
\t<dt><label for=\"ban\">";
        // line 54
        echo $this->env->getExtension('phpbb')->lang("BAN_CELL");
        echo $this->env->getExtension('phpbb')->lang("COLON");
        echo "</label></dt>
\t<dd>";
        // line 55
        if (isset($context["acp_ban_cell_prepend"])) { $_acp_ban_cell_prepend_ = $context["acp_ban_cell_prepend"]; } else { $_acp_ban_cell_prepend_ = null; }
        echo "<textarea name=\"ban\" cols=\"40\" rows=\"3\" id=\"ban\"></textarea>";
        if (isset($context["acp_ban_cell_append"])) { $_acp_ban_cell_append_ = $context["acp_ban_cell_append"]; } else { $_acp_ban_cell_append_ = null; }
        echo "</dd>
\t";
        // line 56
        if (isset($context["S_USERNAME_BAN"])) { $_S_USERNAME_BAN_ = $context["S_USERNAME_BAN"]; } else { $_S_USERNAME_BAN_ = null; }
        if ($_S_USERNAME_BAN_) {
            echo "<dd>[ <a href=\"";
            if (isset($context["U_FIND_USERNAME"])) { $_U_FIND_USERNAME_ = $context["U_FIND_USERNAME"]; } else { $_U_FIND_USERNAME_ = null; }
            echo $_U_FIND_USERNAME_;
            echo "\" onclick=\"find_username(this.href); return false;\">";
            echo $this->env->getExtension('phpbb')->lang("FIND_USERNAME");
            echo "</a> ]</dd>";
        }
        // line 57
        echo "</dl>
<dl>
\t<dt><label for=\"banlength\">";
        // line 59
        echo $this->env->getExtension('phpbb')->lang("BAN_LENGTH");
        echo $this->env->getExtension('phpbb')->lang("COLON");
        echo "</label></dt>
\t<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';}\">";
        // line 60
        if (isset($context["S_BAN_END_OPTIONS"])) { $_S_BAN_END_OPTIONS_ = $context["S_BAN_END_OPTIONS"]; } else { $_S_BAN_END_OPTIONS_ = null; }
        echo $_S_BAN_END_OPTIONS_;
        echo "</select></label></dd>
\t<dd id=\"banlengthother\" style=\"display: none;\"><label><input type=\"text\" name=\"banlengthother\" class=\"inputbox\" /><br /><span>";
        // line 61
        echo $this->env->getExtension('phpbb')->lang("YEAR_MONTH_DAY");
        echo "</span></label></dd>
</dl>
<dl>
\t<dt><label for=\"banexclude\">";
        // line 64
        echo $this->env->getExtension('phpbb')->lang("BAN_EXCLUDE");
        echo $this->env->getExtension('phpbb')->lang("COLON");
        echo "</label><br /><span>";
        echo $this->env->getExtension('phpbb')->lang("BAN_EXCLUDE_EXPLAIN");
        echo "</span></dt>
\t<dd><label><input type=\"radio\" name=\"banexclude\" value=\"1\" class=\"radio\" /> ";
        // line 65
        echo $this->env->getExtension('phpbb')->lang("YES");
        echo "</label>
\t\t<label><input type=\"radio\" name=\"banexclude\" id=\"banexclude\" value=\"0\" checked=\"checked\" class=\"radio\" /> ";
        // line 66
        echo $this->env->getExtension('phpbb')->lang("NO");
        echo "</label></dd>
</dl>
<dl>
\t<dt><label for=\"banreason\">";
        // line 69
        echo $this->env->getExtension('phpbb')->lang("BAN_REASON");
        echo $this->env->getExtension('phpbb')->lang("COLON");
        echo "</label></dt>
\t<dd><input name=\"banreason\" type=\"text\" class=\"text medium\" maxlength=\"255\" id=\"banreason\" /></dd>
</dl>
<dl>
\t<dt><label for=\"bangivereason\">";
        // line 73
        echo $this->env->getExtension('phpbb')->lang("BAN_GIVE_REASON");
        echo $this->env->getExtension('phpbb')->lang("COLON");
        echo "</label></dt>
\t<dd><input name=\"bangivereason\" type=\"text\" class=\"text medium\" maxlength=\"255\" id=\"bangivereason\" /></dd>
</dl>

<p class=\"submit-buttons\">
\t<input class=\"button1\" type=\"submit\" id=\"bansubmit\" name=\"bansubmit\" value=\"";
        // line 78
        echo $this->env->getExtension('phpbb')->lang("SUBMIT");
        echo "\" />&nbsp;
\t<input class=\"button2\" type=\"reset\" id=\"banreset\" name=\"banreset\" value=\"";
        // line 79
        echo $this->env->getExtension('phpbb')->lang("RESET");
        echo "\" />
</p>
";
        // line 81
        if (isset($context["S_FORM_TOKEN"])) { $_S_FORM_TOKEN_ = $context["S_FORM_TOKEN"]; } else { $_S_FORM_TOKEN_ = null; }
        echo $_S_FORM_TOKEN_;
        echo "
</fieldset>
</form>

<br /><br />

<h1>";
        // line 87
        echo $this->env->getExtension('phpbb')->lang("UNBAN_TITLE");
        echo "</h1>

<p>";
        // line 89
        echo $this->env->getExtension('phpbb')->lang("UNBAN_EXPLAIN");
        echo "</p>

<form id=\"acp_unban\" method=\"post\" action=\"";
        // line 91
        if (isset($context["U_ACTION"])) { $_U_ACTION_ = $context["U_ACTION"]; } else { $_U_ACTION_ = null; }
        echo $_U_ACTION_;
        echo "\">

<fieldset>
\t<legend>";
        // line 94
        echo $this->env->getExtension('phpbb')->lang("UNBAN_TITLE");
        echo "</legend>

";
        // line 96
        if (isset($context["S_BANNED_OPTIONS"])) { $_S_BANNED_OPTIONS_ = $context["S_BANNED_OPTIONS"]; } else { $_S_BANNED_OPTIONS_ = null; }
        if ($_S_BANNED_OPTIONS_) {
            // line 97
            echo "\t<dl>
\t\t<dt><label for=\"unban\">";
            // line 98
            echo $this->env->getExtension('phpbb')->lang("BAN_CELL");
            echo $this->env->getExtension('phpbb')->lang("COLON");
            echo "</label></dt>
\t\t<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);\">";
            // line 99
            if (isset($context["BANNED_OPTIONS"])) { $_BANNED_OPTIONS_ = $context["BANNED_OPTIONS"]; } else { $_BANNED_OPTIONS_ = null; }
            echo $_BANNED_OPTIONS_;
            echo "</select></dd>
\t</dl>
\t<dl>
\t\t<dt><label for=\"unbanlength\">";
            // line 102
            echo $this->env->getExtension('phpbb')->lang("BAN_LENGTH");
            echo $this->env->getExtension('phpbb')->lang("COLON");
            echo "</label></dt>
\t\t<dd><input style=\"border: 0;\" type=\"text\" class=\"text full\" readonly=\"readonly\" name=\"unbanlength\" id=\"unbanlength\" /></dd>
\t</dl>
\t<dl>
\t\t<dt><label for=\"unbanreason\">";
            // line 106
            echo $this->env->getExtension('phpbb')->lang("BAN_REASON");
            echo $this->env->getExtension('phpbb')->lang("COLON");
            echo "</label></dt>
\t\t<dd><textarea style=\"border: 0;\" class=\"text full\" readonly=\"readonly\" name=\"unbanreason\" id=\"unbanreason\" rows=\"5\" cols=\"80\">&nbsp;</textarea></dd>
\t</dl>
\t<dl>
\t\t<dt><label for=\"unbangivereason\">";
            // line 110
            echo $this->env->getExtension('phpbb')->lang("BAN_GIVE_REASON");
            echo $this->env->getExtension('phpbb')->lang("COLON");
            echo "</label></dt>
\t\t<dd><textarea style=\"border: 0;\" class=\"text full\" readonly=\"readonly\" name=\"unbangivereason\" id=\"unbangivereason\" rows=\"5\" cols=\"80\">&nbsp;</textarea></dd>
\t</dl>

\t<p class=\"submit-buttons\">
\t\t<input class=\"button1\" type=\"submit\" id=\"unbansubmit\" name=\"unbansubmit\" value=\"";
            // line 115
            echo $this->env->getExtension('phpbb')->lang("SUBMIT");
            echo "\" />&nbsp;
\t\t<input class=\"button2\" type=\"reset\" id=\"unbanreset\" name=\"unbanreset\" value=\"";
            // line 116
            echo $this->env->getExtension('phpbb')->lang("RESET");
            echo "\" />
\t</p>
\t";
            // line 118
            if (isset($context["S_FORM_TOKEN"])) { $_S_FORM_TOKEN_ = $context["S_FORM_TOKEN"]; } else { $_S_FORM_TOKEN_ = null; }
            echo $_S_FORM_TOKEN_;
            echo "
\t</fieldset>

";
        } else {
            // line 122
            echo "
\t<p>";
            // line 123
            echo $this->env->getExtension('phpbb')->lang("NO_BAN_CELL");
            echo "</p>
\t";
            // line 124
            if (isset($context["S_FORM_TOKEN"])) { $_S_FORM_TOKEN_ = $context["S_FORM_TOKEN"]; } else { $_S_FORM_TOKEN_ = null; }
            echo $_S_FORM_TOKEN_;
            echo "
</fieldset>

";
        }
        // line 128
        echo "
</form>

";
        // line 131
        $location = "overall_footer.html";
        $namespace = false;
        if (strpos($location, '@') === 0) {
            $namespace = substr($location, 1, strpos($location, '/') - 1);
            $previous_look_up_order = $this->env->getNamespaceLookUpOrder();
            $this->env->setNamespaceLookUpOrder(array($namespace, '__main__'));
        }
        $this->loadTemplate("overall_footer.html", "acp_ban.html", 131)->display($context);
        if ($namespace) {
            $this->env->setNamespaceLookUpOrder($previous_look_up_order);
        }
    }

    public function getTemplateName()
    {
        return "acp_ban.html";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  337 => 131,  332 => 128,  324 => 124,  320 => 123,  317 => 122,  309 => 118,  304 => 116,  300 => 115,  291 => 110,  283 => 106,  275 => 102,  268 => 99,  263 => 98,  260 => 97,  257 => 96,  252 => 94,  245 => 91,  240 => 89,  235 => 87,  225 => 81,  220 => 79,  216 => 78,  207 => 73,  199 => 69,  193 => 66,  189 => 65,  182 => 64,  176 => 61,  171 => 60,  166 => 59,  162 => 57,  152 => 56,  146 => 55,  141 => 54,  136 => 52,  129 => 49,  108 => 30,  102 => 29,  92 => 27,  88 => 26,  78 => 24,  75 => 23,  66 => 22,  61 => 21,  46 => 9,  41 => 7,  36 => 5,  31 => 2,  19 => 1,);
    }
}
/* <!-- INCLUDE overall_header.html -->*/
/* */
/* <a id="maincontent"></a>*/
/* */
/* <p>{L_ACP_BAN_EXPLAIN}</p>*/
/* */
/* <h1>{L_TITLE}</h1>*/
/* */
/* <p>{L_EXPLAIN}</p>*/
/* */
/* <script type="text/javascript">*/
/* // <![CDATA[*/
/* */
/* 	var ban_length = new Array();*/
/* 		ban_length[-1] = '';*/
/* 	var ban_reason = new Array();*/
/* 		ban_reason[-1] = '';*/
/* 	var ban_give_reason = new Array();*/
/* 		ban_give_reason[-1] = '';*/
/* */
/* 	<!-- BEGIN bans -->*/
/* 		ban_length['{bans.BAN_ID}'] = '{bans.A_LENGTH}';*/
/* 		<!-- IF bans.A_REASON -->*/
/* 			ban_reason['{bans.BAN_ID}'] = '{bans.A_REASON}';*/
/* 		<!-- ENDIF -->*/
/* 		<!-- IF bans.A_GIVE_REASON -->*/
/* 			ban_give_reason['{bans.BAN_ID}'] = '{bans.A_GIVE_REASON}';*/
/* 		<!-- ENDIF -->*/
/* 	<!-- END bans -->*/
/* */
/* 	function display_details(option)*/
/* 	{*/
/* 		document.getElementById('unbanlength').value = ban_length[option];*/
/* 		if (option in ban_reason) {*/
/* 			document.getElementById('unbanreason').innerHTML = ban_reason[option];*/
/* 		} else {*/
/* 			document.getElementById('unbanreason').innerHTML = '';*/
/* 		}*/
/* 		if (option in ban_give_reason) {*/
/* 			document.getElementById('unbangivereason').innerHTML = ban_give_reason[option];*/
/* 		} else {*/
/* 			document.getElementById('unbangivereason').innerHTML = '';*/
/* 		}*/
/* 	}*/
/* */
/* // ]]>*/
/* </script>*/
/* */
/* <form id="acp_ban" method="post" action="{U_ACTION}">*/
/* */
/* <fieldset>*/
/* 	<legend>{L_TITLE}</legend>*/
/* <dl>*/
/* 	<dt><label for="ban">{L_BAN_CELL}{L_COLON}</label></dt>*/
/* 	<dd><!-- EVENT acp_ban_cell_prepend --><textarea name="ban" cols="40" rows="3" id="ban"></textarea><!-- EVENT acp_ban_cell_append --></dd>*/
/* 	<!-- IF S_USERNAME_BAN --><dd>[ <a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a> ]</dd><!-- ENDIF -->*/
/* </dl>*/
/* <dl>*/
/* 	<dt><label for="banlength">{L_BAN_LENGTH}{L_COLON}</label></dt>*/
/* 	<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>*/
/* 	<dd id="banlengthother" style="display: none;"><label><input type="text" name="banlengthother" class="inputbox" /><br /><span>{L_YEAR_MONTH_DAY}</span></label></dd>*/
/* </dl>*/
/* <dl>*/
/* 	<dt><label for="banexclude">{L_BAN_EXCLUDE}{L_COLON}</label><br /><span>{L_BAN_EXCLUDE_EXPLAIN}</span></dt>*/
/* 	<dd><label><input type="radio" name="banexclude" value="1" class="radio" /> {L_YES}</label>*/
/* 		<label><input type="radio" name="banexclude" id="banexclude" value="0" checked="checked" class="radio" /> {L_NO}</label></dd>*/
/* </dl>*/
/* <dl>*/
/* 	<dt><label for="banreason">{L_BAN_REASON}{L_COLON}</label></dt>*/
/* 	<dd><input name="banreason" type="text" class="text medium" maxlength="255" id="banreason" /></dd>*/
/* </dl>*/
/* <dl>*/
/* 	<dt><label for="bangivereason">{L_BAN_GIVE_REASON}{L_COLON}</label></dt>*/
/* 	<dd><input name="bangivereason" type="text" class="text medium" maxlength="255" id="bangivereason" /></dd>*/
/* </dl>*/
/* */
/* <p class="submit-buttons">*/
/* 	<input class="button1" type="submit" id="bansubmit" name="bansubmit" value="{L_SUBMIT}" />&nbsp;*/
/* 	<input class="button2" type="reset" id="banreset" name="banreset" value="{L_RESET}" />*/
/* </p>*/
/* {S_FORM_TOKEN}*/
/* </fieldset>*/
/* </form>*/
/* */
/* <br /><br />*/
/* */
/* <h1>{L_UNBAN_TITLE}</h1>*/
/* */
/* <p>{L_UNBAN_EXPLAIN}</p>*/
/* */
/* <form id="acp_unban" method="post" action="{U_ACTION}">*/
/* */
/* <fieldset>*/
/* 	<legend>{L_UNBAN_TITLE}</legend>*/
/* */
/* <!-- IF S_BANNED_OPTIONS -->*/
/* 	<dl>*/
/* 		<dt><label for="unban">{L_BAN_CELL}{L_COLON}</label></dt>*/
/* 		<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>*/
/* 	</dl>*/
/* 	<dl>*/
/* 		<dt><label for="unbanlength">{L_BAN_LENGTH}{L_COLON}</label></dt>*/
/* 		<dd><input style="border: 0;" type="text" class="text full" readonly="readonly" name="unbanlength" id="unbanlength" /></dd>*/
/* 	</dl>*/
/* 	<dl>*/
/* 		<dt><label for="unbanreason">{L_BAN_REASON}{L_COLON}</label></dt>*/
/* 		<dd><textarea style="border: 0;" class="text full" readonly="readonly" name="unbanreason" id="unbanreason" rows="5" cols="80">&nbsp;</textarea></dd>*/
/* 	</dl>*/
/* 	<dl>*/
/* 		<dt><label for="unbangivereason">{L_BAN_GIVE_REASON}{L_COLON}</label></dt>*/
/* 		<dd><textarea style="border: 0;" class="text full" readonly="readonly" name="unbangivereason" id="unbangivereason" rows="5" cols="80">&nbsp;</textarea></dd>*/
/* 	</dl>*/
/* */
/* 	<p class="submit-buttons">*/
/* 		<input class="button1" type="submit" id="unbansubmit" name="unbansubmit" value="{L_SUBMIT}" />&nbsp;*/
/* 		<input class="button2" type="reset" id="unbanreset" name="unbanreset" value="{L_RESET}" />*/
/* 	</p>*/
/* 	{S_FORM_TOKEN}*/
/* 	</fieldset>*/
/* */
/* <!-- ELSE -->*/
/* */
/* 	<p>{L_NO_BAN_CELL}</p>*/
/* 	{S_FORM_TOKEN}*/
/* </fieldset>*/
/* */
/* <!-- ENDIF -->*/
/* */
/* </form>*/
/* */
/* <!-- INCLUDE overall_footer.html -->*/
/* */
