<?php
   define('TABLE','filtro-relatorio-monitora'); 
   include_once('../../cadastros/modal_cadastro_usuario_pesquisa.php'); 
   include_once('../../../conexao.php');
   if (!isset($_SESSION)) {
          session_start();
      }
   $conn = new Conexao();
   ?>
<div id="dialog-form-filtro-relatorio-monitora" title="Relatório de Monitoramento de Usuário" style="display: none;">
   <div class="row">
      <div class="col-sm-12" style="padding-left: 10px;padding-right: 0px;margin-top: 10px;overflow: hidden;" id="controller-body-filtro-relatorio-monitora">
         <form id="form-filtro-relatorio-monitora"  action="view/relatorios/monitora/relatorio_monitoramento" method="POST" target="_blank">
            <input id="ser_status_form" name="ser_status_form" type="hidden">
            <div class="col-sm-12" style="padding-left: 0px;padding-right: 0px;">
               <fieldset style="margin-left: 0px;margin-bottom: 0px;margin-top: 0px;" class="lu-fieldset">
                  <legend style="margin-bottom: 0px;" class="lu-legend"> Período </legend>
                  <div style="display: flex">
                     <label class="col-form-label col-sm-1" style="padding-left: 0px;">De</label> 
                     <input type="date"  value="<?php echo date("Y-m-01");?>"  class="form-control  col-sm-4 " id="filtro-relatorio-monitora-dt-inicial" name="filtro-relatorio-monitora-dt-inicial" 
                        style="text-transform: uppercase;margin-bottom: 10px;text-align: center;padding-top: 3px;">
                     <label class="col-form-label col-sm-2" style="padding-left: 0px;text-align: center;">Até</label>  
                     <input type="date" value="<?php echo date("Y-m-t");?>" class="form-control col-sm-4" id="filtro-relatorio-monitora-dt-final" name="filtro-relatorio-monitora-dt-final"
                        style="text-transform: uppercase;margin-bottom: 10px;text-align: center;padding-top: 3px;">
                  </div>
               </fieldset>
               <fieldset style="margin-left: 0px;margin-bottom: 0px;margin-top: 6px;" class="lu-fieldset">
                  <legend style="margin-bottom: 0px;" class="lu-legend"> Descrição </legend>
                  <div style="display: flex">
                     
                        <div class="col-sm-12" style="padding-left: 0px;">   
                           <input type="text" class="form-control  " id="filtro-relatorio-monitora-descricao" name="filtro-relatorio-monitora-descricao" value="" maxlength="50" style="text-transform: uppercase;">
                        </div>
                     
                  </div>
               </fieldset>
               <fieldset style="margin-left: 0px;margin-bottom: 0px;margin-top: 6px;" class="lu-fieldset">
                  <legend style="margin-bottom: 0px;" class="lu-legend"> Usuário </legend>
                  <div style="display: flex">  
                     <input type="text" class="form-control lu-field-required col-sm-2 lu-in-dt-rad-search"  onblur="eventBlurPesquisarUsuarioID();" id="filtro-relatorio-monitora-usu_id" name="filtro-relatorio-monitora-usu_id" maxlength="7" style="text-transform: uppercase;margin-bottom: 10px;">
                     <button class="btn btn-dark lu-btn-form lu-bt-rad-search"
                        name="bt-pesquisa-default-filtro-relatorio-monitora-usu_id"
                        id="bt-pesquisa-default-filtro-relatorio-monitora-usu_id" type="button"      
                        onclick="checkSessionUsuario('filtro-relatorio-monitora-usu_id',
                        'dialog-form-filtro-relatorio-monitora',
                        'filtro-relatorio-monitora-usu_id-descricao')" style="min-width: 60px;margin-bottom: 5px;margin-right: 5px;padding-right: 8px;padding-left: 8px;">
                     <i class="fa fa-search lu-btn-icon-style" aria-hidden="true"></i> 
                     </button>	
                     <input type="text" class="form-control col-sm-8" readonly id="filtro-relatorio-monitora-usu_id-descricao" name="filtro-relatorio-monitora-usu_id-descricao" style="text-transform: uppercase;margin-bottom: 10px;">
                  </div>
               </fieldset>
               <button type="submit"  style="margin-top: 10px;padding-top: 10px!important;padding-left: 10px !important;padding-right: 10px!important;padding-bottom: 10px!important;" class="btn btn-success btn-fixed-height font-weight-bold px-2 px-lg-5 mr-2">
                  <?php include_once('../../../assets/svg-include/svg-report.php');?>
                  <span class="d-none d-md-inline" style="position: relative;top: -8px;">Visualizar</span>
               </button>
            </div>
         </form>
      </div>
   </div>
</div>
<script type="text/javascript" src="assets/js-consulta-generica/consulta-generica-usuario.js"></script>
<script type="text/javascript" src="assets/js-controller-forms/relatorio/monitora/js-controller-form-filtro-relatorio-monitora.js"></script>

