<?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="@VNS/RowCount"/>
		<xsl:call-template name="xslc:Page">
			<xsl:with-param name="DisplayTabControl">0</xsl:with-param>
			<xsl:with-param name="DisplayTabs">0</xsl:with-param>
			<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;
}

function onKeyTestCR(e) {
  var aKey = window.event ? e.keyCode : e.which;
  if (aKey == 13) {
    goSubmit(); 
    }
}

]]>// ==========================================================================
// 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', 400, 'HEIGHT', 220); 
      if (flagMoved!=-1) 
       { 
        flagMoved=-1; 
        popObj.style.top = 15;
        popObj.style.left = GetObjectPosX(btnID)-405;
       };
      popObj.src = XMLC_BaseHRef+'SelReport?typeVO=2';
    }
  }
}

function PopFormAxVO(PopID, idVO) {
  if (popObj = getObjectById(PopID)) {
     var posScroll =f_scrollTop();
      ShowHide(PopID, 'WIDTH', 860, 'HEIGHT', 685); 
      popObj.style.top = posScroll +15;
      popObj.style.left = 55;
      popObj.style.align = 'center';
      popObj.src = XMLC_BaseHRef+'FormAxVO?idTVO='+idVO;
  }
}
</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[// ==========================================================================
// Afficher la fenêtre popup pour la saisie des infos VO
// ==========================================================================
function PopFormAxVO(PopID, idVO) {
var posScroll =f_scrollTop();
   vidPaneID = document.getElementById('vdivFormVO'); 
   vidPaneID.style.top=posScroll +15;
   vidPaneID.style.left='145px';                    
//   vidPaneID.style.align = 'center';
  ShowHideForm(vidPaneID);
  if (popObj = getObjectById(PopID)) {
      popObj.style.top = 18; //posScroll +15;
      popObj.style.left = 0; //55;
      popObj.style.width = 830;
      popObj.style.height = 660;
      popObj.src = XMLC_BaseHRef+'FormAxVO?idTVO='+idVO;
  }
}]]>
				</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=="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 goSubmit() {
 aVal=parseInt(getObjectById('CBTYPEAFFICHAGE').value);
 if (aVal==-1) {
      SetFocus(getObjectById('CBTYPEAFFICHAGE'));
      return false
   } ;

document.MainForm.TypeAffich2.value=aVal;
document.MainForm.submit(); 
return false;
}]]>
				</script>
			</xsl:with-param>
			<xsl:with-param name="Title">List VN</xsl:with-param>
			<xsl:with-param name="ToolbarButtonsLeft">
				<ToolbarButton>
					<xsl:call-template name="ToolButtonRefresh"/>
				</ToolbarButton>
			</xsl:with-param>
			<xsl:with-param name="ToolbarButtonsRight">
				<xsl:if test="/document/XMLC_Params/XMLC_Authenticated != '0' and /document/XMLC_Params/XMLC_Supervisor = '1' ">
					<ToolbarButton>
						<xsl:call-template name="ButtonListUsers"/>
					</ToolbarButton>
				</xsl:if>
				<ToolbarButton>
					<xsl:call-template name="xslc:ToolbarButton">
						<xsl:with-param name="Caption">
							<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;"/>
							<img border="0" id="btnSelPrint" src="{$XMLC_PictosPath}button_print.gif" alt="Select Print Report"/>
						</xsl:with-param>
						<xsl:with-param name="OnClick">javascript: PopSelReport('SelPrint', 'btnSelPrint'); return false;</xsl:with-param>
					</xsl:call-template>
				</ToolbarButton>
				<xsl:call-template name="CommonToolbarButtonsRight"/>
			</xsl:with-param>
			<xsl:with-param name="ActivePageName">ListVN</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="ListVD">
					<a href="{/document/Aliases/bdVODLL}ListVD?">
						<img align="absmiddle" border="0" src="{$XMLC_PictosPath}ico_service.gif"/> Liste VD</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}ListVN" name="MainForm" method="post">
					<input type="hidden" name="ModePresent2" value="{/document/OutParams/MODEAFFICHAGE}"/>
					<input type="hidden" name="TypeAffich2" value="{/document/OutParams/AFFICHAGE}"/>
					<input type="hidden" name="SITE2" value="{/document/OutParams/SITE}"/>
					<input type="hidden" name="MARQUE2" value="{/document/OutParams/MARQUE}"/>
					<input type="hidden" name="MODELE2" value="{/document/OutParams/MODELE}"/>
					<input type="hidden" name="NBROWS2" value="{/document/OutParams/NBROWS}"/>
					<input type="hidden" name="ORDERFIELD2" 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" alt="pour quitter sans enregistrer ..."/>
					</button>Visualisation des données d'un VN<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="VNS"/>
				<xsl:call-template name="xslc:PoweredBy"/>
			</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template match="VNS">
		<xsl:param name="RecordCount" select="@RowCount"/>
		<xsl:variable name="vOrd" select="/document/OutParams/ORDERFIELD"/>
		<div id="zoneTAB">
			<ul class="nicetab">
				<li>
					<a href="ListVO">Liste VO</a>
				</li>
				<li class="selected">
					<a href="ListVN">Liste VN</a>
				</li>
				<li>
					<a href="ListVD">Liste VD</a>
				</li>
				<li>
					<a href="About">A Propos</a>
				</li>
			</ul>
		</div>
		<div id="zoneTOP">
			<table width="100%">
				<tr>
					<td width="65px" align="right">Filtre : </td>
					<td width="145px">
						<select id="CBTYPEAFFICHAGE" style="width:125px" onchange="javascript: goSubmit(); return false;">
							<xsl:for-each select="/document/ListFiltersS/ListFilters">
								<option value="{idAffichage}">
									<xsl:if test="idAffichage='-1'">
										<xsl:attribute name="style">color:#A0A0A0</xsl:attribute>
									</xsl:if>
									<xsl:if test="/document/OutParams/AFFICHAGE=idAffichage">
										<xsl:attribute name="selected"/>
									</xsl:if>
									<xsl:value-of select="FilterName"/>
								</option>
							</xsl:for-each>
						</select>
					</td>
					<td width="45px" align="right">Site : </td>
					<td width="145px">
						<select id="CBSITE" style="width:125px" onchange="javascript: document.MainForm.SITE2.value=getObjectById('CBSITE').value; goSubmit(); return false;">
							<option value="">
								<xsl:if test="/document/OutParams/SITE=''">Choix Site</xsl:if>
								<xsl:if test="/document/OutParams/SITE!=''">Tous Sites</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>
					</td>
					<td width="50px" align="right">Marque : </td>
					<td width="120px">
						<select id="CBMARQUE" onchange="javascript: document.MainForm.MARQUE2.value=getObjectById('CBMARQUE').value; document.MainForm.MODELE2.value=''; goSubmit() ; return false;" style="width:110px">
							<option value="">
								<xsl:if test="/document/OutParams/MARQUE=''">Choix Marque</xsl:if>
								<xsl:if test="/document/OutParams/MARQUE!=''">Toutes Marques</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"/>
									<xsl:if test="/document/XMLC_Params/XMLC_Authenticated != '0' "> (<xsl:value-of select="CptMarque"/>)</xsl:if>
								</option>
							</xsl:for-each>
						</select>
					</td>
					<td width="50px" align="right">Modèle : </td>
					<td>
						<select id="CBMODELE" onchange="javascript: document.MainForm.MARQUE2.value=''; document.MainForm.MODELE2.value=getObjectById('CBMODELE').value; goSubmit(); return false;" style="width:110px">
							<option value="">
								<xsl:if test="/document/OutParams/MODELE=''">Choix Modèle</xsl:if>
								<xsl:if test="/document/OutParams/MODELE!=''">Tous Modèles</xsl:if>
							</option>
							<xsl:for-each select="/document/ListMODELES/ListMODELE">
								<option value="{Modele}">
									<xsl:if test="/document/OutParams/MODELE=Modele">
										<xsl:attribute name="selected"/>
									</xsl:if>
									<xsl:value-of select="Modele"/>
									<xsl:if test="/document/XMLC_Params/XMLC_Authenticated != '0' "> (<xsl:value-of select="CptModele"/>)</xsl:if>
								</option>
							</xsl:for-each>
						</select>
					</td>
				</tr>
				<tr>
					<td width="65px" align="right">Affichage : </td>
					<td width="145px">
						<select id="CBMODEAFFICHAGE" style="width:110px" onchange="javascript: document.MainForm.ModePresent2.value=getObjectById('CBMODEAFFICHAGE').value; goSubmit(); return false;">
							<option value="1">
								<xsl:if test="/document/OutParams/MODEAFFICHAGE=1">
									<xsl:attribute name="selected"/>
								</xsl:if>Vue Détaillée</option>
							<option value="0">
								<xsl:if test="/document/OutParams/MODEAFFICHAGE=0">
									<xsl:attribute name="selected"/>
								</xsl:if>Tableau des VN</option>
						</select>
					</td>
					<td width="45px" align="right">Ordre : </td>
					<td width="145px">
						<select id="CBORDERFIELD" style="width:110px" onchange="javascript: document.MainForm.ORDERFIELD2.value=getObjectById('CBORDERFIELD').value; goSubmit(); return false;">
							<option value="NVN">Numéro de VN</option>
							<option value="DOrd">
								<xsl:if test="/document/OutParams/ORDERFIELD='DOrd'">
									<xsl:attribute name="selected"/>
								</xsl:if>Date Ordre</option>
							<option value="MMod">
								<xsl:if test="/document/OutParams/ORDERFIELD='MMod'">
									<xsl:attribute name="selected"/>
								</xsl:if>Marque-Modèle</option>
							<option value="Site">
								<xsl:if test="/document/OutParams/ORDERFIELD='Site'">
									<xsl:attribute name="selected"/>
								</xsl:if>Site </option>
							<option value="DLTh">
								<xsl:if test="/document/OutParams/ORDERFIELD='DLTh'">
									<xsl:attribute name="selected"/>
								</xsl:if>Date Livraison Théorique</option>
							<option value="DLiv">
								<xsl:if test="/document/OutParams/ORDERFIELD='DLiv'">
									<xsl:attribute name="selected"/>
								</xsl:if>Date Livraison</option>
							<option value="nVen">
								<xsl:if test="/document/OutParams/ORDERFIELD='nVen'">
									<xsl:attribute name="selected"/>
								</xsl:if>Vendeur</option>
							<option value="nAch">
								<xsl:if test="/document/OutParams/ORDERFIELD='nAch'">
									<xsl:attribute name="selected"/>
								</xsl:if>Acheteur</option>
							<option value="CP">
								<xsl:if test="/document/OutParams/ORDERFIELD='CP'">
									<xsl:attribute name="selected"/>
								</xsl:if>Code Postal</option>
						</select> - <a href="{/document/Aliases/bdVODLL}ListVN?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=' DESC'">
								<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"/>
							</xsl:if>
						</a>
					</td>
					<td colspan="3">VN/page : <input class="clFlatTextInput" id="NBROWS" size="4" onkeyup="javascript: document.MainForm.NBROWS2.value=getObjectById('NBROWS').value; onKeyTestCR(event); return false;" value="{/document/OutParams/NBROWS}" style="text-align: right"/>, (<xsl:value-of select="$RecordCount"/> VN sélectionnés). </td>
				</tr>
			</table>
		</div>
		<xsl:if test="/document/OutParams/MODEAFFICHAGE=2">
			<div id="zoneVO">
				<xsl:apply-templates select="VN"/>
			</div>
		</xsl:if>
		<table border="0" class="clFlatTable" width="100%">
			<xsl:if test="/document/OutParams/MODEAFFICHAGE=0">
				<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}ListVN?SETORDERFIELD=NVN">N°VN <xsl:if test="/document/OutParams/ORDERFIELD='NVN'">
								<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}ListVN?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}ListVN?SETORDERFIELD=DOrd">Date Ordre<xsl:if test="/document/OutParams/ORDERFIELD='DOrd'">
								<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}ListVN?SETORDERFIELD=nVen">Vendeur<xsl:if test="/document/OutParams/ORDERFIELD='nVen'">
								<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}ListVN?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>
						<a href="{/document/Aliases/bdVODLL}ListVN?SETORDERFIELD=nAch">Acheteur<xsl:if test="/document/OutParams/ORDERFIELD='nAch'">
								<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}ListVN?SETORDERFIELD=CP">Code Postal<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=' DESC'">
									<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"/>
								</xsl:if>
							</xsl:if>
						</a>
					</td>
					<td align="center">
						<a href="{/document/Aliases/bdVODLL}ListVN?SETORDERFIELD=DLTh">Livrable le<xsl:if test="/document/OutParams/ORDERFIELD='DLTh'">
								<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 align="center">
						<a href="{/document/Aliases/bdVODLL}ListVN?SETORDERFIELD=DLiv">Livré le<xsl:if test="/document/OutParams/ORDERFIELD='DLiv'">
								<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 align="center">Financement</td>
				</tr>
			</xsl:if>
			<xsl:if test="/document/OutParams/MODEAFFICHAGE!=2">
				<xsl:apply-templates select="VN"/>
			</xsl:if>
			<xsl:call-template name="xslc:ListFooter">
				<xsl:with-param name="colspan">22</xsl:with-param>
				<xsl:with-param name="URLParams">&amp;ModePresent2=<xsl:value-of select="/document/OutParams/MODEAFFICHAGE"/>&amp;TypeAffich2=<xsl:value-of select="/document/OutParams/AFFICHAGE"/>
					<xsl:if test="/document/OutParams/SITE!=''">&amp;SITE2=<xsl:value-of select="/document/OutParams/SITE"/>
					</xsl:if>
					<xsl:if test="/document/OutParams/MARQUE!=''">&amp;MARQUE2=<xsl:value-of select="/document/OutParams/MARQUE"/>
					</xsl:if>
					<xsl:if test="/document/OutParams/MODELE!=''">&amp;MODELE=<xsl:value-of select="/document/OutParams/MODELE"/>
					</xsl:if>&amp;NBROWS2=<xsl:value-of select="/document/OutParams/NBROWS"/>&amp;ORDERFIELD2=<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="VN">
		<xsl:variable name="vConcession" select="Concession"/>
		<xsl:variable name="vOwner" select="idOwner"/>
		<xsl:variable name="vSite" select="Site"/>
		<xsl:variable name="tAuth1">
			<xsl:choose>
				<xsl:when test="/document/XMLC_Params/UserConcession = $vConcession">
					<xsl:choose>
						<xsl:when test="/document/XMLC_Params/UserSite = $vSite">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' ">
					<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="vidTVO" select="idTVO"/>
		<xsl:variable name="vDAnn" select="DAnn"/>
		<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="($vDAnn != '')"> font-style:italic; font-weight:bold; color:red</xsl:when>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="vInfo">
			<xsl:value-of select="iMar"/> - <xsl:value-of select="aMod"/> - <xsl:value-of select="aVer"/>
		</xsl:variable>
		<xsl:if test="/document/OutParams/MODEAFFICHAGE=2">
			<div class="VOBlocSequence">
				<div class="imageTextBlock even">
					<a href="{/document/Aliases/bdVODLL}ReportPDF?rptSelect=idVN;3d;{idVN}&amp;rptName=VN - Fiche Commerciale" target="_blank">
						<h4 align="center" class="link">VN N°: <xsl:value-of select="NVN"/>
							<br/>
							<xsl:value-of select="iMar"/> - <xsl:value-of select="aMod"/> - <xsl:value-of select="aVer"/>
						</h4>
						<p class="description" align="center">
							<xsl:value-of select="iMod"/>
							<br/>
							<br/>Site: <xsl:value-of select="Site"/>
							<br/>MEC: <xsl:value-of select="MEC"/>
							<br/>
							<xsl:value-of select="KMS"/> km - <xsl:value-of select="CV"/> cv<br/>Couleur: <xsl:value-of select="iCou"/>
							<br/>
							<xsl:value-of select="dGar"/>
							<br/>
							<xsl:value-of select="Energie"/> - <xsl:value-of select="BoiteVitesse"/>
						</p>
					</a>
				</div>
			</div>
		</xsl:if>
		<xsl:if test="/document/OutParams/MODEAFFICHAGE=1">
			<tr class="{$clValue}" onmouseover="oldClass=this.className; this.className='clRowSelected';" onmouseout="this.className=oldClass;">
				<td style="{$stValue}" valign="top">
					<table width="100%">
						<tr>
							<td width="25%" style="{$stValue}">
								<xsl:value-of select="iMar"/> - <xsl:value-of select="aMod"/> - <xsl:value-of select="aVer"/>
							</td>
							<td width="25%">Date Ordre : <xsl:value-of select="DOrd"/>
							</td>
							<td width="25%">Vendeur : <xsl:value-of select="nVen"/>
							</td>
							<td width="25%"/>
						</tr>
						<tr>
							<td style="{$stValue}" align="left">VN N° : <xsl:value-of select="NVN"/>
								<xsl:if test="$tAuth = '1' ">
									<a href="#" onclick="javascript: PopFormAxVO('FormVO', {$vidTVO}); return false;">
										<img alt="Modification du VN" border="0" src="{$XMLC_PictosPath}ico_run.gif"/>
									</a>
								</xsl:if>
								<xsl:if test="$tAuth != '1' ">
									<a href="{/document/Aliases/bdVODLL}ListVN">
										<img alt="Identifiez vous pour accéder au VN" border="0" src="{$XMLC_PictosPath}ico_noaccess.gif"/>
									</a>
								</xsl:if>
							</td>
							<td align="left">Date Livr.Théo. : <xsl:value-of select="DLTh"/>
							</td>
							<td align="left">Acheteur : <xsl:value-of select="nAch"/>
							</td>
							<td align="left"/>
						</tr>
						<tr>
							<td style="{$stValue}" width="25%" align="left"> Site: <xsl:value-of select="Site"/>
							</td>
							<xsl:choose>
								<xsl:when test="($vDAnn != '')">
									<td style="{$stValue}" width="25%" align="left">Annulation : <xsl:value-of select="DAnn"/>
									</td>
								</xsl:when>
								<xsl:otherwise>
									<td width="25%" align="left">Date Livraison : <xsl:value-of select="DLiv"/>
									</td>
								</xsl:otherwise>
							</xsl:choose>
							<td width="50%" align="left">CP : <xsl:value-of select="CP"/>
							</td>
							<td/>
						</tr>
					</table>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="/document/OutParams/MODEAFFICHAGE=0">
			<tr class="{$clValue}" onmouseover="oldClass=this.className; this.className='clRowSelected';" onmouseout="this.className=oldClass;">
				<td style="{$stValue}">
					<xsl:value-of select="NVN"/>
					<xsl:if test="$tAuth = '1' ">
						<a href="#" onclick="javascript: PopFormAxVO('FormVO', {$vidTVO}); return false;">
							<img alt="Modification du VN" border="0" src="{$XMLC_PictosPath}ico_run.gif"/>
						</a>
					</xsl:if>
					<xsl:if test="$tAuth != '1' ">
						<a href="{/document/Aliases/bdVODLL}ListVN">
							<img alt="Identifiez vous pour accéder au VN" border="0" src="{$XMLC_PictosPath}ico_noaccess.gif"/>
						</a>
					</xsl:if>
				</td>
				<td style="{$stValue}">
					<xsl:value-of select="Site"/>
				</td>
				<td>
					<xsl:value-of select="DOrd"/>
				</td>
				<td>
					<xsl:value-of select="nVen"/>
				</td>
				<td style="{$stValue}">
					<xsl:value-of select="iMar"/> - <xsl:value-of select="aMod"/> - <xsl:value-of select="aVer"/>
				</td>
				<td>
					<xsl:value-of select="nAch"/>
				</td>
				<td align="left">
					<xsl:value-of select="CP"/>
				</td>
				<td align="center">
					<xsl:value-of select="DLTh"/>
				</td>
				<td align="center">
					<xsl:value-of select="DLiv"/>
				</td>
				<td align="center">
					<xsl:value-of select="tFin"/>
				</td>
			</tr>
		</xsl:if>
	</xsl:template>
</xsl:stylesheet>
