//
#require_once 'PEAR.php';
-
+require_once 'HTML/Table.php';
// +X2C includes
require_once 'MECON/Marco/MenuHorizontal.php';
else {
$row = array ('<font face="Arial, Helvetica, sans-serif" size="3" color="#FFFFFF"><b>'.$this->_seccionSeleccionada->_nombre.'</b></font>');
$this->_tabla->addRow($row,'align="left" bgcolor="#336699" colspan="'.$colspan.'"');
-
+
+ if ($body['menuVertical']) {
+ $cols = 2;
+ }
+ else {
+ $cols = 1;
+ }
+
+ $tabla = new HTML_Table (array('width' => '100%', 'border' => 0, 'celspacing' => 0, 'celpadding' => 0));
//Agrego si corresponde el espacio al inicio
if ($body['espacios']) {
- $row = array (' ');
- $this->_tabla->addRow($row,'align="left" bgcolor="#FFFFFF" colspan="'.$colspan.'"');
+ $espacio = ' <BR>';
}
- //
-
+ else {
+ $espacio = '';
+ }
+ //
+ $row = array();
+ $tmp = '';
+ if ($body['menuVertical']) {
+ if (is_object($body['menuVertical'])) {
+ if (method_exists($body['menuVertical'],'toHtml')) {
+ $tmp.=$body['menuVertical']->toHtml();
+ }
+ else {
+ trigger_error('El metodo no existe!', E_USER_WARNING);
+ }
+ }
+ else {
+ $tmp.=$body['menuVertical'];
+ }
+ $row[] = $tmp;
+ }
+
if (is_array($body['body'])) {
$tmp = '';
+ $tmp = $espacio;
foreach ($body['body'] as $bod) {
if (is_object($bod)) {
if (method_exists($bod,'toHtml')) {
$tmp.=$bod;
}
}
- $row = array ($tmp);
+ $tmp.= $espacio;
+ $row[] = $tmp;
}
else {
- $row = array ($body['body']);
+ $row[] = $body['body'];
}
- $this->_tabla->addRow($row,'align="center" bgcolor="#FFFFFF" colspan="'.$colspan.'"');
-
- //Agrego si corresponde el espacio al final
- if ($body['espacios']) {
- $row = array (' ');
- $this->_tabla->addRow($row,'align="left" bgcolor="#FFFFFF" colspan="'.$colspan.'"');
- }
- //
+ $tt = $tabla->addRow($row,'align="center" bgcolor="#FFFFFF" colspan="');
+ $tabla->updateCellAttributes($tt, 0, 'valign="top" width="1%"');
+ $this->_tabla->addRow(array($tabla->toHtml()),'align="center" bgcolor="#FFFFFF" colspan="'.$colspan.'"');
+
}
$row = array ($body['pie']);
$this->_tabla->addRow($row,'align="center" bgcolor="#CCCCCC" colspan="'.$colspan.'"');