From: Gonzalo Merayo Date: Thu, 24 Jul 2003 18:43:01 +0000 (+0000) Subject: Agrego el objeto HTML_Servicio para dibujar el cuadrito de servicio X-Git-Tag: svn_import~219 X-Git-Url: https://git.llucax.com/mecon/intranet.git/commitdiff_plain/53e18344699b0c7545128534f757e4d4f3ec639f?ds=inline;hp=c85840ea4e06c145d9fa5cd4ebc186e2d66736d9 Agrego el objeto HTML_Servicio para dibujar el cuadrito de servicio --- diff --git a/doc/intranet.xmi b/doc/intranet.xmi index a8f9365..535a01b 100644 --- a/doc/intranet.xmi +++ b/doc/intranet.xmi @@ -9,7 +9,7 @@ - + + + + + + + - - + + + @@ -47,10 +54,16 @@ x2c:include:HTML/Table.php - + - - + + + + + + + + @@ -67,6 +80,10 @@ x2c:include:HTML/Table.php + + + + diff --git a/sistema/local_lib/HTML_Copete.php b/sistema/local_lib/HTML_Copete.php index a460240..9d09a4d 100644 --- a/sistema/local_lib/HTML_Copete.php +++ b/sistema/local_lib/HTML_Copete.php @@ -106,4 +106,4 @@ parent::HTML_Table(array('width' => '760', // -X2C } // -X2C Class :HTML_Copete -?> +?> \ No newline at end of file diff --git a/sistema/local_lib/HTML_DietMarco.php b/sistema/local_lib/HTML_DietMarco.php index 25f16b3..fd11a0a 100644 --- a/sistema/local_lib/HTML_DietMarco.php +++ b/sistema/local_lib/HTML_DietMarco.php @@ -76,4 +76,4 @@ class HTML_DietMarco extends HTML_Page { // -X2C } // -X2C Class :HTML_DietMarco -?> +?> \ No newline at end of file diff --git a/sistema/local_lib/HTML_Servicio.php b/sistema/local_lib/HTML_Servicio.php new file mode 100644 index 0000000..ea8977f --- /dev/null +++ b/sistema/local_lib/HTML_Servicio.php @@ -0,0 +1,98 @@ + | +// +--------------------------------------------------------------------+ +// +// $Id: xmi2code.tpl.php 1 2003-06-23 18:29:20Z gmeray $ +// + + +require_once 'HTML/Image.php'; + +// +X2C includes +require_once 'HTML/Table.php'; +// ~X2C + +// +X2C Class 165 :HTML_Servicio +/** + * @access public + */ +class HTML_Servicio extends HTML_Table { + // ~X2C + + // +X2C Operation 166 + /** + * @param int $seccion + * + * @return void + * @access public + */ + function HTML_Servicio($seccion) // ~X2C + { + parent::HTML_Table(array('width' =>'360', + 'border' => '0', + 'cellspacing' => '0', + 'cellpadding' => '0', + 'bgcolor' => '#FFFFFF')); + } + // -X2C + + // +X2C Operation 167 + /** + * @return void + * @access public + */ + function toHTML() // ~X2C + { + $this->addRow(array("Nombre(sin estilo)"), + array('align' => 'center', + 'class' => 'arboltitulo', + 'background'=>'images/servicio_cabecera.gif', + 'height'=>30)); + $img = new HTML_Image('images/servicio_bullet.gif'); + $int =& new HTML_Table(array('width' =>'360', + 'border' => '0', + 'cellspacing' => '0', + 'cellpadding' => '0', + 'bgcolor' => '#FFFFFF')); + $int->addRow(array($img, 'Nombre(sin estilo)',$img,'nombre'), + array('valign' => 'top')); + $int->updateColAttributes(0, array('width' => '10%', + 'background' => 'images/servicio_borde_sup_izq.gif')); + $int->updateColAttributes(1, array('width' => '40%', + 'background' => 'images/servicio_borde_sup_cen.gif')); + $int->updateColAttributes(2, array('width' => '10%', + 'background' => 'images/servicio_borde_sup_cen.gif')); + $int->updateColAttributes(3, array('width' => '40%', + 'background' => 'images/servicio_borde_sup_der.gif')); + $this->addRow(array($int)); + $this->addRow(array($int)); + $this->addRow(array($int)); + $this->addRow(array(new HTML_Image('images/servicio_borde_inf.gif'))); + return parent::toHTML(); + } + // -X2C + +} // -X2C Class :HTML_Servicio +?> diff --git a/sistema/www/images/servicio_borde_sup.gif b/sistema/www/images/servicio_borde_sup.gif deleted file mode 100644 index ad6b3e1..0000000 Binary files a/sistema/www/images/servicio_borde_sup.gif and /dev/null differ diff --git a/sistema/www/images/servicio_borde_sup_cen.gif b/sistema/www/images/servicio_borde_sup_cen.gif new file mode 100644 index 0000000..bc31e44 Binary files /dev/null and b/sistema/www/images/servicio_borde_sup_cen.gif differ diff --git a/sistema/www/images/servicio_borde_sup_der.gif b/sistema/www/images/servicio_borde_sup_der.gif new file mode 100644 index 0000000..fc7d33d Binary files /dev/null and b/sistema/www/images/servicio_borde_sup_der.gif differ diff --git a/sistema/www/images/servicio_borde_sup_izq.gif b/sistema/www/images/servicio_borde_sup_izq.gif new file mode 100644 index 0000000..6108782 Binary files /dev/null and b/sistema/www/images/servicio_borde_sup_izq.gif differ diff --git a/sistema/www/servicios.php b/sistema/www/servicios.php index 85a296b..9831cf0 100644 --- a/sistema/www/servicios.php +++ b/sistema/www/servicios.php @@ -1,36 +1,10 @@ addTitle('Servicios'); - $seccion =& new HTML_Table(array('width' =>'360', - 'border' => '0', - 'cellspacing' => '0', - 'cellpadding' => '0', - 'bgcolor' => '#FFFFFF')); - $seccion->addRow(array("Nombre(sin estilo)"), array('align' => 'center', - 'class' => 'arboltitulo', - 'background'=>'images/servicio_cabecera.gif', - 'height'=>32)); - $img = new HTML_Image('images/servicio_bullet.gif'); - $int =& new HTML_Table(array('width' =>'360', - 'border' => '0', - 'cellspacing' => '0', - 'cellpadding' => '0', - 'bgcolor' => '#FFFFFF', - 'background' => 'images/servicio_borde_sup.gif')); - $int->addRow(array($img, 'Nombre(sin estilo)',$img,'nombre'), - array('valign' => 'top')); - $int->updateColAttributes(0, array('width' => '10%')); - $int->updateColAttributes(1, array('width' => '40%')); - $int->updateColAttributes(2, array('width' => '10%')); - $int->updateColAttributes(3, array('width' => '40%')); - $seccion->addRow(array($int)); - $seccion->addRow(array($int)); - $seccion->addRow(array($int)); - $seccion->addRow(array(new HTML_Image('images/servicio_borde_inf.gif'))); + $seccion =& new HTML_Servicio(1); $m->addBodyContent($seccion); $m->display();