<?php
include_once("../header.php");
include_once("../php/config.php");



?>
<style>
    .titulos{
        font-family: verdana;
        font-size: 12px;
    }
</style>
<div class="container-fluid">
    <!-- Breadcrumbs-->
          

               
   <form id="frm" name="frm" action="" method="post">           
    <div class="row">
       
        <div class="col-md-12">
            <h3 class="text-success"><i class="fa fa-calendar"></i> Operaciones grabadas</h3>
            <hr>
                 
         <div class="row">
             <div class="col-md-1"><b>Fechas</b></div>
             <div class="col-md-2"><input type="date" id="fecha1" class="form-control"></div>
             <div class="col-md-2"><input type="date" id="fecha2" class="form-control"></div>
         </div>
            
          <br>  
            
      <div class="row">
          <div class="col-md-1"></div>
          <div class="col-md-2">
               <a href="#" onClick="reporte()" class="btn btn-success"><i class="fa fa-invoice"></i>Generar Reporte</a>
          </div>
      </div>
       
        </div>
                    
    </div>
    </form>     
            
            
</div>
          


          
</div>
    </div>



        	<!---Modal mora-->
	<div class="modal" id="modalMora" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
      <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">Ajuste de mora manual</h5>
            <button class="close" type="button" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">×</span>
            </button>
          </div>
          <div class="modal-body">
              <div class="row">
                  <label for="monto_mora" class="col-sm-4 col-form-label" >Monto</label>
                  <div class="col-sm-8">
                      <input autocomplete="off" type="number"  class="form-control mb-2" id="monto_mora" name="monto_mora" value="">
                  </div>
              </div>
          </div>
          <div class="modal-footer">
          <button  onClick="ajuste_mora()" class="btn btn-warning"  data-dismiss="modal"><i class="fa fa-check"></i>Aceptar</button>
           <button class="btn btn-default"  data-dismiss="modal"><i class="fa fa-home"></i>Salir</button>
          </div>
        </div>
      </div>
    </div>
        
        
	<?php
	include_once("../footer.php");
	?>
            
                <script>    
                    $("#fecha1").val(hoySql);
                    $("#fecha2").val(hoySql);
                    function reporte(){
                       
                      
                        var fecha1 = $("#fecha1").val();
                        var fecha2 = $("#fecha2").val();
                        
                        var param="";
    
                        param+="&fecha1="+fecha1;
                        param+="&fecha2="+fecha2;
                        
                        window.open('rptDiarioVenta.php?'+param,'_blank', 'toolbar=no,scrollbars=no,resizable=no,top=500,left=500,width=800,height=700');
                        
                        
                    }
                </script>