<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:cdmfr="http://cdm-fr.fr/2011/CDM-frSchema"
	exclude-result-prefixes="xsl xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:xhtml="http://www.w3.org/1999/xhtml">

	<xsl:template name="tRechercheAvancee">
	
		<form id="rechercheAvancee" action="{$absActionURL}/{$_lang}/postRecherche" method="post">
		  <fieldset>
			<input type="hidden" name="_debut" value="0"/>
			<input type="hidden" name="__1" value="__domaine"/>
			<input type="hidden" name="__2" value="AND"/>
			<input type="hidden" name="__3" value="__diplome"/>
			<input type="hidden" name="__4" value="AND"/>
			<input type="hidden" name="__5" value="__intitule_pt_AND"/>
			<!-- Les domaines -->
			<div class="ligne_form">
				<label for="__domaine"><xsl:value-of select="$variablesExt/variables/titreVar/titreRub[@type='43']/value[@lang=$_lang]"/></label>
				 <select size="1" name="__domaine">
				<option value="">
					<xsl:if test="$domaine=''"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
					<xsl:value-of select="$variablesExt/variables/titreVar/titreRub[@type='44']/value[@lang=$_lang]"/>
				</option>
				<xsl:for-each select="/CDM/properties/infoBlock/extension/uniform/constantes/domaineDiplome[@type='domaine']/data">
					<option value="{./@id}">
						<xsl:if test="./@id=$domaine"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
						<xsl:value-of select="./value[@lang=$_lang]"/>
					</option>
				</xsl:for-each>
				</select>
			</div>

			<!-- Les types de diplomes -->
			<div class="ligne_form">
				<label for="__diplome"><xsl:value-of select="$variablesExt/variables/titreVar/titreRub[@type='40']/value[@lang=$_lang]"/></label>
				<select size="1" name="__diplome">
					<option value="">
						<xsl:if test="$diplome=''">
							<xsl:attribute name="selected">selected</xsl:attribute>
						</xsl:if>
						<xsl:value-of select="$variablesExt/variables/titreVar/titreRub[@type='35']/value[@lang=$_lang]"/>
					</option>
					<xsl:for-each select="/CDM/properties/infoBlock/extension/uniform/constantes/typeDiplome/data">
						 
						  <option value="{./@id}">
							<xsl:if test="./@id=$diplome"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
							<xsl:value-of select="./value[@lang=$_lang]"/>
						  </option>
					</xsl:for-each>
				</select>
			</div>	
			
			<!-- Mots-clés -->
			<div class="ligne_form">
				<label for="__intitule_pt_AND"><xsl:value-of select="$variablesExt/variables/titreVar/titreRub[@type='56']/value[@lang=$_lang]"/></label>
				<input  class="entree" size="24" name="__intitule_pt_AND" type="text">
				  <xsl:attribute name="value"><xsl:choose><xsl:when test="$intitule!=''"><xsl:value-of select="$intitule"/></xsl:when><xsl:otherwise></xsl:otherwise></xsl:choose></xsl:attribute>
				</input>
			</div>

			<!-- Envoyer la recherche : -->
		   <span class="droit"><xsl:value-of select="$variablesExt/variables/titreVar/titreRub[@type='42']/value[@lang=$_lang]"/><input type="submit" class="bouton"  value=""/></span>
		  </fieldset>
		</form>
		
	</xsl:template>

</xsl:stylesheet>