--- /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">
+
+ <xsl:variable name="is.etat.cg" select="count(/n:CompteGestion/child::node()[string-length(name()) > 0 and name()='LivreAuxiliaire' or name()='Solde' or name()='FichesBudgetaires' or name()='DeveloppementSoldes']) eq 0"/>
+
+ <xsl:template name="navigate">
+ <xsl:param name="docId"/>
+ <xsl:param name="etatId"/>
+ <xsl:param name="elementId"/>
+ <xsl:param name="sous.elementId"/>
+ <xsl:param name="Entete"/>
+ <xsl:param name="NumPage"/>
+ <xsl:param name="isLastPage"/>
+ <xsl:param name="show.formulaire"/>
+ <xsl:param name="show.formulaire.compte" select="1"/>
+ <xsl:param name="show.depense.recette" select="0"/>
+ <xsl:param name="element.path"/>
+ <xsl:param name="path.plus"/>
+ <xsl:param name="display.logos.entete">0</xsl:param>
+ <xsl:param name="is.web"/>
+ <xsl:param name="context.path"/>
+
+ <xsl:variable name="siret.annexe" select="$Entete//n:Collectivite/@SiretBA"/>
+
+ <!-- SiretBA=<xsl:value-of select="$siret.annexe"/-->
+
+ <div class="formulaire">
+ <xsl:if test="$display.logos.entete eq '1'">
+ <table width="100%">
+ <colgroup>
+ <col/>
+ <col width="50%"/>
+ <col/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <th style="text-align: left;" valign="middle"><img src="xemelios:/resource?logo_marianne.png" alt="LogoMarianne"/></th>
+ <th> </th>
+ <th style="text-align: right;" valign="middle"><img src="xemelios:/resource?logo_ministere.png" alt="LogoMinistere"/></th>
+ </tr>
+ </tbody>
+ </table>
+ </xsl:if>
+ <table width="100%">
+ <colgroup>
+ <col width="20%"/>
+ <col/>
+ <col width="20%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <th style="text-align: left;" valign="middle"><!--#is.etat.cg=<xsl:value-of select="$is.etat.cg"/>#<xsl:value-of select="//@added:PreviousEtat"/>#-->
+ <!-- DEBUT -->
+ <xsl:choose>
+ <!-- C'est un etat CG et on est sur la première page du CG -->
+ <xsl:when test="($is.etat.cg and number($NumPage) eq number(//n:FirstPageCG/@V)) or (not($is.etat.cg) and number($NumPage) eq 1)"><img src="xemelios:/resource?navigate_beginning_inactive.png" alt="Page Précédente"/></xsl:when>
+ <xsl:otherwise><xsl:element name="a"><xsl:attribute name="class">precsuiv</xsl:attribute><xsl:attribute name="href">xemelios:/customLink?navigation=true&sens=premiere&numPage=<xsl:value-of select="$NumPage"/>&srcDocId=<xsl:value-of select="$docId"/>&srcEtatId=<xsl:value-of select="$etatId"/>&srcElementId=<xsl:value-of select="$elementId"/>&sp1=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Exercice"/>&srcCollectivite=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Siret"/>&srcBudget=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@CodeBudget"/>&srcCollectiviteCode=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Siret"/>&srcCollectiviteLibelle=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Libelle"/><xsl:if test="$path.plus">&pathplus=<xsl:value-of select="$path.plus"/></xsl:if><xsl:if test="$siret.annexe"><xsl:text disable-output-escaping="yes">&BudgetBA=</xsl:text><xsl:value-of select="$Entete//n:Collectivite/@BudgetBA"/><xsl:text disable-output-escaping="yes">&SiretBA=</xsl:text><xsl:value-of select="$siret.annexe"/></xsl:if></xsl:attribute><img src="xemelios:/resource?navigate_beginning.png" alt="<< Page Précédente"/></xsl:element></xsl:otherwise>
+ </xsl:choose>
+ <!-- PRECEDENT -->
+ <xsl:choose>
+ <!-- C'est un etat CG et on est sur la première page du CG -->
+ <xsl:when test="($is.etat.cg and number($NumPage) eq number(//n:FirstPageCG/@V)) or (not($is.etat.cg) and number($NumPage) eq 1)"><img src="xemelios:/resource?navigate_left_inactive.png" alt="Page Précédente"/></xsl:when>
+ <xsl:otherwise><xsl:element name="a"><xsl:attribute name="class">precsuiv</xsl:attribute><xsl:attribute name="href">xemelios:/customLink?navigation=true&sens=precedent&numPage=<xsl:value-of select="$NumPage"/>&srcDocId=<xsl:value-of select="$docId"/>&srcEtatId=<xsl:value-of select="$etatId"/>&srcElementId=<xsl:value-of select="$elementId"/>&sp1=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Exercice"/>&srcCollectivite=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Siret"/>&srcBudget=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@CodeBudget"/>&srcCollectiviteCode=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Siret"/>&srcCollectiviteLibelle=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Libelle"/><xsl:if test="$path.plus">&pathplus=<xsl:value-of select="$path.plus"/></xsl:if><xsl:if test="$siret.annexe"><xsl:text disable-output-escaping="yes">&BudgetBA=</xsl:text><xsl:value-of select="$Entete//n:Collectivite/@BudgetBA"/><xsl:text disable-output-escaping="yes">&SiretBA=</xsl:text><xsl:value-of select="$siret.annexe"/></xsl:if></xsl:attribute><img src="xemelios:/resource?navigate_left.png" alt="<< Page Précédente"/></xsl:element></xsl:otherwise>
+ </xsl:choose>
+ </th>
+ <th style="text-align: center;" valign="middle"><xsl:element name="a"><xsl:attribute name="class">sommaire</xsl:attribute><xsl:attribute name="href">xemelios:/query?docId=cg-colloc&etatId=Accueil&elementId=PageAccueil&collectivite=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Siret"/>&budget=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@CodeBudget"/>&sp1=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Exercice"/>&path=[number(@Modele)=3]</xsl:attribute><img src="xemelios:/resource?navigate_summary.png" alt="Sommaire"/></xsl:element>
+ <br/><!--br/-->
+ <xsl:if test="number($is.web) > 0">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="$context.path"/>/print.do?docId=<xsl:value-of select="$docId"/>&etatId=<xsl:value-of select="$etatId"/>&elementId=<xsl:value-of select="$elementId"/>&sp1=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Exercice"/>&collectivite=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Siret"/>&budget=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@CodeBudget"/>&path=[n:Pied/@NumPage=<xsl:value-of select="$NumPage"/>]</xsl:attribute>
+ <xsl:attribute name="style">text-decoration: none;</xsl:attribute><img src="xemelios:/resource?print.png" alt="Imprimer ..."/>
+ </xsl:element>
+ </xsl:if>
+ <br/>
+ <xsl:call-template name="formulaire">
+ <xsl:with-param name="docId" select="$docId"/>
+ <xsl:with-param name="etatId" select="$etatId"/>
+ <xsl:with-param name="elementId" select="$elementId"/>
+ <xsl:with-param name="sous.elementId" select="$sous.elementId"/>
+ <xsl:with-param name="Entete" select="$Entete"/>
+ <xsl:with-param name="NumPage" select="$NumPage"/>
+ <xsl:with-param name="show.formulaire" select="$show.formulaire"/>
+ <xsl:with-param name="show.formulaire.compte" select="$show.formulaire.compte"/>
+ <xsl:with-param name="show.depense.recette" select="$show.depense.recette"/>
+ <xsl:with-param name="element.path" select="$element.path"/>
+ <xsl:with-param name="path.plus" select="$path.plus"/>
+ <xsl:with-param name="is.web" select="$is.web"/>
+ <xsl:with-param name="context.path" select="$context.path"/>
+ </xsl:call-template>
+ </th>
+ <th style="text-align: right;" valign="middle">
+ <xsl:variable name="last.page.etat" select="//@added:LastPageEtat"/>
+
+ <!-- SUIVANT -->
+ <xsl:choose>
+ <xsl:when test="($is.etat.cg and (number($NumPage) eq number(//n:LastPageCG/@V))) or (not($is.etat.cg) and (number($NumPage) eq number(//@added:LastPageEtat)))">
+ <img src="xemelios:/resource?navigate_right_inactive.png" alt="Page Suivante"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:element name="a">
+ <xsl:attribute name="class">precsuiv</xsl:attribute>
+ <xsl:attribute name="href">xemelios:/customLink?navigation=true&sens=suivant&numPage=<xsl:value-of select="$NumPage"/>&srcDocId=<xsl:value-of select="$docId"/>&srcEtatId=<xsl:value-of select="$etatId"/>&srcElementId=<xsl:value-of select="$elementId"/>&sp1=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Exercice"/>&srcCollectivite=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Siret"/>&srcBudget=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@CodeBudget"/>&srcCollectiviteCode=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Siret"/>&srcCollectiviteLibelle=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Libelle"/><xsl:if test="$path.plus">&pathplus=<xsl:value-of select="$path.plus"/></xsl:if><xsl:if test="$siret.annexe"><xsl:text disable-output-escaping="yes">&BudgetBA=</xsl:text><xsl:value-of select="$Entete//n:Collectivite/@BudgetBA"/><xsl:text disable-output-escaping="yes">&SiretBA=</xsl:text><xsl:value-of select="$siret.annexe"/></xsl:if>
+ </xsl:attribute>
+ <img src="xemelios:/resource?navigate_right.png" alt="Page Suivante >>"/>
+ </xsl:element>
+ </xsl:otherwise>
+ </xsl:choose>
+ <!-- FIN -->
+ <xsl:choose>
+ <xsl:when test="($is.etat.cg and (number($NumPage) eq number(//n:LastPageCG/@V))) or (not($is.etat.cg) and (number($NumPage) eq number(//@added:LastPageEtat)))">
+ <img src="xemelios:/resource?navigate_end_inactive.png" alt="Page Suivante"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:element name="a">
+ <xsl:attribute name="class">precsuiv</xsl:attribute>
+ <xsl:attribute name="href">xemelios:/customLink?navigation=true&sens=derniere&numPage=<xsl:value-of select="$NumPage"/>&srcDocId=<xsl:value-of select="$docId"/>&srcEtatId=<xsl:value-of select="$etatId"/>&srcElementId=<xsl:value-of select="$elementId"/>&sp1=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Exercice"/>&srcCollectivite=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Siret"/>&srcBudget=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@CodeBudget"/>&srcCollectiviteCode=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Siret"/>&srcCollectiviteLibelle=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Libelle"/><xsl:if test="$path.plus">&pathplus=<xsl:value-of select="$path.plus"/></xsl:if><xsl:if test="$siret.annexe"><xsl:text disable-output-escaping="yes">&BudgetBA=</xsl:text><xsl:value-of select="$Entete//n:Collectivite/@BudgetBA"/><xsl:text disable-output-escaping="yes">&SiretBA=</xsl:text><xsl:value-of select="$siret.annexe"/></xsl:if>
+ </xsl:attribute>
+ <img src="xemelios:/resource?navigate_end.png" alt="Page Suivante >>"/>
+ </xsl:element>
+ </xsl:otherwise>
+ </xsl:choose>
+ </th>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </xsl:template>
+
+ <xsl:template name="formulaire">
+ <xsl:param name="docId"/>
+ <xsl:param name="etatId"/>
+ <xsl:param name="elementId"/>
+ <xsl:param name="sous.elementId"/>
+ <xsl:param name="Entete"/>
+ <xsl:param name="NumPage"/>
+ <xsl:param name="show.formulaire"/>
+ <xsl:param name="show.formulaire.compte"/>
+ <xsl:param name="show.depense.recette"/>
+ <xsl:param name="element.path"/>
+ <xsl:param name="path.plus"/>
+ <xsl:param name="is.web"/>
+ <xsl:param name="context.path"/>
+
+ <xsl:variable name="siret.annexe" select="$Entete//n:Collectivite/@SiretBA"/>
+
+ <span style="color:navy;"><!--Critères de recherche -->
+ <xsl:choose>
+ <xsl:when test="$show.formulaire=''">
+ <xsl:element name="a">
+ <xsl:attribute name="href">xemelios:/customLink?navigation=true&numPage=<xsl:value-of select="$NumPage"/>&srcDocId=<xsl:value-of select="$docId"/>&srcEtatId=<xsl:value-of select="$etatId"/>&srcElementId=<xsl:value-of select="$elementId"/>&sp1=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Exercice"/>&srcCollectivite=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Siret"/>&srcBudget=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@CodeBudget"/>&srcCollectiviteCode=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Siret"/>&srcCollectiviteLibelle=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Libelle"/>&path=[n:Pied/@NumPage=<xsl:value-of select="$NumPage"/>]<xsl:if test="$path.plus">&pathplus=<xsl:value-of select="$path.plus"/></xsl:if><xsl:if test="$siret.annexe"><xsl:text disable-output-escaping="yes">&BudgetBA=</xsl:text><xsl:value-of select="$Entete//n:Collectivite/@BudgetBA"/><xsl:text disable-output-escaping="yes">&SiretBA=</xsl:text><xsl:value-of select="$siret.annexe"/></xsl:if>&xsl:param=(show.formulaire,1)&xsl:param=(show.formulaire.compte,<xsl:value-of select="$show.formulaire.compte"/>)</xsl:attribute>
+ <!--xsl:attribute name="href">xemelios:/query?docId=<xsl:value-of select="$docId"/>&etatId=<xsl:value-of select="$etatId"/>&elementId=<xsl:value-of select="$elementId"/>&sp1=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Exercice"/>&collectivite=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Siret"/>&budget=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@CodeBudget"/>&path=[n:Pied/@NumPage=<xsl:value-of select="$NumPage"/>]<xsl:if test="$path.plus"><xsl:value-of select="$path.plus"/></xsl:if>&xsl:param=(show.formulaire,1)&xsl:param=(show.formulaire.compte,<xsl:value-of select="$show.formulaire.compte"/>)</xsl:attribute-->
+ <xsl:attribute name="style">text-decoration: none;</xsl:attribute><img src="xemelios:/resource?navigate_open_criteres.png" alt="Montrer"/>
+ </xsl:element>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:element name="a">
+ <xsl:attribute name="href">xemelios:/customLink?navigation=true&numPage=<xsl:value-of select="$NumPage"/>&srcDocId=<xsl:value-of select="$docId"/>&srcEtatId=<xsl:value-of select="$etatId"/>&srcElementId=<xsl:value-of select="$elementId"/>&sp1=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Exercice"/>&srcCollectivite=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Siret"/>&srcBudget=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@CodeBudget"/>&srcCollectiviteCode=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Siret"/>&srcCollectiviteLibelle=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Libelle"/>&path=[n:Pied/@NumPage=<xsl:value-of select="$NumPage"/>]<xsl:if test="$path.plus">&pathplus=<xsl:value-of select="$path.plus"/></xsl:if><xsl:if test="$siret.annexe"><xsl:text disable-output-escaping="yes">&BudgetBA=</xsl:text><xsl:value-of select="$Entete//n:Collectivite/@BudgetBA"/><xsl:text disable-output-escaping="yes">&SiretBA=</xsl:text><xsl:value-of select="$siret.annexe"/></xsl:if>&xsl:param=(show.formulaire,)&xsl:param=(show.formulaire.compte,<xsl:value-of select="$show.formulaire.compte"/>)</xsl:attribute>
+ <!--xsl:attribute name="href">xemelios:/query?docId=<xsl:value-of select="$docId"/>&etatId=<xsl:value-of select="$etatId"/>&elementId=<xsl:value-of select="$elementId"/>&sp1=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Exercice"/>&collectivite=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@Siret"/>&budget=<xsl:value-of select="$Entete//n:Infos/n:Collectivite/@CodeBudget"/>&path=[n:Pied/@NumPage=<xsl:value-of select="$NumPage"/>]<xsl:if test="$path.plus"><xsl:value-of select="$path.plus"/></xsl:if>&xsl:param=(show.formulaire,)&xsl:param=(show.formulaire.compte,<xsl:value-of select="$show.formulaire.compte"/>)</xsl:attribute-->
+ <xsl:attribute name="style">text-decoration: none;</xsl:attribute><img src="xemelios:/resource?navigate_close_criteres.png" alt="Cacher"/>
+ </xsl:element>
+ </xsl:otherwise>
+ </xsl:choose>
+ </span>
+ <br/>
+ <div>
+ <xsl:choose>
+ <xsl:when test="$show.formulaire=''">
+ <xsl:attribute name="style">display: none;</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="style">display: block;</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ <!--xsl:element name="a">
+ <xsl:attribute name="href">
+ <xsl:text disable-output-escaping="yes">xemelios:/customLink?srcDocId=cg-colloc&srcEtatId=BalanceGenerale&srcElementId=PageBalanceGenerale&srcCollectivite=</xsl:text><xsl:value-of select="$Entete//n:Collectivite/@Siret"/>
+ <xsl:text disable-output-escaping="yes">&srcBudget=</xsl:text><xsl:value-of select="$Entete//n:Collectivite/@CodeBudget"/>
+ <xsl:text disable-output-escaping="yes">&sp1=</xsl:text><xsl:value-of select="$Entete//n:Collectivite/@Exercice"/>
+ <xsl:text disable-output-escaping="yes">&numCompte=</xsl:text><xsl:value-of select="$num.compte"/>
+ <xsl:text disable-output-escaping="yes">&montant=</xsl:text><xsl:value-of select="$montant"/>
+ <xsl:text disable-output-escaping="yes">&type=totaux</xsl:text>
+ <xsl:text disable-output-escaping="yes">&cg=</xsl:text><xsl:value-of select="$Entete//n:CompteGestion/@V"/>
+ <xsl:if test="string-length($CodRD) > 0"><xsl:text disable-output-escaping="yes">&CodRD=</xsl:text><xsl:value-of select="$CodRD"/></xsl:if>
+ </xsl:attribute>
+ <xsl:call-template name="number">
+ <xsl:with-param name="num" select="$montant"/>
+ </xsl:call-template>
+ </xsl:element-->
+
+ <xsl:choose>
+ <xsl:when test="not($is.etat.cg)">
+ <xsl:choose>
+ <xsl:when test="$siret.annexe">
+ <form name="formulaireRecherchePage" method="GET" action="xemelios:/customLink" width="100%">
+ <table width="100%">
+ <caption>Accéder à une page</caption>
+ <colgroup>
+ <col width="40%"/>
+ <col width="20%"/>
+ <col width="40%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td style="text-align: right;" valign="middle"><label for="gotoPage">Page n°</label></td>
+ <td valign="middle"><input id="gotoPage" type="text" name="page"/></td>
+ <td style="text-align: left;" valign="middle"><input type="image" value="Rechercher ..." name="submit" src="xemelios:/resource?zoom.png"/></td>
+ </tr>
+ </tbody>
+ </table>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">docId</xsl:attribute>
+ <xsl:attribute name="value" select="$docId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">etatId</xsl:attribute>
+ <xsl:attribute name="value" select="$etatId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">elementId</xsl:attribute>
+ <xsl:attribute name="value" select="$elementId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">srcDocId</xsl:attribute>
+ <xsl:attribute name="value" select="$docId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">srcEtatId</xsl:attribute>
+ <xsl:attribute name="value" select="$etatId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">srcElementId</xsl:attribute>
+ <xsl:attribute name="value" select="$elementId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">srcCollectiviteCode</xsl:attribute>
+ <xsl:attribute name="value" select="$Entete//n:Infos/n:Collectivite/@Siret"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">srcCollectiviteLibelle</xsl:attribute>
+ <xsl:attribute name="value" select="$Entete//n:Infos/n:Collectivite/@Libelle"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">srcBudgetCode</xsl:attribute>
+ <xsl:attribute name="value" select="$Entete//n:Infos/n:Collectivite/@CodeBudget"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">sp1</xsl:attribute>
+ <xsl:attribute name="value" select="$Entete//n:Infos/n:Collectivite/@Exercice"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">form</xsl:attribute>
+ <xsl:attribute name="value">page</xsl:attribute>
+ </input>
+ <input type="hidden" name="path">
+ <xsl:attribute name="value">[n:Pied/@NumPage=%page%]<xsl:if test="$etatId='Solde'">[n:EnteteSolde/@Type='<xsl:value-of select="//n:EnteteSolde/@Type"/>']</xsl:if></xsl:attribute>
+ </input>
+ <xsl:if test="$path.plus"><input type="hidden" name="pathplus" value="{$path.plus}"/></xsl:if>
+ <!-- BA -->
+ <xsl:if test="$siret.annexe">
+ <input type="hidden" name="BudgetBA" value="{$Entete//n:Collectivite/@BudgetBA}"/>
+ <input type="hidden" name="SiretBA" value="{$siret.annexe}"/>
+ </xsl:if>
+ </form>
+ </xsl:when>
+ <xsl:otherwise>
+ <form name="formulaireRecherchePage" method="GET" action="xemelios:/query" width="100%">
+ <table width="100%">
+ <caption>Accéder à une page</caption>
+ <colgroup>
+ <col width="40%"/>
+ <col width="20%"/>
+ <col width="40%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td style="text-align: right;" valign="middle"><label for="gotoPage">Page n°</label></td>
+ <td valign="middle"><input id="gotoPage" type="text" name="page"/></td>
+ <td style="text-align: left;" valign="middle"><input type="image" value="Rechercher ..." name="submit" src="xemelios:/resource?zoom.png"/></td>
+ </tr>
+ </tbody>
+ </table>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">docId</xsl:attribute>
+ <xsl:attribute name="value" select="$docId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">etatId</xsl:attribute>
+ <xsl:attribute name="value" select="$etatId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">elementId</xsl:attribute>
+ <xsl:attribute name="value" select="$elementId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">collectivite</xsl:attribute>
+ <xsl:attribute name="value" select="$Entete//n:Infos/n:Collectivite/@Siret"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">budget</xsl:attribute>
+ <xsl:attribute name="value" select="$Entete//n:Infos/n:Collectivite/@CodeBudget"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">sp1</xsl:attribute>
+ <xsl:attribute name="value" select="$Entete//n:Infos/n:Collectivite/@Exercice"/>
+ </input>
+ <input type="hidden" name="path">
+ <xsl:attribute name="value">[n:Pied/@NumPage=%page%]<xsl:if test="$etatId='Solde'">[n:EnteteSolde/@Type='<xsl:value-of select="//n:EnteteSolde/@Type"/>']</xsl:if></xsl:attribute>
+ </input>
+ </form>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <form name="formulaireRecherchePage" method="GET" action="xemelios:/customLink" width="100%">
+ <table width="100%">
+ <caption>Accéder à une page</caption>
+ <colgroup>
+ <col width="40%"/>
+ <col width="20%"/>
+ <col width="40%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td style="text-align: right;" valign="middle"><label for="gotoPage">Page n°</label></td>
+ <td valign="middle"><input id="gotoPage" type="text" name="page"/></td>
+ <td style="text-align: left;" valign="middle"><input type="image" value="Rechercher ..." name="submit" src="xemelios:/resource?zoom.png"/></td>
+ </tr>
+ </tbody>
+ </table>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">docId</xsl:attribute>
+ <xsl:attribute name="value" select="$docId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">etatId</xsl:attribute>
+ <xsl:attribute name="value" select="$etatId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">elementId</xsl:attribute>
+ <xsl:attribute name="value" select="$elementId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">srcDocId</xsl:attribute>
+ <xsl:attribute name="value" select="$docId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">srcEtatId</xsl:attribute>
+ <xsl:attribute name="value" select="$etatId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">srcElementId</xsl:attribute>
+ <xsl:attribute name="value" select="$elementId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">srcCollectiviteCode</xsl:attribute>
+ <xsl:attribute name="value" select="$Entete//n:Infos/n:Collectivite/@Siret"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">srcCollectiviteLibelle</xsl:attribute>
+ <xsl:attribute name="value" select="$Entete//n:Infos/n:Collectivite/@Libelle"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">srcBudgetCode</xsl:attribute>
+ <xsl:attribute name="value" select="$Entete//n:Infos/n:Collectivite/@CodeBudget"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">sp1</xsl:attribute>
+ <xsl:attribute name="value" select="$Entete//n:Infos/n:Collectivite/@Exercice"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">form</xsl:attribute>
+ <xsl:attribute name="value">page</xsl:attribute>
+ </input>
+ <input type="hidden" name="path">
+ <xsl:attribute name="value">[n:Pied/@NumPage=%page%]<xsl:if test="$etatId='Solde'">[n:EnteteSolde/@Type='<xsl:value-of select="//n:EnteteSolde/@Type"/>']</xsl:if></xsl:attribute>
+ </input>
+ </form>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ <xsl:if test="$show.formulaire.compte and $show.formulaire.compte!=0">
+ <!--br/-->
+ <xsl:choose>
+ <xsl:when test="$siret.annexe">
+ <form name="formulaireRechercheCompte" method="GET" action="xemelios:/customLink" width="100%">
+ <table width="100%">
+ <caption>Accéder à un compte</caption>
+ <colgroup>
+ <col width="40%"/>
+ <col width="20%"/>
+ <col width="40%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td style="text-align: right;"><label for="gotoCompte">Compte n°</label></td>
+ <td><input id="gotoCompte" type="text" name="compte"/></td>
+ <td style="text-align: left;"><input type="image" value="Rechercher ..." name="submit" src="xemelios:/resource?zoom.png"/></td>
+ </tr>
+ <xsl:if test="$show.depense.recette">
+ <tr>
+ <td colspan="3">
+ <table width="100%">
+ <colgroup>
+ <col width="45%"/>
+ <col width="3%"/>
+ <col width="7%"/>
+ <col width="45%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td style="text-align: right;"><label>Dépense</label></td>
+ <td style="text-align: left;"><input name="codrd" type="radio" value="D"/></td>
+ <td style="text-align: right;"><label>Recette</label></td>
+ <td style="text-align: left;"><input name="codrd" type="radio" value="R"/></td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </xsl:if>
+ </tbody>
+ </table>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">docId</xsl:attribute>
+ <xsl:attribute name="value" select="$docId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">etatId</xsl:attribute>
+ <xsl:attribute name="value" select="$etatId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">elementId</xsl:attribute>
+ <xsl:attribute name="value" select="$elementId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">srcDocId</xsl:attribute>
+ <xsl:attribute name="value" select="$docId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">srcEtatId</xsl:attribute>
+ <xsl:attribute name="value" select="$etatId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">srcElementId</xsl:attribute>
+ <xsl:attribute name="value" select="$elementId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">srcCollectiviteCode</xsl:attribute>
+ <xsl:attribute name="value" select="$Entete//n:Infos/n:Collectivite/@Siret"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">srcCollectiviteLibelle</xsl:attribute>
+ <xsl:attribute name="value" select="$Entete//n:Infos/n:Collectivite/@Libelle"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">srcBudgetCode</xsl:attribute>
+ <xsl:attribute name="value" select="$Entete//n:Infos/n:Collectivite/@CodeBudget"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">sp1</xsl:attribute>
+ <xsl:attribute name="value" select="$Entete//n:Infos/n:Collectivite/@Exercice"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">form</xsl:attribute>
+ <xsl:attribute name="value">page</xsl:attribute>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">path</xsl:attribute>
+ <xsl:attribute name="value">[<xsl:if test="string-length($element.path)>0"><xsl:value-of select="$element.path"/>/</xsl:if>@NumCompte=%compte%]<xsl:if test="$show.depense.recette">[<xsl:if test="string-length($element.path)>0"><xsl:value-of select="$element.path"/>/</xsl:if>@CodRD=%codrd%]</xsl:if><xsl:if test="$etatId='Solde'">[n:EnteteSolde/@Type='<xsl:value-of select="//n:EnteteSolde/@Type"/>']</xsl:if></xsl:attribute>
+ </input>
+ <xsl:if test="$path.plus"><input type="hidden" name="pathplus" value="{$path.plus}"/></xsl:if>
+ <!-- BA -->
+ <xsl:if test="$siret.annexe">
+ <input type="hidden" name="BudgetBA" value="{$Entete//n:Collectivite/@BudgetBA}"/>
+ <input type="hidden" name="SiretBA" value="{$siret.annexe}"/>
+ </xsl:if>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">xsl:param</xsl:attribute>
+ <xsl:attribute name="value">(numCompte,%compte%)</xsl:attribute>
+ </input>
+ </form>
+ </xsl:when>
+ <xsl:otherwise>
+ <form name="formulaireRechercheCompte" method="GET" action="xemelios:/query" width="100%">
+ <table width="100%">
+ <caption>Accéder à un compte</caption>
+ <colgroup>
+ <col width="40%"/>
+ <col width="20%"/>
+ <col width="40%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td style="text-align: right;"><label for="gotoCompte">Compte n°</label></td>
+ <td><input id="gotoCompte" type="text" name="compte"/></td>
+ <td style="text-align: left;"><input type="image" value="Rechercher ..." name="submit" src="xemelios:/resource?zoom.png"/></td>
+ </tr>
+ <xsl:if test="$show.depense.recette">
+ <tr>
+ <td colspan="3">
+ <table width="100%">
+ <colgroup>
+ <col width="45%"/>
+ <col width="3%"/>
+ <col width="7%"/>
+ <col width="45%"/>
+ </colgroup>
+ <tbody>
+ <tr>
+ <td style="text-align: right;"><label>Dépense</label></td>
+ <td style="text-align: left;"><input name="codrd" type="radio" value="D"/></td>
+ <td style="text-align: right;"><label>Recette</label></td>
+ <td style="text-align: left;"><input name="codrd" type="radio" value="R"/></td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </xsl:if>
+ </tbody>
+ </table>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">docId</xsl:attribute>
+ <xsl:attribute name="value" select="$docId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">etatId</xsl:attribute>
+ <xsl:attribute name="value" select="$etatId"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">elementId</xsl:attribute>
+ <xsl:choose>
+ <xsl:when test="$sous.elementId!=''">
+ <xsl:attribute name="value" select="$sous.elementId"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="value" select="$elementId"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">collectivite</xsl:attribute>
+ <xsl:attribute name="value" select="$Entete//n:Infos/n:Collectivite/@Siret"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">budget</xsl:attribute>
+ <xsl:attribute name="value" select="$Entete//n:Infos/n:Collectivite/@CodeBudget"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">sp1</xsl:attribute>
+ <xsl:attribute name="value" select="$Entete//n:Infos/n:Collectivite/@Exercice"/>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">path</xsl:attribute>
+ <xsl:attribute name="value">[<xsl:if test="string-length($element.path)>0"><xsl:value-of select="$element.path"/>/</xsl:if>@NumCompte=%compte%]<xsl:if test="$show.depense.recette">[<xsl:if test="string-length($element.path)>0"><xsl:value-of select="$element.path"/>/</xsl:if>@CodRD=%codrd%]</xsl:if><xsl:if test="$etatId='Solde'">[n:EnteteSolde/@Type='<xsl:value-of select="//n:EnteteSolde/@Type"/>']</xsl:if></xsl:attribute>
+ </input>
+ <input>
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="name">xsl:param</xsl:attribute>
+ <xsl:attribute name="value">(numCompte,%compte%)</xsl:attribute>
+ </input>
+ </form>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:if>
+ </div><!--
+ __________________________________________ -->
+ </xsl:template>
+</xsl:stylesheet>