<?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>
<xsl:import href="../../Common.xsl"></xsl:import>
<xsl:template match="/">
<xsl:apply-templates select="document"></xsl:apply-templates>
</xsl:template>
<xsl:template match="document">
<xsl:param name="RecordCount" select="@VOS/RowCount"></xsl:param>
<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"></META>
<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=3';
    }
  }
}

function PopFormAxVO(PopID, idVO) {
  if (popObj = getObjectById(PopID)) {
     var posScroll =f_scrollTop();
      ShowHide(PopID, 'WIDTH', 850, '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.TypeAffich3.value=aVal;
document.MainForm.submit(); 
return false;
}]]>
</script>
</xsl:with-param>
<xsl:with-param name="Title">List VD</xsl:with-param>
<xsl:with-param name="ToolbarButtonsLeft">
<ToolbarButton>
<xsl:call-template name="ToolButtonRefresh"></xsl:call-template>
</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"></xsl:call-template>
</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;"></iframe>
<img border="0" id="btnSelPrint" src="{$XMLC_PictosPath}button_print.gif" alt="Select Print Report"></img>
</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:call-template>
</xsl:with-param>
<xsl:with-param name="ActivePageName">ListVD</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"></img> Liste VO</a>
</Tab>
<Tab Name="ListVN">
<a href="{/document/Aliases/bdVODLL}ListVN?">
<img align="absmiddle" border="0" src="{$XMLC_PictosPath}ico_service.gif"></img> Liste VN</a>
</Tab>
<Tab Name="ListVD">
<a href="{/document/Aliases/bdVODLL}ListVD?">
<img align="absmiddle" border="0" src="{$XMLC_PictosPath}ico_service.gif"></img> Liste VD</a>
</Tab>
<Tab Name="About">
<a href="{/document/Aliases/bdVODLL}About">
<img align="absmiddle" border="0" src="{$XMLC_PictosPath}button_channels.gif"></img>A propos</a>
</Tab>
</xsl:with-param>
<xsl:with-param name="Body">
<form action="{/document/Aliases/bdVODLL}ListVD" name="MainForm" method="post">
<input type="hidden" name="ModePresent1" value="{/document/OutParams/MODEAFFICHAGE}"></input>
<input type="hidden" name="TypeAffich3" value="{/document/OutParams/AFFICHAGE}"></input>
<input type="hidden" name="SITE1" value="{/document/OutParams/SITE}"></input>
<input type="hidden" name="MARQUE1" value="{/document/OutParams/MARQUE}"></input>
<input type="hidden" name="MODELE1" value="{/document/OutParams/MODELE}"></input>
<input type="hidden" name="LIMPVENTE1" value="{/document/OutParams/LIMPVENTE}"></input>
<input type="hidden" name="LIMKMS1" value="{/document/OutParams/LIMKMS}"></input>
<input type="hidden" name="NBROWS1" value="{/document/OutParams/NBROWS}"></input>
<input type="hidden" name="ORDERFIELD" value="{/document/OutParams/ORDERFIELD}"></input>
</form>
<div id="vdivFormVO" class="BoxFrameVD" 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 ..."></img>
</button>Visualisation des données d'un VD<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; "></iframe>
</div>
<xsl:call-template name="xslc:ApplicationMessages"></xsl:call-template>
<xsl:apply-templates select="VOS"></xsl:apply-templates>
<xsl:call-template name="xslc:PoweredBy"></xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="VOS">
<xsl:param name="RecordCount" select="@RowCount"></xsl:param>
<xsl:variable name="vOrd" select="/document/OutParams/ORDERFIELD"></xsl:variable>
<xsl:variable name="vDLL">
<xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"></xsl:value-of>/</xsl:variable>
<xsl:variable name="vAction">
<xsl:value-of select="/document/Aliases/bdVODLL"></xsl:value-of>
<xsl:value-of select="/document/XMLC_Params/XMLC_Action"></xsl:value-of>
</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"></xsl:value-of>
</a>
</p>
</xsl:if>
<div id="zoneTAB">
<ul class="nicetab">
<li>
<a href="ListVO">Liste VO</a>
</li>
<li>
<a href="ListVN">Liste VN</a>
</li>
<li class="selected">
<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:attribute>
</xsl:if>
<xsl:value-of select="FilterName"></xsl:value-of>
</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.SITE1.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"></xsl:sort>
<option value="{Site}">
<xsl:if test="/document/OutParams/SITE=Site">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>
<xsl:value-of select="Site"></xsl:value-of>
</option>
</xsl:for-each>
</select>
</td>
<td width="50px" align="right">Marque : </td>
<td width="120px">
<select id="CBMARQUE" onchange="javascript: document.MainForm.MARQUE1.value=getObjectById('CBMARQUE').value; document.MainForm.MODELE1.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:attribute>
</xsl:if>
<xsl:value-of select="Marque"></xsl:value-of>
<xsl:if test="/document/XMLC_Params/XMLC_Authenticated != '0' "> (<xsl:value-of select="CptMarque"></xsl:value-of>)</xsl:if>
</option>
</xsl:for-each>
</select>
</td>
<td width="50px" align="right">Modèle : </td>
<td>
<select id="CBMODELE" onchange="javascript: document.MainForm.MARQUE1.value=''; document.MainForm.MODELE1.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:attribute>
</xsl:if>
<xsl:value-of select="Modele"></xsl:value-of>
<xsl:if test="/document/XMLC_Params/XMLC_Authenticated != '0' "> (<xsl:value-of select="CptModele"></xsl:value-of>)</xsl:if>
</option>
</xsl:for-each>
</select>
</td>
</tr>
<tr id="memdivFiltre" style="display: none">
<td width="65px" align="right">KMS : </td>
<td width="145px">
<select id="CBLIMKMS" onchange="javascript: document.MainForm.LIMKMS1.value=getObjectById('CBLIMKMS').value; goSubmit(); return false;" style="width:125px">
<option value="0"></option>
<option value="1" style="color:blue">
<xsl:if test="/document/OutParams/LIMKMS=1">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>moins de 20 000 km</option>
<option value="2" style="color:blue">
<xsl:if test="/document/OutParams/LIMKMS=2">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>de 20 à 50 000 km</option>
<option value="3" style="color:blue">
<xsl:if test="/document/OutParams/LIMKMS=3">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>de 50 à 90 000 km</option>
<option value="4" style="color:blue">
<xsl:if test="/document/OutParams/LIMKMS=4">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>plus de 90 000 km</option>
</select>
</td>
<td width="45px" align="right">Prix : </td>
<td colspan="5">
<select style="width:125px" id="CBLIMPVENTE" onchange="javascript: document.MainForm.LIMPVENTE1.value=getObjectById('CBLIMPVENTE').value; goSubmit(); return false;">
<option value="0"></option>
<option value="1" style="color:blue">
<xsl:if test="/document/OutParams/LIMPVENTE=1">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>moins de 10 000 euros</option>
<option value="2" style="color:blue">
<xsl:if test="/document/OutParams/LIMPVENTE=2">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>de 10 à 15 000 euros</option>
<option value="3" style="color:blue">
<xsl:if test="/document/OutParams/LIMPVENTE=3">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>de 15 à 20 000 euros</option>
<option value="4" style="color:blue">
<xsl:if test="/document/OutParams/LIMPVENTE=4">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>de 20 à 25 000 euros</option>
<option value="5" style="color:blue">
<xsl:if test="/document/OutParams/LIMPVENTE=5">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>plus de 25 000 euros</option>
</select>
</td>
</tr>
<tr>
<td width="65px" align="right">Affichage : </td>
<td width="145px">
<select id="CBMODEAFFICHAGE" style="width:110px" onchange="javascript: document.MainForm.ModePresent1.value=getObjectById('CBMODEAFFICHAGE').value; goSubmit(); return false;">
<option value="2">
<xsl:if test="/document/OutParams/MODEAFFICHAGE=2">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>Galerie des VD</option>
<option value="1">
<xsl:if test="/document/OutParams/MODEAFFICHAGE=1">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>Vue Détaillée</option>
<option value="0">
<xsl:if test="/document/OutParams/MODEAFFICHAGE=0">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>Tableau des VD</option>
</select>
</td>
<td width="45px" align="right">Ordre : </td>
<td width="145px">
<select id="CBORDERFIELD" style="width:110px" onchange="javascript: document.MainForm.ORDERFIELD.value=getObjectById('CBORDERFIELD').value; goSubmit(); return false;">
<option value="NVO">Numéro de VD</option>
<option value="DEnt">
<xsl:if test="/document/OutParams/ORDERFIELD='DEnt'">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>Date Entrée</option>
<option value="KMS">
<xsl:if test="/document/OutParams/ORDERFIELD='KMS'">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>Kilométrage</option>
<option value="MMod">
<xsl:if test="/document/OutParams/ORDERFIELD='MMod'">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>Marque-Modèle</option>
<option value="PVen">
<xsl:if test="/document/OutParams/ORDERFIELD='PVen'">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>Prix Vente</option>
<option value="Site">
<xsl:if test="/document/OutParams/ORDERFIELD='Site'">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>Site </option>
<option value="Statut">
<xsl:if test="/document/OutParams/ORDERFIELD='Statut'">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>Statut</option>
</select> - <a href="{/document/Aliases/bdVODLL}LISTVD?SETORDERFIELD={$vOrd}">
<xsl:if test="/document/OutParams/ORDERSENSE=''">
<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_top.gif"></img>
</xsl:if>
<xsl:if test="/document/OutParams/ORDERSENSE=' DESC'">
<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"></img>
</xsl:if>
</a>
</td>
<td colspan="3">VD/page : <input class="clFlatTextInput" id="NBROWS" size="4" onkeyup="javascript: document.MainForm.NBROWS1.value=getObjectById('NBROWS').value; onKeyTestCR(event); return false;" value="{/document/OutParams/NBROWS}" style="text-align: right"></input>, (<xsl:value-of select="$RecordCount"></xsl:value-of> VD sélectionnés). </td>
</tr>
</table>
</div>
<xsl:if test="/document/OutParams/MODEAFFICHAGE=2">
<div id="zoneVO">
<xsl:apply-templates select="VO"></xsl:apply-templates>
</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"></xsl:value-of>rowHeader_Gradient.gif');</xsl:attribute>
</xsl:if>
<td>Cliché</td>
<td>
<a href="{/document/Aliases/bdVODLL}LISTVD?SETORDERFIELD=NVO">N°VD <xsl:if test="/document/OutParams/ORDERFIELD='NVO'">
<xsl:if test="/document/OutParams/ORDERSENSE=''">
<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_top.gif"></img>
</xsl:if>
<xsl:if test="/document/OutParams/ORDERSENSE=' DESC'">
<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"></img>
</xsl:if>
</xsl:if>
</a>
</td>
<td>
<a href="{/document/Aliases/bdVODLL}LISTVD?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"></img>
</xsl:if>
<xsl:if test="/document/OutParams/ORDERSENSE=' DESC'">
<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"></img>
</xsl:if>
</xsl:if>
</a>
</td>
<td>
<a href="{/document/Aliases/bdVODLL}LISTVD?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"></img>
</xsl:if>
<xsl:if test="/document/OutParams/ORDERSENSE=' DESC'">
<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"></img>
</xsl:if>
</xsl:if>
</a>
</td>
<td>Couleur</td>
<td>Puiss. &amp; <a href="{/document/Aliases/bdVODLL}LISTVD?SETORDERFIELD=KMS">KMS <xsl:if test="/document/OutParams/ORDERFIELD='KMS'">
<xsl:if test="/document/OutParams/ORDERSENSE=''">
<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_top.gif"></img>
</xsl:if>
<xsl:if test="/document/OutParams/ORDERSENSE=' DESC'">
<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"></img>
</xsl:if>
</xsl:if>
</a>
</td>
<td>MEC</td>
<td align="center">Immat.</td>
<td>N° Châssis</td>
<td align="right">
<a href="{/document/Aliases/bdVODLL}LISTVD?SETORDERFIELD=PVen">Prix <xsl:if test="/document/OutParams/ORDERFIELD='PVen'">
<xsl:if test="/document/OutParams/ORDERSENSE=''">
<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_top.gif"></img>
</xsl:if>
<xsl:if test="/document/OutParams/ORDERSENSE=' DESC'">
<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"></img>
</xsl:if>
</xsl:if>
</a>
</td>
<td align="center">
<a href="{/document/Aliases/bdVODLL}LISTVD?SETORDERFIELD=Statut">Statut<xsl:if test="/document/OutParams/ORDERFIELD='Statut'">
<xsl:if test="/document/OutParams/ORDERSENSE=''">
<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_top.gif"></img>
</xsl:if>
<xsl:if test="/document/OutParams/ORDERSENSE=' DESC'">
<img border="0" src="{$XMLC_PictosPath}ico_stepdouble_bottom.gif"></img>
</xsl:if>
</xsl:if>
</a>
</td>
</tr>
</xsl:if>
<xsl:if test="/document/OutParams/MODEAFFICHAGE!=2">
<xsl:apply-templates select="VO"></xsl:apply-templates>
</xsl:if>
<xsl:call-template name="xslc:ListFooter">
<xsl:with-param name="colspan">22</xsl:with-param>
<xsl:with-param name="URLParams">&amp;ModePresent1=<xsl:value-of select="/document/OutParams/MODEAFFICHAGE"></xsl:value-of>&amp;TypeAffich3=<xsl:value-of select="/document/OutParams/AFFICHAGE"></xsl:value-of>
<xsl:if test="/document/OutParams/SITE!=''">&amp;SITE1=<xsl:value-of select="/document/OutParams/SITE"></xsl:value-of>
</xsl:if>
<xsl:if test="/document/OutParams/MARQUE!=''">&amp;MARQUE1=<xsl:value-of select="/document/OutParams/MARQUE"></xsl:value-of>
</xsl:if>
<xsl:if test="/document/OutParams/MODELE!=''">&amp;MODELE1=<xsl:value-of select="/document/OutParams/MODELE"></xsl:value-of>
</xsl:if>
<xsl:if test="/document/OutParams/LIMPVENTE!=''">&amp;LIMPVENTE1=<xsl:value-of select="/document/OutParams/LIMPVENTE"></xsl:value-of>
</xsl:if>
<xsl:if test="/document/OutParams/LIMKMS!=''">&amp;LIMKMS1=<xsl:value-of select="/document/OutParams/LIMKMS"></xsl:value-of>
</xsl:if>&amp;NBROWS1=<xsl:value-of select="/document/OutParams/NBROWS"></xsl:value-of>&amp;ORDERFIELD=<xsl:value-of select="/document/OutParams/ORDERFIELD"></xsl:value-of>
</xsl:with-param>
<xsl:with-param name="MaxPages">30</xsl:with-param>
</xsl:call-template>
</table>
</xsl:template>
<xsl:template match="VO">
<xsl:variable name="vConcession" select="Concession"></xsl:variable>
<xsl:variable name="vOwner" select="idOwner"></xsl:variable>
<xsl:variable name="vSite" select="Site"></xsl:variable>
<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="vTypeVO" select="TypeVO"></xsl:variable>
<xsl:variable name="vidTVO" select="idTVO"></xsl:variable>
<xsl:variable name="vDOrd" select="DOrd"></xsl:variable>
<xsl:variable name="vDes" select="Des"></xsl:variable>
<xsl:variable name="vMec" select="fMec"></xsl:variable>
<xsl:variable name="vCar" select="fCar"></xsl:variable>
<xsl:variable name="vEst" select="fEst"></xsl:variable>
<xsl:variable name="vPath">http://www.bluelinecompany.fr/voimages/</xsl:variable>
<xsl:variable name="clValue">
<xsl:choose>
<xsl:when test="position() mod 2 = 1">clRowLight</xsl:when>
<xsl:otherwise>clRowDark</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="sInfoVO">
<xsl:choose>
<xsl:when test="($vTypeVO = '3')">VD</xsl:when>
<xsl:otherwise>VO</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="sTypeVO">
<xsl:choose>
<xsl:when test="($vTypeVO = '1')">VO N°: </xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="($vTypeVO = '3')">VD N°: </xsl:when>
<xsl:otherwise>N°: </xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="NVO"></xsl:value-of>
</xsl:variable>
<xsl:variable name="sRowSelect">
<xsl:choose>
<xsl:when test="($vTypeVO = '3')">clRowSelectedVD</xsl:when>
<xsl:otherwise>clRowSelected</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="sImageTextBlock">
<xsl:choose>
<xsl:when test="($vTypeVO = '3')">imageTextBlockVD</xsl:when>
<xsl:otherwise>imageTextBlock</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="stValue">
<xsl:choose>
<xsl:when test="($vDOrd = '') and ($vDes = 'Particuliers')"> font-style:italic; font-weight:bold; color:blue</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$vDOrd = '' and ($vDes != 'Particuliers')"> font-style:italic; font-weight:bold; color:black</xsl:when>
<xsl:otherwise> font-style:italic; </xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="vIma">
<xsl:if test="nIma!=''">
<xsl:value-of select="$vPath"></xsl:value-of>
<xsl:value-of select="nIma"></xsl:value-of>m.jpg</xsl:if>
<xsl:if test="nIma=''">
<xsl:value-of select="$vPath"></xsl:value-of>nophoto.jpg</xsl:if>
</xsl:variable>
<xsl:variable name="vInfo">
<xsl:value-of select="iMar"></xsl:value-of> - <xsl:value-of select="aMod"></xsl:value-of>
</xsl:variable>
<xsl:if test="/document/OutParams/MODEAFFICHAGE=2">
<div>
<div class="VOBlocSequence">
<div class="{$sImageTextBlock} even">
<a href="{/document/Aliases/bdVODLL}ReportPDF?rptSelect=idVO;3d;{idVO}&amp;rptName={$sInfoVO} - Fiche Commerciale" target="_blank">
<p class="image" align="center">
<img src="{$vIma}" border="0" title="{$vInfo}" width="120" height="90"></img>
</p>
<h4 align="center" class="link">
<xsl:value-of select="$sTypeVO"></xsl:value-of>
<br></br>
<xsl:value-of select="iMar"></xsl:value-of> - <xsl:value-of select="aMod"></xsl:value-of>
<br></br>
<xsl:value-of select="pVen"></xsl:value-of> Euros <xsl:if test="$tAuth = '1' ">
<a href="#" onclick="javascript: PopFormAxVO('FormVO', {$vidTVO}); return false;">
<img alt="Modification du VD" border="0" src="{$XMLC_PictosPath}ico_run.gif"></img>
</a>
</xsl:if>
</h4>
<p class="description" align="center">
<xsl:value-of select="iMod"></xsl:value-of>
<br></br>
<br></br>Site: <xsl:value-of select="Site"></xsl:value-of>
<br></br>MEC: <xsl:value-of select="MEC"></xsl:value-of>
<br></br>
<xsl:value-of select="KMS"></xsl:value-of> km - <xsl:value-of select="CV"></xsl:value-of> cv<br></br>Couleur: <xsl:value-of select="iCou"></xsl:value-of>
<br></br>
<xsl:value-of select="Statut"></xsl:value-of>
<br></br>
<xsl:value-of select="Energie"></xsl:value-of> - <xsl:value-of select="BoiteVitesse"></xsl:value-of>
</p>
</a>
</div>
</div>
</div>
</xsl:if>
<xsl:if test="/document/OutParams/MODEAFFICHAGE=1">
<tr class="{$clValue}" onmouseover="oldClass=this.className; this.className='{$sRowSelect}';" onmouseout="this.className=oldClass;">
<td width="135px">
<img border="0" src="{$vIma}" height="90" width="120"></img>
<xsl:if test="$tAuth = '1' ">
<a href="#" onclick="javascript: PopFormAxVO('FormVO', {$vidTVO}); return false;">
<img alt="Modification du VD" border="0" src="{$XMLC_PictosPath}ico_run.gif"></img>
</a>
</xsl:if>
<xsl:if test="$tAuth != '1' ">
<a href="{/document/Aliases/bdVODLL}ListVD">
<img alt="Identifiez vous pour accéder au VD" border="0" src="{$XMLC_PictosPath}ico_noaccess.gif"></img>
</a>
</xsl:if>
</td>
<td style="{$stValue}" valign="top">
<table width="100%">
<tr>
<td style="{$stValue}">
<a href="{/document/Aliases/bdVODLL}ReportPDF?rptSelect=idVO;3d;{idVO}&amp;rptName={$sInfoVO} - Fiche Commerciale" target="_blank">
<xsl:value-of select="iMar"></xsl:value-of> - <xsl:value-of select="iMod"></xsl:value-of>
</a>
</td>
</tr>
</table>
<table width="100%">
<tr>
<td width="25%" align="left">
<xsl:value-of select="$sTypeVO"></xsl:value-of>
</td>
<td width="25%" align="left">Prix : <xsl:value-of select="pVen"></xsl:value-of> Euros</td>
<td width="25%" align="left">MEC : <xsl:value-of select="MEC"></xsl:value-of>
</td>
<td width="25%" align="left">
<xsl:value-of select="CV"></xsl:value-of> cv - <xsl:value-of select="KMS"></xsl:value-of> km</td>
</tr>
</table>
<table width="100%">
<tr>
<td width="25%" align="left"> Site: <xsl:value-of select="Site"></xsl:value-of>
<br></br>Couleur: <xsl:value-of select="iCou"></xsl:value-of>
</td>
<td width="25%" align="left">Statut: <xsl:value-of select="Statut"></xsl:value-of>
</td>
<td width="50%" align="left">Immatriculation: <xsl:value-of select="iImm"></xsl:value-of>
<br></br>N° Châssis: <xsl:value-of select="iCha"></xsl:value-of>
</td>
<td></td>
</tr>
</table>
</td>
</tr>
</xsl:if>
<xsl:if test="/document/OutParams/MODEAFFICHAGE=0">
<tr class="{$clValue}" onmouseover="oldClass=this.className; this.className='{$sRowSelect}';" onmouseout="this.className=oldClass;">
<td>
<img border="0" src="{$vIma}" height="30" width="40"></img>
<xsl:if test="$tAuth = '1' ">
<a href="#" onclick="javascript: PopFormAxVO('FormVO', {$vidTVO}); return false;">
<img alt="Modification du VD" border="0" src="{$XMLC_PictosPath}ico_run.gif"></img>
</a>
</xsl:if>
<xsl:if test="$tAuth != '1' ">
<a href="{/document/Aliases/bdVODLL}ListVD">
<img alt="Identifiez vous pour accéder au VD" border="0" src="{$XMLC_PictosPath}ico_noaccess.gif"></img>
</a>
</xsl:if>
</td>
<td style="{$stValue}">
<a href="{/document/Aliases/bdVODLL}ReportPDF?rptSelect=idVO;3d;{idVO}&amp;rptName={$sInfoVO} - Fiche Commerciale" target="_blank">
<xsl:value-of select="NVO"></xsl:value-of>
</a>
</td>
<td style="{$stValue}">
<xsl:value-of select="Site"></xsl:value-of>
</td>
<td style="{$stValue}">
<xsl:value-of select="iMar"></xsl:value-of> - <xsl:value-of select="iMod"></xsl:value-of>
</td>
<td>
<xsl:value-of select="iCou"></xsl:value-of>
</td>
<td>
<xsl:value-of select="CV"></xsl:value-of> cv - <xsl:value-of select="KMS"></xsl:value-of> km</td>
<td>
<xsl:value-of select="MEC"></xsl:value-of>
</td>
<td align="center">
<xsl:value-of select="iImm"></xsl:value-of>
</td>
<td align="left">
<xsl:value-of select="iCha"></xsl:value-of>
</td>
<td align="right">
<xsl:value-of select="pVen"></xsl:value-of>
</td>
<td align="center">
<xsl:value-of select="Statut"></xsl:value-of>
</td>
</tr>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
