sistema de desayuno 2019 actualizado
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
<style>
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
table, th, td {
|
||||
border: 1px solid black;
|
||||
}
|
||||
th,td {
|
||||
text-align: center;
|
||||
}
|
||||
th {
|
||||
height: 50px;
|
||||
}
|
||||
</style>
|
||||
<?php
|
||||
//header('Content-type: application/vnd.ms-excel'); //parece no tener uso
|
||||
header("Content-Disposition: attachment; filename=reporte.xls"); //convierte a formato xml y nombra al archivo
|
||||
header("Pragma: no-cache");
|
||||
header("Expires: 0");
|
||||
include ("../sql/conexion.php");
|
||||
$link = Conectarse();
|
||||
$query = "call st_trae_pagados();";
|
||||
$resultado = mysqli_query($link, $query);
|
||||
echo "<html>";
|
||||
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf8\">";
|
||||
echo "<body style='font-family: Sans-Serif;'>";
|
||||
echo '<center>';
|
||||
echo "<table>";
|
||||
echo "<tr>";
|
||||
echo "<th>".utf8_decode("Folio")."</th>";
|
||||
echo "<th>".utf8_decode("No. de cuenta")."</th>";
|
||||
echo "<th>".utf8_decode("Nombre")."</th>";
|
||||
echo "<th>".utf8_decode("Sistema")."</th>";
|
||||
echo "<th>".utf8_decode("Año de ingreso")."</th>";
|
||||
echo "<th>".utf8_decode("Teléfono de casa")."</th>";
|
||||
echo "<th>".utf8_decode("Celular")."</th>";
|
||||
echo "<th>".utf8_decode("Email")."</th>";
|
||||
echo "<th>".utf8_decode("Pago")."</th>";
|
||||
echo "<th>".utf8_decode("Mesa")."</th>";
|
||||
echo "<th>".utf8_decode("Carrera")."</th>";
|
||||
echo "<th>".utf8_decode("Desde")."</th>";
|
||||
echo "<th>".utf8_decode("Desea recibir info.")."</th>";
|
||||
echo "<th>".utf8_decode("Fecha de registro")."</th>";
|
||||
echo "</tr>";
|
||||
while ($row = mysqli_fetch_array($resultado)) {
|
||||
echo "<tr>";
|
||||
echo "<td>" . $row['id_registro'] . "</td>";
|
||||
echo "<td>" . $row['id_cuenta'] . "</td>";
|
||||
echo "<td>" . $row['nombre_completo'] . "</td>";
|
||||
echo "<td>" . $row['sistema'] . "</td>";
|
||||
echo "<td>" . $row['generacion'] . "</td>";
|
||||
echo "<td>" . $row['telefono_casa'] . "</td>";
|
||||
echo "<td>" . $row['celular'] . "</td>";
|
||||
echo "<td>" . $row['correo'] . "</td>";
|
||||
echo "<td>" . $row['pago'] . "</td>";
|
||||
echo "<td>" . $row['mesa'] . "</td>";
|
||||
echo "<td>" . $row['carrera'] . "</td>";
|
||||
echo "<td>" . $row['origen'] . "</td>";
|
||||
echo "<td>" . $row['recibir_informacion'] . "</td>";
|
||||
echo "<td>" . $row['fecha_registro'] . "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
echo "</center>";
|
||||
echo "</body>";
|
||||
echo "</html>";
|
||||
Reference in New Issue
Block a user