--- /dev/null
+<?\r
+\r
+require_once 'HTML/Table.php';\r
+\r
+class HTML_Arbol extends HTML_Table\r
+{\r
+ var $t_interna;\r
+ \r
+ function Arbol($dat)\r
+ {\r
+ parent::HTML_Table(array ('width'=>'132',\r
+ 'border' => '0',\r
+ 'cellspacing' => '0',\r
+ 'cellpadding' => '0',\r
+ 'bgcolor' => '#003868'));\r
+ $this->t_interna = new HTML_Table(array ('width'=>'132',\r
+ 'border' => '0',\r
+ 'cellspacing' => '2',\r
+ 'cellpadding' => '0',\r
+ 'class' => 'bodytext'));\r
+ $this->addRow(array('<img name="noticias" src="MECON/images/noticias.gif" width="132" height="26" border="0">'));\r
+ $this->expandir($dat, 0);\r
+ }\r
+ function expandir($dat, $n)\r
+ {\r
+ $imagen = '';\r
+ $class = 'menu'; \r
+ switch($n){\r
+ case 1: $imagen = '<img src="MECON/images/arbol_bullet_1.gif" width="7" height="10">';\r
+ $class = 'menu1'; \r
+ break;\r
+ case 2: $imagen = '<img src="MECON/images/arbol_bullet_2.gif" width="13" height="10">';\r
+ $class = 'menu1'; \r
+ break;\r
+ case 3: $imagen = '<img src="MECON/images/arbol_bullet3.gif" width="20" height="10">';\r
+ $class = 'menu2'; \r
+ break;\r
+ }\r
+ foreach($dat as $e)\r
+ {\r
+ if(!is_null($e['link']))\r
+ $e['titulo'] = '<a href="'.$e['link'].'">'.$imagen.$e['titulo'].'</a>';\r
+ if(isset($e['activado']) && $e['activado'] != 0) $class_a = 'menu_activo';\r
+ else $class_a = $class;\r
+ $this->t_interna->addRow(array($e['titulo']), array('class' => $class_a));\r
+ if(isset($e['sub']))\r
+ $this->expandir($e['sub'], $n+1);\r
+ }\r
+ }\r
+ function toHTML()\r
+ {\r
+ echo '<link rel="stylesheet" href="MECON/css/arbol.css">';\r
+ $this->addRow(array($this->t_interna->toHTML()));\r
+ return parent::toHTML();\r
+ }\r
+};\r
+\r
+?>\r
--- /dev/null
+BODY {\r
+ FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; TEXT-ALIGN: left\r
+; font-style: normal; line-height: 10pt; font-weight: normal\r
+}\r
+UL {\r
+ FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; font-style: normal; line-height: normal; font-weight: normal\r
+}\r
+P {\r
+ FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt\r
+; font-style: normal; line-height: normal; font-weight: normal\r
+}\r
+.PagNegro {\r
+ COLOR: #000000; FONT-FAMILY: Verdana, Tahoma; FONT-SIZE: 8pt; TEXT-DECORATION: none\r
+}\r
+.PagRojo {\r
+ COLOR: #006699; FONT-FAMILY: Verdana, Tahoma; FONT-SIZE: 8pt; TEXT-DECORATION: none\r
+}\r
+.TextBlue {\r
+ COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; font-style: normal; line-height: normal; font-weight: normal\r
+}\r
+.titulo_vinculos { COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; FONT-WEIGHT: bold ; font-style: normal; line-height: normal; background-position: left centre; text-align: left }\r
+.menu { COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; font-style: normal; line-height: normal; background-color: #FFFFFF; background-position: left; text-align: left; vertical-align: middle }\r
+.menu_activo { COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; font-style: normal; line-height: normal; background-color: #FFCC99; background-position: left centre; text-align: left; vertical-align: middle }\r
+.titulo_uno { COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12pt; font-style: normal; line-height: normal; background-position: left centre; text-align: left; vertical-align: middle ; font-weight: bold }\r
+.subtitulo { COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; font-style: normal; line-height: normal; background-position: left centre; text-align: left; vertical-align: middle ; font-weight: bold}\r
+.titulo_noticia { COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; font-style: normal; line-height: normal; background-position: left centre; text-align: justify; vertical-align: top; font-weight: normal}\r
+.fecha_noticia { COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; font-style: normal; line-height: normal; background-position: left bottom; text-align: left; vertical-align: bottom; font-weight: normal}\r
+.ver_mas { COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; font-style: normal; line-height: normal; background-position: right bottom; text-align: right; vertical-align: middle ; font-weight: normal }\r
+.textoazul { COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; font-style: normal; line-height: normal; font-weight: normal }\r
+.menu1 { COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 9pt; font-style: normal; line-height: normal; background-color: #FFFFFF; background-position: left centre; text-align: left; vertical-align: middle ; margin-left: 10px; clip: rect( )}\r
+.menu_activo1 { COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 9pt; font-style: normal; line-height: normal; background-color: #FFCC99; background-position: left centre; text-align: left; vertical-align: middle }\r
+.menu_activo2 { COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; font-style: normal; line-height: normal; background-color: #FFCC99; background-position: left centre; text-align: left; vertical-align: middle }\r
+.menu2 { COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; font-style: normal; line-height: normal; background-color: #FFFFFF; background-position: left centre; text-align: left; vertical-align: middle ; clip: rect( 15px)}\r