]> git.llucax.com Git - mecon/meconlib.git/blobdiff - HTML/test/prueba_tabla.php
- Se agrego la clase mdate que hereda de HTML_QuickForm_date.
[mecon/meconlib.git] / HTML / test / prueba_tabla.php
index 2c3bc5fb82dd22faf05d23c4957d2bc503de7d8b..737130b6b70b2280661d857f3e11604ab70c511d 100644 (file)
 
 <?php
 
 
 <?php
 
-    require_once 'HTML/Tabla.php';
-
+    $tmp = ini_get('include_path');
+    ini_set('include_path', "/home/mmarrese/public_html/HTML/php:$tmp");
+    require_once 'Tabla.php';
+    $TABLA2 = new Tabla ('width="500" align="right"');
+    $row =  array ('R0C0','R1C1','R1C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');
+    $TABLA2->addRow($row,'cabecera'); 
+    $row =  array ('R1C0','R1C1','R1C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');    
+    $TABLA2->addRow($row);
+    $row =  array ('R2C0','R2C1','R2C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');
+    $TABLA2->addRow($row);
+    $row =  array ('R3C0','R3C1','R3C2','R3C3','R3C4','R3C5','R3C6','R3C7','R3C8','R3C9');
+    $TABLA2->addRow($row);
+    $tohtml = $TABLA2->toHtml();
+   
+    print $tohtml."<BR><BR><BR>";
+    echo 'DEPRECATED <BR>';
     $TABLA = new Tabla ('width="500" align="right"');
     $TABLA = new Tabla ('width="500" align="right"');
-
     $row =  array ('R0C0','R1C1','R1C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');
     $row =  array ('R0C0','R1C1','R1C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');
-    
     $TABLA->agregarFilaCabecera($row); 
     $TABLA->agregarFilaCabecera($row); 
-
     $row =  array ('R1C0','R1C1','R1C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');    
     $TABLA->agregarFila($row);
     $row =  array ('R1C0','R1C1','R1C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');    
     $TABLA->agregarFila($row);
-
     $row =  array ('R2C0','R2C1','R2C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');
     $TABLA->agregarFila($row);
     $row =  array ('R2C0','R2C1','R2C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');
     $TABLA->agregarFila($row);
-
     $row =  array ('R3C0','R3C1','R3C2','R3C3','R3C4','R3C5','R3C6','R3C7','R3C8','R3C9');
     $TABLA->agregarFila($row);
 
     $row =  array ('R3C0','R3C1','R3C2','R3C3','R3C4','R3C5','R3C6','R3C7','R3C8','R3C9');
     $TABLA->agregarFila($row);
 
     $TABLA->colSpan(2, 4,2);
     $TABLA->colSpan(2, 6,2);
     $TABLA->colSpan(2, 8,2);
     $TABLA->colSpan(2, 4,2);
     $TABLA->colSpan(2, 6,2);
     $TABLA->colSpan(2, 8,2);
-
     $TABLA->setColTitulo(2);    
     $TABLA->setColTitulo(2);    
-    
     $tohtml = $TABLA->toHtml();
     $tohtml = $TABLA->toHtml();
+   
+    print $tohtml."<BR><BR><BR>";
+///////////////////////////////////////////////////////////////////////////////////////////    
+    echo 'PRECATED<BR>';
+    $TABLA2 = new Tabla ('width="500" align="right"');
+    $row =  array ('R0C0','R1C1','R1C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');
+    $TABLA2->addRow($row,'cabecera colspan=10'); 
+    $row =  array ('R1C0','R1C1','R1C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');    
+    $TABLA2->addRow($row);
+    $row =  array ('R2C0','R2C1','R2C2','R2C3','R2C4','R2C5','R2C6','R2C7','R2C8','R2C9');
+    $TABLA2->addRow($row);
+    $row =  array ('R3C0','R3C1','R3C2','R3C3','R3C4','R3C5','R3C6','R3C7','R3C8','R3C9');
+    $TABLA2->addRow($row);
+
+$tmp = array ('colspan'=>2);
+
+    $TABLA2->updateCellAttributes(1, 0,'rowspan=3');
+    $TABLA2->updateCellAttributes(1, 1,'rowspan=3');    
+    $TABLA2->updateCellAttributes(1, 2,'colspan=8');
+    $TABLA2->updateCellAttributes(2, 2,'colspan=2');
+    $TABLA2->updateCellAttributes(2, 4,'colspan=2');
+    $TABLA2->updateCellAttributes(2, 6,$tmp);
+    $TABLA2->updateCellAttributes(2, 8,'colspan=2');
+    $TABLA2->updateColAttributes(2,'titulo');    
+
+
+    $tohtml = $TABLA2->toHtml();
     
     print $tohtml;
 ?>
     
     print $tohtml;
 ?>