]> git.llucax.com Git - mecon/meconlib.git/blob - HTML/test/prueba_tabla.php
(no commit message)
[mecon/meconlib.git] / HTML / test / prueba_tabla.php
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
4 <title>
5 </title>
6 <link rel="StyleSheet" href="./../php/Tabla/tabla_estilos.css">
7 </head>
8 <body bgcolor="#FFFFFF" color="#000000" align="center">
9 <table width="760" align="center">
10 <tr>
11 <td>
12
13 <?php
14
15     require_once 'HTML/Tabla.php';
16
17     $TABLA = new Tabla ('width="500" align="right"');
18
19     $row =  array ('R0C0','R1C1','R1C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');
20     
21     $TABLA->agregarFilaCabecera($row); 
22
23     $row =  array ('R1C0','R1C1','R1C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');    
24     $TABLA->agregarFila($row);
25
26     $row =  array ('R2C0','R2C1','R2C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');
27     $TABLA->agregarFila($row);
28
29     $row =  array ('R3C0','R3C1','R3C2','R3C3','R3C4','R3C5','R3C6','R3C7','R3C8','R3C9');
30     $TABLA->agregarFila($row);
31
32     $TABLA->colSpan(0, 0,10);
33     $TABLA->rowSpan(1, 0,3);       
34     $TABLA->rowSpan(1, 1,3);    
35     $TABLA->colSpan(1, 2,8);
36     $TABLA->colSpan(2, 2,2);
37     $TABLA->colSpan(2, 4,2);
38     $TABLA->colSpan(2, 6,2);
39     $TABLA->colSpan(2, 8,2);
40
41     $TABLA->setColTitulo(2);    
42     
43     $tohtml = $TABLA->toHtml();
44     
45     print $tohtml;
46 ?>
47
48
49
50 </td>
51 </tr>
52 </table>
53 </body>
54 </html>
55
56