-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimprimir.php
53 lines (48 loc) · 1.53 KB
/
imprimir.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
include "config.php"; //Configuraciones y recursos
?>
<!DOCTYPE html>
<html>
<head>
<title>IMPRIMIR - <?php echo $negocio;?></title>
</head>
<body>
<div class="ribbon w3-red w3-card-4" style="position: fixed; padding: 20px 0; right: -200px; top: 55px; width: 550px; left: unset;">EN DESARROLLO</div>
<div style="width: 595px !important; height: 842px !important; overflow: hidden; display: block; margin: auto; background: white;">
<div class="w3-row w3-center">
<?php
if ($_SERVER["REQUEST_METHOD"] == "GET") {
//Obtener todas las variables y tabla
//Imprimir encabezado con nombre de tabla
echo "<h3>Registro # de tabla X</h3>";
//Imprimir tabla con registro(s)
echo "<table class='w3-table-all w3-centered'>";
echo "<tr class='w3-light-grey'>";
echo "<th>COLUMNAS</th>";
echo "<th>COLUMNAS</th>";
echo "<th>COLUMNAS</th>";
echo "<th>COLUMNAS</th>";
echo "</tr>";
for($i=0; $i<10; $i++){
echo "<tr>";
echo "<td>REGISTROS</td>";
echo "<td>REGISTROS</td>";
echo "<td>REGISTROS</td>";
echo "<td>REGISTROS</td>";
echo "</tr>";
}
echo "<tr>";
echo "<td colspan='2'></td>";
echo "<td class='w3-right-align'>TOTAL:</td>";
echo "<td class='w3-left-align'>NNN</td>";
echo "</tr>";
echo "</table>";
//Agregar boton especial para imprimir (navegador)
}else{
redireccionar("");
}
?>
</div>
</div>
</body>
</html>