-
Notifications
You must be signed in to change notification settings - Fork 0
/
tabelle_orte_in_spalten.html2docx.html
106 lines (95 loc) · 3.06 KB
/
tabelle_orte_in_spalten.html2docx.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{template:base}
<html>
<head>
<title>Tabelle mit einer Spalte pro Ort</title>
<!--
Bitte passen Sie die entsprechenden Ortsbezeichnungen bzw. _place_IDs an.
Die Breite der Tabelle ist für eine DIN-A4 Querformat ausgelegt.
-->
<style type="text/css">
* {
font-family:Arial, Helvetica, sans-serif;
font-size:10pt;
}
h2 {
font-size:16pt;
}
.eight {
font-size:8pt;
}
.ten {
font-size:10pt;
}
.twelf {
font-size:12pt;
}
.sixteen {
font-size:16pt;
}
.center {
text-align:center;
}
td {
border:1px solid #666;
padding:3px;
vertical-align:top;
}
table {
border-spacing:0px;
width:950;
}
#footer {
font-size:9pt;
}
</style>
</head>
<body>
<div id="header">{me}</div>
<div id="footer">Stand: {now} Uhr; Exportzeitraum:
{start} bis {end}</div>
<div id="content">
<h2 class="sixteen">Termine vom {start} bis {end}</h2>
<table class="bordered">
<tr >
<td width="150" class="" >Tag</td>
<td width="200" class="">Kirche XY</td>
<td width="200" class="" >Kirche YZ</td>
<td width="200" class="" >Gemeindehaus</td>
<td width="200" class="" >Kapelle</td>
</tr>
<!-- Filterung der Veranstaltungen nach den gewünschten Orten -->
<xsl:variable name="filteredVeranstaltungen">
<xsl:for-each select="Veranstaltung">
<xsl:sort select="START"/>
<xsl:if test="_place_ID=101 or _place_ID=102 or _place_ID=103 or _place_ID=104">
<xsl:copy-of select="." />
</xsl:if>
</xsl:for-each>
</xsl:variable>
<xsl:for-each select="exsl:node-set($filteredVeranstaltungen)/Veranstaltung">
{ifnotprev:START_DATUM}
<tr>
<td class="ten">{timeformat:START,%a}{space}{timeformat:START,%d}.{space}{timeformat:START,%b}.{if:LITURG_BEZ}<br />{elem:LITURG_BEZ}{if:end}</td>
<td class="ten">{call-template:veras}<xsl:with-param name="place" select="101" /><xsl:with-param name="day" select="START_DATUM" /><xsl:with-param name="veras" select="$filteredVeranstaltungen" />{call-template:end}</td>
<td class="ten">{call-template:veras}<xsl:with-param name="place" select="102" /><xsl:with-param name="day" select="START_DATUM" /><xsl:with-param name="veras" select="$filteredVeranstaltungen" />{call-template:end}</td>
<td class="ten">{call-template:veras}<xsl:with-param name="place" select="103" /><xsl:with-param name="day" select="START_DATUM" /><xsl:with-param name="veras" select="$filteredVeranstaltungen" />{call-template:end}</td>
<td class="ten">{call-template:veras}<xsl:with-param name="place" select="104" /><xsl:with-param name="day" select="START_DATUM" /><xsl:with-param name="veras" select="$filteredVeranstaltungen" />{call-template:end}</td>
</tr>
{ifnotprev:end}
</xsl:for-each>
</table>
</div>
</body>
</html>
{template:end}
{template:veras}
<xsl:param name="place" />
<xsl:param name="day" />
<xsl:param name="veras" />
<xsl:for-each select="exsl:node-set($veras)/Veranstaltung[_place_ID=$place]">
<xsl:if test="START_DATUM=$day"><xsl:value-of select="START_UHRZEIT"/><br />
<strong><xsl:value-of select="_event_TITLE"/></strong><br />
{if:_person_NAME}{elem:_person_NAME}<br />{if:end}
</xsl:if>
</xsl:for-each>
{template:end}