<?xml version="1.0"?>
<!-- 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="Body">
				<xsl:call-template name="xslc:ApplicationMessages"/>
				<xsl:apply-templates select="ListModels"/>
				<xsl:call-template name="xslc:PoweredBy"/>
			</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template match="ListModels">
		<xsl:variable name="vAction">
			<xsl:if test="not(/document/Params/IDModel=-1)">UpdatetModels</xsl:if>
			<xsl:if test="/document/Params/IDModel=-1">InserttModels</xsl:if>
		</xsl:variable>
		<xsl:variable name="vGroup">
			<xsl:if test="not(/document/Params/IDModel=-1)">
				<xsl:value-of select="cGroup"/>
			</xsl:if>
			<xsl:if test="/document/Params/IDModel=-1">
				<xsl:value-of select="/document/Params/SelGroup"/>
			</xsl:if>
		</xsl:variable>
		<xsl:variable name="vMar">
			<xsl:if test="not(/document/Params/IDModel=-1)">
				<xsl:value-of select="VMarque"/>
			</xsl:if>
			<xsl:if test="/document/Params/IDModel=-1">
				<xsl:value-of select="/document/Params/SelInfo"/>
			</xsl:if>
		</xsl:variable>
		<xsl:variable name="vID">
			<xsl:value-of select="IDModel"/>
			<xsl:if test="IDModel=''">0</xsl:if>
		</xsl:variable>
		<p>
			<xsl:if test="/document/Params/IDModel!=-1">Modifiez ou supprimez le Modèle de Marque '</xsl:if>
			<xsl:if test="/document/Params/IDModel=-1">Saisissez la nouvelle valeur de Modèle pour la Marque '</xsl:if>
			<xsl:value-of select="/document/Params/SelInfo"/>'</p>
		<form name="MainForm" method="POST" action="{/document/Aliases/bdVODLL}{$vAction}">
			<input type="hidden" name="IDModel" value="{$vID}"/>
			<input type="hidden" name="cGroup" value="{$vGroup}"/>
			<table border="0" cellpadding="2" cellspacing="0" width="100%">
				<tr>
					<td nowrap="">
						<span class="clFieldCaption">Marque:</span>
					</td>
					<td style="padding-left: 10px" width="100%">
						<input type="text" class="clFlatTextInput" name="VMarque" size="50" value="{$vMar}"/>
					</td>
				</tr>
				<tr>
					<td nowrap="">
						<span class="clFieldCaption">Modèle:</span>
					</td>
					<td style="padding-left: 10px" width="100%">
						<input type="text" class="clFlatTextInput" name="VModele" size="50" value="{VModele}"/>
					</td>
				</tr>
				<tr>
					<td> </td>
					<td style="padding-left: 8px">
						<xsl:if test="/document/Params/IDModel=-1">
							<xsl:call-template name="xslc:ButtonPad"/>
						</xsl:if>
						<xsl:if test="/document/Params/IDModel!=-1">
							<xsl:call-template name="xslc:ButtonPad">
								<xsl:with-param name="DeleteAction">
									<xsl:value-of select="/document/Aliases/DLL"/>DeletetModels</xsl:with-param>
							</xsl:call-template>
						</xsl:if>
					</td>
				</tr>
			</table>
		</form>
	</xsl:template>
</xsl:stylesheet>
