Revision 3019,
715 bytes
checked in by amuller, 14 years ago
(diff) |
Ticket #1135 - Corrigindo CSS e adicionando filemanager
|
Line | |
---|
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;
|
---|
9 | }
|
---|
10 | </style>
|
---|
11 | <body>
|
---|
12 | <table>
|
---|
13 | <thead>
|
---|
14 | <tr>
|
---|
15 | <td colspan="20">Header</td>
|
---|
16 | </tr>
|
---|
17 | </thead>
|
---|
18 | <tfoot>
|
---|
19 | <tr>
|
---|
20 | <td colspan="20">Footer</td>
|
---|
21 | </tr>
|
---|
22 | </tfoot>
|
---|
23 | <?php
|
---|
24 | $i_max = 40;
|
---|
25 | $j_max = 20;
|
---|
26 |
|
---|
27 | for ( $i = 1; $i <= $i_max; $i++): ?>
|
---|
28 | <tr>
|
---|
29 | <?php
|
---|
30 | for ( $j = 1; $j <= $j_max; $j++) {
|
---|
31 | $r = (int)(255*$i / $i_max);
|
---|
32 | $b = (int)(255*$j / $j_max);
|
---|
33 | $g = (int)(255*($i + $j)/($i_max + $j_max));
|
---|
34 | $c = "black;";
|
---|
35 | $bg = "rgb($r,$g,$b)";
|
---|
36 | echo "<td style=\"color: $c; background-color: $bg;\">" . ($i * $j) . "</td>\n";
|
---|
37 | }
|
---|
38 | ?>
|
---|
39 | </tr>
|
---|
40 | <?php endfor; ?>
|
---|
41 | </table>
|
---|
42 | </body>
|
---|
43 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.