]> git.llucax.com Git - mecon/meconlib.git/blobdiff - lib/MECON/Marco/MenuVertical.php
Se actualiza la version de la libreria externa utilizada para los pdf
[mecon/meconlib.git] / lib / MECON / Marco / MenuVertical.php
index af5c0986b5a67adaee94c6b799f2cd0621635a83..972cc831ca53f1a1d5e91af5a5615ad3431157cb 100644 (file)
@@ -57,26 +57,53 @@ class MECON_Marco_MenuVertical extends MECON_Marco_Menu {
         $this->_componentes = array ();
         $this->_armarArraySecciones($tmp);
         
-        $TABLA = new HTML_Table('width=160 align="left" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" border="0" height="1"');             
+        $TABLA = new HTML_Table('width=152 align="left" cellspacing="0"
+                                 cellpadding="0" border="0" height="1"
+                                 background="/MECON/images/general_titulo_menu.gif"');
         
-        $menu ='<img src="/MECON/images/general_carpeta0" border="0">&nbsp;<font face="Arial, Helvetica, sans-serif" size="2" color="#000000"><b>'.$titulo.'</b></font>';
-        $row = array ($menu);
-        $TABLA->addRow($row,'align="left" bgcolor="#FFFFFF" height="1"');        
+        $menutmp ='<font face="Arial, Helvetica, sans-serif" size="3"
+            color="#000000"><p>&nbsp;'.$titulo.'</p></font>';
+        $row = array ($menutmp);
+        $TABLA->addRow($row,'align="left"');        
         $TABLA->updateCellAttributes(0,0,'colspan="2"');
+        
+        $SEP = array('<IMG height="3" src="/MECON/images/general_linea_relieve.gif" width=36>',
+                     '<IMG height="3" src="/MECON/images/general_linea_relieve.gif" width=118>'
+                    );
+        $TABLA->addRow($SEP);
        
         foreach ($this->_componentesVertical as $comp) {
-            $row = array ('<img src="/MECON/images/general_carp" border="0">',' ');
-            $TABLA->addRow($row);        
-            $TABLA->addRow($comp,'align="left" bgcolor="#FFFFFF" height="1"');
-            $TABLA->updateColAttributes(0,'align="right" width="34"');
-            $TABLA->updateColAttributes(1,'align="left"');
+            $TABLA->addRow($comp,'align="left"  height="3"
+                    background="/MECON/images/general_fondo_gris"');
+            $TABLA->updateColAttributes(0,'align="right" width="34" height="3"');
+            $TABLA->updateColAttributes(1,'align="left"  width="118"');
+            $TABLA->addRow($SEP);
         }
         $TABLA->updateCellAttributes(0,0,'align="left"');
         $row = array ($TABLA->toHtml());
         
-        $this->_tabla->addRow($row,'width=160 align="left" bgcolor="#FFFFFF" valign="top"');
+        $this->_tabla->addRow($row,'width=152 align="left" bgcolor="#FFFFFF" valign="top"');
         
 //AGREGO EL CUERPO
+        $TABLA2 = new HTML_Table('width="600"align="right" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" border="0"');
+        $row = array();
+        $tmp = '';
+        //AGREGO EL MENU VERTICAL
+        if ($menu) {
+            if (is_object($menu)) {
+                if (method_exists($menu,'toHtml')) {
+                    $tmp.=$menu->toHtml();
+                }
+                else {
+                    trigger_error('El metodo no existe!', E_USER_WARNING);
+                }                
+            }
+            else {
+                $tmp.=$menu;
+            }
+            $row[] = $tmp;
+        }
+        //
         $tmp = '';
         //Agrego si corresponde el espacio al inicio
         if ($this->_configuracion['espacios']) {
@@ -102,11 +129,14 @@ class MECON_Marco_MenuVertical extends MECON_Marco_Menu {
             $tmp.='<BR>&nbsp;';
         }
         //
-        $row = array ($tmp);
-        $this->_tabla->setCellContents  (0,1,$row);
-        $this->_tabla->setCellAttributes(0,1,'align="center" bgcolor="#FFFFFF" valign="top"');
+        $row[] = $tmp;
+        $TABLA2->addRow($row, 'valign="top"');
+        $row = array ($TABLA2->toHtml());
+        $this->_tabla->setCellContents  (0,2,$row);
+        $this->_tabla->setCellAttributes(0,2,'align="center" bgcolor="#FFFFFF" valign="top"');
 
-        $this->_tabla->updateColAttributes (1,'width="600"');
+        $this->_tabla->updateColAttributes (1,'width="8" bgcolor="#FFFFFF"');
+        $this->_tabla->updateColAttributes (2,'width="600" bgcolor="#FFFFFF"');
 //
     }
     // -X2C