Agregada instruccion para reiniciar tablas de horarios.
[CLab.git] / include / dompdf / www / test / long_table.php
blobbb7c43b26cfe925c6330a3d562aec53182bc7c65
1 <html>
2 <style>
3 table { margin: auto; }
4 td {
5 font-size: 0.8em;
6 padding: 4pt;
7 text-align: center;
8 font-family: sans-serif;
10 </style>
11 <body>
12 <table>
13 <thead>
14 <tr>
15 <td colspan="20">Header</td>
16 </tr>
17 </thead>
18 <?php
19 $i_max = 40;
20 $j_max = 20;
22 for ( $i = 1; $i <= $i_max; $i++): ?>
23 <tr>
24 <?php
25 for ( $j = 1; $j <= $j_max; $j++) {
26 $r = (int)(255*$i / $i_max);
27 $b = (int)(255*$j / $j_max);
28 $g = (int)(255*($i + $j)/($i_max + $j_max));
29 $c = "black;";
30 $bg = "rgb($r,$g,$b)";
31 echo "<td style=\"color: $c; background-color: $bg;\">" . ($i * $j) . "</td>\n";
34 </tr>
35 <?php endfor; ?>
36 </table>
37 </body>
38 </html>