- $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
+ $bullets = array('',\r
+ '/MECON/images/arbol_bullet_1.gif',\r
+ '/MECON/images/arbol_bullet_2.gif',\r
+ '/MECON/images/arbol_bullet_3.gif');\r
+ $tabulados = array(0, 7, 13, 20);\r
+ $classes = array('menu', 'menu1', 'menu1', 'menu2');\r
+ \r
+ $atr = array('border' => '0',\r
+ 'width' => $tabulados[$n],\r
+ 'height' => '10');\r
+ $imagen =& new HTML_Image($bullets[$n], 'bullet', $atr);\r