<?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80:
-------------------------------------------------------------------------------
- Ministerio de Economía
- meconlib
+ mlib
-------------------------------------------------------------------------------
-This file is part of meconlib.
+This file is part of mlib.
-meconlib is free software; you can redistribute it and/or modify it under
+mlib is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option)
any later version.
-meconlib is distributed in the hope that it will be useful, but WITHOUT
+mlib is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-----------------------------------------------------------------------------*/
require_once 'HTML/Table.php';
-require_once 'MECON/HTML/Image.php';
+require_once 'MLIB/HTML/Image.php';
/**
* DESC
*
* @access public
*/
-class MECON_HTML_Arbol extends HTML_Table
+class MLIB_HTML_Arbol extends HTML_Table
{
/**
* @return void
* @access public
*/
- function MECON_HTML_Arbol($datos, $titulo, $link_append = '')
+ function MLIB_HTML_Arbol($datos, $titulo, $link_append = '')
{
parent::HTML_Table(array(
'width' => '132',
* @access public
*/
function getCSS() {
- return '/MECON/css/html/arbol';
+ return '/MLIB/css/html/arbol';
}
/**
{
$bullets = array(
'',
- '/MECON/images/arbol_bullet_1.gif',
- '/MECON/images/arbol_bullet_2.gif',
- '/MECON/images/arbol_bullet_3.gif'
+ '/MLIB/images/arbol_bullet_1.gif',
+ '/MLIB/images/arbol_bullet_2.gif',
+ '/MLIB/images/arbol_bullet_3.gif'
);
$alts = array(
'',
'-',
'·'
);
- $classes = array('mecon_html_arbol_menu', 'mecon_html_arbol_menu1',
- 'mecon_html_arbol_menu1', 'mecon_html_arbol_menu2');
+ $classes = array('MLIB_html_arbol_menu', 'MLIB_html_arbol_menu1',
+ 'MLIB_html_arbol_menu1', 'MLIB_html_arbol_menu2');
$tabulados = 7;
$atr = array(
'border' => '0',
);
$margen = ' ';
if ($n) {
- $margen = new MECON_HTML_Image('/MECON/images/blanco.gif', str_repeat(' ', $n), $atr);
+ $margen = new MLIB_HTML_Image('/MLIB/images/blanco.gif', str_repeat(' ', $n), $atr);
$margen = $margen->toHtml();
}
$imagen = '';
if (@$bullets[$n]) {
- $imagen = new MECON_HTML_Image($bullets[$n], @$alts[$n]);
+ $imagen = new MLIB_HTML_Image($bullets[$n], @$alts[$n]);
$imagen = $imagen->toHtml();
}
foreach ($dat as $e) {
$titulo = $e['titulo'];
- if(isset($e['activo']) && $e['activo'] != 0) $class = 'mecon_html_arbol_menu_activo';
+ if(isset($e['activo']) && $e['activo'] != 0) $class = 'MLIB_html_arbol_menu_activo';
else $class = @$classes[$n] ? $classes[$n] : end($classes);
if(isset($e['bold'])) $class .= '_bold';
if(!is_null($e['link'])) {
'border' => '0',
'cellspacing' => '2',
'cellpadding' => '0',
- 'class' => 'mecon_html_arbol_bodytext'));
+ 'class' => 'MLIB_html_arbol_bodytext'));
$titulo = new HTML_Table(array(
'width' => '132',
'height' => '26',
'cellspacing' => '0',
'cellpadding' => '0',
'align' => 'center',
- 'background' => '/MECON/images/arbol_titulo.gif'));
+ 'background' => '/MLIB/images/arbol_titulo.gif'));
$titulo->addRow(array($this->titulo), array(
'align' => 'center',
- 'class' => 'mecon_html_arbol_titulo'));
+ 'class' => 'MLIB_html_arbol_titulo'));
$this->addRow(array($titulo), array('bgcolor' => '#FFFFFF'));
$this->expandir($this->datos, 0, $t_interna);
$this->addRow(array($t_interna->toHTML()));