--- /dev/null
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE xsl:stylesheet [
+<!ENTITY nbsp " ">
+<!ENTITY egrave "è">
+<!ENTITY euro "€">
+<!ENTITY agrave "à">
+<!ENTITY eacute "é">
+]>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.xemelios.org/namespaces#cg-1.0" xmlns:n="http://www.xemelios.org/namespaces#cg-1.0" xmlns:added="http://projets.admisource.gouv.fr/xemelios/namespaces#added" version="2.0">
+ <!-- Paramètres de sortie -->
+ <xsl:character-map name="accents">
+ <xsl:output-character character="à" string="&#224;"/>
+ <xsl:output-character character="é" string="&#233;"/>
+ <xsl:output-character character="è" string="&#232;"/>
+ <xsl:output-character character="ê" string="&#234;"/>
+ <xsl:output-character character="ë" string="&#235;"/>
+ <xsl:output-character character="î" string="&#238;"/>
+ <xsl:output-character character="ï" string="&#239;"/>
+ <xsl:output-character character="ô" string="&#244;"/>
+ <xsl:output-character character="ù" string="&#249;"/>
+ <xsl:output-character character="°" string="&#176;"/>
+ </xsl:character-map>
+ <xsl:output method="xhtml" indent="yes" use-character-maps="accents" encoding="ISO-8859-1"/>
+ <xsl:decimal-format name="decformat" decimal-separator="," grouping-separator=" " digit="#" pattern-separator=";" NaN="NaN" minus-sign="-"/>
+
+ <!-- Inclusion des XSL externes -->
+ <xsl:include href="../../common-xsl/Title.xsl"/>
+ <xsl:include href="../../common-xsl/Style.xsl"/>
+ <xsl:include href="../../common-xsl/Error.xsl"/>
+ <xsl:include href="../../common-xsl/Navigate.xsl"/>
+ <xsl:include href="./common-xsl/Header.xsl"/>
+ <xsl:include href="../../common-xsl/Number.xsl"/><xsl:include href="../../common-xsl/Footer.xsl"/>
+
+ <!-- Paramètres Web -->
+ <xsl:param name="is.web">-1</xsl:param>
+ <xsl:param name="context.path"/>
+
+ <!-- Paramètres d'entrée -->
+ <xsl:param name="show.formulaire"/>
+ <xsl:param name="browser-destination"/>
+
+ <!-- Paramètres d'entrée de la liste de résultat -->
+ <xsl:param name="numCompte">0</xsl:param>
+
+ <!-- Paramètres d'erreur -->
+ <xsl:param name="error.message">nomessage</xsl:param>
+
+ <!-- Variables -->
+ <xsl:variable name="page-format" select="paysage"/>
+ <xsl:variable name="NumPage" select="/n:CompteGestion/n:SituationDetaillee/n:PageSituationDetaillee/n:Pied/@NumPage"/>
+ <xsl:variable name="isLastPage" select="/n:CompteGestion/n:SituationDetaillee/n:PageSituationDetaillee/@added:isLastPage"/>
+ <xsl:variable name="Entete">
+ <xsl:copy-of select="/n:CompteGestion/n:Entete"/>
+ </xsl:variable>
+ <xsl:variable name="Nomenclature" select="$Entete//n:Nomenclature/@V"/>
+ <xsl:variable name="Modele" select="//n:SituationDetaillee/n:PageSituationDetaillee/@Modele"/>
+
+
+ <!-- pour eviter les sorties parasites de tags non matches -->
+ <xsl:template match="*"/>
+
+ <xsl:template match="/n:CompteGestion">
+ <html>
+ <head>
+ <!--title>Opérations budgétaires</title-->
+ <xsl:call-template name="title"><xsl:with-param name="Entete" select="//n:Entete"/><xsl:with-param name="etat">Opérations budgétaires</xsl:with-param></xsl:call-template>
+ <xsl:call-template name="style"/>
+ </head>
+ <body width="100%">
+ <xsl:if test="$error.message!='nomessage'">
+ <xsl:attribute name="onload">javascript:showDialog('<xsl:value-of select="$error.message"/>');</xsl:attribute>
+ </xsl:if>
+ <xsl:call-template name="Error"><!--xsl:with-param name="error.message" select="$error.message"/--></xsl:call-template>
+ <xsl:call-template name="navigate">
+ <xsl:with-param name="docId">cg-colloc</xsl:with-param>
+ <xsl:with-param name="etatId">SituationDetaillee</xsl:with-param>
+ <xsl:with-param name="elementId">PageSituationDetaillee</xsl:with-param>
+ <xsl:with-param name="sous.elementId">LigneSituationDetaillee</xsl:with-param>
+ <xsl:with-param name="NumPage" select="$NumPage"/>
+ <xsl:with-param name="isLastPage" select="$isLastPage"/>
+ <xsl:with-param name="Entete" select="$Entete"/>
+ <xsl:with-param name="show.formulaire" select="$show.formulaire"/>
+ <xsl:with-param name="show.depense.recette" select="0"/>
+ <xsl:with-param name="is.web" select="$is.web"/>
+ <xsl:with-param name="context.path" select="$context.path"/>
+ </xsl:call-template>
+ <xsl:choose>
+ <xsl:when test="$Nomenclature='M31'">
+ <xsl:call-template name="header">
+ <xsl:with-param name="Entete" select="$Entete"/>
+ <xsl:with-param name="Titre.Plus"><h2>SITUATION DETAILLEE DES PREVISIONS ET REALISATIONS</h2></xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="header">
+ <xsl:with-param name="Entete" select="$Entete"/>
+ <xsl:with-param name="Titre.Plus">
+ <h2>Opérations budgétaires de <xsl:value-of select="lower-case(n:SituationDetaillee/n:PageSituationDetaillee/n:EnteteSituationDetaillee/@Sens)"/> - <xsl:value-of select="n:SituationDetaillee/n:PageSituationDetaillee/n:EnteteSituationDetaillee/@Section"/> <xsl:value-of select="n:SituationDetaillee/n:PageSituationDetaillee/n:EnteteSituationDetaillee/@Annee"/></h2>
+ <h3>
+ <xsl:value-of select="n:SituationDetaillee/n:PageSituationDetaillee/n:EnteteSituationDetaillee/@SousTitre"/>
+ </h3>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ <!-- **************** DEBUG **************** -->
+ <!--h1 style="color: red; background-color: yellow;">Type=<xsl:value-of select="/n:CompteGestion/n:SituationDetaillee/n:PageSituationDetaillee/@Type"/><br/>Modele=<xsl:value-of select="/n:CompteGestion/n:SituationDetaillee/n:PageSituationDetaillee/@Modele"/></h1-->
+
+ <xsl:choose>
+ <xsl:when test="$Nomenclature='M31' and /n:CompteGestion/n:SituationDetaillee/n:PageSituationDetaillee/@Modele='074'">
+ <xsl:call-template name="mainTable.074">
+ <xsl:with-param name="el" select="/n:CompteGestion/n:SituationDetaillee/n:PageSituationDetaillee"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="$Nomenclature='M31' and /n:CompteGestion/n:SituationDetaillee/n:PageSituationDetaillee/@Modele='075'">
+ <xsl:call-template name="mainTable.075">
+ <xsl:with-param name="el" select="/n:CompteGestion/n:SituationDetaillee/n:PageSituationDetaillee"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="$Nomenclature='M31' and (/n:CompteGestion/n:SituationDetaillee/n:PageSituationDetaillee/@Modele='076' or /n:CompteGestion/n:SituationDetaillee/n:PageSituationDetaillee/@Modele='077')">
+ <xsl:call-template name="mainTable.076.077">
+ <xsl:with-param name="el" select="/n:CompteGestion/n:SituationDetaillee/n:PageSituationDetaillee"/>
+ </xsl:call-template>
+ </xsl:when>
+ </xsl:choose>
+ <p>
+ <xsl:call-template name="footer"><xsl:with-param name="num.page" select="$NumPage"/><xsl:with-param name="tracabilite"><xsl:copy-of select="//n:Tracabilite"/></xsl:with-param></xsl:call-template>
+ </p>
+
+ <xsl:call-template name="navigate">
+ <xsl:with-param name="docId">cg-colloc</xsl:with-param>
+ <xsl:with-param name="etatId">SituationDetaillee</xsl:with-param>
+ <xsl:with-param name="elementId">PageSituationDetaillee</xsl:with-param>
+ <xsl:with-param name="sous.elementId">LigneSituationDetaillee</xsl:with-param>
+ <xsl:with-param name="NumPage" select="$NumPage"/>
+ <xsl:with-param name="isLastPage" select="$isLastPage"/>
+ <xsl:with-param name="Entete" select="$Entete"/>
+ <xsl:with-param name="show.formulaire" select="$show.formulaire"/>
+ <xsl:with-param name="show.depense.recette" select="0"/>
+ <xsl:with-param name="is.web" select="$is.web"/>
+ <xsl:with-param name="context.path" select="$context.path"/>
+ </xsl:call-template>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template name="mainTable.074">
+ <xsl:param name="el"/>
+
+ <xsl:variable name="excedent.deficit"><xsl:copy-of select="$el/n:LigneSituationDetaillee[@Type='ExcedentDeficit']"/></xsl:variable>
+
+ <table width="100%" class="borderedInside">
+ <colgroup>
+ <col width="50%"/>
+ <col width="50%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td class="bold noborder">Compte de résultat <xsl:value-of select="//n:LigneEnteteSituationDetaillee/@MentionSuite"/></td>
+ <td class="bold right noborder"><xsl:value-of select="//n:LigneEnteteSituationDetaillee/@TypeTableau"/></td>
+ </tr>
+ </tbody>
+ </table>
+ <table width="100%" id="main" class="bordered">
+ <colgroup>
+ <col width="20%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ </colgroup>
+ <thead>
+ <tr class="titre">
+ <td class="titre bold center borderedBold">Libellé des Chapitres / articles</td>
+ <td class="titre bold center borderedBold">CRP initial</td>
+ <td class="titre bold center borderedBold">Décisions<br/>modificatives</td>
+ <td class="titre bold center borderedBold">Virements de crédits</td>
+ <td class="titre bold center borderedBold">Prévisions totales</td>
+ <td class="titre bold center borderedBold"><xsl:value-of select="$el//n:LigneEnteteSituationDetaillee/@TmEmis"/> émis</td>
+ <td class="titre bold center borderedBold"><xsl:value-of select="$el//n:LigneEnteteSituationDetaillee/@TmAnnules"/> annulés</td>
+ <td class="titre bold center borderedBold">Total des réalisations</td>
+ <td class="titre bold center borderedBold">Ecart Réal/Prév<br/>en %</td>
+ </tr>
+ </thead>
+ <tbody>
+ <xsl:variable name="nb.lignes" select="count($el/n:LigneSituationDetaillee)"/>
+ <xsl:for-each select="$el/n:LigneSituationDetaillee">
+ <xsl:choose>
+ <xsl:when test="contains(lower-case(@Intitule),'total')">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bordureRight bold"><xsl:value-of select="@Intitule"/></td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantInitial"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@DecisionsModificatives"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@VirementsCredits"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@PrevisionsTotales"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantEmis"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantAnnules"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@TotalRealisations"/>
+ </xsl:call-template>
+ </td>
+ <td class="center bordureRight bold"><xsl:value-of select="@Ecart"/></td>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bordureRight"><xsl:value-of select="@Intitule"/></td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantInitial"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@DecisionsModificatives"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@VirementsCredits"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@PrevisionsTotales"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantEmis"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantAnnules"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@TotalRealisations"/>
+ </xsl:call-template>
+ </td>
+ <td class="center bordureRight"><xsl:value-of select="@Ecart"/></td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </tbody>
+ </table>
+ </xsl:template>
+
+ <xsl:template name="mainTable.075">
+ <xsl:param name="el"/>
+
+ <xsl:variable name="excedent.deficit"><xsl:copy-of select="$el/n:LigneSituationDetaillee[@Type='ExcedentDeficit']"/></xsl:variable>
+
+ <table width="100%" class="borderedInside">
+ <colgroup>
+ <col width="50%"/>
+ <col width="50%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td class="bold noborder">Tableau de passage du résultat à la CAF<xsl:value-of select="//n:LigneEnteteSituationDetaillee/@MentionSuite"/></td>
+ <td class="bold right noborder"><xsl:value-of select="//n:LigneEnteteSituationDetaillee/@TypeTableau"/></td>
+ </tr>
+ </tbody>
+ </table>
+ <table width="100%" id="main" class="bordered">
+ <colgroup>
+ <col width="20%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ <col width="10%"/>
+ </colgroup>
+ <thead>
+ <tr class="titre">
+ <td class="titre bold center borderedBold">Libellé des Chapitres / articles</td>
+ <td class="titre bold center borderedBold">CRP initial</td>
+ <td class="titre bold center borderedBold">Décisions<br/>modificatives</td>
+ <td class="titre bold center borderedBold">Virements de crédits</td>
+ <td class="titre bold center borderedBold">Prévisions totales</td>
+ <td class="titre bold center borderedBold"><xsl:value-of select="$el//n:LigneEnteteSituationDetaillee/@TmEmis"/> émis</td>
+ <td class="titre bold center borderedBold"><xsl:value-of select="$el//n:LigneEnteteSituationDetaillee/@TmAnnules"/> annulés</td>
+ <td class="titre bold center borderedBold">Total des réalisations</td>
+ <td class="titre bold center borderedBold">Ecart Réal/Prév<br/>en %</td>
+ </tr>
+ </thead>
+ <tbody>
+ <xsl:variable name="nb.lignes" select="count($el/n:LigneSituationDetaillee)"/>
+ <xsl:for-each select="$el/n:LigneSituationDetaillee">
+ <xsl:choose>
+ <xsl:when test="contains(lower-case(@Intitule),'total')">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bordureRight bold"><xsl:value-of select="@Intitule"/></td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantInitial"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@DecisionsModificatives"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@VirementsCredits"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@PrevisionsTotales"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantEmis"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantAnnules"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@TotalRealisations"/>
+ </xsl:call-template>
+ </td>
+ <td class="center bordureRight bold"><xsl:value-of select="@Ecart"/></td>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bordureRight"><xsl:value-of select="@Intitule"/></td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantInitial"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@DecisionsModificatives"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@VirementsCredits"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@PrevisionsTotales"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantEmis"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantAnnules"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@TotalRealisations"/>
+ </xsl:call-template>
+ </td>
+ <td class="center bordureRight"><xsl:value-of select="@Ecart"/></td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </tbody>
+ </table>
+ </xsl:template>
+
+ <xsl:template name="mainTable.076.077">
+ <xsl:param name="el"/>
+
+ <xsl:variable name="excedent.deficit"><xsl:copy-of select="$el/n:LigneSituationDetaillee[@Type='ExcedentDeficit']"/></xsl:variable>
+
+ <table width="100%" class="borderedInside">
+ <colgroup>
+ <col width="50%"/>
+ <col width="50%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td class="bold noborder"><xsl:choose>
+ <xsl:when test="$el/@Modele='076'">Tableau de financement <xsl:value-of select="//n:LigneEnteteSituationDetaillee/@MentionSuite"/></xsl:when>
+ <xsl:when test="$el/@Modele='077'">Tableau de suivi des stocks de production <xsl:value-of select="//n:LigneEnteteSituationDetaillee/@MentionSuite"/></xsl:when>
+ </xsl:choose></td>
+ <td class="bold right noborder"><xsl:value-of select="//n:LigneEnteteSituationDetaillee/@TypeTableau"/></td>
+ </tr>
+ </tbody>
+ </table>
+ <table width="100%" id="main" class="bordered">
+ <colgroup>
+ <col width="8%"/>
+ <col/>
+ <col width="8%"/>
+ <col width="8%"/>
+ <col width="8%"/>
+ <col width="8%"/>
+ <col width="8%"/>
+ <col width="8%"/>
+ <col width="8%"/>
+ <col width="8%"/>
+ </colgroup>
+ <thead>
+ <tr class="titre">
+ <td class="titre bold center borderedBold">Chapitres / articles</td>
+ <td class="titre bold center borderedBold">Intitulés</td>
+ <td class="titre bold center borderedBold">CRP initial</td>
+ <td class="titre bold center borderedBold">Décisions<br/>modificatives</td>
+ <td class="titre bold center borderedBold">Virements de crédits</td>
+ <td class="titre bold center borderedBold">Prévisions totales</td>
+ <td class="titre bold center borderedBold"><xsl:value-of select="$el//n:LigneEnteteSituationDetaillee/@TmEmis"/> émis</td>
+ <td class="titre bold center borderedBold"><xsl:value-of select="$el//n:LigneEnteteSituationDetaillee/@TmAnnules"/> annulés</td>
+ <td class="titre bold center borderedBold">Total des réalisations</td>
+ <td class="titre bold center borderedBold">Ecart Réal/Prév<br/>en %</td>
+ </tr>
+ </thead>
+ <tbody>
+ <xsl:variable name="nb.lignes" select="count($el/n:LigneSituationDetaillee)"/>
+ <xsl:for-each select="$el/n:LigneSituationDetaillee">
+ <xsl:choose>
+ <xsl:when test="contains(lower-case(@Intitule),'total')">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bordureRight bold"><xsl:value-of select="@NumCompte"/></td>
+ <td class="bordureRight bold"><xsl:value-of select="@Intitule"/></td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantInitial"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@DecisionsModificatives"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@VirementsCredits"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@PrevisionsTotales"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantEmis"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantAnnules"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight bold">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@TotalRealisations"/>
+ </xsl:call-template>
+ </td>
+ <td class="center bordureRight bold"><xsl:value-of select="@Ecart"/></td>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr>
+ <xsl:choose>
+ <xsl:when test="$numCompte != '0' and @NumCompte=$numCompte">
+ <xsl:attribute name="id">highlighted</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(position() mod 2) = 0">
+ <xsl:attribute name="id">colorised1</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="id">colorised2</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td class="bordureRight"><xsl:value-of select="@NumCompte"/></td>
+ <td class="bordureRight"><xsl:value-of select="@Intitule"/></td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantInitial"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@DecisionsModificatives"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@VirementsCredits"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@PrevisionsTotales"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantEmis"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@MontantAnnules"/>
+ </xsl:call-template>
+ </td>
+ <td class="montant bordureRight">
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="@TotalRealisations"/>
+ </xsl:call-template>
+ </td>
+ <td class="center bordureRight"><xsl:value-of select="@Ecart"/></td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </tbody>
+ </table>
+ </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file