<!--
	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>ADMINISTRATION</h1>
			</center>
		</div>
		   <center>
     <xforms:group ref="/form">
		     <table>
		       <tr>
		         <td bgcolor='CC6633' style="ont-weight: bold; text-align: center"> Nom </td>
		         <td bgcolor='CC6633' style="ont-weight: bold; text-align: center"> Prenom </td>
		         <td bgcolor='CC6633' style="ont-weight: bold; text-align: center"> Login </td>
		         <td bgcolor='CC6633' style="ont-weight: bold; text-align: center"> Mot de passe </td>
		         <td bgcolor='CC6633' style="ont-weight: bold; text-align: center"> Niveau </td>
		         <td bgcolor='CC6633' style="ont-weight: bold; text-align: center"> Active </td>
		         <td bgcolor='CC6633' style="ont-weight: bold; text-align: center"> Actions </td>
		       </tr>
		       <xsl:for-each select="/personnes/personne">
		           <tr align='center'>
		             <td><xsl:value-of select="nom" /></td>
		             <td><xsl:value-of select="prenom" /></td>
		             <td><xsl:value-of select="login" /></td>
		             <td><xsl:value-of select="password" /></td>
		             <td><xsl:value-of select="email" /></td>
		             <td><xsl:value-of select="level" /></td>
		             <td align='center'>
		                      <xforms:submit xxforms:appearance="image" >
                               <xxforms:img src="/images/remove.png"/>
                               <xforms:setvalue ref="action">delete</xforms:setvalue>
                               <xforms:setvalue ref="id"><xsl:value-of select="id-informations" /></xforms:setvalue>
                              </xforms:submit>&#160;&#160;&#160;&#160;&#160;

		             </td>
		           </tr>
		       </xsl:for-each>
		     </table>
		     </xforms:group>
		   </center>
		<f:xml-source>
			<xsl:copy-of select="doc('input:instance')/form/*" />
		</f:xml-source>
	</body>
</html>
