<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- edited with XML Spy v2.5 NT  - http://www.xmlspy.com -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xslc="http://xslcomponents.org/TR/WD-xslc">
	<xsl:import href="../../xslc.xsl"/>
	<xsl:import href="../../Common.xsl"/>
	<xsl:template match="/">
		<xsl:apply-templates select="document"/>
	</xsl:template>
	<xsl:template match="document">
		<xsl:call-template name="xslc:Page">
			<xsl:with-param name="Title">Gestion des Utilisateurs</xsl:with-param>
			<xsl:with-param name="ToolbarButtonsLeft">
				<ToolbarButton>
					<xsl:call-template name="ToolButtonRefresh"/>
				</ToolbarButton>
			</xsl:with-param>
			<xsl:with-param name="ToolbarButtonsRight">
				<xsl:call-template name="CommonToolbarButtonsRight"/>
			</xsl:with-param>
			<xsl:with-param name="Body">
				<xsl:call-template name="xslc:TabControl">
					<xsl:with-param name="Width">625</xsl:with-param>
					<xsl:with-param name="ActivePageName">SECURITY</xsl:with-param>
					<xsl:with-param name="Tabs">
						<Tab Name="SECURITY">
							<a href="{/document/Aliases/GestionDLL}SECURITY">Gestion des Utilisateurs</a>
						</Tab>
					</xsl:with-param>
					<xsl:with-param name="Page">
						<script language="javascript">
							<![CDATA[
var questionDeleteUser = "Etes vous sûr de vouloir supprimer cet utilisateur?\nCliquez OK pour confirmer.";
]]>
						</script>
						<xsl:call-template name="xslc:ApplicationMessages"/>
						<div id="zoneTAB">
							<ul class="nicetab">
								<li class="selected">
									<a href="Security">Utilisateurs</a>
								</li>
								<xsl:if test="/document/XMLC_Params/User_RVN = '1' ">
									<li>
										<a href="OptVersions">Modèles et Motorisations</a>
									</li>
								</xsl:if>
								<li>
									<a href="Options">Options</a>
								</li>
								<li>
									<a href="About">A Propos</a>
								</li>
							</ul>
						</div>
						<table>
							<tr>
								<td>Connecté : <xsl:value-of select="XMLC_Params/XMLC_UserName"/>
								</td>
							</tr>
						</table>
						<br/>
						<xsl:apply-templates select="Groups"/>
						<xsl:apply-templates select="Users"/>
						<xsl:call-template name="xslc:PoweredBy"/>
					</xsl:with-param>
				</xsl:call-template>
			</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template match="Groups">
		<table border="1" cellpadding="2" cellspacing="0" class="clFlatTable" width="600px">
			<tr class="clRowHeader">
				<td>Groupes</td>
				<td width="12px"/>
			</tr>
			<xsl:apply-templates select="Group">
				<xsl:sort select="Name"/>
			</xsl:apply-templates>
			<form name="InsertGroup" method="POST" action="{/document/Aliases/GestionDLL}InsertGroup">
				<xsl:variable name="clValue">
					<xsl:choose>
						<xsl:when test="count(Group) mod 2 = 0">Light</xsl:when>
						<xsl:otherwise>Dark</xsl:otherwise>
					</xsl:choose>
				</xsl:variable>
				<tr class="clRow{$clValue}">
					<td class="clDataGrid{$clValue}">
						<input type="text" name="Name"/>
					</td>
					<td>
						<a onclick="document.InsertGroup.submit(); return false;">
							<img alt="Création d'un nouveau groupe" border="0" src="{$XMLC_PictosPath}ico_xplus.gif"/>
						</a>
					</td>
				</tr>
			</form>
		</table>
	</xsl:template>
	<xsl:template match="Users">
		<table border="1" cellpadding="2" cellspacing="0" class="clFlatTable" width="600px">
			<br/>
			<br/>
			<tr class="clRowHeader">
				<td width="12px"/>
				<td width="250px">Email des Utilisateurs</td>
				<td width="100px">Adresse IP</td>
				<td width="150px">Dernier Login</td>
				<td width="12px"/>
			</tr>
			<xsl:apply-templates select="User">
				<xsl:sort select="Name"/>
			</xsl:apply-templates>
			<form name="InsertUser" method="POST" action="{/document/Aliases/GestionDLL}InsertUser">
				<xsl:variable name="clValue">
					<xsl:choose>
						<xsl:when test="count(User) mod 2 = 0">Light</xsl:when>
						<xsl:otherwise>Dark</xsl:otherwise>
					</xsl:choose>
				</xsl:variable>
				<tr class="clRow{$clValue}">
					<td width="12px">
						<a onclick="document.InsertUser.submit(); return false;">
							<img alt="Création d'un nouvel utilisateur" border="0" src="{$XMLC_PictosPath}ico_xplus.gif"/>
						</a>
					</td>
					<td class="clDataGrid{$clValue}">
						<input type="text" name="Name" value="{Name}"/>
					</td>
					<td/>
					<td>
						<a onclick="document.InsertUser.submit(); return false;">
							<img alt="Création d'un nouvel utilisateur" border="0" src="{$XMLC_PictosPath}ico_xplus.gif"/>
						</a>
					</td>
				</tr>
			</form>
			<form name="FormDeleteUser" method="POST" action="{/document/Aliases/GestionDLL}DeleteUser">
				<input type="hidden" name="ID"/>
			</form>
		</table>
	</xsl:template>
	<xsl:template match="Group">
		<xsl:variable name="clValue">
			<xsl:choose>
				<xsl:when test="position() mod 2 = 1">clRowLight</xsl:when>
				<xsl:otherwise>clRowDark</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<tr class="{$clValue}">
			<td>
				<a href="{/document/Aliases/GestionDLL}FormGroup?Group_ID={ID}">
					<xsl:value-of select="Name"/>
				</a>
			</td>
			<td/>
		</tr>
	</xsl:template>
	<xsl:template match="User">
		<xsl:variable name="clValue">
			<xsl:choose>
				<xsl:when test="position() mod 2 = 1">clRowLight</xsl:when>
				<xsl:otherwise>clRowDark</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<tr class="{$clValue}">
			<td>
				<a href="{/document/Aliases/GestionDLL}FormUser?User_ID={ID}">
					<img alt="Infos de l'utilisateur" border="0" src="{$XMLC_PictosPath}ico_run.gif"/>
				</a>
			</td>
			<td>
				<a href="{/document/Aliases/GestionDLL}FormUser?User_ID={ID}">
					<xsl:value-of select="Name"/>
				</a>
			</td>
			<td>
				<a href="{/document/Aliases/GestionDLL}FormUser?User_ID={ID}">
					<xsl:if test="Password!=''">
						<img alt="Mot de passe activé" heigth="15" width="15" border="0" src="{$XMLC_PictosPath}Buttons\PBX\LockConference.gif"/> - </xsl:if>
					<xsl:if test="Password=''">
						<img alt="Mot de passe effacé" heigth="15" width="15" border="0" src="{$XMLC_PictosPath}Buttons\PBX\UnLockConference.gif"/> - </xsl:if>
					<xsl:if test="RemoteHost!=''">
						<xsl:value-of select="RemoteHost"/>
					</xsl:if>
				</a>
			</td>
			<td>
				<a href="{/document/Aliases/GestionDLL}FormUser?User_ID={ID}">
					<xsl:if test="DSession!=''">
						<xsl:value-of select="DSession"/> - </xsl:if>
					<xsl:if test="Infos!=''">
						<xsl:value-of select="Infos"/> - </xsl:if>
					<xsl:value-of select="CU"/>
				</a>
			</td>
			<td>
				<a onclick="document.FormDeleteUser.ID.value='{ID}'; submitForm('FormDeleteUser', 'CONFIRM', questionDeleteUser); return false;">
					<img alt="Suppression de l'utilisateur" border="0" src="{$XMLC_PictosPath}ico_xminus.gif"/>
				</a>
			</td>
		</tr>
	</xsl:template>
</xsl:stylesheet>
