<div class="table-responsive">
    <table class="table table-striped table-bordered">
        <thead>
            <tr>
                <th width="10%">DEV Nº</th>
                <th>FECHA</th>
                <th>VENDEDOR</th>
                <th>REFERENCIA</th>
                <th>NOMBRE</th>
                <th>CANTIDAD</th>
                <th>PRECIO</th>
                <th width="2%"></th>
            </tr>
        </thead>
        <tbody  class="buscar"> 
            <?php 
            $clie_id=$_GET['clie_id'];
            $registros=mysqli_query($con,"SELECT * FROM ventas v, devolucion d where ven_id=ventas_ven_id and Cliente_clie_id='$clie_id' order by ven_n_venta desc  ") or die(mysqli_error($con));
                while ($reg=mysqli_fetch_array($registros))
                {  
                    $ven_id=$reg['ven_id'];
                    $dev_n_dev=$reg['dev_n_dev'];
                    $dev_fecha=$reg['dev_fecha'];
                    $usuario=$reg['vendedor'];
            ?>
            <tr>
                <td><?php  echo $dev_n_dev; ?></td>
                <td><?php  echo $dev_fecha; ?></td>
                <td>
                    <?php  
                    $sql_tar=mysqli_query($con, "select *  from usuario  where usu_id='$usuario'");
                    $bo=mysqli_fetch_array($sql_tar);
                    echo $usu_n=$bo['usu_nombre'];?>
                </td>
                <td><?php  echo $reg['dev_referencia']; ?></td>
                <td><?php echo $reg['dev_nombre']; ?></td>
                <td><?php echo $reg['dev_cantidad']; ?></td>
                <td><?php  echo number_format($reg['dev_precio'],0); ?></td>
                <td><a href="libraries/pdf/pdf_devoluciones/devolucion.php?dev_id=<?php echo $reg['dev_id'];?>&&ven_id=<?php echo $reg['ventas_ven_id'];?>" target="_blank" class="btn btn-success btn-xs" ><span class="btn-icon-only icon-print"></span></a></td>
            </tr>
            <?php }?>
        </tbody>
    </table>
</div> <!-- /widget -->