Revision 1575,
616 bytes
checked in by amuller, 14 years ago
(diff) |
Ticket #597 - Implentação, melhorias do modulo gerenciador de arquivos
|
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 | <?php |
---|
19 | $i_max = 40; |
---|
20 | $j_max = 20; |
---|
21 | |
---|
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"; |
---|
32 | } |
---|
33 | ?> |
---|
34 | </tr> |
---|
35 | <?php endfor; ?> |
---|
36 | </table> |
---|
37 | </body> |
---|
38 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.