<?xml version="1.0" encoding="ISO-8859-15"?>
<!-- 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:param name="RecordCount" select="@VOS/RowCount"/>
		<xsl:call-template name="xslc:Page">
			<xsl:with-param name="Head">
				<META HTTP-EQUIV="imagetoolbar" CONTENT="no"/>
				<script language="javascript">
					<![CDATA[function handleNumberKeyPress(e) {
  var keyCode = GetEventKeyCode(e);
  if (keyCode != 13)
    return true;
  return false;
}]]>
				</script>
			</xsl:with-param>
			<xsl:with-param name="Title">List VO</xsl:with-param>
			<xsl:with-param name="ToolbarButtonsLeft">
				<ToolbarButton>
					<xsl:call-template name="ToolButtonRefresh"/>
				</ToolbarButton>
			</xsl:with-param>
			<xsl:with-param name="ToolbarButtonsRight">
				<ToolbarButton>
					<xsl:call-template name="xslc:ToolbarButton">
						<xsl:with-param name="Caption">
							<img border="0" src="{$XMLC_PictosPath}button_pdf.gif" alt="Print Report"/>
						</xsl:with-param>
						<xsl:with-param name="HRef">
							<xsl:value-of select="/document/Aliases/bdVODLL"/>ReportListVO?PDF_MediaLandscape=1</xsl:with-param>
						<xsl:with-param name="Target">_blank</xsl:with-param>
					</xsl:call-template>
				</ToolbarButton>
				<ToolbarButton>
					<xsl:call-template name="xslc:ToolbarButton">
						<xsl:with-param name="Caption">
							<img border="0" src="{$XMLC_PictosPath}button_print.gif" alt="Print Report"/>
						</xsl:with-param>
						<xsl:with-param name="HRef">
							<xsl:value-of select="/document/Aliases/bdVODLL"/>ReportListVO?XMLC_OutputFormat=HTML&amp;PDF_MediaLandscape=1</xsl:with-param>
						<xsl:with-param name="Target">_blank</xsl:with-param>
					</xsl:call-template>
				</ToolbarButton>
				<xsl:call-template name="CommonToolbarButtonsRight"/>
			</xsl:with-param>
			<xsl:with-param name="ActivePageName">ListVO</xsl:with-param>
			<xsl:with-param name="Tabs">
				<Tab Name="ListVO">
					<a href="{/document/Aliases/bdVODLL}ListVO?">
						<img align="absmiddle" border="0" src="{$XMLC_PictosPath}ico_service.gif"/> Liste VO VALAUTO</a>
				</Tab>
				<Tab Name="About">
					<a href="{/document/Aliases/bdVODLL}About">
						<img align="absmiddle" border="0" src="{$XMLC_PictosPath}button_channels.gif"/>A propos</a>
				</Tab>
			</xsl:with-param>
			<xsl:with-param name="Body">
				<form action="{/document/Aliases/bdVODLL}ListVO" name="SelectNew" method="post">
					<input type="hidden" name="AFFICHAGE1" value="{/document/OutParams/AFFICHAGE}"/>
					<input type="hidden" name="SITE1" value="{/document/OutParams/SITE}"/>
					<input type="hidden" name="MARQUE1" value="{/document/OutParams/MARQUE}"/>
					<input type="hidden" name="LIMPVENTE1" value="{/document/OutParams/LIMPVENTE}"/>
					<input type="hidden" name="LIMKMS1" value="{/document/OutParams/LIMKMS}"/>
					<input type="hidden" name="NBROWS1" value="{/document/OutParams/NBROWS}"/>
					<input type="hidden" name="ORDERFIELD" value="{/document/OutParams/ORDERFIELD}"/>
				</form>
				<xsl:call-template name="xslc:ApplicationMessages"/>
				<xsl:apply-templates select="VOS"/>
				<xsl:call-template name="xslc:PoweredBy"/>
			</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template match="VOS">
		<xsl:param name="RecordCount" select="@RowCount"/>
		<table width="100%">
			<tr>
				<td>
					<b>Affichage : <select name="CBTYPEAFFICHAGE" onchange="javascript: document.SelectNew.AFFICHAGE1.value=document.all('CBTYPEAFFICHAGE').value; document.SelectNew.submit(); return false;">
							<option value="0">Tous Véhicules</option>
							<option value="1">
								<xsl:if test="/document/OutParams/AFFICHAGE=1">
									<xsl:attribute name="selected"/>
								</xsl:if>Liste du Gestionnaire</option>
							<option value="2">
								<xsl:if test="/document/OutParams/AFFICHAGE=2">
									<xsl:attribute name="selected"/>
								</xsl:if>Liste Commerciale</option>
							<option value="5">
								<xsl:if test="/document/OutParams/AFFICHAGE=5">
									<xsl:attribute name="selected"/>
								</xsl:if>Véhicules Particuliers en préparation</option>
							<option value="4">
								<xsl:if test="/document/OutParams/AFFICHAGE=4">
									<xsl:attribute name="selected"/>
								</xsl:if>Liste Marchands</option>
							<option value="3">
								<xsl:if test="/document/OutParams/AFFICHAGE=3">
									<xsl:attribute name="selected"/>
								</xsl:if>Véhicules Livrés</option>
						</select>
					</b>
					<b>  Site : <select name="CBSITE" onchange="javascript: document.SelectNew.SITE1.value=document.all('CBSITE').value; document.SelectNew.submit(); return false;">
							<option>
								<xsl:if test="/document/OutParams/QUALITE=''">
									<xsl:value-of select="/document/Locales/FormYarnsQua1"/>
								</xsl:if>
								<xsl:if test="/document/OutParams/QUALITE!=''">
									<xsl:value-of select="/document/Locales/FormYarnsQua2"/>
								</xsl:if>
							</option>
							<xsl:for-each select="/document/ListSITES/ListSITE">
								<xsl:sort select="Site"/>
								<option value="{Site}">
									<xsl:if test="/document/OutParams/SITE=Site">
										<xsl:attribute name="selected"/>
									</xsl:if>
									<xsl:value-of select="Site"/>
								</option>
							</xsl:for-each>
						</select>
					</b>
					<b>  Marque : <select name="CBMARQUE" onchange="javascript: document.SelectNew.MARQUE1.value=document.all('CBMARQUE').value; document.SelectNew.submit(); return false;">
							<option>
								<xsl:if test="/document/OutParams/QUALITE=''">
									<xsl:value-of select="/document/Locales/FormYarnsQua1"/>
								</xsl:if>
								<xsl:if test="/document/OutParams/QUALITE!=''">
									<xsl:value-of select="/document/Locales/FormYarnsQua2"/>
								</xsl:if>
							</option>
							<xsl:for-each select="/document/ListMARQUES/ListMARQUE">
								<option value="{Marque}">
									<xsl:if test="/document/OutParams/MARQUE=Marque">
										<xsl:attribute name="selected"/>
									</xsl:if>
									<xsl:value-of select="Marque"/>
								</option>
							</xsl:for-each>
						</select>
					</b>
					<b>  KMS : <select name="CBLIMKMS" onchange="javascript: document.SelectNew.LIMKMS1.value=document.all('CBLIMKMS').value; document.SelectNew.submit(); return false;">
							<option value="0"/>
							<option value="1">
								<xsl:if test="/document/OutParams/LIMKMS=1">
									<xsl:attribute name="selected"/>
								</xsl:if>moins de 20 000 km</option>
							<option value="2">
								<xsl:if test="/document/OutParams/LIMKMS=2">
									<xsl:attribute name="selected"/>
								</xsl:if>de 20 à 50 000 km</option>
							<option value="3">
								<xsl:if test="/document/OutParams/LIMKMS=3">
									<xsl:attribute name="selected"/>
								</xsl:if>de 50 à 90 000 km</option>
							<option value="4">
								<xsl:if test="/document/OutParams/LIMKMS=4">
									<xsl:attribute name="selected"/>
								</xsl:if>plus de 90 000 km</option>
						</select>
					</b>
					<b>  Prix Vente : <select name="CBLIMPVENTE" onchange="javascript: document.SelectNew.LIMPVENTE1.value=document.all('CBLIMPVENTE').value; document.SelectNew.submit(); return false;">
							<option value="0"/>
							<option value="1">
								<xsl:if test="/document/OutParams/LIMPVENTE=1">
									<xsl:attribute name="selected"/>
								</xsl:if>moins de 10 000 euros</option>
							<option value="2">
								<xsl:if test="/document/OutParams/LIMPVENTE=2">
									<xsl:attribute name="selected"/>
								</xsl:if>de 10 à 15 000 euros</option>
							<option value="3">
								<xsl:if test="/document/OutParams/LIMPVENTE=3">
									<xsl:attribute name="selected"/>
								</xsl:if>de 15 à 20 000 euros</option>
							<option value="4">
								<xsl:if test="/document/OutParams/LIMPVENTE=4">
									<xsl:attribute name="selected"/>
								</xsl:if>de 20 à 25 000 euros</option>
							<option value="5">
								<xsl:if test="/document/OutParams/LIMPVENTE=5">
									<xsl:attribute name="selected"/>
								</xsl:if>plus de 25 000 euros</option>
						</select>
					</b>
				</td>
			</tr>
			<tr>
				<td>
					<b>nb enregistrements par page : <input class="clFlatTextInput" name="NBROWS" onchange="" size="4" value="{/document/OutParams/NBROWS}" style="text-align: right" onkeypress="javascript: document.SelectNew.NBROWS1.value=document.all('NBROWS').value; &#xA;if (GetEventKeyCode(event) != 13)  return true;&#xA;document.SelectNew.submit();   return false;"/>
					</b>, (<xsl:value-of select="$RecordCount"/> enregistrements sélectionnés). </td>
			</tr>
		</table>
		<xsl:apply-templates select="VOdiv"/>
		<table border="0" cellpadding="2" cellspacing="0" class="clFlatTable" width="100%">
			<tr/>
			<tr class="clRowHeader">
				<xsl:if test="/document/XMLC_Profile/XMLC_DisplayHeaderGradient = '1'">
					<xsl:attribute name="style">background-image: url('<xsl:value-of select="$XMLC_SkinPath"/>rowHeader_Gradient.gif');</xsl:attribute>
				</xsl:if>
				<td>
					<a href="{/document/Aliases/bdVODLL}ListVO?SETORDERFIELD=NVO">N°VO <xsl:if test="/document/OutParams/ORDERFIELD='NVO'">
							<xsl:if test="/document/OutParams/ORDERSENSE=''">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_top.gif"/>
							</xsl:if>
							<xsl:if test="/document/OutParams/ORDERSENSE=' DESC'">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"/>
							</xsl:if>
						</xsl:if>
					</a>
				</td>
				<td>
					<a href="{/document/Aliases/bdVODLL}ListVO?SETORDERFIELD=Site">Site <xsl:if test="/document/OutParams/ORDERFIELD='Site'">
							<xsl:if test="/document/OutParams/ORDERSENSE=''">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_top.gif"/>
							</xsl:if>
							<xsl:if test="/document/OutParams/ORDERSENSE=' DESC'">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"/>
							</xsl:if>
						</xsl:if>
					</a>
				</td>
				<td>
					<a href="{/document/Aliases/bdVODLL}ListVO?SETORDERFIELD=MMod">Véhicule <xsl:if test="/document/OutParams/ORDERFIELD='MMod'">
							<xsl:if test="/document/OutParams/ORDERSENSE=''">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_top.gif"/>
							</xsl:if>
							<xsl:if test="/document/OutParams/ORDERSENSE=' DESC'">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"/>
							</xsl:if>
						</xsl:if>
					</a>
				</td>
				<td>Cliché</td>
				<td>Couleur</td>
				<td>Puiss. &amp; <a href="{/document/Aliases/bdVODLL}ListVO?SETORDERFIELD=KMS">KMS <xsl:if test="/document/OutParams/ORDERFIELD='KMS'">
							<xsl:if test="/document/OutParams/ORDERSENSE=''">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_top.gif"/>
							</xsl:if>
							<xsl:if test="/document/OutParams/ORDERSENSE=' DESC'">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"/>
							</xsl:if>
						</xsl:if>
					</a>
				</td>
				<td>MEC</td>
				<td align="right">Immat.</td>
				<td>N° Châssis</td>
				<td align="right">
					<a href="{/document/Aliases/bdVODLL}ListVO?SETORDERFIELD=PVen">Prix <xsl:if test="/document/OutParams/ORDERFIELD='PVen'">
							<xsl:if test="/document/OutParams/ORDERSENSE=''">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_top.gif"/>
							</xsl:if>
							<xsl:if test="/document/OutParams/ORDERSENSE=' DESC'">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"/>
							</xsl:if>
						</xsl:if>
					</a>
				</td>
				<td>Garantie</td>
			</tr>
			<xsl:apply-templates select="VO"/>
			<xsl:call-template name="xslc:ListFooter">
				<xsl:with-param name="colspan">22</xsl:with-param>
			</xsl:call-template>
		</table>
	</xsl:template>
	<xsl:template match="VOdiv">
		<xsl:variable name="vDOrd" select="DOrd"/>
		<xsl:variable name="vDes" select="Des"/>
		<xsl:variable name="vMec" select="fMec"/>
		<xsl:variable name="vCar" select="fCar"/>
		<xsl:variable name="vEst" select="fEst"/>
		<xsl:variable name="vPath">http://www.bluelinecompany.fr/voimages/</xsl:variable>
		<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>
		<xsl:variable name="stValue">
			<xsl:choose>
				<xsl:when test="($vDOrd = '') and ($vDes = 'Particuliers')"> font-style:italic; font-weight:bold; color:blue</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when test="$vDOrd = '' and ($vDes != 'Particuliers')"> font-style:italic; font-weight:bold; color:black</xsl:when>
						<xsl:otherwise> font-style:italic; </xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="vMCE">
			<xsl:choose>
				<xsl:when test="$vMec = 'True' ">O</xsl:when>
				<xsl:otherwise>n</xsl:otherwise>
			</xsl:choose>
			<xsl:choose>
				<xsl:when test="$vCar = 'True' ">O</xsl:when>
				<xsl:otherwise>n</xsl:otherwise>
			</xsl:choose>
			<xsl:choose>
				<xsl:when test="$vEst = 'True' ">O</xsl:when>
				<xsl:otherwise>n</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="vIma">
			<xsl:if test="nIma!=''">
				<xsl:value-of select="$vPath"/>
				<xsl:value-of select="nIma"/>m.jpg</xsl:if>
		</xsl:variable>
		<div id="zoneMiniUne">
			<div class="imageTextBlock">
				<a href="ReportPDF?rptSelect=idVO;3d;{idVO}&amp;rptName=VO - Fiche Commerciale" target="_blank">
					<p class="image">
						<img src="{$vIma}" border="0" title="Le dernier rapport " width="160" height="115"/>
					</p>
					<h4 class="link">
						<span class="type"/>Recherche : </h4>
					<p class="description">
						<xsl:value-of select="iCou"/>
						<br/>
						<xsl:value-of select="CV"/> cv - <xsl:value-of select="KMS"/> km<br/>
						<xsl:value-of select="dGar"/>
						<br/>
						<xsl:value-of select="MEC"/>
						<br/>
						<xsl:value-of select="iCou"/>
						<br/>
					</p>
				</a>
			</div>
		</div>
	</xsl:template>
	<xsl:template match="VO">
		<xsl:variable name="vDOrd" select="DOrd"/>
		<xsl:variable name="vDes" select="Des"/>
		<xsl:variable name="vMec" select="fMec"/>
		<xsl:variable name="vCar" select="fCar"/>
		<xsl:variable name="vEst" select="fEst"/>
		<xsl:variable name="vPath">http://www.bluelinecompany.fr/voimages/</xsl:variable>
		<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>
		<xsl:variable name="stValue">
			<xsl:choose>
				<xsl:when test="($vDOrd = '') and ($vDes = 'Particuliers')"> font-style:italic; font-weight:bold; color:blue</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when test="$vDOrd = '' and ($vDes != 'Particuliers')"> font-style:italic; font-weight:bold; color:black</xsl:when>
						<xsl:otherwise> font-style:italic; </xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="vMCE">
			<xsl:choose>
				<xsl:when test="$vMec = 'True' ">O</xsl:when>
				<xsl:otherwise>n</xsl:otherwise>
			</xsl:choose>
			<xsl:choose>
				<xsl:when test="$vCar = 'True' ">O</xsl:when>
				<xsl:otherwise>n</xsl:otherwise>
			</xsl:choose>
			<xsl:choose>
				<xsl:when test="$vEst = 'True' ">O</xsl:when>
				<xsl:otherwise>n</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="vIma">
			<xsl:if test="nIma!=''">
				<xsl:value-of select="$vPath"/>
				<xsl:value-of select="nIma"/>m.jpg</xsl:if>
		</xsl:variable>
		<tr class="{$clValue}">
			<td style="{$stValue}">
				<a href="ReportPDF?rptSelect=idVO;3d;{idVO}&amp;rptName=VO - Fiche Commerciale" target="_blank">
					<xsl:value-of select="NVO"/>
				</a>
			</td>
			<td style="{$stValue}">
				<xsl:value-of select="Site"/>
			</td>
			<td style="{$stValue}">
				<xsl:value-of select="iMar"/> - <xsl:value-of select="iMod"/>
			</td>
			<div id="zoneMiniUne">
				<div class="imageTextBlock">
					<a href="ReportPDF?rptSelect=idVO;3d;{idVO}&amp;rptName=VO - Fiche Commerciale" target="_blank">
						<p class="image">
							<img src="{$vIma}" border="0" title="Le dernier rapport " width="160" height="115"/>
						</p>
						<h4 class="link">
							<span class="type"/>Recherche : </h4>
						<p class="description">
							<xsl:value-of select="iCou"/>
							<br/>
							<xsl:value-of select="CV"/> cv - <xsl:value-of select="KMS"/> km<br/>
							<xsl:value-of select="dGar"/>
							<br/>
							<xsl:value-of select="MEC"/>
							<br/>
							<xsl:value-of select="iCou"/>
							<br/>
						</p>
					</a>
				</div>
			</div>
			<td/>
			<td>
				<xsl:value-of select="iCou"/>
			</td>
			<td>
				<xsl:value-of select="CV"/> cv - <xsl:value-of select="KMS"/> km</td>
			<td>
				<xsl:value-of select="MEC"/>
			</td>
			<td align="right">
				<xsl:value-of select="iImm"/>
			</td>
			<td align="left">
				<xsl:value-of select="iCha"/>
			</td>
			<td align="right">
				<xsl:value-of select="pVen"/>
			</td>
			<td>
				<xsl:value-of select="dGar"/>
			</td>
		</tr>
	</xsl:template>
</xsl:stylesheet>
