<?php
date_default_timezone_set('America/Lima');
session_start();
require_once ("../../config/Cado.php");
$y=date('Y');
$m=date('m');
$d=date('d');
$fec1="$d-$m-$y";
//$d=ultimoDia($m,$y);
$fec2="$d-$m-$y";
//$fec2="$d-$m-$y";
//$caj_id=$_SESSION['caja_id'];
$caj_id=1;
?>
<section class="content">
	<div class="container-fluid">
	<div class="row">
	    <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
		    <div class="card">
		        <div class="card-header">
    		<div class="row">
			
						<form id="for_fil_tal" action="POST">
							<input type="hidden" id="hdd_fil_cli_id" name="hdd_fil_cli_id" />
							 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
							<div class="row">
							
				<div class=" col-lg-6 col-xs-6 form-group">
                  <label>Fecha 1:</label>
                  <div class="input-group">
                    <div class="input-group-prepend">
                      <span class="input-group-text"><i class="far fa-calendar-alt"></i></span>
                    </div>
                    <input name="txt_fil_caj_fec1" type="text" id="txt_fil_caj_fec1" value="<?php echo $fec1;?>" class="form-control" >
                  </div>
                </div>
				
				<div class=" col-lg-6 col-xs-6 form-group">
                  <label>Fecha 2:</label>
                  <div class="input-group">
                    <div class="input-group-prepend">
                      <span class="input-group-text"><i class="far fa-calendar-alt"></i></span>
                    </div>
                    <input name="txt_fil_caj_fec2" type="text" id="txt_fil_caj_fec2" value="<?php echo $fec2;?>"  class="form-control" >
                  </div>
                </div>
			</div>
			</div>
						</form>
						<div class="col-lg-3 col-xs-12" style="padding-top: 30px;"> 
							<button href="#" onClick="tipocambio_tabla()" class="btn btn-primary"><i class="fas fa-search"></i></button>
							<button href="#" onClick="tipocambio_filtro()" class="btn btn-default">Restablecer</button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	</div>
</section>
<script type="text/javascript">
	$(function(){
		
$('#txt_fil_caj_fec1, #txt_fil_caj_fec2').datepicker({
    format: 'dd-mm-yyyy',
    autoclose:true
}).on('changeDate', function(e){
    //tipocambio_tabla();
}); 
	});	
</script>