<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="." type="application/x-xsp"?>
<?xml-stylesheet href="/instpage+css.xsl.en" type="text/xsl"?>

<xsp:page
  language="Perl"
  xmlns:xsp="http://apache.org/xsp/core/v1" 
  xmlns:esql="http://apache.org/xsp/SQL/v2" 
  xmlns:conv="http://xmlns.knowscape.com/xsp/CharsetConv"
  xmlns:web="http://axkit.org/NS/xsp/webutils/v1"
> 
<page>
<xsp:logic>
  my @foo=split('/', <web:request_uri/>);
  my $usuario = $foo[$#foo-1] unless $#foo&lt;1;
  my $rfc = '';
</xsp:logic>

<!--<personal version="0.0">-->

<!--Conexión a la base de datos personal2001-->
<esql:connection>
  <esql:driver>Pg</esql:driver>
  <esql:dburl>dbname=personal2001</esql:dburl>
  <esql:username>postgres</esql:username>
  <esql:execute-query>
     <esql:query>
      select *  from datos_per where login='<xsp:expr>$usuario</xsp:expr>'
    </esql:query>
    <esql:results> 
       <esql:row-results>

	  <xsp:logic>
#
# Reading rfc from esql
# 
	    $rfc .= do <conv:charset-convert><esql:get-string column="rfc"/></conv:charset-convert>;
	  </xsp:logic>

          <author e-mail="eogm@cie.unam.mx">eogm</author>
	  <nombre><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></nombre>
	  <telefono><conv:charset-convert><esql:get-string column="tel"/></conv:charset-convert></telefono>
	  <e-mail><conv:charset-convert><esql:get-string column="login"/>@cie.unam.mx</conv:charset-convert></e-mail>
       </esql:row-results> 
    </esql:results>        
  </esql:execute-query>
</esql:connection>


<!--Conexión a la base de datos informe1999-->
<esql:connection>
  <esql:driver>Pg</esql:driver>
  <esql:dburl>dbname=informe1999</esql:dburl>

   <esql:username>postgres</esql:username>
  <esql:execute-query>

<!--Actividades docentes 1999-->
    <esql:query>
      select materia, nivel, facultad, semestre  from cursos  where rfc='<xsp:expr>$rfc</xsp:expr>' and tipo_curso='Impartidos Dentro de los Diferentes Planes de Estudio'
    </esql:query>
    <esql:results>
       <esql:row-results> 
            <profesor>
              <materia><conv:charset-convert><esql:get-string column="materia" /></conv:charset-convert></materia> 
              <nivel><conv:charset-convert><esql:get-string column="nivel" /></conv:charset-convert> </nivel>
              <facultad><conv:charset-convert><esql:get-string column="facultad" /></conv:charset-convert></facultad>
              <semestre><conv:charset-convert><esql:get-string column="semestre" /></conv:charset-convert></semestre>
            </profesor>          
       </esql:row-results>
    </esql:results>


<!--Lineas de investigacion  1999--> 
<!-- Comentado porque se repite con la inf. de Proyectos.
    <esql:query>
      select nombre from proyectos where rfc='<xsp:expr>$rfc</xsp:expr>'  
    </esql:query>
    <esql:results>
       <esql:row-results> 
          <linea>
            <nombre><conv:charset-convert><esql:get-string column="nombre" /></conv:charset-convert></nombre>
          </linea>
       </esql:row-results>
    </esql:results>
-->


<!-- En la bd del informe 99Distinciones de más de tres annos -->
<!-- Distinciones 1999 -->
    <esql:query>
	select nombre,inst from distinciones where rfc='<xsp:expr>$rfc</xsp:expr>' and pub like 'S%'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <distincion>
            <nombre><conv:charset-convert><esql:get-string column="nombre" /></conv:charset-convert></nombre>
            <descripcion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></descripcion> 
          </distincion>
       </esql:row-results>		  
     </esql:results>


<!--Publicaciones 1999-->
    <esql:query>
      select * from articulos where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>   
          <publicacion> 
            <tipo><conv:charset-convert><esql:get-string column="tipo_art" /></conv:charset-convert></tipo>       
            <titulo><conv:charset-convert><esql:get-string column="titulo" /></conv:charset-convert></titulo>       
            <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor> 
            <revista><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></revista>
            <paginas><esql:get-string column="pags"/></paginas>
	    <vol><esql:get-string column="vol"/></vol>
	    <anno><esql:get-string column="fecha"/></anno>   
          </publicacion>
       </esql:row-results>
    </esql:results>

<!--Libro 1999-->
    <esql:query>
      select autores, titulo, edit, isbn from libros where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <libro>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
	    <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor>
	    <isbn><conv:charset-convert><esql:get-string column="isbn"/></conv:charset-convert></isbn>
	    <editorial><conv:charset-convert><esql:get-string column="edit"/></conv:charset-convert></editorial>
          </libro>
       </esql:row-results>
    </esql:results>


<!--Capitulo 1999-->
    <esql:query>
      select editores, titulo, autores2, nombre, edit, pags, periodo, isbn from capitulos_lib where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <capitulo>
            <titulo><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></titulo>
	    <autor><conv:charset-convert><esql:get-string column="autores2"/></conv:charset-convert></autor>
	    <paginas><conv:charset-convert><esql:get-string column="pags"/></conv:charset-convert></paginas> 
            <libro>
              <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
	      <autor><conv:charset-convert><esql:get-string column="editores"/></conv:charset-convert></autor>
	      <isbn><conv:charset-convert><esql:get-string column="isbn"/></conv:charset-convert></isbn>
	      <editorial><conv:charset-convert><esql:get-string column="edit"/></conv:charset-convert></editorial>
            </libro>
            <anno><esql:get-string column="periodo"/></anno>   
          </capitulo>
       </esql:row-results>
    </esql:results>

<!--Recursos Humanos,falta  1999-->
<!--Comentado porque no muestra todos los datos que deben ir.
    <esql:query>
      select nivel, titulo, nombre_est, inst  from frh where rfc='<xsp:expr>$rfc</xsp:expr>' and tipo_part='Director'
    </esql:query>
    <esql:results>
       <esql:row-results>
	  <rec_hum>                         
            <grado><conv:charset-convert><esql:get-string column="nivel"/></conv:charset-convert></grado>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo> 
            <alumno><conv:charset-convert><esql:get-string column="nombre_est"/></conv:charset-convert></alumno>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <lugar><conv:charset-convert><esql:get-string column=""/></conv:charset-convert></lugar>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </rec_hum>
       </esql:row-results>
    </esql:results>
-->  

<!--Trabajos presentados en congresos  1999(sin memorias)-->  
<!-- Comentado  
    <esql:query>
  select nombre,titulo,autores,lugar,fecha  from difusion where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <congreso>
            <nombre><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></nombre>
            <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor>
            <evento><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></evento>
            <lugar><conv:charset-convert><esql:get-string column="lugar"/></conv:charset-convert></lugar>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </congreso>
       </esql:row-results> 
    </esql:results>
-->

<!--Proyectos 1999-->
<!--
    <esql:query>
      select nombre, ini_p, fin_p, don_pat, logros from proyectos where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <proyecto>
            <nombre><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></nombre>
            <descripcion><conv:charset-convert><esql:get-string column="logros"/></conv:charset-convert></descripcion>
            <patrocinador><conv:charset-convert><esql:get-string column="don_pat"/></conv:charset-convert></patrocinador>
            <fecha>
               <fecha_inicial><esql:get-string column="ini_p"/></fecha_inicial>
	       <fecha_final><esql:get-string column="fin_p"/></fecha_final> 
            </fecha>
          </proyecto>
       </esql:row-results> 
    </esql:results>     
 -->


<!--Cursos, seminarios y conferencias Impartidas 1999-->
<!-- Comentado
    <esql:query>
      select tipo_dif, nombre, titulo, inst, lugar, fecha from difusion where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>         
          <div_imp>
            <tipo><conv:charset-convert><esql:get-string column="tipo_dif"/></conv:charset-convert></tipo>  
            <nombre><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></nombre>
            <evento><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></evento>
            <lugar><conv:charset-convert><esql:get-string column="lugar"/></conv:charset-convert></lugar>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <no_per></no_per> 
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </div_imp>
       </esql:row-results> 
    </esql:results>     
-->

<!-- Cursos, seminarios y conferencias Recibidas 1999--> 
<!--  
    <esql:query>
      select * from difusion where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <div_rec>
            <nombre><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></nombre>
            <no_per></no_per>
            <evento><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></evento>
            <lugar><conv:charset-convert><esql:get-string column="lugar"/></conv:charset-convert></lugar>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </div_rec>
       </esql:row-results> 
    </esql:results>     
-->

<!--Tesis dirigidas 1999-->
    <esql:query>
      select * from frh where rfc='<xsp:expr>$rfc</xsp:expr>'  and tipo_part='Director'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <tesis>              
            <nivel><conv:charset-convert><esql:get-string column="nivel"/></conv:charset-convert></nivel>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
            <alumno><conv:charset-convert><esql:get-string column="nombre_est"/></conv:charset-convert></alumno>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <lugar><conv:charset-convert><esql:get-string column=""/></conv:charset-convert></lugar>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </tesis>
       </esql:row-results> 
    </esql:results>     

    <esql:no-results>
      <p>No hay datos</p>
    </esql:no-results>
  </esql:execute-query>
</esql:connection>


<!--Conexión a la base de datos informe2000-->
<esql:connection>
  <esql:driver>Pg</esql:driver>
  <esql:dburl>dbname=informe</esql:dburl>

   <esql:username>postgres</esql:username>
  <esql:execute-query>

<!--Actividades docentes 2000-->
    <esql:query>
      select materia, nivel, facultad, semestre  from cursos  where rfc='<xsp:expr>$rfc</xsp:expr>' and tipo_curso='Impartidos Dentro de los Diferentes Planes de Estudio'
    </esql:query>
    <esql:results>
       <esql:row-results> 
            <profesor>
              <materia><conv:charset-convert><esql:get-string column="materia" /></conv:charset-convert></materia>
              <nivel><conv:charset-convert><esql:get-string column="nivel" /></conv:charset-convert></nivel>
              <facultad><conv:charset-convert><esql:get-string column="facultad" /></conv:charset-convert></facultad>
              <semestre><conv:charset-convert><esql:get-string column="semestre" /></conv:charset-convert></semestre>
            </profesor>          
       </esql:row-results>
    </esql:results>

<!--Lineas de investigacion  2000
    <esql:query>
      select nombre from proyectos where rfc='<xsp:expr>$rfc</xsp:expr>'  
    </esql:query>
    <esql:results>
       <esql:row-results> 
          <linea>
            <nombre><conv:charset-convert><esql:get-string column="nombre" /></conv:charset-convert></nombre>
          </linea>
       </esql:row-results>
    </esql:results>
-->

<!-- Distinciones  2000-->
    <esql:query>
      select nombre, inst  from distinciones where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <distincion>
            <nombre><conv:charset-convert><esql:get-string column="nombre" /></conv:charset-convert></nombre>
            <descripcion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></descripcion> 
          </distincion>
       </esql:row-results>		  
     </esql:results>


<!--Publicaciones 2000-->
    <esql:query>
      select * from articulos where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>   
          <publicacion> 
            <tipo><conv:charset-convert><esql:get-string column="tipo_art" /></conv:charset-convert></tipo>       
            <titulo><conv:charset-convert><esql:get-string column="titulo" /></conv:charset-convert></titulo>       
            <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor> 
            <revista><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></revista>
            <paginas><esql:get-string column="pags"/></paginas>
	    <vol><esql:get-string column="vol"/></vol>
	    <anno><esql:get-string column="fecha"/></anno>   
          </publicacion>
       </esql:row-results>
    </esql:results>

<!--Libro 2000-->
    <esql:query>
      select autores, titulo, edit, isbn from libros where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <libro>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
	    <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor>
	    <isbn><conv:charset-convert><esql:get-string column="isbn"/></conv:charset-convert></isbn>
	    <editorial><conv:charset-convert><esql:get-string column="edit"/></conv:charset-convert></editorial>
          </libro>
       </esql:row-results>
    </esql:results>


<!--Capitulo 2000-->
    <esql:query>
      select editores, titulo, autores2, nombre, edit, pags, periodo, isbn from libros2 where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <capitulo>
            <titulo><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></titulo>
	    <autor><conv:charset-convert><esql:get-string column="autores2"/></conv:charset-convert></autor>
	    <paginas><conv:charset-convert><esql:get-string column="pags"/></conv:charset-convert></paginas> 
            <libro>
              <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
	      <autor><conv:charset-convert><esql:get-string column="editores"/></conv:charset-convert></autor>
	      <isbn><conv:charset-convert><esql:get-string column="isbn"/></conv:charset-convert></isbn>
	      <editorial><conv:charset-convert><esql:get-string column="edit"/></conv:charset-convert></editorial>
            </libro>
            <anno><esql:get-string column="periodo"/></anno>   
          </capitulo>
       </esql:row-results>
    </esql:results>

<!--Recursos Humanos 2000,falta-->
    <esql:query>
      select nivel, titulo, nombre_est, inst  from frh where rfc='<xsp:expr>$rfc</xsp:expr>'  and tipo_part='Director'
    </esql:query>
    <esql:results>
       <esql:row-results>
	  <rec_hum>                         
            <grado><conv:charset-convert><esql:get-string column="nivel"/></conv:charset-convert></grado>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo> 
            <alumno><conv:charset-convert><esql:get-string column="nombre_est"/></conv:charset-convert></alumno>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <lugar><conv:charset-convert><esql:get-string column=""/></conv:charset-convert></lugar>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </rec_hum>
       </esql:row-results>
    </esql:results>
  
<!--Trabajos presentados en congresos (sin memorias) 2000
    <esql:query>
  select nombre,titulo,autores,lugar,fecha  from difusion where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <congreso>
            <nombre><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></nombre>
            <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor>
            <evento><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></evento>
            <lugar><conv:charset-convert><esql:get-string column="lugar"/></conv:charset-convert></lugar>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </congreso>
       </esql:row-results> 
    </esql:results>
-->

<!--Proyectos 2000-->
<!--
    <esql:query>
      select nombre, ini_p, fin_p, don_pat, logros from proyectos where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <proyecto>
            <nombre><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></nombre>
            <descripcion><conv:charset-convert><esql:get-string column="logros"/></conv:charset-convert></descripcion>
            <patrocinador><conv:charset-convert><esql:get-string column="don_pat"/></conv:charset-convert></patrocinador>
            <fecha>
               <fecha_inicial><esql:get-string column="ini_p"/></fecha_inicial>
	       <fecha_final><esql:get-string column="fin_p"/></fecha_final> 
            </fecha>
          </proyecto>
       </esql:row-results> 
    </esql:results>     
--> 

<!--Cursos, seminarios y conferencias Impartidas 2000
    <esql:query>
      select tipo_dif, nombre, titulo, inst, lugar, fecha from difusion where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>         
          <div_imp>
            <tipo><conv:charset-convert><esql:get-string column="tipo_dif"/></conv:charset-convert></tipo>  
            <nombre><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></nombre>
            <evento><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></evento>
            <lugar><conv:charset-convert><esql:get-string column="lugar"/></conv:charset-convert></lugar>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <no_per></no_per> 
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </div_imp>
       </esql:row-results> 
    </esql:results>     
-->
<!-- Cursos, seminarios y conferencias Recibidas 2000
    <esql:query>
      select * from difusion where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <div_rec>
            <nombre><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></nombre>
            <no_per></no_per>
            <evento><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></evento>
            <lugar><conv:charset-convert><esql:get-string column="lugar"/></conv:charset-convert></lugar>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </div_rec>
       </esql:row-results> 
    </esql:results>     
-->

<!--Tesis dirigidas 2000-->
    <esql:query>
      select * from frh where rfc='<xsp:expr>$rfc</xsp:expr>'  and tipo_part='Director'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <tesis>              
            <nivel><conv:charset-convert><esql:get-string column="nivel"/></conv:charset-convert></nivel>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
            <alumno><conv:charset-convert><esql:get-string column="nombre_est"/></conv:charset-convert></alumno>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <lugar><conv:charset-convert><esql:get-string column=""/></conv:charset-convert></lugar>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </tesis>
       </esql:row-results> 
    </esql:results>     

    <esql:no-results>
      <p>No hay datos</p>
    </esql:no-results>
  </esql:execute-query>
</esql:connection>


<!--Conexión a la base de datos informe2001-->
<esql:connection>
  <esql:driver>Pg</esql:driver>
  <esql:dburl>dbname=informe2001</esql:dburl>

   <esql:username>postgres</esql:username>
  <esql:execute-query>

<!--Actividades docentes 2001-->
    <esql:query>
      select materia, nivel, facultad, semestre  from cursos  where rfc='<xsp:expr>$rfc</xsp:expr>' and tipo_curso='Impartidos Dentro de los Diferentes Planes de Estudio'
    </esql:query>
    <esql:results>
       <esql:row-results> 
            <profesor>
              <materia><conv:charset-convert><esql:get-string column="materia" /></conv:charset-convert></materia>
              <nivel><conv:charset-convert><esql:get-string column="nivel" /></conv:charset-convert></nivel>
              <facultad><conv:charset-convert><esql:get-string column="facultad" /></conv:charset-convert></facultad>
              <semestre><conv:charset-convert><esql:get-string column="semestre" /></conv:charset-convert></semestre>
            </profesor>          
       </esql:row-results>
    </esql:results>

<!--Lineas de investigacion  2001
    <esql:query>
      select nombre from proyectos where rfc='<xsp:expr>$rfc</xsp:expr>'  
    </esql:query>
    <esql:results>
       <esql:row-results> 
          <linea>
            <nombre><conv:charset-convert><esql:get-string column="nombre" /></conv:charset-convert></nombre>
          </linea>
       </esql:row-results>
    </esql:results>
-->

<!-- Distinciones 2001 -->
    <esql:query>
      select nombre, inst  from distinciones where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <distincion>
            <nombre><conv:charset-convert><esql:get-string column="nombre" /></conv:charset-convert></nombre>
            <descripcion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></descripcion> 
          </distincion>
       </esql:row-results>		  
     </esql:results>


<!--Publicaciones 2001-->
    <esql:query>
      select * from articulos where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>   
          <publicacion> 
            <tipo><conv:charset-convert><esql:get-string column="tipo_art" /></conv:charset-convert></tipo>       
            <titulo><conv:charset-convert><esql:get-string column="titulo" /></conv:charset-convert></titulo>       
            <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor> 
            <revista><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></revista>
            <paginas><esql:get-string column="pags"/></paginas>
	    <vol><esql:get-string column="vol"/></vol>
	    <anno><esql:get-string column="fecha"/></anno>   
          </publicacion>
       </esql:row-results>
    </esql:results>

<!--Libro 2001-->
    <esql:query>
      select autores, titulo, edit, isbn from libros where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <libro>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
	    <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor>
	    <isbn><conv:charset-convert><esql:get-string column="isbn"/></conv:charset-convert></isbn>
	    <editorial><conv:charset-convert><esql:get-string column="edit"/></conv:charset-convert></editorial>
          </libro>
       </esql:row-results>
    </esql:results>


<!--Capitulo 2001-->
    <esql:query>
      select editores, titulo, autores2, nombre, edit, pags, periodo, isbn from capitulos_lib where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <capitulo>
            <titulo><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></titulo>
	    <autor><conv:charset-convert><esql:get-string column="autores2"/></conv:charset-convert></autor>
	    <paginas><conv:charset-convert><esql:get-string column="pags"/></conv:charset-convert></paginas> 
            <libro>
              <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
	      <autor><conv:charset-convert><esql:get-string column="editores"/></conv:charset-convert></autor>
	      <isbn><conv:charset-convert><esql:get-string column="isbn"/></conv:charset-convert></isbn>
	      <editorial><conv:charset-convert><esql:get-string column="edit"/></conv:charset-convert></editorial>
            </libro>
            <anno><esql:get-string column="periodo"/></anno>   
          </capitulo>
       </esql:row-results>
    </esql:results>

<!--Recursos Humanos 2001,falta -->
    <esql:query>
      select nivel, titulo, nombre_est, inst  from frh where rfc='<xsp:expr>$rfc</xsp:expr>'  and tipo_part='Director'
    </esql:query>
    <esql:results>
       <esql:row-results>
	  <rec_hum>                         
            <grado><conv:charset-convert><esql:get-string column="nivel"/></conv:charset-convert></grado>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo> 
            <alumno><conv:charset-convert><esql:get-string column="nombre_est"/></conv:charset-convert></alumno>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <lugar><conv:charset-convert><esql:get-string column=""/></conv:charset-convert></lugar>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </rec_hum>
       </esql:row-results>
    </esql:results>
  
<!--Trabajos presentados en congresos (sin memorias) 2001  
    <esql:query>
  select nombre,titulo,autores,lugar,fecha  from difusion where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <congreso>
            <nombre><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></nombre>
            <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor>
            <evento><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></evento>
            <lugar><conv:charset-convert><esql:get-string column="lugar"/></conv:charset-convert></lugar>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </congreso>
       </esql:row-results> 
    </esql:results>
-->

<!--Proyectos 2001-->
    <esql:query>
      select nombre, ini_p, fin_p, don_pat, logros from proyectos where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <proyecto>
            <nombre><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></nombre>
            <descripcion><conv:charset-convert><esql:get-string column="logros"/></conv:charset-convert></descripcion>
            <patrocinador><conv:charset-convert><esql:get-string column="don_pat"/></conv:charset-convert></patrocinador>
            <fecha>
               <fecha_inicial><esql:get-string column="ini_p"/></fecha_inicial>
	       <fecha_final><esql:get-string column="fin_p"/></fecha_final> 
            </fecha>
          </proyecto>
       </esql:row-results> 
    </esql:results>     
 
<!--Cursos, seminarios y conferencias Impartidas 2001
    <esql:query>
      select tipo_dif, nombre, titulo, inst, lugar, fecha from difusion where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>         
          <div_imp>
            <tipo><conv:charset-convert><esql:get-string column="tipo_dif"/></conv:charset-convert></tipo>  
            <nombre><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></nombre>
            <evento><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></evento>
            <lugar><conv:charset-convert><esql:get-string column="lugar"/></conv:charset-convert></lugar>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <no_per></no_per> 
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </div_imp>
       </esql:row-results> 
    </esql:results>     
-->

<!-- Cursos, seminarios y conferencias Recibidas  2001
    <esql:query>
      select * from difusion where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <div_rec>
            <nombre><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></nombre>
            <no_per></no_per>
            <evento><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></evento>
            <lugar><conv:charset-convert><esql:get-string column="lugar"/></conv:charset-convert></lugar>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </div_rec>
       </esql:row-results> 
    </esql:results>     
-->

<!--Tesis dirigidas 2001-->
    <esql:query>
      select * from frh where rfc='<xsp:expr>$rfc</xsp:expr>'  and tipo_part='Director'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <tesis>              
            <nivel><conv:charset-convert><esql:get-string column="nivel"/></conv:charset-convert></nivel>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
            <alumno><conv:charset-convert><esql:get-string column="nombre_est"/></conv:charset-convert></alumno>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <lugar><conv:charset-convert><esql:get-string column=""/></conv:charset-convert></lugar>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </tesis>
       </esql:row-results> 
    </esql:results>     

    <esql:no-results>
      <p>No hay datos</p>
    </esql:no-results>
  </esql:execute-query>
</esql:connection>

<!--Conexión a la base de datos informe2002-->
<esql:connection>
  <esql:driver>Pg</esql:driver>
  <esql:dburl>dbname=informe2002</esql:dburl>
  <esql:username>postgres</esql:username>
  <esql:execute-query>

<!-- Línea de investigación 2002. Comentadas porque aparecen en personalpage.xsp
<esql:query>
  select nombre_linea from lineas where rfc='<xsp:expr>$rfc</xsp:expr>'
</esql:query>
<esql:results>
    <esql:row-results>
      <linea>
        <nombre><conv:charset-convert><esql:get-string column="nombre_linea" />
        </conv:charset-convert></nombre>
      </linea>
    </esql:row-results>
</esql:results>
-->

<!--Actividades docentes 2002-->
  <esql:query>
  select materia, nivel, facultad, semestre  from cursos_sem  where rfc='<xsp:expr>$rfc</xsp:expr>'
  </esql:query>
  <esql:results>
    <esql:row-results> 
      <profesor>
        <materia><conv:charset-convert><esql:get-string column="materia" />
        </conv:charset-convert></materia> 
        <nivel><conv:charset-convert><esql:get-string column="nivel" />
        </conv:charset-convert> </nivel>
        <facultad><conv:charset-convert><esql:get-string column="facultad" />
        </conv:charset-convert></facultad>
        <semestre><conv:charset-convert><esql:get-string column="semestre" />
        </conv:charset-convert></semestre>
      </profesor>          
    </esql:row-results>
  </esql:results>

<!-- Distinciones 2002 -->
  <esql:query>
  select nombre,inst from distinciones where (rfc='<xsp:expr>$rfc</xsp:expr>' and pub like 'S%')
  </esql:query>
  <esql:results>
    <esql:row-results>
      <distincion>
        <nombre><conv:charset-convert><esql:get-string column="nombre" />
        </conv:charset-convert></nombre>
        <descripcion><conv:charset-convert><esql:get-string column="inst"/>
        </conv:charset-convert></descripcion> 
      </distincion>
    </esql:row-results>		  
  </esql:results>

<!--Publicaciones 2002-->
  <esql:query>
  select * from articulos where rfc='<xsp:expr>$rfc</xsp:expr>'
  </esql:query>
  <esql:results>
    <esql:row-results>   
      <publicacion> 
        <tipo><conv:charset-convert><esql:get-string column="tipo_art" /></conv:charset-convert></tipo>       
        <titulo><conv:charset-convert><esql:get-string column="titulo" /></conv:charset-convert></titulo>       
        <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor> 
        <revista><conv:charset-convert><esql:get-string column="nom_rev"/></conv:charset-convert></revista>
        <paginas><esql:get-string column="pags"/></paginas>
        <vol><esql:get-string column="vol"/></vol>
        <anno><esql:get-string column="fecha"/></anno>   
      </publicacion>
    </esql:row-results>
  </esql:results>

<!--Libro 2002-->
  <esql:query>
  select autores, titulo, edit, isbn from libros where rfc='<xsp:expr>$rfc</xsp:expr>'
  </esql:query>
  <esql:results>
    <esql:row-results>
      <libro>
        <titulo><conv:charset-convert><esql:get-string column="titulo"/>
        </conv:charset-convert></titulo>
        <autor><conv:charset-convert><esql:get-string column="autores"/>
        </conv:charset-convert></autor>
	<isbn><conv:charset-convert><esql:get-string column="isbn"/>
        </conv:charset-convert></isbn>
	<editorial><conv:charset-convert><esql:get-string column="edit"/>
        </conv:charset-convert></editorial>
      </libro>
    </esql:row-results>
  </esql:results>

<!--Capitulo 2002-->
  <esql:query>
    select nombre,editores, titulo, autores2, edit, pags, periodo, isbn from capitulos_lib where rfc='<xsp:expr>$rfc</xsp:expr>'
  </esql:query>
  <esql:results>
    <esql:row-results>
      <capitulo>
        <titulo><conv:charset-convert><esql:get-string column="nombre"/>
        </conv:charset-convert></titulo>
	<autor><conv:charset-convert><esql:get-string column="autores2"/>
        </conv:charset-convert></autor>
	<paginas><conv:charset-convert><esql:get-string column="pags"/>
        </conv:charset-convert></paginas> 
      <libro>
        <titulo><conv:charset-convert><esql:get-string column="titulo"/>
        </conv:charset-convert></titulo>
	<autor><conv:charset-convert><esql:get-string column="editores"/>
        </conv:charset-convert></autor>
	<isbn><conv:charset-convert><esql:get-string column="isbn"/>
        </conv:charset-convert></isbn>
	<editorial><conv:charset-convert><esql:get-string column="edit"/>
        </conv:charset-convert></editorial>
      </libro>
        <anno><esql:get-string column="periodo"/></anno>   
      </capitulo>
    </esql:row-results>
  </esql:results>

<!--Proyectos 2002 Comentada hasta enero 2003
  <esql:query>
  select nombre, ini_p, fin_p, don_pat, logros from proyectos where rfc='<xsp:expr>$rfc</xsp:expr>'
  </esql:query>
  <esql:results>
    <esql:row-results>
      <proyecto>
        <nombre><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></nombre>
            <descripcion><conv:charset-convert><esql:get-string column="logros"/></conv:charset-convert></descripcion>
            <patrocinador><conv:charset-convert><esql:get-string column="don_pat"/></conv:charset-convert></patrocinador>
            <fecha>
               <fecha_inicial><esql:get-string column="ini_p"/></fecha_inicial>
	       <fecha_final><esql:get-string column="fin_p"/></fecha_final> 
            </fecha>
          </proyecto>
       </esql:row-results> 
    </esql:results>     
-->
<!-- Propiedad Industrial/Intelectual 2002-->
    <esql:query>
      select titulo,tipo_pat,registro from patentes where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <patentes>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
            <tipo_pat><conv:charset-convert><esql:get-string column="tipo_pat"/></conv:charset-convert></tipo_pat> 
            <registro><conv:charset-convert><esql:get-string column="registro"/></conv:charset-convert></registro>
          </patentes>
       </esql:row-results>
    </esql:results>

<!--Tesis dirigidas 2002-->
 <esql:query>
<!--
   select * from frh where rfc='<xsp:expr>$rfc</xsp:expr>' and (tipo_part=1 or tipo_part=2) 
-->
select frh.nombre_est,frh.inst,nivel_frh.nivel,frh.titulo,frh.fecha from frh,nivel_frh where (rfc='<xsp:expr>$rfc</xsp:expr>') and (tipo_part=1 or tipo_part=2) and (frh.nivel=nivel_frh.cla_niv)

 </esql:query>
 <esql:results>
   <esql:row-results>
     <tesis>              
       <alumno><conv:charset-convert><esql:get-string column="nombre_est"/></conv:charset-convert></alumno>
       <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
       <nivel><conv:charset-convert><esql:get-string column="nivel"/></conv:charset-convert></nivel>
       <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
       <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
     </tesis>
   </esql:row-results> 
 </esql:results>     


 <esql:no-results>
   <p>No hay datos</p>
 </esql:no-results>
 </esql:execute-query>
</esql:connection>

<!--Conexión a la base de datos informe2003-->
<esql:connection>
  <esql:driver>Pg</esql:driver>
  <esql:dburl>dbname=informe2003</esql:dburl>
  <esql:username>postgres</esql:username>
  <esql:execute-query>

<!-- Línea de investigación 2003. Comentadas porque aparecen en personalpage.xsp
<esql:query>
  select nombre_linea from lineas where rfc='<xsp:expr>$rfc</xsp:expr>'
</esql:query>
<esql:results>
    <esql:row-results>
      <linea>
        <nombre><conv:charset-convert><esql:get-string column="nombre_linea" />
        </conv:charset-convert></nombre>
      </linea>
    </esql:row-results>
</esql:results>
-->

<!--Actividades docentes 2002-->
  <esql:query>
  select materia, nivel, facultad, semestre  from cursos_sem  where rfc='<xsp:expr>$rfc</xsp:expr>'
  </esql:query>
  <esql:results>
    <esql:row-results> 
      <profesor>
        <materia><conv:charset-convert><esql:get-string column="materia" />
        </conv:charset-convert></materia> 
        <nivel><conv:charset-convert><esql:get-string column="nivel" />
        </conv:charset-convert> </nivel>
        <facultad><conv:charset-convert><esql:get-string column="facultad" />
        </conv:charset-convert></facultad>
        <semestre><conv:charset-convert><esql:get-string column="semestre" />
        </conv:charset-convert></semestre>
      </profesor>          
    </esql:row-results>
  </esql:results>

<!-- Distinciones 2002 -->
  <esql:query>
  select nombre,inst from distinciones where (rfc='<xsp:expr>$rfc</xsp:expr>' and pub='Sí')
  </esql:query>
  <esql:results>
    <esql:row-results>
      <distincion>
        <nombre><conv:charset-convert><esql:get-string column="nombre" />
        </conv:charset-convert></nombre>
        <descripcion><conv:charset-convert><esql:get-string column="inst"/>
        </conv:charset-convert></descripcion> 
      </distincion>
    </esql:row-results>		  
  </esql:results>

<!--Publicaciones 2002-->
  <esql:query>
  select * from articulos where rfc='<xsp:expr>$rfc</xsp:expr>'
  </esql:query>
  <esql:results>
    <esql:row-results>   
      <publicacion> 
        <tipo><conv:charset-convert><esql:get-string column="tipo_art" /></conv:charset-convert></tipo>       
        <titulo><conv:charset-convert><esql:get-string column="titulo" /></conv:charset-convert></titulo>       
        <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor> 
        <revista><conv:charset-convert><esql:get-string column="nom_rev"/></conv:charset-convert></revista>
        <paginas><esql:get-string column="pags"/></paginas>
        <vol><esql:get-string column="vol"/></vol>
        <anno><esql:get-string column="fecha"/></anno>   
      </publicacion>
    </esql:row-results>
  </esql:results>

<!--Libro 2002-->
  <esql:query>
  select autores, titulo, edit, isbn from libros where rfc='<xsp:expr>$rfc</xsp:expr>'
  </esql:query>
  <esql:results>
    <esql:row-results>
      <libro>
        <titulo><conv:charset-convert><esql:get-string column="titulo"/>
        </conv:charset-convert></titulo>
        <autor><conv:charset-convert><esql:get-string column="autores"/>
        </conv:charset-convert></autor>
	<isbn><conv:charset-convert><esql:get-string column="isbn"/>
        </conv:charset-convert></isbn>
	<editorial><conv:charset-convert><esql:get-string column="edit"/>
        </conv:charset-convert></editorial>
      </libro>
    </esql:row-results>
  </esql:results>

<!--Capitulo 2002-->
  <esql:query>
    select nombre,editores, titulo, autores2, edit, pags, periodo, isbn from capitulos_lib where rfc='<xsp:expr>$rfc</xsp:expr>'
  </esql:query>
  <esql:results>
    <esql:row-results>
      <capitulo>
        <titulo><conv:charset-convert><esql:get-string column="nombre"/>
        </conv:charset-convert></titulo>
	<autor><conv:charset-convert><esql:get-string column="autores2"/>
        </conv:charset-convert></autor>
	<paginas><conv:charset-convert><esql:get-string column="pags"/>
        </conv:charset-convert></paginas> 
      <libro>
        <titulo><conv:charset-convert><esql:get-string column="titulo"/>
        </conv:charset-convert></titulo>
	<autor><conv:charset-convert><esql:get-string column="editores"/>
        </conv:charset-convert></autor>
	<isbn><conv:charset-convert><esql:get-string column="isbn"/>
        </conv:charset-convert></isbn>
	<editorial><conv:charset-convert><esql:get-string column="edit"/>
        </conv:charset-convert></editorial>
      </libro>
        <anno><esql:get-string column="periodo"/></anno>   
      </capitulo>
    </esql:row-results>
  </esql:results>

<!--Proyectos 2002 Comentada hasta enero 2003
  <esql:query>
  select nombre, ini_p, fin_p, don_pat, logros from proyectos where rfc='<xsp:expr>$rfc</xsp:expr>'
  </esql:query>
  <esql:results>
    <esql:row-results>
      <proyecto>
        <nombre><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></nombre>
            <descripcion><conv:charset-convert><esql:get-string column="logros"/></conv:charset-convert></descripcion>
            <patrocinador><conv:charset-convert><esql:get-string column="don_pat"/></conv:charset-convert></patrocinador>
            <fecha>
               <fecha_inicial><esql:get-string column="ini_p"/></fecha_inicial>
	       <fecha_final><esql:get-string column="fin_p"/></fecha_final> 
            </fecha>
          </proyecto>
       </esql:row-results> 
    </esql:results>     
-->
<!-- Propiedad Industrial/Intelectual 2002-->
    <esql:query>
      select titulo,tipo_pat,registro from patentes where rfc='<xsp:expr>$rfc</xsp:expr>'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <patentes>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
            <tipo_pat><conv:charset-convert><esql:get-string column="tipo_pat"/></conv:charset-convert></tipo_pat> 
            <registro><conv:charset-convert><esql:get-string column="registro"/></conv:charset-convert></registro>
          </patentes>
       </esql:row-results>
    </esql:results>

<!--Tesis dirigidas 2002-->
 <esql:query>
<!--
   select * from frh where rfc='<xsp:expr>$rfc</xsp:expr>' and (tipo_part=1 or tipo_part=2) 
-->
select frh.nombre_est,frh.inst,nivel_frh.nivel,frh.titulo,frh.fecha from frh,nivel_frh where (rfc='<xsp:expr>$rfc</xsp:expr>') and (tipo_part=1 or tipo_part=2) and (frh.nivel=nivel_frh.cla_niv)

 </esql:query>
 <esql:results>
   <esql:row-results>
     <tesis>              
       <alumno><conv:charset-convert><esql:get-string column="nombre_est"/></conv:charset-convert></alumno>
       <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
       <nivel><conv:charset-convert><esql:get-string column="nivel"/></conv:charset-convert></nivel>
       <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
       <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
     </tesis>
   </esql:row-results> 
 </esql:results>     


 <esql:no-results>
   <p>No hay datos</p>
 </esql:no-results>
 </esql:execute-query>
</esql:connection>

</page>
</xsp:page>
