<?php
session_start();
date_default_timezone_set('America/Lima');
$y=date('Y');
$m=date('m');
$d=date('d');

$y1 = $y - 1;


$fec1="$d-$m-$y1";
$fec2="$d-$m-$y";


?>



<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" id="filtroregistros">
						
						<form id="for_fil_serpag" action="POST">
														
				<div class="row">
				
				<div class=" col-lg-4 col-sm-6 col-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_serpag_fec1" type="text" id="txt_fil_serpag_fec1" value="<?php echo $fec1?>" class="form-control" >
                  </div>
                </div>
				
				<div class=" col-lg-4 col-sm-6 col-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_serpag_fec2" type="text" id="txt_fil_serpag_fec2" value="<?php echo $fec2 ?>" class="form-control" >
                  </div>
                </div>

					
							<div  class="col-lg-2 col-sm-5 col-6" style="display: inline-block; white-space: nowrap;padding-top:30px;">								
									<span onClick="serviciopago_tabla()" style="cursor:pointer" class="btn btn-primary "><i class="fas fa-search"></i></span>									
									<span onClick="serviciopago_filtro()" style="cursor:pointer" class="btn btn-default">RESTABLECER</span>																
							</div> 
							
							</div> 
							
						</form>	
						
					</div>
				
				
				
				
				</div>
			</div>
		</div>
	</div>
	</div>
</section>

<script type="text/javascript">


	
		
	$(function(){

	serviciopago_tabla();
		
	$('#txt_fil_serpag_fec1, #txt_fil_serpag_fec2').datepicker({
			format: 'dd-mm-yyyy',
			autoclose:true
		}).on('changeDate', function(e){
			
		}); 
		
	
	
	

});	
</script>
