<xsl:copy-of
select="/n:DocumentRapport/n:DonneesRapport/n:Rapport/n:Anomalie" />
</xsl:variable>
+ <xsl:variable name="showControles" select="'SHOWALLFORPDF'"/>
<xsl:variable name="statut.colors">
<statuts>
</td>
<td>
<a>
- <xsl:attribute name="href">xemelios:/savePdf?docId=rapport&etatId=DonneesRapport&elementId=Rapport&collectivite=<xsl:value-of
- select="$siret" />&budget=<xsl:value-of
- select="$budget.code" />&path=[n:Id/@n:V='<xsl:value-of
- select="$rapport.id" />']</xsl:attribute>
- <img src="xemelios:/resource?rapport_save.png" title="Enregistrer au format PDF" />
+ <xsl:attribute name="href">xemelios:/savePdf?docId=rapport&etatId=DonneesRapport&elementId=Rapport&collectivite=<xsl:value-of select="$siret" />&budget=<xsl:value-of select="$budget.code" />&path=[n:Id/@n:V='<xsl:value-of select="$rapport.id" />']&xsl:param=(idControle,<xsl:value-of select="$showControles"/>)&xsl:param=(elementId,<xsl:value-of select="$showControles"/>)&xsl:param=(affichage,<xsl:value-of select="$affichage"/>)&xsl:param=(affichageParam,)&xsl:param=(affichageSynthese,1)&xsl:param=(affichageDepense,1)&xsl:param=(affichageRecette,1)&xsl:param=(affichageCommun,1)&xsl:param=(affichageTiers,1)&xsl:param=(affichagePJ,1)&xsl:param=(affichageSignature,1)</xsl:attribute><img src="xemelios:/resource?rapport_save.png" title="Enregistrer au format PDF" />
</a>
</td>
<td>
select="$ctrl.id" />)#<xsl:value-of select="$ctrl.id" /></xsl:when><xsl:otherwise>&xsl:param=(ancre,)&xsl:param=(idControle,)</xsl:otherwise></xsl:choose></xsl:attribute>
<xsl:choose>
- <xsl:when test="$idControle!=$ctrl.id">
+ <xsl:when test="$idControle!=$ctrl.id and $idControle!=$showControles">
<img src="xemelios:/resource?rapport_fleche_bas2.png"
title="Déplier" />
</xsl:when>
</tr>
- <xsl:if test="$idControle=$ctrl.id">
+ <xsl:if test="$idControle=$ctrl.id or $idControle=$showControles">
<tr></tr>
<tr>
<td colspan="4">
</xsl:attribute>
<xsl:choose>
- <xsl:when test="$elementId='SIGN'"><img src="xemelios:/resource?rapport_fleche_haut.png" title="Plier" /></xsl:when>
+ <xsl:when test="$elementId='SIGN' or $idControle=$showControles"><img src="xemelios:/resource?rapport_fleche_haut.png" title="Plier" /></xsl:when>
<xsl:otherwise><img src="xemelios:/resource?rapport_fleche_bas.png" title="Déplier" /></xsl:otherwise>
</xsl:choose>
</xsl:element>
</xsl:attribute>
<xsl:choose>
- <xsl:when test="$elementId=$id"><img src="xemelios:/resource?rapport_fleche_haut.png" title="Plier" /></xsl:when>
+ <xsl:when test="$elementId=$id or $idControle=$showControles"><img src="xemelios:/resource?rapport_fleche_haut.png" title="Plier" /></xsl:when>
<xsl:otherwise><img src="xemelios:/resource?rapport_fleche_bas.png" title="Déplier" /></xsl:otherwise>
</xsl:choose>
</xsl:element>
</td>
</tr>
- <xsl:if test="($id!='' and $elementId=$id) or ($elmImport eq 'Signature' and $elementId='SIGN')">
+ <xsl:if test="($id!='' and $elementId=$id) or ($elmImport eq 'Signature' and $elementId='SIGN') or $elementId=$showControles">
<xsl:for-each select="distinct-values($anomalies/n:Anomalie[n:IdElementImportable/@n:V=$id]/n:IdCtrl/@n:V)">
<xsl:variable name="ctrl.id" select="."/>
<xsl:variable name="ctrl.libelle">
- <xsl:if test="$elementId=$id"><xsl:value-of select="distinct-values($anomalies/n:Anomalie[n:IdElementImportable/@n:V=$id][n:IdCtrl/@n:V=$ctrl.id]/n:LibelleCtrl/@n:V)"/></xsl:if>
+ <xsl:if test="$elementId=$id or $idControle=$showControles"><xsl:value-of select="distinct-values($anomalies/n:Anomalie[n:IdElementImportable/@n:V=$id][n:IdCtrl/@n:V=$ctrl.id]/n:LibelleCtrl/@n:V)"/></xsl:if>
<xsl:if test="$elementId='SIGN'"><xsl:value-of select="distinct-values($anomalies/n:Anomalie[n:ElementImportable/@n:V='Signature'][n:IdCtrl/@n:V=$ctrl.id]/n:LibelleCtrl/@n:V)"/></xsl:if>
</xsl:variable>
<xsl:variable name="ctrl.nb.anos">
- <xsl:if test="$elementId=$id"><xsl:value-of select="count($anomalies/n:Anomalie[n:IdElementImportable/@n:V=$id][n:IdCtrl/@n:V=$ctrl.id])"/></xsl:if>
+ <xsl:if test="$elementId=$id or $idControle=$showControles"><xsl:value-of select="count($anomalies/n:Anomalie[n:IdElementImportable/@n:V=$id][n:IdCtrl/@n:V=$ctrl.id])"/></xsl:if>
<xsl:if test="$elementId='SIGN'"><xsl:value-of select="count($anomalies/n:Anomalie[n:ElementImportable/@n:V='Signature'][n:IdCtrl/@n:V=$ctrl.id])"/></xsl:if>
</xsl:variable>
<tr>
select="$ctrl.id" />)#<xsl:value-of select="$ctrl.id" /></xsl:when><xsl:otherwise>&xsl:param=(ancre,)&xsl:param=(idControle,)</xsl:otherwise></xsl:choose></xsl:attribute>
<xsl:choose>
- <xsl:when test="$idControle!=$ctrl.id">
- <img src="xemelios:/resource?rapport_fleche_bas2.png"
- title="Déplier" />
+ <xsl:when test="$idControle=$ctrl.id or $idControle=$showControles">
+ <img src="xemelios:/resource?rapport_fleche_haut2.png"
+ title="Plier" />
</xsl:when>
<xsl:otherwise>
- <img src="xemelios:/resource?rapport_fleche_haut2.png"
- title="Plier" />
+ <img src="xemelios:/resource?rapport_fleche_bas2.png"
+ title="Déplier" />
</xsl:otherwise>
</xsl:choose>
</tr>
- <xsl:if test="$idControle=$ctrl.id">
+ <xsl:if test="$idControle=$ctrl.id or $idControle=$showControles">
<tr></tr>
<tr>
<td colspan="5">
</html>
</xsl:template>
-
<xsl:template name="rapport.ancienne.version">
<xsl:param name="docid" />
<xsl:param name="collectivite" />
</table>
</xsl:template>
-
-
<!-- STYLES -->
<xsl:template name="style">
<style type="text/css" media="all">