<?xml version="1.0"?>                
 <xsl:stylesheet version="1.0"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
				 
<xsl:output method="html"
     encoding="ISO-8859-1" 
     doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
 
 <xsl:template match="ImportPaie"> 
    <html> 
      <head> 
        <title>Contr&#244;le des tables</title>
		<style>
		  h1 {color:#007F64;text-align:center;font-size:32pt;}
		  table { border-spacing: 0; border-collapse: collapse;}	
	      body {font-size:12px; color:#333;font-family:arial;}
		  .table-section {padding-top:150px}
		  .table-section h2 {background-color:white;color:#007F64;width:750px;padding:10px;}
		  #toc a {color:#007F64}
		  .tableau {border: 1px solid #dbdbde;cellpadding:0px;border-spacing:0px;font-size:12px}
		  .tableau tr:nth-child(even) {background-color:#f5f5f5;}
		  .tableau tr td {padding:5px;}
		  .tableau tr th {background-color:#4d4f53;color:white;border-left: 1px solid #dbdbde;font-weight:bold;}
		  .titre {cellpadding:0px;border-spacing:0px}
		  .titre tr th {color:#007F64;}
		   #menu {width:100%;height:30px;background-color:#4d4f53;}		  
		   ul {padding:0;margin:0;list-style-type:none;}
		   li {float:left;border-left:1px solid #4d4f53;}
		   ul li a {display:block;float:left;width:250px;line-height:30px;background:#4d4f53   	repeat-x;color:white;text-decoration:none;text-align:center;}
		   ul li a:hover {background:#007F64 repeat-x;color:white;}
       #function {width:30px;height:30px;background-color:#4d4f53;}	
		  .img {cellpadding:0px;border-spacing:0px}
		  .img tr td {background-color:#4d4f53;}					
		  .modifier {width:25px; height:25px; background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0
		    IDQuMC41ZYUyZQAAAaNJREFUSEvdlc1Kw0AURlvT+AguVATxJRTciG5UBCuCiIKCgtCNiyKIrdqiIIhufBo3Ln0OF26kIlb8bauJ5yY3YqFiZpKNfnCYOzO598skw0zm
		    T8n3/azneVOQJ3Z0OD2pwTq8QROKjHXpdDqi6DK8UjgQcQM2CbP6iL0o4sAABefgSQwi0ZdVbeijdqKOQ5E9uIZhyMNDaBGK/g1NTlPMRKIY7EJLi9VgDGbgXsceYUlT
		    zKQGZQgMItG/g2mYhCtYZNj855OUI7kEbQbfVGduHvqJrQxckuUf/GQgq2lBidB8V5HkQiWGwT6hq2nxJUkkV+E9qNZBzH3QVMDKQP7BwS8Goiqh+VYlSVZwBPKWHSVz
		    IJ/I/KwiqZvkkxgGZUKrXSSH3WkMgx1Cu0OQ5D5Yg0ZYsl2My//ZBjsDEmUVl7SrtEVoEn+JvmzTLUI7AxEFhuAFnmEBDiE6n+RUleM72YVEkRXwpCiqwyzdM5DDrkA/
		    +Y1HofOgvIr+LYwTjkIqBj0gn0quTzm6L6AAg/pIclFsBI554wnaXtrkV+c/UybzCdaLFoikKMGYAAAAAElFTkSuQmCC);}
		  .assistant {width: 30px; height: 30px; background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZ
		    nR3YXJlAHBhaW50Lm5ldCA0LjAuNWWFMmUAAANbSURBVEhLzZZLSJRRFMfnoY6Jr8weChkEkmVJQWBEOxe1KCKMpAgCaWm1CqxVYfSiTauKqEVQtNJAgrAixMqIhCwqK
		    Qwq0SwxMtMgnen3v3NmGK1k5nOC/vDjnHvuved+33dfn++/VSQSCcCicDi8BFtg4X8vBqyEDyDdhnyrSq94q2LYoLeEIAPtxjrhD2FWg+J6oGr8LOvqXSQpJtld+AnP4
		    Br0E3fCn4AeuAiDMAYnrLt3kaQaxm0cJ8pvoBmugD71sFU5Ue7DzLUU3kSSefDIEo5Dk5JCBvgph6AcHsAkSGrjtxTeZMkvYzXwMUwW5OLvwR7B1mAD2FJ4DpqS9dY9d
		    VmyVbAX+qAXiojnYFsh9naa0wbiesCtWD3gLdgGJZYuedFpAfQqkYTfisnEboeJaDQqygOYTIE/6oIIvwWTaSmTE50Ww1g0hUtyHaOvsB8mo9GoKOtBcq1f4orvwrh40
		    lIHOrbAZyWGe8SysVUwosQSvtSGq8Wmrac51ucfgEPEUl9kdMqGChI8ha9QqTh2B2ghfQPN9wra6WucxuphmqAU1/vKpnMQTiohegJl4AfNqVa46jXoZhgGbbkq6+5dJ
		    NUbu3nDSjqldkFI9dgSOAPxQwS/I1bvWSRYA25OsdpC7hTD/oAhCFv5e4Kvh8uHetBxW0dYX2UndMJByjNPAw0y1BB0Gx0H7W2tcCd8DXgYlkMbvIK1VGlrfbE2L0CDd
		    ltZD59jQ8wsGufR2D0lfg24LYUdxJQpjtVgefIl/BtqM13EO61+DsWAa5yMaKxto1vqMUzZMpRroRvOQWxaXkO7xbXdNGWaghE4lergWs05MGWuSHSHWFyUr2J0j+uvp
		    RAaicVPPvx3mNROtz+JRAfgvSX9COW4BdharH6XiuCl1ev834eb/Bv/TSTRn8gWS6xFpWt1I4xCPWFdJh1WfxSTYV1nJ5KtAx2hSvwJluEWYutAe34+9Fj9W0wjzP6NS
		    daspDFRvolZCjrnF4KO08Q51pab/T8aiXR76VLR71HsQNF93mUxNyj2PmhVn6eYljnWLVUB2tNnsb+JuA6jEK47561r+kTydhtIl4dOv4dW1j5eac3SL5I3QD9cYLws7
		    CbQOX4J4idc2sVgseszOK2c/s/rXT7fL4JnkfXBKa7ZAAAAAElFTkSuQmCC);}
       </style>
       <script src="jquery-1.10.2.min.js"></script>
     </head>
     <body bgcolor="#ffffff">
			 <div id="menu">
				 <ul>
				 <li id ="item1">
					 <a type="simple"> 
						 <xsl:attribute name="href"><xsl:value-of select="concat(CheminEtatDSN,'ControleContratsPrevoyanceEtab.html')"/></xsl:attribute> Contr&#244;le des contrats de pr&#233;voyance &#233;tablissements	   
					 </a>  
				 </li>					 
				 <li id ="item2">
					 <a type="simple"> 
						 <xsl:attribute name="href"><xsl:value-of select="concat(CheminEtatDSN,'ControleCaisse.html')"/></xsl:attribute> Contr&#244;le des informations caisse	   
					 </a>  
				 </li>				 
				 <li id ="item3">
					 <a type="simple"> 
					 <xsl:attribute name="href"><xsl:value-of select="concat(CheminEtatDSN,'ControleEtablissement.html')"/></xsl:attribute> Contr&#244;le des informations &#233;tablissements
					 </a>
				 </li>		 
				 </ul>		 
			 </div>		 
	   <div id="content">
        <table class="titre">
         <tr>
		   <th width="1030px" height="80px"><h1>Contr&#244;le des tables</h1></th>
         </tr>
        </table> 
		 <br></br>   
	     Date du jour : <xsl:value-of select="NoDS/Date_NODSN"/> Heure : <xsl:value-of select="NoDS/Heure_NODSN"/>
		 <br></br>
		 <br></br>
         P&#233;riode du : <xsl:value-of select="concat(substring(DateDebutPeriode,9,2),'/',substring(DateDebutPeriode,6,2),'/',substring(DateDebutPeriode,1,4))"/> au : <xsl:value-of select="concat(substring(DateFinPeriode,9,2),'/',substring(DateFinPeriode,6,2),'/',substring(DateFinPeriode,1,4))"/>	 
		 <br></br>
		 <br></br>
	     Soci&#233;t&#233; : <xsl:value-of select="NoDS/RaisonSociale_NODSN"/>
		 <br></br>
		 <br></br>
			 <div id="function">
				 <table class="img"> 
						<tr>
								<td style="border-left: 1px solid #FFF;" align="center">
									 <a type="simple"> 
										 <xsl:attribute name="href"><xsl:value-of select="concat('form:','dsnetape2;')"/></xsl:attribute> 	 
										 <img id="regenerer" src="" title="R&#233;g&#233;n&#233;rer" border="0" width="30" height="30"/>  
									 </a> 
								</td>
						</tr>
					 </table>				 
				</div>			 
		 <br></br>
	     <b> <font size="3pt" color="#007F64">Natures de contrat</font> </b>
		 <br></br>
		 <br></br>
         <xsl:if test = "NoDS/ConfidentialiteNatureContrat_NODSN = 1"> 
		   Acc&#232;s non autoris&#233;
           <br></br>
		   <br></br>
         </xsl:if>	 
         <xsl:if test = "NoDS/ConfidentialiteNatureContrat_NODSN != 1"> 
           <table class="tableau">
             <tr>
						   <th id="icone" width="140px"></th>
							 <th>Code</th>
							 <th>Intitul&#233;</th>
							 <th>DSN 3</th>
							 <th>Dispositif d&#39;aide publique</th>
		         </tr>
 	       <xsl:apply-templates select="NoDS/NatureDeContrats_NODSN/NatureDeContrat_NODSN" mode="naturecontrat"/>	
           </table> 
         </xsl:if>	 
		 <br></br>
		 <br></br>
		 <b> <font size="3pt" color="#007F64">Motifs d&#39;absence</font> </b>
		 <br></br>
		 <br></br>
         <xsl:if test = "NoDS/ConfidentialiteMotifAbsence_NODSN = 1"> 
		   Acc&#232;s non autoris&#233;
           <br></br>
		   <br></br>
         </xsl:if>	 
         <xsl:if test = "NoDS/ConfidentialiteMotifAbsence_NODSN != 1"> 
           <table class="tableau">
             <tr height="40">
						   <th id="icone" width="140px"></th>
							 <th>Code</th>
							 <th>Intitul&#233;</th>
							 <th>DSN</th>
             </tr>
 	         <xsl:apply-templates select="NoDS/MotifDAbsences_NODSN/MotifDAbsence_NODSN" mode="motifabsence"/>	
           </table> 
         </xsl:if>	 
		 <br></br>
		 <br></br>
		 <b> <font size="3pt" color="#007F64">Motifs de d&#233;part</font> </b>
		 <br></br>
		 <br></br>
         <xsl:if test = "NoDS/ConfidentialiteMotifDepart_NODSN = 1"> 
		   Acc&#232;s non autoris&#233;
           <br></br>
		   <br></br>
         </xsl:if>	 
         <xsl:if test = "NoDS/ConfidentialiteMotifDepart_NODSN != 1"> 
           <table class="tableau">
             <tr height="40">
						 	 <th id="icone" width="140px"></th>
							 <th>Code</th>
							 <th>Intitul&#233;</th>
							 <th>DSN</th>
             </tr>
 	         <xsl:apply-templates select="NoDS/MotifDeparts_NODSN/MotifDepart_NODSN" mode="motifdepart"/>	
           </table> 
         </xsl:if>	 
		 <br></br>
		 <br></br>
		 <b> <font size="3pt" color="#007F64">Motifs de contrat</font> </b>
		 <br></br>
		 <br></br>
         <xsl:if test = "NoDS/ConfidentialiteMotifContrat_NODSN = 1"> 
		   Acc&#232;s non autoris&#233;
           <br></br>
		   <br></br>
         </xsl:if>	 
         <xsl:if test = "NoDS/ConfidentialiteMotifContrat_NODSN != 1"> 
           <table class="tableau">
             <tr height="40">
						   <th id="icone" width="140px"></th>
							 <th>Code</th>
							 <th>Intitul&#233;</th>
							 <th>Motif d&#39;entree</th>
							 <th>Motif de sortie</th>
							 <th>Contrat CDD</th>
							 <th>Motif de recours au CDD</th>
             </tr>
 	         <xsl:apply-templates select="NoDS/MotifDeContrats_NODSN/MotifDeContrat_NODSN" mode="motifcontrat"/>	
           </table> 
         </xsl:if>	 
		 <br></br>
		 <br></br>	     
	   </div>
       <script  type="text/javascript">
         $("#regenerer").attr("class", "assistant");       
         $("tr:odd").css("background-color","#f5f5f5");
				 function checkFile(urlFile,item){		 	 
					$.ajax({
						type: 'POST',
						url: urlFile,
						error: function(){
							document.getElementById(item).style.display ="none";
						}
					})	
							}
		 checkFile("<xsl:value-of select="concat(CheminEtatDSN,'ControleContratsPrevoyanceEtab.html')"/>","item1");					
         checkFile("<xsl:value-of select="concat(CheminEtatDSN,'ControleCaisse.html')"/>","item2");
         checkFile("<xsl:value-of select="concat(CheminEtatDSN,'ControleEtablissement.html')"/>","item3"); 
       </script>    
     </body>
    </html>
 </xsl:template>
 

<xsl:template match="NoDS/NatureDeContrats_NODSN/NatureDeContrat_NODSN" mode="naturecontrat">
<tr height="24">
	<td id="icone" width="140px" style="background-color:#4d4f53" align="center">
		 <a type="simple"> 
			 <xsl:attribute name="href"><xsl:value-of select="concat('form:','naturecontrat;',Code_NODSN)"/></xsl:attribute> 	 
			 <img src="" title="Modifier" border="0" width="25" height="25" class="modifier"/>  
		 </a>  
	</td>  
  <td width="200px">
    <xsl:if test = "Code_NODSN != '[!VIDE]'"> 
      <xsl:value-of select="Code_NODSN"/>
    </xsl:if>	 
  </td>
  <td width="600px">
    <xsl:if test = "Intitule_NODSN != '[!VIDE]'"> 
      <xsl:value-of select="Intitule_NODSN"/>
    </xsl:if>	 
  </td>
  <td width="100px" align="center">
    <xsl:if test = "Dsn_NODSN != '[!VIDE]'"> 
      <xsl:value-of select="Dsn_NODSN"/>
    </xsl:if>	 
  </td>
  <td width="100px" align="center">
    <xsl:if test = "DispositifAide_NODSN != '[!VIDE]'"> 
      <xsl:value-of select="DispositifAide_NODSN"/>
    </xsl:if>	 
  </td>
</tr> 
</xsl:template>

<xsl:template match="NoDS/MotifDAbsences_NODSN/MotifDAbsence_NODSN" mode="motifabsence">
<tr height="24">
	<td id="icone" width="140px" style="background-color:#4d4f53" align="center">
		 <a type="simple"> 
			 <xsl:attribute name="href"><xsl:value-of select="concat('form:','motifabsence;',Code_NODSN)"/></xsl:attribute> 	 
			 <img src="" title="Modifier" border="0" width="25" height="25" class="modifier"/>  
		 </a>  
	</td> 
  <td width="200px">
    <xsl:if test = "Code_NODSN != '[!VIDE]'"> 
      <xsl:value-of select="Code_NODSN"/>
    </xsl:if>	 
  </td>
  <td width="700px">
    <xsl:if test = "Intitule_NODSN != '[!VIDE]'"> 
      <xsl:value-of select="Intitule_NODSN"/>
    </xsl:if>	 
  </td>
  <td width="100px" align="center">
    <xsl:if test = "Dsn_NODSN != '[!VIDE]'"> 
      <xsl:value-of select="Dsn_NODSN"/>
    </xsl:if>	 
  </td>
</tr> 
</xsl:template>

<xsl:template match="NoDS/MotifDeparts_NODSN/MotifDepart_NODSN" mode="motifdepart">
<tr height="24">
	<td id="icone" width="140px" style="background-color:#4d4f53" align="center">
		 <a type="simple"> 
			 <xsl:attribute name="href"><xsl:value-of select="concat('form:','motifdepart;',Code_NODSN)"/></xsl:attribute> 	 
			 <img src="" title="Modifier" border="0" width="25" height="25" class="modifier"/>  
		 </a>  
	</td> 
  <td width="200px">
    <xsl:if test = "Code_NODSN != '[!VIDE]'"> 
      <xsl:value-of select="Code_NODSN"/>
    </xsl:if>	 
  </td>
  <td width="600px">
    <xsl:if test = "Intitule_NODSN != '[!VIDE]'"> 
      <xsl:value-of select="Intitule_NODSN"/>
    </xsl:if>	 
  </td>
  <td width="100px" align="center">
    <xsl:if test = "DadSu_NODSN != '[!VIDE]'"> 
      <xsl:value-of select="DadSu_NODSN"/>
    </xsl:if>	 
  </td>
</tr> 
</xsl:template>

<xsl:template match="NoDS/MotifDeContrats_NODSN/MotifDeContrat_NODSN" mode="motifcontrat">
<tr height="24">
	<td id="icone" width="140px" style="background-color:#4d4f53" align="center">
		 <a type="simple"> 
			 <xsl:attribute name="href"><xsl:value-of select="concat('form:','motifcontrat;',Code_NODSN)"/></xsl:attribute> 	 
			 <img src="" title="Modifier" border="0" width="25" height="25" class="modifier"/>  
		 </a>  
	</td> 
  <td width="100px">
    <xsl:if test = "Code_NODSN != '[!VIDE]'"> 
      <xsl:value-of select="Code_NODSN"/>
    </xsl:if>	 
  </td>
  <td width="300px">
    <xsl:if test = "Intitule_NODSN != '[!VIDE]'"> 
      <xsl:value-of select="Intitule_NODSN"/>
    </xsl:if>	 
  </td>
  <td width="60px" align="center">
    <xsl:if test = "MotifEntree_NODSN != '[!VIDE]'"> 
      <xsl:value-of select="MotifEntree_NODSN"/>
    </xsl:if>	 
  </td>
  <td width="60x" align="center">
    <xsl:if test = "MotifSortie_NODSN != '[!VIDE]'"> 
      <xsl:value-of select="MotifSortie_NODSN"/>
    </xsl:if>	 
  </td>
  <xsl:choose>
    <xsl:when test = "Cdd_NODSN = '[!VIDE]'"> 
      <td width="70px" align="center"></td>
    </xsl:when>	 
    <xsl:when test = "Cdd_NODSN = 0"> 
      <td align="center" width="70px">Non</td>
    </xsl:when>	 
    <xsl:when test = "Cdd_NODSN = 1"> 
      <td align="center" width="70px">Oui</td>
    </xsl:when>	 
     <xsl:otherwise>	 
      <td width="70px" align="center"><xsl:value-of select="Cdd_NODSN"/></td>
    </xsl:otherwise>	 
  </xsl:choose>
  <xsl:choose>
    <xsl:when test = "MotifRecours_NODSN = 1"> 
      <td width="400px">01 - Remplacement d&#39;un salari&#233;</td>
    </xsl:when>	 
    <xsl:when test = "MotifRecours_NODSN = 2"> 
      <td width="400px">02 - Accroissement temporaire de l&#39;activit&#233; de l&#39;entreprise</td>
    </xsl:when>	 
    <xsl:when test = "MotifRecours_NODSN = 3"> 
      <td width="400px">03 - Emplois &#224; caract&#232;re saisonnier</td>
    </xsl:when>	 
    <xsl:when test = "MotifRecours_NODSN = 4"> 
      <td width="400px">04 - Contrat vendanges</td>
    </xsl:when>	 
    <xsl:when test = "MotifRecours_NODSN = 5"> 
      <td width="400px">05 - Contrat &#224; dur&#233;e d&#233;termin&#233;e d&#39;usage</td>
    </xsl:when>	 
    <xsl:when test = "MotifRecours_NODSN = 6"> 
      <td width="400px">06 - Contrat &#224; dur&#233;e d&#233;termin&#233;e &#224; objet d&#233;fini</td>
    </xsl:when>	 
    <xsl:when test = "MotifRecours_NODSN = 7"> 
      <td width="400px">07 - Remplacement d&#39;un chef d&#39;entreprise</td>
    </xsl:when>	 
    <xsl:when test = "MotifRecours_NODSN = 8"> 
      <td width="400px">08 - Remplacement du chef d&#39;une exploitation agricole</td>
    </xsl:when>	 
    <xsl:when test = "MotifRecours_NODSN = 9"> 
      <td width="400px">09 - Recrutement de pers. sans emploi avec des difficult&#233;s soc. et prof.</td>
    </xsl:when>	 
    <xsl:when test = "MotifRecours_NODSN = 10"> 
      <td width="400px">10 - Compl&#233;ment de formation professionnelle au salari&#233;</td>
    </xsl:when>	 
    <xsl:when test = "MotifRecours_NODSN = 11"> 
      <td width="400px">11 - Formation professionnelle au salari&#233; par la voie de l&#39;apprentissage</td>
    </xsl:when>	 
    <xsl:when test = "MotifRecours_NODSN = 12"> 
      <td width="400px">12 - Remplacement d&#39;un salari&#233; pass&#233; provisoirement &#224; temps partiel</td>
    </xsl:when>	 
    <xsl:when test = "MotifRecours_NODSN = 13"> 
      <td width="400px">13 - Attente suppression d&#233;finitive du poste</td>
    </xsl:when>	 
    <xsl:otherwise>	 
      <td width="400px"></td>
    </xsl:otherwise>	 
 </xsl:choose> 
</tr> 
</xsl:template>
 
</xsl:stylesheet>