From: Gonzalo Merayo Date: Mon, 23 Jun 2003 16:13:45 +0000 (+0000) Subject: Agrego Arbol a meconlib X-Git-Tag: svn_import~464 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/d611eeb548173732a4b05955d98408fcc69fff64?ds=sidebyside Agrego Arbol a meconlib --- diff --git a/lib/MECON/HTML/Arbol.php b/lib/MECON/HTML/Arbol.php new file mode 100644 index 0000000..4931356 --- /dev/null +++ b/lib/MECON/HTML/Arbol.php @@ -0,0 +1,58 @@ +'132', + 'border' => '0', + 'cellspacing' => '0', + 'cellpadding' => '0', + 'bgcolor' => '#003868')); + $this->t_interna = new HTML_Table(array ('width'=>'132', + 'border' => '0', + 'cellspacing' => '2', + 'cellpadding' => '0', + 'class' => 'bodytext')); + $this->addRow(array('')); + $this->expandir($dat, 0); + } + function expandir($dat, $n) + { + $imagen = ''; + $class = 'menu'; + switch($n){ + case 1: $imagen = ''; + $class = 'menu1'; + break; + case 2: $imagen = ''; + $class = 'menu1'; + break; + case 3: $imagen = ''; + $class = 'menu2'; + break; + } + foreach($dat as $e) + { + if(!is_null($e['link'])) + $e['titulo'] = ''.$imagen.$e['titulo'].''; + if(isset($e['activado']) && $e['activado'] != 0) $class_a = 'menu_activo'; + else $class_a = $class; + $this->t_interna->addRow(array($e['titulo']), array('class' => $class_a)); + if(isset($e['sub'])) + $this->expandir($e['sub'], $n+1); + } + } + function toHTML() + { + echo ''; + $this->addRow(array($this->t_interna->toHTML())); + return parent::toHTML(); + } +}; + +?> diff --git a/test/prueba_agente.php b/test/prueba_agente.php index b646532..8b50aed 100755 --- a/test/prueba_agente.php +++ b/test/prueba_agente.php @@ -1,6 +1,6 @@ #!/usr/bin/php4 -qC getAgentes() as $a) echo $a->getNombre()."\n"; diff --git a/www/css/arbol.css b/www/css/arbol.css new file mode 100644 index 0000000..22d10a1 --- /dev/null +++ b/www/css/arbol.css @@ -0,0 +1,33 @@ +BODY { + FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; TEXT-ALIGN: left +; font-style: normal; line-height: 10pt; font-weight: normal +} +UL { + FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; font-style: normal; line-height: normal; font-weight: normal +} +P { + FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt +; font-style: normal; line-height: normal; font-weight: normal +} +.PagNegro { + COLOR: #000000; FONT-FAMILY: Verdana, Tahoma; FONT-SIZE: 8pt; TEXT-DECORATION: none +} +.PagRojo { + COLOR: #006699; FONT-FAMILY: Verdana, Tahoma; FONT-SIZE: 8pt; TEXT-DECORATION: none +} +.TextBlue { + COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; font-style: normal; line-height: normal; font-weight: normal +} +.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 } +.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 } +.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 } +.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 } +.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} +.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} +.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} +.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 } +.textoazul { COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; font-style: normal; line-height: normal; font-weight: normal } +.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( )} +.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 } +.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 } +.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)} diff --git a/www/images/arbol_bullet_1.gif b/www/images/arbol_bullet_1.gif new file mode 100644 index 0000000..e868fd8 Binary files /dev/null and b/www/images/arbol_bullet_1.gif differ diff --git a/www/images/arbol_bullet_2.gif b/www/images/arbol_bullet_2.gif new file mode 100644 index 0000000..f25b8a4 Binary files /dev/null and b/www/images/arbol_bullet_2.gif differ diff --git a/www/images/arbol_bullet_3.gif b/www/images/arbol_bullet_3.gif new file mode 100644 index 0000000..a590f5b Binary files /dev/null and b/www/images/arbol_bullet_3.gif differ diff --git a/www/images/arbol_noticias.gif b/www/images/arbol_noticias.gif new file mode 100644 index 0000000..6d80839 Binary files /dev/null and b/www/images/arbol_noticias.gif differ