1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
<?xml version='1.0' encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- ****************** [Variables] **********************-->
<!-- variable "deploy-treeview", boolean - mettre a true if pour deployer a l'affichage initial -->
<xsl:variable name="deploy-treeview" select="/treeview/custom-parameters/param[@name='deploy-treeview']/@value"/>
<xsl:variable name="shift-width" select="/treeview/custom-parameters/param[@name='shift-width']/@value"/>
<xsl:template match="/">
<!-- Tableau en-tête de colonnes -->
<table align="center" style="BORDER-COLLAPSE: collapse" width="100%" CELLSPACING="0" border="0" rules="rows">
<tr>
<td bgcolor="#0069B3">
<th width="14%" id="HeaderColumnNOM" onclick="javascript:tri2('NOM')" align="left">NOM</th>
<th width="14%" id="HeaderColumnPRENOM" onclick="javascript:tri2('PRENOM');" align="left">PRENOM</th>
<th width="14%" id="HeaderColumnSERVICE" onclick="javascript:Tree('SERVICE');" align="left">SERVICE</th>
<th width="14%" id="HeaderColumnLOCALISATION" onclick="javascript:Tree('LOCALISATION');" align="left">LOCALISATION</th>
<th width="14%" id="HeaderColumnTELEPHONE" onclick="javascript:tri2('TELEPHONE');" align="left">TELEPHONE</th>
<th width="14%" id="HeaderColumnPORTABLE" onclick="javascript:tri2('PORTABLE');" align="left">PORTABLE</th>
<th width="14%" id="HeaderColumnFAX" onclick="javascript:tri2('FAX');" align="left">FAX</th>
</td>
</tr>
</table>
<!-- Tableau de chaque localisation -->
<table border="0" id="Tableau1" width="98%" align="right">
<tr>
<td>
<a onclick="javascript:toggle(this)" >
<img src="include/Images/Minus.gif"/>
<xsl:value-of select="REPERTOIRE/PERSONNE/LOCALISATION"/>
</a>
<!--[<DIV> obligatoire pour plier/deplier]-->
<xsl:text disable-output-escaping="yes"><div></xsl:text>
<!--[Balise <TABLE>]-->
<!-- <xsl:text disable-output-escaping="yes"><table align="center" style="BORDER-COLLAPSE: collapse" width="100%" height="100%" CELLSPACING="0" border="1" rules="rows"></xsl:text>-->
<xsl:text disable-output-escaping="yes"><table align="center" style="BORDER-COLLAPSE: collapse" width="100%" height="100%" CELLSPACING="0" border="1" rules="groups"></xsl:text>
<xsl:for-each select="REPERTOIRE/PERSONNE">
<tr onMouseOver="this.bgColor='#E6E6E6';" onMouseOut="this.bgColor='#FFFFFF';">
<td width="14%"><b><xsl:value-of select="NOM"/></b></td>
<td width="14%"><xsl:value-of select="PRENOM"/></td>
<td width="14%"><xsl:value-of select="SERVICE"/></td>
<td width="14%"><xsl:value-of select="LOCALISATION"/></td>
<td width="14%"><xsl:value-of select="TELEPHONE"/></td>
<td width="14%"><xsl:value-of select="PORTABLE"/></td>
<td width="14%"><xsl:value-of select="FAX"/></td>
</tr>
<xsl:if test="string(LOCALISATION)!=string(following-sibling::*[1]/LOCALISATION) and string(following-sibling::*[1]/LOCALISATION) !=''">
<!--[Balise </TABLE></DIV>]-->
<xsl:text disable-output-escaping="yes"></table></div></xsl:text>
<!--[Balise </TD></TR><TR><TD>]-->
<xsl:text disable-output-escaping="yes"></td></tr><tr><td></xsl:text>
<br/>
<a onclick="javascript:toggle(this)" ><img src="Include/Images/Minus.gif"/><xsl:value-of select="following-sibling::*[1]/LOCALISATION"/></a>
<!--[Balise <DIV><TABLE>]-->
<xsl:text disable-output-escaping="yes"><div><table align="center" style="BORDER-COLLAPSE: collapse" width="100%" height="100%" CELLSPACING="0" border="1" rules="groups"></xsl:text>
</xsl:if>
</xsl:for-each>
<!--[Balise </TABLE></DIV>]-->
<xsl:text disable-output-escaping="yes"></table></div></xsl:text>
</td>
</tr>
</table>
<!--</td></tr></table>-->
</xsl:template>
</xsl:stylesheet> |