]> git.llucax.com Git - mecon/intranet.git/commitdiff
Agrego el objeto HTML_Servicio para dibujar el cuadrito de servicio
authorGonzalo Merayo <merayo@gmail.com>
Thu, 24 Jul 2003 18:43:01 +0000 (18:43 +0000)
committerGonzalo Merayo <merayo@gmail.com>
Thu, 24 Jul 2003 18:43:01 +0000 (18:43 +0000)
doc/intranet.xmi
sistema/local_lib/HTML_Copete.php
sistema/local_lib/HTML_DietMarco.php
sistema/local_lib/HTML_Servicio.php [new file with mode: 0644]
sistema/www/images/servicio_borde_sup.gif [deleted file]
sistema/www/images/servicio_borde_sup_cen.gif [new file with mode: 0644]
sistema/www/images/servicio_borde_sup_der.gif [new file with mode: 0644]
sistema/www/images/servicio_borde_sup_izq.gif [new file with mode: 0644]
sistema/www/servicios.php

index a8f9365672ecb2c8f422445126d90e3e7ba4cdbe..535a01bcfc29226105c8aa794633f49a6f61a6f7 100644 (file)
@@ -9,7 +9,7 @@
   <XMI.metamodel xmi.name="UML" href="UML.xml" xmi.version="1.3" />
  </XMI.header>
  <XMI.content>
   <XMI.metamodel xmi.name="UML" href="UML.xml" xmi.version="1.3" />
  </XMI.header>
  <XMI.content>
-  <docsettings viewid="152" documentation="" uniqueid="164" />
+  <docsettings viewid="152" documentation="" uniqueid="167" />
   <umlobjects>
    <UML:Class stereotype="" package="" xmi.id="153" abstract="0" documentation="x2c:extern
 x2c:include:HTML/Page.php
   <umlobjects>
    <UML:Class stereotype="" package="" xmi.id="153" abstract="0" documentation="x2c:extern
 x2c:include:HTML/Page.php
@@ -30,14 +30,21 @@ x2c:include:HTML/Page.php
    <UML:Class stereotype="" package="" xmi.id="164" abstract="0" documentation="x2c:extern
 x2c:include:HTML/Table.php
 " name="HTML_Table" static="0" scope="200" />
    <UML:Class stereotype="" package="" xmi.id="164" abstract="0" documentation="x2c:extern
 x2c:include:HTML/Table.php
 " name="HTML_Table" static="0" scope="200" />
+   <UML:Class stereotype="" package="sistema/local_lib" xmi.id="165" abstract="0" documentation="" name="HTML_Servicio" static="0" scope="200" >
+    <UML:Operation stereotype="" package="" xmi.id="166" type="void" abstract="0" documentation="" name="HTML_Servicio" static="0" scope="200" >
+     <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="int" abstract="0" documentation="" name="seccion" static="0" scope="200" />
+    </UML:Operation>
+    <UML:Operation stereotype="" package="" xmi.id="167" type="void" abstract="0" documentation="" name="toHTML" static="0" scope="200" />
+   </UML:Class>
   </umlobjects>
   <diagrams>
    <diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" showgrid="0" showopsig="1" usefillcolor="1" snapx="10" snapy="10" showatts="1" xmi.id="152" documentation="" type="402" showops="1" showpackage="0" name="class diagram" localid="30000" showstereotype="0" showscope="1" font="Helvetica,8,-1,5,50,0,0,0,0,0" linecolor="#ff0000" >
     <widgets>
      <UML:ConceptWidget usesdiagramfillcolour="0" width="77" showattsigs="601" usesdiagramusefillcolour="0" x="199" linecolour="#ff0000" y="99" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="32" usefillcolor="1" showattributes="1" xmi.id="153" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
      <UML:ConceptWidget usesdiagramfillcolour="0" width="236" showattsigs="601" usesdiagramusefillcolour="0" x="85" linecolour="#ff0000" y="240" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="56" usefillcolor="1" showattributes="1" xmi.id="154" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
   </umlobjects>
   <diagrams>
    <diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" showgrid="0" showopsig="1" usefillcolor="1" snapx="10" snapy="10" showatts="1" xmi.id="152" documentation="" type="402" showops="1" showpackage="0" name="class diagram" localid="30000" showstereotype="0" showscope="1" font="Helvetica,8,-1,5,50,0,0,0,0,0" linecolor="#ff0000" >
     <widgets>
      <UML:ConceptWidget usesdiagramfillcolour="0" width="77" showattsigs="601" usesdiagramusefillcolour="0" x="199" linecolour="#ff0000" y="99" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="32" usefillcolor="1" showattributes="1" xmi.id="153" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
      <UML:ConceptWidget usesdiagramfillcolour="0" width="236" showattsigs="601" usesdiagramusefillcolour="0" x="85" linecolour="#ff0000" y="240" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="56" usefillcolor="1" showattributes="1" xmi.id="154" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
-     <UML:ConceptWidget usesdiagramfillcolour="0" width="204" showattsigs="601" usesdiagramusefillcolour="0" x="390" linecolour="#ff0000" y="213" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="40" usefillcolor="1" showattributes="1" xmi.id="162" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
-     <UML:ConceptWidget usesdiagramfillcolour="1" width="80" showattsigs="601" usesdiagramusefillcolour="1" x="410" linecolour="none" y="86" showopsigs="601" usesdiagramlinecolour="1" fillcolour="none" height="32" usefillcolor="1" showattributes="1" xmi.id="164" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
+     <UML:ConceptWidget usesdiagramfillcolour="0" width="204" showattsigs="601" usesdiagramusefillcolour="0" x="181" linecolour="#ff0000" y="364" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="40" usefillcolor="1" showattributes="1" xmi.id="162" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
+     <UML:ConceptWidget usesdiagramfillcolour="1" width="80" showattsigs="601" usesdiagramusefillcolour="1" x="391" linecolour="none" y="109" showopsigs="601" usesdiagramlinecolour="1" fillcolour="none" height="32" usefillcolor="1" showattributes="1" xmi.id="164" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
+     <UML:ConceptWidget usesdiagramfillcolour="0" width="208" showattsigs="601" usesdiagramusefillcolour="0" x="407" linecolour="#ff0000" y="273" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="56" usefillcolor="1" showattributes="1" xmi.id="165" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
     </widgets>
     <messages/>
     <associations>
     </widgets>
     <messages/>
     <associations>
@@ -47,10 +54,16 @@ x2c:include:HTML/Table.php
        <endpoint endx="237" endy="131" />
       </linepath>
      </UML:AssocWidget>
        <endpoint endx="237" endy="131" />
       </linepath>
      </UML:AssocWidget>
-     <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="2" indexb="1" widgetbid="164" widgetaid="162" documentation="" type="500" >
+     <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="3" indexb="1" widgetbid="164" widgetaid="162" documentation="" type="500" >
       <linepath>
       <linepath>
-       <startpoint startx="492" starty="213" />
-       <endpoint endx="450" endy="118" />
+       <startpoint startx="283" starty="364" />
+       <endpoint endx="417" endy="141" />
+      </linepath>
+     </UML:AssocWidget>
+     <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="3" indexb="2" widgetbid="164" widgetaid="165" documentation="" type="500" >
+      <linepath>
+       <startpoint startx="511" starty="273" />
+       <endpoint endx="444" endy="141" />
       </linepath>
      </UML:AssocWidget>
     </associations>
       </linepath>
      </UML:AssocWidget>
     </associations>
@@ -67,6 +80,10 @@ x2c:include:HTML/Table.php
       <listitem open="0" type="815" id="157" label="addTitle" />
      </listitem>
      <listitem open="1" type="813" id="153" label="HTML_Page" />
       <listitem open="0" type="815" id="157" label="addTitle" />
      </listitem>
      <listitem open="1" type="813" id="153" label="HTML_Page" />
+     <listitem open="1" type="813" id="165" label="HTML_Servicio" >
+      <listitem open="0" type="815" id="166" label="HTML_Servicio" />
+      <listitem open="0" type="815" id="167" label="toHTML" />
+     </listitem>
      <listitem open="1" type="813" id="164" label="HTML_Table" />
      <listitem open="0" type="807" id="152" label="class diagram" />
     </listitem>
      <listitem open="1" type="813" id="164" label="HTML_Table" />
      <listitem open="0" type="807" id="152" label="class diagram" />
     </listitem>
index a46024070ff3901ad7cb655bbb335d3b0fb05ea8..9d09a4de8451db7944e94b9bfb601ffb0e284788 100644 (file)
@@ -106,4 +106,4 @@ parent::HTML_Table(array('width'  => '760',
     // -X2C
 
 } // -X2C Class :HTML_Copete
     // -X2C
 
 } // -X2C Class :HTML_Copete
-?>
+?>
\ No newline at end of file
index 25f16b31754daa6dbeb8e2ff3b46930174b791a5..fd11a0a97106a294471aa9ecf96a411707485618 100644 (file)
@@ -76,4 +76,4 @@ class HTML_DietMarco extends HTML_Page {
     // -X2C
 
 } // -X2C Class :HTML_DietMarco
     // -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 (file)
index 0000000..ea8977f
--- /dev/null
@@ -0,0 +1,98 @@
+<?php
+// vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
+// +--------------------------------------------------------------------+
+// |                      Ministerio de Economía                        |
+// |                             Intranet                              |
+// +--------------------------------------------------------------------+
+// | This file is part of Intranet.                                    |
+// |                                                                    |
+// | Intranet 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.                             |
+// |                                                                    |
+// | Intranet 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  |
+// | along with Hooks; if not, write to the Free Software Foundation,   |
+// | Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA      |
+// +--------------------------------------------------------------------+
+// | Creado: Thu Jul 24 15:27:04 2003                                   |
+// | Autor:  Gonzalo Merayo <gmeray@mecon.gov.ar>                                                    |
+// +--------------------------------------------------------------------+
+//
+// $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 (file)
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 (file)
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 (file)
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 (file)
index 0000000..6108782
Binary files /dev/null and b/sistema/www/images/servicio_borde_sup_izq.gif differ
index 85a296b10e20379ce372873c3f9cd9a92f92e6e5..9831cf086aef72d7a3f05e45da6a45394864790c 100644 (file)
@@ -1,36 +1,10 @@
 <?
   require_once '../local_lib/HTML_DietMarco.php';
 <?
   require_once '../local_lib/HTML_DietMarco.php';
-  require_once '../local_lib/intranetdb.php';
-  require_once 'MECON/HTML/Arbol/ArbolDB.php';
+  require_once '../local_lib/HTML_Servicio.php';
   $m = new HTML_DietMarco('servicios');
   $m->addTitle('Servicios');
 
   $m = new HTML_DietMarco('servicios');
   $m->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();
 
   $m->addBodyContent($seccion);
   $m->display();