<!--
	Copyright (C) 2004 Orbeon, Inc.
	
	This program is free software; you can redistribute it and/or modify it under the terms of the
	GNU Lesser General Public License as published by the Free Software Foundation; either version
	2.1 of the License, or (at your option) any later version.
	
	This program 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 Lesser General Public License for more details.
	
	The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
-->
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:xforms="http://www.w3.org/2002/xforms"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
	xmlns:f="http://orbeon.org/oxf/xml/formatting" xsl:version="2.0">
	<head>
		<title>Formation Orbeon</title>
	</head>
	<body>
		<div align="center">
			<center>
				<h1>AFFICHAGE DES DONNEES</h1>
			</center>
		</div>
		<br />
		<br />
		<h4>
			<u>
				<i>I- Informations génerales :</i>
			</u>
		</h4>
					<xforms:group ref='/form'
				xxforms:show-errors="{doc('input:instance')/form/show-errors = 'true'}">
		<table>
			<tr>
				<td bgcolor='CC6633'
					style="ont-weight: bold; text-align: center">
					CIN :
				</td>
				<td bgcolor='CCFF99'
					style="ont-weight: bold; text-align: left">
				  <xforms:output ref="info-general/cin" />
				</td>
			</tr>
			<tr>
				<td bgcolor='CC6633'
					style="ont-weight: bold; text-align: center">
					CNE :
				</td>
				<td bgcolor='CCFF99'
					style="ont-weight: bold; text-align: left"> <xforms:output ref="info-general/cne" /></td>
			</tr>
			<tr>
				<td bgcolor='CC6633'
					style="ont-weight: bold; text-align: center">
					Nom :
				</td>
				<td bgcolor='CCFF99'
					style="ont-weight: bold; text-align: left"> <xforms:output ref="info-general/nom" /></td>
			</tr>
			<tr>
				<td bgcolor='CC6633'
					style="ont-weight: bold; text-align: center">
					Prénom :
				</td>
				<td bgcolor='CCFF99'
					style="ont-weight: bold; text-align: left"> <xforms:output ref="info-general/prenom" /></td>
			</tr>
			<tr>
				<td bgcolor='CC6633'
					style="ont-weight: bold; text-align: center">
					Date de naissance :
				</td>
				<td bgcolor='CCFF99'
					style="ont-weight: bold; text-align: left"> <xforms:output ref="info-general/date-naissance" /></td>
			</tr>
			<tr>
				<td bgcolor='CC6633'
					style="ont-weight: bold; text-align: center">
					email :
				</td>
				<td bgcolor='CCFF99'
					style="ont-weight: bold; text-align: left"> <xforms:output ref="info-general/email" /></td>
			</tr>
			<tr>
				<td bgcolor='CC6633'
					style="ont-weight: bold; text-align: center">
					site web :
				</td>
				<td bgcolor='CCFF99'
					style="ont-weight: bold; text-align: left"> <xforms:output ref="info-general/site-web" /></td>
			</tr>
			<tr>
				<td bgcolor='CC6633'
					style="ont-weight: bold; text-align: center">
					téléphone :
				</td>
				<td bgcolor='CCFF99'
					style="ont-weight: bold; text-align: left"> <xforms:output ref="info-general/telephone" /></td>
			</tr>
			<tr>
				<td bgcolor='CC6633'
					style="ont-weight: bold; text-align: center">
					adresse :
				</td>
				<td bgcolor='CCFF99'
					style="ont-weight: bold; text-align: left"><xforms:output ref="info-general/adresse" /></td>
			</tr>
			<tr>
				<td bgcolor='CC6633'
					style="ont-weight: bold; text-align: center">
					Situation familiale :
				</td>
				<td bgcolor='CCFF99'
					style="ont-weight: bold; text-align: left"><xforms:output ref="info-general/situation-familiale" /></td>
			</tr>
		</table>
		<h4>
			<u>
				<i>I- Diplomes :</i>
			</u>
		</h4>
		<center>
			<table>
				<tr bgcolor='CC6633'
					style="ont-weight: bold; text-align: center">
					<td>Intitule Diplome</td>
					<td>Annee Obtention</td>
					<td>Mention</td>
				</tr>
                <xsl:for-each select="/form/formations/diplomes/diplome[position()!=last()]">
                  <tr align='center'>
                    <td><xsl:value-of select="intitule" /></td>
                    <td><xsl:value-of select="annee" /></td>
                    <td><xsl:value-of select="mention" /></td>
                  </tr>
                </xsl:for-each>
			</table>
			<table>
				<tr>
					<td>
						<xforms:submit>
							<xforms:label>Entrer</xforms:label>
							<xforms:setvalue ref="action">displayData</xforms:setvalue>
						</xforms:submit>
					</td>
					<td>
						<xforms:submit>
							<xforms:label>quitter</xforms:label>
							<xforms:setvalue ref="action">annule</xforms:setvalue>
						</xforms:submit>
					</td>
				</tr>
			</table>
			</center>
		</xforms:group>
		<f:xml-source>
			<xsl:copy-of select="doc('input:instance')/form/*" />
		</f:xml-source>
	</body>
</html>
