<?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="@LCS/RowCount"/>
		<xsl:call-template name="xslc:Page">
			<xsl:with-param name="DisplayTabControl">0</xsl:with-param>
			<xsl:with-param name="BodyAttributes">
				<Attributes onload="checkTopLevel();"/>
			</xsl:with-param>
			<xsl:with-param name="DisplayTabs">0</xsl:with-param>
			<xsl:with-param name="Head">
				<META HTTP-EQUIV="imagetoolbar" CONTENT="no"/>
				<script language="javascript">
					<![CDATA[
function checkTopLevel() {
  if ((null == top) || (top == self))
   return;
alert('{$RefreshURL}');
alert(']]>{$RefreshURL}<xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/>
					<xsl:choose>
						<xsl:when test="$XMLC_UseXMLC_Action != '1'">/</xsl:when>
						<xsl:otherwise>?XMLC_Action=</xsl:otherwise>
					</xsl:choose>
					<xsl:value-of select="/document/XMLC_Params/XMLC_Action"/>
					<xsl:if test="/document/XMLC_Params/XMLC_InputParams!=''">
						<xsl:choose>
							<xsl:when test="$XMLC_UseXMLC_Action = '1'">&amp;</xsl:when>
							<xsl:otherwise>?</xsl:otherwise>
						</xsl:choose>
						<xsl:value-of select="/document/XMLC_Params/XMLC_InputParams"/>
					</xsl:if>');
//  top.location.href = location.href;
} // checkTopLevel
</script>
				<script language="javascript">
					<![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 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=10';
    }
  }
}
]]>
				</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) {
  if (popObj = getObjectById(PopID)) {
      popObj.src = XMLC_BaseHRef+'FormAxVO?idClient='+idClient+'&TypeAffichage='+getObjectById('CBTYPEAFFICHAGE').value;
  }
}]]>
				</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() {
 aVal=parseInt(getObjectById('CBTYPEAFFICHAGE').value);
 if (aVal==-1) {
      SetFocus(getObjectById('CBTYPEAFFICHAGE'));
      return false
   } ;

document.MainForm.TypeAffich4.value=aVal;
document.MainForm.submit(); 
return false;
}]]>
				</script>
			</xsl:with-param>
			<xsl:with-param name="Title">ProFid II</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/User_RVN = '1' ">
					<ToolbarButton>
						<xsl:call-template name="ButtonOptions"/>
					</ToolbarButton>
				</xsl:if>
				<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>
				<xsl:if test="/document/XMLC_Params/XMLC_Authenticated != '0' and /document/XMLC_Params/XMLC_Supervisor = '1' ">
					<ToolbarButton>
						<xsl:call-template name="ButtonListUsersProFid"/>
					</ToolbarButton>
				</xsl:if>
				<xsl:if test="/document/XMLC_Params/XMLC_Authenticated != '0' ">
					<ToolbarButton>
						<xsl:call-template name="xslc:ToolbarButton">
							<xsl:with-param name="Caption">
								<iframe border="1" frameborder="1" marginheight="0" marginwidth="0" id="YuiSearch" name="YuiSearch" scrolling="no" src="{$XMLC_Portal}blank.htm" style="position: absolute; display: none; z-index:1000;"/>
								<img border="0" id="btnYuiSearch" src="{$XMLC_PictosPath}button_SearchDocument.gif" alt="Search in the database"/>
							</xsl:with-param>
							<xsl:with-param name="OnClick">javascript: PopSelYUI('YuiSearch', 'btnYuiSearch'); return false;</xsl:with-param>
						</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;"/>
							<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">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"/> 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}ProFid" name="MainForm" method="post">
					<input type="hidden" name="ModePresent4" value="{/document/OutParams/MODEAFFICHAGE}"/>
					<input type="hidden" name="TypeAffich4" value="{/document/OutParams/AFFICHAGE}"/>
					<input type="hidden" name="SITE4" value="{/document/OutParams/SITE}"/>
					<input type="hidden" name="RType" value="{/document/OutParams/RType}"/>
					<input type="hidden" name="cVENDEUR" value="{/document/OutParams/cVENDEUR}"/>
					<input type="hidden" name="NBROWS4" value="{/document/OutParams/NBROWS}"/>
					<input type="hidden" name="ORDERFIELD4" 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 Client<iframe id="FormVO" name="FormVO" border="0" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="{$XMLC_Portal}blank.htm" style="position: absolute; z-index:1000;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; "/>
				</div>
				<xsl:call-template name="xslc:ApplicationMessages"/>
				<xsl:apply-templates select="LCS"/>
				<xsl:call-template name="xslc:PoweredBy"/>
			</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template match="LCS">
		<xsl:param name="vModAff">
			<xsl:value-of select="/document/OutParams/MODEAFFICHAGE"/>
		</xsl:param>
		<xsl:param name="RecordCount" select="@RowCount"/>
		<xsl:variable name="vOrd" select="/document/OutParams/ORDERFIELD"/>
		<xsl:variable name="vDLL">
			<xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/>/</xsl:variable>
		<xsl:variable name="vAction">
			<xsl:value-of select="/document/Aliases/bdVODLL"/>
			<xsl:value-of select="/document/XMLC_Params/XMLC_Action"/>
		</xsl:variable>
		<xsl:if test="$vDLL!=/document/Aliases/bdVODLL">
			<p align="right">Non OK, utilisez plutôt le lien suivant :<a href="{$vAction}" style="color:red">http://<xsl:value-of select="$vAction"/>
				</a>
			</p>
		</xsl:if>
		<div id="zoneTAB">
			<ul class="nicetab">
				<li>
					<a href="ListVO">Liste VO</a>
				</li>
				<li>
					<a href="ListVN">Liste VN</a>
				</li>
				<li>
					<a href="ListVD">Liste VD</a>
				</li>
				<li class="selected">
					<a href="ProFid">ProFid II</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.SITE4.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="105px" align="right">Commercial : </td>
					<td align="left" width="220px">
						<select id="CBVENDEUR" onchange="javascript: document.MainForm.cVENDEUR.value=getObjectById('CBVENDEUR').value; goSubmit() ; return false;" style="width:210px">
							<option value="">
								<xsl:if test="/document/OutParams/cVENDEUR=''">Choix Commercial</xsl:if>
								<xsl:if test="/document/OutParams/cVENDEUR!=''">Tous Commerciaux</xsl:if>
							</option>
							<xsl:for-each select="/document/ListVENDEURS/ListVENDEUR">
								<xsl:sort select="nVendeur"/>
								<option value="{idCom}">
									<xsl:if test="/document/OutParams/cVENDEUR=idCom">
										<xsl:attribute name="selected"/>
									</xsl:if>
									<xsl:value-of select="nVendeur"/>
									<xsl:if test="/document/XMLC_Params/XMLC_Authenticated != '0' "> (<xsl:value-of select="CptAct"/>)</xsl:if>
								</option>
							</xsl:for-each>
						</select>
					</td>
					<td align="right"/>
				</tr>
				<tr>
					<td width="65px" align="right">Type : </td>
					<td width="145px">
						<select id="CBRType" onchange="javascript: document.MainForm.RType.value=getObjectById('CBRType').value; goSubmit(); return false;" style="width:125px">
							<option value="0" style="color:blue">
								<xsl:if test="/document/OutParams/RType=0">
									<xsl:attribute name="selected"/>
								</xsl:if>Toutes Relances </option>
							<option value="1" style="color:blue">
								<xsl:if test="/document/OutParams/RType=1">
									<xsl:attribute name="selected"/>
								</xsl:if>Relances Commerciales</option>
							<option value="2" style="color:blue">
								<xsl:if test="/document/OutParams/RType=2">
									<xsl:attribute name="selected"/>
								</xsl:if>Relances SAV</option>
						</select>
					</td>
					<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:if>Site </option>
							<option value="DMR">
								<xsl:if test="/document/OutParams/ORDERFIELD='DMR'">
									<xsl:attribute name="selected"/>
								</xsl:if>Date Relance</option>
							<option value="cNom">
								<xsl:if test="/document/OutParams/ORDERFIELD='cNom'">
									<xsl:attribute name="selected"/>
								</xsl:if>Nom Client</option>
							<option value="CP">
								<xsl:if test="/document/OutParams/ORDERFIELD='CP'">
									<xsl:attribute name="selected"/>
								</xsl:if>Code Postal</option>
							<option value="Ville">
								<xsl:if test="/document/OutParams/ORDERFIELD='Ville'">
									<xsl:attribute name="selected"/>
								</xsl:if>Ville</option>
							<option value="TDom">
								<xsl:if test="/document/OutParams/ORDERFIELD='TDom'">
									<xsl:attribute name="selected"/>
								</xsl:if>Tél Domicile</option>
							<option value="TMob">
								<xsl:if test="/document/OutParams/ORDERFIELD='TMob'">
									<xsl:attribute name="selected"/>
								</xsl:if>Tél Mobile</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"/>
							</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">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"/>, (<xsl:value-of select="$RecordCount"/> clients sélectionnés). <xsl:if test="/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"/>
							</a>
						</xsl:if>
					</td>
				</tr>
			</table>
		</div>
		<table border="0" class="clFlatTable" width="100%">
			<xsl:if test="$vModAff='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}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"/>
								</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}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"/>
								</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}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"/>
								</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}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"/>
								</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>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"/>
								</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}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"/>
								</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}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"/>
								</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}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"/>
								</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>
				</tr>
			</xsl:if>
			<xsl:apply-templates select="LC"/>
			<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"/>&amp;TypeAffich4=<xsl:value-of select="/document/OutParams/AFFICHAGE"/>
					<xsl:if test="/document/OutParams/SITE!=''">&amp;SITE4=<xsl:value-of select="/document/OutParams/SITE"/>
					</xsl:if>
					<xsl:if test="/document/OutParams/cVENDEUR!=''">&amp;cVENDEUR=<xsl:value-of select="/document/OutParams/cVENDEUR"/>
					</xsl:if>&amp;NBROWS4=<xsl:value-of select="/document/OutParams/NBROWS"/>&amp;ORDERFIELD4=<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="LC">
		<xsl:param name="vModAff">
			<xsl:if test="/document/OutParams/AFFICHAGE&lt;'20'">
				<xsl:value-of select="/document/OutParams/MODEAFFICHAGE"/>
			</xsl:if>
			<xsl:if test="/document/OutParams/AFFICHAGE&gt;'19'">
				<xsl:if test="/document/OutParams/MODEAFFICHAGE='1'">3</xsl:if>
				<xsl:if test="/document/OutParams/MODEAFFICHAGE='0' or /document/OutParams/MODEAFFICHAGE=''">2</xsl:if>
			</xsl:if>
		</xsl:param>
		<xsl:variable name="vConcession" select="Concession"/>
		<xsl:variable name="vOwner" select="idOwner"/>
		<xsl:variable name="vSite" select="Site"/>
		<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 name="vTVer" select="aTVer"/>
		<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/RType='1'">color:blue;</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when test="/document/OutParams/RType='2'">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 name="vStatutVD">
			<xsl:value-of select="StatutVD"/>
			<xsl:if test="(Uti != '') and (StatutVD!='')"> - <xsl:value-of select="Uti"/>
			</xsl:if>
		</xsl:variable>
		<xsl:variable name="sInfoVO">
			<xsl:choose>
				<xsl:when test="($vTypeVO = '3') or (($vTypeVO = '2') and ($vStatutVD != '') )">VD</xsl:when>
				<xsl:otherwise>VN</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="sRowSelect">
			<xsl:choose>
				<xsl:when test="($sInfoVO = 'VD')">clRowSelectedVD</xsl:when>
				<xsl:otherwise>clRowSelected</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="vInfo">
			<xsl:value-of select="iMar"/> - <xsl:value-of select="aMod"/> - <xsl:if test="($vTVer != '')">
				<xsl:value-of select="aTVer"/>
			</xsl:if>
			<xsl:if test="($vTVer = '')">
				<xsl:value-of select="aVer"/>
			</xsl:if>
		</xsl:variable>
		<xsl:if test="$vModAff='0'">
			<tr class="{$clValue}" onmouseover="oldClass=this.className; this.className='{$sRowSelect}';" onmouseout="this.className=oldClass;">
				<td>
					<xsl:value-of select="idComAct"/>
				</td>
				<td>
					<xsl:value-of select="Site"/>
				</td>
				<td style="{$stValueDNext}">
					<xsl:choose>
						<xsl:when test="/document/OutParams/RType='1'">
							<xsl:value-of select="dNextAct"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when test="/document/OutParams/RType='2'">
									<xsl:value-of select="dNextSAV"/>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="DNextRelance"/>
								</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}ico_run.gif"/>
						</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"/>
							</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"/>
							</a>
						</xsl:if>
					</xsl:if>  - <a href="{/document/Aliases/bdVODLL}ReportPDF?rptSelect=idClient;3d;{$vidClient}&amp;rptName=Fiche ProFid" target="_blank">
						<xsl:value-of select="nClient"/>
					</a>
				</td>
				<td>
					<xsl:value-of select="CliAdresse1"/>
					<br/>
					<xsl:value-of select="CliAdresse2"/>
				</td>
				<td>
					<xsl:value-of select="CliCP"/>
				</td>
				<td>
					<xsl:value-of select="CliVille"/>
				</td>
				<td align="left">
					<xsl:value-of select="CliTelDom"/>
				</td>
				<td align="center">
					<xsl:value-of select="CliTelMobile"/>
				</td>
			</tr>
		</xsl:if>
	</xsl:template>
</xsl:stylesheet>
