~pereerro/school-base-openerp-module/trunk

« back to all changes in this revision

Viewing changes to reports/linies_faltes_per_participacio.xsl

  • Committer: Pere Ramon Erro Mas
  • Date: 2010-12-10 20:57:18 UTC
  • Revision ID: pererem@perestriker-20101210205718-htszewba40txmfq9
[REF] Report modified to better aspect.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
3
        xmlns:fo="http://www.w3.org/1999/XSL/Format">
4
4
 
5
 
        <xsl:import href="../../base/report/corporate_defaults.xsl"/>
6
 
 
 
5
        <xsl:import href="../../base/report/corporate_defaults.xsl"/> 
7
6
        <xsl:template name="first_page_frames">
8
7
                <frame id="main" x1="2.5cm" y1="3cm" width="23cm" height="16cm"/>
9
8
        </xsl:template>
66
65
 
67
66
        <xsl:template name="stylesheet">
68
67
                <blockTableStyle id="linies_participacio_per_grup">
69
 
                        <blockFont name="Helvetica-Bold" size="6" start="0,0" stop="-1,-1"/>
 
68
                        <blockFont name="Helvetica-Bold" size="5" start="0,0" stop="-1,2"/>
 
69
                        <blockFont name="Helvetica-Bold" size="6" start="0,2" stop="-1,-1"/>
70
70
                        <blockBackground colorName="grey" start="0,0" stop="-1,1"/>
71
71
                        <blockTextColor colorName="white" start="0,0" stop="-1,1"/>
72
 
                        <blockValign value="TOP"/>
73
 
                        <blockAlignment value="CENTER" start="0,0" stop="-1,0"/>
74
 
                        <blockAlignment value="RIGHT" start="1,1" stop="-1,-1"/>
 
72
                        <blockValign value="MIDDLE"/>
 
73
                        <blockAlignment value="LEFT" start="0,0" stop="0,-1"/>
 
74
                        <blockAlignment value="CENTER" start="1,1" stop="-1,-1"/>
75
75
                        <lineStyle kind="GRID" colorName="black"/>
76
 
 
 
76
                        <lineStyle kind="OUTLINE" colorName="black" thickness="2" />
 
77
                        <xsl:for-each select="report/rfpg/dia" >
 
78
                                <xsl:if test="''!=text()">
 
79
                                <lineStyle kind="LINEAFTER" colorName="black" thickness="2" >
 
80
                                        <xsl:attribute name="start"><xsl:value-of select="position()-2"/>,0</xsl:attribute>
 
81
                                        <xsl:attribute name="stop"><xsl:value-of select="position()-2"/>,-1</xsl:attribute>
 
82
                                </lineStyle>
 
83
                                </xsl:if>
 
84
                        </xsl:for-each>
77
85
                        <!-- set the left and right padding for cells in first and third columns -->
78
86
                        <!-- remember, cell numbering starts from ZERO, not ONE
79
87
                        -->
86
94
                </blockTableStyle>
87
95
        </xsl:template>
88
96
 
 
97
 
89
98
        <xsl:template name="story">
90
99
                <xsl:apply-templates select="report/rfpg"/>
91
100
        </xsl:template>
102
111
                        Data fins <xsl:value-of select="date_to"/>
103
112
                </para>
104
113
                
105
 
                <blockTable style="linies_participacio_per_grup" repeatRows="1">
 
114
                <blockTable style="linies_participacio_per_grup" repeatRows="2">
106
115
                        <tr>
107
116
                                <xsl:apply-templates select="dia" />
108
117
                        </tr>
114
123
        </xsl:template>
115
124
 
116
125
        <xsl:template match="dia">
117
 
                <td><xsl:attribute name="colspan"><xsl:value-of select="@num_hores"/></xsl:attribute><xsl:value-of select="."/></td>            
 
126
                <td><xsl:value-of select="."/></td>             
118
127
        </xsl:template>
119
128
        <xsl:template match="hora">
120
129
                <td><xsl:value-of select="."/></td>