X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/5bef6cb12aa86876a8cffe8efc6a1623eb03ba1f..b83e9f960d1231b2232058c76aee8d90634d16de:/lib/MECON/Marco/Copete.php diff --git a/lib/MECON/Marco/Copete.php b/lib/MECON/Marco/Copete.php index 87ec1cd..3fa7844 100644 --- a/lib/MECON/Marco/Copete.php +++ b/lib/MECON/Marco/Copete.php @@ -24,8 +24,7 @@ Autor: Martin Marrese $Id$ -----------------------------------------------------------------------------*/ -require_once 'PEAR.php'; - +require_once 'MECON/HTML/Image.php'; // +X2C Class 9 :MECON_Marco_Copete /** @@ -51,6 +50,13 @@ class MECON_Marco_Copete { */ var $_ayuda = null; + /** + * Nombre del sistema. + * + * @private + */ + var $_sistema = ''; + // ~X2C // +X2C Operation 34 @@ -63,9 +69,10 @@ class MECON_Marco_Copete { * @return void * @access public */ - function MECON_Marco_Copete($directorio, $ayuda = null) // ~X2C + function MECON_Marco_Copete($directorio, $ayuda = null, $sistema = '') // ~X2C { $this->_directorio = $directorio; + $this->_sistema = $sistema; if (@$ayuda) { if (is_object($ayuda)) { $val = $ayuda->getHref(); @@ -99,14 +106,23 @@ class MECON_Marco_Copete { function toHtml() // ~X2C { if (!is_null($this->_directorio)) { + $image = new MECON_HTML_Image( + $this->_directorio.'/copete', + 'Intranet - Ministerio de Economía - ' . $this->_sistema, + array( + 'width' => 760, + 'height' => 42, + 'border' => 0, + ) + ); if (@$this->_ayuda) { - return ''; + $image->updateAttributes(array('usemap' => '#Map_copete')); + $image->setSrc($image->getSrc() . '_ayuda'); + return $image->toHtml() . ''; } else { - return ''; + return $image->toHtml(); } } else {