1 <?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80:
2 -------------------------------------------------------------------------------
3 Ministerio de EconomÃa
5 -------------------------------------------------------------------------------
6 This file is part of meconlib.
8 meconlib is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 2 of the License, or (at your option)
13 meconlib is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License; if not,
18 write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
19 Boston, MA 02111-1307 USA
20 -------------------------------------------------------------------------------
21 Creado: Wed May 7 13:05:08 2003
22 Autor: Martin Marrese <mmarre@mecon.gov.ar>
23 -------------------------------------------------------------------------------
25 -----------------------------------------------------------------------------*/
28 require_once 'MECON/Marco/Menu.php';
31 require_once 'MECON/HTML/Image.php';
33 // +X2C Class 136 :MECON_Marco_MenuOculto
35 * Clase que se encarga del manejo de los menues ocultos.
37 * @package MECON_Marco
40 class MECON_Marco_MenuOculto extends MECON_Marco_Menu {
45 * Funcion para agregar el cuerpo de la pagina a la pagina
47 * @param string $body String con el cuerpo a agregar a la pagina
48 * @param string $titulo Titulo de la seccion seleccionada
49 * @param mixed $menu Menu a mostrar
54 function addBody($body, $titulo, $menu = null) // ~X2C
65 ($this->_armarEncabezado($titulo.$this->_configuracion['subtitulo']));
66 $this->_tabla->addRow($row,'align="left" bgcolor="#FFFFFF" colspan="'.$colspan.'"');
67 $imagen = new MECON_HTML_Image('/MECON/images/general_linea2.gif',
68 str_repeat('-', 108), array('border' => 0, 'align' => 'center'));
69 $this->_tabla->addRow(array ($imagen->toHtml()), 'align="center" colspan="'.$colspan.'"');
71 //Agrego si corresponde el espacio al inicio
72 if ($this->_configuracion['espacios']) {
73 $row = array (' ');
74 $this->_tabla->addRow($row,'align="left" bgcolor="#FFFFFF" colspan="'.$colspan.'"');
78 //Veo si debo cargar el menu horizontal
82 if (is_object($menu)) {
83 if (method_exists($menu,'toHtml')) {
84 $tmp.=$menu->toHtml();
87 trigger_error('El metodo no existe!', E_USER_WARNING);
97 foreach ($body as $bod) {
98 if (is_object($bod)) {
99 if (method_exists($bod,'toHtml')) {
100 $tmp.=$bod->toHtml();
103 trigger_error('El metodo no existe!', E_USER_WARNING);
112 $this->_tabla->addRow($row,'align="center" bgcolor="#FFFFFF" valign="top"');
114 //Agrego si corresponde el espacio al final
115 if ($this->_configuracion['espacios']) {
116 $row = array (' ');
117 $this->_tabla->addRow($row,'align="left" bgcolor="#FFFFFF" colspan="'.$colspan.'"');
123 } // -X2C Class :MECON_Marco_MenuOculto