From 5a346da1917511461a04b3b7650d10bfcba6d654 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mart=C3=ADn=20Marrese?= Date: Wed, 9 Jun 2004 16:18:45 +0000 Subject: [PATCH 1/1] Agrego el objeto que permite abrir una ventana con la informacion institucional que se quiera. --- sistema/local_lib/HTML_Institucional.php | 172 ++++++++++++++++++ sistema/www/css/institucional.css | 12 ++ sistema/www/images/institucional_derecha.gif | Bin 0 -> 421 bytes sistema/www/images/institucional_fondo.gif | Bin 0 -> 67 bytes .../www/images/institucional_izquierda.gif | Bin 0 -> 1948 bytes 5 files changed, 184 insertions(+) create mode 100644 sistema/local_lib/HTML_Institucional.php create mode 100644 sistema/www/css/institucional.css create mode 100644 sistema/www/images/institucional_derecha.gif create mode 100644 sistema/www/images/institucional_fondo.gif create mode 100644 sistema/www/images/institucional_izquierda.gif diff --git a/sistema/local_lib/HTML_Institucional.php b/sistema/local_lib/HTML_Institucional.php new file mode 100644 index 0000000..4a4fa49 --- /dev/null +++ b/sistema/local_lib/HTML_Institucional.php @@ -0,0 +1,172 @@ + | +// +--------------------------------------------------------------------+ +// +// $Id: HTML_Mensaje.php 295 2004-01-30 17:20:58Z llucar $ +// + +require_once 'MECON/HTML/Image.php'; +require_once 'MECON/HTML/Link.php'; +require_once 'HTML/Table.php'; + +/** + * Clase para mostrar mensajes en Intranet. + * + * @access public + */ +class HTML_Institucional extends HTML_Table { + /** + * @var int $ancho + * @access private + */ + var $_ancho; + + /** + * @var string $pagina + * @access private + */ + var $_pagina; + + /** + * @var string $texto + * @access private + */ + var $_texto; + + /** + * Ancho de la ventana js que se abre. + * + * @var int $ancho_js + * @access private + */ + var $_ancho_js; + + /** + * Alto de la ventana js que se abre. + * + * @var int $alto_js + * @access private + */ + var $_alto_js; + + /** + * Constructor. + * + * @param string $pagina Ruta a la página del institucional. + * @param string $texto Texto del mensaje. + * @param int $ancho Ancho del mensaje. + * @param int $ancho_js Ancho de la ventana nueva. + * @param int $alto_js Alto de la ventana nueva. + * + * @return void + * @access public + */ + function HTML_Institucional($pagina, $texto, $ancho = 180, $ancho_js = 500, + $alto_js = 400) + { + $this->_pagina = $pagina; + $this->_texto = $texto; + $this->_ancho = $ancho; + $this->_ancho_js = $ancho_js; + $this->_alto_js = $alto_js; + } + + /** + * Muestra el mensaje. + * + * @return string + * @access public + */ + function toHtml() + { + //Ajusto el ancho del mensaje + $ancho_msg = $this->_ancho - 48 - 48; + + //Imagenes + $IMG_Izquierda =& new MECON_HTML_Image( + '/sistemas/intranet/images/institucional_izquierda.gif'); + $IMG_Texto =& new MECON_HTML_Image( + '/sistemas/intranet/images/institucional_fondo.gif'); + $IMG_Derecha =& new MECON_HTML_Image( + '/sistemas/intranet/images/institucional_derecha.gif'); + + //Armo el link + $attrs = 'width='. $this->_ancho_js .',height='. $this->_alto_js + .',screenX=50,screenY=50,scrollbars=yes'; + + $attribute = "window.open('". $this->_pagina ."', '', '". $attrs + ."');return(false);"; + $link = new MECON_HTML_Link('', $this->_texto); + $link->updateAttributes(array ('onClick' => $attribute)); + + //Armo la tabla contenedora + $tabla =& new HTML_Table ( + array( + 'border' => '0', + 'cellpadding' => '0', + 'cellspacing' => '0', + 'width' => $this->_ancho + ) + ); + $tabla->addrow( + array( + $IMG_Izquierda, + $link, + $IMG_Derecha), + array ('valign'=>'top') + ); + $tabla->updateColAttributes(0, array('width'=>'48')); + $tabla->updateColAttributes(1, + array( + 'width' => $ancho_msg, + 'align' => 'center', + 'valign' => 'middle' + ) + ); + $tabla->updateColAttributes(2, array('width'=>'48')); + $tabla->updateCellAttributes(0, 1, + array( + 'background'=>'/sistemas/intranet/images/institucional_fondo.gif', + 'class'=>'institucional' + ) + ); + + return $tabla; + } + + /** + * Obtener la hoja de estilos. + * + * @return string + * @access public + */ + function getCSS() + { + $css = '/sistemas/intranet/css/institucional.css'; + return $css; + } + +} +?> diff --git a/sistema/www/css/institucional.css b/sistema/www/css/institucional.css new file mode 100644 index 0000000..b8cffb8 --- /dev/null +++ b/sistema/www/css/institucional.css @@ -0,0 +1,12 @@ +A:link, A:visited, A:active { text-decoration: none } +.institucional { + COLOR: #FFFFFF; + FONT-FAMILY: Arial, Helvetica, sans-serif; + FONT-SIZE: 10pt; + FONT-WEIGHT: bold ; + font-style: normal; + line-height: normal ; + background-position: left centre; + text-align: center; + vertical-align: middle +} diff --git a/sistema/www/images/institucional_derecha.gif b/sistema/www/images/institucional_derecha.gif new file mode 100644 index 0000000000000000000000000000000000000000..39f19d5be9be7ec82a6837c1c5deaaa3c28f274a GIT binary patch literal 421 zcmZ?wbhEHb^ky(%IKsg29|(SZ`~UsJmv2A*e|rA^&E4m3KK_4x`Tvu1|L-6De{=Wk zN3Z^0-*)c$Hh7byN@VHIHzWzYes0@=yH z`d>kzFC}wcMwe8tuy2UY`I4GD73<#Dyno%2kjdD1wXbJM(a9XE`2j1K0y#R^_#Ov} zy{+1RkLBU78$}0Sm_!(|>8PY_t@-D}!O(nS+PU|}w*)-unzJ~R8ckZdGTIobjJqes zwJ{f@PnzM!o;P9UJfGxL!}&|R7@6IcE^XsmylTmEgY`?=8aHp?7TG>OS$OxnHo^V# z82Ap)WaK?QgNg0*r1J9%PT)`T8qh;q*VIH>YSXa8RA1^VE9Al8egCOwx+4jtERpXe|3+f zO{ZdV+QRLcq3e`VG$j`|oStrwd}@y8<}@Ehi*}JjP3PA0^Bw#*6fA5_?-5|I1^{Im B#I67U literal 0 HcmV?d00001 diff --git a/sistema/www/images/institucional_fondo.gif b/sistema/www/images/institucional_fondo.gif new file mode 100644 index 0000000000000000000000000000000000000000..7bcc23c046e3fdc364df69ddd6e0659ba2ceb98d GIT binary patch literal 67 zcmZ?wbhEHbWMwd5n8?8J9|&IF_NKSn0SpDe5*49pBV3_t*qXJ8U(k)3(yE&t*< TTW)o4zPG1(l}dXc1A{dHFWeYg literal 0 HcmV?d00001 diff --git a/sistema/www/images/institucional_izquierda.gif b/sistema/www/images/institucional_izquierda.gif new file mode 100644 index 0000000000000000000000000000000000000000..a543e152b06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