-<?php
-// vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
-// +----------------------------------------------------------------------+
-// | PHP Version 4 |
-// +----------------------------------------------------------------------+
-// | Copyright (c) 1997-2003 The PHP Group |
-// +----------------------------------------------------------------------+
-// | This source file is subject to version 2.02 of the PHP license, |
-// | that is bundled with this package in the file LICENSE, and is |
-// | available at through the world-wide-web at |
-// | http://www.php.net/license/2_02.txt. |
-// | If you did not receive a copy of the PHP license and are unable to |
-// | obtain it through the world-wide-web, please send a note to |
-// | license@php.net so we can mail you a copy immediately. |
-// +----------------------------------------------------------------------+
-// | Created: Wed May 7 13:05:08 2003
-// | Author: Martin Marrese <mmarre@mecon.gov.ar>
-// +----------------------------------------------------------------------+
-//
-// $Id$
-// $Author$
-// $URL$
-// $Date$
-// $Rev$
-//
+<?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80:
+-------------------------------------------------------------------------------
+ Ministerio de EconomÃa
+ meconlib
+-------------------------------------------------------------------------------
+This file is part of meconlib.
-#require_once 'PEAR.php';
+meconlib 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
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License; if not,
+write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+Boston, MA 02111-1307 USA
+-------------------------------------------------------------------------------
+Creado: Wed May 7 13:05:08 2003
+Autor: Martin Marrese <mmarre@mecon.gov.ar>
+-------------------------------------------------------------------------------
+$Id$
+-----------------------------------------------------------------------------*/
-// +X2C includes
require_once 'MECON/Marco/Menu.php';
-// ~X2C
+require_once 'MECON/HTML/Image.php';
-// +X2C Class 136 :MenuOculto
/**
* Clase que se encarga del manejo de los menues ocultos.
*
* @access public
*/
-class MenuOculto extends Menu {
- // ~X2C
-
-
- // +X2C Operation 138
- /**
- * Constructor. Recibe el nombre del directorio en donde esta instalado el sistema
- *
- * @param array $configuracion Configuracion del sistema
- *
- * @return void
- * @access public
- */
- function MenuOculto($configuracion = null)// ~X2C
- {
- parent::Menu($configuracion);
- }
- // -X2C
-
- // +X2C Operation 140
+class MECON_Marco_MenuOculto extends MECON_Marco_Menu {
/**
* Funcion para agregar el cuerpo de la pagina a la pagina
*
* @param string $body String con el cuerpo a agregar a la pagina
* @param string $titulo Titulo de la seccion seleccionada
- * @param bool $espacios Indica si hay que agregar espacios antes y despues del body
+ * @param mixed $menu Menu a mostrar
*
* @return void
* @access public
*/
- function addBody($body, $titulo, $espacios = true)// ~X2C
+ function addBody($body, $titulo, $menu = null)
{
- $tit = '<font face="Arial, Helvetica, sans-serif" size="3" color="#FFFFFF"><b>'.$titulo.'</b></font>';
- $row = array ($tit);
- $this->_tabla->addRow($row,'align="left" bgcolor="#336699"');
-
- //Agrego si corresponde el espacio al inicio
- if ($espacios) {
- $row = array (' ');
- $this->_tabla->addRow($row,'align="left" bgcolor="#FFFFFF"');
- }
- //
-
- $tmp='';
- foreach ($body as $bod) {
- if (is_object($bod)) {
- if (method_exists($bod,'toHtml')) {
- $tmp.=$bod->toHtml();
+ $this->resultado[] = $this->_armarEncabezado($titulo .
+ $this->_configuracion['subtitulo']);
+ $this->resultado[] =& new MECON_HTML_Image(
+ '/MECON/images/general_linea2.gif',
+ str_repeat('-', 108),
+ 'border="0" align="center"');
+ if ($menu) {
+ $MENUVERTICAL = new HTML_Table ('width="760"');
+ $cuerpo = '';
+ if (is_array($body)) {
+ if ($this->_configuracion['espacios']) {
+ $cuerpo.= ' <BR>';
}
- else {
- trigger_error('El metodo no existe!', E_USER_WARNING);
- }
- }
+ foreach ($body as $bod) {
+ if (is_object($bod)) {
+ if (method_exists($bod,'toHtml')) {
+ $cuerpo.= $bod->toHtml();
+ }
+ else {
+ trigger_error('El metodo no existe! - '.
+ get_class($bod).'::toHtml()',
+ E_USER_WARNING);
+ }
+ }
+ else {
+ $cuerpo.= $bod;
+ }
+ }
+ }
else {
- $tmp.=$bod;
+ $cuerpo = $body;
}
+ $MENUVERTICAL->addRow(array($menu, $cuerpo),
+ 'valign="top"');
+ $MENUVERTICAL->updateColAttributes(0, 'width="10%"');
+ $this->resultado[] = $MENUVERTICAL;
}
- $row = array ($tmp);
- $this->_tabla->addRow($row,'align="center" bgcolor="#FFFFFF"');
-
- //Agrego si corresponde el espacio al final
- if ($espacios) {
- $row = array (' ');
- $this->_tabla->addRow($row,'align="left" bgcolor="#FFFFFF"');
+ else {
+ //Agrego si corresponde el espacio al inicio
+ if ($this->_configuracion['espacios']) {
+ $this->resultado[] = ' <BR>';
+ }
+ $this->resultado = array_merge($this->resultado, $body);
}
- //
}
- // -X2C
-
-} // -X2C Class :MenuOculto
-
-?>
+}
+?>
\ No newline at end of file