function expandir($dat, $n, &$tabla)
{
- $imagen = '';
$bullets = array(
'',
'/MECON/images/arbol_bullet_1.gif',
'/MECON/images/arbol_bullet_2.gif',
'/MECON/images/arbol_bullet_3.gif'
);
- $tabulados = 7;
+ $alts = array(
+ '',
+ '*',
+ '-',
+ 'ยท'
+ );
$classes = array('menu', 'menu1', 'menu1', 'menu2');
-
- $atr = array('border' => '0',
- 'width' => $n * $tabulados,
- 'height' => '10');
- $imagen =& new HTML_Image(@$bullets[$n] ? $bullets[$n] : '', 'bullet', $atr);
+ $tabulados = 7;
+ $atr = array(
+ 'border' => '0',
+ 'width' => $n * $tabulados,
+ 'height' => '10'
+ );
+ $margen = new HTML_Image('/MECON/images/blanco.gif', str_repeat(' ', $n), $atr);
+ $margen = $margen->toHtml();
+ $imagen = '';
+ if (@$bullets[$n]) {
+ $imagen = new HTML_Image($bullets[$n], @$alts[$n], $atr);
+ $imagen = $imagen->toHtml();
+ }
foreach ($dat as $e) {
- $titulo = $imagen->toHTML().$e['titulo'];
+ $titulo = $margen.$imagen.$e['titulo'];
if(isset($e['activado']) && $e['activado'] != 0) $class = 'menu_activo';
else $class = $classes[$n];
if(!is_null($e['link'])) {