<head>
<title><xsl:text>Compte de Gestion Etat : Comptable </xsl:text><xsl:value-of select="/n:CompteGestionEtat/n:Entete/n:Infos/n:Collectivite/@Libelle"/> (<xsl:value-of select="/n:CompteGestionEtat/n:Entete/n:Infos/n:Collectivite/@Siret"/>)</title>
<style type="text/css" media="all">
- body { font-family: verdana; font-size: 10px; width: 99%; }
-
h1 { font-family: verdana, sans-serif; font-size: 24px; color: black; text-align: center; }
h2 { font-family: verdana, sans-serif; font-size: 21px; text-align: center; }
h3 { font-family: verdana, sans-serif; font-size: 16px; text-align: center; }
tr { page-break-inside: avoid; }
img {border: none;}
</style>
+ <style type="text/css" media="screen">
+ body { font-family: verdana; font-size: 10px; width: 99%; }
+ </style>
<style type="text/css" media="print">
@page { font-family: verdana; font-size: 10px; size: 375mm 270mm; @bottom-right { content: counter(page) " / " counter(pages); } }
a {text-decoration: none;color: black;}
+ body { font-family: verdana; font-size: 8px; width; 99%; }
</style>
-
-
-
- <!--xsl:call-template name="Error"/-->
<script>
function hideDialog() {
var dialogBox = document.getElementById("dialogBox");
dialogBox.style.visibility = "visible";
}
</script>
+ <script type="text/javascript" src="xemelios:js/js/getPdf.js"></script>
<div id="dialogBox" style="visibility: hidden; position: absolute; left: 10px; top: 10px; width: 800px; height: 100px; border-style: solid; border-width: 1px; border-color: #00006A; background-color: white; z-index: 1000;">
<table border="0" width="100%">
<tr>
</div>
</head>
<body>
- <xsl:if test="$error.message!='nomessage'">
- <xsl:attribute name="onload">javascript:showDialog('<xsl:value-of select="$error.message"/>');</xsl:attribute>
- </xsl:if>
- <!--h1>Table des matières</h1-->
+ <xsl:if test="$error.message!='nomessage'">
+ <xsl:attribute name="onload">javascript:showDialog('<xsl:value-of select="$error.message"/>');</xsl:attribute>
+ </xsl:if>
<xsl:apply-templates/>
</body>
</html>
<xsl:when test="@Etat='BalanceGenerale'">
<tr>
<td class="c1">
- <a class="nopadding"><xsl:variable name="collectivite" select="/n:CompteGestionEtat/n:Entete/n:Infos/n:Collectivite/@Siret"/>
+ <xsl:variable name="collectivite" select="/n:CompteGestionEtat/n:Entete/n:Infos/n:Collectivite/@Siret"/>
<xsl:variable name="budget" select="/n:CompteGestionEtat/n:Entete/n:Infos/n:Collectivite/@CodeBudget"/>
<xsl:variable name="exercice" select="/n:CompteGestionEtat/n:Entete/n:Infos/n:Collectivite/@Exercice"/>
- <xsl:attribute name="href">xemelios:/attachment?pjId=<xsl:value-of select="concat('CompteGestionEtat-BalanceGenerale-',$collectivite,'-',$budget,'-',$exercice,'.pdf')"/>&collectivite=<xsl:value-of select="$collectivite"/></xsl:attribute>
- <img src="xemelios:/resource?pdf-compteGestionEtat-BalanceGenerale.png"/></a></td>
+ <a class="nopadding" href="javascript:getPdf('xemelios:/generatePdf?docId=cg-etat&etatId=BalanceGenerale&collectivite={$collectivite}&budget={$budget}&sp1={$exercice}',{/n:CompteGestionEtat/n:Entete/n:Infos/n:Sommaire/n:LigneSommaire[@Code='BalanceGenerale']/(@LastPage - @FirstPage)})">
+ <img src="xemelios:/resource?pdf-compteGestionEtat-BalanceGenerale.png"/>
+ </a>
+ </td>
<td class="c2">
<xsl:text disable-output-escaping="yes"><![CDATA[<a href="xemelios:/query?docId=]]></xsl:text><xsl:choose>
<xsl:when test="name(/child::node()[1])='CompteGestionEtat'">cg-etat</xsl:when>
</xsl:when>
<xsl:otherwise>
<tr>
- <td class="c1"> </td>
+ <td class="c1">
+ <xsl:variable name="collectivite" select="/n:CompteGestionEtat/n:Entete/n:Infos/n:Collectivite/@Siret"/>
+ <xsl:variable name="budget" select="/n:CompteGestionEtat/n:Entete/n:Infos/n:Collectivite/@CodeBudget"/>
+ <xsl:variable name="exercice" select="/n:CompteGestionEtat/n:Entete/n:Infos/n:Collectivite/@Exercice"/>
+ <a class="nopadding" href="javascript:getPdf('xemelios:/generatePdf?docId=cg-etat&etatId={$Etat}&collectivite={$collectivite}&budget={$budget}&sp1={$exercice}',{/n:CompteGestionEtat/n:Entete/n:Infos/n:Sommaire/n:LigneSommaire[@Code=$Etat]/(@LastPage - @FirstPage)})">
+ <img src="xemelios:/resource?pdf-compteGestionEtat-BalanceGenerale.png"/>
+ </a>
+ </td>
<td class="c2">
<xsl:text disable-output-escaping="yes"><![CDATA[<a href="xemelios:/query?docId=]]></xsl:text><xsl:choose>
<xsl:when test="name(/child::node()[1])='CompteGestionEtat'">cg-etat</xsl:when>