default.xsl
6.01 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:php="http://php.net/xsl" >
<xsl:import href="../../../../../System/xsl/default_Global.xsl"/>
<xsl:import href="../../../../../System/xsl/default_Tools.xsl"/>
<xsl:import href="../../../../../System/xsl/default_AccountManagement.xsl"/>
<xsl:import href="../../../../../System/xsl/default_BasisElement.xsl"/>
<xsl:import href="../../../../../System/xsl/default_BasisClipboard.xsl"/>
<xsl:import href="../../../../../System/xsl/default_BasisElementAddons.xsl"/>
<xsl:output method="html" encoding="utf-8" indent="no" />
<xsl:template match="/">
<html>
<head>
<xsl:apply-templates select="//XMLSite_Head" />
<script language="javascript" src="include/System/jscripts/fnc_Go.inc.js" type="text/javascript">intern</script>
<script language="javascript" src="include/System/jscripts/fnc_makeDivElementVisible.inc.js" type="text/javascript">intern</script>
</head>
<body>
<div class="Site">
<xsl:apply-templates select="//XMLSite_Top" />
<xsl:apply-templates select="//XMLSite_Left" />
<xsl:apply-templates select="//XMLSite_Display" />
<xsl:apply-templates select="//XMLSite_Right" />
</div>
</body>
</html>
</xsl:template>
<xsl:template match="XMLSite_Head">
<xsl:variable name="href"> <xsl:value-of select="XMLStylesheet/href" /> </xsl:variable>
<xsl:variable name="name"> <xsl:value-of select="XMLStylesheet/name" /> </xsl:variable>
<title><xsl:value-of select="title" /></title>
<link rel="stylesheet" type="text/css" href="{$href}" title="{$name}" />
<xsl:for-each select="/content/XMLSite_Display/BasisClipboard/Menu/Services/Link">
<link rel="alternate" type="application/rss+xml" title="{@label}" href="{@url}?{@parameter}" />
</xsl:for-each>
</xsl:template>
<xsl:template match="XMLSite_Top">
<div class="Top">
<div class="TopLeft">
<a href="index.php"><img src="../../include/Forest/LocationPage/Design/default/Images/logo.jpg" alt="Location Logo" border="0" /></a>
</div>
<div class="TopRight">
<h1><xsl:value-of select="@Subject" /></h1>
</div>
</div>
</xsl:template>
<xsl:template match="XMLSite_Left">
<div class="Left">
<!--<xsl:apply-templates select="XMLMenu_ProfileBC" />
<h1><xsl:value-of select="@Subject" /></h1>-->
<xsl:apply-templates select="XMLMenu_SubPages" />
</div>
</xsl:template>
<xsl:template match="XMLSite_Display">
<div class="Display">
<xsl:if test="BasisClipboard">
<div class="SubMenuBox">
<h2><xsl:value-of select="BasisClipboard/@label" /></h2>
<xsl:apply-templates select="BasisClipboard/Menu/Services/Link" />
</div>
<xsl:for-each select="BasisClipboard/List">
<xsl:call-template name="function_listBasisElement" ><xsl:with-param name="param_url">?</xsl:with-param></xsl:call-template>
</xsl:for-each>
<!-- <xsl:apply-templates select="BasisClipboard" /> -->
</xsl:if>
<xsl:if test="BasisElement">
<div class="SubMenuBox">
<h2>Einzelansicht</h2>
</div>
<div class="ContentBox">
<xsl:apply-templates select="BasisElement" ></xsl:apply-templates>
</div>
</xsl:if>
</div>
</xsl:template>
<xsl:template match="Menu/Services/Link">
<a href="{@url}?{@parameter}"><img src="{@image}" alt="{@label}" border="0" /></a>
</xsl:template>
<xsl:template match="XMLSite_Right">
<div class="Right">
<div class="ShortBox">
<h2><xsl:value-of select="BasisClipboard/@label" /></h2>
<xsl:apply-templates select="BasisClipboard/Menu/Services/Link" />
<xsl:for-each select="BasisClipboard/List/BasisElement">
<!--<a href="{Link/@url}?{Link/@parameter}">-->
<a href="{Link/@url}?&p[0]=showSingle&p[1]=ID&p[2]={ID}" title="{Subheading/Element}">
<h3>
<xsl:for-each select="Subheading/Element">
<xsl:choose>
<xsl:when test="@objvar='Start'">
<xsl:value-of select="@day" />.<xsl:value-of select="@month" />.<xsl:value-of select="@year" /><![CDATA[ ]]>
<xsl:value-of select="@hour" />:<xsl:value-of select="@minute" />
</xsl:when>
</xsl:choose>
</xsl:for-each>
</h3>
<xsl:value-of select="Headline/Element" />
</a>
</xsl:for-each>
</div>
</div>
</xsl:template>
<xsl:template match="XMLMenu_SubPages">
<div class="ShortBox">
<xsl:if test="BasisClipboard">
<h2><xsl:value-of select="BasisClipboard/@label" /></h2>
<xsl:for-each select="BasisClipboard/List/BasisElement">
<!--[<a href="{Link/@url}?{Link/@parameter}"><xsl:value-of select="Headline/Element" /></a>]-->
<!--<a href="{Link/@url}?{Link/@parameter}" title="{Subheading/Element}"><xsl:value-of select="Headline/Element" /></a><br/>-->
<a href="{Link/@url}?&p[0]=showSingle&p[1]=ID&p[2]={ID}" title="{Subheading/Element}"><xsl:value-of select="Headline/Element" /></a><br/>
</xsl:for-each>
</xsl:if>
</div>
</xsl:template>
<xsl:template name="loop_FormularOption">
<xsl:param name="index">0</xsl:param>
<xsl:param name="max">0</xsl:param>
<xsl:param name="selected"></xsl:param>
<xsl:if test="$index < $max">
<xsl:choose>
<xsl:when test="$index=$selected"><xsl:value-of select="php:function('XSLPHPFunction::getStartTagSelectOptionSelected', . )" disable-output-escaping="yes" /></xsl:when>
<xsl:otherwise><xsl:value-of select="php:function('XSLPHPFunction::getStartTagSelectOption', . )" disable-output-escaping="yes" /></xsl:otherwise>
</xsl:choose>
<xsl:if test="$index < 10">0</xsl:if>
<xsl:value-of select="$index"/>
<xsl:value-of select="php:function('XSLPHPFunction::getEndTagSelectOption', . )" disable-output-escaping="yes" />
<xsl:call-template name="loop_FormularOption">
<xsl:with-param name="index"><xsl:value-of select="$index + 1"/></xsl:with-param>
<xsl:with-param name="max"><xsl:value-of select="$max"/></xsl:with-param>
<xsl:with-param name="selected"><xsl:value-of select="$selected"/></xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:template>
</xsl:stylesheet>