]> git.llucax.com Git - mecon/meconlib.git/blob - test/HTML/prueba_tabla.php
Agrego imagenes estandares para las secciones de samurai
[mecon/meconlib.git] / test / HTML / 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     $tmp = ini_get('include_path');
16     ini_set('include_path', "/home/mmarrese/public_html/HTML/php:$tmp");
17     require_once 'Tabla.php';
18     $TABLA2 = new MECON_HTML_Tabla ('width="500" align="right"');
19     $row =  array ('R0C0','R1C1','R1C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');
20     $TABLA2->addRow($row,'cabecera'); 
21     $row =  array ('R1C0','R1C1','R1C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');    
22     $TABLA2->addRow($row);
23     $row =  array ('R2C0','R2C1','R2C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');
24     $TABLA2->addRow($row);
25     $row =  array ('R3C0','R3C1','R3C2','R3C3','R3C4','R3C5','R3C6','R3C7','R3C8','R3C9');
26     $TABLA2->addRow($row);
27     $tohtml = $TABLA2->toHtml();
28    
29     print $tohtml."<BR><BR><BR>";
30     echo 'DEPRECATED <BR>';
31     $TABLA = new MECON_HTML_Tabla ('width="500" align="right"');
32     $row =  array ('R0C0','R1C1','R1C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');
33     $TABLA->agregarFilaCabecera($row); 
34     $row =  array ('R1C0','R1C1','R1C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');    
35     $TABLA->agregarFila($row);
36     $row =  array ('R2C0','R2C1','R2C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');
37     $TABLA->agregarFila($row);
38     $row =  array ('R3C0','R3C1','R3C2','R3C3','R3C4','R3C5','R3C6','R3C7','R3C8','R3C9');
39     $TABLA->agregarFila($row);
40
41     $TABLA->colSpan(0, 0,10);
42     $TABLA->rowSpan(1, 0,3);       
43     $TABLA->rowSpan(1, 1,3);    
44     $TABLA->colSpan(1, 2,8);
45     $TABLA->colSpan(2, 2,2);
46     $TABLA->colSpan(2, 4,2);
47     $TABLA->colSpan(2, 6,2);
48     $TABLA->colSpan(2, 8,2);
49     $TABLA->setColTitulo(2);    
50     $tohtml = $TABLA->toHtml();
51    
52     print $tohtml."<BR><BR><BR>";
53 ///////////////////////////////////////////////////////////////////////////////////////////    
54     echo 'PRECATED<BR>';
55     $TABLA2 = new MECON_HTML_Tabla ('width="500" align="right"');
56     $row =  array ('R0C0','R1C1','R1C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');
57     $TABLA2->addRow($row,'cabecera colspan=10'); 
58     $row =  array ('R1C0','R1C1','R1C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');    
59     $TABLA2->addRow($row);
60     $row =  array ('R2C0','R2C1','R2C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');
61     $TABLA2->addRow($row);
62     $row =  array ('R3C0','R3C1','R3C2','R3C3','R3C4','R3C5','R3C6','R3C7','R3C8','R3C9');
63     $TABLA2->addRow($row);
64
65 $tmp = array ('colspan'=>2);
66
67     $TABLA2->updateCellAttributes(1, 0,'rowspan=3');
68     $TABLA2->updateCellAttributes(1, 1,'rowspan=3');    
69     $TABLA2->updateCellAttributes(1, 2,'colspan=8');
70     $TABLA2->updateCellAttributes(2, 2,'colspan=2');
71     $TABLA2->updateCellAttributes(2, 4,'colspan=2');
72     $TABLA2->updateCellAttributes(2, 6,$tmp);
73     $TABLA2->updateCellAttributes(2, 8,'colspan=2');
74     $TABLA2->updateColAttributes(2,'titulo');    
75
76
77     $tohtml = $TABLA2->toHtml();
78     
79     print $tohtml;
80 ?>
81
82
83
84 </td>
85 </tr>
86 </table>
87 </body>
88 </html>
89
90