<?php

//ini_set('display_errors',1);



session_start();

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

require_once ("cCliente.php");

$oCliente = new cCliente();



$dts1=$oCliente->filtrarvehiculos($_POST['cli_id']);

$num_rows= mysqli_num_rows($dts1);



?>





		<div class="table-responsive">		

				<div class="col-lg-12 col-md-12 col-xs-12 " >

				

            <table id="tabla_clientevehiculos" class="table table-bordered table-striped ">

                <thead>

                    <tr>

						<th>&nbsp;</th>

						<th>PLACA</th>

						<th>MARCA</th>

                        <th>MODELO</th>                       

                        <th>CHASIS/VIN</th>                       

                        <th>MOTOR</th>                       

                        <th>CAJA</th>                       

                    </tr>

                </thead>

                <?php

                if($num_rows>0){

                ?>

                <tbody>

                    <?php

                        while($dt1 = mysqli_fetch_array($dts1)){			

					?>

                            <tr>

								<td nowrap >    

								<?php 

								#if($_SESSION['usuariogrupo_id']=='6'){

								?>

								<!-- <span>SIN PERMISOS</span>

								--->

								<?php 

								#}else{?>



	<button class="btn btn-sm btn-primary" onClick="clientevehi_form('editarvehiculo','<?php echo $dt1['tb_clientevehiculo_id']?>','<?php echo $_POST['cli_id']; ?>')" ><i class="fas fa-edit"></i></button>

	<button class="btn btn-sm btn-primary" onClick="eliminar_clientevehiculo('<?php echo $dt1['tb_clientevehiculo_id']?>')" ><i class="fas fa-trash"></i></button>

	

							

							<?php# }?>

								</td>

								

                                <td nowrap ><?php echo $dt1['tb_clientevehiculo_pla']?></td>

                                <td nowrap ><?php echo $dt1['tb_clientevehiculo_mar']?></td>

                                <td nowrap ><?php echo $dt1['tb_clientevehiculo_mod']?></td>

                                <td nowrap ><?php echo $dt1['tb_clientevehiculo_cha']?></td>

                                <td nowrap ><?php echo $dt1['tb_clientevehiculo_mot']?></td>

                                <td nowrap ><?php echo $dt1['tb_clientevehiculo_caj']?></td>

                                

                            </tr>

                    <?php

                    }

                    mysqli_free_result($dts1);

                    ?>

                    </tbody>

                <?php }?>

            </table>

          </div>

        </div>

       

	  



 <script type="text/javascript">

  $(function() {  

   

  }); 

</script> 