*/
function addBody($body, $titulo) // ~X2C
{
- $menu = '';
$c= count($this->_componentes);
$tmp = $this->_componentes;
$this->_componentes = array ();
$this->_armarArraySecciones($tmp);
- $menu.='<img src="/www/images/carpeta0" border="0"> <font face="Arial, Helvetica, sans-serif" size="3" color="#000000"><b>'.$titulo.'</b></font><BR>';
+ $TABLA = new HTML_Table('width=160 align="left" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" border="0" height="1"'); $menu ='<img src="/www/images/carpeta0" border="0"> <font face="Arial, Helvetica, sans-serif" size="2" color="#000000"><b>Submenu</b></font>';
+ $row = array ($menu);
+ $TABLA->addRow($row,'align="left" bgcolor="#FFFFFF" height="1"');
+ $TABLA->updateCellAttributes(0,0,'colspan="2"');
+
foreach ($this->_componentesVertical as $comp) {
-// $menu.=' <img src="/www/images/carp.gif" border="0"><BR>';
- $menu.=$comp.'<br>';
+ $TABLA->addRow($comp,'align="left" bgcolor="#FFFFFF" height="1"');
+ $TABLA->updateColAttributes(0,'align="right" width="34"');
+ $TABLA->updateColAttributes(1,'align="left"');
}
-
- $row = array ($menu);
- $this->_tabla->addRow($row,'width=160 align="left" bgcolor="#FFFFFF" rowspan="2" valign="top"');
-
+ $TABLA->updateCellAttributes(0,0,'align="left"');
+ $row = array ($TABLA->toHtml());
+ $this->_tabla->addRow($row,'width=160 align="left" bgcolor="#FFFFFF" valign="top" rowspan="2"');
+
$tit = '<font face="Arial, Helvetica, sans-serif" size="3" color="#FFFFFF"><b>'.$titulo.'</b></font>';
$row = array ($tit);
-
$this->_tabla->setCellContents (0,1,$row);
$this->_tabla->setCellAttributes(0,1,'align="left" bgcolor="#336699"');
-
- $tmp='';
+
+ $tmp='<BR>';
foreach ($body as $bod) {
if (is_object($bod)) {
if (method_exists($bod,'toHtml')) {
$row = array ($tmp);
$this->_tabla->setCellContents (1,1,$row);
$this->_tabla->setCellAttributes(1,1,'align="center" bgcolor="#FFFFFF"');
+
+ $this->_tabla->updateColAttributes (1,'width="600"');
}
// -X2C
*/
function toHtmlVertical($link_sel, $ultimo = false) // ~X2C
{
- $style = "text-decoration:none;margin:0px;padding:0px;font-size:smaller";
- if ($this->verifSeccionSeleccionada($link_sel)) {
+ $style = "text-decoration:none";
+ $sec = array ();
+ if ($this->verifSeccionSeleccionada($link_sel)) {
if ($ultimo) {
- $sec = " <a style=\"".$style."\" href=\"".$this->_link."\"><img style=\"".$style."\" src=\"/www/images/carp2_f3\" border=\"0\">".$this->_nombre."</a>";
+ $sec[] = '<a href="'.$this->_link.'"><img src="/www/images/carp2_f3" border="0"></a>';
}
else {
- $sec = " <a style=\"".$style."\" href=\"".$this->_link."\"><img style=\"".$style."\" src=\"/www/images/carp1_f3\" border=\"0\">".$this->_nombre."</a>";
+ $sec[] = '<a href="'.$this->_link.'"><img src="/www/images/carp1_f3" border="0"></a>';
}
}
else {
if ($ultimo) {
- $sec = " <a style=\"".$style."\" href=\"".$this->_link."\"><img style=\"".$style."\" src=\"/www/images/carp2_f2\" border=\"0\">".$this->_nombre."</a>";
+ $sec[] = '<a href="'.$this->_link.'"><img src="/www/images/carp2_f2" border="0"></a>';
}
else {
- $sec = " <a style=\"".$style."\" href=\"".$this->_link."\"><img style=\"".$style."\" src=\"/www/images/carp1_f2\" border=\"0\">".$this->_nombre."</a>";
+ $sec[] = '<a href="'.$this->_link.'"><img src="/www/images/carp1_f2" border="0"></a>';
}
}
- return $sec;
+
+ $sec[] = '<font face="Arial, Helvetica, sans-serif" size="1" color=""><b><a href="'.$this->_link.'" style="'.$style.'"> '.$this->_nombre.'</a></b></font>';
+ return $sec;
}
// -X2C
'imagenMouseOn' => '', //
'imagenSelect' => '', //
'link' => '/www/sistemas/prueba/www/perfiles', //LINK DE LA SECCION
- 'tipoMenu' => 'oculto', //TIPO DEL MENU DE HIJOS (vertical, horizontal, oculto)
+ 'tipoMenu' => 'vertical', //TIPO DEL MENU DE HIJOS (vertical, horizontal, oculto)
'hijos' => array ( //HIJOS PARA EL MENU
array ( 'nombre' => 'Perfiles - Hijo', //NOMBRE DEL HIJO 1
'imagenComun' => 'perfiles-nionio', //IMAGEN COMUN