<?xml version="1.0" encoding="ISO-8859-15"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xslc="http://xslcomponents.org/TR/WD-xslc" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
	<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="@ListFactS/RowCount"/>
		<xsl:call-template name="xslc:Page">
			<xsl:with-param name="DisplayTabControl">0</xsl:with-param>
			<xsl:with-param name="BodyAttributes">
				<Attributes onload="checkTopLevel();"/>
			</xsl:with-param>
			<xsl:with-param name="DisplayToolbar">
				<xsl:if test="/document/OutParams/XMLC_ShowTop='0'">0</xsl:if>
				<xsl:if test="/document/OutParams/XMLC_ShowTop!='0'">1</xsl:if>
			</xsl:with-param>
			<xsl:with-param name="DisplayTabs">0</xsl:with-param>
			<xsl:with-param name="DisplayActionMenu">
				<xsl:if test="/document/OutParams/AmMode='0'">2</xsl:if>
				<xsl:if test="/document/OutParams/AmMode!='0'">1</xsl:if>
			</xsl:with-param>
			<xsl:with-param name="ActionMenu">
				<xsl:call-template name="xslc:VOActionPanelUser">
					<xsl:with-param name="Expanded">
						<xsl:if test="/document/OutParams/AmInfo='TypeAffich3'">1</xsl:if>
						<xsl:if test="/document/OutParams/AmInfo!='TypeAffich3'">0</xsl:if>
					</xsl:with-param>
					<xsl:with-param name="Dark">1</xsl:with-param>
					<xsl:with-param name="Name">FiltAffichage</xsl:with-param>
					<xsl:with-param name="Title">
						<xsl:value-of select="/document/ListFiltersS/ListFilters[idAffichage=/document/OutParams/AffSel]/FilterName"/>
					</xsl:with-param>
					<xsl:with-param name="TitleActionReset">
						<!--Filtre sur période seulement si "Tous VO" ou "Véhicules Livrés"-->
						<xsl:if test="/document/OutParams/AffDate='1' or (/document/OutParams/AffDest>=100 and /document/ListFiltersS/ListFilters[idAffichage=/document/OutParams/AffSel]/AttrDest='1')">
							<xsl:if test="/document/OutParams/LIMDC1!='' or /document/OutParams/LIMDC2!='' or /document/OutParams/AffDest>=100">javascript: SetField('MainForm', 'LIMDC2', ''); SetField('MainForm', 'LIMDC1', ''); SetField('MainForm', 'TypeAffich3',<xsl:value-of select="/document/OutParams/AffSel"/>); apLastValue = ''; goSubmit(); return false;</xsl:if>
						</xsl:if>
					</xsl:with-param>
					<xsl:with-param name="TitleActionResetAll">
						<!--il faut trouver le moyen de détecter un filtre existant...-->
						<xsl:if test="/document/OutParams/SITE!='' or /document/OutParams/vSearch!='' or 
(/document/OutParams/cVENDEUR!='') or (/document/OutParams/CATEGORIE!='') or (/document/OutParams/ATELIER!='') or 
(/document/OutParams/AffDest>=100 and /document/ListFiltersS/ListFilters[idAffichage=/document/OutParams/AffSel]/AttrDest='1')">javascript: goAndSubmit('TypeAffich3','reset'); return false;</xsl:if>
					</xsl:with-param>
					<xsl:with-param name="TitleActionUser">
						<xsl:if test="/document/SelVendeurS/SelVendeur/AbbrVendeur!='' and /document/OutParams/AffSel&lt;20">javascript: goAndSubmit('TypeAffich3','vendeur'); return false;</xsl:if>
					</xsl:with-param>
					<xsl:with-param name="ImageUser">
						<xsl:if test="/document/OutParams/AffSel&lt;20">
							<xsl:if test="/document/OutParams/AffVendeur=0">goactionuser</xsl:if>
							<xsl:if test="/document/OutParams/AffVendeur!=0">goactionall</xsl:if>
						</xsl:if>
					</xsl:with-param>
					<xsl:with-param name="Content">
						<xsl:variable name="idAffSel">
							<xsl:if test="/document/OutParams/AffSel=''">0</xsl:if>
							<xsl:value-of select="/document/OutParams/AffSel"/>
						</xsl:variable>
						<xsl:variable name="idAffVendeur">
							<xsl:if test="/document/OutParams/AffVendeur=''">0</xsl:if>
							<xsl:value-of select="/document/OutParams/AffVendeur"/>
						</xsl:variable>
						<xsl:variable name="idAffDest">
							<xsl:if test="/document/OutParams/AffDest=''">0</xsl:if>
							<xsl:value-of select="/document/OutParams/AffDest"/>
						</xsl:variable>
						<table cellpadding="2" cellspacing="0">
							<xsl:for-each select="/document/ListFiltersS/ListFilters">
								<xsl:variable name="apTitleText">
									<xsl:value-of select="TitleText"/>
								</xsl:variable>
								<xsl:variable name="apOver">
									<xsl:if test="idAffichage='-1'">apRowNoSelected</xsl:if>
									<xsl:if test="idAffichage!='-1'">apRowSelected</xsl:if>
								</xsl:variable>
								<xsl:variable name="apAttr">
									<xsl:if test="idAffichage='-1'">color:#A0A0A0;</xsl:if>
									<xsl:if test="/document/OutParams/AffSel=idAffichage">
										<xsl:if test="AttrColor!=''">color:#<xsl:value-of select="AttrColor"/>; font-weight: bold;</xsl:if>
										<xsl:if test="AttrColor=''">color:#3f3dfd; </xsl:if>
									</xsl:if>
									<xsl:if test="idAffichage!='-1' and /document/OutParams/AffSel!=idAffichage">
										<xsl:if test="AttrColor=''">color:#145aa2; </xsl:if>
										<xsl:if test="AttrColor!=''">color:#<xsl:value-of select="AttrColor"/>; </xsl:if>
									</xsl:if>
								</xsl:variable>
								<xsl:variable name="idAff">
									<xsl:value-of select="idAffichage"/>
								</xsl:variable>
								<xsl:variable name="apCell">
									<xsl:choose>
										<xsl:when test="position() mod 2 = 1">apLink</xsl:when>
										<xsl:otherwise>apLinkDark</xsl:otherwise>
									</xsl:choose>
								</xsl:variable>
								<xsl:if test="(idAffichage!=-2) and (idAffichage&lt;100)">
									<tr>
										<td class="{$apCell}" onmouseover="oldClass=this.className; this.className='{$apOver}';" onmouseout="this.className=oldClass;" onclick="javascript: goAndSubmit('TypeAffich3',{$idAff}+{$idAffDest}+{$idAffVendeur}); return false;" title="{$apTitleText}" align="left" style="{$apAttr} width:200px;">
											<span style="color:#d0d0ff;">
												<xsl:if test="AttrIndent='1'">» </xsl:if>
												<xsl:if test="AttrIndent='2'">»» </xsl:if>
												<xsl:if test="AttrIndent='3'">»»» </xsl:if>
											</span>
											<xsl:if test="/document/OutParams/AffSel=idAffichage">
												<img border="0" src="{$XMLC_PictosPath}ico_run.gif"/> - </xsl:if>
											<xsl:value-of select="FilterName"/>
										</td>
									</tr>
									<xsl:if test="AttrDest>=1 and /document/OutParams/AffSel=idAffichage">
										<tr>
											<td>
												<xsl:call-template name="SelTypeRelance">
													<xsl:with-param name="vIndent">
														<xsl:value-of select="AttrIndent * 2 +2"/>
													</xsl:with-param>
												</xsl:call-template>
											</td>
										</tr>
									</xsl:if>
								</xsl:if>
							</xsl:for-each>
						</table>
						<xsl:if test="/document/ListFiltersS/ListFilters[idAffichage=/document/OutParams/AffSel]/AttrDate!='0'">
							<form name="idzDateForm">
								<table>
									<tr>
										<td colspan="2" align="right" style="font-size:10px">Spécifiez les dates : <a href="." onclick="SetField('MainForm', 'LIMDC2', GetField('idzDateForm', 'DATEFieldFin')); 
SetField('MainForm', 'LIMDC1', GetField('idzDateForm', 'DATEFieldDeb')); 
goAndSubmit('TypeAffich3','slider'); return false;">
												<img border="0" title="appliquez le filtre selon la date de document" src="{$XMLC_PictosPath}ico_run.gif"/>
											</a>
										</td>
									</tr>
									<tr id="idzDateInputDeb" style="display: block;">
										<td width="45px" align="right">début :</td>
										<td>
											<input type="text" style="text-align:center;" size="12" name="DATEFieldDeb" onBlur="verifdate('idzDateForm', 'DATEFieldDeb');" maxlength="10" value="{/document/OutParams/LIMDC1}" onkeypress="return handleKeyPress(event);"/> - <a href="." onclick="PopCalendar('CalendarDeb', 'DATEFieldDeb', 'idzDateForm'); return false;">
												<img border="0" title="Choisissez une date de Début" src="{$XMLC_PictosPath}ico_planning.gif"/>
											</a>
											<iframe border="0" frameborder="0" marginheight="0" marginwidth="0" id="CalendarDeb" name="CalendarDeb" scrolling="no" src="{$XMLC_Portal}blank.htm" style="position: absolute; display: none; z-index:1000;"/>
										</td>
									</tr>
									<tr id="idzDateInputFin" style="display: block;">
										<td width="45px" align="right"> fin :</td>
										<td>
											<input type="text" style="text-align:center;" size="12" name="DATEFieldFin" onBlur="verifdate('idzDateForm', 'DATEFieldFin');" maxlength="10" value="{/document/OutParams/LIMDC2}" onkeypress="return handleKeyPress(event);"/> - <a href="." onclick="PopCalendar('CalendarFin', 'DATEFieldFin', 'idzDateForm'); return false;">
												<img border="0" title="Choisissez une date de Fin" src="{$XMLC_PictosPath}ico_planning.gif"/>
											</a>
											<iframe border="0" frameborder="0" marginheight="0" marginwidth="0" id="CalendarFin" name="CalendarFin" scrolling="no" src="{$XMLC_Portal}blank.htm" style="position: absolute; display: none; z-index:1000;"/>
										</td>
									</tr>
								</table>
							</form>
							<table>
								<tr>
									<td style="padding: 0px 0px 0px 0px; width:200px">
										<img title="" border="0" src="{$XMLC_SkinPath}actionpanel/separator_dark.gif" height="1" width="100%"/>
									</td>
								</tr>
							</table>
							<table>
								<tr>
									<td colspan="2" align="center">Recherche : </td>
								</tr>
								<tr>
									<td align="right">
										<select id="CBtSearch" style="width:85px" onchange="javascript: document.MainForm.tSearch.value=getObjectById('CBtSearch').value; return false;">
											<option value="1">
												<xsl:if test="/document/OutParams/tSearch='1'">
													<xsl:attribute name="selected"/>
												</xsl:if>Nom Client</option>
											<option value="2">
												<xsl:if test="/document/OutParams/tSearch='2'">
													<xsl:attribute name="selected"/>
												</xsl:if>N° Client</option>
											<option value="3">
												<xsl:if test="/document/OutParams/tSearch='3'">
													<xsl:attribute name="selected"/>
												</xsl:if>Tél/Mobile</option>
											<option value="4">
												<xsl:if test="/document/OutParams/tSearch='4'">
													<xsl:attribute name="selected"/>
												</xsl:if>Email</option>
											<option value="5">
												<xsl:if test="/document/OutParams/tSearch='5'">
													<xsl:attribute name="selected"/>
												</xsl:if>Conseiller SAV</option>
											<option value="6">
												<xsl:if test="/document/OutParams/tSearch='6'">
													<xsl:attribute name="selected"/>
												</xsl:if>Immatriculation</option>
											<option value="7">
												<xsl:if test="/document/OutParams/tSearch='7'">
													<xsl:attribute name="selected"/>
												</xsl:if>N° Châssis</option>
											<option value="11">
												<xsl:if test="/document/OutParams/tSearch='11'">
													<xsl:attribute name="selected"/>
												</xsl:if>N° Facture</option>
										</select> : </td>
									<td>
										<input class="clFlatTextInput" id="iSearch" name="iSearch" size="12" onkeypress="javascript: my_iSearch()" onkeyup="javascript: document.MainForm.vSearch.value=getObjectById('iSearch').value; onKeyTestCR(event); return false;" value="{/document/OutParams/vSearch}" style="text-align: left"/>
									</td>
								</tr>
							</table>
						</xsl:if>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="xslc:VOActionPanel">
					<xsl:with-param name="Expanded">
						<xsl:if test="/document/OutParams/AmInfo='SITE3'">1</xsl:if>
						<xsl:if test="/document/OutParams/AmInfo!='SITE3'">0</xsl:if>
					</xsl:with-param>
					<xsl:with-param name="Dark">1</xsl:with-param>
					<xsl:with-param name="Name">FiltSite</xsl:with-param>
					<xsl:with-param name="Title">
						<xsl:if test="/document/OutParams/SITE=''">Site</xsl:if>
						<xsl:if test="/document/OutParams/SITE!=''">
							<xsl:value-of select="/document/VOutParams/lSiteS/nbSite"/>
						</xsl:if>
					</xsl:with-param>
					<xsl:with-param name="TitleActionReset">
						<xsl:if test="/document/OutParams/SITE!=''">javascript: goAndSubmit('SITE3','top'); return false;</xsl:if>
					</xsl:with-param>
					<xsl:with-param name="Content">
						<table cellpadding="2" cellspacing="0">
							<xsl:for-each select="/document/ListSITES/ListSITE">
								<xsl:sort select="Site"/>
								<xsl:variable name="apInfo">
									<xsl:value-of select="Site"/>
								</xsl:variable>
								<xsl:variable name="apSelect">
									<xsl:choose>
										<xsl:when test="Selected='1'">apRowSelected</xsl:when>
										<xsl:when test="position() mod 2 = 1">apLink</xsl:when>
										<xsl:otherwise>apLinkDark</xsl:otherwise>
									</xsl:choose>
								</xsl:variable>
								<xsl:variable name="apOver">
									<xsl:if test="Selected='1'">ap2RowSelected</xsl:if>
									<xsl:if test="Selected!='1'">apRowSelected</xsl:if>
								</xsl:variable>
								<xsl:variable name="apAttr">
									<xsl:if test="Selected='1'">color:#3f3dfd; </xsl:if>
									<xsl:if test="Selected!='1'">color:#145aa2; </xsl:if>
								</xsl:variable>
								<tr>
									<td class="{$apSelect}" onmouseover="oldClass=this.className; this.className='{$apOver}';" onmouseout="this.className=oldClass;" onclick="javascript: goAndSubmit('SITE3','{$apInfo}'); return false;" style="margin-left:8px; {$apAttr} width:200px; ">
										<xsl:if test="Selected='1'">
											<img src="{$XMLC_PictosPath}ico_run.gif"/> - </xsl:if>
										<xsl:value-of select="Site"/>
									</td>
								</tr>
							</xsl:for-each>
						</table>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="xslc:VOActionPanel">
					<xsl:with-param name="Expanded">
						<xsl:if test="/document/OutParams/AmInfo='CATE3'">1</xsl:if>
						<xsl:if test="/document/OutParams/AmInfo!='CATE3'">0</xsl:if>
					</xsl:with-param>
					<xsl:with-param name="Dark">1</xsl:with-param>
					<xsl:with-param name="Name">FiltCategorie</xsl:with-param>
					<xsl:with-param name="Title">
						<xsl:if test="/document/OutParams/CATEGORIE=''">Catégorie</xsl:if>
						<xsl:if test="/document/OutParams/CATEGORIE!=''">
							<xsl:value-of select="/document/VOutParams/lCategorieS/nbCategorie"/>
						</xsl:if>
					</xsl:with-param>
					<xsl:with-param name="TitleActionReset">
						<xsl:if test="/document/OutParams/CATEGORIE!=''">javascript: goAndSubmit('CATE3','top'); return false;</xsl:if>
					</xsl:with-param>
					<xsl:with-param name="Content">
						<table cellpadding="2" cellspacing="0">
							<xsl:for-each select="/document/ListCategorieS/ListCategorie">
								<xsl:sort select="sCategorie"/>
								<xsl:variable name="apInfo">
									<xsl:value-of select="sCategorie"/>
								</xsl:variable>
								<xsl:variable name="apSelect">
									<xsl:choose>
										<xsl:when test="Selected='1'">apRowSelected</xsl:when>
										<xsl:when test="position() mod 2 = 1">apLink</xsl:when>
										<xsl:otherwise>apLinkDark</xsl:otherwise>
									</xsl:choose>
								</xsl:variable>
								<xsl:variable name="apOver">
									<xsl:if test="Selected='1'">ap2RowSelected</xsl:if>
									<xsl:if test="Selected!='1'">apRowSelected</xsl:if>
								</xsl:variable>
								<xsl:variable name="apAttr">
									<xsl:if test="Selected='1'">color:#3f3dfd; </xsl:if>
									<xsl:if test="Selected!='1'">color:#145aa2; </xsl:if>
								</xsl:variable>
								<tr>
									<td class="{$apSelect}" onmouseover="oldClass=this.className; this.className='{$apOver}';" onmouseout="this.className=oldClass;" onclick="javascript: goAndSubmit('CATE3','{$apInfo}'); return false;" style="margin-left:8px; {$apAttr} width:200px; ">
										<xsl:if test="Selected='1'">
											<img src="{$XMLC_PictosPath}ico_run.gif"/> - </xsl:if>
										<xsl:value-of select="sCategorie"/>
										<xsl:if test="/document/XMLC_Params/XMLC_Authenticated != '0' "> (<xsl:value-of select="cptCategorie"/>)</xsl:if>
									</td>
								</tr>
							</xsl:for-each>
						</table>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="xslc:VOActionPanel">
					<xsl:with-param name="Expanded">
						<xsl:if test="/document/OutParams/AmInfo='ATEL3'">1</xsl:if>
						<xsl:if test="/document/OutParams/AmInfo!='ATEL3'">0</xsl:if>
					</xsl:with-param>
					<xsl:with-param name="Dark">1</xsl:with-param>
					<xsl:with-param name="Name">FiltAtelier</xsl:with-param>
					<xsl:with-param name="Title">
						<xsl:if test="/document/OutParams/ATELIER=''">Atelier/Magasin</xsl:if>
						<xsl:if test="/document/OutParams/ATELIER!=''">
							<xsl:value-of select="/document/VOutParams/lAteMagS/nbAteMag"/>
						</xsl:if>
					</xsl:with-param>
					<xsl:with-param name="TitleActionReset">
						<xsl:if test="/document/OutParams/ATELIER!=''">javascript: goAndSubmit('ATEL3','top'); return false;</xsl:if>
					</xsl:with-param>
					<xsl:with-param name="Content">
						<table cellpadding="2" cellspacing="0">
							<xsl:for-each select="/document/ListAteMagS/ListAteMag">
								<xsl:sort select="sAtelier"/>
								<xsl:variable name="apInfo">
									<xsl:value-of select="sAtelier"/>
								</xsl:variable>
								<xsl:variable name="apSelect">
									<xsl:choose>
										<xsl:when test="Selected='1'">apRowSelected</xsl:when>
										<xsl:when test="position() mod 2 = 1">apLink</xsl:when>
										<xsl:otherwise>apLinkDark</xsl:otherwise>
									</xsl:choose>
								</xsl:variable>
								<xsl:variable name="apOver">
									<xsl:if test="Selected='1'">ap2RowSelected</xsl:if>
									<xsl:if test="Selected!='1'">apRowSelected</xsl:if>
								</xsl:variable>
								<xsl:variable name="apAttr">
									<xsl:if test="Selected='1'">color:#3f3dfd; </xsl:if>
									<xsl:if test="Selected!='1'">color:#145aa2; </xsl:if>
								</xsl:variable>
								<tr>
									<td class="{$apSelect}" onmouseover="oldClass=this.className; this.className='{$apOver}';" onmouseout="this.className=oldClass;" onclick="javascript: goAndSubmit('ATEL3','{$apInfo}'); return false;" style="margin-left:8px; {$apAttr} width:200px; ">
										<xsl:if test="Selected='1'">
											<img src="{$XMLC_PictosPath}ico_run.gif"/> - </xsl:if>
										<xsl:value-of select="sAtelier"/>
										<xsl:if test="/document/XMLC_Params/XMLC_Authenticated != '0' "> (<xsl:value-of select="cptAtelier"/>)</xsl:if>
									</td>
								</tr>
							</xsl:for-each>
						</table>
					</xsl:with-param>
				</xsl:call-template>
			</xsl:with-param>
			<xsl:with-param name="ActionFavoris">
				<xsl:if test="/document/OutParams/XMLC_ShowTop!='0'">
					<xsl:call-template name="xslc:VOActionPanelFavoris">
						<xsl:with-param name="Expanded">1</xsl:with-param>
						<xsl:with-param name="Dark">1</xsl:with-param>
						<xsl:with-param name="Name">FiltFavoris</xsl:with-param>
						<xsl:with-param name="Title">Liste des filtres favoris</xsl:with-param>
						<xsl:with-param name="Content">
							<table cellpadding="2" cellspacing="0">
								<xsl:variable name="apSelectNew">
									<xsl:value-of select="/document/OutParams/NewFavID"/>
								</xsl:variable>
								<xsl:variable name="sFav">
									<xsl:for-each select="/document/Profiles/Favs/Fav">
										<xsl:sort select="concat(idTab, idAff, Infos)"/>
										<xsl:copy-of select="current()"/>
									</xsl:for-each>
								</xsl:variable>
								<xsl:variable name="rFavs" select="msxsl:node-set($sFav)"/>
								<xsl:for-each select="$rFavs/Fav">
									<xsl:variable name="apID">
										<xsl:value-of select="ID"/>
									</xsl:variable>
									<xsl:variable name="apInfo">
										<xsl:value-of select="Infos"/>
									</xsl:variable>
									<xsl:variable name="apParams">
										<xsl:value-of select="/document/Aliases/bdVODLL"/>
										<xsl:value-of select="Params"/>&amp;vNewFavID=<xsl:value-of select="ID"/>
									</xsl:variable>
									<xsl:variable name="apSelect">
										<xsl:choose>
											<xsl:when test="$apSelectNew=$apID">apRowSelected</xsl:when>
											<xsl:when test="position() mod 2 = 1">apLink</xsl:when>
											<xsl:otherwise>apLinkDark</xsl:otherwise>
										</xsl:choose>
									</xsl:variable>
									<xsl:variable name="apOver">
										<xsl:if test="$apSelectNew=$apID">ap2RowSelected</xsl:if>
										<xsl:if test="$apSelectNew!=$apID">apRowSelected</xsl:if>
									</xsl:variable>
									<xsl:variable name="apAttr">
										<xsl:if test="$apSelectNew=$apID">font-weight: bold;</xsl:if>
										<xsl:if test="$apSelectNew=$apID">color:#3f3dfd; </xsl:if>
										<xsl:if test="$apSelectNew!=$apID">color:#145aa2; </xsl:if>
									</xsl:variable>
									<xsl:variable name="apTab">
										<xsl:if test="preceding-sibling::Fav[1]/idTab=idTab"> .. </xsl:if>
										<xsl:if test="(preceding-sibling::Fav[1]/idTab!=idTab) or (position()=1)">
											<xsl:if test="idTab='01'">Liste VO</xsl:if>
											<xsl:if test="idTab='02'">Liste VN</xsl:if>
											<xsl:if test="idTab='03'">Profid</xsl:if>
											<xsl:if test="idTab='04'">Carfid</xsl:if>
											<xsl:if test="idTab='05'">Docfeed</xsl:if>
										</xsl:if>
									</xsl:variable>
									<tr class="{$apSelect}" onmouseover="oldClass=this.className; this.className='{$apOver}';ShowHide('BtnDel{ID}');" onmouseout="this.className=oldClass;ShowHide('BtnDel{ID}');">
										<td style="margin-left:8px; {$apAttr} width:60px; " onclick="javascript: goButton('Action{ID}'); return false;">
											<xsl:value-of select="$apTab"/>
										</td>
										<td style="margin-left:8px; {$apAttr} width:540px; " onclick="javascript: goButton('Action{ID}'); return false;">
											<a id="Action{ID}" style="display:none;" href="{$apParams}">
												<img border="0" src="{$XMLC_PictosPath}ico_run.gif"/>
											</a>
											<xsl:value-of select="Infos"/>
										</td>
										<td width="12px" onclick="document.FormDeleteFavoris.vID.value='{ID}'; 
document.FormDeleteFavoris.submit(); return false;">
											<a id="BtnDel{ID}" style="display:none;" href=".">
												<img border="0" src="{$XMLC_PictosPath}ico_xminus.gif" title="Supprimer ce favori"/>
											</a>
										</td>
									</tr>
								</xsl:for-each>
							</table>
						</xsl:with-param>
					</xsl:call-template>
				</xsl:if>
			</xsl:with-param>
			<xsl:with-param name="Head">
				<link rel="shortcut icon" type="image/ico" href="{$XMLC_Portal}faviconC.ico"/>
				<script text="text/javascript" src="{$XMLC_Portal}js/infobulle.js"/>
				<style type="text/css">.infobulle{ 
color: #145aa2; 
position: absolute; 
visibility : hidden; 
border: 1px solid #B1DBF3; 
padding: 10px; 
font-family: Comic sans MS; 
align: center; 
font-size: 9pt; 
background-color: #dbeaf5; 
} </style>
				<META HTTP-EQUIV="imagetoolbar" CONTENT="no"/>
				<script language="javascript">
					<![CDATA[// 
// Afficher la fenêtre popup pour le calendrier XMLC_Calendar
// 
function PopCalendar(PopID, FieldName, FormName) {
  if (Pop = getObjectById(PopID)) {
    if (obj = getObjectById(FieldName)) {
      ShowHide(PopID, 'WIDTH', 180, 'HEIGHT', 130); 
      aPos=GetObjectPosY(FieldName)-105;
      if (Pop.style.top != aPos) {
        Pop.style.top = aPos;
      }
      CalendarURL = XMLC_BaseHRef+'XMLC_PopupCalendar?XMLC_FieldName='+FieldName;
      CalendarURL += '&XMLC_PopID=' + PopID;
      CalendarURL += '&XMLC_HTMLForm=' + FormName;
      CalendarURL += '&XMLC_DateValue=' + obj.value;
      Pop.src = CalendarURL;
    }
  }
}

// 
// Vérification d'une date
// 
function verifdate(FormID, FieldName) {
    var datetest = GetField(FormID, FieldName);
    var format = /^(\d{1,2}\/){1,2}\d{1,4}$/;
    if(!format.test(datetest)){ return false;}
    else{
        var date_temp = datetest.split('/');
        date_temp[1] -=1;        // On rectifie le mois car de 0 à 11 !!!
        if (parseInt(date_temp[2])<100) {
          date_temp[2] = parseInt(date_temp[2]) + (parseInt(date_temp[2]) < 50) ? 2000 : 1900;
        }
        adate = new Date(date_temp[2], date_temp[1], date_temp[0]);
        if (adate.getDate()!=date_temp[0] || adate.getMonth()!=date_temp[1] || adate.getFullYear()!=date_temp[2]) {
            return false;
        } else {
            return true;
        }
    }
}]]>
					<![CDATA[var apLastValue='x';
      apNameImage='';
function VOapShowHide_dark(ID) {
  if (apLastValue!='') {
        apShowHide_dark(ID); 
    }
  apLastValue='x';
}
function VOapShowHide(ID) {
  if (apLastValue!='') {
        apShowHide(ID); 
    }
  apLastValue='x';
}
function VOShowHideActionMenu() {
  ShowHideActionMenu(); 
  goSubmit();
}

function VOapHeaderOver_dark(ID) {
  var func = getObjectById;
	func('apHeaderLabel'+ID).className = 'apHeader_over_dark';
	apHeaderImageID = func('apHeaderImage'+ID);
	apContentID = func('apContent'+ID);
	imageSource = 'collapse_over_dark';
	if (apContentID.style.display == 'none')
		imageSource = 'expand_over_dark';
	apHeaderImageID.src = XMLC_SkinPath+'actionpanel/'+imageSource+'.gif';
	apNameImage = '';
	obj = func('apHeaderImageAction'+ID);
	if (obj != null)
	  apNameImage = obj.src;
	if (apNameImage!='')
	  func('apHeaderImageAction'+ID).src = apNameImage.replace( '.gif', '_over.gif');
}

function VOapHeaderOut_dark(ID) {
  var func = getObjectById;
	func('apHeaderLabel'+ID).className = 'apHeader_dark';
	apHeaderImageID = func('apHeaderImage'+ID);
	apContentID = func('apContent'+ID);
	imageSource = 'collapse_dark';
	if (apContentID.style.display == 'none')
		imageSource = 'expand_dark';
	apHeaderImageID.src = XMLC_SkinPath+'actionpanel/'+imageSource+'.gif';
	if (apNameImage!='')
	  func('apHeaderImageAction'+ID).src = apNameImage;
}
]]>
				</script>
				<script language="javascript">
					<![CDATA[function VOapFavHeaderOver_dark(ID) {
  var func = getObjectById;
	func('apFavHeaderLabel'+ID).className = 'apFavHeader_over_dark';
	apHeaderImageID = func('apHeaderImage'+ID);
	apContentID = func('apContent'+ID);
	imageSource = 'collapse_over_dark';
	if (apContentID.style.display == 'none')
		imageSource = 'expand_over_dark';
}

function VOapFavHeaderOut_dark(ID) {
  var func = getObjectById;
	func('apFavHeaderLabel'+ID).className = 'apFavHeader_dark';
	apHeaderImageID = func('apHeaderImage'+ID);
	apContentID = func('apContent'+ID);
	imageSource = 'collapse_dark';
	if (apContentID.style.display == 'none')
		imageSource = 'expand_dark';
}
]]>
					<![CDATA[function goButton(vID) {
window.location.href = document.getElementById(vID).href;
return false;
}]]>
				</script>
				<script language="javascript">
					<![CDATA[
function checkTopLevel() {
  if ((null == top) || (top == self))
   return;
alert('{$RefreshURL}');
alert(']]>{$RefreshURL}<xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/>
					<xsl:choose>
						<xsl:when test="$XMLC_UseXMLC_Action != '1'">/</xsl:when>
						<xsl:otherwise>?XMLC_Action=</xsl:otherwise>
					</xsl:choose>
					<xsl:value-of select="/document/XMLC_Params/XMLC_Action"/>
					<xsl:if test="/document/XMLC_Params/XMLC_InputParams!=''">
						<xsl:choose>
							<xsl:when test="$XMLC_UseXMLC_Action = '1'">&amp;</xsl:when>
							<xsl:otherwise>?</xsl:otherwise>
						</xsl:choose>
						<xsl:value-of select="/document/XMLC_Params/XMLC_InputParams"/>
					</xsl:if>');
//  top.location.href = location.href;
} // checkTopLevel
</script>
				<script language="javascript">var keyPress = '0';

function getRapport(xFileCmd) {
  if (keyPress == '17') {
    keyPress = '0';
    xFileCmd=xFileCmd.replace("/action/","ReportPDF");
};
  if (keyPress != '17'){
    xFileCmd=xFileCmd.replace("/action/?rptSelect=","CarFidShowFact?cfTitle="+getObjectById('zoneParams').innerText+'&amp;');
    xFileCmd=xFileCmd.replace(";3d;","=");
};
  window.open(xFileCmd, '_blank');
}

function getRapportCA(xFileCmd) {
  if (keyPress == '17') {
keyPress = '0';
xFileCmd=xFileCmd.replace("CA21 - Récapitulatif","CA01 - Détails");
xFileCmd=xFileCmd.replace("CA22 - Récapitulatif","CA02 - Détails");
xFileCmd=xFileCmd.replace("CA23 - Récapitulatif","CA03 - Détails");
};
  window.open(xFileCmd, '_blank');
}

function goHisto(xFileCmd) {
  if (keyPress == '17') {
keyPress = '0';
};
  xFileCmd=xFileCmd.replace("/pRecap","");
  window.open(xFileCmd, '_blank');
}


function getKeyDown(e){
  keyPress = (document.all)?event.keyCode:e.keyCode;
}
document.onkeydown=getKeyDown;
</script>
				<script language="javascript">
					<![CDATA[function handleNumberKeyPress(e) {
  var keyCode = GetEventKeyCode(e);
  if (keyCode != 13)
    return true;
  return false;
}

function onKeyTestCR(e) {
  var aKey = window.event ? e.keyCode : e.which;
  if (aKey == 13) {
    goSubmit(); 
    }
}

]]>
					<![CDATA[// ==========================================================================
// Afficher la fenêtre popup pour la recherche YUI
// ==========================================================================
var flagMovedYUI;
function PopSelYUI(PopID, btnID) {
  if (popObj = getObjectById(PopID)) {
    if (btnObj = getObjectById(btnID)) {
      ShowHide(PopID, 'WIDTH', 557, 'HEIGHT', 435); 
      if (flagMovedYUI!=-1) 
       { 
        flagMovedYUI=-1; 
        popObj.style.top = 15;
        popObj.style.left = GetObjectPosX(btnID)-550;
       };
      popObj.src = 'SearchVO';
    }
  }
}
// ==========================================================================
// Afficher la fenêtre popup pour l'Upload
// ==========================================================================
var flagMovedUpload;
function PopSelUpload(PopID, btnID) {
  if (popObj = getObjectById(PopID)) {
    if (btnObj = getObjectById(btnID)) {
      ShowHide(PopID, 'WIDTH', 657, 'HEIGHT', 525); 
      if (flagMovedUpload!=-1) 
       { 
        flagMovedUpload=-1; 
        popObj.style.top = 15;
        popObj.style.left = GetObjectPosX(btnID)-650;
       };
      popObj.src = 'UploadDatas';
    }
  }
}
// ==========================================================================
// Afficher la fenêtre popup pour le choix des impressions
// ==========================================================================
var flagMoved;
function PopSelReport(PopID, btnID) {
  if (popObj = getObjectById(PopID)) {
    if (btnObj = getObjectById(btnID)) {
      ShowHide(PopID, 'WIDTH', 530, 'HEIGHT', 550); 
      if (flagMoved!=-1) 
       { 
        flagMoved=-1; 
        popObj.style.top = 15;
        popObj.style.left = GetObjectPosX(btnID)-535;
        popObj.src = XMLC_BaseHRef+'SelReport?typeVO=11';
       };
    }
  }
}]]>
				</script>
				<script language="javascript">
					<![CDATA[   function oForm(oWidth, oHeight) {
      if (vidPaneID.style.display=='block') {
         vidPaneID.style.display='none';
//         vidPaneID.innerHTML=''; 
      } else {
         vidPaneID.style.display='block';
//         vidPaneID.style.width=oWidth;
//         vidPaneID.style.height=oHeight;
      }
   }]]>
					<![CDATA[   function ShowHideForm(vid) {
      if (vid.style.display=='block') {
         vid.style.display='none';
      } else {
         vid.style.display='block';
      }
   }]]>
				</script>
				<script language="javascript">
					<![CDATA[// ==========================================================================
// Afficher la fenêtre popup pour le login
// ==========================================================================
function PopFormLogin(PopID) {
var posScroll =f_scrollTop();
   vidPaneID = document.getElementById('vdivFormLogin'); 
   vidPaneID.style.top=155;
   vidPaneID.style.left='55px';                    
   vidPaneID.style.align = 'center';
  ShowHideForm(vidPaneID);
  if (popObj = getObjectById(PopID)) {
     var posScroll =f_scrollTop();
      ShowHide(PopID, 'WIDTH', 650, 'HEIGHT', 480); 
      popObj.style.top = 15; 
      popObj.style.left = 0; 
      popObj.style.align = 'center';
      popObj.src = XMLC_BaseHRef+'XMLC_FormLogin';
  }
}]]>
				</script>




				<script language="javascript">

					<![CDATA[
function decimalToHex(d, padding) {
    var hex = Number(d).toString(16);
    while (hex.length < padding) {
        hex = "0" + hex;
    }
   return hex;
}
var cpt = 0;
// ==========================================================================
// Afficher la fenêtre popup pour la saisie des infos ProFid
// ==========================================================================
function PopFormAxVO(PopID, idVO) {
  if (popObj = getObjectById(PopID)) {
      popObj.src = XMLC_BaseHRef+'FormAxVO?idTVO='+idVO;
  }
}]]>
					<![CDATA[// ==========================================================================
// Afficher la fenêtre popup pour la saisie des infos ProFid
// ==========================================================================
function lPopFormAxVO(PopID, idClient, paramNav) {
if (paramNav!='MSIE') {
  nouveauTitre = document.title; 
  if (nouveauTitre.indexOf(' #')>-1) 
    nouveauTitre = nouveauTitre.substring(0,nouveauTitre.indexOf(' #'));
   nouveauTitre = nouveauTitre + ' #3' + decimalToHex(XMLC_HostID,1) + '#' + XMLC_Host + '#' + decimalToHex(XMLC_UserID,4) + '#' + decimalToHex(idClient,4) + '#' + XMLC_UserConcession + '#'; 
  
  document.title = nouveauTitre; 
}
if (paramNav=='MSIE') {
  args='0';
  evt = event;
  if (evt.shiftKey)
    args='1';
  if (popObj = getObjectById(PopID)) {
      popObj.src = XMLC_BaseHRef+'FormAxVO?idClient='+idClient+'&idVersion='+args;
  }
 }
}
// ==========================================================================
// Afficher la fenêtre popup pour la saisie des infos VO à partir de Frevo
// ==========================================================================
function lPopFormAxFrevo(PopID, idVO, paramNav) {
if (paramNav!='MSIE') {
  nouveauTitre = document.title; 
  if (nouveauTitre.indexOf(' #')>-1) 
    nouveauTitre = nouveauTitre.substring(0,nouveauTitre.indexOf(' #'));
  nouveauTitre = nouveauTitre + ' #A' + decimalToHex(XMLC_HostID,1) + '#' + XMLC_Host + '#' + decimalToHex(XMLC_UserID,4) + '#' + decimalToHex(idVO,4) + '#' + XMLC_UserConcession + '#'; 
  
  document.title = nouveauTitre; 
}
if (paramNav=='MSIE') {
  args='0';
  evt = event;
 if (evt.shiftKey)
    args='1';
  if (popObj = getObjectById(PopID)) {
      popObj.src = XMLC_BaseHRef+'FormAx_Frevo?TypeVO=1&idFrevo='+idVO+'&idVersion='+args;
  }
 } 
}

function llPopFormAxVO(PopID, idpar1, idpar2, paramNav) {
cpt++;
if (paramNav!='MSIE') {
  nouveauTitre = document.title; 
  if (nouveauTitre.indexOf(' #')>-1) 
    nouveauTitre = nouveauTitre.substring(0,nouveauTitre.indexOf(' #'));
   nouveauTitre = nouveauTitre + ' #' + decimalToHex(idpar1,1) + decimalToHex(XMLC_HostID,1) + '#' + XMLC_Host + '#' + decimalToHex(XMLC_UserID,4) + '#' + decimalToHex(idpar2,4) + '#' + XMLC_UserConcession + '#' + decimalToHex(cpt,2)+ '#'; 
  
  document.title = nouveauTitre; 
}
if (paramNav=='MSIE') {
  args='0';
//  evt = event;
//  if (evt.shiftKey)
//    args='1';
  popObj = getObjectById(PopID);
  if (idpar1==1) {
      popObj.src = XMLC_BaseHRef+'FormAxVO?TypeVO=1&idTVO='+idpar2+'&idVersion='+args;
  }
  if (idpar1==3) {
      popObj.src = XMLC_BaseHRef+'FormAxVO?idClient='+idpar2+'&idVersion='+args;
  }
  if (idpar1==10) {
      popObj.src = XMLC_BaseHRef+'FormAx_Frevo?TypeVO=1&idFrevo='+idpar2+'&idVersion='+args;
  }
 }
}
]]>
				</script>
				<script language="javascript">
					<![CDATA[   function moveHandler(e){
      if (e == null) { e = window.event } 
      if (e.button<=1&&dragOK){
         savedTarget.style.left=e.clientX-dragXoffset+'px';
         savedTarget.style.top=e.clientY-dragYoffset+'px';
         return false;
      }
   }

   function cleanup(e) {
      document.onmousemove=null;
      document.onmouseup=null;
      savedTarget.style.cursor=orgCursor;
      dragOK=false;
   }]]>
				</script>
				<script language="javascript">
					<![CDATA[   function dragHandler(e){
      var htype='-moz-grabbing';
      if (e == null) { e = window.event; htype='move';} 
      var target = e.target != null ? e.target : e.srcElement;
      orgCursor=target.style.cursor;
      if ((target.className=='BoxFrameVD') || (target.className=='BoxFrameLC') || (target.className=='BoxFrameVO')) {
         savedTarget=target;       
         target.style.cursor=htype;
         dragOK=true;
         dragXoffset=e.clientX-parseInt(vidPaneID.style.left);
         dragYoffset=e.clientY-parseInt(vidPaneID.style.top);
         document.onmousemove=moveHandler;
         document.onmouseup=cleanup;
         return false;
      }
   }
   document.onmousedown=dragHandler;]]>
				</script>
				<script language="javascript">
					<![CDATA[   var savedTarget=null; // The target layer 
   var orgCursor=null;   // The original Cursor (mouse) Style so we can restore it
   var dragOK=false;     // True if we're allowed to move the element under mouse
   var dragXoffset=0;    // How much we've moved the element on the horozontal
   var dragYoffset=0;    // How much we've moved the element on the verticle	 
//   var vidPaneID = null;]]>
				</script>
				<script language="javascript">
					<![CDATA[// 
// Valider les paramètres d'appel et lancement Submit
// 
function my_iSearch() {
  let str = document.getElementById("iSearch").value; 
  let res = str.replace("'", "%");
  document.getElementById("iSearch").value = res;
}
function goSubmit() {
  SetField('MainForm', 'AmMode',  (getObjectById('xslcActionMenu').style.display == 'none') ? '0' : '1');
  document.MainForm.submit(); 
  return false;
}
function goAndSubmit(objID, xValue) {
  if ((objID == 'ACHOIX') || (objID == 'AVALUE')) {
      if ((objID == 'ACHOIX') && (GetField('MainForm', objID)==xValue)) xValue ='';  
      SetField('MainForm', 'AmInfo', 'ACHOIX');
      SetField('MainForm', objID, xValue);  
      apLastValue = 'x';  
      goSubmit();
      return;
    }

 SetField('MainForm', 'AmInfo', objID);

  if (xValue == 'top') {
    apLastValue = '';
    SetField('MainForm', objID, '');  
    }
  if (xValue == 'vendeur') {
    apLastValue = '';
    vAff=parseInt(GetField('MainForm', 'TypeAffich3'));
    if (vAff>=100000)
      vAff = vAff % 100000;
    else
      vAff = vAff + 100000;
    if (isNaN(vAff))
      vAff = 0;
    SetField('MainForm', 'TypeAffich3', vAff);
    }
  if (xValue == 'reset'){
    apLastValue = '';
    SetField('MainForm', 'SITE3', '');     SetField('MainForm', 'CATE3', '');
    SetField('MainForm', 'ATEL3', '');     SetField('MainForm', 'cVENDEUR', '');
    SetField('MainForm', 'vSearch', '');     SetField('MainForm', 'LIMDC1', '');    SetField('MainForm', 'LIMDC2', ''); 
    vAff=parseInt(GetField('MainForm', 'TypeAffich3')) % 100;
    SetField('MainForm', 'TypeAffich3', vAff);
    }
  if ((xValue != 'slider') && (xValue != 'reset') && (xValue != 'top') && (xValue != 'vendeur')) {
    aPar=GetField('MainForm', objID);
    if ((aPar =='') || (objID == 'TypeAffich3') || (objID == 'cVENDEUR'))
       SetField('MainForm', objID, xValue); 
    else {
       aPar = ';' + aPar + ';';
       xValue = ';'+ xValue + ';';
       if (aPar.search(xValue)!=-1)  {
           aPar = aPar.replace(xValue, ';');
           }
          else {
           aPar = aPar + xValue;  
           }
       aPar = aPar.replace(';;', ';');
       if (aPar.length>=2)
         aPar=aPar.substring(1,aPar.length-1);
       if (aPar==';')
         aPar = '';
       SetField('MainForm', objID, aPar);  
       }
    }  goSubmit();
}]]>
				</script>
			</xsl:with-param>
			<xsl:with-param name="Title">CarFid I - <xsl:call-template name="CarfidTitle"/>
			</xsl:with-param>
			<xsl:with-param name="ToolbarButtonsLeft">
				<ToolbarButton>
					<xsl:call-template name="ToolButtonRefresh">
						<xsl:with-param name="URL">
							<xsl:value-of select="/document/Aliases/bdVODLL"/>
							<xsl:call-template name="Carfid_RefreshURL"/>
						</xsl:with-param>
					</xsl:call-template>
				</ToolbarButton>
				<xsl:if test="/document/XMLC_Params/XMLC_Authenticated != '0'">
					<ToolbarButton>
						<xsl:call-template name="ToolButtonFavoris"/>
					</ToolbarButton>
					<ToolbarButton>
						<xsl:call-template name="ToolButtonFavorisAdd"/>
					</ToolbarButton>
				</xsl:if>
			</xsl:with-param>
			<xsl:with-param name="ToolbarButtonsRight">
				<xsl:call-template name="VOLineToolbarButtonsRight"/>
			</xsl:with-param>
			<xsl:with-param name="ActivePageName">CarFid</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</a>
				</Tab>
				<Tab Name="ListVN">
					<a href="{/document/Aliases/bdVODLL}ListVN?">
						<img align="absmiddle" border="0" src="{$XMLC_PictosPath}ico_service.gif"/> Liste VN</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 name="FormDeleteFavoris" method="POST" action="{/document/Aliases/bdVODLL}FavorisDelete">
					<input type="hidden" name="NextAction" value="CARFID"/>
					<input type="hidden" name="vShowFavoris" value="1"/>
					<input type="hidden" name="vID"/>
				</form>
				<form name="FormAddFavoris" method="POST" action="{/document/Aliases/bdVODLL}FavorisAdd">
					<xsl:variable name="FavNewTitle">
						<xsl:call-template name="CarfidTitle"/>
					</xsl:variable>
					<xsl:variable name="FavURL">
						<xsl:call-template name="Carfid_RefreshURL"/>
					</xsl:variable>
					<input type="hidden" name="NextAction" value="CARFID"/>
					<input type="hidden" name="vShowFavoris" value="1"/>
					<input type="hidden" name="vidTab" value="4"/>
					<input type="hidden" name="vidAff" value="{/document/OutParams/AffSel}"/>
					<input type="hidden" name="vInfos" value="{$FavNewTitle}"/>
					<input type="hidden" name="vParams" value="{$FavURL}"/>
				</form>
				<form action="{/document/Aliases/bdVODLL}CarFid" name="MainForm" method="post">
					<input type="hidden" name="ModePresent3" value="{/document/OutParams/MODEAFFICHAGE}"/>
					<input type="hidden" name="AmInfo" value="{/document/OutParams/AmInfo}"/>
					<input type="hidden" name="AmMode" value="{/document/OutParams/AmMode}"/>
					<input type="hidden" name="TypeAffich3" value="{/document/OutParams/AFFICHAGE}"/>
					<input type="hidden" name="SITE3" value="{/document/OutParams/SITE}"/>
					<input type="hidden" name="cVENDEUR" value="{/document/OutParams/cVENDEUR}"/>
					<input type="hidden" name="LIMDC1" value="{/document/OutParams/LIMDC1}"/>
					<input type="hidden" name="LIMDC2" value="{/document/OutParams/LIMDC2}"/>
					<input type="hidden" name="CATE3" value="{/document/OutParams/CATEGORIE}"/>
					<input type="hidden" name="ATEL3" value="{/document/OutParams/ATELIER}"/>
					<input type="hidden" name="vSearch" value="{/document/OutParams/vSearch}"/>
					<input type="hidden" name="tSearch" value="{/document/OutParams/tSearch}"/>
					<input type="hidden" name="NBROWS3" value="{/document/OutParams/NBROWS}"/>
					<input type="hidden" name="ORDERFIELD3" value="{/document/OutParams/ORDERFIELD}"/>
				</form>
				<div id="vdivFormVO" class="BoxFrameVN" style="position: absolute; display: none; z-index:1000; PADDING-LEFT: 7 px; ">
					<button class="window-close" onclick="javascript: window.parent.ShowHideForm(vidPaneID);">
						<img border="0" src="{$XMLC_PictosPath}ico_closenew.gif" title="pour quitter sans enregistrer ..."/>
					</button>Visualisation des données d'un Client<iframe id="FormVO" name="FormVO" border="0" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="{$XMLC_Portal}blank.htm" style="position: absolute; z-index:1000;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; "/>
				</div>
				<xsl:call-template name="xslc:ApplicationMessages"/>
				<xsl:apply-templates select="ListFactS"/>
				<xsl:call-template name="xslc:PoweredBy"/>
			</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="Carfid_RefreshURL">Carfid?ModePresent3=<xsl:value-of select="/document/OutParams/MODEAFFICHAGE"/>&amp;TypeAffich3=<xsl:value-of select="/document/OutParams/AFFICHAGE"/>&amp;AmMode=<xsl:value-of select="/document/OutParams/AmMode"/>&amp;AmInfo=<xsl:value-of select="/document/OutParams/AmInfo"/>&amp;SITE3=<xsl:value-of select="/document/OutParams/SITE"/>&amp;cVENDEUR=<xsl:value-of select="/document/OutParams/cVENDEUR"/>&amp;LIMDC1=<xsl:value-of select="/document/OutParams/LIMDC1"/>&amp;LIMDC2=<xsl:value-of select="/document/OutParams/LIMDC2"/>&amp;tSearch=<xsl:value-of select="/document/OutParams/tSearch"/>&amp;vSearch=<xsl:value-of select="/document/OutParams/vSearch"/>&amp;NBROWS3=<xsl:value-of select="/document/OutParams/NBROWS"/>&amp;ORDERFIELD3=<xsl:value-of select="/document/OutParams/ORDERFIELD"/>
	</xsl:template>
	<xsl:template name="CarfidTitle">
		<xsl:param name="vParamTextReport"/>
		<xsl:if test="(/document/OutParams/AffSel&lt;20) and (/document/SelVendeurS/SelVendeur/AbbrVendeur!='') and(/document/OutParams/AffVendeur!=0)">
			<xsl:value-of select="/document/SelVendeurS/SelVendeur/cIdent"/> - </xsl:if>
		<xsl:if test="/document/OutParams/nClient!=''">Documents pour n° Client : <xsl:value-of select="/document/OutParams/nClient"/>
		</xsl:if>
		<xsl:if test="/document/OutParams/nClient=''">
			<xsl:value-of select="/document/ListFiltersS/ListFilters[idAffichage=/document/OutParams/AffSel]/FilterName"/>
			<xsl:value-of select="$vParamTextReport"/>
			<xsl:if test="(/document/OutParams/AffDest&gt;=100) and not (/document/ListFiltersS/ListFilters[idAffichage=/document/OutParams/AffSel]/AttrDest='0') "> - <xsl:value-of select="/document/ListFiltersS/ListFilters[AttrDest=/document/OutParams/AffDest]/FilterName"/>
			</xsl:if>
		</xsl:if>
		<xsl:if test="/document/OutParams/AffDate!='0'">
			<xsl:if test="/document/OutParams/AffDate='1' and false"> relances </xsl:if>
			<xsl:if test="/document/OutParams/LIMDC1!='' or /document/OutParams/LIMDC2!=''">
				<xsl:if test="/document/OutParams/LIMDC1!='' and /document/OutParams/LIMDC2=''"> après le <xsl:value-of select="/document/OutParams/LIMDC1"/>
				</xsl:if>
				<xsl:if test="/document/OutParams/LIMDC1='' and /document/OutParams/LIMDC2!=''"> avant le <xsl:value-of select="/document/OutParams/LIMDC2"/>
				</xsl:if>
				<xsl:if test="/document/OutParams/LIMDC1!='' and /document/OutParams/LIMDC2!=''"> du <xsl:value-of select="/document/OutParams/LIMDC1"/>
					<xsl:if test="/document/OutParams/LIMDC1!=/document/OutParams/LIMDC2"> au <xsl:value-of select="/document/OutParams/LIMDC2"/>
					</xsl:if>
				</xsl:if>
			</xsl:if>
		</xsl:if>
		<xsl:if test="/document/OutParams/SITE!=''"> - Site : <xsl:value-of select="/document/VOutParams/lSiteS/oSite"/>
		</xsl:if>
		<xsl:if test="/document/OutParams/CATEGORIE!=''"> - Catégorie : <xsl:value-of select="/document/VOutParams/lCategorieS/oCategorie"/>
		</xsl:if>
		<xsl:if test="/document/OutParams/ATELIER!=''"> - Atelier/Magasin : <xsl:value-of select="/document/VOutParams/lAteMagS/oAteMag"/>
		</xsl:if>
		<xsl:if test="/document/OutParams/cVENDEUR!=''"> - <xsl:value-of select="/document/ListVENDEURS/ListVENDEUR[idCom=/document/OutParams/cVENDEUR]/nVendeur"/>
		</xsl:if>
		<xsl:if test="/document/OutParams/vSearchInfo!=''"> - <xsl:value-of select="/document/OutParams/vSearchInfo"/>
		</xsl:if>
	</xsl:template>
	<!---->
	<xsl:template name="SelTypeRelance">
		<xsl:param name="vIndent">2</xsl:param>
		<xsl:variable name="idAffSel">
			<xsl:if test="/document/OutParams/AffSel=''"/>
			<xsl:value-of select="/document/OutParams/AffSel"/>
		</xsl:variable>
		<xsl:variable name="idAffVendeur">
			<xsl:if test="/document/OutParams/AffVendeur=''">0</xsl:if>
			<xsl:value-of select="/document/OutParams/AffVendeur"/>
		</xsl:variable>
		<xsl:variable name="idAffDest">
			<xsl:if test="/document/OutParams/AffDest=''">0</xsl:if>
			<xsl:value-of select="/document/OutParams/AffDest"/>
		</xsl:variable>
		<table cellpadding="2" cellspacing="0">
			<xsl:for-each select="/document/ListFiltersS/ListFilters">
				<xsl:variable name="apInfo">
					<xsl:if test="/document/OutParams/AffDest=AttrDest">
						<xsl:value-of select="$idAffSel+$idAffVendeur"/>
					</xsl:if>
					<xsl:if test="/document/OutParams/AffDest!=AttrDest">
						<xsl:value-of select="AttrDest+$idAffSel+$idAffVendeur"/>
					</xsl:if>
				</xsl:variable>
				<xsl:variable name="apSelect-Old">
					<xsl:if test="/document/OutParams/AffDest=AttrDest">apRowSelected</xsl:if>
					<xsl:if test="/document/OutParams/AffDest!=AttrDest">apLink</xsl:if>
				</xsl:variable>
				<xsl:variable name="apSelect">apLink</xsl:variable>
				<xsl:variable name="apOver">
					<xsl:if test="/document/OutParams/AffDest=AttrDest">ap2RowSelected</xsl:if>
					<xsl:if test="/document/OutParams/AffDest!=AttrDest">apRowSelected</xsl:if>
				</xsl:variable>
				<xsl:variable name="apAttr">
					<xsl:if test="$vIndent='' or $vIndent='2' ">padding-left:8px;</xsl:if>
					<xsl:if test="$vIndent='4' ">padding-left:16px;</xsl:if>
					<xsl:if test="$vIndent='6' ">padding-left:24px;</xsl:if>
					<xsl:if test="$vIndent='8' ">padding-left:32px;</xsl:if>
					<xsl:if test="/document/OutParams/AffDest=idAffichage">color:#3f3dfd; </xsl:if>
					<xsl:if test="idAffichage!='-1' and /document/OutParams/AffDest!=idAffichage">color:#145aa2; </xsl:if>
				</xsl:variable>
				<xsl:variable name="idFirstAff">
					<xsl:value-of select="/document/ListFiltersS/ListFilters[idAffichage=/document/OutParams/AffSel]/AttrDest * 100"/>
				</xsl:variable>
				<xsl:if test="(AttrDest>=$idFirstAff) ">
					<tr>
						<td class="{$apSelect}" onmouseover="oldClass=this.className; this.className='{$apOver}';" onmouseout="this.className=oldClass;" onclick="javascript: goAndSubmit('TypeAffich3',{$apInfo}); return false;" align="left" style="margin-left:8px; {$apAttr} width:200px; ">» <xsl:if test="/document/OutParams/AffDest=AttrDest">
								<img border="0" src="{$XMLC_PictosPath}ico_run.gif"/> - </xsl:if>
							<xsl:value-of select="FilterName"/>
						</td>
					</tr>
				</xsl:if>
			</xsl:for-each>
		</table>
		<table>
			<tr>
				<td style="padding: 0px 0px 0px 0px; width:200px">
					<img title="" border="0" src="{$XMLC_SkinPath}actionpanel/separator_dark.gif" height="1" width="100%"/>
				</td>
			</tr>
		</table>
	</xsl:template>
	<xsl:template match="ListFactS">
		<xsl:param name="RecordCount" select="@RowCount"/>
		<xsl:variable name="vOrd" select="/document/OutParams/ORDERFIELD"/>
		<xsl:variable name="vDLL">
			<xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/>/</xsl:variable>
		<xsl:variable name="vAction">
			<xsl:value-of select="/document/Aliases/bdVODLL"/>
			<xsl:value-of select="/document/XMLC_Params/XMLC_Action"/>
		</xsl:variable>
		<xsl:variable name="vtxtInfo">Détail des barres status liaisons entre SAV &amp; ProFid&lt;br&gt;-&gt; Barre 1 : Immatriculation &amp; Numéro de Châssis&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;grise : aucune information dans ProFid&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;verte : immat &amp; châssis trouvés&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;orange : immat trouvée&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;rouge : doublons immat trouvés&lt;br&gt;-&gt; Barre 2 : Numéro de Châssis&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;grise : aucune information dans ProFid&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;verte : immat &amp; châssis trouvés&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;orange : châssis trouvé&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;rouge : doublons châssis trouvés&lt;br&gt;-&gt; Barre 3 : Nom &amp; Prénom du client du lien&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;grise : aucune correspondance&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;verte : nom &amp; prénom inclus dans identité facture&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;orange : nom seul trouvé&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;rouge : doublons nom &amp; prénom trouvés&lt;br&gt;-&gt; Barre 4 : Code Postal &amp; Ville&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;grise : aucune information dans ProFid&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;verte : code postal &amp; ville trouvés&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;orange : code postal trouvé&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;rouge : doublons immat ou châssis trouvés&lt;br&gt;-&gt; Barre 5 : Téléphone Fixe&lt;br&gt;-&gt; Barre 6 : Téléphone Mobile&lt;br&gt;-&gt; Barre 7 : Adresse email&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;grise : aucune information dans ProFid&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;verte : correspondance trouvée&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;orange : différence trouvée&lt;br&gt;&#160;&#160;&#160;&#160;&#160;&#160;rouge : doublons trouvés&lt;br&gt;</xsl:variable>
		<xsl:variable name="PrintInfo1">
			<xsl:call-template name="CarfidTitle">
				<xsl:with-param name="vParamTextReport">/pRecap </xsl:with-param>
			</xsl:call-template>
		</xsl:variable>
		<xsl:variable name="PrintInfo2">
			<xsl:value-of select="/document/VOutParams/lChoiceS/oChoice"/>
		</xsl:variable>
		<xsl:if test="$vDLL!=/document/Aliases/bdVODLL">
			<p align="right">Non OK, utilisez plutôt le lien suivant :<a href="{$vAction}" style="color:red">http://<xsl:value-of select="$vAction"/>
				</a>
			</p>
		</xsl:if>
		<xsl:call-template name="VOZoneTab">
			<xsl:with-param name="nService">CarFid</xsl:with-param>
		</xsl:call-template>
		<div id="bulle" nowrap="nowrap" style="width: 2px;" class="infobulle"/>
		<div id="zoneTOP">
			<div id="zoneParams" style="display: none;">
				<xsl:call-template name="CarfidTitle"/>&amp;sClause=<xsl:value-of select="/document/OutParams/SOURCE_CLAUSE"/>&amp;wClause=<xsl:value-of select="/document/OutParams/wClause"/>&amp;oClause=<xsl:value-of select="/document/OutParams/ORDERBY_CLAUSE"/>&amp;fClause=<xsl:value-of select="/document/OutParams/FIELD_CLAUSE"/>
			</div>
			<p style="font-size:16px; line-height : 20px;">
				<xsl:call-template name="CarfidTitle"/>
			</p>
			<table width="100%">
				<tr>
					<td width="45px" align="right">Ordre : </td>
					<td width="145px">
						<select id="CBORDERFIELD" style="width:110px" onchange="javascript: document.MainForm.ORDERFIELD3.value=getObjectById('CBORDERFIELD').value; goSubmit(); return false;">
							<option value="Cons">
								<xsl:if test="/document/OutParams/ORDERFIELD='Cons'">
									<xsl:attribute name="selected"/>
								</xsl:if>Conseiller</option>
							<option value="Site">
								<xsl:if test="/document/OutParams/ORDERFIELD='Site'">
									<xsl:attribute name="selected"/>
								</xsl:if>Site </option>
							<option value="DFact">
								<xsl:if test="/document/OutParams/ORDERFIELD='DFact'">
									<xsl:attribute name="selected"/>
								</xsl:if>Date Facture</option>
							<option value="DImp">
								<xsl:if test="/document/OutParams/ORDERFIELD='DImp'">
									<xsl:attribute name="selected"/>
								</xsl:if>Date Impression</option>
							<option value="nDoc">
								<xsl:if test="/document/OutParams/ORDERFIELD='nDoc'">
									<xsl:attribute name="selected"/>
								</xsl:if>Numéro Document</option>
							<option value="cNom">
								<xsl:if test="/document/OutParams/ORDERFIELD='cNom'">
									<xsl:attribute name="selected"/>
								</xsl:if>Nom Client</option>
							<option value="CP">
								<xsl:if test="/document/OutParams/ORDERFIELD='CP'">
									<xsl:attribute name="selected"/>
								</xsl:if>Code Postal</option>
							<option value="Ville">
								<xsl:if test="/document/OutParams/ORDERFIELD='Ville'">
									<xsl:attribute name="selected"/>
								</xsl:if>Ville</option>
							<option value="HT">
								<xsl:if test="/document/OutParams/ORDERFIELD='HT'">
									<xsl:attribute name="selected"/>
								</xsl:if>Valeur HT</option>
							<option value="TTC">
								<xsl:if test="/document/OutParams/ORDERFIELD='TTC'">
									<xsl:attribute name="selected"/>
								</xsl:if>Valeur TTC</option>
						</select> - <a href="{/document/Aliases/bdVODLL}CarFid?SETORDERFIELD={$vOrd}">
							<xsl:if test="/document/OutParams/ORDERSENSE=''">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_top.gif"/>
							</xsl:if>
							<xsl:if test="/document/OutParams/ORDERSENSE!=''">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"/>
							</xsl:if>
						</a>
					</td>
					<td colspan="3">, documents/page : <input class="clFlatTextInput" id="NBROWS" size="2" onkeyup="javascript: document.MainForm.NBROWS3.value=getObjectById('NBROWS').value; onKeyTestCR(event); return false;" value="{/document/OutParams/NBROWS}" style="text-align: right"/>, (<xsl:value-of select="$RecordCount"/> documents sélectionnés). <xsl:if test="/document/XMLC_Params/XMLC_Authenticated != '0'  and /document/OutParams/AffSel=20"> - <a href="#" onclick="javascript: getRapportCA('ReportPDF?rptformat=PDF&amp;rptname=CA21 - Récapitulatif Site&amp;rptinfo1={$PrintInfo1}&amp;rptinfo2={$PrintInfo2}&amp;rptselect=p0-ord={/document/OutParams/ORDERFIELD} {/document/OutParams/ORDERSENSE}-'); return false;" target="_blank">
								<img border="0" src="{$XMLC_PictosPath}ico_PrintImages2.gif" title="afin d'imprimer le récapitulatif de la sélection par site"/>
							</a>
						</xsl:if>
						<xsl:if test="/document/XMLC_Params/XMLC_Authenticated != '0'   and /document/OutParams/AffSel=20"> - <a href="#" onclick="javascript: getRapportCA('ReportPDF?rptformat=PDF&amp;rptname=CA22 - Récapitulatif Atelier/Magasin&amp;rptinfo1={$PrintInfo1}&amp;rptinfo2={$PrintInfo2}&amp;rptselect=p0-ord={/document/OutParams/ORDERFIELD} {/document/OutParams/ORDERSENSE}-'); return false;" target="_blank">
								<img border="0" src="{$XMLC_PictosPath}ico_PrintSel.gif" title="afin d'imprimer le récapitulatif de la sélection par atelier/magasin"/>
							</a>
						</xsl:if>
						<xsl:if test="/document/XMLC_Params/XMLC_Authenticated != '0'   and /document/OutParams/AffSel=20"> - <a href="#" onclick="javascript: getRapportCA('ReportPDF?rptformat=PDF&amp;rptname=CA23 - Récapitulatif Réceptionnaire&amp;rptinfo1={$PrintInfo1}&amp;rptinfo2={$PrintInfo2}&amp;rptselect=p0-ord={/document/OutParams/ORDERFIELD} {/document/OutParams/ORDERSENSE}-'); return false;" target="_blank">
								<img border="0" src="{$XMLC_PictosPath}ico_PrintSelV.gif" title="afin d'imprimer le récapitulatif de la sélection par réceptionnaire"/>
							</a>
						</xsl:if>
						<xsl:if test="/document/XMLC_Params/XMLC_UserName != '' "> - <iframe border="1" frameborder="1" marginheight="0" marginwidth="0" id="SelPrint" name="SelPrint" scrolling="no" src="{$XMLC_Portal}blank.htm" style="position: absolute; display: none; z-index:1000;"/>
							<a onclick="javascript: PopSelReport('SelPrint', 'btnSelPrint'); return false;">
								<img border="0" title="afin de sélectionner le type de rapport" id="btnSelPrint" src="{$XMLC_PictosPath}ico_PrintReport.gif"/>
							</a>
						</xsl:if>
						<xsl:if test="/document/XMLC_Params/XMLC_Authenticated != '0'   and /document/OutParams/AffSel=20"> - <a href="#" onclick="javascript: goHisto('/ProjHistoBin/projHisto.dll/bdSAV?vParam=a&amp;rptinfo1={$PrintInfo1}&amp;rptinfo2={$PrintInfo2}&amp;sClause={/document/OutParams/SOURCE_CLAUSE}&amp;wClause={/document/OutParams/wClause}&amp;oClause={/document/OutParams/ORDERBY_CLAUSE}'); return false;" target="_blank">
								<img border="0" src="{$XMLC_PictosPath}Buttons\Stats\Stats.gif" title="afin de visualiser le graphique de la sélection"/>
							</a>
						</xsl:if>
						<xsl:if test="/document/XMLC_Params/XMLC_Authenticated != '0'   and /document/OutParams/AffSel=20"> - <a href="{/document/Aliases/bdVODLL}CarFidStats?CFDeb={/document/OutParams/LIMDC1}&amp;CFFin={/document/OutParams/LIMDC2}" target="_blank">
								<img border="0" src="{$XMLC_PictosPath}Buttons\History\History.gif" title="afin de visualiser les statistiques selon les numéros de document"/>
							</a>
						</xsl:if>
					</td>
				</tr>
			</table>
		</div>
		<table border="0" class="clFlatTable" width="100%">
			<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}CarFid?SETORDERFIELD=Cons">Conseiller<xsl:if test="/document/OutParams/ORDERFIELD='Cons'">
							<xsl:if test="/document/OutParams/ORDERSENSE=''">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_top.gif"/>
							</xsl:if>
							<xsl:if test="/document/OutParams/ORDERSENSE!=''">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"/>
							</xsl:if>
						</xsl:if>
					</a>
				</td>
				<td>
					<a href="{/document/Aliases/bdVODLL}CarFid?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!=''">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"/>
							</xsl:if>
						</xsl:if>
					</a>
				</td>
				<td>
					<a href="{/document/Aliases/bdVODLL}CarFid?SETORDERFIELD=DFact">Date<xsl:if test="/document/OutParams/ORDERFIELD='DFact'">
							<xsl:if test="/document/OutParams/ORDERSENSE=''">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_top.gif"/>
							</xsl:if>
							<xsl:if test="/document/OutParams/ORDERSENSE!=''">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"/>
							</xsl:if>
						</xsl:if>
					</a>
				</td>
				<td colspan="2">
					<a href="{/document/Aliases/bdVODLL}CarFid?SETORDERFIELD=nDoc">N° du document<xsl:if test="/document/OutParams/ORDERFIELD='nDoc'">
							<xsl:if test="/document/OutParams/ORDERSENSE=''">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_top.gif"/>
							</xsl:if>
							<xsl:if test="/document/OutParams/ORDERSENSE!=''">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"/>
							</xsl:if>
						</xsl:if>
					</a>
				</td>
				<td>
					<a href="{/document/Aliases/bdVODLL}CarFid?SETORDERFIELD=cNom">Client<xsl:if test="/document/OutParams/ORDERFIELD='cNom'">
							<xsl:if test="/document/OutParams/ORDERSENSE=''">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_top.gif"/>
							</xsl:if>
							<xsl:if test="/document/OutParams/ORDERSENSE!=''">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"/>
							</xsl:if>
						</xsl:if>
					</a>
				</td>
				<td onmouseover="ib_montre('{$vtxtInfo}'); return false;" onmouseout="ib_cache();" width="25px">
					<img border="0" src="{$XMLC_PictosPath}ico_info.gif"/>
				</td>
				<td>
					<xsl:if test="/document/OutParams/AffSel!='40' and /document/OutParams/AffSel!='41' ">
						<a href="{/document/Aliases/bdVODLL}CarFid?SETORDERFIELD=CP">CP<xsl:if test="/document/OutParams/ORDERFIELD='CP'">
								<xsl:if test="/document/OutParams/ORDERSENSE=''">
									<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_top.gif"/>
								</xsl:if>
								<xsl:if test="/document/OutParams/ORDERSENSE!=''">
									<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"/>
								</xsl:if>
							</xsl:if>
						</a>
					</xsl:if>
					<xsl:if test="/document/OutParams/AffSel='40' or /document/OutParams/AffSel='41'">Immat.</xsl:if>
				</td>
				<td>
					<xsl:if test="/document/OutParams/AffSel!='40' and /document/OutParams/AffSel!='41' ">
						<a href="{/document/Aliases/bdVODLL}CarFid?SETORDERFIELD=Ville">Ville<xsl:if test="/document/OutParams/ORDERFIELD='Ville'">
								<xsl:if test="/document/OutParams/ORDERSENSE=''">
									<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_top.gif"/>
								</xsl:if>
								<xsl:if test="/document/OutParams/ORDERSENSE!=''">
									<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"/>
								</xsl:if>
							</xsl:if>
						</a>
					</xsl:if>
					<xsl:if test="/document/OutParams/AffSel='40' or /document/OutParams/AffSel='41'">Châssis</xsl:if>
				</td>
			</tr>
			<xsl:apply-templates select="ListFact"/>
			<xsl:call-template name="xslc:ListFooter">
				<xsl:with-param name="colspan">22</xsl:with-param>
				<xsl:with-param name="URLParams">&amp;ModePresent3=<xsl:value-of select="/document/OutParams/MODEAFFICHAGE"/>&amp;TypeAffich3=<xsl:value-of select="/document/OutParams/AFFICHAGE"/>
					<xsl:if test="/document/OutParams/SITE!=''">&amp;SITE3=<xsl:value-of select="/document/OutParams/SITE"/>
					</xsl:if>&amp;AmMode=<xsl:value-of select="/document/OutParams/AmMode"/>&amp;AmInfo=<xsl:value-of select="/document/OutParams/AmInfo"/>
					<xsl:if test="/document/OutParams/cVENDEUR!=''">&amp;cVENDEUR=<xsl:value-of select="/document/OutParams/cVENDEUR"/>
					</xsl:if>
					<xsl:if test="/document/OutParams/LIMDC1!=''">&amp;LIMDC1=<xsl:value-of select="/document/OutParams/LIMDC1"/>
					</xsl:if>
					<xsl:if test="/document/OutParams/LIMDC2!=''">&amp;LIMDC2=<xsl:value-of select="/document/OutParams/LIMDC2"/>
					</xsl:if>&amp;tSearch=<xsl:value-of select="/document/OutParams/tSearch"/>&amp;vSearch=<xsl:value-of select="/document/OutParams/vSearch"/>&amp;NBROWS3=<xsl:value-of select="/document/OutParams/NBROWS"/>&amp;ORDERFIELD3=<xsl:value-of select="/document/OutParams/ORDERFIELD"/>
				</xsl:with-param>
				<xsl:with-param name="MaxPages">30</xsl:with-param>
			</xsl:call-template>
		</table>
	</xsl:template>
	<xsl:template match="ListFact">
		<xsl:variable name="vConcession" select="Concession"/>
		<xsl:variable name="vOwner" select="idOwner"/>
		<xsl:variable name="vSite" select="Site"/>
		<xsl:variable name="vidClient" select="idClient"/>
		<xsl:variable name="vidFrevo" select="idFrevo"/>
		<xsl:variable name="vTagSite">
			<xsl:choose>
				<xsl:when test="/document/XMLC_Params/US1 = $vSite">1</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when test="/document/XMLC_Params/US2 = $vSite">1</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when test="/document/XMLC_Params/US3 = $vSite">1</xsl:when>
								<xsl:otherwise>0</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="tAuth1">
			<xsl:choose>
				<xsl:when test="/document/XMLC_Params/UserConcession = $vConcession">
					<xsl:choose>
						<xsl:when test="$vTagSite=1">1</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when test="/document/XMLC_Params/UserSite = '#'">1</xsl:when>
								<xsl:otherwise>
									<xsl:choose>
										<xsl:when test="/document/XMLC_Params/XMLC_Supervisor = '1'">1</xsl:when>
										<xsl:otherwise>0</xsl:otherwise>
									</xsl:choose>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>0</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="tAuth2">
			<xsl:choose>
				<xsl:when test="/document/XMLC_Params/XMLC_UserID = $vOwner">1</xsl:when>
				<xsl:otherwise>0</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="tAuth">
			<xsl:choose>
				<xsl:when test="/document/XMLC_Params/XMLC_Authenticated != '0' and (/document/XMLC_Params/User_CarFid = '1')">
					<xsl:choose>
						<xsl:when test="$tAuth1='1'">1</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when test="$tAuth2='1'">1</xsl:when>
								<xsl:otherwise>0</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>0</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="vidComAct" select="idComAct"/>
		<xsl:variable name="vidFact" select="idSPL_Docs"/>
		<xsl:variable name="vnClient" select="nClient"/>
		<xsl:variable name="vRptName">
			<xsl:choose>
				<xsl:when test="CliCivilite = 5">Fiche Carfid Societe</xsl:when>
				<xsl:otherwise>Fiche Carfid</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="vCliPrenom" select="CliPrenom"/>
		<xsl:variable name="vCliNom" select="CliNom"/>
		<xsl:variable name="vCliVille" select="CliVille"/>
		<xsl:variable name="vCliTelDom" select="CliTelDom"/>
		<xsl:variable name="vCliMobile" select="CliMobile"/>
		<xsl:variable name="vTVer" select="aTVer"/>
		<xsl:variable name="stSiteValue">
			<xsl:choose>
				<xsl:when test="TypeDMS= '1'">color:blue;</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when test="TypeDMS!= '2'">color:red;</xsl:when>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:choose>
				<xsl:when test="DateFinValiditeCarfid != ''">font-weight:bold;</xsl:when>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="stFrevoValue">
			<xsl:choose>
				<xsl:when test="CheckFrevo = '1' and idFrevo = 0">font-weight:bold; color : red;</xsl:when>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="stValueDateDoc">
			<xsl:choose>
				<xsl:when test="CFItems = ''">font-style:italic;</xsl:when>
				<xsl:otherwise>color:orange;<xsl:choose>
						<xsl:when test="CFExcludeSoc != ''">text-decoration:line-through; </xsl:when>
					</xsl:choose>
					<xsl:choose>
						<xsl:when test="DateFinValiditeCarfid != ''">font-weight:bold;</xsl:when>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</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:if test="vCheckFrevo != '00'">F</xsl:if>
		</xsl:variable>
		<xsl:variable name="vTypeVO" select="TypeVO"/>
		<xsl:variable name="sRowSelect">clRowSelected</xsl:variable>
		<xsl:variable name="vicoStatus">
      <xsl:if test="idStatut=0">
      <xsl:value-of select="$XMLC_PictosPath"/>ico_clear.gif</xsl:if>
      <xsl:if test="idStatut=1">
      <xsl:value-of select="$XMLC_PictosPath"/>ico_alarm_clear.gif</xsl:if>
      <xsl:if test="idStatut=3">
      <xsl:value-of select="$XMLC_PictosPath"/>ico_alarm_blue.gif</xsl:if>
      <xsl:if test="idStatut=-1">
      <xsl:value-of select="$XMLC_PictosPath"/>ico_alarm_red.gif</xsl:if>
    </xsl:variable>
		<xsl:variable name="vicoNFact">
			<xsl:value-of select="$XMLC_PictosPath"/>iconiv<xsl:value-of select="icoNFact"/>.gif</xsl:variable>
		<xsl:variable name="vtxtNFact">&lt;table class="clRowInfoBulle"&gt;<xsl:if test="HT != '0.00'">&lt;tr&gt;&lt;td class="clRowInfoBulle";&gt;Valeur HT : &lt;/td&gt;&lt;td class="clRowInfoBulle";align="right";&gt;<xsl:value-of select="HT"/> euros&lt;/td&gt;&lt;/tr&gt;</xsl:if><xsl:if test="HT != TTC">&lt;tr&gt;&lt;td class="clRowInfoBulle";&gt;Valeur TTC : &lt;/td&gt;&lt;td  class="clRowInfoBulle";align="right";&gt;<xsl:value-of select="TTC"/> euros&lt;/td&gt;&lt;/tr&gt;</xsl:if>
			<xsl:if test="sCategorie != ''">&lt;tr&gt;&lt;td class="clRowInfoBulle";&gt;Catégorie : &lt;/td&gt;&lt;td  class="clRowInfoBulle";align="right"&gt;<xsl:value-of select="sCategorie"/>&lt;/td&gt;&lt;/tr&gt;</xsl:if>
			<xsl:if test="sChassis != ''">&lt;tr&gt;&lt;td class="clRowInfoBulle";&gt;Châssis : &lt;/td&gt;&lt;td  class="clRowInfoBulle";align="right"&gt;<xsl:value-of select="sChassis"/>&lt;/td&gt;&lt;/tr&gt;</xsl:if>
			<xsl:if test="sChassis != sChassisDMS and sChassisDMS!=''">&lt;tr&gt;&lt;td class="clRowInfoBulleRed";&gt;Erreur Châssis : &lt;/td&gt;&lt;td  class="clRowInfoBulleRed";align="right"&gt;<xsl:value-of select="sChassisDMS"/>&lt;/td&gt;&lt;/tr&gt;</xsl:if>
			<xsl:if test="sImmatriculation != ''">&lt;tr&gt;&lt;td class="clRowInfoBulle";&gt;Immat.: &lt;/td&gt;&lt;td  class="clRowInfoBulle";align="right"&gt;<xsl:value-of select="sImmatriculation"/>&lt;/td&gt;&lt;/tr&gt;</xsl:if>
			<xsl:if test="CFItems != ''">&lt;tr&gt;&lt;td class="clRowInfoBulle";&gt;Filtre : <xsl:value-of select="CFItems"/>&lt;/td&gt;&lt;td  class="clRowInfoBulle";align="right"&gt; =&gt;<xsl:value-of select="vFiltre"/>&lt;/td&gt;&lt;/tr&gt;</xsl:if>
			<xsl:if test="CFExcludeSoc != ''">&lt;tr&gt;&lt;td class="clRowInfoBulle";&gt;Exclusion : &lt;/td&gt;&lt;td  class="clRowInfoBulle";align="right"&gt;<xsl:value-of select="CFExcludeSoc"/>&lt;/td&gt;&lt;/tr&gt;</xsl:if>
			<xsl:if test="sFichier != ''">&lt;tr&gt;&lt;td class="clRowInfoBulle" colspan="2" align="left"&gt;<xsl:value-of select="sFichier"/>&lt;/td&gt;&lt;/tr&gt;</xsl:if>
			<xsl:if test="sInfoFact != ''">&lt;tr&gt;&lt;td class="clRowInfoBulle" colspan="2" align="left"&gt;<xsl:value-of select="sInfoFact"/>&lt;/td&gt;&lt;/tr&gt;</xsl:if>&lt;/table&gt;</xsl:variable>
		<xsl:variable name="vicoCheckImmat">
			<xsl:value-of select="$XMLC_PictosPath"/>icoflag<xsl:value-of select="vCheckImmat"/>.gif</xsl:variable>
		<xsl:variable name="vicoCheckChassis">
			<xsl:value-of select="$XMLC_PictosPath"/>icoflag<xsl:value-of select="vCheckChassis"/>.gif</xsl:variable>
		<xsl:variable name="vicoCheckIdentite">
			<xsl:value-of select="$XMLC_PictosPath"/>icoflag<xsl:value-of select="vCheckIdentite"/>.gif</xsl:variable>
		<xsl:variable name="vicoCheckCPVille">
			<xsl:value-of select="$XMLC_PictosPath"/>icoflag<xsl:value-of select="vCheckCPVille"/>.gif</xsl:variable>
		<xsl:variable name="vicoCheckTelDom">
			<xsl:value-of select="$XMLC_PictosPath"/>icoflag<xsl:value-of select="vCheckTelDom"/>.gif</xsl:variable>
		<xsl:variable name="vicoCheckMobile">
			<xsl:value-of select="$XMLC_PictosPath"/>icoflag<xsl:value-of select="vCheckMobile"/>.gif</xsl:variable>
		<xsl:variable name="vicoCheckEmail">
			<xsl:value-of select="$XMLC_PictosPath"/>icoflag<xsl:value-of select="vCheckEmail"/>.gif</xsl:variable>
		<xsl:variable name="voIcoRun">
											<xsl:choose>
												<xsl:when test="(/document/XMLC_Params/XMLC_NavigatorName = 'MSIE')">
													<xsl:value-of select="$XMLC_PictosPath"/>voRun.gif
												</xsl:when>
												<xsl:otherwise><xsl:value-of select="$XMLC_PictosPath"/>voNewRun.gif</xsl:otherwise>
											</xsl:choose>
		</xsl:variable>
		<xsl:variable name="paramRun">
											<xsl:choose>
												<xsl:when test="(/document/XMLC_Params/XMLC_NavigatorName = 'MSIE')">
													"MSIE"
												</xsl:when>
												<xsl:otherwise>""</xsl:otherwise>
											</xsl:choose>
		</xsl:variable>
			
		<tr class="{$clValue}" onmouseover="oldClass=this.className; this.className='{$sRowSelect}';" onmouseout="this.className=oldClass;">
			<td>
				<xsl:if test="sChassisDMS != sChassis and sChassisDMS != '' and (/document/XMLC_Params/XMLC_UserName != '')">
					<img title="Le Véhicule présente une anomalie de numéro de châssis sur ce document !!!" border="0" src="{$XMLC_PictosPath}Button_AlerterBell.gif"/>
				</xsl:if>
				<xsl:value-of select="sConseiller"/>
			</td>
			<td style="{$stSiteValue}">
				<xsl:value-of select="Site"/>
			</td>
			<td style="{$stValueDateDoc}">
				<xsl:value-of select="dateDocument"/>
			</td>
			<td align="center">
				<img border="0" src="{$vicoStatus}"/>
				<img border="0" src="{$vicoNFact}"/>
				<xsl:if test="CheckFrevo = '1' and idFrevo = 0">
					<img title="pas de lien Frevo pour ce Véhicule !!!" border="0" src="{$XMLC_PictosPath}Button_AlerterBell.gif"/>
					<img title="pas de lien Frevo pour ce Véhicule !!!" border="0" src="{$XMLC_PictosPath}Button_AlerterBell.gif"/>
					<img title="pas de lien Frevo pour ce Véhicule !!!" border="0" src="{$XMLC_PictosPath}Button_AlerterBell.gif"/>
				</xsl:if>
				<xsl:if test="idFrevo > 0 and false">
					<img title="lien Frevo OK pour ce Véhicule !!!" border="0" src="{$XMLC_PictosPath}button_test.gif"/>
				</xsl:if>
				<xsl:if test="idFrevo >0 ">
					<a href="#" onclick="javascript: llPopFormAxVO('FormVO', 10, {$vidFrevo}, {$paramRun}); return false;">
						<img title="pour accéder aux informations du Véhicule" border="0" src="{$voIcoRun}"/>
					</a>
				</xsl:if>
			</td>
			<td style="{$stFrevoValue}" onmouseover="ib_montre('{$vtxtNFact}'); return false;" onmouseout="ib_cache();" width="120px">
				<a href="ReportPDF?rptSelect=idSPL_Docs;3d;{$vidFact}&amp;rptName=Facture" target="_blank">
					<xsl:value-of select="AbbrDocu"/>
					<xsl:value-of select="AbbrInfo"/>-<xsl:value-of select="nDocument"/>
				</a>
			</td>
			<td style="{$stFrevoValue}">
				<xsl:if test="$tAuth = '1' or idClient !='0'">
					<a href="#" onclick="javascript: llPopFormAxVO('FormVO', 3, {$vidClient}, {$paramRun}); return false;">
						<img title="pour accéder aux informations du Client" border="0" src="{$voIcoRun}"/>
					</a>
				</xsl:if>
				<a href="#" onclick="javascript: getRapport('/action/?rptSelect=idSPL_Docs;3d;{$vidFact}&amp;rptName=Facture'); return false;" target="_blank">
					<xsl:value-of select="nClient"/> - 
					<xsl:value-of select="sClient"/>
				</a>
			</td>
			<td>&#160;&#160;&#160;<a href="{/document/Aliases/bdVODLL}CarFid?nClient={$vnClient}" target="_blank">
					<img title="afin d'accéder aux documents de ce client" border="0" src="{$vicoCheckImmat}"/>
					<img title="afin d'accéder aux documents de ce client" border="0" src="{$vicoCheckChassis}"/>
					<img title="afin d'accéder aux documents de ce client" border="0" src="{$vicoCheckIdentite}"/>
					<img title="afin d'accéder aux documents de ce client" border="0" src="{$vicoCheckCPVille}"/>
					<img title="afin d'accéder aux documents de ce client" border="0" src="{$vicoCheckTelDom}"/>
					<img title="afin d'accéder aux documents de ce client" border="0" src="{$vicoCheckMobile}"/>
					<img title="afin d'accéder aux documents de ce client" border="0" src="{$vicoCheckEmail}"/>
				</a>&#160;</td>
			<td style="{$stFrevoValue}">
				<xsl:if test="/document/OutParams/AffSel!='40' and /document/OutParams/AffSel!='41' ">
					<xsl:value-of select="sCP"/>
				</xsl:if>
				<xsl:if test="/document/OutParams/AffSel='40' or /document/OutParams/AffSel='41'">
					<xsl:value-of select="sImmatriculation"/>
				</xsl:if>
			</td>
			<td style="{$stFrevoValue}">
				<xsl:if test="/document/OutParams/AffSel!='40' and /document/OutParams/AffSel!='41' ">
					<xsl:value-of select="sVille"/>
				</xsl:if>
				<xsl:if test="/document/OutParams/AffSel='40' or /document/OutParams/AffSel='41'">
					<xsl:value-of select="sChassis"/>
				</xsl:if>
			</td>
		</tr>
	</xsl:template>
</xsl:stylesheet>
