<?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet [
   <!ENTITY nbsp "&#160;">
   <!ENTITY aacute "&#x00E1;">
   <!ENTITY oacute "&#243;">
   
   ]>

<xsl:stylesheet
	version="1.0"
	xmlns:java="http://xml.apache.org/xslt/java"
	extension-element-prefixes="java"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	
	<xsl:output method="html" encoding="UTF-8" indent="yes"/>
	

	<xsl:param name="requestContext"/>
	<xsl:variable name="pathPrefix" select='java:com.vignette.ri.common.util.ContentUtil.getStaticFileURLPrefix()'/>
	<xsl:variable name="prefijo">http://internet-cms1.ife.org.mx/img</xsl:variable>
	
	<xsl:template match="/results/*">
		<SCRIPT LANGUAGE="javascript" DEFER="true" >
			<xsl:comment>
				<![CDATA[
				function ventana(ventana,ancho,alto)
                                                      {
			             window.open(ventana,'Detalle','scrollbars=yes,resizable=no,width=ancho,height=alto')
                                                     }
  
                        ]]>
			</xsl:comment>
		</SCRIPT>
		
		
		
		<xsl:variable name="linkUri" select="java:com.vignette.ext.templating.util.XSLPageUtil.buildLinkURI($requestContext, VignVCMId, '', '')"/>
		<span class="vgn-ext-text">
			
			<tr>
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td valign="top"><table cellspacing="0" cellpadding="0" width="95%" align="center" border="0">
							<tbody>
								<tr>
									<td width="11" height="13"><img height="13" src="/ifexsl/images/tabla_contenidos_1.gif" width="11" border="0" /></td>
									<td background="/ifexsl/images/tabla_contenidos_2.gif"><img src="/ifexsl/images/tabla_contenidos_2.gif" width="36" height="13" border="0" /></td>
									<td width="12" height="13"><img height="13" src="/ifexsl/images/tabla_contenidos_3.gif" width="12" border="0" /></td>
								</tr>
								<tr>
									<td valign="top" background="/ifexsl/images/tabla_contenidos_4.gif"><img src="/ifexsl/images/tabla_contenidos_4.gif" width="11" height="20" border="0" /></td>
									<td valign="top" bgcolor="#f2f2f2"><div align="center">
										<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="textoprincipal">
											<tr>
												<td class="textoprincipal">Perfil Biogr&aacute;fico de <xsl:value-of select="PERFIL-WWW-NOMBRE"/></td>
											</tr>
										</table>
									</div></td>
									<td valign="top" background="/ifexsl/images/tabla_contenidos_6.gif"><img src="/ifexsl/images/tabla_contenidos_6.gif" width="12" height="20" border="0" /></td>
								</tr>
								<tr>
									<td width="11" height="13"><img height="13" src="/ifexsl/images/tabla_contenidos_7.gif" width="11" border="0" /></td>
									<td background="/ifexsl/images/tabla_contenidos_8.gif"><img src="/ifexsl/images/tabla_contenidos_8.gif" width="36" height="13" border="0" /></td>
									<td width="12" height="13"><img height="13" src="/ifexsl/images/tabla_contenidos_9.gif" width="12" border="0" /></td>
								</tr>
							</tbody>
						</table>
							<table width="700" border="0" align="center" cellpadding="0" cellspacing="0" class="titulo">
								<tr>
									<td valign="top"><div align="center" class="titulo"><xsl:value-of select="PERFIL-WWW-TITULO"/></div></td>
								</tr>
							</table>
							<table width="700" border="0" align="center" cellpadding="0" cellspacing="0" class="subtitulo">
								<tr>
									<td valign="top"><div align="center" class="subtitulo"><xsl:value-of select="PERFIL-WWW-SUBTITULO"/></div></td>
								</tr>
							</table>
							<table width="100%" height="20"  border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td>&nbsp;</td>
								</tr>
							</table>
							<table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
								<tr valign="top">
									<td width="50%"><div align="center"><img src="/ifexsl/images/ugalde.jpg" width="280" height="346">
										<xsl:attribute name="src" ><xsl:copy-of select="$prefijo"/><xsl:value-of select="PERFIL-WWW-FOTO"/> </xsl:attribute>
									</img>
										<table width="100%" height="20"  border="0" cellpadding="0" cellspacing="0">
											<tr>
												<td>&nbsp;</td>
											</tr>
										</table>          
										<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="cajadetextobold">
											<tr>
												<td><div align="center" class="cajadetextobold"><xsl:value-of select="PERFIL-WWW-NOMBRE"/></div></td>
											</tr>
										</table>
										<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="cajadetexto">
											<tr>
												<td><div align="center"> <xsl:value-of select="PERFIL-WWW-CARGO"/>
													
												</div></td>
											</tr>
										</table>
									</div></td>
									<td width="50%"><div align="center">
										<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="cajadetextobold">
											<tr>
												<td><div align="center" class="cajadetextobold"><xsl:value-of select="PERFIL-WWW-NOMBRE"/></div></td>
											</tr>
										</table>
										<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="cajadetexto">
											<tr>
												<td><div align="center"><xsl:value-of select="PERFIL-WWW-DIRECCION"/></div></td>
											</tr>
										</table>
										<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="cajadetexto">
											<tr>
												<td><div align="center"> Oficina <xsl:value-of select="PERFIL-WWW-TELEFONO"/></div></td>
											</tr>
										</table>
										<table width="100%"  border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td><div align="center">Direcci&oacute;n electr&oacute;nica <a class="cafe_home">
													<xsl:attribute name="href" >mailto:<xsl:value-of select="PERFIL-WWW-CORREO"/></xsl:attribute>
													<xsl:value-of select="PERFIL-WWW-CORREO"/>     
												</a></div></td>
											</tr>
										</table>
										<table width="100%" height="20"  border="0" cellpadding="0" cellspacing="0">
											<tr>
												<td><hr noshade="true"/></td>
											</tr>
										</table>
										<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="cajadetexto">
											<tr>
												<td> <xsl:value-of select="PERFIL-WWW-CONTENIDO" disable-output-escaping="yes"/></td>
											</tr>
										</table>
										<table width="100%" height="20"  border="0" cellpadding="0" cellspacing="0">
											<tr>
												<td>&nbsp;</td>
											</tr>
										</table>
										
										
										<table width="100%" height="92" border="1" cellpadding="2" cellspacing="0" bordercolor="#333333" bordercolorlight="#999999" bordercolordark="#FFFFFF">
											<xsl:if test="PERFIL-WWW-TITULO-ADJUNTO &#33;&#61;''">
												<tr valign="middle">
													
													<td width="30%" height="30" bgcolor="#CCCCCC"><div align="center" class="cajadetexto">
														<xsl:value-of select="PERFIL-WWW-TITULO-ADJUNTO"/></div></td>
												</tr>
											</xsl:if>
											<xsl:for-each select="VCM7305USER-PERFIL-WWW-ADJUNTO">
												<xsl:sort select="PERFIL-WWW-ADJUNTO-TITULO"/>
												
												<tr>
													<td height="30" bgcolor="#E6E6E6" align="left">
														<xsl:if test="PERFIL-WWW-ADJUNTO-TIPO-ARCHIVO &#33;&#61; 'otro'">
															<img height="16" hspace="5" src="/ifexsl/images/pdf_logo_small.gif" width="16" border="0">
																
																<xsl:choose>
																	<xsl:when test="PERFIL-WWW-ADJUNTO-TIPO-ARCHIVO = 'pdf'">
																		<xsl:attribute name="src">/ifexsl/images/pdf_logo_small.gif</xsl:attribute>
																	</xsl:when>
																	<xsl:when test="PERFIL-WWW-ADJUNTO-TIPO-ARCHIVO = 'doc'">
																		<xsl:attribute name="src">/ifexsl/images/doc_logo_small.gif</xsl:attribute>
																	</xsl:when>
																	<xsl:when test="PERFIL-WWW-ADJUNTO-TIPO-ARCHIVO = 'xls'">
																		<xsl:attribute name="src">/ifexsl/images/xls_logo_small.gif</xsl:attribute>
																	</xsl:when>
																	<xsl:when test="PERFIL-WWW-ADJUNTO-TIPO-ARCHIVO = 'ppt'">
																		<xsl:attribute name="src">/ifexsl/images/ppt_logo_small.gif</xsl:attribute>
																	</xsl:when>
																	<xsl:when test="PERFIL-WWW-ADJUNTO-TIPO-ARCHIVO = 'flash'">
																		<xsl:attribute name="src">/ifexsl/images/swf_logo_small.gif</xsl:attribute>
																	</xsl:when>
																	<xsl:when test="PERFIL-WWW-ADJUNTO-TIPO-ARCHIVO = 'zip'">
																		<xsl:attribute name="src">/ifexsl/images/zip_logo_small.gif</xsl:attribute>
																	</xsl:when>
																</xsl:choose>  
																
															</img>
														</xsl:if>
														
														<a>
															<xsl:attribute name="href" ><xsl:copy-of select="$prefijo"/><xsl:value-of select="PERFIL-WWW-ADJUNTO-ARCHIVO"/> </xsl:attribute>
															<xsl:attribute name="onclick">window.open(this.href,'Detalle','scrollbars=yes,resizable=no,width=720,height=400'); return false</xsl:attribute> 
															<span class="cajadetexto"><font face="Arial"><xsl:value-of select="PERFIL-WWW-ADJUNTO-TITULO"/>        </font></span></a>
														
														
													</td>
												</tr>
											</xsl:for-each>
											
										</table>
										
										
										
										
										<table width="100%" height="20"  border="0" cellpadding="0" cellspacing="0">
											<tr>
												<td>&nbsp;</td>
											</tr>
										</table>
									</div></td>
								</tr>
							</table>
							
							
							<hr width="95%" size="1" noshade="true"/>
							
							<br></br>
						</td>
					</tr>
				</table>
                                           </tr>	
		</span>
	</xsl:template>

	<xsl:template match="results">
		<xsl:variable name="numRows" select="count(child::*)"/>
		<xsl:variable name="inMgmtCDS" select="java:inMgmtCDS($requestContext)"/>
		<xsl:if test="$numRows=0 and $inMgmtCDS">
			<span class="vgn-ext-text">
				<i>(query preview: no results returned from query or the query is contextual)</i>
			</span>
		</xsl:if>
		<table width="100%" border="0" cellpadding="5" cellspacing="2" align="left">
			<xsl:apply-templates select="child::*"/>
		</table>	
	</xsl:template>

	<xsl:template match="@*|node()">
		<xsl:copy>
			<xsl:apply-templates select="@*|node()"/>
		</xsl:copy>
	</xsl:template>
</xsl:stylesheet>

