From 53e18344699b0c7545128534f757e4d4f3ec639f Mon Sep 17 00:00:00 2001 From: Gonzalo Merayo Date: Thu, 24 Jul 2003 18:43:01 +0000 Subject: [PATCH] Agrego el objeto HTML_Servicio para dibujar el cuadrito de servicio --- doc/intranet.xmi | 29 ++++-- sistema/local_lib/HTML_Copete.php | 2 +- sistema/local_lib/HTML_DietMarco.php | 2 +- sistema/local_lib/HTML_Servicio.php | 98 ++++++++++++++++++ sistema/www/images/servicio_borde_sup.gif | Bin 361 -> 0 bytes sistema/www/images/servicio_borde_sup_cen.gif | Bin 0 -> 174 bytes sistema/www/images/servicio_borde_sup_der.gif | Bin 0 -> 262 bytes sistema/www/images/servicio_borde_sup_izq.gif | Bin 0 -> 173 bytes sistema/www/servicios.php | 30 +----- 9 files changed, 125 insertions(+), 36 deletions(-) create mode 100644 sistema/local_lib/HTML_Servicio.php delete mode 100644 sistema/www/images/servicio_borde_sup.gif create mode 100644 sistema/www/images/servicio_borde_sup_cen.gif create mode 100644 sistema/www/images/servicio_borde_sup_der.gif create mode 100644 sistema/www/images/servicio_borde_sup_izq.gif 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 ad6b3e149b1590d48ed4637c159e98932815aa3b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 361 zcmV-v0hazpNk%w1VQ2w70FeLy00030|Nmx%qyPW^A^8LW00093EC2ui0B8X`00092 zl#i*)?GK}zwAzca-n{z{hT=$;=82|Pz_#uS$MQ_q_KoNI&iDQg3<`(D7ovzvDwoWr z^9hZ*j?$|2ip^@bK`QqP4vWX+nzxKjtJiGbxebrY=ifK|j?e3V_PzfPsMi-rSZFvl zc&NC@=#I^*{DouTzNs7H~Yt8+==nXzjC{BL9XO6y3r_TP~ z<_3<_btq49_e6qC%R zZRw0kRnV#R3aVnaQZ4tJ^n%AiG5NeRqt`Sw``vQG=O{V-KCw&e*TfJu4LY> M3(v%^ZcqRKI|#0VEdT%j literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..6108782458de9014c841e586dcc1b2547b0704f3 GIT binary patch literal 173 zcmZ?wbhEHbRAI1Tn8*ME|Ns9_Yh4T^6@RiYGB7YR=zv5)@(fIMQ~Fn)etW)Y&X!x* zy!ZaR;wy^x2utpqr?GNf!s{-lm_u94@8_>OU7P;fv&rev`5Vr!rkJapm2BR%L_4cX z{Y=7Uk?h>lvQ3BMuFZ(%TUwr&d%NV^y2g)5e=Gc-P5+(t|EIX9g=s`+#n)@4Kc-q3 XKEEvSVTWO7V5hL=&Wvf13=Gx)7avb? literal 0 HcmV?d00001 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(); -- 2.43.0