

<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Bootstrap 4. Tablas</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
</head>
<body>
<div class="container">
		<div class="row">
			<div class="col">


<?php

date_default_timezone_set("America/Lima"); 

include'conexion1.php';


$conectar = mysqli_connect($servidor,$nombre,$clave,$base);

$sql="SELECT * from nota_legal";

$result=mysqli_query($conectar,$sql);
?>




<table class="table table-striped table-bordered table-hover">
<thead>
<tr class="table-info">
<td>ID</td>
<td>FECHA_REGISTRO</td>
<td>HORA_REGISTRO</td>
<td>TIPO_COMPROBANTE_DESP</td>
<td>CLAVEACCESO</td>
<td>SERIE_DESP</td>
<td>SECUENCIAL_DESP</td>
<td>TIPO_COMPROBANTE_ANT</td>
<td>SERIE_ANT</td>
<td>SECUENCIAL_ANT</td>
<td>DNI</td>
<td>NOMBRE</td>
<td>DIRECCION</td>
<td>DESCRIPCION</td>
<td>PRECIO_UNITARIO</td>
<td>IGV</td>
<td>SUB_TOTAL</td>
<td>NOTA</td>
<td>JUSTIFICACION</td>
</tr>
</thead>
    <tbody>

<?php

while($mostrar=mysqli_fetch_array($result)){

?>


<tr>

    <td><?php  echo $mostrar["ID"] ?></td>
    <td><?php  echo $mostrar["FECHA_REGISTRO"] ?></td>
    <td><?php  echo $mostrar["HORA_REGISTRO"] ?></td>
    <td><?php  echo $mostrar["TIPO_COMPROBANTE_DESP"] ?></td>
    <td><?php  echo $mostrar["CLAVEACCESO"] ?></td>
    <td><?php  echo $mostrar["SERIE_DESP"] ?></td>
    <td><?php  echo $mostrar["SECUENCIAL_DESP"] ?></td>
    <td><?php  echo $mostrar["TIPO_COMPROBANTE_ANT"] ?></td>
    <td><?php  echo $mostrar["SERIE_ANT"] ?></td>
    <td><?php  echo $mostrar["SECUENCIAL_ANT"] ?></td>
    <td><?php  echo $mostrar["DNI"] ?></td>
    <td><?php  echo $mostrar["NOMBRE"] ?></td>
    <td><?php  echo $mostrar["DIRECCION"] ?></td>
    <td><?php  echo $mostrar["DESCRIPCION"] ?></td>
    <td><?php  echo $mostrar["PRECIO_UNITARIO"] ?></td>
    <td><?php  echo $mostrar["IGV"] ?></td>
    <td><?php  echo $mostrar["SUB_TOTAL"] ?></td>
    <td><?php  echo $mostrar["NOTA"] ?></td>
    <td><?php  echo $mostrar["JUSTIFICACION"] ?></td>
    
</tr>


<?php


}


?>
</tbody>
</table>
</div>
		</div>
    <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
</body>
</html>

