-<?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: Mon Apr 14 16:23:22 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.
+
+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: Mon Apr 14 16:23:22 2003
+Autor: Martin Marrese <mmarre@mecon.gov.ar>
+-------------------------------------------------------------------------------
+$Id$
+-----------------------------------------------------------------------------*/
+
+require_once 'HTML/Image.php';
define('MECON_MARCO_IMAGENANIMADA_DIR_GENERAL', '/MECON/images');
-// +X2C Class 17 :ImagenAnimada
+// +X2C Class 17 :MECON_Marco_ImagenAnimada
/**
* Clase para el manejo de la animacion de las imagenes. Utilizada principalmente en la barra de secciones
*
+ * @package MECON_Marco
* @access public
*/
-class ImagenAnimada {
+class MECON_Marco_ImagenAnimada {
/**
* Nombre del archivo imagen.
*
*/
var $_link = '';
+ /**
+ * @var string $nombre
+ * @access protected
+ */
+ var $_nombre;
+
/**
* Gets Seleccionada.
*
$this->_link = $link;
}
+ /**
+ * Gets Nombre.
+ *
+ * @return string
+ * @access public
+ */
+ function getNombre()
+ {
+ return $this->_nombre;
+ }
+ /**
+ * Sets Nombre.
+ *
+ * @param string $nombre Nombre.
+ *
+ * @return void
+ * @access public
+ */
+ function setNombre($nombre)
+ {
+ $this->_nombre = $nombre;
+ }
+
// ~X2C
// +X2C Operation 70
* @param string $imagenMouseOn Imagen alterna con el mouse por arriba
* @param string $imagenSelect Imagen alterna cuando esta seleccionada la seccion
* @param string $directorio Directorio en donde se encuentran las imagenes
+ * @param string $nombre Nombre de la imagen animada.
+ * @param string $link Link.
*
* @return void
* @access public
*/
- function ImagenAnimada($imagenComun, $imagenMouseOn = '', $imagenSelect = '', $directorio = '')// ~X2C
+ function MECON_Marco_ImagenAnimada($imagenComun, $imagenMouseOn = '', $imagenSelect = '', $directorio = '', $nombre = '', $link = '') // ~X2C
{
if ($imagenComun !== '') {
$this->_imgComun = $this->_calcularImagen($imagenComun, $directorio);
$this->_imgSelect = $this->_calcularImagen($imagenComun, $directorio, '_f3');
}
}
+ $this->_nombre = $nombre;
+ $this->_link = $link;
}
// -X2C
* @return string
* @access public
*/
- function toHtml()// ~X2C
+ function toHtml() // ~X2C
{
- $img = new HTML_Image(array('name' => $this->getName(), 'border' => 0));
$src = $this->getSeleccionada() ? $this->_imgSelect : $this->_imgComun;
- $img->updateAttributes(array ('src' => $src) );
+ $img = new HTML_Image($src, $this->_nombre, array('name' => $this->_nombre, 'border' => 0));
$html = $img->toHtml();
if ($this->getHabilitada()) {
if ($this->getSeleccionada()) {
$prepend = '<a href="'.$this->getLink().'">';
} else {
$prepend = '<a href="'.$this->getLink().'" onMouseOut="MM_swapImgRestore()"
- onMouseOver="MM_displayStatusMsg(\''.$this->getName().'\');
- MM_swapImage(\''.$this->getName().'\',\'\',\''.$this->_imgMouseOn.'\',1);
+ onMouseOver="MM_displayStatusMsg(\''.$this->_nombre.'\');
+ MM_swapImage(\''.$this->_nombre.'\',\'\',\''.$this->_imgMouseOn.'\',1);
return document.MM_returnValue"
- MM_swapImage(\''.$this->getName().'\',\'\',\''.$this->_imgMouseOn.'\',1)>';
+ MM_swapImage(\''.$this->_nombre.'\',\'\',\''.$this->_imgMouseOn.'\',1)>';
}
$html = $prepend . $html . '</a>';
}
* @return string
* @access protected
*/
- function _calcularImagen($imagen, $directorio, $modificador = '')// ~X2C
+ function _calcularImagen($imagen, $directorio, $modificador = '') // ~X2C
{
if ($modificador !== '') {
$pos = strrpos($imagen, '.');
}
// -X2C
-} // -X2C Class :ImagenAnimada
+} // -X2C Class :MECON_Marco_ImagenAnimada
?>
\ No newline at end of file