Bueno, os pego aquí el código:
<?php
require_once 'load_config.php';
require(DIR_PROYECTO_LIB . "seguridad.php");
require_once(CAPA_BBDD);
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="<?php echo SERVER_HTTP_PROYECTO_CSS; ?>estilostienda.css"/>
<title>Puntos entregados desde la última liquidación</title>
</head>
<body>
<h1>Puntos entregados desde la última liquidación</h1>
<?php
$consulta = "select ID, fecha, cliente, compra, puntos from cargas where tendero=" . $_SESSION["ID_tend"] . " order by ID desc";
BBDD_Consulta($consulta);
echo mysql_error();
echo "<table class="tabla">n";
echo "t<tr>n";
echo "tt<th>ID</th>n";
echo "tt<th>Fecha</th>n";
echo "tt<th>Cliente</th>n";
echo "tt<th>Compra</th>n";
echo "tt<th>Puntos</th>n";
echo "tt<th>Devolución</th>n";
echo "t</tr>n";
while ($registro = BBDD_LeeRegistro()) {
echo "t<tr>n";
foreach ($registro as $campo)
echo "tt<td>$campo</td>n";
echo "tt<td><a href="#" onClick="cargaXML('devolucion.php?devolucion=" . $registro["ID"] . "','div_central')">dev.</a></td>n";
echo "t</tr>n";
}
echo "</table>n";
?>
</body>
</html>
No hay comentarios:
Publicar un comentario