<?php

/* FishmanFrontEndBundle:Dashboard/Report:result_disaggregated.html.twig */
class __TwigTemplate_99ace012dbc9135d59d9785f87e2f4c7 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = $this->env->loadTemplate("::base_fishman.html.twig");

        $this->blocks = array(
            'subtitle' => array($this, 'block_subtitle'),
            'top_navigation' => array($this, 'block_top_navigation'),
            'navigation' => array($this, 'block_navigation'),
            'breadcrumb' => array($this, 'block_breadcrumb'),
            'subtitle2' => array($this, 'block_subtitle2'),
            'content' => array($this, 'block_content'),
            '__internal_54b34bd458dc6fbd27a468b073c9dbbcae777c16' => array($this, 'block___internal_54b34bd458dc6fbd27a468b073c9dbbcae777c16'),
            'javascripts' => array($this, 'block_javascripts'),
        );
    }

    protected function doGetParent(array $context)
    {
        return "::base_fishman.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    public function block_subtitle($context, array $blocks = array())
    {
        echo "<span class=\"icon-screen\"></span>Reporte";
    }

    // line 5
    public function block_top_navigation($context, array $blocks = array())
    {
        // line 6
        $this->env->loadTemplate("FishmanFrontEndBundle:Dashboard:navigation.html.twig")->display(array_merge($context, array("navigation" => "report", "dashboard" => "all")));
    }

    // line 9
    public function block_navigation($context, array $blocks = array())
    {
        // line 10
        $this->env->loadTemplate("FishmanFrontEndBundle:Dashboard:navigation.html.twig")->display(array_merge($context, array("navigation" => "report", "dashboard" => "all")));
    }

    // line 13
    public function block_breadcrumb($context, array $blocks = array())
    {
        // line 14
        echo "<ul id=\"breadcrumbs\" class=\"breadcrumbs\">
    <li><a href=\"";
        // line 15
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("fishman_front_end_homepage"), "html", null, true);
        echo "\">Dashboard</a></li>
    <li class=\"current\"><a href=\"";
        // line 16
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("fishman_front_end_report_disaggregated"), "html", null, true);
        echo "\">Reportes: Desagregado</a></li>
</ul>
";
    }

    // line 20
    public function block_subtitle2($context, array $blocks = array())
    {
        // line 21
        echo "<span class=\"icos-cog4\"></span></span><h5>Resultado</h5>
";
    }

    // line 24
    public function block_content($context, array $blocks = array())
    {
        // line 25
        $this->displayParentBlock("content", $context, $blocks);
        echo "

<div class=\"dashboard dataList\">

    <div class=\"widget tableDefault containerReport clearfix\">
  
        <div class=\"whead clearfix\">
            <h6>";
        // line 32
        echo twig_escape_filter($this->env, twig_upper_filter($this->env, (string) $this->renderBlock("__internal_54b34bd458dc6fbd27a468b073c9dbbcae777c16", $context, $blocks)), "html", null, true);
        echo "</h6>
        </div>
          
        <div class=\"formCrudCreate\">
            
            <form action=\"\" method=\"post\" class=\"crud main\">
            
                <div class=\"fluid tableDefault clearfix\">
                        
                    <fieldset class=\"step ui-formwizard-content clearfix\" id=\"w1first\" style=\"display: block;\">
                        
                        <div class=\"grid12\">
                          
                            <div class=\"formRow clearfix\">
                                <div class=\"grid2\"><label>Empresa</label><span class=\"req\">*</span></div>
                                <div class=\"grid6\">
                                    <select name=\"options_company\" id=\"options_company\" required >
                                        <option value>SELECCIONE UNA OPCIÓN</option>
                                        ";
        // line 50
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["companies"]) ? $context["companies"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["company"]) {
            // line 51
            echo "                                            ";
            if (($this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id") != (isset($context["companyData"]) ? $context["companyData"] : null))) {
                // line 52
                echo "                                                <option value=\"";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "name"), "html", null, true);
                echo "</option>
                                            ";
            } else {
                // line 54
                echo "                                                <option selected value=\"";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "id"), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["company"]) ? $context["company"] : null), "name"), "html", null, true);
                echo "</option>
                                            ";
            }
            // line 56
            echo "                                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['company'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 57
        echo "                                    </select>
                                </div>
                            </div>
                          
                            <div class=\"formRow clearfix\">
                                <div class=\"grid2\"><label>Encuesta</label><span class=\"req\">*</span></div>
                                <div class=\"grid6 pollsByCompany\">
                                    <select name=\"options_poll\" id=\"options_poll\" required >
                                        <option value>SELECCIONE UNA OPCIÓN</option>
                                        ";
        // line 66
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["polls"]) ? $context["polls"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["poll"]) {
            // line 67
            echo "                                            ";
            if (($this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "id") != (isset($context["pollData"]) ? $context["pollData"] : null))) {
                // line 68
                echo "                                                <option value=\"";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "id"), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "title"), "html", null, true);
                echo "</option>
                                            ";
            } else {
                // line 70
                echo "                                                <option selected value=\"";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "id"), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["poll"]) ? $context["poll"] : null), "title"), "html", null, true);
                echo "</option>
                                            ";
            }
            // line 72
            echo "                                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['poll'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 73
        echo "                                    </select>
                                </div>
                            </div>
                          
                            <div class=\"formRow clearfix\">
                                <div class=\"grid2\"><label>Periodo</label><span class=\"req\">*</span></div>
                                <div class=\"grid6 pollschedulingsByPoll\">
                                    <select name=\"options_pollscheduling\" id=\"options_pollscheduling\" required >
                                        <option value>SELECCIONE UNA OPCIÓN</option>
                                        ";
        // line 82
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["pollschedulings"]) ? $context["pollschedulings"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["pollscheduling"]) {
            // line 83
            echo "                                            ";
            if (($this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id") != (isset($context["pollschedulingData"]) ? $context["pollschedulingData"] : null))) {
                // line 84
                echo "                                                <option value=\"";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "key") . " - ") . $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "period")), "html", null, true);
                echo "</option>
                                            ";
            } else {
                // line 86
                echo "                                                <option selected value=\"";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "key") . " - ") . $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "period")), "html", null, true);
                echo "</option>
                                            ";
            }
            // line 88
            echo "                                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pollscheduling'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 89
        echo "                                    </select>
                                </div>
                            </div>
                          
                            <div class=\"formRow clearfix\">
                                <div class=\"grid2\"><label>Evaluado</label><span class=\"req\">*</span></div>
                                <div class=\"grid6 evaluatedsByPollscheduling\">
                                    <select name=\"options_evaluated\" id=\"options_evaluated\" required >
                                        <option value>SELECCIONE UNA OPCIÓN</option>
                                        ";
        // line 98
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["evaluateds"]) ? $context["evaluateds"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["evaluated"]) {
            // line 99
            echo "                                            ";
            if (($this->getAttribute((isset($context["evaluated"]) ? $context["evaluated"] : null), "id") != (isset($context["evaluatedData"]) ? $context["evaluatedData"] : null))) {
                // line 100
                echo "                                            <option value=\"";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["evaluated"]) ? $context["evaluated"] : null), "id"), "html", null, true);
                echo "\">
                                                ";
                // line 101
                echo twig_escape_filter($this->env, (((($this->getAttribute((isset($context["evaluated"]) ? $context["evaluated"] : null), "surname") . " ") . $this->getAttribute((isset($context["evaluated"]) ? $context["evaluated"] : null), "lastname")) . ", ") . $this->getAttribute((isset($context["evaluated"]) ? $context["evaluated"] : null), "names")), "html", null, true);
                echo "
                                            </option>
                                            ";
            } else {
                // line 104
                echo "                                            <option selected value=\"";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["evaluated"]) ? $context["evaluated"] : null), "id"), "html", null, true);
                echo "\">
                                                ";
                // line 105
                echo twig_escape_filter($this->env, (((($this->getAttribute((isset($context["evaluated"]) ? $context["evaluated"] : null), "surname") . " ") . $this->getAttribute((isset($context["evaluated"]) ? $context["evaluated"] : null), "lastname")) . ", ") . $this->getAttribute((isset($context["evaluated"]) ? $context["evaluated"] : null), "names")), "html", null, true);
                echo "
                                            </option>
                                            ";
            }
            // line 108
            echo "                                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['evaluated'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 109
        echo "                                    </select>
                                </div>
                            </div>
                          
                        </div>
      
                    </fieldset>
                    
                </div>
                <!-- /.tableDefault -->
                
                <div class=\"reportDashboardButton menuCrud clearfix\">
                    <ul class=\"record_actions\">
                        <li><button type=\"submit\" name=\"gerate_report\" value=\"1\" class=\"autoselectOptionData2 sideB bGreyish mt10\">Generar Reporte</button></li>
                            ";
        // line 123
        if ((((isset($context["pollschedulingData"]) ? $context["pollschedulingData"] : null) != "") && ((isset($context["evaluatedData"]) ? $context["evaluatedData"] : null) != ""))) {
            // line 124
            echo "                                <li><a href=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("fishman_front_end_report_disaggregated_export", array("pollid" => (isset($context["pollData"]) ? $context["pollData"] : null), "pollschedulingid" => (isset($context["pollschedulingData"]) ? $context["pollschedulingData"] : null), "evaluatedid" => (isset($context["evaluatedData"]) ? $context["evaluatedData"] : null))), "html", null, true);
            echo "\" class=\"sideB bRed mt10\">Exportar a Excel</a></li>
                                <li><a href=\"";
            // line 125
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("fishman_front_end_report_disaggregated_export_grafico", array("pollid" => (isset($context["pollData"]) ? $context["pollData"] : null), "pollschedulingid" => (isset($context["pollschedulingData"]) ? $context["pollschedulingData"] : null), "evaluatedid" => (isset($context["evaluatedData"]) ? $context["evaluatedData"] : null))), "html", null, true);
            echo "\" class=\"sideB bRed mt10\">Exportar a Excel Grafico</a></li>
                            ";
        } else {
            // line 127
            echo "                            <li><span class=\"sideB bRed mt10 spanButton\">Exportar a Excel</span></li>
                            <li><span class=\"sideB bRed mt10 spanButton\">Exportar a Excel Grafico</span></li>
                            ";
        }
        // line 130
        echo "                        <li><a href=\"javascript:window.print()\" class=\"sideB bRed mt10\">Imprimir</a></li>
                    </ul>
                </div>
                <!-- /.menuCrud -->
                
            </form>
        
        </div>
        <!-- /.formCrudCreate -->

    </div>
    <!-- /.tableDefault -->
    
    ";
        // line 143
        if (array_key_exists("report_results", $context)) {
            // line 144
            echo "    
    <div class=\"widget tableDefault clearfix\">
        <div class=\"dataListTable\">
            <table class=\"records_list dataTable\">
                <thead>
                    <tr>
                        <th rowspan=\"2\">Sección / Pregunta</th>
                        ";
            // line 151
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["rol_results"]) ? $context["rol_results"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["rol"]) {
                // line 152
                echo "                            <th colspan=\"";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["rol"]) ? $context["rol"] : null), "count"), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["rol"]) ? $context["rol"] : null), "title"), "html", null, true);
                echo "</th>
                            <th rowspan=\"2\"><strong>Promedio</strong></th>
                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['rol'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 155
            echo "                        <th rowspan=\"2\"><strong>PTT</strong></th>
                        <th rowspan=\"2\"><strong>Promedio Total</strong></th>
                    </tr>
                    <tr>
                        ";
            // line 159
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["header_results"]) ? $context["header_results"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["header"]) {
                // line 160
                echo "                            <th>";
                echo twig_escape_filter($this->env, (isset($context["header"]) ? $context["header"] : null), "html", null, true);
                echo "</th>
                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['header'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 162
            echo "                    </tr>
                </thead>
                <tbody>
                    ";
            // line 165
            $context["i"] = 0;
            // line 166
            echo "                    ";
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable(range(0, ((isset($context["count_vertical"]) ? $context["count_vertical"] : null) - 1)));
            foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                // line 167
                echo "                    <tr>
                        ";
                // line 168
                $context["j"] = 0;
                // line 169
                echo "                        <td>";
                echo $this->getAttribute($this->getAttribute((isset($context["title_results"]) ? $context["title_results"] : null), (isset($context["i"]) ? $context["i"] : null), array(), "array"), "title");
                echo "</td>
                        ";
                // line 170
                $context['_parent'] = (array) $context;
                $context['_seq'] = twig_ensure_traversable(range(0, ((isset($context["count_horizontal"]) ? $context["count_horizontal"] : null) - 1)));
                foreach ($context['_seq'] as $context["_key"] => $context["j"]) {
                    // line 171
                    echo "                            <td>";
                    echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["report_results"]) ? $context["report_results"] : null), (isset($context["j"]) ? $context["j"] : null), array(), "array"), (isset($context["i"]) ? $context["i"] : null), array(), "array"), "percentage"), 2), "html", null, true);
                    echo "</td>
                            ";
                    // line 172
                    $context["j"] = ((isset($context["j"]) ? $context["j"] : null) + 1);
                    // line 173
                    echo "                        ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['j'], $context['_parent'], $context['loop']);
                $context = array_merge($_parent, array_intersect_key($context, $_parent));
                // line 174
                echo "                        <td><strong>";
                echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["ptt_percentages"]) ? $context["ptt_percentages"] : null), (isset($context["i"]) ? $context["i"] : null), array(), "array"), "percentage"), 2), "html", null, true);
                echo "</strong></td>
                        <td><strong>";
                // line 175
                echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute((isset($context["report_rows"]) ? $context["report_rows"] : null), (isset($context["i"]) ? $context["i"] : null), array(), "array"), 2), "html", null, true);
                echo "</strong></td>
                    </tr>
                    ";
                // line 177
                $context["i"] = ((isset($context["i"]) ? $context["i"] : null) + 1);
                // line 178
                echo "                    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 179
            echo "                    <tr>
                        <td><strong>Promedio Total</strong></td>
                        ";
            // line 181
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["total_results"]) ? $context["total_results"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["total"]) {
                // line 182
                echo "                            <td><strong>";
                echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute((isset($context["total"]) ? $context["total"] : null), "percentage"), 2), "html", null, true);
                echo "</strong></td>
                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['total'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 184
            echo "                        <td><strong>";
            echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["ptt_total"]) ? $context["ptt_total"] : null), 2), "html", null, true);
            echo "</strong></td>
                        <td><strong>";
            // line 185
            echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["row_results"]) ? $context["row_results"] : null), 2), "html", null, true);
            echo "</strong></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    
    ";
        }
        // line 193
        echo "    
</div>
<!-- /.dataList -->

";
    }

    // line 32
    public function block___internal_54b34bd458dc6fbd27a468b073c9dbbcae777c16($context, array $blocks = array())
    {
        echo "Reporte Desagregado";
    }

    // line 199
    public function block_javascripts($context, array $blocks = array())
    {
        // line 200
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "
<script type=\"text/javascript\" src=\"";
        // line 201
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/custom_options_move.js"), "html", null, true);
        echo "\"></script>
<script type=\"text/javascript\" src=\"";
        // line 202
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/custom_fischman.js"), "html", null, true);
        echo "\"></script>
<script type=\"text/javascript\" src=\"";
        // line 203
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/custom_validate.js"), "html", null, true);
        echo "\"></script>
";
        // line 204
        echo (isset($context["globaljavascript"]) ? $context["globaljavascript"] : null);
        echo "
<script type=\"text/javascript\">
  var ids = '';
  var workshopschedulingid = '';
  var companyid = '";
        // line 208
        echo twig_escape_filter($this->env, (isset($context["companyData"]) ? $context["companyData"] : null), "html", null, true);
        echo "';
</script>
<script type=\"text/javascript\" src=\"";
        // line 210
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/report_disaggregated_ajax.js"), "html", null, true);
        echo "\"></script>
";
    }

    public function getTemplateName()
    {
        return "FishmanFrontEndBundle:Dashboard/Report:result_disaggregated.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  496 => 210,  491 => 208,  484 => 204,  480 => 203,  476 => 202,  472 => 201,  468 => 200,  465 => 199,  459 => 32,  451 => 193,  440 => 185,  435 => 184,  426 => 182,  422 => 181,  418 => 179,  412 => 178,  410 => 177,  405 => 175,  400 => 174,  394 => 173,  392 => 172,  387 => 171,  383 => 170,  378 => 169,  376 => 168,  373 => 167,  368 => 166,  366 => 165,  361 => 162,  352 => 160,  348 => 159,  342 => 155,  330 => 152,  326 => 151,  317 => 144,  315 => 143,  300 => 130,  295 => 127,  290 => 125,  285 => 124,  283 => 123,  267 => 109,  261 => 108,  255 => 105,  250 => 104,  244 => 101,  239 => 100,  236 => 99,  232 => 98,  221 => 89,  215 => 88,  207 => 86,  199 => 84,  196 => 83,  192 => 82,  181 => 73,  175 => 72,  167 => 70,  159 => 68,  156 => 67,  152 => 66,  141 => 57,  135 => 56,  127 => 54,  119 => 52,  116 => 51,  112 => 50,  91 => 32,  81 => 25,  78 => 24,  73 => 21,  70 => 20,  63 => 16,  59 => 15,  56 => 14,  53 => 13,  49 => 10,  46 => 9,  42 => 6,  39 => 5,  33 => 3,);
    }
}
