<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
</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" />
<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>
<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" />
--- /dev/null
+<?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