var/cache/dev/twig/d7/d743917aef8522e4aaedbe5361e3d864.php line 53

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* index/qualidade.html.twig */
  15. class __TwigTemplate_b1d6c1655b5c7dcaea2335413f67e80e extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'title' => [$this'block_title'],
  25.             'header' => [$this'block_header'],
  26.             'content_header' => [$this'block_content_header'],
  27.             'main' => [$this'block_main'],
  28.             'content_footer' => [$this'block_content_footer'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 1
  34.         return "@EasyAdmin/layout.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""index/qualidade.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""index/qualidade.html.twig"));
  43.         $this->parent $this->loadTemplate("@EasyAdmin/layout.html.twig""index/qualidade.html.twig"1);
  44.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 2
  51.     public function block_title($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  58.         yield "ArquivosGED";
  59.         
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  61.         
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  63.         return; yield '';
  64.     }
  65.     // line 3
  66.     public function block_header($context, array $blocks = [])
  67.     {
  68.         $macros $this->macros;
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  73.         
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  75.         
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  77.         return; yield '';
  78.     }
  79.     // line 6
  80.     public function block_content_header($context, array $blocks = [])
  81.     {
  82.         $macros $this->macros;
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content_header"));
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content_header"));
  87.         // line 7
  88.         yield "<link rel=\"stylesheet\" type=\"text/css\" href=\"";
  89.         yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("./css/index.css"), "html"nulltrue);
  90.         yield "\">
  91. <link rel=\"shortcut icon\" href=\"";
  92.         // line 8
  93.         yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("./img/icon.png"), "html"nulltrue);
  94.         yield "\">
  95. <link href=\"https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css\" rel=\"stylesheet\" />
  96. ";
  97.         
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  99.         
  100.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  101.         return; yield '';
  102.     }
  103.     // line 13
  104.     public function block_main($context, array $blocks = [])
  105.     {
  106.         $macros $this->macros;
  107.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  108.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  110.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  111.         // line 14
  112.         yield "<style>
  113.  /* Estilo básico para ocultar as opções não filtradas */
  114. .hidden {
  115.     
  116.     display: none;
  117. }
  118. .table {
  119.     width: 100%; /* Ajusta a largura da tabela */
  120.     border-collapse: collapse; /* Remove espaços entre as bordas */
  121. }
  122. .table thead {
  123.     position: sticky; /* Mantém o cabeçalho fixo no topo */
  124.     top: 0;
  125.     background: white; /* Fundo para visibilidade */
  126.     z-index: 2;
  127. }
  128. .table tbody {
  129.     display: block; /* Torna o tbody um bloco */
  130.     max-height: 300px; /* Define a altura máxima com scroll */
  131.     overflow-y: auto; /* Ativa o scroll vertical */
  132.     width: 100%; /* Garante alinhamento com o thead */
  133.     max-height: 300px;
  134. }
  135. .table tbody tr {
  136.     display: table; /* Garante que os elementos mantenham o estilo de tabela */
  137.     width: 100%; /* Alinha as colunas */
  138.     table-layout: fixed; /* Mantém as larguras das colunas */
  139. }
  140. .table thead tr {
  141.     display: table; /* Garante alinhamento entre thead e tbody */
  142.     width: 100%;
  143.     table-layout: fixed; /* Mantém as larguras das colunas */
  144. }
  145. </style>
  146. ";
  147.         // line 60
  148.         if (((isset($context["xy"]) || array_key_exists("xy"$context) ? $context["xy"] : (function () { throw new RuntimeError('Variable "xy" does not exist.'60$this->source); })()) == 1)) {
  149.             // line 61
  150.             yield "    
  151. <form method='post' id=\"formPdf\">> 
  152.     <div class=\"index\">
  153.         <div class = 'iframe'>
  154.             <input type=\"hidden\" value=\"";
  155.             // line 65
  156.             yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->source, (isset($context["pdf"]) || array_key_exists("pdf"$context) ? $context["pdf"] : (function () { throw new RuntimeError('Variable "pdf" does not exist.'65$this->source); })()), "id", [], "any"falsefalsefalse65), "html"nulltrue);
  157.             yield "\" name=\"id_pdf\">
  158.              <input type=\"hidden\" value=\"";
  159.             // line 67
  160.             yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->source, (isset($context["pdf"]) || array_key_exists("pdf"$context) ? $context["pdf"] : (function () { throw new RuntimeError('Variable "pdf" does not exist.'67$this->source); })()), "id", [], "any"falsefalsefalse67), "html"nulltrue);
  161.             yield "\" name=\"id_pdf\">
  162.             <iframe class = \"ifr\"  
  163.                 
  164.                 ";
  165.             // line 70
  166.             if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["pdf"]) || array_key_exists("pdf"$context) ? $context["pdf"] : (function () { throw new RuntimeError('Variable "pdf" does not exist.'70$this->source); })()), "cliente", [], "any"falsefalsefalse70), "extraFields", [], "any"falsefalsefalse70) == "local")) {
  167.                 // line 71
  168.                 yield "                    src=\"";
  169.                 yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'71$this->source); })()), "html"nulltrue);
  170.                 yield "\"
  171.                 ";
  172.             }
  173.             // line 73
  174.             yield "
  175.                 ";
  176.             // line 74
  177.             if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["pdf"]) || array_key_exists("pdf"$context) ? $context["pdf"] : (function () { throw new RuntimeError('Variable "pdf" does not exist.'74$this->source); })()), "cliente", [], "any"falsefalsefalse74), "extraFields", [], "any"falsefalsefalse74) != "local")) {
  178.                 // line 75
  179.                 yield "                    src=\"";
  180.                 yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["all_Url"]) || array_key_exists("all_Url"$context) ? $context["all_Url"] : (function () { throw new RuntimeError('Variable "all_Url" does not exist.'75$this->source); })()), "html"nulltrue);
  181.                 yield "\"
  182.                 
  183.                 ";
  184.             }
  185.             // line 78
  186.             yield "                
  187.                 
  188.                 ></iframe>
  189.         </div>
  190.         <div class= 'form'>
  191.                
  192.             ";
  193.             // line 84
  194.             if (((isset($context["erro"]) || array_key_exists("erro"$context) ? $context["erro"] : (function () { throw new RuntimeError('Variable "erro" does not exist.'84$this->source); })()) == "erro")) {
  195.                 // line 85
  196.                 yield "                    ";
  197.                 yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["p"]) || array_key_exists("p"$context) ? $context["p"] : (function () { throw new RuntimeError('Variable "p" does not exist.'85$this->source); })()), "html"nulltrue);
  198.                 yield "
  199.                 ";
  200.             }
  201.             // line 87
  202.             yield "                ";
  203.             if (((isset($context["erro"]) || array_key_exists("erro"$context) ? $context["erro"] : (function () { throw new RuntimeError('Variable "erro" does not exist.'87$this->source); })()) == "ok")) {
  204.                 // line 88
  205.                 yield "                    ";
  206.                 yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["p"]) || array_key_exists("p"$context) ? $context["p"] : (function () { throw new RuntimeError('Variable "p" does not exist.'88$this->source); })()), "html"nulltrue);
  207.                 yield "
  208.                 ";
  209.             }
  210.             // line 90
  211.             yield "                <div class=\"doc\">
  212.                                     
  213.                 <button  onclick=\"showDiv()\" id=\"Login\" type=\"submit\" name ='botao_volta' class=\"btn btn-primary\" id='back'>
  214.                 <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-arrow-left-circle-fill\" viewBox=\"0 0 16 16\">
  215.                 <path d=\"M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0m3.5 7.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5z\"/>
  216.                 </svg>
  217.             </button>
  218.                 <h4 class='titulo'>";
  219.             // line 97
  220.             yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["pdf"]) || array_key_exists("pdf"$context) ? $context["pdf"] : (function () { throw new RuntimeError('Variable "pdf" does not exist.'97$this->source); })()), "tipo", [], "any"falsefalsefalse97), "nome", [], "any"falsefalsefalse97), "html"nulltrue);
  221.             yield "</h4>
  222.                     
  223.                         <label>Descrição(OCR):</label>
  224.                         <div class=\"form-group\">
  225.                         
  226.                         <textarea class=\"form-control\" id=\"exampleTextarea\" rows=\"3\"name= \"desc\">";
  227.             // line 102
  228.             yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->source, (isset($context["pdf"]) || array_key_exists("pdf"$context) ? $context["pdf"] : (function () { throw new RuntimeError('Variable "pdf" does not exist.'102$this->source); })()), "extraFields", [], "any"falsefalsefalse102), "html"nulltrue);
  229.             yield "</textarea>
  230.                     </div>
  231.                     <hr>
  232.                         <label>Nome:</label>
  233.                         <input type=\"text\" class=\"form-control\" name= \"nome\" value =\"";
  234.             // line 106
  235.             yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->source, (isset($context["pdf"]) || array_key_exists("pdf"$context) ? $context["pdf"] : (function () { throw new RuntimeError('Variable "pdf" does not exist.'106$this->source); })()), "nome", [], "any"falsefalsefalse106), "html"nulltrue);
  236.             yield "\" required>
  237.                     <hr>
  238.                     <label>Assunto:</label>
  239.                         <input type=\"text\" class=\"form-control\" name= \"assunto\" value =\"";
  240.             // line 110
  241.             yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->source, (isset($context["pdf"]) || array_key_exists("pdf"$context) ? $context["pdf"] : (function () { throw new RuntimeError('Variable "pdf" does not exist.'110$this->source); })()), "assunto", [], "any"falsefalsefalse110), "html"nulltrue);
  242.             yield "\" required>
  243.                     <hr>
  244.                     <label>Palavra-Chave:</label>
  245.                         <input type=\"text\" class=\"form-control\" name= \"chave\" value =\"";
  246.             // line 114
  247.             yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->source, (isset($context["pdf"]) || array_key_exists("pdf"$context) ? $context["pdf"] : (function () { throw new RuntimeError('Variable "pdf" does not exist.'114$this->source); })()), "keywords", [], "any"falsefalsefalse114), "html"nulltrue);
  248.             yield "\">
  249.                     
  250.                     <hr>    
  251.                     <label>Data Documento:</label>
  252.                         <input type=\"date\" class=\"form-control\" name= \"data\" ";
  253.             // line 119
  254.             if ((CoreExtension::getAttribute($this->env$this->source, (isset($context["pdf"]) || array_key_exists("pdf"$context) ? $context["pdf"] : (function () { throw new RuntimeError('Variable "pdf" does not exist.'119$this->source); })()), "dataDocumento", [], "any"falsefalsefalse119) != null)) {
  255.                 yield "value =\"";
  256.                 yield Twig\Extension\EscaperExtension::escape($this->envTwig\Extension\CoreExtension::dateFormatFilter($this->envCoreExtension::getAttribute($this->env$this->source, (isset($context["pdf"]) || array_key_exists("pdf"$context) ? $context["pdf"] : (function () { throw new RuntimeError('Variable "pdf" does not exist.'119$this->source); })()), "dataDocumento", [], "any"falsefalsefalse119), "Y-m-d"), "html"nulltrue);
  257.                 yield "\"";
  258.             }
  259.             yield ">
  260.                     <hr>
  261.             
  262.                     <label>Classificação:</label>
  263.                         <select  id=\"meuSelect\" placeholder=\"Pesquise\" name=\"classifica\" class=\"form-control\">
  264.                                 ";
  265.             // line 124
  266.             if ((CoreExtension::getAttribute($this->env$this->source, (isset($context["pdf"]) || array_key_exists("pdf"$context) ? $context["pdf"] : (function () { throw new RuntimeError('Variable "pdf" does not exist.'124$this->source); })()), "classificacao", [], "any"falsefalsefalse124) != null)) {
  267.                 // line 125
  268.                 yield "                                <option value=\"";
  269.                 yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["pdf"]) || array_key_exists("pdf"$context) ? $context["pdf"] : (function () { throw new RuntimeError('Variable "pdf" does not exist.'125$this->source); })()), "classificacao", [], "any"falsefalsefalse125), "id", [], "any"falsefalsefalse125), "html"nulltrue);
  270.                 yield "\" data-texto=\"";
  271.                 yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["pdf"]) || array_key_exists("pdf"$context) ? $context["pdf"] : (function () { throw new RuntimeError('Variable "pdf" does not exist.'125$this->source); })()), "classificacao", [], "any"falsefalsefalse125), "faseIntermediaria", [], "any"falsefalsefalse125), "html"nulltrue);
  272.                 yield "\" selected>";
  273.                 yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["pdf"]) || array_key_exists("pdf"$context) ? $context["pdf"] : (function () { throw new RuntimeError('Variable "pdf" does not exist.'125$this->source); })()), "classificacao", [], "any"falsefalsefalse125), "nome", [], "any"falsefalsefalse125), "html"nulltrue);
  274.                 yield "</option>
  275.                                 ";
  276.             }
  277.             // line 127
  278.             yield "                                ";
  279.             if ((CoreExtension::getAttribute($this->env$this->source, (isset($context["pdf"]) || array_key_exists("pdf"$context) ? $context["pdf"] : (function () { throw new RuntimeError('Variable "pdf" does not exist.'127$this->source); })()), "classificacao", [], "any"falsefalsefalse127) == null)) {
  280.                 // line 128
  281.                 yield "                                    <option value=\"\"  data-texto=\"\"  selected>Selecione</option>
  282.                                 ";
  283.             }
  284.             // line 130
  285.             yield "                                ";
  286.             $context['_parent'] = $context;
  287.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["class"]) || array_key_exists("class"$context) ? $context["class"] : (function () { throw new RuntimeError('Variable "class" does not exist.'130$this->source); })()));
  288.             foreach ($context['_seq'] as $context["_key"] => $context["classi"]) {
  289.                 // line 131
  290.                 yield "                                    <option value=\"";
  291.                 yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->source$context["classi"], "id", [], "any"falsefalsefalse131), "html"nulltrue);
  292.                 yield "\" data-texto=\"";
  293.                 yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->source$context["classi"], "faseIntermediaria", [], "any"falsefalsefalse131), "html"nulltrue);
  294.                 yield "\">";
  295.                 yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->source$context["classi"], "nome", [], "any"falsefalsefalse131), "html"nulltrue);
  296.                 yield "</option>
  297.                                 ";
  298.             }
  299.             $_parent $context['_parent'];
  300.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['classi'], $context['_parent'], $context['loop']);
  301.             $context array_intersect_key($context$_parent) + $_parent;
  302.             // line 132
  303.             yield "              
  304.                         </select>
  305.                     <hr>
  306.                     <label>Fase Intermediária:</label>
  307.                     <input type=\"text\" id=\"resultado\" name=\"fase\" class=\"form-control\" readonly>
  308.                     <hr>
  309.                     <label>Container:</label>
  310.                         <input type=\"text\" class=\"form-control\" name= \"conteiner\" value =\"";
  311.             // line 139
  312.             yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->source, (isset($context["pdf"]) || array_key_exists("pdf"$context) ? $context["pdf"] : (function () { throw new RuntimeError('Variable "pdf" does not exist.'139$this->source); })()), "conteiner", [], "any"falsefalsefalse139), "html"nulltrue);
  313.             yield "\">
  314.                     <hr> 
  315.                     <div class='dados_pesq'>
  316.                         <div style=\"text-align:center\">
  317.                             <button type=\"submit\" onclick=\"showDiv()\" id=\"Login\"  class=\"btn btn-primary\" name ='botao_doc'>Salvar</button>&nbsp;&nbsp;
  318.                         </div>
  319.                     </div>
  320.         </div>                    
  321.     </div>    
  322. </form>  
  323.     ";
  324.             // line 151
  325.             if (((isset($context["erro"]) || array_key_exists("erro"$context) ? $context["erro"] : (function () { throw new RuntimeError('Variable "erro" does not exist.'151$this->source); })()) == "ok")) {
  326.                 // line 152
  327.                 yield "    
  328.     <a href=\"";
  329.                 // line 153
  330.                 yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("qualidade");
  331.                 yield "\"><div class=\"avisos\"><img  src=\"";
  332.                 yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("./img/check.gif"), "html"nulltrue);
  333.                 yield "\"><br><y>";
  334.                 yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["p"]) || array_key_exists("p"$context) ? $context["p"] : (function () { throw new RuntimeError('Variable "p" does not exist.'153$this->source); })()), "html"nulltrue);
  335.                 yield "</y></div></a>
  336.     
  337.     ";
  338.             }
  339.             // line 156
  340.             yield "    <script type=\"text/javascript\" src=\"";
  341.             yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("./js/jquery-2.2.4.min.js"), "html"nulltrue);
  342.             yield "\"></script>
  343.    </div>     
  344. ";
  345.         }
  346.         // line 159
  347.         yield "
  348. ";
  349.         // line 160
  350.         if (((isset($context["xy"]) || array_key_exists("xy"$context) ? $context["xy"] : (function () { throw new RuntimeError('Variable "xy" does not exist.'160$this->source); })()) == 0)) {
  351.             // line 161
  352.             yield "    <div>
  353.         <h5 class='titulo'>Controle de Qualidade</h5>
  354.     </div>
  355.     <div>  
  356.             <div>
  357.                 <table class=\"table table-bordered table-striped\">
  358.                     <thead>
  359.                         <tr>
  360.                             <th>Repositor</th>
  361.                             <th>Nome</th>
  362.                             <th>Assunto</th>
  363.                             <th>Data do Envio</th>
  364.                             <th>Data do Indexação</th>
  365.                             <th>Imagen(s)</th>
  366.                             <th>Ação</th>
  367.                         </tr>
  368.                     </thead>    
  369.                     <tbody id=\"tableBody\">
  370.                     ";
  371.             // line 179
  372.             $context["doc_null"] = 0;
  373.             // line 180
  374.             yield "                    ";
  375.             $context['_parent'] = $context;
  376.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["documentos"]) || array_key_exists("documentos"$context) ? $context["documentos"] : (function () { throw new RuntimeError('Variable "documentos" does not exist.'180$this->source); })()));
  377.             foreach ($context['_seq'] as $context["_key"] => $context["documento"]) {
  378.                 // line 181
  379.                 yield "                        
  380.                     
  381.                             ";
  382.                 // line 183
  383.                 $context["doc_null"] = ((isset($context["doc_null"]) || array_key_exists("doc_null"$context) ? $context["doc_null"] : (function () { throw new RuntimeError('Variable "doc_null" does not exist.'183$this->source); })()) + 1);
  384.                 // line 184
  385.                 yield "                            <tr>
  386.                                 <td>";
  387.                 // line 185
  388.                 yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["documento"], "caixa", [], "any"falsefalsefalse185), "nome", [], "any"falsefalsefalse185), "html"nulltrue);
  389.                 yield "</td>
  390.                                 <td>";
  391.                 // line 186
  392.                 yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->source$context["documento"], "nome", [], "any"falsefalsefalse186), "html"nulltrue);
  393.                 yield "</td>
  394.                                 <td>";
  395.                 // line 187
  396.                 yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->source$context["documento"], "assunto", [], "any"falsefalsefalse187), "html"nulltrue);
  397.                 yield "</td>
  398.                                 <td>";
  399.                 // line 188
  400.                 yield Twig\Extension\EscaperExtension::escape($this->envTwig\Extension\CoreExtension::dateFormatFilter($this->envCoreExtension::getAttribute($this->env$this->source$context["documento"], "createdAt", [], "any"falsefalsefalse188), "d/m/Y H:i:s"), "html"nulltrue);
  401.                 yield "</td>
  402.                                 <td>";
  403.                 // line 189
  404.                 yield Twig\Extension\EscaperExtension::escape($this->envTwig\Extension\CoreExtension::dateFormatFilter($this->envCoreExtension::getAttribute($this->env$this->source$context["documento"], "indexAt", [], "any"falsefalsefalse189), "d/m/Y H:i:s"), "html"nulltrue);
  405.                 yield "</td>
  406.                                 <td>";
  407.                 // line 190
  408.                 yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->source$context["documento"], "qtd", [], "any"falsefalsefalse190), "html"nulltrue);
  409.                 yield "</td>
  410.                                 
  411.                                 <td>
  412.                             
  413.                                     <form method='post'>
  414.                                         <input type=\"hidden\" name=\"id\" value=\"";
  415.                 // line 195
  416.                 yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->source$context["documento"], "id", [], "any"falsefalsefalse195), "html"nulltrue);
  417.                 yield "\" /> 
  418.                                         
  419.                                             <button  type=\"submit\" name ='botao_index' class=\"btn btn-primary\" onclick=\"showDiv()\" id=\"Login\"><b>Indexar</b>
  420.                                                 <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-text-indent-left\" viewBox=\"0 0 16 16\">
  421.                                                     <path d=\"M2 3.5a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5m.646 2.146a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L4.293 8 2.646 6.354a.5.5 0 0 1 0-.708M7 6.5a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5m0 3a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5m-5 3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5\"/>
  422.                                                 </svg>
  423.                                             </button>
  424.                                     </form>
  425.                                 </td>
  426.                             </tr>
  427.                         
  428.                     ";
  429.             }
  430.             $_parent $context['_parent'];
  431.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['documento'], $context['_parent'], $context['loop']);
  432.             $context array_intersect_key($context$_parent) + $_parent;
  433.             // line 208
  434.             yield "                    </tbody>
  435.                     <thead>
  436.                         <tr>
  437.                             <th>Total</th>
  438.                         
  439.                         </tr>
  440.                     </thead>
  441.                     <thead>
  442.                         <tr>
  443.                             <th>";
  444.             // line 217
  445.             yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["doc_null"]) || array_key_exists("doc_null"$context) ? $context["doc_null"] : (function () { throw new RuntimeError('Variable "doc_null" does not exist.'217$this->source); })()), "html"nulltrue);
  446.             yield "</th>
  447.                         </tr>
  448.                     </thead>
  449.                     </tbody>
  450.                 
  451.                 </table>
  452.             </div>
  453.         
  454.         
  455.         
  456.         
  457.     ";
  458.             // line 230
  459.             if (((isset($context["erro"]) || array_key_exists("erro"$context) ? $context["erro"] : (function () { throw new RuntimeError('Variable "erro" does not exist.'230$this->source); })()) == "erro")) {
  460.                 // line 231
  461.                 yield "        ";
  462.                 yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["p"]) || array_key_exists("p"$context) ? $context["p"] : (function () { throw new RuntimeError('Variable "p" does not exist.'231$this->source); })()), "html"nulltrue);
  463.                 yield "
  464.     ";
  465.             }
  466.             // line 233
  467.             yield "    ";
  468.             if (((isset($context["erro"]) || array_key_exists("erro"$context) ? $context["erro"] : (function () { throw new RuntimeError('Variable "erro" does not exist.'233$this->source); })()) == "ok")) {
  469.                 // line 234
  470.                 yield "
  471.     
  472.     <a href=\"https://index.arquivosdoc.com.br/index/indexacao/";
  473.                 // line 236
  474.                 yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'236$this->source); })()), "html"nulltrue);
  475.                 yield "\" onclick=\"showDiv()\" id=\"Login\"><div class=\"avisos\"><img  src=\"";
  476.                 yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("./img/check.gif"), "html"nulltrue);
  477.                 yield "\"><br><y>";
  478.                 yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["p"]) || array_key_exists("p"$context) ? $context["p"] : (function () { throw new RuntimeError('Variable "p" does not exist.'236$this->source); })()), "html"nulltrue);
  479.                 yield "</y></div></a>
  480.     
  481.     ";
  482.             }
  483.             // line 239
  484.             yield "
  485.     <script>
  486.         function confirmSubmission(event) {
  487.             let confirmAction = confirm(\"Você tem certeza que deseja enviar o conteúdo preenchido? Por favor, revise antes de prosseguir.\");
  488.             if (!confirmAction) {
  489.                 event.preventDefault();  // Impede o envio do formulário
  490.             } else {
  491.                 // Se necessário, envie o formulário ou execute outras ações aqui
  492.                 document.querySelector('form').submit();  // Exemplo, caso haja um formulário
  493.             }
  494.         }
  495.     </script>    
  496.     <div id=\"loadingGif\"  style=\"display:none;\">
  497.         <div class =\"espera\">
  498.             <img  src=\"";
  499.             // line 253
  500.             yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("./img/carrega.gif"), "html"nulltrue);
  501.             yield "\">
  502.         </div>  
  503.     </div>    
  504. ";
  505.         }
  506.         // line 257
  507.         yield 
  508.    
  509.     <!-- Include Select2 JS -->
  510.     <script src=\"https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/js/select2.min.js\"></script>
  511.     <script>
  512.         \$(document).ready(function() {
  513.             \$('#searchable-select').select2({
  514.                 placeholder: 'Pesquise',
  515.                 allowClear: true
  516.             });
  517.         });
  518.         \$(document).ready(function() {
  519.             \$('#searchable-select2').select2({
  520.                 placeholder: 'Pesquise',
  521.                 allowClear: true
  522.             });
  523.         });
  524.     </script> 
  525.     
  526.     <script>
  527.         function atualizarValores() {
  528.             // Obtém o elemento select
  529.             const selectElement = document.getElementById('meuSelect');
  530.             
  531.             // Obtém o valor e o texto personalizados da opção selecionada
  532.             const textoExibido = selectElement.options[selectElement.selectedIndex].getAttribute('data-texto');
  533.             const valor = selectElement.value;
  534.             // Atualiza o valor do input com o texto exibido e valor selecionado
  535.             const resultadoInput = document.getElementById('resultado');
  536.             resultadoInput.value = `\${textoExibido}`;
  537.         }
  538.         // Adiciona o evento para que a função seja chamada quando o select mudar
  539.         window.onload = function() {
  540.             const selectElement = document.getElementById('meuSelect');
  541.             selectElement.addEventListener('change', atualizarValores);
  542.             // Atualiza o input inicialmente para o valor padrão
  543.             atualizarValores();
  544.         };
  545.     </script>  
  546. <script>
  547.    function showDiv() {
  548.      document.getElementById('Login').style.display = \"none\";
  549.      document.getElementById('loadingGif').style.display = \"block\";
  550.      setTimeout(function() {
  551.        document.getElementById('loadingGif').style.display = \"none\";
  552.        document.getElementById('Login').style.display = \"block\";
  553.      },4000);
  554.       
  555.    }
  556.    function showDivshow() {
  557.      document.getElementById('botao').style.display = \"none\";
  558.      document.getElementById('img').style.display = \"none\";
  559.      document.getElementById('loading').style.display = \"block\";
  560.      setTimeout(function() {
  561.        document.getElementById('botao').style.display = \"block\";
  562.        document.getElementById('loading').style.display = \"none\";
  563.        document.getElementById('img').style.display = \"block\";
  564.      },4000);
  565.       
  566.    }
  567.    </script>    
  568.    <script>
  569.     document.getElementById(\"formPdf\").addEventListener(\"keydown\", function(e) {
  570.         if (e.key === \"Enter\" && e.target.tagName !== \"TEXTAREA\") {
  571.             e.preventDefault();
  572.             this.submit();
  573.         }
  574.     });
  575.     </script>
  576. ";
  577.         
  578.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  579.         
  580.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  581.         return; yield '';
  582.     }
  583.     // line 333
  584.     public function block_content_footer($context, array $blocks = [])
  585.     {
  586.         $macros $this->macros;
  587.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  588.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content_footer"));
  589.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  590.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content_footer"));
  591.         
  592.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  593.         
  594.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  595.         return; yield '';
  596.     }
  597.     /**
  598.      * @codeCoverageIgnore
  599.      */
  600.     public function getTemplateName()
  601.     {
  602.         return "index/qualidade.html.twig";
  603.     }
  604.     /**
  605.      * @codeCoverageIgnore
  606.      */
  607.     public function isTraitable()
  608.     {
  609.         return false;
  610.     }
  611.     /**
  612.      * @codeCoverageIgnore
  613.      */
  614.     public function getDebugInfo()
  615.     {
  616.         return array (  643 => 333,  558 => 257,  551 => 253,  535 => 239,  525 => 236,  521 => 234,  518 => 233,  512 => 231,  510 => 230,  494 => 217,  483 => 208,  464 => 195,  456 => 190,  452 => 189,  448 => 188,  444 => 187,  440 => 186,  436 => 185,  433 => 184,  431 => 183,  427 => 181,  422 => 180,  420 => 179,  400 => 161,  398 => 160,  395 => 159,  388 => 156,  378 => 153,  375 => 152,  373 => 151,  358 => 139,  349 => 132,  336 => 131,  331 => 130,  327 => 128,  324 => 127,  314 => 125,  312 => 124,  300 => 119,  292 => 114,  285 => 110,  278 => 106,  271 => 102,  263 => 97,  254 => 90,  248 => 88,  245 => 87,  239 => 85,  237 => 84,  229 => 78,  222 => 75,  220 => 74,  217 => 73,  211 => 71,  209 => 70,  203 => 67,  198 => 65,  192 => 61,  190 => 60,  142 => 14,  132 => 13,  117 => 8,  112 => 7,  102 => 6,  83 => 3,  63 => 2,  40 => 1,);
  617.     }
  618.     public function getSourceContext()
  619.     {
  620.         return new Source("{% extends '@EasyAdmin/layout.html.twig' %}
  621. {% block title %}ArquivosGED{% endblock %}
  622. {% block header %}
  623. {% endblock header %}
  624. {% block content_header %}
  625. <link rel=\"stylesheet\" type=\"text/css\" href=\"{{ asset('./css/index.css') }}\">
  626. <link rel=\"shortcut icon\" href=\"{{ asset('./img/icon.png') }}\">
  627. <link href=\"https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css\" rel=\"stylesheet\" />
  628. {% endblock content_header %}
  629. {% block main %}
  630. <style>
  631.  /* Estilo básico para ocultar as opções não filtradas */
  632. .hidden {
  633.     
  634.     display: none;
  635. }
  636. .table {
  637.     width: 100%; /* Ajusta a largura da tabela */
  638.     border-collapse: collapse; /* Remove espaços entre as bordas */
  639. }
  640. .table thead {
  641.     position: sticky; /* Mantém o cabeçalho fixo no topo */
  642.     top: 0;
  643.     background: white; /* Fundo para visibilidade */
  644.     z-index: 2;
  645. }
  646. .table tbody {
  647.     display: block; /* Torna o tbody um bloco */
  648.     max-height: 300px; /* Define a altura máxima com scroll */
  649.     overflow-y: auto; /* Ativa o scroll vertical */
  650.     width: 100%; /* Garante alinhamento com o thead */
  651.     max-height: 300px;
  652. }
  653. .table tbody tr {
  654.     display: table; /* Garante que os elementos mantenham o estilo de tabela */
  655.     width: 100%; /* Alinha as colunas */
  656.     table-layout: fixed; /* Mantém as larguras das colunas */
  657. }
  658. .table thead tr {
  659.     display: table; /* Garante alinhamento entre thead e tbody */
  660.     width: 100%;
  661.     table-layout: fixed; /* Mantém as larguras das colunas */
  662. }
  663. </style>
  664. {% if xy == 1 %}
  665.     
  666. <form method='post' id=\"formPdf\">> 
  667.     <div class=\"index\">
  668.         <div class = 'iframe'>
  669.             <input type=\"hidden\" value=\"{{pdf.id}}\" name=\"id_pdf\">
  670.              <input type=\"hidden\" value=\"{{pdf.id}}\" name=\"id_pdf\">
  671.             <iframe class = \"ifr\"  
  672.                 
  673.                 {% if pdf.cliente.extraFields == 'local' %}
  674.                     src=\"{{link}}\"
  675.                 {% endif %}
  676.                 {% if pdf.cliente.extraFields != 'local' %}
  677.                     src=\"{{all_Url}}\"
  678.                 
  679.                 {% endif %}
  680.                 
  681.                 
  682.                 ></iframe>
  683.         </div>
  684.         <div class= 'form'>
  685.                
  686.             {% if erro == 'erro'%}
  687.                     {{p}}
  688.                 {% endif %}
  689.                 {% if erro == 'ok'%}
  690.                     {{p}}
  691.                 {% endif %}
  692.                 <div class=\"doc\">
  693.                                     
  694.                 <button  onclick=\"showDiv()\" id=\"Login\" type=\"submit\" name ='botao_volta' class=\"btn btn-primary\" id='back'>
  695.                 <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-arrow-left-circle-fill\" viewBox=\"0 0 16 16\">
  696.                 <path d=\"M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0m3.5 7.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5z\"/>
  697.                 </svg>
  698.             </button>
  699.                 <h4 class='titulo'>{{ pdf.tipo.nome }}</h4>
  700.                     
  701.                         <label>Descrição(OCR):</label>
  702.                         <div class=\"form-group\">
  703.                         
  704.                         <textarea class=\"form-control\" id=\"exampleTextarea\" rows=\"3\"name= \"desc\">{{pdf.extraFields}}</textarea>
  705.                     </div>
  706.                     <hr>
  707.                         <label>Nome:</label>
  708.                         <input type=\"text\" class=\"form-control\" name= \"nome\" value =\"{{pdf.nome}}\" required>
  709.                     <hr>
  710.                     <label>Assunto:</label>
  711.                         <input type=\"text\" class=\"form-control\" name= \"assunto\" value =\"{{pdf.assunto}}\" required>
  712.                     <hr>
  713.                     <label>Palavra-Chave:</label>
  714.                         <input type=\"text\" class=\"form-control\" name= \"chave\" value =\"{{pdf.keywords}}\">
  715.                     
  716.                     <hr>    
  717.                     <label>Data Documento:</label>
  718.                         <input type=\"date\" class=\"form-control\" name= \"data\" {% if pdf.dataDocumento != null %}value =\"{{pdf.dataDocumento | date('Y-m-d') }}\"{% endif %}>
  719.                     <hr>
  720.             
  721.                     <label>Classificação:</label>
  722.                         <select  id=\"meuSelect\" placeholder=\"Pesquise\" name=\"classifica\" class=\"form-control\">
  723.                                 {% if pdf.classificacao != null %}
  724.                                 <option value=\"{{pdf.classificacao.id}}\" data-texto=\"{{ pdf.classificacao.faseIntermediaria }}\" selected>{{pdf.classificacao.nome}}</option>
  725.                                 {% endif %}
  726.                                 {% if pdf.classificacao == null %}
  727.                                     <option value=\"\"  data-texto=\"\"  selected>Selecione</option>
  728.                                 {% endif %}
  729.                                 {% for classi in class %}
  730.                                     <option value=\"{{ classi.id }}\" data-texto=\"{{ classi.faseIntermediaria }}\">{{ classi.nome }}</option>
  731.                                 {% endfor %}              
  732.                         </select>
  733.                     <hr>
  734.                     <label>Fase Intermediária:</label>
  735.                     <input type=\"text\" id=\"resultado\" name=\"fase\" class=\"form-control\" readonly>
  736.                     <hr>
  737.                     <label>Container:</label>
  738.                         <input type=\"text\" class=\"form-control\" name= \"conteiner\" value =\"{{pdf.conteiner}}\">
  739.                     <hr> 
  740.                     <div class='dados_pesq'>
  741.                         <div style=\"text-align:center\">
  742.                             <button type=\"submit\" onclick=\"showDiv()\" id=\"Login\"  class=\"btn btn-primary\" name ='botao_doc'>Salvar</button>&nbsp;&nbsp;
  743.                         </div>
  744.                     </div>
  745.         </div>                    
  746.     </div>    
  747. </form>  
  748.     {% if erro == 'ok' %}
  749.     
  750.     <a href=\"{{ path('qualidade') }}\"><div class=\"avisos\"><img  src=\"{{ asset('./img/check.gif') }}\"><br><y>{{p}}</y></div></a>
  751.     
  752.     {% endif %}
  753.     <script type=\"text/javascript\" src=\"{{ asset('./js/jquery-2.2.4.min.js') }}\"></script>
  754.    </div>     
  755. {% endif %}
  756. {% if xy == 0 %}
  757.     <div>
  758.         <h5 class='titulo'>Controle de Qualidade</h5>
  759.     </div>
  760.     <div>  
  761.             <div>
  762.                 <table class=\"table table-bordered table-striped\">
  763.                     <thead>
  764.                         <tr>
  765.                             <th>Repositor</th>
  766.                             <th>Nome</th>
  767.                             <th>Assunto</th>
  768.                             <th>Data do Envio</th>
  769.                             <th>Data do Indexação</th>
  770.                             <th>Imagen(s)</th>
  771.                             <th>Ação</th>
  772.                         </tr>
  773.                     </thead>    
  774.                     <tbody id=\"tableBody\">
  775.                     {% set doc_null = 0 %}
  776.                     {% for documento in documentos %}
  777.                         
  778.                     
  779.                             {% set doc_null = doc_null + 1  %}
  780.                             <tr>
  781.                                 <td>{{documento.caixa.nome}}</td>
  782.                                 <td>{{documento.nome}}</td>
  783.                                 <td>{{documento.assunto}}</td>
  784.                                 <td>{{documento.createdAt | date('d/m/Y H:i:s') }}</td>
  785.                                 <td>{{documento.indexAt | date('d/m/Y H:i:s') }}</td>
  786.                                 <td>{{documento.qtd}}</td>
  787.                                 
  788.                                 <td>
  789.                             
  790.                                     <form method='post'>
  791.                                         <input type=\"hidden\" name=\"id\" value=\"{{documento.id}}\" /> 
  792.                                         
  793.                                             <button  type=\"submit\" name ='botao_index' class=\"btn btn-primary\" onclick=\"showDiv()\" id=\"Login\"><b>Indexar</b>
  794.                                                 <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-text-indent-left\" viewBox=\"0 0 16 16\">
  795.                                                     <path d=\"M2 3.5a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5m.646 2.146a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L4.293 8 2.646 6.354a.5.5 0 0 1 0-.708M7 6.5a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5m0 3a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5m-5 3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5\"/>
  796.                                                 </svg>
  797.                                             </button>
  798.                                     </form>
  799.                                 </td>
  800.                             </tr>
  801.                         
  802.                     {% endfor %}
  803.                     </tbody>
  804.                     <thead>
  805.                         <tr>
  806.                             <th>Total</th>
  807.                         
  808.                         </tr>
  809.                     </thead>
  810.                     <thead>
  811.                         <tr>
  812.                             <th>{{doc_null}}</th>
  813.                         </tr>
  814.                     </thead>
  815.                     </tbody>
  816.                 
  817.                 </table>
  818.             </div>
  819.         
  820.         
  821.         
  822.         
  823.     {% if erro == 'erro'%}
  824.         {{p}}
  825.     {% endif %}
  826.     {% if erro == 'ok' %}
  827.     
  828.     <a href=\"https://index.arquivosdoc.com.br/index/indexacao/{{id}}\" onclick=\"showDiv()\" id=\"Login\"><div class=\"avisos\"><img  src=\"{{ asset('./img/check.gif') }}\"><br><y>{{p}}</y></div></a>
  829.     
  830.     {% endif %}
  831.     <script>
  832.         function confirmSubmission(event) {
  833.             let confirmAction = confirm(\"Você tem certeza que deseja enviar o conteúdo preenchido? Por favor, revise antes de prosseguir.\");
  834.             if (!confirmAction) {
  835.                 event.preventDefault();  // Impede o envio do formulário
  836.             } else {
  837.                 // Se necessário, envie o formulário ou execute outras ações aqui
  838.                 document.querySelector('form').submit();  // Exemplo, caso haja um formulário
  839.             }
  840.         }
  841.     </script>    
  842.     <div id=\"loadingGif\"  style=\"display:none;\">
  843.         <div class =\"espera\">
  844.             <img  src=\"{{ asset('./img/carrega.gif') }}\">
  845.         </div>  
  846.     </div>    
  847. {% endif %}
  848.  
  849.    
  850.     <!-- Include Select2 JS -->
  851.     <script src=\"https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/js/select2.min.js\"></script>
  852.     <script>
  853.         \$(document).ready(function() {
  854.             \$('#searchable-select').select2({
  855.                 placeholder: 'Pesquise',
  856.                 allowClear: true
  857.             });
  858.         });
  859.         \$(document).ready(function() {
  860.             \$('#searchable-select2').select2({
  861.                 placeholder: 'Pesquise',
  862.                 allowClear: true
  863.             });
  864.         });
  865.     </script> 
  866.     
  867.     <script>
  868.         function atualizarValores() {
  869.             // Obtém o elemento select
  870.             const selectElement = document.getElementById('meuSelect');
  871.             
  872.             // Obtém o valor e o texto personalizados da opção selecionada
  873.             const textoExibido = selectElement.options[selectElement.selectedIndex].getAttribute('data-texto');
  874.             const valor = selectElement.value;
  875.             // Atualiza o valor do input com o texto exibido e valor selecionado
  876.             const resultadoInput = document.getElementById('resultado');
  877.             resultadoInput.value = `\${textoExibido}`;
  878.         }
  879.         // Adiciona o evento para que a função seja chamada quando o select mudar
  880.         window.onload = function() {
  881.             const selectElement = document.getElementById('meuSelect');
  882.             selectElement.addEventListener('change', atualizarValores);
  883.             // Atualiza o input inicialmente para o valor padrão
  884.             atualizarValores();
  885.         };
  886.     </script>  
  887. <script>
  888.    function showDiv() {
  889.      document.getElementById('Login').style.display = \"none\";
  890.      document.getElementById('loadingGif').style.display = \"block\";
  891.      setTimeout(function() {
  892.        document.getElementById('loadingGif').style.display = \"none\";
  893.        document.getElementById('Login').style.display = \"block\";
  894.      },4000);
  895.       
  896.    }
  897.    function showDivshow() {
  898.      document.getElementById('botao').style.display = \"none\";
  899.      document.getElementById('img').style.display = \"none\";
  900.      document.getElementById('loading').style.display = \"block\";
  901.      setTimeout(function() {
  902.        document.getElementById('botao').style.display = \"block\";
  903.        document.getElementById('loading').style.display = \"none\";
  904.        document.getElementById('img').style.display = \"block\";
  905.      },4000);
  906.       
  907.    }
  908.    </script>    
  909.    <script>
  910.     document.getElementById(\"formPdf\").addEventListener(\"keydown\", function(e) {
  911.         if (e.key === \"Enter\" && e.target.tagName !== \"TEXTAREA\") {
  912.             e.preventDefault();
  913.             this.submit();
  914.         }
  915.     });
  916.     </script>
  917. {% endblock main %}
  918. {% block content_footer %}
  919. {% endblock content_footer %}
  920. ""index/qualidade.html.twig""/home/wwarqu/index/templates/index/qualidade.html.twig");
  921.     }
  922. }