<?php

/* brands.manage.tpl */
class __TwigTemplate_779b828bcf877ea653d2a86e27b56e7f extends Twig_Template
{
    public function display(array $context)
    {
        // line 1
        echo "<div class=\"row\">
\t<div class=\"col-sm-12\">
\t\t<h4 class=\"page-title\">";
        // line 3
        echo getLang("ViewBrands");
        echo "</h4>
\t\t<p>";
        // line 4
        echo twig_safe_filter((isset($context['BrandIntro']) ? $context['BrandIntro'] : null));
        echo "</p>
\t\t";
        // line 5
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "
\t</div>
</div>

<div class=\"row\">
\t<div class=\"col-sm-12\">
\t\t<input type=\"button\" name=\"IndexAddButton\" value=\"";
        // line 11
        echo getLang("AddBrand");
        echo "\" id=\"IndexCreateButton\" class=\"btn btn-primary\" onclick=\"document.location.href='index.php?ToDo=addBrand'\" /> 
\t\t<input type=\"button\" name=\"IndexDeleteButton\" value=\"";
        // line 12
        echo getLang("DeleteSelected");
        echo "\" id=\"IndexDeleteButton\" class=\"btn btn-danger\" onclick=\"ConfirmDeleteSelected()\" ";
        echo twig_safe_filter((isset($context['DisableDelete']) ? $context['DisableDelete'] : null));
        echo " />
\t</div>
</div>
<br />

<div class=\"panel panel-default\" style=\"display: ";
        // line 17
        echo twig_safe_filter((isset($context['DisplayGrid']) ? $context['DisplayGrid'] : null));
        echo "\">
\t<div class=\"panel-body pn\">
\t\t<div class=\"table-responsive\">
\t\t\t<form name=\"frmBrands\" id=\"frmBrands\" method=\"post\" action=\"index.php?ToDo=deleteBrands\">
\t\t\t\t<div class=\"GridContainer\">
\t\t\t\t\t";
        // line 22
        echo twig_safe_filter((isset($context['BrandsDataGrid']) ? $context['BrandsDataGrid'] : null));
        echo "
\t\t\t\t</div>
\t\t\t</form>
\t\t</div>
\t</div>
</div>

<script type=\"text/javascript\">
\tfunction CheckSearchForm()
\t{
\t\tvar query = document.getElementById(\"searchQuery\");

\t\tif(query.value == \"\")
\t\t{
\t\t\talert(\"";
        // line 36
        echo getLang("EnterSearchTerm");
        echo "\");
\t\t\treturn false;
\t\t}

\t\treturn true;
\t}

\tfunction ConfirmDeleteSelected()
\t{
\t\t\tvar fp = document.getElementById(\"frmBrands\").elements;
\t\t\tvar c = 0;

\t\t\tfor(i = 0; i < fp.length; i++)
\t\t\t{
\t\t\t\tif(fp[i].type == \"checkbox\" && fp[i].checked)
\t\t\t\t\tc++;
\t\t\t}

\t\t\tif(c > 0)
\t\t\t{
\t\t\t\tif(confirm(\"";
        // line 56
        echo getLang("ConfirmDeleteBrands");
        echo "\"))
\t\t\t\t\tdocument.getElementById(\"frmBrands\").submit();
\t\t\t}
\t\t\telse
\t\t\t{
\t\t\t\talert(\"";
        // line 61
        echo getLang("ChooseBrands");
        echo "\");
\t\t\t}
\t\t}

\t\tfunction ToggleDeleteBoxes(Status)
\t\t{
\t\t\tvar fp = document.getElementById(\"frmBrands\").elements;

\t\t\tfor(i = 0; i < fp.length; i++)
\t\t\t\tfp[i].checked = Status;
\t\t}

\t</script>
";
    }

}
