<?php

/* banners.manage.tpl */
class __TwigTemplate_645605c27c9bc8197751527680f2c60d 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("ViewBanners");
        echo "</h4>
\t\t<p>";
        // line 4
        echo getLang("BannerIntro");
        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("CreateBanner");
        echo "...\" id=\"IndexCreateButton\" class=\"btn btn-primary\" onclick=\"document.location.href='index.php?ToDo=createBanner'\" /> 
\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-heading\"> 
\t\t<h3 class=\"panel-title\">Banners da Loja</h3> 
\t</div>
\t<div class=\"panel-body pn\">
\t\t<div class=\"table-responsive\">
\t\t\t<form name=\"frmBanners\" id=\"frmBanners\" method=\"post\" action=\"index.php?ToDo=deleteBanners\">
\t\t\t\t<div class=\"GridContainer\">
\t\t\t\t\t";
        // line 25
        echo twig_safe_filter((isset($context['BannersGrid']) ? $context['BannersGrid'] : 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{
\t\t\tvar filter = document.getElementById(\"filterCategory\");
\t\t\tvar query = document.getElementById(\"searchQuery\");

\t\t\tif(filter.value == \"\" && query.value == \"\")
\t\t\t{
\t\t\t\talert(\"";
        // line 40
        echo getLang("ChooseFilterOrEnterSearchTerm");
        echo "\");
\t\t\t\treturn false;
\t\t\t}

\t\t\treturn true;
\t\t}

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

\t\t\tfor(i = 0; i < fp.length; i++) {
\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\tif(confirm(\"";
        // line 58
        echo getLang("ConfirmDeleteBanners");
        echo "\"))
\t\t\t\t\tdocument.getElementById(\"frmBanners\").submit();
\t\t\t}
\t\t\telse {
\t\t\t\talert(\"";
        // line 62
        echo getLang("ChooseBanners");
        echo "\");
\t\t\t}
\t\t}

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

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

\t</script>
";
    }

}
