Rev 1551 | Rev 1554 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1553 | jmachado | 1 | <?xml version="1.0" encoding="UTF-8"?> |
1549 | jmachado | 2 | <xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" |
3 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
||
1553 | jmachado | 4 | |
1549 | jmachado | 5 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
6 | xsi:schemaLocation="http://www.w3.org/1999/XSL/Format http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/fop/src/foschema/fop.xsd"> |
||
7 | <xsl:param name="site">http://localhost/bacoTESTE</xsl:param> |
||
1553 | jmachado | 8 | <xsl:param name="updateDate">EM FALTA</xsl:param> |
9 | <xsl:param name="anoLectivo"><xsl:value-of select="//anoLectivo"/></xsl:param> |
||
10 | <xsl:param name="nomeDocente"><xsl:value-of select="//nomeDocente"/></xsl:param> |
||
11 | <xsl:param name="numeroDocente"><xsl:value-of select="//numeroDocente"/></xsl:param> |
||
1549 | jmachado | 12 | |
13 | |||
1553 | jmachado | 14 | |
15 | |||
16 | |||
1549 | jmachado | 17 | <xsl:template match="/"> |
1553 | jmachado | 18 | <!--<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Helvetica" color="#58585A">--> |
19 | <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Helvetica" color="black"> |
||
1549 | jmachado | 20 | <fo:layout-master-set> |
21 | <fo:simple-page-master master-name="A4Vertical" page-width="210mm" page-height="297mm" |
||
22 | margin-top="1cm" margin-bottom="1cm" margin-left="1cm" margin-right="1cm" |
||
23 | reference-orientation="0"> |
||
1551 | jmachado | 24 | <fo:region-body region-name="body" margin-top="40mm" margin-bottom="10mm" margin-right="0" |
1549 | jmachado | 25 | margin-left="0"/> |
26 | |||
27 | <fo:region-before region-name="header" extent="15mm"/> |
||
28 | <fo:region-after region-name="footer" extent="1cm"/> |
||
29 | </fo:simple-page-master> |
||
30 | |||
31 | <fo:simple-page-master master-name="A4VerticalFirstPage" page-width="210mm" page-height="297mm" |
||
32 | margin-top="1cm" margin-bottom="1cm" margin-left="1cm" margin-right="1cm" |
||
33 | reference-orientation="0"> |
||
34 | <fo:region-body region-name="body" margin-top="90mm" margin-bottom="10mm" margin-right="0" |
||
35 | margin-left="0"/> |
||
36 | |||
37 | <fo:region-before region-name="header" extent="15mm"/> |
||
38 | <fo:region-after region-name="footer" extent="1cm"/> |
||
39 | </fo:simple-page-master> |
||
40 | |||
41 | |||
42 | |||
43 | <fo:simple-page-master master-name="A4HorizontalRot" page-width="210mm" page-height="297mm" |
||
44 | margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm" margin-right="0.5cm" |
||
45 | reference-orientation="90"> |
||
46 | <fo:region-body region-name="body" margin-top="20mm" margin-bottom="10mm" margin-right="0" |
||
47 | margin-left="0"/> |
||
48 | <fo:region-before region-name="header" extent="15mm"/> |
||
49 | <fo:region-after region-name="footer" extent="1cm"/> |
||
50 | </fo:simple-page-master> |
||
51 | <fo:simple-page-master master-name="A4Horizontal" page-width="297mm" page-height="210mm" |
||
52 | margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm" |
||
53 | margin-right="0.5cm"> |
||
54 | <fo:region-body region-name="body" margin-top="20mm" margin-bottom="15mm" margin-right="0" |
||
55 | margin-left="0"/> |
||
56 | <fo:region-before region-name="header" extent="15mm"/> |
||
57 | <fo:region-after region-name="footer" extent="1cm"/> |
||
58 | </fo:simple-page-master> |
||
59 | <fo:page-sequence-master master-name="pages"> |
||
60 | <fo:repeatable-page-master-alternatives> |
||
61 | <fo:conditional-page-master-reference master-reference="pages" page-position="any"/> |
||
62 | </fo:repeatable-page-master-alternatives> |
||
63 | </fo:page-sequence-master> |
||
64 | </fo:layout-master-set> |
||
65 | |||
66 | <!--LAYOUT DE PAGINA ESCOLHIDO--> |
||
67 | |||
68 | <fo:page-sequence master-reference="A4VerticalFirstPage" initial-page-number="1"> |
||
69 | <xsl:call-template name="firstpage"/> |
||
70 | </fo:page-sequence> |
||
71 | <fo:page-sequence master-reference="A4Vertical" initial-page-number="2"> |
||
1551 | jmachado | 72 | <xsl:call-template name="indexPage"/> |
73 | </fo:page-sequence> |
||
74 | <fo:page-sequence master-reference="A4Vertical" initial-page-number="3"> |
||
1549 | jmachado | 75 | <xsl:call-template name="page"/> |
76 | </fo:page-sequence> |
||
77 | |||
78 | |||
79 | </fo:root> |
||
80 | </xsl:template> |
||
81 | |||
82 | |||
83 | <xsl:template name="firstpage"> |
||
84 | <fo:static-content flow-name="header"> |
||
85 | <fo:block text-align="left"> |
||
86 | <fo:table width="100%" table-layout="fixed" border-bottom="1px solid black"> |
||
87 | <fo:table-column column-width="100%"/> |
||
88 | <fo:table-body> |
||
89 | <fo:table-row> |
||
90 | <fo:table-cell> |
||
91 | <fo:block> |
||
92 | <fo:external-graphic height="auto" width="auto" |
||
93 | content-height="80"> |
||
94 | <!--<xsl:attribute name="src">url('http://www.ipportalegre.pt/imagens/Logos/ESTG/Logotipo%20ESTG.jpg')</xsl:attribute>--> |
||
1553 | jmachado | 95 | <xsl:attribute name="src">url('<xsl:value-of select="$site"/>/layout/themes/ipp/logo.jpg') |
1549 | jmachado | 96 | </xsl:attribute> |
97 | </fo:external-graphic> |
||
98 | </fo:block> |
||
99 | </fo:table-cell> |
||
100 | |||
101 | </fo:table-row> |
||
102 | |||
103 | </fo:table-body> |
||
104 | </fo:table> |
||
105 | |||
106 | </fo:block> |
||
107 | </fo:static-content> |
||
108 | <fo:static-content flow-name="footer"> |
||
1551 | jmachado | 109 | <xsl:call-template name="footerDefault"/> |
1549 | jmachado | 110 | </fo:static-content> |
111 | |||
112 | |||
113 | <fo:flow flow-name="body"> |
||
1551 | jmachado | 114 | <fo:block border-bottom="8px solid #58585A" border-top="4px solid #58585A" font-size="26px" padding="6px" text-align="center" color="white" background-color="#FFCA44"> |
1553 | jmachado | 115 | <fo:inline font-weight="bold"> Relatório de Avaliação Pedagógica</fo:inline> |
1549 | jmachado | 116 | </fo:block> |
117 | |||
118 | <fo:block font-size="20px" padding="4px" margin-top="40px" text-align="center" > |
||
1553 | jmachado | 119 | <fo:inline text-decoration="underline" font-weight="bold">Inquéritos Pedagógicos aos Alunos</fo:inline> |
1549 | jmachado | 120 | </fo:block> |
121 | |||
1551 | jmachado | 122 | <fo:block font-size="18px" padding="4px" margin-top="20px" text-align="center"> |
1553 | jmachado | 123 | <fo:inline>Relatório Docente</fo:inline> |
1549 | jmachado | 124 | </fo:block> |
125 | |||
1551 | jmachado | 126 | <fo:block font-size="14px" padding="4px" margin-top="5px" text-align="center" background-color="#fff9ea"> |
1549 | jmachado | 127 | <xsl:value-of select="$nomeDocente"/> |
128 | </fo:block> |
||
129 | <fo:block font-size="12px" padding="4px" margin-top="2px" text-align="center"> |
||
1553 | jmachado | 130 | <fo:inline>Docente Número: <xsl:value-of select="$numeroDocente"/></fo:inline> |
1549 | jmachado | 131 | </fo:block> |
132 | <fo:block font-size="12px" padding="4px" margin-top="20px" text-align="center" > |
||
1551 | jmachado | 133 | <fo:inline><fo:wrapper white-space-treatment="preserve" font-weight="bold">Ano letivo: </fo:wrapper> <xsl:value-of select="$anoLectivo"/></fo:inline> |
1549 | jmachado | 134 | </fo:block> |
135 | </fo:flow> |
||
136 | </xsl:template> |
||
137 | |||
1551 | jmachado | 138 | <xsl:template name="indexPage"> |
139 | <fo:static-content flow-name="header"> |
||
140 | <xsl:call-template name="headerTeacher"/> |
||
141 | </fo:static-content> |
||
142 | <fo:static-content flow-name="footer"> |
||
143 | <xsl:call-template name="footerDefault"/> |
||
144 | </fo:static-content> |
||
145 | |||
146 | <fo:flow flow-name="body"> |
||
147 | |||
148 | <fo:block font-size="20px" padding="4px" margin-top="40px" text-align="center" > |
||
149 | <fo:inline text-decoration="underline" font-weight="bold">Indice</fo:inline> |
||
150 | </fo:block> |
||
151 | |||
152 | |||
153 | <fo:block text-align-last="justify" font-weight="bold" margin-bottom="5px"> |
||
154 | <xsl:text> </xsl:text> |
||
155 | <fo:leader/> |
||
156 | Pag. |
||
157 | </fo:block> |
||
158 | |||
159 | <fo:block font-size="14px" text-align-last="justify"> |
||
1553 | jmachado | 160 | <fo:basic-link internal-destination="capParticipacao"> |
1551 | jmachado | 161 | <fo:inline font-weight="bold" padding-top="3px" padding-bottom="2px" padding-left="3px" padding-right="3px" margin-right="10px" border-bottom="1px solid #58585A" font-size="16px" color="white" background-color="#FFCA44">1</fo:inline> |
162 | <xsl:text> </xsl:text> |
||
1553 | jmachado | 163 | Participação nos Questionários do Docente |
1551 | jmachado | 164 | <fo:leader leader-pattern="dots" /> |
1553 | jmachado | 165 | <fo:page-number-citation ref-id="capParticipacao" /> |
1551 | jmachado | 166 | </fo:basic-link> |
167 | </fo:block> |
||
168 | <fo:block font-size="14px" text-align-last="justify" margin-top="5px"> |
||
1553 | jmachado | 169 | <fo:basic-link internal-destination="capCaracterizacao"> |
1551 | jmachado | 170 | <fo:inline font-weight="bold" padding-top="3px" padding-bottom="2px" padding-left="3px" padding-right="3px" margin-right="10px" border-bottom="1px solid #58585A" font-size="16px" color="white" background-color="#FFCA44">2</fo:inline> |
171 | <xsl:text> </xsl:text> |
||
1553 | jmachado | 172 | Caracterização da Amostra |
1551 | jmachado | 173 | <fo:leader leader-pattern="dots" /> |
1553 | jmachado | 174 | <fo:page-number-citation ref-id="capCaracterizacao" /> |
1551 | jmachado | 175 | </fo:basic-link> |
176 | </fo:block> |
||
1553 | jmachado | 177 | <fo:block font-size="14px" text-align-last="justify" margin-top="5px"> |
178 | <fo:basic-link internal-destination="capQuestoes"> |
||
179 | <fo:inline font-weight="bold" padding-top="3px" padding-bottom="2px" padding-left="3px" padding-right="3px" margin-right="10px" border-bottom="1px solid #58585A" font-size="16px" color="white" background-color="#FFCA44">2</fo:inline> |
||
180 | <xsl:text> </xsl:text> |
||
181 | Análise das Questões sobre o Docente |
||
182 | <fo:leader leader-pattern="dots" /> |
||
183 | <fo:page-number-citation ref-id="capQuestoes" /> |
||
184 | </fo:basic-link> |
||
185 | </fo:block> |
||
1551 | jmachado | 186 | |
187 | |||
188 | </fo:flow> |
||
189 | </xsl:template> |
||
190 | |||
1553 | jmachado | 191 | <xsl:template name="seccao"> |
192 | <xsl:param name="text"/> |
||
193 | <fo:block |
||
194 | font-size="16px" |
||
195 | font-weight="bold" |
||
196 | padding="4px" |
||
197 | margin-top="5px" |
||
198 | text-align="left" |
||
199 | background-color="#FFEAAE"> |
||
200 | <xsl:value-of select="$text"/> |
||
201 | </fo:block> |
||
202 | </xsl:template> |
||
1551 | jmachado | 203 | |
1553 | jmachado | 204 | <xsl:template name="subSeccao"> |
205 | <xsl:param name="text"/> |
||
206 | <fo:block font-size="13px" |
||
207 | padding-top="3px" |
||
208 | padding-bottom="3px" |
||
209 | padding-left="5px" |
||
210 | margin-top="30px" |
||
211 | margin-bottom="20px" |
||
212 | text-align="left" |
||
213 | background-color="#D6D9BC"> |
||
214 | <xsl:value-of select="$text"/> |
||
215 | </fo:block> |
||
216 | </xsl:template> |
||
217 | |||
1549 | jmachado | 218 | <xsl:template name="page"> |
219 | <fo:static-content flow-name="header"> |
||
1551 | jmachado | 220 | <xsl:call-template name="headerTeacher"/> |
221 | </fo:static-content> |
||
222 | <fo:static-content flow-name="footer"> |
||
223 | <xsl:call-template name="footerDefault"/> |
||
224 | </fo:static-content> |
||
1549 | jmachado | 225 | |
1551 | jmachado | 226 | <fo:flow flow-name="body"> |
1553 | jmachado | 227 | <fo:block-container padding="0" margin="0" id="capParticipacao" page-break-before="always"> |
228 | <xsl:call-template name="seccao"> |
||
229 | <xsl:with-param name="text">1 - Participação</xsl:with-param> |
||
230 | </xsl:call-template> |
||
231 | </fo:block-container> |
||
232 | |||
233 | |||
234 | |||
235 | <xsl:call-template name="subSeccao"> |
||
236 | <xsl:with-param name="text">Taxa Global de Participação aos Questionários do Docente</xsl:with-param> |
||
237 | </xsl:call-template> |
||
238 | |||
239 | <fo:block-container font-size="18" text-align="center" font-weight="bold"> |
||
240 | <xsl:call-template name="barraPercentil"> |
||
241 | <xsl:with-param name="valor" select="//questionariosReqRespondidosPercentagem"/> |
||
242 | <xsl:with-param name="colors">true</xsl:with-param> |
||
243 | </xsl:call-template> |
||
244 | </fo:block-container> |
||
245 | |||
246 | |||
247 | |||
248 | <fo:block margin-left="10px"> |
||
249 | |||
250 | |||
251 | <fo:table width="100%" table-layout="fixed"> |
||
252 | <fo:table-column column-width="50%"/> |
||
253 | <fo:table-column column-width="50%"/> |
||
254 | <fo:table-body> |
||
255 | <fo:table-row> |
||
256 | <fo:table-cell> |
||
257 | |||
258 | |||
259 | <xsl:call-template name="subSeccao"> |
||
260 | <xsl:with-param name="text"> |
||
261 | Taxa de Participação |
||
262 | </xsl:with-param> |
||
263 | </xsl:call-template> |
||
264 | <fo:block> |
||
265 | <fo:external-graphic width="auto" height="auto" content-height="140"> |
||
266 | <!--<xsl:attribute name="src">url('http://www.ipportalegre.pt/imagens/Logos/ESTG/Logotipo%20ESTG.jpg')</xsl:attribute>--> |
||
267 | <xsl:attribute name="src"><xsl:value-of select="//pathGraficoTaxaRespostaAlunos"/> |
||
268 | </xsl:attribute> |
||
269 | </fo:external-graphic> |
||
270 | </fo:block> |
||
271 | |||
272 | </fo:table-cell> |
||
273 | <fo:table-cell> |
||
274 | |||
275 | <xsl:call-template name="subSeccao"> |
||
276 | <xsl:with-param name="text"> |
||
277 | Taxa de Resposta a Questionarios |
||
278 | </xsl:with-param> |
||
279 | </xsl:call-template> |
||
280 | <fo:block> |
||
281 | <fo:external-graphic width="auto" height="auto" content-height="140"> |
||
282 | <!--<xsl:attribute name="src">url('http://www.ipportalegre.pt/imagens/Logos/ESTG/Logotipo%20ESTG.jpg')</xsl:attribute>--> |
||
283 | <xsl:attribute name="src"><xsl:value-of select="//pathGraficoTaxaRespostaQuestionarios"/></xsl:attribute> |
||
284 | </fo:external-graphic> |
||
285 | </fo:block> |
||
286 | |||
287 | </fo:table-cell> |
||
288 | </fo:table-row> |
||
289 | <fo:table-row> |
||
290 | <fo:table-cell number-columns-spanned="2"> |
||
291 | |||
292 | <xsl:call-template name="subSeccao"> |
||
293 | <xsl:with-param name="text"> |
||
294 | Taxa de Participação por Unidade Curricular |
||
295 | </xsl:with-param> |
||
296 | </xsl:call-template> |
||
297 | <fo:block text-align="center" margin-left="10px" font-size="10" font-weight="normal" margin-right="10px"> |
||
298 | <xsl:apply-templates select="//tabelaTaxaRespostaUnidade" mode="DataTable"/> |
||
299 | </fo:block> |
||
300 | </fo:table-cell> |
||
301 | </fo:table-row> |
||
302 | </fo:table-body> |
||
303 | </fo:table> |
||
1551 | jmachado | 304 | </fo:block> |
305 | |||
1553 | jmachado | 306 | |
307 | <fo:block-container page-break-before="always" padding="0" margin="0" id="capCaracterizacao"> |
||
308 | <xsl:call-template name="seccao"> |
||
309 | <xsl:with-param name="text"> |
||
310 | 2 - Caracterização da Amostra Recolhida |
||
311 | </xsl:with-param> |
||
312 | </xsl:call-template> |
||
313 | </fo:block-container> |
||
314 | |||
315 | |||
316 | |||
317 | |||
318 | |||
319 | |||
1551 | jmachado | 320 | <fo:block text-align="center" margin-left="10px"> |
321 | <fo:table width="100%" table-layout="fixed"> |
||
1549 | jmachado | 322 | <fo:table-column column-width="50%"/> |
323 | <fo:table-column column-width="50%"/> |
||
324 | <fo:table-body> |
||
325 | <fo:table-row> |
||
326 | <fo:table-cell> |
||
327 | |||
1553 | jmachado | 328 | <xsl:call-template name="subSeccao"> |
329 | <xsl:with-param name="text"> |
||
330 | Género |
||
331 | </xsl:with-param> |
||
332 | </xsl:call-template> |
||
1551 | jmachado | 333 | |
1553 | jmachado | 334 | <fo:block> |
335 | <fo:table width="90%" table-layout="fixed" > |
||
1551 | jmachado | 336 | <fo:table-column column-width="50%"/> |
337 | <fo:table-column column-width="50%"/> |
||
338 | <fo:table-body> |
||
339 | <fo:table-row> |
||
340 | <fo:table-cell> |
||
341 | <fo:block> |
||
1553 | jmachado | 342 | <xsl:value-of select="//masculinoComResposta"/> |
1551 | jmachado | 343 | </fo:block> |
344 | <fo:block> |
||
345 | <fo:external-graphic height="auto" width="auto" |
||
1553 | jmachado | 346 | content-height="120"> |
1551 | jmachado | 347 | <!--<xsl:attribute name="src">url('http://www.ipportalegre.pt/imagens/Logos/ESTG/Logotipo%20ESTG.jpg')</xsl:attribute>--> |
348 | <xsl:attribute name="src">url('<xsl:value-of select="$site"/>/imgs/studentMale.png') |
||
349 | </xsl:attribute> |
||
350 | </fo:external-graphic> |
||
351 | </fo:block> |
||
352 | <fo:block> |
||
1553 | jmachado | 353 | <xsl:value-of select="//masculinoComRespostaPercent"/>% |
1551 | jmachado | 354 | </fo:block> |
355 | </fo:table-cell> |
||
356 | <fo:table-cell> |
||
357 | <fo:block> |
||
1553 | jmachado | 358 | <xsl:value-of select="//femininoComResposta"/> |
1551 | jmachado | 359 | </fo:block> |
360 | <fo:block> |
||
361 | <fo:external-graphic height="auto" width="auto" |
||
1553 | jmachado | 362 | content-height="120"> |
1551 | jmachado | 363 | <!--<xsl:attribute name="src">url('http://www.ipportalegre.pt/imagens/Logos/ESTG/Logotipo%20ESTG.jpg')</xsl:attribute>--> |
364 | <xsl:attribute name="src">url('<xsl:value-of select="$site"/>/imgs/studentFemale.png') |
||
365 | </xsl:attribute> |
||
366 | </fo:external-graphic> |
||
367 | </fo:block> |
||
368 | <fo:block> |
||
1553 | jmachado | 369 | <xsl:value-of select="//femininoComRespostaPercent"/>% |
1551 | jmachado | 370 | </fo:block> |
371 | </fo:table-cell> |
||
372 | </fo:table-row> |
||
373 | </fo:table-body> |
||
374 | </fo:table> |
||
1553 | jmachado | 375 | </fo:block> |
1551 | jmachado | 376 | |
377 | |||
378 | |||
1549 | jmachado | 379 | </fo:table-cell> |
380 | <fo:table-cell> |
||
1553 | jmachado | 381 | |
382 | |||
383 | |||
384 | |||
385 | <xsl:call-template name="subSeccao"> |
||
386 | <xsl:with-param name="text"> |
||
387 | Tipos de Alunos |
||
388 | </xsl:with-param> |
||
389 | </xsl:call-template> |
||
390 | |||
391 | <fo:block margin-top="5px"> |
||
392 | <fo:external-graphic width="auto" height="auto" content-width="250" content-height="150"> |
||
1551 | jmachado | 393 | <!--<xsl:attribute name="src">url('http://www.ipportalegre.pt/imagens/Logos/ESTG/Logotipo%20ESTG.jpg')</xsl:attribute>--> |
1553 | jmachado | 394 | <xsl:attribute name="src"><xsl:value-of select="//pathGraficoTiposAlunosComResposta"/> |
395 | </xsl:attribute> |
||
1551 | jmachado | 396 | </fo:external-graphic> |
1549 | jmachado | 397 | </fo:block> |
1553 | jmachado | 398 | |
399 | |||
400 | |||
1549 | jmachado | 401 | </fo:table-cell> |
402 | |||
403 | </fo:table-row> |
||
1553 | jmachado | 404 | <fo:table-row> |
405 | <fo:table-cell> |
||
1549 | jmachado | 406 | |
1553 | jmachado | 407 | <xsl:call-template name="subSeccao"> |
408 | <xsl:with-param name="text"> |
||
409 | Idades |
||
410 | </xsl:with-param> |
||
411 | </xsl:call-template> |
||
412 | |||
413 | <fo:block text-align="center" margin-left="10px" font-size="10" font-weight="normal" margin-right="10px"> |
||
414 | <xsl:apply-templates select="//tabelaIdades" mode="DataTable"/> |
||
415 | </fo:block> |
||
416 | |||
417 | </fo:table-cell> |
||
418 | <fo:table-cell> |
||
419 | |||
420 | <xsl:call-template name="subSeccao"> |
||
421 | <xsl:with-param name="text"> |
||
422 | Distritos |
||
423 | </xsl:with-param> |
||
424 | </xsl:call-template> |
||
425 | |||
426 | |||
427 | <fo:block text-align="center" margin-left="10px" font-size="10" font-weight="normal" margin-right="10px"> |
||
428 | <xsl:apply-templates select="//tabelaDistritos" mode="DataTable"/> |
||
429 | </fo:block> |
||
430 | |||
431 | </fo:table-cell> |
||
432 | |||
433 | </fo:table-row> |
||
434 | |||
1549 | jmachado | 435 | </fo:table-body> |
436 | </fo:table> |
||
1553 | jmachado | 437 | </fo:block> |
1549 | jmachado | 438 | |
1553 | jmachado | 439 | |
440 | |||
441 | <fo:block-container padding="0" margin="0" id="capQuestoes" page-break-before="always"> |
||
442 | <xsl:call-template name="seccao"> |
||
443 | <xsl:with-param name="text">3 - Análise das Questões sobre o Docente</xsl:with-param> |
||
444 | </xsl:call-template> |
||
445 | </fo:block-container> |
||
446 | |||
447 | |||
448 | |||
449 | |||
450 | |||
1551 | jmachado | 451 | </fo:flow> |
452 | </xsl:template> |
||
1549 | jmachado | 453 | |
454 | |||
1553 | jmachado | 455 | |
456 | |||
457 | <xsl:template name="barraPercentil"> |
||
458 | <xsl:param name="valor"/> |
||
459 | <xsl:param name="colors">false</xsl:param> |
||
460 | <fo:block-container margin="2px" border="1px solid #C6C6CA" padding="0"> |
||
461 | <xsl:choose> |
||
462 | <xsl:when test="$colors = 'false'"> |
||
463 | <xsl:attribute name="border">1px solid #C6C6CA</xsl:attribute> |
||
464 | </xsl:when> |
||
465 | <xsl:otherwise> |
||
466 | <xsl:attribute name="border">2px solid #FFEAAE</xsl:attribute> |
||
467 | </xsl:otherwise> |
||
468 | </xsl:choose> |
||
469 | <fo:block-container border="1px solid #C6C6CA" margin="0" padding-top="2px" padding-bottom="0"> |
||
470 | <xsl:choose> |
||
471 | <xsl:when test="$colors = 'false'"> |
||
472 | <xsl:attribute name="background-color">#B9F1B1</xsl:attribute> |
||
473 | |||
474 | </xsl:when> |
||
475 | <xsl:otherwise> |
||
476 | |||
477 | <xsl:choose> |
||
478 | <xsl:when test="$valor < 25"> |
||
479 | <xsl:attribute name="background-color">red</xsl:attribute> |
||
480 | <xsl:attribute name="color">white</xsl:attribute> |
||
481 | </xsl:when> |
||
482 | <xsl:when test="$valor < 40"><xsl:attribute name="background-color">orange</xsl:attribute></xsl:when> |
||
483 | <xsl:when test="$valor < 55"><xsl:attribute name="background-color">yellow</xsl:attribute></xsl:when> |
||
484 | <xsl:otherwise> |
||
485 | <xsl:attribute name="background-color">#B9F1B1</xsl:attribute> |
||
486 | </xsl:otherwise> |
||
487 | </xsl:choose> |
||
488 | </xsl:otherwise> |
||
489 | </xsl:choose> |
||
490 | <xsl:attribute name="width"><xsl:value-of select="$valor"/>%</xsl:attribute> |
||
491 | <fo:block><xsl:value-of select="$valor"/>%</fo:block> |
||
492 | </fo:block-container> |
||
493 | </fo:block-container> |
||
494 | </xsl:template> |
||
495 | |||
496 | |||
1551 | jmachado | 497 | <xsl:template name="footerDefault"> |
498 | <fo:table width="100%" table-layout="fixed" border-top="1px solid black" font-size="6.5pt"> |
||
499 | <fo:table-column column-width="20%"/> |
||
500 | <fo:table-column column-width="80%"/> |
||
1549 | jmachado | 501 | |
502 | |||
1551 | jmachado | 503 | <fo:table-body> |
504 | <fo:table-row> |
||
505 | <fo:table-cell padding-top="3pt"> |
||
506 | <fo:block> |
||
507 | Atualizado a |
||
1553 | jmachado | 508 | <xsl:value-of select="$updateDate"/> / Página |
1551 | jmachado | 509 | <fo:page-number/> |
510 | </fo:block> |
||
511 | <fo:block font-size="5pt"> |
||
512 | IPP.AC.xxxx.1 |
||
513 | </fo:block> |
||
514 | |||
515 | </fo:table-cell> |
||
516 | <fo:table-cell padding-top="3pt"> |
||
517 | <fo:block font-size="6pt" text-align="right"> |
||
1553 | jmachado | 518 | http://pae.ipportalegre.pt | gerado pela plataforma ipp-pae® 2016 |
1551 | jmachado | 519 | </fo:block> |
520 | </fo:table-cell> |
||
521 | </fo:table-row> |
||
522 | </fo:table-body> |
||
523 | </fo:table> |
||
524 | </xsl:template> |
||
525 | <xsl:template name="headerTeacher"> |
||
526 | <fo:block text-align="left" border-bottom="1px solid #58585A"> |
||
527 | <fo:table width="100%" table-layout="fixed" > |
||
1549 | jmachado | 528 | <fo:table-column column-width="80%"/> |
1551 | jmachado | 529 | <fo:table-column column-width="20%"/> |
1549 | jmachado | 530 | |
531 | |||
532 | <fo:table-body> |
||
533 | <fo:table-row> |
||
1551 | jmachado | 534 | <fo:table-cell> |
1549 | jmachado | 535 | <fo:block> |
1551 | jmachado | 536 | <fo:external-graphic height="auto" width="auto" |
537 | content-height="40"> |
||
538 | <!--<xsl:attribute name="src">url('http://www.ipportalegre.pt/imagens/Logos/ESTG/Logotipo%20ESTG.jpg')</xsl:attribute>--> |
||
1553 | jmachado | 539 | <xsl:attribute name="src">url('<xsl:value-of select="$site"/>/layout/themes/ipp/logo.jpg') |
1551 | jmachado | 540 | </xsl:attribute> |
541 | </fo:external-graphic> |
||
1549 | jmachado | 542 | </fo:block> |
1551 | jmachado | 543 | <fo:block font-size="10px" padding="0px" text-align="left"> |
1553 | jmachado | 544 | <fo:inline font-weight="bold"> Relatório de Avaliação Pedagógica</fo:inline> |
1549 | jmachado | 545 | </fo:block> |
1551 | jmachado | 546 | <fo:block font-size="10px" padding="0px" margin-top="0px" text-align="left" > |
1553 | jmachado | 547 | <fo:inline>Avaliação pelos alunos do docente:</fo:inline> |
1551 | jmachado | 548 | </fo:block> |
549 | </fo:table-cell> |
||
550 | <fo:table-cell> |
||
551 | <fo:block font-size="10px" text-align="right" > |
||
1553 | jmachado | 552 | Resultados dos Inquéritos Pedagógicos |
1551 | jmachado | 553 | </fo:block> |
554 | <fo:block font-size="10px" padding="0px" margin-top="0px" text-align="right" > |
||
555 | <fo:inline font-weight="bold">Ano letivo:</fo:inline> <xsl:value-of select="$anoLectivo"/> |
||
556 | </fo:block> |
||
557 | </fo:table-cell> |
||
1549 | jmachado | 558 | |
1551 | jmachado | 559 | </fo:table-row> |
560 | <fo:table-row background-color="#fff9ea"> |
||
561 | <fo:table-cell> |
||
562 | <fo:block font-size="12px" padding="2px" margin-top="0px" > |
||
1553 | jmachado | 563 | <fo:inline text-align="left"><xsl:value-of select="$nomeDocente"/> / Número: <xsl:value-of select="$numeroDocente"/></fo:inline> |
1551 | jmachado | 564 | </fo:block> |
1549 | jmachado | 565 | </fo:table-cell> |
1551 | jmachado | 566 | <fo:table-cell> |
567 | <fo:block font-size="12px" padding="2px" margin-top="0px" text-align="right" > |
||
568 | <fo:inline>Pagina: <fo:page-number/></fo:inline> |
||
1549 | jmachado | 569 | </fo:block> |
570 | </fo:table-cell> |
||
1551 | jmachado | 571 | |
1549 | jmachado | 572 | </fo:table-row> |
1551 | jmachado | 573 | |
1549 | jmachado | 574 | </fo:table-body> |
575 | </fo:table> |
||
576 | |||
577 | |||
578 | |||
579 | |||
1551 | jmachado | 580 | </fo:block> |
1549 | jmachado | 581 | </xsl:template> |
582 | |||
583 | |||
1553 | jmachado | 584 | <xsl:template match="*" mode="DataTable"> |
585 | <xsl:variable name="backgroundHeader">#FFEAAE</xsl:variable> |
||
586 | <xsl:variable name="backgroundNormal">#FFFFFF</xsl:variable> |
||
587 | <xsl:variable name="backgroundFooter">#FFEAAE</xsl:variable> |
||
588 | <xsl:variable name="borderInHeader">4px solid black</xsl:variable> |
||
589 | <xsl:variable name="borderInCell">2px dashed black</xsl:variable> |
||
590 | <xsl:variable name="borderInFooter">4px solid black</xsl:variable> |
||
591 | <xsl:variable name="borderInCellVertical">2px solid black</xsl:variable> |
||
592 | <xsl:variable name="borderTable">4px solid black</xsl:variable> |
||
593 | <fo:table width="100%" table-layout="fixed"> |
||
594 | <xsl:attribute name="border"><xsl:value-of select="$borderTable"/></xsl:attribute> |
||
595 | <xsl:for-each select="./rows/row[0]/cols/col"> |
||
596 | <fo:table-column/> |
||
597 | </xsl:for-each> |
||
598 | <fo:table-body> |
||
599 | <xsl:for-each select="./rows/row"> |
||
600 | <xsl:variable name="rowPosition"><xsl:value-of select="position()"/></xsl:variable> |
||
601 | <xsl:variable name="lastRowPosition"><xsl:value-of select="last()"/></xsl:variable> |
||
602 | <fo:table-row background-color="{$backgroundHeader}"> |
||
603 | <xsl:choose> |
||
604 | <xsl:when test="./type='header'"><xsl:attribute name="background-color"><xsl:value-of select="$backgroundHeader"/></xsl:attribute></xsl:when> |
||
605 | <xsl:when test="./type='normal'"><xsl:attribute name="background-color"><xsl:value-of select="$backgroundNormal"/></xsl:attribute></xsl:when> |
||
606 | <xsl:when test="./type='footer'"><xsl:attribute name="background-color"><xsl:value-of select="$backgroundFooter"/></xsl:attribute></xsl:when> |
||
607 | </xsl:choose> |
||
608 | <xsl:for-each select="./cols/col"> |
||
609 | <fo:table-cell padding="0"> |
||
1549 | jmachado | 610 | |
1553 | jmachado | 611 | <xsl:choose> |
612 | <xsl:when test="../../type='header'"><xsl:attribute name="border"><xsl:value-of select="$borderInHeader"/></xsl:attribute></xsl:when> |
||
613 | <xsl:when test="../../type='normal'"><xsl:attribute name="border"><xsl:value-of select="$borderInCell"/></xsl:attribute></xsl:when> |
||
614 | <xsl:when test="../../type='footer'"><xsl:attribute name="border"><xsl:value-of select="$borderInFooter"/></xsl:attribute></xsl:when> |
||
615 | </xsl:choose> |
||
616 | |||
617 | |||
618 | |||
619 | |||
620 | <xsl:choose> |
||
621 | <xsl:when test="./align='left'"><xsl:attribute name="text-align">start</xsl:attribute></xsl:when> |
||
622 | <xsl:when test="./align='right'"><xsl:attribute name="text-align">end</xsl:attribute></xsl:when> |
||
623 | </xsl:choose> |
||
624 | <xsl:if test="../../cols/col/type = 'percentage' and ./type != 'percentage'"> |
||
625 | <xsl:attribute name="padding-top">4px</xsl:attribute> |
||
626 | </xsl:if> |
||
627 | |||
628 | |||
629 | <xsl:if test="../../type='normal'"> |
||
630 | <xsl:if test="./type='label' and position()=1"> |
||
631 | <xsl:attribute name="border-right"><xsl:value-of select="$borderInHeader"/></xsl:attribute> |
||
632 | </xsl:if> |
||
633 | <xsl:if test="./type='label' and position()=last()"> |
||
634 | <xsl:attribute name="border-left"><xsl:value-of select="$borderInHeader"/></xsl:attribute> |
||
635 | </xsl:if> |
||
636 | <xsl:if test="../../../row[$rowPosition+1]/type='normal'"> |
||
637 | <xsl:attribute name="border-bottom"><xsl:value-of select="$borderInCell"/></xsl:attribute> |
||
638 | </xsl:if> |
||
639 | </xsl:if> |
||
640 | |||
641 | <xsl:if test="../../../row[$rowPosition - 1]/type='header'"> |
||
642 | <xsl:attribute name="border-top"><xsl:value-of select="$borderInHeader"/></xsl:attribute> |
||
643 | </xsl:if> |
||
644 | <xsl:if test="../../../row[$rowPosition +1]/type='footer'"> |
||
645 | <xsl:attribute name="border-bottom"><xsl:value-of select="$borderInFooter"/></xsl:attribute> |
||
646 | </xsl:if> |
||
647 | |||
648 | |||
649 | <xsl:if test="../col[position() + 1 != last()]"> |
||
650 | <xsl:attribute name="border-right"><xsl:value-of select="$borderInCellVertical"/></xsl:attribute> |
||
651 | </xsl:if> |
||
652 | |||
653 | |||
654 | |||
655 | |||
656 | <fo:block-container margin="0" padding="0"> |
||
657 | <xsl:choose> |
||
658 | <xsl:when test="./type='text'"><fo:block margin="0" padding-left="2px" padding-right="2px"><xsl:value-of select="./value"/></fo:block></xsl:when> |
||
659 | <xsl:when test="./type='number'"><fo:block margin="0" padding-left="2px" padding-right="2px"><xsl:value-of select="./value"/></fo:block></xsl:when> |
||
660 | <xsl:when test="./type='label'"><fo:block margin="0" padding-left="2px" padding-right="2px"><xsl:value-of select="./value"/></fo:block></xsl:when> |
||
661 | <xsl:when test="./type='percentage'"> |
||
662 | <xsl:attribute name="text-align">left</xsl:attribute> |
||
663 | <xsl:attribute name="padding">0</xsl:attribute> |
||
664 | <xsl:call-template name="barraPercentil"> |
||
665 | <xsl:with-param name="valor" select="./value"/> |
||
666 | </xsl:call-template> |
||
667 | </xsl:when> |
||
668 | </xsl:choose> |
||
669 | |||
670 | </fo:block-container> |
||
671 | |||
672 | |||
673 | </fo:table-cell> |
||
674 | </xsl:for-each> |
||
675 | </fo:table-row> |
||
676 | </xsl:for-each> |
||
677 | </fo:table-body> |
||
678 | </fo:table> |
||
679 | </xsl:template> |
||
680 | |||
681 | |||
682 | |||
1549 | jmachado | 683 | </xsl:stylesheet> |