<XMI.metamodel xmi.name="UML" href="UML.xml" xmi.version="1.3" />
</XMI.header>
<XMI.content>
- <docsettings viewid="152" documentation="" uniqueid="167" />
+ <docsettings viewid="152" documentation="" uniqueid="174" />
<umlobjects>
<UML:Class stereotype="" package="" xmi.id="153" abstract="0" documentation="x2c:extern
x2c:include:HTML/Page.php
<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: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>
</UML:Class>
<UML:Class stereotype="" package="sistema/local_lib" xmi.id="162" abstract="0" documentation="" name="HTML_Copete" static="0" scope="200" >
<UML:Operation stereotype="" package="" xmi.id="163" type="void" abstract="0" documentation="" name="HTML_Copete" 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="169" type="void" abstract="0" documentation="" name="getCSS" static="0" scope="200" />
</UML:Class>
<UML:Class stereotype="" package="" xmi.id="164" abstract="0" documentation="x2c:extern
x2c:include:HTML/Table.php
<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:Operation stereotype="" package="" xmi.id="170" type="void" abstract="0" documentation="" name="getCSS" static="0" scope="200" />
+ </UML:Class>
+ <UML:Class stereotype="" package="sistema/local_lib" xmi.id="171" abstract="0" documentation="" name="HTML_Login" static="0" scope="200" >
+ <UML:Operation stereotype="" package="" xmi.id="172" type="void" abstract="0" documentation="" name="HTML_Login" 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>
</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="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" />
+ <UML:ConceptWidget usesdiagramfillcolour="0" width="77" showattsigs="601" usesdiagramusefillcolour="0" x="108" linecolour="#ff0000" y="23" 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="15" linecolour="#ff0000" y="120" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="72" 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="79" linecolour="#ff0000" y="277" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="56" 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="352" linecolour="none" y="75" 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="294" linecolour="#ff0000" y="258" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="72" 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" />
+ <UML:ConceptWidget usesdiagramfillcolour="0" width="132" showattsigs="601" usesdiagramusefillcolour="0" x="519" linecolour="#ff0000" y="259" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="72" usefillcolor="1" showattributes="1" xmi.id="171" 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" totalcountb="2" indexb="1" widgetbid="153" widgetaid="154" documentation="" type="500" >
<linepath>
- <startpoint startx="203" starty="240" />
- <endpoint endx="237" endy="131" />
+ <startpoint startx="133" starty="120" />
+ <endpoint endx="146" endy="55" />
+ </linepath>
+ </UML:AssocWidget>
+ <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="4" indexb="1" widgetbid="164" widgetaid="162" documentation="" type="500" >
+ <linepath>
+ <startpoint startx="181" starty="277" />
+ <endpoint endx="372" endy="107" />
</linepath>
</UML:AssocWidget>
- <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="3" indexb="1" widgetbid="164" widgetaid="162" documentation="" type="500" >
+ <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="4" indexb="2" widgetbid="164" widgetaid="165" documentation="" type="500" >
<linepath>
- <startpoint startx="283" starty="364" />
- <endpoint endx="417" endy="141" />
+ <startpoint startx="398" starty="258" />
+ <endpoint endx="392" endy="107" />
</linepath>
</UML:AssocWidget>
- <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="3" indexb="2" widgetbid="164" widgetaid="165" documentation="" type="500" >
+ <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="4" indexb="3" widgetbid="164" widgetaid="171" documentation="" type="500" >
<linepath>
- <startpoint startx="511" starty="273" />
- <endpoint endx="444" endy="141" />
+ <startpoint startx="585" starty="259" />
+ <endpoint endx="412" endy="107" />
</linepath>
</UML:AssocWidget>
</associations>
<listitem open="1" type="801" id="-1" label="Logical View" >
<listitem open="1" type="813" id="162" label="HTML_Copete" >
<listitem open="0" type="815" id="163" label="HTML_Copete" />
+ <listitem open="0" type="815" id="169" label="getCSS" />
</listitem>
<listitem open="1" type="813" id="154" label="HTML_DietMarco" >
<listitem open="0" type="815" id="158" label="HTML_DietMarco" />
+ <listitem open="0" type="815" id="168" label="addBodyContent" />
<listitem open="0" type="815" id="157" label="addTitle" />
</listitem>
+ <listitem open="1" type="813" id="171" label="HTML_Login" >
+ <listitem open="0" type="815" id="172" label="HTML_Login" />
+ <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="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="170" label="getCSS" />
<listitem open="0" type="815" id="167" label="toHTML" />
</listitem>
<listitem open="1" type="813" id="164" label="HTML_Table" />
</XMI.header>
<XMI.content>
<docsettings viewid="160" documentation="
-" uniqueid="194" />
+" uniqueid="196" />
<umlobjects>
<UML:Class stereotype="" package="lib" xmi.id="161" abstract="0" documentation="" name="noticia" static="0" scope="200" >
<UML:Operation stereotype="" package="" xmi.id="169" type="void" abstract="0" documentation="" name="noticia" static="0" scope="200" >
<UML:Operation stereotype="" package="" xmi.id="194" type="void" abstract="0" documentation="" name="setVolver" static="0" scope="200" >
<UML:Parameter stereotype="" package="" xmi.id="1" value="" type="string" abstract="0" documentation="" name="link" static="0" scope="200" />
</UML:Operation>
+ <UML:Operation stereotype="" package="" xmi.id="195" type="void" abstract="0" documentation="" name="getCSS" static="0" scope="200" />
<UML:Attribute stereotype="" package="" xmi.id="172" value="" type="noticia" abstract="0" documentation="" name="noticia" static="0" scope="200" />
<UML:Attribute stereotype="" package="" xmi.id="184" value="" type="bool" abstract="0" documentation="" name="completa" static="0" scope="200" />
<UML:Attribute stereotype="" package="" xmi.id="185" value="" type="int" abstract="0" documentation="" name="nuevo" static="0" scope="200" />
<UML:Parameter stereotype="" package="" xmi.id="1" value="null" type="int" abstract="0" documentation="" name="grupo_secciones" static="0" scope="200" />
<UML:Parameter stereotype="" package="" xmi.id="2" value="null" type="int" abstract="0" documentation="" name="antiguedad" static="0" scope="200" />
</UML:Operation>
+ <UML:Operation stereotype="" package="" xmi.id="196" type="void" abstract="0" documentation="" name="getCSS" static="0" scope="200" />
<UML:Attribute stereotype="" package="" xmi.id="188" value="null" type="int" abstract="0" documentation="" name="antiguedad" static="0" scope="200" />
<UML:Attribute stereotype="" package="" xmi.id="189" value="" type="int" abstract="0" documentation="" name="grupo_secciones" static="0" scope="200" />
</UML:Class>
<diagrams>
<diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" showgrid="0" showopsig="1" usefillcolor="1" snapx="10" snapy="10" showatts="1" xmi.id="160" 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="160" showattsigs="601" usesdiagramusefillcolour="0" x="15" linecolour="#ff0000" y="243" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="144" usefillcolor="1" showattributes="1" xmi.id="161" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
- <UML:ConceptWidget usesdiagramfillcolour="0" width="220" showattsigs="601" usesdiagramusefillcolour="0" x="216" linecolour="#ff0000" y="189" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="176" 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="0" width="160" showattsigs="601" usesdiagramusefillcolour="0" x="22" linecolour="#ff0000" y="337" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="144" usefillcolor="1" showattributes="1" xmi.id="161" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
+ <UML:ConceptWidget usesdiagramfillcolour="0" width="220" showattsigs="601" usesdiagramusefillcolour="0" x="220" linecolour="#ff0000" y="163" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="192" 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="0" width="80" showattsigs="601" usesdiagramusefillcolour="0" x="477" linecolour="#ff0000" y="47" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" 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="272" showattsigs="601" usesdiagramusefillcolour="0" x="54" linecolour="#ff0000" y="38" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="88" usefillcolor="1" showattributes="1" xmi.id="170" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
- <UML:ConceptWidget usesdiagramfillcolour="0" width="416" showattsigs="601" usesdiagramusefillcolour="0" x="265" linecolour="#ff0000" y="400" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="64" usefillcolor="1" showattributes="1" xmi.id="187" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
+ <UML:ConceptWidget usesdiagramfillcolour="0" width="416" showattsigs="601" usesdiagramusefillcolour="0" x="265" linecolour="#ff0000" y="400" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="80" usefillcolor="1" showattributes="1" xmi.id="187" 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" totalcountb="3" indexb="1" widgetbid="164" widgetaid="162" documentation="" type="500" >
+ <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="2" indexb="1" widgetbid="164" widgetaid="162" documentation="" type="500" >
<linepath>
- <startpoint startx="326" starty="189" />
- <endpoint endx="503" endy="79" />
+ <startpoint startx="330" starty="163" />
+ <endpoint endx="477" endy="63" />
</linepath>
</UML:AssocWidget>
<UML:AssocWidget totalcounta="2" indexa="1" totalcountb="2" indexb="1" widgetbid="162" widgetaid="161" documentation="" type="510" >
<linepath>
- <startpoint startx="95" starty="243" />
- <endpoint endx="216" endy="277" />
+ <startpoint startx="102" starty="337" />
+ <endpoint endx="220" endy="259" />
</linepath>
</UML:AssocWidget>
- <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="3" indexb="2" widgetbid="164" widgetaid="187" documentation="" type="500" >
+ <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="2" indexb="1" widgetbid="164" widgetaid="187" documentation="" type="500" >
<linepath>
<startpoint startx="473" starty="400" />
- <endpoint endx="530" endy="79" />
+ <endpoint endx="517" endy="79" />
</linepath>
</UML:AssocWidget>
</associations>
<listitem open="1" type="813" id="162" label="HTML_Noticia" >
<listitem open="0" type="815" id="167" label="HTML_Noticia" />
<listitem open="0" type="814" id="184" label="completa" />
+ <listitem open="0" type="815" id="195" label="getCSS" />
<listitem open="0" type="814" id="172" label="noticia" />
<listitem open="0" type="814" id="185" label="nuevo" />
<listitem open="0" type="815" id="175" label="setCompleta" />
<listitem open="1" type="813" id="187" label="HTML_Titulares" >
<listitem open="0" type="815" id="190" label="HTML_Titulares" />
<listitem open="0" type="814" id="188" label="antiguedad" />
+ <listitem open="0" type="815" id="196" label="getCSS" />
<listitem open="0" type="814" id="189" label="grupo_secciones" />
</listitem>
<listitem open="0" type="807" id="160" label="class diagram" />
*/
function HTML_Copete($seccion) // ~X2C
{
- echo '<link rel="stylesheet" href="css/copete.css">';
- echo '<map name="intranet">
+ $mapa = '<map name="intranet">
<area shape="rect" coords="14,0,209,54" href="#" alt="Intranet" title="Intranet" >
<area shape="rect" coords="605,17,629,41" href="#" alt="Mapa de Intranet" title="Mapa de Intranet" >
<area shape="rect" coords="645,17,669,41" href="#" alt="Cambio de Clave" title="Cambio de Clave" >
$anchos = array('12', '25', '712', '11');
$fila = array();
foreach($anchos as $a)
- $fila[] = '<img src="images/blanco.gif" width="'.$a.'" height="1">';
+ $fila[] = '<img src="'.PATH_RAIZ.'"images/blanco.gif" width="'.$a.'" height="1">';
$this->addRow($fila);
$img_seccion = 'images/copete_'.$seccion.'.jpg';
- $this->addRow(array('<img src="'.$img_seccion.'" width="760" height="66" border="0" usemap="#intranet">'), array('colspan' => '4'));
+ $this->addRow(array('<img src="'.PATH_RAIZ.$img_seccion.'" width="760" height="66" border="0" usemap="#intranet">'.$mapa), array('colspan' => '4'));
$fila = array();
- $fila[] = '<img src="images/copete_inicio.gif" height="30" border="0">';
- $fila[] = '<img src="images/copete_flecha_azul.gif" height="30" border="0">';
+ $fila[] = '<img src="'.PATH_RAIZ.'images/copete_inicio.gif" height="30" border="0">';
+ $fila[] = '<img src="'.PATH_RAIZ.'images/copete_flecha_azul.gif" height="30" border="0">';
switch($seccion)
{
case 'noticias': $fila[] = 'Enlaces útiles:
case 'sistemas': $fila[] = '<span class="copete_titulo_uno">Sistemas</span>';
break;
}
- $fila[] = '<img src="images/copete_fin.gif" height="30" border="0">';
+ $fila[] = '<img src="'.PATH_RAIZ.'images/copete_fin.gif" height="30" border="0">';
$this->addRow($fila, array('class' => 'copete_titulo_vinculos'));
}
// -X2C
+ // +X2C Operation 169
+ /**
+ * @return void
+ * @access public
+ */
+ function getCSS() // ~X2C
+ {
+ return "css/copete.css";
+ }
+ // -X2C
+
} // -X2C Class :HTML_Copete
?>
// $Id: xmi2code.tpl.php 1 2003-06-23 18:29:20Z gmeray $
//
+session_start();//FIXME esto va en algun otro lado...
+
+define('PATH_RAIZ','/sistemas/intranet/');
+
require_once 'HTML_Copete.php';
// +X2C includes
}
// -X2C
+ // +X2C Operation 168
+ /**
+ * @param int $content
+ *
+ * @return void
+ * @access public
+ */
+ function addBodyContent($content) // ~X2C
+ {
+ if(method_exists($content, 'getcss'))
+ $this->addStyleSheet($content->getCSS());
+ parent::addBodyContent($content);
+ }
+ // -X2C
+
} // -X2C Class :HTML_DietMarco
-?>
\ No newline at end of file
+?>
--- /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 Aug 4 17:33:07 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 171 :HTML_Login
+/**
+ * @access public
+ */
+class HTML_Login extends HTML_Table {
+ // ~X2C
+
+ // +X2C Operation 172
+ /**
+ * @return void
+ * @access public
+ */
+ function HTML_Login() // ~X2C
+ {
+ parent::HTML_Table(array('bgColor' => '#FFFFFF',
+ 'border' => 1,
+ 'borderColor' => '#003060',
+ 'cellPadding' => 0,
+ 'cellSpacing' => 0,
+ 'width' => 600));
+ }
+ // -X2C
+
+ // +X2C Operation 173
+ /**
+ * @return void
+ * @access public
+ */
+ function getCSS() // ~X2C
+ {
+ return "css/login.css";
+ }
+ // -X2C
+
+ // +X2C Operation 174
+ /**
+ * @return void
+ * @access public
+ */
+ function toHTML() // ~X2C
+ {
+ $int = new HTML_Table(array('border' => 0,
+ 'cellPadding' => 0,
+ 'cellSpacing' => 2,
+ 'width' => '100%'));
+ $img = new HTML_Image('images/login_candados.gif');
+ $int->addRow(array($img->toHTML().'Usuarios',
+ $img->toHTML().'Usuario:',
+ '<INPUT maxLength=50 name=usuario size=10>',
+ $img->toHTML().'Contraseña:',
+ '<INPUT maxLength=50 name=password size=10 type=password>'.
+ '<INPUT value="'.$_GET['redirect'].'" name=redirect type=hidden>',
+ '<INPUT name = Submit type=submit value=Enviar>'));
+ $int->updateColAttributes(0, array('class' => 'titulo_tabla',
+ 'bgColor' => '#003366'));
+ $int->updateColAttributes(1, array('class' => 'titulo'));
+ $int->updateColAttributes(3, array('class' => 'titulo'));
+ $this->addRow(array($int));
+ return '<FORM ACTION = "login.php" METHOD = "POST">'.parent::toHTML().'</FORM>';
+ }
+ // -X2C
+
+} // -X2C Class :HTML_Login
+?>
$params = array('width' => '280',
'border' =>'0',
'cellPadding'=>'0');
- echo '<link rel="stylesheet" href="css/noticias.css">';
parent::HTML_Table($params);
}
// -X2C
}
// -X2C
+ // +X2C Operation 195
+ /**
+ * @return void
+ * @access public
+ */
+ function getCSS() // ~X2C
+ {
+ return "css/noticias.css";
+ }
+ // -X2C
+
} // -X2C Class :HTML_Noticia
?>
*/
function toHTML() // ~X2C
{
- echo '<link rel="stylesheet" href="css/servicio.css">';
if($this->servicio->link == '')
$this->servicio->link = 'servicios.php?servicios='.$this->servicio->servicio;
+ elseif($this->servicio->necesita_logueo)
+ $this->servicio->link = 'login.php?redirect='.$this->servicio->servicio;
$l = new HTML_Link($this->servicio->link, $this->servicio->nombre, array(),
array('class' => 'servicio_titulo_tabla'));
$this->addRow(array(' '.$l->toHTML()),
{
if($s->link == '')
$s->link = 'servicios.php?servicios='.$s->servicio;
+ elseif($s->necesita_logueo)
+ $s->link = 'login.php?redirect='.$s->servicio;
if($par)
{
$int->setCellContents(0, 3, new HTML_Link($s->link, $s->nombre,
}
// -X2C
+ // +X2C Operation 170
+ /**
+ * @return void
+ * @access public
+ */
+ function getCSS() // ~X2C
+ {
+ return "css/servicio.css";
+ }
+ // -X2C
+
} // -X2C Class :HTML_Servicio
?>
}
// -X2C
+ // +X2C Operation 196
+ /**
+ * @return void
+ * @access public
+ */
+ function getCSS() // ~X2C
+ {
+ return "css/noticias.css";
+ }
+ // -X2C
+
} // -X2C Class :HTML_Titulares
?>
--- /dev/null
+.titulo_tabla {\r
+ BACKGROUND-POSITION-X: left; COLOR: #ffffff; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 11pt; FONT-STYLE: normal; FONT-WEIGHT: bold; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: middle\r
+}\r
+.titulo {\r
+ BACKGROUND-POSITION-X: left; COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 9pt; FONT-STYLE: normal; FONT-WEIGHT: bold; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: top\r
+}\r
--- /dev/null
+<?
+ require_once '../local_lib/HTML_DietMarco.php';
+ require_once '../local_lib/HTML_Login.php';
+ require_once 'DB.php';
+
+ if(isset($_POST['usuario']))
+ {
+ $userid = $_POST['usuario'];
+ $ds = @ldap_connect( "ldapdist.mecon.ar" )
+ or $ds = @ldap_connect( "ldapmaster.mecon.ar" );
+
+ if (! $ds) {
+ //error connecting - return false
+ echo "Error conectando!\n";
+ }
+ list( $uid, $domain ) = split( "@", $userid );
+
+ $r = @ldap_bind($ds, "uid=$uid,ou=Personas,o=$domain,o=gov.ar", $_POST['password']);
+ if ($r) {
+ $sr = @ldap_search($ds, "ou=Personas,o=$domain,o=gov.ar", "uid=$uid");
+ $info = @ldap_get_entries($ds, $sr);
+ }
+ ldap_close($ds);
+
+ if (!isset($sr)) {
+ //error reading / authenticating - return false
+ echo "Error leyendo!\n";
+ }
+ else
+ {
+ $_SESSION['usuario'] = $_POST['usuario'];
+ $_SESSION['documento'] = $info[0]['uidnumber'][0];
+ }
+ }else{
+ if(!isset($_SESSION['usuario']))
+ {
+ $m = new HTML_DietMarco('servicios');
+ $m->addTitle('Servicios');
+
+ $login = new HTML_Login();
+ $t = new HTML_Table(array('width' => 760,
+ 'align' => 'center',
+ 'cellspacing' => 0,
+ 'cellpadding' => 0,
+ 'border' => 0,
+ 'valign' => 'middle',
+ 'height' => 200));
+ $t->addRow(array($login));
+
+ $m->addStyleSheet($login->getCSS());
+ $m->addBodyContent($t);
+ $m->display();
+ }
+ }
+
+ if(isset($_SESSION['usuario']) && (isset($_POST['redirect']) || isset($_GET['redirect'])))
+ {
+ $db = DB::Connect('mysql://intranet:intranet@bal747f/intranet');
+ $query = "SELECT link
+ FROM servicio
+ WHERE servicio = ";
+ if(isset($_POST['redirect']))
+ $query .= $_POST['redirect'];
+ else
+ $query .= $_GET['redirect'];
+ $link = $db->getOne($query);
+ header('location: '.$link);
+ }
+
+?>
--- /dev/null
+<?
+session_start();
+session_destroy();
+header('location: noticias.php');
+?>
$titulares = new HTML_Titulares($grupo, $dias);
$noticias->addRow(array($arbol,$titulares));
+ $m->addStyleSheet($arbol->getCSS());
+ $m->addStyleSheet($titulares->getCSS());
$noticias->updateCellAttributes(0, 0, array('valign'=>'top', 'width'=>'160'));
$noticias->updateCellAttributes(0, 1, array('valign'=>'top', 'width'=>'600'));
$impar = true;
}
}
+ $m->addStyleSheet($sh->getCSS());
$tabla =& new HTML_Table(array('width' => 760,
'cellspacing' => 10));
$tabla->addRow(array($col_impar, $col_par), array('valign'=>'top'));
require_once '../../../local_lib/HTML_DietMarco.php';
-if(isset($_GET['nrodoc']))
+/*if(isset($_GET['nrodoc']))
$nrodoc = $_GET['nrodoc'];
else
- $nrodoc = 0;
+ $nrodoc = 0;*/
+$nrodoc = $_SESSION['documento'];
$m = new HTML_DietMarco('servicios');
{
$aa = array(
'titulo'=>$a,
- 'link'=>'./legajo.php?nrodoc='.$nrodoc.'&mostrar='.strtolower($a)
+ 'link'=>'./legajo.php?mostrar='.strtolower($a)
);
array_push($arbol_valores,$aa);
}