]> git.llucax.com Git - mecon/intranet.git/commitdiff
Agregamos la clase HTML_Mensaje para mostrar mensajes en los servicios.
authorMyrna Degano <mdegan@mecon.gov.ar>
Mon, 3 Nov 2003 22:28:56 +0000 (22:28 +0000)
committerMyrna Degano <mdegan@mecon.gov.ar>
Mon, 3 Nov 2003 22:28:56 +0000 (22:28 +0000)
16 files changed:
doc/intranet.xmi
sistema/local_lib/HTML_Copete.php
sistema/local_lib/HTML_DietMarco.php
sistema/local_lib/HTML_Login.php
sistema/local_lib/HTML_Mensaje.php [new file with mode: 0644]
sistema/local_lib/HTML_Servicio.php
sistema/www/css/mensaje.css [new file with mode: 0644]
sistema/www/images/mensaje_alerta.gif [new file with mode: 0644]
sistema/www/images/mensaje_derecha.gif [new file with mode: 0644]
sistema/www/images/mensaje_error.gif [new file with mode: 0644]
sistema/www/images/mensaje_fondo.gif [new file with mode: 0644]
sistema/www/images/mensaje_inferior.gif [new file with mode: 0644]
sistema/www/images/mensaje_ok.gif [new file with mode: 0644]
sistema/www/images/mensaje_pixel.gif [new file with mode: 0644]
sistema/www/images/mensaje_superior.gif [new file with mode: 0644]
test/mensajes.php [new file with mode: 0644]

index 699d09f7893d5ed83441f2898185b43798003cd8..41d640b2cb471198d4e21eb66e7d52b153487b7e 100644 (file)
@@ -6,11 +6,11 @@
    <XMI.exporterVersion>1.1.5</XMI.exporterVersion>
    <XMI.exporterEncoding>UnicodeUTF8</XMI.exporterEncoding>
   </XMI.documentation>
-  <XMI.model xmi.name="intranet" href="/home/gmeray/747/public_html/intranet/doc/intranet.xmi" />
+  <XMI.model xmi.name="intranet" href="/home/mdegan/public_html/intranet/doc/intranet.xmi" />
   <XMI.metamodel xmi.name="UML" href="UML.xml" xmi.version="1.3" />
  </XMI.header>
  <XMI.content>
-  <docsettings viewid="152" documentation="" uniqueid="179" />
+  <docsettings viewid="152" documentation="Clase para mostrar mensajes en Intranet." uniqueid="187" />
   <umlobjects>
    <UML:Class stereotype="" package="" xmi.id="153" abstract="0" documentation="x2c:extern
 x2c:include:HTML/Page.php
@@ -21,6 +21,7 @@ x2c:include:HTML/Page.php
     </UML:Operation>
     <UML:Operation stereotype="" package="" xmi.id="158" type="void" abstract="0" documentation="" name="HTML_DietMarco" static="0" scope="200" >
      <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="string" abstract="0" documentation="" name="seccion" static="0" scope="200" />
+     <UML:Parameter stereotype="" package="" xmi.id="2" value="" type="string" abstract="0" documentation="" name="titulo" static="0" scope="201" />
     </UML:Operation>
     <UML:Operation stereotype="" package="" xmi.id="168" type="void" abstract="0" documentation="" name="addBodyContent" static="0" scope="200" >
      <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="int" abstract="0" documentation="" name="content" static="0" scope="200" />
@@ -56,57 +57,81 @@ x2c:include:HTML/Table.php
     <UML:Operation stereotype="" package="" xmi.id="173" type="void" abstract="0" documentation="" name="getCSS" static="0" scope="200" />
     <UML:Operation stereotype="" package="" xmi.id="174" type="void" abstract="0" documentation="" name="toHTML" static="0" scope="200" />
    </UML:Class>
+   <UML:Class stereotype="class" package="sistema/local_lib" xmi.id="180" abstract="0" documentation="Clase para mostrar mensajes en Intranet." name="HTML_Mensaje" static="0" scope="200" >
+    <UML:Operation stereotype="" package="" xmi.id="181" type="void" abstract="0" documentation="Constructor." name="HTML_Mensaje" static="0" scope="200" >
+     <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="string" abstract="0" documentation="Tipo de mensaje.
+Puede ser: 'error', 'ok', 'alerta'." name="tipo" static="0" scope="201" />
+     <UML:Parameter stereotype="" package="" xmi.id="2" value="null" type="string" abstract="0" documentation="Texto del mensaje." name="texto" static="0" scope="201" />
+     <UML:Parameter stereotype="" package="" xmi.id="3" value="null" type="int" abstract="0" documentation="Ancho del mensaje." name="ancho" static="0" scope="201" />
+    </UML:Operation>
+    <UML:Operation stereotype="" package="" xmi.id="182" type="string" abstract="0" documentation="Muestra el mensaje." name="toHtml" static="0" scope="200" />
+    <UML:Operation stereotype="" package="" xmi.id="187" type="string" abstract="0" documentation="Obtener la hoja de estilos." name="getCSS" static="0" scope="200" />
+    <UML:Attribute stereotype="" package="" xmi.id="183" value="" type="string" abstract="0" documentation="" name="img" static="0" scope="201" />
+    <UML:Attribute stereotype="" package="" xmi.id="185" value="" type="int" abstract="0" documentation="" name="ancho" static="0" scope="201" />
+    <UML:Attribute stereotype="" package="" xmi.id="186" value="" type="string" abstract="0" documentation="" name="texto" static="0" scope="201" />
+   </UML:Class>
    <UML:Association nameb="" stereotype="" visibilitya="200" visibilityb="200" assoctype="500" rolea="154" roleb="153" multia="" doca="" multib="" docb="" package="" xmi.id="-1" abstract="0" documentation="" name="" static="0" scope="200" changeabilitya="900" changeabilityb="900" namea="" />
    <UML:Association nameb="" stereotype="" visibilitya="200" visibilityb="200" assoctype="500" rolea="162" roleb="164" multia="" doca="" multib="" docb="" package="" xmi.id="-1" abstract="0" documentation="" name="" static="0" scope="200" changeabilitya="900" changeabilityb="900" namea="" />
    <UML:Association nameb="" stereotype="" visibilitya="200" visibilityb="200" assoctype="500" rolea="165" roleb="164" multia="" doca="" multib="" docb="" package="" xmi.id="-1" abstract="0" documentation="" name="" static="0" scope="200" changeabilitya="900" changeabilityb="900" namea="" />
    <UML:Association nameb="" stereotype="" visibilitya="200" visibilityb="200" assoctype="500" rolea="171" roleb="164" multia="" doca="" multib="" docb="" package="" xmi.id="-1" abstract="0" documentation="" name="" static="0" scope="200" changeabilitya="900" changeabilityb="900" namea="" />
+   <UML:Association nameb="" stereotype="" visibilitya="200" visibilityb="200" assoctype="500" rolea="180" roleb="164" multia="" doca="" multib="" docb="" package="" xmi.id="-1" abstract="0" documentation="" name="" static="0" scope="200" changeabilitya="900" changeabilityb="900" namea="" />
   </umlobjects>
   <diagrams>
-   <diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" zoom="100" showgrid="0" showopsig="1" usefillcolor="1" snapx="10" canvaswidth="730" snapy="10" showatts="1" xmi.id="152" documentation="" type="402" showops="1" showpackage="0" name="class diagram" localid="30000" showstereotype="0" showscope="1" snapcsgrid="0" font="Helvetica,4,-1,5,50,0,0,0,0,0" linecolor="#ff0000" canvasheight="653" >
+   <diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" zoom="100" showgrid="0" showopsig="1" usefillcolor="1" snapx="10" canvaswidth="870" snapy="10" showatts="1" xmi.id="152" documentation="" type="402" showops="1" showpackage="0" name="class diagram" localid="30000" showstereotype="0" showscope="1" snapcsgrid="0" font="Helvetica,4,-1,5,50,0,0,0,0,0" linecolor="#ff0000" canvasheight="451" >
     <widgets>
      <UML:ClassWidget usesdiagramfillcolour="0" width="70" showattsigs="601" usesdiagramusefillcolour="0" x="108" linecolour="#ff0000" y="23" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="28" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="153" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
-     <UML:ClassWidget usesdiagramfillcolour="0" width="207" showattsigs="601" usesdiagramusefillcolour="0" x="22" linecolour="#ff0000" y="109" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="77" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="154" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
-     <UML:ClassWidget usesdiagramfillcolour="0" width="178" showattsigs="601" usesdiagramusefillcolour="0" x="79" linecolour="#ff0000" y="277" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="98" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="162" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
+     <UML:ClassWidget usesdiagramfillcolour="0" width="273" showattsigs="601" usesdiagramusefillcolour="0" x="22" linecolour="#ff0000" y="109" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="77" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="154" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
+     <UML:ClassWidget usesdiagramfillcolour="0" width="179" showattsigs="601" usesdiagramusefillcolour="0" x="0" linecolour="#ff0000" y="275" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="98" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="162" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
      <UML:ClassWidget usesdiagramfillcolour="1" width="73" showattsigs="601" usesdiagramusefillcolour="1" x="352" linecolour="none" y="75" showopsigs="601" instancename="" usesdiagramlinecolour="1" fillcolour="none" height="28" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="164" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
-     <UML:ClassWidget usesdiagramfillcolour="0" width="181" showattsigs="601" usesdiagramusefillcolour="0" x="294" linecolour="#ff0000" y="258" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="63" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="165" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
-     <UML:ClassWidget usesdiagramfillcolour="0" width="115" showattsigs="601" usesdiagramusefillcolour="0" x="519" linecolour="#ff0000" y="259" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="63" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="171" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
+     <UML:ClassWidget usesdiagramfillcolour="0" width="182" showattsigs="601" usesdiagramusefillcolour="0" x="215" linecolour="#ff0000" y="292" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="63" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="165" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
+     <UML:ClassWidget usesdiagramfillcolour="0" width="116" showattsigs="601" usesdiagramusefillcolour="0" x="403" linecolour="#ff0000" y="327" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="63" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="171" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
+     <UML:ClassWidget usesdiagramfillcolour="0" width="355" showattsigs="601" usesdiagramusefillcolour="0" x="511" linecolour="#ff0000" y="206" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="98" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="180" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
     </widgets>
     <messages/>
     <associations>
      <UML:AssocWidget totalcounta="2" indexa="1" visibilityB="200" totalcountb="2" indexb="1" widgetbid="153" roleBdoc="" widgetaid="154" roleAdoc="" documentation="" type="500" changeabilityA="900" changeabilityB="900" visibilityA="200" >
       <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="703" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
-      <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="7" linecolour="none" y="-11" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="711" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
-      <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="712" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+      <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="27" linecolour="none" y="-11" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="711" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+      <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="12" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="712" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
       <linepath>
-       <startpoint startx="125" starty="109" />
+       <startpoint startx="158" starty="109" />
        <endpoint endx="143" endy="51" />
       </linepath>
      </UML:AssocWidget>
-     <UML:AssocWidget totalcounta="2" indexa="1" visibilityB="200" totalcountb="4" indexb="1" widgetbid="164" roleBdoc="" widgetaid="162" roleAdoc="" documentation="" type="500" changeabilityA="900" changeabilityB="900" visibilityA="200" >
+     <UML:AssocWidget totalcounta="2" indexa="1" visibilityB="200" totalcountb="5" indexb="1" widgetbid="164" roleBdoc="" widgetaid="162" roleAdoc="" documentation="" type="500" changeabilityA="900" changeabilityB="900" visibilityA="200" >
       <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="703" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
-      <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="711" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+      <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="-79" linecolour="none" y="-2" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="711" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
       <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="712" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
       <linepath>
-       <startpoint startx="168" starty="277" />
-       <endpoint endx="370" endy="103" />
+       <startpoint startx="89" starty="275" />
+       <endpoint endx="366" endy="103" />
       </linepath>
      </UML:AssocWidget>
-     <UML:AssocWidget totalcounta="2" indexa="1" visibilityB="200" totalcountb="4" indexb="2" widgetbid="164" roleBdoc="" widgetaid="165" roleAdoc="" documentation="" type="500" changeabilityA="900" changeabilityB="900" visibilityA="200" >
+     <UML:AssocWidget totalcounta="2" indexa="1" visibilityB="200" totalcountb="5" indexb="2" widgetbid="164" roleBdoc="" widgetaid="165" roleAdoc="" documentation="" type="500" changeabilityA="900" changeabilityB="900" visibilityA="200" >
       <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="703" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
-      <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="711" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+      <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="-79" linecolour="none" y="34" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="711" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
       <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="712" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
       <linepath>
-       <startpoint startx="384" starty="258" />
-       <endpoint endx="388" endy="103" />
+       <startpoint startx="306" starty="292" />
+       <endpoint endx="381" endy="103" />
       </linepath>
      </UML:AssocWidget>
-     <UML:AssocWidget totalcounta="2" indexa="1" visibilityB="200" totalcountb="4" indexb="3" widgetbid="164" roleBdoc="" widgetaid="171" roleAdoc="" documentation="" type="500" changeabilityA="900" changeabilityB="900" visibilityA="200" >
+     <UML:AssocWidget totalcounta="2" indexa="1" visibilityB="200" totalcountb="5" indexb="3" widgetbid="164" roleBdoc="" widgetaid="171" roleAdoc="" documentation="" type="500" changeabilityA="900" changeabilityB="900" visibilityA="200" >
+      <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="703" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+      <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="-116" linecolour="none" y="68" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="711" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+      <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="712" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+      <linepath>
+       <startpoint startx="461" starty="327" />
+       <endpoint endx="395" endy="103" />
+      </linepath>
+     </UML:AssocWidget>
+     <UML:AssocWidget totalcounta="2" indexa="1" visibilityB="200" totalcountb="5" indexb="4" widgetbid="164" roleBdoc="" widgetaid="180" roleAdoc="" documentation="" type="500" changeabilityA="900" changeabilityB="900" visibilityA="200" >
       <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="703" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
       <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="711" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
       <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="712" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
       <linepath>
-       <startpoint startx="576" starty="259" />
-       <endpoint endx="406" endy="103" />
+       <startpoint startx="688" starty="206" />
+       <endpoint endx="410" endy="103" />
       </linepath>
      </UML:AssocWidget>
     </associations>
@@ -135,6 +160,14 @@ x2c:include:HTML/Table.php
       <listitem open="0" type="815" id="173" label="getCSS" />
       <listitem open="0" type="815" id="174" label="toHTML" />
      </listitem>
+     <listitem open="1" type="813" id="180" label="HTML_Mensaje" >
+      <listitem open="0" type="814" id="185" label="ancho" />
+      <listitem open="0" type="814" id="183" label="img" />
+      <listitem open="0" type="814" id="186" label="texto" />
+      <listitem open="0" type="815" id="181" label="HTML_Mensaje" />
+      <listitem open="0" type="815" id="187" label="getCSS" />
+      <listitem open="0" type="815" id="182" label="toHtml" />
+     </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" />
index 42eddbeeda5d50a104e7bd3e2c8f079a4c8644a6..11068184fe6c7f2228929da2102437df11e02fe4 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
 // +--------------------------------------------------------------------+
-// |                      Ministerio de Economía                        |
+// |                      Ministerio de Econom                        |
 // |                             Intranet                              |
 // +--------------------------------------------------------------------+
 // | This file is part of Intranet.                                    |
@@ -35,6 +35,7 @@ require_once 'HTML/Table.php';
 
 // +X2C Class 162 :HTML_Copete
 /**
+ * @package sistema_local_lib
  * @access public
  */
 class HTML_Copete extends HTML_Table {
@@ -42,13 +43,13 @@ class HTML_Copete extends HTML_Table {
      * @var    int $titulo
      * @access private
      */
-    var $titulo;
+    var $_titulo;
 
     /**
      * @var    int $seccion
      * @access private
      */
-    var $seccion;
+    var $_seccion;
 
     // ~X2C
 
@@ -184,4 +185,4 @@ class HTML_Copete extends HTML_Table {
     // -X2C
 
 } // -X2C Class :HTML_Copete
-?>
+?>
\ No newline at end of file
index e76d275bc7eef7711ee2ea393029d38ecef90779..ec9eded684a32a6e38233fff664f837f0d60ad7e 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
 // +--------------------------------------------------------------------+
-// |                      Ministerio de Economía                        |
+// |                      Ministerio de Econom                        |
 // |                             Intranet                              |
 // +--------------------------------------------------------------------+
 // | This file is part of Intranet.                                    |
@@ -39,6 +39,7 @@ require_once 'HTML/Page.php';
 
 // +X2C Class 154 :HTML_DietMarco
 /**
+ * @package sistema_local_lib
  * @access public
  */
 class HTML_DietMarco extends HTML_Page {
@@ -62,6 +63,7 @@ class HTML_DietMarco extends HTML_Page {
     // +X2C Operation 158
     /**
      * @param  string $seccion 
+     * @param  string $titulo 
      *
      * @return void
      * @access public
@@ -109,4 +111,4 @@ class HTML_DietMarco extends HTML_Page {
     // -X2C
 
 } // -X2C Class :HTML_DietMarco
-?>
+?>
\ No newline at end of file
index ae427f385fe9d28fa44494f9d161e7aadc474396..23b0e12fb9584b6096e377529f3d6371077b0911 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
 // +--------------------------------------------------------------------+
-// |                      Ministerio de Economía                        |
+// |                      Ministerio de Econom                        |
 // |                             Intranet                              |
 // +--------------------------------------------------------------------+
 // | This file is part of Intranet.                                    |
@@ -36,6 +36,7 @@ require_once 'HTML/Table.php';
 
 // +X2C Class 171 :HTML_Login
 /**
+ * @package sistema_local_lib
  * @access public
  */
 class HTML_Login extends HTML_Table {
@@ -84,7 +85,7 @@ class HTML_Login extends HTML_Table {
       $int->addRow(array($img->toHTML().'Usuarios',
                          $img2->toHTML().'Usuario:',
                         '<INPUT maxLength=50 name=usuario size=10>',
-                        $img2->toHTML().'Contraseña:',
+                        $img2->toHTML().'Contrasea:',
                         '<INPUT maxLength=50 name=password size=10 type=password>'.
                         '<INPUT value="'.@$_GET['redirect'].@$_POST['redirect'].'" name=redirect type=hidden>',
                         '<INPUT name = Submit type=submit value=Enviar>'));
@@ -103,4 +104,4 @@ class HTML_Login extends HTML_Table {
     // -X2C
 
 } // -X2C Class :HTML_Login
-?>
+?>
\ No newline at end of file
diff --git a/sistema/local_lib/HTML_Mensaje.php b/sistema/local_lib/HTML_Mensaje.php
new file mode 100644 (file)
index 0000000..1be99c2
--- /dev/null
@@ -0,0 +1,175 @@
+<?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: Mon Nov 3 16:53:37 2003                                   |
+// | Autor:  Gonzalo Merayo <gmeray@mecon.gov.ar>                                                    |
+// +--------------------------------------------------------------------+
+//
+// $Id: xmi2code.tpl.php 2 2003-06-23 18:29:20Z gmeray $
+//
+
+require_once 'MECON/HTML/Image.php';
+
+
+// +X2C includes
+require_once 'HTML/Table.php';
+// ~X2C
+
+// +X2C Class 180 :HTML_Mensaje
+/**
+ * Clase para mostrar mensajes en Intranet.
+ *
+ * @package sistema_local_lib
+ * @access public
+ */
+class HTML_Mensaje extends HTML_Table {
+    /**
+     * @var    string $img
+     * @access private
+     */
+    var $_img;
+
+    /**
+     * @var    int $ancho
+     * @access private
+     */
+    var $_ancho;
+
+    /**
+     * @var    string $texto
+     * @access private
+     */
+    var $_texto;
+
+    // ~X2C
+
+    // +X2C Operation 181
+    /**
+     * Constructor.
+     *
+     * @param  string $tipo Tipo de mensaje.
+Puede ser: 'error', 'ok', 'alerta'.
+     * @param  string $texto Texto del mensaje.
+     * @param  int $ancho Ancho del mensaje.
+     *
+     * @return void
+     * @access public
+     */
+    function HTML_Mensaje($tipo, $texto = null, $ancho = null) // ~X2C
+    {
+       $this->_ancho = (isset($ancho))?$ancho:180;             
+       
+       switch ($tipo){
+           case 'ok':
+               $this->_img = 'mensaje_ok.gif';
+               $this->_texto = 'Correcto';
+               break;
+           case 'alerta':
+               $this->_img = 'mensaje_alerta.gif';
+               $this->_texto = 'Incorrecto';
+               break;
+           default:
+               //case 'error'
+               $this->_img = 'mensaje_error.gif';
+               $this->_texto = 'No autorizado';
+               break;
+       }
+       
+       if (isset($texto)){
+           $this->_texto = $texto;
+       }       
+
+    }
+    // -X2C
+
+    // +X2C Operation 182
+    /**
+     * Muestra el mensaje.
+     *
+     * @return string
+     * @access public
+     */
+    function toHtml() // ~X2C
+    {
+       $ancho_msg = $this->_ancho - 45 - 12 - 1;
+
+       //Imgs
+       $IMG_Pixel =& new MECON_HTML_Image('/sistemas/intranet/images/mensaje_pixel.gif', '', array('height'=>'1'));
+       $IMG_Superior =& new MECON_HTML_Image('/sistemas/intranet//images/mensaje_superior.gif');
+       $IMG_Inferior =& new MECON_HTML_Image('/sistemas/intranet//images/mensaje_inferior.gif');
+       $IMG_Derecha =& new MECON_HTML_Image('/sistemas/intranet//images/mensaje_derecha.gif');
+       $IMG_Izquierda =& new MECON_HTML_Image('/sistemas/intranet//images/'.$this->_img);
+       $IMG_Pixel21 =& new MECON_HTML_Image('/sistemas/intranet/images/mensaje_pixel.gif', '', array('height'=>'21'));
+       
+    
+       $tabla =& new HTML_Table (array('border'=>'0',
+                                       'cellpadding'=>'0',
+                                       'cellspacing'=>'0',
+                                       'width'=>$this->_ancho));
+       
+       $tabla->addrow( array($IMG_Pixel->toHtml(), $IMG_Pixel->toHtml(), $IMG_Pixel->toHtml(), $IMG_Pixel->toHtml()),
+                       array ('height'=>'1', 'border'=>'0'));
+       
+       $tabla->updateColAttributes(0, array('width'=>'45'));
+       $tabla->updateColAttributes(1, array('width'=>$ancho_msg));
+       $tabla->updateColAttributes(2, array('width'=>'12'));
+       $tabla->updateColAttributes(3, array('width'=>'1'));
+
+       $tabla->addrow( array($IMG_Izquierda->toHtml(), $IMG_Superior->toHtml(), $IMG_Derecha->toHtml(), $IMG_Pixel->toHtml()),
+                       array ('valign'=>'top'));
+
+       $tabla->addrow( array('', $this->_texto , '', $IMG_Pixel21->toHtml()),
+                       array ('valign'=>'top'));
+
+       $tabla->addrow( array('', $IMG_Inferior->toHtml() , '', $IMG_Pixel->toHtml()),
+                       array ('valign'=>'top'));
+
+       $tabla->updateCellAttributes(1,0, array('rowspan'=>'3'));
+       $tabla->updateCellAttributes(1,2, array('rowspan'=>'3'));
+
+       $tabla->updateCellAttributes(2, 1, array('background'=>'/sistemas/intranet/images/mensaje_fondo.gif',
+                                                'class'=>'mensaje'));
+
+       $tabla->updateCellAttributes(1, 1, array('background'=>'/sistemas/intranet/images/mensaje_superior.gif'));
+       $tabla->updateCellAttributes(3, 1, array('background'=>'/sistemas/intranet/images/mensaje_inferior.gif'));
+       
+       return $tabla->toHtml();
+               
+    }
+    // -X2C
+
+    // +X2C Operation 187
+    /**
+     * Obtener la hoja de estilos.
+     *
+     * @return string
+     * @access public
+     */
+    function getCSS() // ~X2C
+    {
+       $css = '/sistemas/intranet/css/mensaje.css';
+       return $css;
+    }
+    // -X2C
+
+} // -X2C Class :HTML_Mensaje
+?>
\ No newline at end of file
index 0b669d07ac2072c41824a43dc52ef768ab178aa5..15239e8ee30704ea04aefdbce57e86980ef37e11 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
 // +--------------------------------------------------------------------+
-// |                      Ministerio de Economía                        |
+// |                      Ministerio de Econom                        |
 // |                             Intranet                              |
 // +--------------------------------------------------------------------+
 // | This file is part of Intranet.                                    |
@@ -40,6 +40,7 @@ require_once 'HTML/Table.php';
 
 // +X2C Class 165 :HTML_Servicio
 /**
+ * @package sistema_local_lib
  * @access public
  */
 class HTML_Servicio extends HTML_Table {
@@ -157,4 +158,4 @@ class HTML_Servicio extends HTML_Table {
     // -X2C
 
 } // -X2C Class :HTML_Servicio
-?>
+?>
\ No newline at end of file
diff --git a/sistema/www/css/mensaje.css b/sistema/www/css/mensaje.css
new file mode 100644 (file)
index 0000000..6573405
--- /dev/null
@@ -0,0 +1 @@
+.mensaje { 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: left; vertical-align: middle}\r
diff --git a/sistema/www/images/mensaje_alerta.gif b/sistema/www/images/mensaje_alerta.gif
new file mode 100644 (file)
index 0000000..5493558
Binary files /dev/null and b/sistema/www/images/mensaje_alerta.gif differ
diff --git a/sistema/www/images/mensaje_derecha.gif b/sistema/www/images/mensaje_derecha.gif
new file mode 100644 (file)
index 0000000..66e6684
Binary files /dev/null and b/sistema/www/images/mensaje_derecha.gif differ
diff --git a/sistema/www/images/mensaje_error.gif b/sistema/www/images/mensaje_error.gif
new file mode 100644 (file)
index 0000000..0bbcad7
Binary files /dev/null and b/sistema/www/images/mensaje_error.gif differ
diff --git a/sistema/www/images/mensaje_fondo.gif b/sistema/www/images/mensaje_fondo.gif
new file mode 100644 (file)
index 0000000..93bfa6b
Binary files /dev/null and b/sistema/www/images/mensaje_fondo.gif differ
diff --git a/sistema/www/images/mensaje_inferior.gif b/sistema/www/images/mensaje_inferior.gif
new file mode 100644 (file)
index 0000000..567f8ba
Binary files /dev/null and b/sistema/www/images/mensaje_inferior.gif differ
diff --git a/sistema/www/images/mensaje_ok.gif b/sistema/www/images/mensaje_ok.gif
new file mode 100644 (file)
index 0000000..7881cb5
Binary files /dev/null and b/sistema/www/images/mensaje_ok.gif differ
diff --git a/sistema/www/images/mensaje_pixel.gif b/sistema/www/images/mensaje_pixel.gif
new file mode 100644 (file)
index 0000000..fc25609
Binary files /dev/null and b/sistema/www/images/mensaje_pixel.gif differ
diff --git a/sistema/www/images/mensaje_superior.gif b/sistema/www/images/mensaje_superior.gif
new file mode 100644 (file)
index 0000000..924c82a
Binary files /dev/null and b/sistema/www/images/mensaje_superior.gif differ
diff --git a/test/mensajes.php b/test/mensajes.php
new file mode 100644 (file)
index 0000000..8f76e8e
--- /dev/null
@@ -0,0 +1,43 @@
+<?php 
+/************************************************************************
+INTRANET
+Prueba de los mensajes para utilizar en servicios
+(alerta, error, ok y personalizados)
+-------------------------------------------------------------------------
+<mdegan@mecon.gov.ar>
+*************************************************************************/
+
+require_once '../sistema/local_lib/HTML_Mensaje.php';
+require_once '../sistema/local_lib/HTML_DietMarco.php';
+require_once 'MECON/HTML/Image.php';
+
+//Marco de servicios en intranet
+$MARCO     = new HTML_DietMarco('servicios', 'Prueba de Mensajes');
+$MARCO->addTitle('Prueba de Mensajes');
+
+//MENSAJES POR DEFAULT
+$mensaje1 =& new HTML_Mensaje ('alerta');
+$mensaje2 =& new HTML_Mensaje ('error');
+$mensaje3 =& new HTML_Mensaje ('ok');
+
+//MENSAJES PERSONALIZADOS
+$mensaje4 =& new HTML_Mensaje ('alerta', 'Login Incorrecto', 195);
+$mensaje5 =& new HTML_Mensaje ('error', 'No hay operadores para atender su pedido', 380);
+$mensaje6 =& new HTML_Mensaje ('ok', 'Su pedido ha sido recibido', '270');
+
+$MARCO->addBodyContent('<br>');
+$MARCO->addBodyContent($mensaje1);
+$MARCO->addBodyContent('<br>');
+$MARCO->addBodyContent($mensaje2);
+$MARCO->addBodyContent('<br>');
+$MARCO->addBodyContent($mensaje3);
+$MARCO->addBodyContent('<br>');
+$MARCO->addBodyContent($mensaje4);
+$MARCO->addBodyContent('<br>');
+$MARCO->addBodyContent($mensaje5);
+$MARCO->addBodyContent('<br>');
+$MARCO->addBodyContent($mensaje6);
+
+$MARCO->display();
+
+?>