2 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
3 // +----------------------------------------------------------------------+
5 // +----------------------------------------------------------------------+
6 // | Copyright (c) 1997-2003 The PHP Group |
7 // +----------------------------------------------------------------------+
8 // | This source file is subject to version 2.02 of the PHP license, |
9 // | that is bundled with this package in the file LICENSE, and is |
10 // | available at through the world-wide-web at |
11 // | http://www.php.net/license/2_02.txt. |
12 // | If you did not receive a copy of the PHP license and are unable to |
13 // | obtain it through the world-wide-web, please send a note to |
14 // | license@php.net so we can mail you a copy immediately. |
15 // +----------------------------------------------------------------------+
16 // | Created: Wed May 7 13:05:08 2003
17 // | Author: Martin Marrese <mmarre@mecon.gov.ar>
18 // +----------------------------------------------------------------------+
27 #require_once 'PEAR.php';
31 require_once 'MECON/Marco/Menu.php';
34 // +X2C Class 136 :MenuOculto
36 * Clase que se encarga del manejo de los menues ocultos.
40 class MenuOculto extends Menu {
46 * Constructor. Recibe el nombre del directorio en donde esta instalado el sistema
48 * @param array $configuracion Configuracion del sistema
53 function MenuOculto($configuracion = null) // ~X2C
55 parent::Menu($configuracion);
61 * Funcion para agregar el cuerpo de la pagina a la pagina
63 * @param string $body String con el cuerpo a agregar a la pagina
64 * @param string $titulo Titulo de la seccion seleccionada
69 function addBody($body, $titulo) // ~X2C
71 $tit = '<font face="Arial, Helvetica, sans-serif" size="3" color="#FFFFFF"><b>'.$titulo.'</b></font>';
73 $this->_tabla->addRow($row,'align="left" bgcolor="#336699"');
76 foreach ($body as $bod) {
77 if (is_object($bod)) {
78 if (method_exists($bod,'toHtml')) {
82 trigger_error('El metodo no existe!', E_USER_WARNING);
91 $this->_tabla->addRow($row,'align="center" bgcolor="#FFFFFF"');
95 } // -X2C Class :MenuOculto