<?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">
<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="@LCS/RowCount"></xsl:param>
<xsl:call-template name="xslc:Page">
<xsl:with-param name="DisplayTabControl">0</xsl:with-param>
<xsl:with-param name="BodyAttributes">
<Attributes onload="checkTopLevel();"></Attributes>
</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:VOActionPanel">
<xsl:with-param name="Expanded">
<xsl:if test="/document/OutParams/AmInfo='TypeAffich4'">1</xsl:if>
<xsl:if test="/document/OutParams/AmInfo!='TypeAffich4'">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:value-of>
</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/LIMDP1!='' or /document/OutParams/LIMDP2!='' or /document/OutParams/AffDest>=100">javascript: SetField('MainForm', 'LIMDP2', ''); SetField('MainForm', 'LIMDP1', ''); SetField('MainForm', 'TypeAffich4',<xsl:value-of select="/document/OutParams/AffSel"></xsl:value-of>); 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/cVENDEUR!='') or 
(/document/OutParams/AffDest>=100 and /document/ListFiltersS/ListFilters[idAffichage=/document/OutParams/AffSel]/AttrDest='1')">javascript: goAndSubmit('TypeAffich4','reset'); return false;</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:value-of>
</xsl:variable>
<xsl:variable name="idAffDest">
<xsl:if test="/document/OutParams/AffDest=''">0</xsl:if>
<xsl:value-of select="/document/OutParams/AffDest"></xsl:value-of>
</xsl:variable>
<table cellpadding="2" cellspacing="0">
<xsl:for-each select="/document/ListFiltersS/ListFilters">
<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"></xsl:value-of>; 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:value-of>; </xsl:if>
</xsl:if>
</xsl:variable>
<xsl:variable name="idAff">
<xsl:value-of select="idAffichage"></xsl:value-of>
</xsl:variable>
<xsl:if test="idAffichage!='-2'">
<tr>
<td class="apLink" onmouseover="oldClass=this.className; this.className='{$apOver}';" onmouseout="this.className=oldClass;" onclick="javascript: goAndSubmit('TypeAffich4',{$idAff}+{$idAffDest}); return false;" 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"></img> - </xsl:if>
<xsl:value-of select="FilterName"></xsl:value-of>
</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:value-of>
</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'">
<table>
<tr>
<td style="padding: 0px 0px 0px 0px; width:200px">
<img alt="" border="0" src="{$XMLC_SkinPath}actionpanel/separator_dark.gif" height="1" width="100%"></img>
</td>
</tr>
</table>
<form name="idzDateForm">
<table>
<tr>
<td colspan="2" align="right" style="font-size:10px">Spécifiez les dates : <a href="." onclick="SetField('MainForm', 'LIMDP2', GetField('idzDateForm', 'DATEFieldFin')); 
SetField('MainForm', 'LIMDP1', GetField('idzDateForm', 'DATEFieldDeb')); 
goAndSubmit('TypeAffich1','slider'); return false;">
<img border="0" alt="appliquez le filtre selon la date de prochaine relance" src="{$XMLC_PictosPath}ico_run.gif"></img>
</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/LIMDP1}" onkeypress="return handleKeyPress(event);"></input> - <a href="." onclick="PopCalendar('CalendarDeb', 'DATEFieldDeb', 'idzDateForm'); return false;">
<img border="0" alt="Choisissez une date de Début" src="{$XMLC_PictosPath}ico_planning.gif"></img>
</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;"></iframe>
</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/LIMDP2}" onkeypress="return handleKeyPress(event);"></input> - <a href="." onclick="PopCalendar('CalendarFin', 'DATEFieldFin', 'idzDateForm'); return false;">
<img border="0" alt="Choisissez une date de Fin" src="{$XMLC_PictosPath}ico_planning.gif"></img>
</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;"></iframe>
</td>
</tr>
</table>
</form>
</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='SITE4'">1</xsl:if>
<xsl:if test="/document/OutParams/AmInfo!='SITE4'">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:value-of>
</xsl:if>
</xsl:with-param>
<xsl:with-param name="TitleActionReset">
<xsl:if test="/document/OutParams/SITE!=''">javascript: goAndSubmit('SITE4','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:sort>
<xsl:variable name="apInfo">
<xsl:value-of select="Site"></xsl:value-of>
</xsl:variable>
<xsl:variable name="apSelect">
<xsl:if test="Selected='1'">apRowSelected</xsl:if>
<xsl:if test="Selected!='1'">apLink</xsl:if>
</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('SITE4','{$apInfo}'); return false;" style="margin-left:8px; {$apAttr} width:200px; ">
<xsl:if test="Selected='1'">
<img src="{$XMLC_PictosPath}ico_run.gif"></img> - </xsl:if>
<xsl:value-of select="Site"></xsl:value-of>
</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='cVENDEUR'">1</xsl:if>
<xsl:if test="/document/OutParams/AmInfo!='cVENDEUR'">0</xsl:if>
</xsl:with-param>
<xsl:with-param name="Dark">1</xsl:with-param>
<xsl:with-param name="Name">FiltVendeur</xsl:with-param>
<xsl:with-param name="Title">Commercial</xsl:with-param>
<xsl:with-param name="TitleActionReset">
<xsl:if test="/document/OutParams/cVENDEUR !=''">javascript: goAndSubmit('cVENDEUR','top'); return false;</xsl:if>
</xsl:with-param>
<xsl:with-param name="Content">
<xsl:variable name="idAffSel">
<xsl:if test="/document/OutParams/cVENDEUR=''">0</xsl:if>
<xsl:value-of select="/document/OutParams/cVENDEUR"></xsl:value-of>
</xsl:variable>
<table cellpadding="2" cellspacing="0">
<xsl:for-each select="/document/ListVENDEURS/ListVENDEUR">
<xsl:sort select="nVendeur"></xsl:sort>
<xsl:variable name="apSelect">
<xsl:if test="idCom=/document/OutParams/cVENDEUR">apRowSelected</xsl:if>
<xsl:if test="idCom!=/document/OutParams/cVENDEUR">apLink</xsl:if>
</xsl:variable>
<xsl:variable name="apOver">
<xsl:if test="idCom=/document/OutParams/cVENDEUR">ap2RowSelected</xsl:if>
<xsl:if test="idCom!=/document/OutParams/cVENDEUR">apRowSelected</xsl:if>
</xsl:variable>
<xsl:variable name="apAttr">
<xsl:if test="/document/OutParams/cVENDEUR=idCom">color:#3f3dfd; </xsl:if>
<xsl:if test="/document/OutParams/cVENDEUR!=idCom">color:#145aa2; </xsl:if>
</xsl:variable>
<xsl:variable name="idAff">
<xsl:value-of select="idCom"></xsl:value-of>
</xsl:variable>
<tr>
<td class="{$apSelect}" onmouseover="oldClass=this.className; this.className='{$apOver}';" onmouseout="this.className=oldClass;" onclick="javascript: goAndSubmit('cVENDEUR',{$idAff}); return false;" align="left" style="{$apAttr} width:200px;">
<xsl:if test="/document/OutParams/cVENDEUR=idCom">
<img border="0" src="{$XMLC_PictosPath}ico_run.gif"></img> - </xsl:if>
<xsl:value-of select="nVendeur"></xsl:value-of> (<xsl:value-of select="CptAct"></xsl:value-of>)</td>
</tr>
</xsl:for-each>
</table>
</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="Head">
<link rel="shortcut icon" type="image/ico" href="{$XMLC_Portal}faviconP.ico"></link>
<META HTTP-EQUIV="imagetoolbar" CONTENT="no"></META>
<script language="javascript">
<![CDATA[var apLastValue='x';
function VOapShowHide_dark(ID) {
  if (apLastValue!='') apShowHide_dark(ID); 
  apLastValue='x';
}
function VOapShowHide(ID) {
  if (apLastValue!='') apShowHide(ID); 
  apLastValue='x';
}
function VOShowHideActionMenu() {
  ShowHideActionMenu(); 
  goSubmit();
}]]>
</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:value-of>
<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:value-of>
<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:value-of>
</xsl:if>');
//  top.location.href = location.href;
} // checkTopLevel
</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', 435); 
      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', 480, 'HEIGHT', 510); 
      if (flagMoved!=-1) 
       { 
        flagMoved=-1; 
        popObj.style.top = 15;
        popObj.style.left = GetObjectPosX(btnID)-485;
        popObj.src = XMLC_BaseHRef+'SelReport?typeVO=10';
       };
    }
  }
}]]>
<![CDATA[// ==========================================================================
// Afficher la fenêtre popup pour la réaffectation des anciens commerciaux
// ==========================================================================
var flagMovedReAffect;
function PopSelReAffect(PopID, btnID) {
  if (popObj = getObjectById(PopID)) {
    if (btnObj = getObjectById(btnID)) {
      ShowHide(PopID, 'WIDTH', 657, 'HEIGHT', 435); 
      if (flagMovedReAffect!=-1) 
       { 
        flagMovedReAffect=-1; 
        popObj.style.top = 15;
        popObj.style.left = GetObjectPosX(btnID)-650;
       };
      popObj.src = 'ProFidReAffect';
    }
  }
}]]>
</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 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) {
  args='0';
  evt = event;
 if (evt.shiftKey)
    args='1';
  if (popObj = getObjectById(PopID)) {
      popObj.src = XMLC_BaseHRef+'FormAxVO?idClient='+idClient+'&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 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 == 'reset'){
    apLastValue = '';
    SetField('MainForm', 'SITE4', '');
    SetField('MainForm', 'cVENDEUR', '');
    SetField('MainForm', 'LIMDP1', '');    SetField('MainForm', 'LIMDP2', ''); 
//    SetField('MainForm', 'ACHOIX', '0');    SetField('MainForm', 'AVALUE', ''); 
    vAff=parseInt(GetField('MainForm', 'TypeAffich4')) % 100;
    SetField('MainForm', 'TypeAffich4', vAff);
    }

  if ((xValue != 'slider') && (xValue != 'reset') && (xValue != 'top')) {
    aPar=GetField('MainForm', objID);
    if ((aPar =='') || (objID == 'TypeAffich4') || (objID == 'cVENDEUR'))
       SetField('MainForm', objID, xValue); 
    else {
       if (aPar.search(xValue)==-1) SetField('MainForm', objID, aPar + ';' + xValue);  
       if (aPar.search(xValue)!=-1)  {
           aPar = aPar.replace(';'+xValue, '');
           aPar = aPar.replace(xValue+';', '');
           aPar = aPar.replace(xValue, '');
           SetField('MainForm', objID, aPar);  
           }
       }
    }
  goSubmit();
}]]>
</script>
</xsl:with-param>
<xsl:with-param name="Title">ProFid II - <xsl:call-template name="ProfidTitle"></xsl:call-template>
</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:call-template name="VOLineToolbarButtonsRight"></xsl:call-template>
</xsl:with-param>
<xsl:with-param name="ActivePageName">ProFid</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="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}ProFid" name="MainForm" method="post">
<input type="hidden" name="ModePresent4" value="{/document/OutParams/MODEAFFICHAGE}"></input>
<input type="hidden" name="AmInfo" value="{/document/OutParams/AmInfo}"></input>
<input type="hidden" name="AmMode" value="{/document/OutParams/AmMode}"></input>
<input type="hidden" name="TypeAffich4" value="{/document/OutParams/AFFICHAGE}"></input>
<input type="hidden" name="SITE4" value="{/document/OutParams/SITE}"></input>
<input type="hidden" name="cVENDEUR" value="{/document/OutParams/cVENDEUR}"></input>
<input type="hidden" name="LIMDP1" value="{/document/OutParams/LIMDP1}"></input>
<input type="hidden" name="LIMDP2" value="{/document/OutParams/LIMDP2}"></input>
<input type="hidden" name="NBROWS4" value="{/document/OutParams/NBROWS}"></input>
<input type="hidden" name="ORDERFIELD4" value="{/document/OutParams/ORDERFIELD}"></input>
</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 ..."></img>
</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; "></iframe>
</div>
<xsl:call-template name="xslc:ApplicationMessages"></xsl:call-template>
<xsl:apply-templates select="LCS"></xsl:apply-templates>
<xsl:call-template name="xslc:PoweredBy"></xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template name="ProfidTitle">
<xsl:value-of select="/document/ListFiltersS/ListFilters[idAffichage=/document/OutParams/AffSel]/FilterName"></xsl:value-of>
<xsl:if test="/document/ListFiltersS/ListFilters[idAffichage=/document/OutParams/AffSel]/AttrDest='1' and /document/OutParams/AffDest>=100"> - <xsl:value-of select="/document/ListFiltersS/ListFilters[AttrDest=/document/OutParams/AffDest]/FilterName"></xsl:value-of>
</xsl:if>
<xsl:if test="/document/OutParams/AffDate='1'">
<xsl:if test="/document/OutParams/LIMDP1!='' or /document/OutParams/LIMDP2!=''">
<xsl:if test="/document/OutParams/LIMDP1!='' and /document/OutParams/LIMDP2=''"> relances après le <xsl:value-of select="/document/OutParams/LIMDP1"></xsl:value-of>
</xsl:if>
<xsl:if test="/document/OutParams/LIMDP1='' and /document/OutParams/LIMDP2!=''"> relances avant le <xsl:value-of select="/document/OutParams/LIMDP2"></xsl:value-of>
</xsl:if>
<xsl:if test="/document/OutParams/LIMDP1!='' and /document/OutParams/LIMDP2!=''"> relances du <xsl:value-of select="/document/OutParams/LIMDP1"></xsl:value-of>
<xsl:if test="/document/OutParams/LIMDP1!=/document/OutParams/LIMDP2"> à <xsl:value-of select="/document/OutParams/LIMDP2"></xsl:value-of>
</xsl:if>
</xsl:if>
</xsl:if>
</xsl:if>
<xsl:if test="/document/OutParams/SITE!=''"> - Site : <xsl:value-of select="/document/VOutParams/lSiteS/oSite"></xsl:value-of>
</xsl:if>
<xsl:if test="/document/OutParams/cVENDEUR!=''"> - <xsl:value-of select="/document/ListVENDEURS/ListVENDEUR[idCom=/document/OutParams/cVENDEUR]/nVendeur"></xsl:value-of>
</xsl:if>
</xsl:template>
<!--Filtre sur type de relances - 2 types -->
<xsl:template name="SelTypeRelance">
<xsl:param name="vIndent">2</xsl:param>
<xsl:variable name="idAffSel">
<xsl:if test="/document/OutParams/AffSel=''"></xsl:if>
<xsl:value-of select="/document/OutParams/AffSel"></xsl:value-of>
</xsl:variable>
<xsl:variable name="idAffDest">
<xsl:if test="/document/OutParams/AffDest=''">0</xsl:if>
<xsl:value-of select="/document/OutParams/AffDest"></xsl:value-of>
</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"></xsl:value-of>
</xsl:if>
<xsl:if test="/document/OutParams/AffDest!=AttrDest">
<xsl:value-of select="AttrDest+$idAffSel"></xsl:value-of>
</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:if test="AttrDest>=100">
<tr>
<td class="{$apSelect}" onmouseover="oldClass=this.className; this.className='{$apOver}';" onmouseout="this.className=oldClass;" onclick="javascript: goAndSubmit('TypeAffich4',{$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"></img> - </xsl:if>
<xsl:value-of select="FilterName"></xsl:value-of>
</td>
</tr>
</xsl:if>
</xsl:for-each>
</table>
<table>
<tr>
<td style="padding: 0px 0px 0px 0px; width:200px">
<img alt="" border="0" src="{$XMLC_SkinPath}actionpanel/separator_dark.gif" height="1" width="100%"></img>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="LCS">
<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>
<xsl:call-template name="VOZoneTab">
<xsl:with-param name="nService">ProFid</xsl:with-param>
</xsl:call-template>
<div id="zoneTOP">
<p style="font-size:16px; line-height : 20px;">
<xsl:call-template name="ProfidTitle"></xsl:call-template>
</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.ORDERFIELD4.value=getObjectById('CBORDERFIELD').value; goSubmit(); return false;">
<option value="idCom">Commercial</option>
<option value="Site">
<xsl:if test="/document/OutParams/ORDERFIELD='Site'">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>Site </option>
<option value="DMR">
<xsl:if test="/document/OutParams/ORDERFIELD='DMR'">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>Date Relance</option>
<option value="cNom">
<xsl:if test="/document/OutParams/ORDERFIELD='cNom'">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>Nom Client</option>
<option value="CP">
<xsl:if test="/document/OutParams/ORDERFIELD='CP'">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>Code Postal</option>
<option value="Ville">
<xsl:if test="/document/OutParams/ORDERFIELD='Ville'">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>Ville</option>
<option value="TDom">
<xsl:if test="/document/OutParams/ORDERFIELD='TDom'">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>Tél Domicile</option>
<option value="TMob">
<xsl:if test="/document/OutParams/ORDERFIELD='TMob'">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>Tél Mobile</option>
<option value="Mail">
<xsl:if test="/document/OutParams/ORDERFIELD='Mail'">
<xsl:attribute name="selected"></xsl:attribute>
</xsl:if>Email</option>
</select> - <a href="{/document/Aliases/bdVODLL}ProFid?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">clients/page : <input class="clFlatTextInput" id="NBROWS" size="4" onkeyup="javascript: document.MainForm.NBROWS4.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> clients sélectionnés). <xsl:if test="(/document/XMLC_Params/User_ProFid = '1') and (/document/XMLC_Params/XMLC_Authenticated != '0' )">
<a href="#" onclick="javascript: lPopFormAxVO('FormVO', -2); return false;">
<img alt="Création d'un nouveau Client" border="0" src="{$XMLC_PictosPath}new_vehicle.gif"></img>
</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;"></iframe>
<a href="#" onclick="javascript: PopSelReport('SelPrint', 'btnSelPrint'); return false;">
<img border="0" alt="afin de sélectionner le type de rapport" id="btnSelPrint" src="{$XMLC_PictosPath}ico_PrintReport.gif"></img>
</a>
<xsl:if test="/document/XMLC_Params/XMLC_Authenticated != '0' and  /document/XMLC_Params/XMLC_Administrator  = '1' "> - <iframe border="1" frameborder="1" marginheight="0" marginwidth="0" id="SelReAffect" name="SelReAffect" scrolling="no" src="{$XMLC_Portal}blank.htm" style="position: absolute; display: none; z-index:1000;"></iframe>
<a href="#" onclick="javascript: PopSelReAffect('SelReAffect', 'btnSelReAffect'); return false;">
<img border="0" alt="Réaffectation des Anciens Commerciaux..." id="btnSelReAffect" src="{$XMLC_PictosPath}ico_users.gif"></img>
</a>
</xsl:if>
</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"></xsl:value-of>rowHeader_Gradient.gif');</xsl:attribute>
</xsl:if>
<td>
<a href="{/document/Aliases/bdVODLL}ProFid?SETORDERFIELD=idCom">Comm.<xsl:if test="/document/OutParams/ORDERFIELD=idCom">
<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}ProFid?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}ProFid?SETORDERFIELD=DMR">Relance<xsl:if test="/document/OutParams/ORDERFIELD='DMR'">
<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}ProFid?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"></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>
<xsl:if test="/document/OutParams/AffSel=24 or /document/OutParams/ORDERFIELD='Mail'">
<td>
<a href="{/document/Aliases/bdVODLL}ProFid?SETORDERFIELD=Mail">Email<xsl:if test="/document/OutParams/ORDERFIELD='Mail'">
<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>
</xsl:if>
<xsl:if test="not (/document/OutParams/AffSel=24 or /document/OutParams/ORDERFIELD='Mail')">
<td>Adresse</td>
<td>
<a href="{/document/Aliases/bdVODLL}ProFid?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"></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}ProFid?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"></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>
</xsl:if>
<td>
<a href="{/document/Aliases/bdVODLL}ProFid?SETORDERFIELD=TDom">Tél. Domicile<xsl:if test="/document/OutParams/ORDERFIELD='TDom'">
<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}ProFid?SETORDERFIELD=TMob">Tél. Mobile<xsl:if test="/document/OutParams/ORDERFIELD='TMob'">
<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:apply-templates select="LC"></xsl:apply-templates>
<xsl:call-template name="xslc:ListFooter">
<xsl:with-param name="colspan">22</xsl:with-param>
<xsl:with-param name="URLParams">&amp;ModePresent4=<xsl:value-of select="/document/OutParams/MODEAFFICHAGE"></xsl:value-of>&amp;TypeAffich4=<xsl:value-of select="/document/OutParams/AFFICHAGE"></xsl:value-of>
<xsl:if test="/document/OutParams/SITE!=''">&amp;SITE4=<xsl:value-of select="/document/OutParams/SITE"></xsl:value-of>
</xsl:if>&amp;AmMode=<xsl:value-of select="/document/OutParams/AmMode"></xsl:value-of>&amp;AmInfo=<xsl:value-of select="/document/OutParams/AmInfo"></xsl:value-of>
<xsl:if test="/document/OutParams/cVENDEUR!=''">&amp;cVENDEUR=<xsl:value-of select="/document/OutParams/cVENDEUR"></xsl:value-of>
</xsl:if>
<xsl:if test="/document/OutParams/LIMDP1!=''">&amp;LIMDP1=<xsl:value-of select="/document/OutParams/LIMDP1"></xsl:value-of>
</xsl:if>
<xsl:if test="/document/OutParams/LIMDP2!=''">&amp;LIMDP2=<xsl:value-of select="/document/OutParams/LIMDP2"></xsl:value-of>
</xsl:if>&amp;NBROWS4=<xsl:value-of select="/document/OutParams/NBROWS"></xsl:value-of>&amp;ORDERFIELD4=<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="LC">
<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="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_ProFid = '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="vidClient" select="idClient"></xsl:variable>
<xsl:variable name="vCliPrenom" select="CliPrenom"></xsl:variable>
<xsl:variable name="vCliNom" select="CliNom"></xsl:variable>
<xsl:variable name="vCliVille" select="CliVille"></xsl:variable>
<xsl:variable name="vCliTelDom" select="CliTelDom"></xsl:variable>
<xsl:variable name="vCliMobile" select="CliMobile"></xsl:variable>
<xsl:variable name="vTVer" select="aTVer"></xsl:variable>
<xsl:variable name="clValue">
<xsl:choose>
<xsl:when test="position() mod 2 = 1">clRowLight</xsl:when>
<xsl:otherwise>clRowDark</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="stValue">font-style:italic;</xsl:variable>
<xsl:variable name="stValueDNext">
<xsl:choose>
<xsl:when test="/document/OutParams/AffDest='100'">color:blue;</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="/document/OutParams/AffDest='200'">color:orange;</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="(dNextAct = DNextRelance)">color:blue;</xsl:when>
<xsl:otherwise>color:orange;</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="vTypeVO" select="TypeVO"></xsl:variable>
<xsl:variable name="sRowSelect">clRowSelected</xsl:variable>
<tr class="{$clValue}" onmouseover="oldClass=this.className; this.className='{$sRowSelect}';" onmouseout="this.className=oldClass;">
<td>
<xsl:value-of select="idComAct"></xsl:value-of>
</td>
<td>
<xsl:value-of select="Site"></xsl:value-of>
</td>
<td style="{$stValueDNext}">
<xsl:choose>
<xsl:when test="/document/OutParams/AffDest='100'">
<xsl:value-of select="dNextAct"></xsl:value-of>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="/document/OutParams/AffDest='200'">
<xsl:value-of select="dNextSAV"></xsl:value-of>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="DNextRelance"></xsl:value-of>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</td>
<td style="{$stValue}">
<xsl:if test="$tAuth = '1' ">
<a href="#" onclick="javascript: lPopFormAxVO('FormVO', {$vidClient}); return false;">
<img alt="pour accéder aux informations du Client" border="0" src="{$XMLC_PictosPath}voRun.gif"></img>
</a>
</xsl:if>
<xsl:if test="$tAuth != '1'">
<xsl:if test="(/document/XMLC_Params/User_ProFid = '1')">
<a href="#" onclick="javascript: lPopFormAxVO('FormVO', {$vidClient}); return false;">
<img alt="pour visualiser les informations du Client" border="0" src="{$XMLC_PictosPath}ico_info.gif"></img>
</a>
</xsl:if>
<xsl:if test="(/document/XMLC_Params/User_ProFid != '1')">
<a href="{/document/Aliases/bdVODLL}ProFid">
<img alt="Identifiez vous pour accéder au Client" border="0" src="{$XMLC_PictosPath}ico_noaccess.gif"></img>
</a>
</xsl:if>
</xsl:if>
<xsl:if test="(CliTelDom='') and (CliMobile='') and (CliTelBur='')">
<a href="http://www.pagesjaunes.fr/pagesblanches/RecherchePagesBlanchesExpress.do?nom={$vCliNom}&amp;prenom={$vCliPrenom}&amp;ou={$vCliVille}" target="_blank">
<img alt="pour rechercher les coordonnées du Client sur les Pages Blanches" border="0" src="{$XMLC_PictosPath}buttonSearchPJ.gif"></img>
</a>
</xsl:if>  - <a href="{/document/Aliases/bdVODLL}ReportPDF?rptSelect=idClient;3d;{$vidClient}&amp;rptName=Fiche ProFid" target="_blank">
<xsl:value-of select="nClient"></xsl:value-of>
</a>
<xsl:if test="DblIdentity>1">
<xsl:if test="not((DblEmail=0) and (DblMobile=0) and (DblTeldom=0) and (DblVehicle=0))">
<span style="color:#FF3dfd; "> (<xsl:value-of select="DblIdentity"></xsl:value-of>)</span>
</xsl:if>
<xsl:if test="(DblEmail=0) and (DblMobile=0) and (DblTeldom=0) and (DblVehicle=0)">
<span style="color:blue; "> (<xsl:value-of select="DblIdentity"></xsl:value-of>)</span>
</xsl:if>
</xsl:if>
</td>
<xsl:if test="/document/OutParams/AffSel=24 or /document/OutParams/ORDERFIELD='Mail'">
<td>
<xsl:value-of select="CliEmail"></xsl:value-of>
<xsl:if test="DblEmail>1">
<span style="color:#FF3dfd; "> (<xsl:value-of select="DblEmail"></xsl:value-of>)</span>
</xsl:if>
</td>
</xsl:if>
<xsl:if test="not (/document/OutParams/AffSel=24 or /document/OutParams/ORDERFIELD='Mail')">
<td>
<xsl:value-of select="CliAdresse1"></xsl:value-of>
<br></br>
<xsl:value-of select="CliAdresse2"></xsl:value-of>
</td>
<td>
<xsl:value-of select="CliCP"></xsl:value-of>
</td>
<td>
<xsl:value-of select="CliVille"></xsl:value-of>
</td>
</xsl:if>
<td align="left">
<xsl:value-of select="CliTelDom"></xsl:value-of>
<xsl:if test="DblTeldom>1">
<span style="color:#FF3dfd; "> (<xsl:value-of select="DblTeldom"></xsl:value-of>)</span>
</xsl:if>
</td>
<td align="left">
<xsl:value-of select="CliMobile"></xsl:value-of>
<xsl:if test="DblMobile>1">
<span style="color:#FF3dfd; "> (<xsl:value-of select="DblMobile"></xsl:value-of>)</span>
</xsl:if>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>
