<?php

/* acp_permission_roles.html */
class __TwigTemplate_d936a66c1aa2756e33989b9b44b776cc54bc9a759820798fdfaefaab2e8c4a48 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_permission_roles.html", 1)->display($context);
        if ($namespace) {
            $this->env->setNamespaceLookUpOrder($previous_look_up_order);
        }
        // line 2
        echo "
<a id=\"maincontent\"></a>

";
        // line 5
        if (isset($context["S_EDIT"])) { $_S_EDIT_ = $context["S_EDIT"]; } else { $_S_EDIT_ = null; }
        if ($_S_EDIT_) {
            // line 6
            echo "
\t<script type=\"text/javascript\">
\t// <![CDATA[
\t\tvar active_pmask = '0';
\t\tvar active_fmask = '0';
\t\tvar active_cat = '0';

\t\tvar id = '000';

\t\tvar role_options = new Array();

\t\t";
            // line 17
            if (isset($context["S_ROLE_JS_ARRAY"])) { $_S_ROLE_JS_ARRAY_ = $context["S_ROLE_JS_ARRAY"]; } else { $_S_ROLE_JS_ARRAY_ = null; }
            if ($_S_ROLE_JS_ARRAY_) {
                // line 18
                echo "\t\t\t";
                if (isset($context["S_ROLE_JS_ARRAY"])) { $_S_ROLE_JS_ARRAY_ = $context["S_ROLE_JS_ARRAY"]; } else { $_S_ROLE_JS_ARRAY_ = null; }
                echo $_S_ROLE_JS_ARRAY_;
                echo "
\t\t";
            }
            // line 20
            echo "\t// ]]>
\t</script>

\t<script type=\"text/javascript\" src=\"style/permissions.js\"></script>

\t<a href=\"";
            // line 25
            if (isset($context["U_BACK"])) { $_U_BACK_ = $context["U_BACK"]; } else { $_U_BACK_ = null; }
            echo $_U_BACK_;
            echo "\" style=\"float: ";
            if (isset($context["S_CONTENT_FLOW_END"])) { $_S_CONTENT_FLOW_END_ = $context["S_CONTENT_FLOW_END"]; } else { $_S_CONTENT_FLOW_END_ = null; }
            echo $_S_CONTENT_FLOW_END_;
            echo ";\">&laquo; ";
            echo $this->env->getExtension('phpbb')->lang("BACK");
            echo "</a>

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

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

\t<br />
\t<a href=\"#acl\">&raquo; ";
            // line 32
            echo $this->env->getExtension('phpbb')->lang("SET_ROLE_PERMISSIONS");
            echo "</a>

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

\t<fieldset>
\t\t<legend>";
            // line 37
            echo $this->env->getExtension('phpbb')->lang("ROLE_DETAILS");
            echo "</legend>
\t<dl>
\t\t<dt><label for=\"role_name\">";
            // line 39
            echo $this->env->getExtension('phpbb')->lang("ROLE_NAME");
            echo $this->env->getExtension('phpbb')->lang("COLON");
            echo "</label></dt>
\t\t<dd><input name=\"role_name\" type=\"text\" id=\"role_name\" value=\"";
            // line 40
            if (isset($context["ROLE_NAME"])) { $_ROLE_NAME_ = $context["ROLE_NAME"]; } else { $_ROLE_NAME_ = null; }
            echo $_ROLE_NAME_;
            echo "\" maxlength=\"255\" /></dd>
\t</dl>
\t<dl>
\t\t<dt><label for=\"role_description\">";
            // line 43
            echo $this->env->getExtension('phpbb')->lang("ROLE_DESCRIPTION");
            echo $this->env->getExtension('phpbb')->lang("COLON");
            echo "</label><br /><span>";
            echo $this->env->getExtension('phpbb')->lang("ROLE_DESCRIPTION_EXPLAIN");
            echo "</span></dt>
\t\t<dd><textarea id=\"role_description\" name=\"role_description\" rows=\"3\" cols=\"45\">";
            // line 44
            if (isset($context["ROLE_DESCRIPTION"])) { $_ROLE_DESCRIPTION_ = $context["ROLE_DESCRIPTION"]; } else { $_ROLE_DESCRIPTION_ = null; }
            echo $_ROLE_DESCRIPTION_;
            echo "</textarea></dd>
\t</dl>

\t<p class=\"quick\">
\t\t<input type=\"submit\" class=\"button1\" name=\"submit\" value=\"";
            // line 48
            echo $this->env->getExtension('phpbb')->lang("SUBMIT");
            echo "\" />
\t\t";
            // line 49
            if (isset($context["S_FORM_TOKEN"])) { $_S_FORM_TOKEN_ = $context["S_FORM_TOKEN"]; } else { $_S_FORM_TOKEN_ = null; }
            echo $_S_FORM_TOKEN_;
            echo "
\t</p>
\t</fieldset>

\t";
            // line 53
            if (isset($context["S_DISPLAY_ROLE_MASK"])) { $_S_DISPLAY_ROLE_MASK_ = $context["S_DISPLAY_ROLE_MASK"]; } else { $_S_DISPLAY_ROLE_MASK_ = null; }
            if ($_S_DISPLAY_ROLE_MASK_) {
                // line 54
                echo "
\t\t<h1>";
                // line 55
                echo $this->env->getExtension('phpbb')->lang("ROLE_ASSIGNED_TO");
                echo "</h1>

\t\t";
                // line 57
                $location = "permission_roles_mask.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("permission_roles_mask.html", "acp_permission_roles.html", 57)->display($context);
                if ($namespace) {
                    $this->env->setNamespaceLookUpOrder($previous_look_up_order);
                }
                // line 58
                echo "
\t";
            }
            // line 60
            echo "
\t<p>

\t<a id=\"acl\"></a>

\t<a href=\"#maincontent\">&raquo; ";
            // line 65
            echo $this->env->getExtension('phpbb')->lang("BACK_TO_TOP");
            echo "</a><br />
\t<br /><br />

\t</p>

\t<h1>";
            // line 70
            echo $this->env->getExtension('phpbb')->lang("ACL_TYPE");
            echo "</h1>

\t<fieldset class=\"perm nolegend\">

\t\t<div id=\"advanced00\">
\t\t\t<div class=\"permissions-category\">
\t\t\t\t<ul>
\t\t\t\t";
            // line 77
            if (isset($context["loops"])) { $_loops_ = $context["loops"]; } else { $_loops_ = null; }
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($_loops_, "auth", array()));
            foreach ($context['_seq'] as $context["_key"] => $context["auth"]) {
                // line 78
                echo "\t\t\t\t\t";
                if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                if ($this->getAttribute($_auth_, "S_YES", array())) {
                    // line 79
                    echo "\t\t\t\t\t\t<li class=\"permissions-preset-yes";
                    if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                    if ($this->getAttribute($_auth_, "S_FIRST_ROW", array())) {
                        echo " activetab";
                    }
                    echo "\" id=\"tab00";
                    if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                    echo $this->getAttribute($_auth_, "S_ROW_COUNT", array());
                    echo "\">
\t\t\t\t\t";
                } elseif ($this->getAttribute($_auth_, "S_NEVER", array())) {
                    // line 81
                    echo "\t\t\t\t\t\t<li class=\"permissions-preset-never";
                    if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                    if ($this->getAttribute($_auth_, "S_FIRST_ROW", array())) {
                        echo " activetab";
                    }
                    echo "\" id=\"tab00";
                    if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                    echo $this->getAttribute($_auth_, "S_ROW_COUNT", array());
                    echo "\">
\t\t\t\t\t";
                } elseif ($this->getAttribute($_auth_, "S_NO", array())) {
                    // line 83
                    echo "\t\t\t\t\t\t<li class=\"permissions-preset-no";
                    if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                    if ($this->getAttribute($_auth_, "S_FIRST_ROW", array())) {
                        echo " activetab";
                    }
                    echo "\" id=\"tab00";
                    if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                    echo $this->getAttribute($_auth_, "S_ROW_COUNT", array());
                    echo "\">
\t\t\t\t\t";
                } else {
                    // line 85
                    echo "\t\t\t\t\t\t<li class=\"permissions-preset-custom";
                    if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                    if ($this->getAttribute($_auth_, "S_FIRST_ROW", array())) {
                        echo " activetab";
                    }
                    echo "\" id=\"tab00";
                    if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                    echo $this->getAttribute($_auth_, "S_ROW_COUNT", array());
                    echo "\">
\t\t\t\t\t";
                }
                // line 87
                echo "\t\t\t\t\t\t<a href=\"#\" onclick=\"swap_options('0','0','";
                if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                echo $this->getAttribute($_auth_, "S_ROW_COUNT", array());
                echo "'); return false;\"><span class=\"tabbg\"><span class=\"colour\"></span>";
                if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                echo $this->getAttribute($_auth_, "CAT_NAME", array());
                echo "</span></a></li>\t
\t\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['auth'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 89
            echo "\t\t\t\t</ul>
\t\t\t</div>
\t\t\t";
            // line 91
            if (isset($context["loops"])) { $_loops_ = $context["loops"]; } else { $_loops_ = null; }
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($_loops_, "auth", array()));
            foreach ($context['_seq'] as $context["_key"] => $context["auth"]) {
                // line 92
                echo "\t\t\t<div class=\"permissions-panel\" id=\"options00";
                if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                echo $this->getAttribute($_auth_, "S_ROW_COUNT", array());
                echo "\"";
                if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                if ($this->getAttribute($_auth_, "S_FIRST_ROW", array())) {
                } else {
                    echo " style=\"display: none;\"";
                }
                echo ">
\t\t\t\t<div class=\"tablewrap\">
\t\t\t\t\t<table id=\"table00";
                // line 94
                if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                echo $this->getAttribute($_auth_, "S_ROW_COUNT", array());
                echo "\" class=\"table1 not-responsive\">
\t\t\t\t\t<colgroup>
\t\t\t\t\t\t<col class=\"permissions-name\" />
\t\t\t\t\t\t<col class=\"permissions-yes\" />
\t\t\t\t\t\t<col class=\"permissions-no\" />
\t\t\t\t\t\t<col class=\"permissions-never\" />
\t\t\t\t\t</colgroup>
\t\t\t\t\t<thead>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<th class=\"name\" scope=\"col\"><strong>";
                // line 103
                echo $this->env->getExtension('phpbb')->lang("ACL_SETTING");
                echo "</strong></th>
\t\t\t\t\t\t<th class=\"value permissions-yes\" scope=\"col\"><a href=\"#\" onclick=\"mark_options('options00";
                // line 104
                if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                echo $this->getAttribute($_auth_, "S_ROW_COUNT", array());
                echo "', 'y'); set_colours('00";
                if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                echo $this->getAttribute($_auth_, "S_ROW_COUNT", array());
                echo "', false, 'yes'); return false;\">";
                echo $this->env->getExtension('phpbb')->lang("ACL_YES");
                echo "</a></th>
\t\t\t\t\t\t<th class=\"value permissions-no\" scope=\"col\"><a href=\"#\" onclick=\"mark_options('options00";
                // line 105
                if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                echo $this->getAttribute($_auth_, "S_ROW_COUNT", array());
                echo "', 'u'); set_colours('00";
                if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                echo $this->getAttribute($_auth_, "S_ROW_COUNT", array());
                echo "', false, 'no'); return false;\">";
                echo $this->env->getExtension('phpbb')->lang("ACL_NO");
                echo "</a></th>
\t\t\t\t\t\t<th class=\"value permissions-never\" scope=\"col\"><a href=\"#\" onclick=\"mark_options('options00";
                // line 106
                if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                echo $this->getAttribute($_auth_, "S_ROW_COUNT", array());
                echo "', 'n'); set_colours('00";
                if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                echo $this->getAttribute($_auth_, "S_ROW_COUNT", array());
                echo "', false, 'never'); return false;\">";
                echo $this->env->getExtension('phpbb')->lang("ACL_NEVER");
                echo "</a></th>
\t\t\t\t\t</tr>
\t\t\t\t\t</thead>
\t\t\t\t\t<tbody>
\t\t\t\t\t";
                // line 110
                if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute($_auth_, "mask", array()));
                foreach ($context['_seq'] as $context["_key"] => $context["mask"]) {
                    // line 111
                    echo "\t\t\t\t\t\t";
                    if (isset($context["mask"])) { $_mask_ = $context["mask"]; } else { $_mask_ = null; }
                    if (($this->getAttribute($_mask_, "S_ROW_COUNT", array()) % 2 == 0)) {
                        echo "<tr class=\"row4\">";
                    } else {
                        echo "<tr class=\"row3\">";
                    }
                    // line 112
                    echo "\t\t\t\t\t\t<th class=\"permissions-name";
                    if (isset($context["mask"])) { $_mask_ = $context["mask"]; } else { $_mask_ = null; }
                    if (($this->getAttribute($_mask_, "S_ROW_COUNT", array()) % 2 == 0)) {
                        echo " row4";
                    } else {
                        echo " row3";
                    }
                    echo "\">";
                    if (isset($context["mask"])) { $_mask_ = $context["mask"]; } else { $_mask_ = null; }
                    echo $this->getAttribute($_mask_, "PERMISSION", array());
                    echo "</th>
\t\t\t\t\t\t\t
\t\t\t\t\t\t<td class=\"permissions-yes\"><label for=\"setting_";
                    // line 114
                    if (isset($context["mask"])) { $_mask_ = $context["mask"]; } else { $_mask_ = null; }
                    echo $this->getAttribute($_mask_, "FIELD_NAME", array());
                    echo "_y\"><input onchange=\"set_colours('00";
                    if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                    echo $this->getAttribute($_auth_, "S_ROW_COUNT", array());
                    echo "', false)\" id=\"setting_";
                    if (isset($context["mask"])) { $_mask_ = $context["mask"]; } else { $_mask_ = null; }
                    echo $this->getAttribute($_mask_, "FIELD_NAME", array());
                    echo "_y\" name=\"setting[";
                    if (isset($context["mask"])) { $_mask_ = $context["mask"]; } else { $_mask_ = null; }
                    echo $this->getAttribute($_mask_, "FIELD_NAME", array());
                    echo "]\" class=\"radio\" type=\"radio\"";
                    if (isset($context["mask"])) { $_mask_ = $context["mask"]; } else { $_mask_ = null; }
                    if ($this->getAttribute($_mask_, "S_YES", array())) {
                        echo " checked=\"checked\"";
                    }
                    echo " value=\"1\" /></label></td>
\t\t\t\t\t\t<td class=\"permissions-no\"><label for=\"setting_";
                    // line 115
                    if (isset($context["mask"])) { $_mask_ = $context["mask"]; } else { $_mask_ = null; }
                    echo $this->getAttribute($_mask_, "FIELD_NAME", array());
                    echo "_u\"><input onchange=\"set_colours('00";
                    if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                    echo $this->getAttribute($_auth_, "S_ROW_COUNT", array());
                    echo "', false)\" id=\"setting_";
                    if (isset($context["mask"])) { $_mask_ = $context["mask"]; } else { $_mask_ = null; }
                    echo $this->getAttribute($_mask_, "FIELD_NAME", array());
                    echo "_u\" name=\"setting[";
                    if (isset($context["mask"])) { $_mask_ = $context["mask"]; } else { $_mask_ = null; }
                    echo $this->getAttribute($_mask_, "FIELD_NAME", array());
                    echo "]\" class=\"radio\" type=\"radio\"";
                    if (isset($context["mask"])) { $_mask_ = $context["mask"]; } else { $_mask_ = null; }
                    if ($this->getAttribute($_mask_, "S_NO", array())) {
                        echo " checked=\"checked\"";
                    }
                    echo " value=\"-1\" /></label></td>
\t\t\t\t\t\t<td class=\"permissions-never\"><label for=\"setting_";
                    // line 116
                    if (isset($context["mask"])) { $_mask_ = $context["mask"]; } else { $_mask_ = null; }
                    echo $this->getAttribute($_mask_, "FIELD_NAME", array());
                    echo "_n\"><input onchange=\"set_colours('00";
                    if (isset($context["auth"])) { $_auth_ = $context["auth"]; } else { $_auth_ = null; }
                    echo $this->getAttribute($_auth_, "S_ROW_COUNT", array());
                    echo "', false)\" id=\"setting_";
                    if (isset($context["mask"])) { $_mask_ = $context["mask"]; } else { $_mask_ = null; }
                    echo $this->getAttribute($_mask_, "FIELD_NAME", array());
                    echo "_n\" name=\"setting[";
                    if (isset($context["mask"])) { $_mask_ = $context["mask"]; } else { $_mask_ = null; }
                    echo $this->getAttribute($_mask_, "FIELD_NAME", array());
                    echo "]\" class=\"radio\" type=\"radio\"";
                    if (isset($context["mask"])) { $_mask_ = $context["mask"]; } else { $_mask_ = null; }
                    if ($this->getAttribute($_mask_, "S_NEVER", array())) {
                        echo " checked=\"checked\"";
                    }
                    echo " value=\"0\" /></label></td>
\t\t\t\t\t</tr>
\t\t\t\t\t";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mask'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 119
                echo "\t\t\t\t\t</tbody>
\t\t\t\t\t</table>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['auth'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 124
            echo "\t\t</div>

\t</fieldset>

\t<fieldset class=\"quick\">
\t\t<input type=\"submit\" class=\"button1\" name=\"submit\" value=\"";
            // line 129
            echo $this->env->getExtension('phpbb')->lang("SUBMIT");
            echo "\" />
\t\t";
            // line 130
            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>
\t</form>

\t<a href=\"#maincontent\">&raquo; ";
            // line 134
            echo $this->env->getExtension('phpbb')->lang("BACK_TO_TOP");
            echo "</a><br />
\t<br />

";
        } else {
            // line 138
            echo "
\t<h1>";
            // line 139
            echo $this->env->getExtension('phpbb')->lang("TITLE");
            echo "</h1>

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

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

\t<table class=\"table1\">
\t\t<col class=\"col2\" /><col class=\"col2\" /><col class=\"col1\" /><col class=\"col2\" /><col class=\"col2\" />
\t<thead>
\t<tr>
\t\t<th>";
            // line 149
            echo $this->env->getExtension('phpbb')->lang("ROLE_NAME");
            echo "</th>
\t\t<th colspan=\"2\">";
            // line 150
            echo $this->env->getExtension('phpbb')->lang("OPTIONS");
            echo "</th>
\t</tr>
\t</thead>
\t<tbody>
\t";
            // line 154
            if (isset($context["loops"])) { $_loops_ = $context["loops"]; } else { $_loops_ = null; }
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($_loops_, "roles", array()));
            foreach ($context['_seq'] as $context["_key"] => $context["roles"]) {
                // line 155
                echo "\t<tr>
\t\t<td style=\"vertical-align: top;\"><strong>";
                // line 156
                if (isset($context["roles"])) { $_roles_ = $context["roles"]; } else { $_roles_ = null; }
                echo $this->getAttribute($_roles_, "ROLE_NAME", array());
                echo "</strong>
\t\t\t";
                // line 157
                if (isset($context["roles"])) { $_roles_ = $context["roles"]; } else { $_roles_ = null; }
                if ($this->getAttribute($_roles_, "ROLE_DESCRIPTION", array())) {
                    echo "<br /><span>";
                    if (isset($context["roles"])) { $_roles_ = $context["roles"]; } else { $_roles_ = null; }
                    echo $this->getAttribute($_roles_, "ROLE_DESCRIPTION", array());
                    echo "</span>";
                }
                // line 158
                echo "\t\t</td>
\t\t<td style=\"width: 30%; text-align: center; vertical-align: top; white-space: nowrap;\">";
                // line 159
                if (isset($context["roles"])) { $_roles_ = $context["roles"]; } else { $_roles_ = null; }
                if ($this->getAttribute($_roles_, "U_DISPLAY_ITEMS", array())) {
                    echo "<a href=\"";
                    if (isset($context["roles"])) { $_roles_ = $context["roles"]; } else { $_roles_ = null; }
                    echo $this->getAttribute($_roles_, "U_DISPLAY_ITEMS", array());
                    echo "\">";
                    echo $this->env->getExtension('phpbb')->lang("VIEW_ASSIGNED_ITEMS");
                    echo "</a>";
                } else {
                    echo $this->env->getExtension('phpbb')->lang("VIEW_ASSIGNED_ITEMS");
                }
                echo "</td>
\t\t<td class=\"actions\">
\t\t\t<span class=\"up-disabled\" style=\"display:none;\">";
                // line 161
                if (isset($context["ICON_MOVE_UP_DISABLED"])) { $_ICON_MOVE_UP_DISABLED_ = $context["ICON_MOVE_UP_DISABLED"]; } else { $_ICON_MOVE_UP_DISABLED_ = null; }
                echo $_ICON_MOVE_UP_DISABLED_;
                echo "</span>
\t\t\t<span class=\"up\"><a href=\"";
                // line 162
                if (isset($context["roles"])) { $_roles_ = $context["roles"]; } else { $_roles_ = null; }
                echo $this->getAttribute($_roles_, "U_MOVE_UP", array());
                echo "\" data-ajax=\"row_up\">";
                if (isset($context["ICON_MOVE_UP"])) { $_ICON_MOVE_UP_ = $context["ICON_MOVE_UP"]; } else { $_ICON_MOVE_UP_ = null; }
                echo $_ICON_MOVE_UP_;
                echo "</a></span>
\t\t\t<span class=\"down-disabled\" style=\"display:none;\">";
                // line 163
                if (isset($context["ICON_MOVE_DOWN_DISABLED"])) { $_ICON_MOVE_DOWN_DISABLED_ = $context["ICON_MOVE_DOWN_DISABLED"]; } else { $_ICON_MOVE_DOWN_DISABLED_ = null; }
                echo $_ICON_MOVE_DOWN_DISABLED_;
                echo "</span>
\t\t\t<span class=\"down\"><a href=\"";
                // line 164
                if (isset($context["roles"])) { $_roles_ = $context["roles"]; } else { $_roles_ = null; }
                echo $this->getAttribute($_roles_, "U_MOVE_DOWN", array());
                echo "\" data-ajax=\"row_down\">";
                if (isset($context["ICON_MOVE_DOWN"])) { $_ICON_MOVE_DOWN_ = $context["ICON_MOVE_DOWN"]; } else { $_ICON_MOVE_DOWN_ = null; }
                echo $_ICON_MOVE_DOWN_;
                echo "</a></span>
\t\t\t<a href=\"";
                // line 165
                if (isset($context["roles"])) { $_roles_ = $context["roles"]; } else { $_roles_ = null; }
                echo $this->getAttribute($_roles_, "U_EDIT", array());
                echo "\" title=\"";
                echo $this->env->getExtension('phpbb')->lang("EDIT_ROLE");
                echo "\">";
                if (isset($context["ICON_EDIT"])) { $_ICON_EDIT_ = $context["ICON_EDIT"]; } else { $_ICON_EDIT_ = null; }
                echo $_ICON_EDIT_;
                echo "</a> 
\t\t\t<a href=\"";
                // line 166
                if (isset($context["roles"])) { $_roles_ = $context["roles"]; } else { $_roles_ = null; }
                echo $this->getAttribute($_roles_, "U_REMOVE", array());
                echo "\" title=\"";
                echo $this->env->getExtension('phpbb')->lang("REMOVE_ROLE");
                echo "\" data-ajax=\"row_delete\">";
                if (isset($context["ICON_DELETE"])) { $_ICON_DELETE_ = $context["ICON_DELETE"]; } else { $_ICON_DELETE_ = null; }
                echo $_ICON_DELETE_;
                echo "</a>
\t\t</td>
\t</tr>
\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['roles'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 170
            echo "\t</tbody>
\t</table>

\t<fieldset class=\"quick\">
\t\t";
            // line 174
            echo $this->env->getExtension('phpbb')->lang("CREATE_ROLE");
            echo $this->env->getExtension('phpbb')->lang("COLON");
            echo " <input type=\"text\" name=\"role_name\" value=\"\" maxlength=\"255\" />";
            if (isset($context["S_ROLE_OPTIONS"])) { $_S_ROLE_OPTIONS_ = $context["S_ROLE_OPTIONS"]; } else { $_S_ROLE_OPTIONS_ = null; }
            if ($_S_ROLE_OPTIONS_) {
                echo " <select name=\"options_from\"><option value=\"0\" selected=\"selected\">";
                echo $this->env->getExtension('phpbb')->lang("CREATE_ROLE_FROM");
                echo "</option>";
                if (isset($context["S_ROLE_OPTIONS"])) { $_S_ROLE_OPTIONS_ = $context["S_ROLE_OPTIONS"]; } else { $_S_ROLE_OPTIONS_ = null; }
                echo $_S_ROLE_OPTIONS_;
                echo "</select>";
            }
            echo " <input class=\"button2\" type=\"submit\" name=\"add\" value=\"";
            echo $this->env->getExtension('phpbb')->lang("SUBMIT");
            echo "\" /><br />
\t\t";
            // line 175
            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>
\t</form>

\t";
            // line 179
            if (isset($context["S_DISPLAY_ROLE_MASK"])) { $_S_DISPLAY_ROLE_MASK_ = $context["S_DISPLAY_ROLE_MASK"]; } else { $_S_DISPLAY_ROLE_MASK_ = null; }
            if ($_S_DISPLAY_ROLE_MASK_) {
                // line 180
                echo "
\t\t<a id=\"assigned_to\"></a>

\t\t<h1>";
                // line 183
                echo $this->env->getExtension('phpbb')->lang("ROLE_ASSIGNED_TO");
                echo "</h1>

\t\t";
                // line 185
                $location = "permission_roles_mask.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("permission_roles_mask.html", "acp_permission_roles.html", 185)->display($context);
                if ($namespace) {
                    $this->env->setNamespaceLookUpOrder($previous_look_up_order);
                }
                // line 186
                echo "
\t";
            }
            // line 188
            echo "
";
        }
        // line 190
        echo "
";
        // line 191
        $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_permission_roles.html", 191)->display($context);
        if ($namespace) {
            $this->env->setNamespaceLookUpOrder($previous_look_up_order);
        }
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  658 => 191,  655 => 190,  651 => 188,  647 => 186,  635 => 185,  630 => 183,  625 => 180,  622 => 179,  614 => 175,  597 => 174,  591 => 170,  575 => 166,  565 => 165,  557 => 164,  552 => 163,  544 => 162,  539 => 161,  524 => 159,  521 => 158,  513 => 157,  508 => 156,  505 => 155,  500 => 154,  493 => 150,  489 => 149,  479 => 143,  474 => 141,  469 => 139,  466 => 138,  459 => 134,  451 => 130,  447 => 129,  440 => 124,  430 => 119,  406 => 116,  387 => 115,  368 => 114,  354 => 112,  346 => 111,  341 => 110,  328 => 106,  318 => 105,  308 => 104,  304 => 103,  291 => 94,  278 => 92,  273 => 91,  269 => 89,  256 => 87,  244 => 85,  232 => 83,  220 => 81,  208 => 79,  204 => 78,  199 => 77,  189 => 70,  181 => 65,  174 => 60,  170 => 58,  158 => 57,  153 => 55,  150 => 54,  147 => 53,  139 => 49,  135 => 48,  127 => 44,  120 => 43,  113 => 40,  108 => 39,  103 => 37,  96 => 34,  91 => 32,  85 => 29,  80 => 27,  69 => 25,  62 => 20,  55 => 18,  52 => 17,  39 => 6,  36 => 5,  31 => 2,  19 => 1,);
    }
}
/* <!-- INCLUDE overall_header.html -->*/
/* */
/* <a id="maincontent"></a>*/
/* */
/* <!-- IF S_EDIT -->*/
/* */
/* 	<script type="text/javascript">*/
/* 	// <![CDATA[*/
/* 		var active_pmask = '0';*/
/* 		var active_fmask = '0';*/
/* 		var active_cat = '0';*/
/* */
/* 		var id = '000';*/
/* */
/* 		var role_options = new Array();*/
/* */
/* 		<!-- IF S_ROLE_JS_ARRAY -->*/
/* 			{S_ROLE_JS_ARRAY}*/
/* 		<!-- ENDIF -->*/
/* 	// ]]>*/
/* 	</script>*/
/* */
/* 	<script type="text/javascript" src="style/permissions.js"></script>*/
/* */
/* 	<a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">&laquo; {L_BACK}</a>*/
/* */
/* 	<h1>{L_TITLE}</h1>*/
/* */
/* 	<p>{L_EXPLAIN}</p>*/
/* */
/* 	<br />*/
/* 	<a href="#acl">&raquo; {L_SET_ROLE_PERMISSIONS}</a>*/
/* */
/* 	<form id="acp_roles" method="post" action="{U_ACTION}">*/
/* */
/* 	<fieldset>*/
/* 		<legend>{L_ROLE_DETAILS}</legend>*/
/* 	<dl>*/
/* 		<dt><label for="role_name">{L_ROLE_NAME}{L_COLON}</label></dt>*/
/* 		<dd><input name="role_name" type="text" id="role_name" value="{ROLE_NAME}" maxlength="255" /></dd>*/
/* 	</dl>*/
/* 	<dl>*/
/* 		<dt><label for="role_description">{L_ROLE_DESCRIPTION}{L_COLON}</label><br /><span>{L_ROLE_DESCRIPTION_EXPLAIN}</span></dt>*/
/* 		<dd><textarea id="role_description" name="role_description" rows="3" cols="45">{ROLE_DESCRIPTION}</textarea></dd>*/
/* 	</dl>*/
/* */
/* 	<p class="quick">*/
/* 		<input type="submit" class="button1" name="submit" value="{L_SUBMIT}" />*/
/* 		{S_FORM_TOKEN}*/
/* 	</p>*/
/* 	</fieldset>*/
/* */
/* 	<!-- IF S_DISPLAY_ROLE_MASK -->*/
/* */
/* 		<h1>{L_ROLE_ASSIGNED_TO}</h1>*/
/* */
/* 		<!-- INCLUDE permission_roles_mask.html -->*/
/* */
/* 	<!-- ENDIF -->*/
/* */
/* 	<p>*/
/* */
/* 	<a id="acl"></a>*/
/* */
/* 	<a href="#maincontent">&raquo; {L_BACK_TO_TOP}</a><br />*/
/* 	<br /><br />*/
/* */
/* 	</p>*/
/* */
/* 	<h1>{L_ACL_TYPE}</h1>*/
/* */
/* 	<fieldset class="perm nolegend">*/
/* */
/* 		<div id="advanced00">*/
/* 			<div class="permissions-category">*/
/* 				<ul>*/
/* 				<!-- BEGIN auth -->*/
/* 					<!-- IF auth.S_YES -->*/
/* 						<li class="permissions-preset-yes<!-- IF auth.S_FIRST_ROW --> activetab<!-- ENDIF -->" id="tab00{auth.S_ROW_COUNT}">*/
/* 					<!-- ELSEIF auth.S_NEVER -->*/
/* 						<li class="permissions-preset-never<!-- IF auth.S_FIRST_ROW --> activetab<!-- ENDIF -->" id="tab00{auth.S_ROW_COUNT}">*/
/* 					<!-- ELSEIF auth.S_NO -->*/
/* 						<li class="permissions-preset-no<!-- IF auth.S_FIRST_ROW --> activetab<!-- ENDIF -->" id="tab00{auth.S_ROW_COUNT}">*/
/* 					<!-- ELSE -->*/
/* 						<li class="permissions-preset-custom<!-- IF auth.S_FIRST_ROW --> activetab<!-- ENDIF -->" id="tab00{auth.S_ROW_COUNT}">*/
/* 					<!-- ENDIF -->*/
/* 						<a href="#" onclick="swap_options('0','0','{auth.S_ROW_COUNT}'); return false;"><span class="tabbg"><span class="colour"></span>{auth.CAT_NAME}</span></a></li>	*/
/* 				<!-- END auth -->*/
/* 				</ul>*/
/* 			</div>*/
/* 			<!-- BEGIN auth -->*/
/* 			<div class="permissions-panel" id="options00{auth.S_ROW_COUNT}"<!-- IF auth.S_FIRST_ROW --><!-- ELSE --> style="display: none;"<!-- ENDIF -->>*/
/* 				<div class="tablewrap">*/
/* 					<table id="table00{auth.S_ROW_COUNT}" class="table1 not-responsive">*/
/* 					<colgroup>*/
/* 						<col class="permissions-name" />*/
/* 						<col class="permissions-yes" />*/
/* 						<col class="permissions-no" />*/
/* 						<col class="permissions-never" />*/
/* 					</colgroup>*/
/* 					<thead>*/
/* 					<tr>*/
/* 						<th class="name" scope="col"><strong>{L_ACL_SETTING}</strong></th>*/
/* 						<th class="value permissions-yes" scope="col"><a href="#" onclick="mark_options('options00{auth.S_ROW_COUNT}', 'y'); set_colours('00{auth.S_ROW_COUNT}', false, 'yes'); return false;">{L_ACL_YES}</a></th>*/
/* 						<th class="value permissions-no" scope="col"><a href="#" onclick="mark_options('options00{auth.S_ROW_COUNT}', 'u'); set_colours('00{auth.S_ROW_COUNT}', false, 'no'); return false;">{L_ACL_NO}</a></th>*/
/* 						<th class="value permissions-never" scope="col"><a href="#" onclick="mark_options('options00{auth.S_ROW_COUNT}', 'n'); set_colours('00{auth.S_ROW_COUNT}', false, 'never'); return false;">{L_ACL_NEVER}</a></th>*/
/* 					</tr>*/
/* 					</thead>*/
/* 					<tbody>*/
/* 					<!-- BEGIN mask -->*/
/* 						<!-- IF auth.mask.S_ROW_COUNT is even --><tr class="row4"><!-- ELSE --><tr class="row3"><!-- ENDIF -->*/
/* 						<th class="permissions-name<!-- IF auth.mask.S_ROW_COUNT is even --> row4<!-- ELSE --> row3<!-- ENDIF -->">{auth.mask.PERMISSION}</th>*/
/* 							*/
/* 						<td class="permissions-yes"><label for="setting_{auth.mask.FIELD_NAME}_y"><input onchange="set_colours('00{auth.S_ROW_COUNT}', false)" id="setting_{auth.mask.FIELD_NAME}_y" name="setting[{auth.mask.FIELD_NAME}]" class="radio" type="radio"<!-- IF auth.mask.S_YES --> checked="checked"<!-- ENDIF --> value="1" /></label></td>*/
/* 						<td class="permissions-no"><label for="setting_{auth.mask.FIELD_NAME}_u"><input onchange="set_colours('00{auth.S_ROW_COUNT}', false)" id="setting_{auth.mask.FIELD_NAME}_u" name="setting[{auth.mask.FIELD_NAME}]" class="radio" type="radio"<!-- IF auth.mask.S_NO --> checked="checked"<!-- ENDIF --> value="-1" /></label></td>*/
/* 						<td class="permissions-never"><label for="setting_{auth.mask.FIELD_NAME}_n"><input onchange="set_colours('00{auth.S_ROW_COUNT}', false)" id="setting_{auth.mask.FIELD_NAME}_n" name="setting[{auth.mask.FIELD_NAME}]" class="radio" type="radio"<!-- IF auth.mask.S_NEVER --> checked="checked"<!-- ENDIF --> value="0" /></label></td>*/
/* 					</tr>*/
/* 					<!-- END mask -->*/
/* 					</tbody>*/
/* 					</table>*/
/* 				</div>*/
/* 			</div>*/
/* 			<!-- END auth -->*/
/* 		</div>*/
/* */
/* 	</fieldset>*/
/* */
/* 	<fieldset class="quick">*/
/* 		<input type="submit" class="button1" name="submit" value="{L_SUBMIT}" />*/
/* 		{S_FORM_TOKEN}*/
/* 	</fieldset>*/
/* 	</form>*/
/* */
/* 	<a href="#maincontent">&raquo; {L_BACK_TO_TOP}</a><br />*/
/* 	<br />*/
/* */
/* <!-- ELSE -->*/
/* */
/* 	<h1>{L_TITLE}</h1>*/
/* */
/* 	<p>{L_EXPLAIN}</p>*/
/* */
/* 	<form id="acp_roles" method="post" action="{U_ACTION}">*/
/* */
/* 	<table class="table1">*/
/* 		<col class="col2" /><col class="col2" /><col class="col1" /><col class="col2" /><col class="col2" />*/
/* 	<thead>*/
/* 	<tr>*/
/* 		<th>{L_ROLE_NAME}</th>*/
/* 		<th colspan="2">{L_OPTIONS}</th>*/
/* 	</tr>*/
/* 	</thead>*/
/* 	<tbody>*/
/* 	<!-- BEGIN roles -->*/
/* 	<tr>*/
/* 		<td style="vertical-align: top;"><strong>{roles.ROLE_NAME}</strong>*/
/* 			<!-- IF roles.ROLE_DESCRIPTION --><br /><span>{roles.ROLE_DESCRIPTION}</span><!-- ENDIF -->*/
/* 		</td>*/
/* 		<td style="width: 30%; text-align: center; vertical-align: top; white-space: nowrap;"><!-- IF roles.U_DISPLAY_ITEMS --><a href="{roles.U_DISPLAY_ITEMS}">{L_VIEW_ASSIGNED_ITEMS}</a><!-- ELSE -->{L_VIEW_ASSIGNED_ITEMS}<!-- ENDIF --></td>*/
/* 		<td class="actions">*/
/* 			<span class="up-disabled" style="display:none;">{ICON_MOVE_UP_DISABLED}</span>*/
/* 			<span class="up"><a href="{roles.U_MOVE_UP}" data-ajax="row_up">{ICON_MOVE_UP}</a></span>*/
/* 			<span class="down-disabled" style="display:none;">{ICON_MOVE_DOWN_DISABLED}</span>*/
/* 			<span class="down"><a href="{roles.U_MOVE_DOWN}" data-ajax="row_down">{ICON_MOVE_DOWN}</a></span>*/
/* 			<a href="{roles.U_EDIT}" title="{L_EDIT_ROLE}">{ICON_EDIT}</a> */
/* 			<a href="{roles.U_REMOVE}" title="{L_REMOVE_ROLE}" data-ajax="row_delete">{ICON_DELETE}</a>*/
/* 		</td>*/
/* 	</tr>*/
/* 	<!-- END roles -->*/
/* 	</tbody>*/
/* 	</table>*/
/* */
/* 	<fieldset class="quick">*/
/* 		{L_CREATE_ROLE}{L_COLON} <input type="text" name="role_name" value="" maxlength="255" /><!-- IF S_ROLE_OPTIONS --> <select name="options_from"><option value="0" selected="selected">{L_CREATE_ROLE_FROM}</option>{S_ROLE_OPTIONS}</select><!-- ENDIF --> <input class="button2" type="submit" name="add" value="{L_SUBMIT}" /><br />*/
/* 		{S_FORM_TOKEN}*/
/* 	</fieldset>*/
/* 	</form>*/
/* */
/* 	<!-- IF S_DISPLAY_ROLE_MASK -->*/
/* */
/* 		<a id="assigned_to"></a>*/
/* */
/* 		<h1>{L_ROLE_ASSIGNED_TO}</h1>*/
/* */
/* 		<!-- INCLUDE permission_roles_mask.html -->*/
/* */
/* 	<!-- ENDIF -->*/
/* */
/* <!-- ENDIF -->*/
/* */
/* <!-- INCLUDE overall_footer.html -->*/
/* */
