<?php
require_once ("../../config/Cado.php");

require_once ("../canchapos/cCanchapos.php");
$oCanchapos = new cCanchapos();

$datos=$oCanchapos->filtrar(1);
$num_rows= mysqli_num_rows($datos);

?>



<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="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="padding:5px;">
	
        
		
			<div class="col-lg-12 col-sm-12 col-12">
			<div class="row">
          <?php
if($num_rows>0){

   
    while($fila = mysqli_fetch_array($datos)){
    ?>
       
	   
	   
	   <div class="col-lg-2 col-sm-3 col-6">
	   
		  <div class="card card-widget widget-user">

				<div class="widget-user-header text-white" style="background: url('../../imagenes/img_cancha.jpg') center center;">
				<h3 class="widget-user-username text-left"><?php echo $fila['tb_cancha_nom']?></h3>
				<h5 class="widget-user-desc text-left d-none"><?php echo $fila['tb_cancha_id']?></h5>
				
				<span  class=" btn btn-sm btn-danger btn-flat widget-user-desc " onClick="canchapos_form_vista('ver','<?php echo $fila['tb_cancha_id']?>')"  > <i class="fas fa-eye"></i></span>
			
				</div>
			</div>
	   
		</div>  
	   
	   
	  
          
              
           

    <?php
        }
        mysqli_free_result($datos);
		}
    ?>
	</div>
	</div>
	
   
   
   
	  
	  
    </div>
  </div>
</div>
</div>
</div>
</section>






