default_Tools.xsl
8.68 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!--
last update 21.02.2009 @sn
templates/function in this file
<xsl:template match="Values" />
<xsl:template name="Function_TimeFormular" />
<xsl:template name="function_addDateToDateBC" />
<xsl:template match="Formular/addProfile" />
<xsl:template match="Formular/List" />
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:php="http://php.net/xsl" >
<xsl:template match="Values">
<xsl:param name="param_edit_mainkey">0</xsl:param>
<xsl:param name="param_inputBE">0</xsl:param>
<xsl:if test="Element">
<div class="row"><span class="element"><xsl:value-of select="@label" /></span> </div>
<xsl:choose>
<xsl:when test="$param_edit_mainkey=0">
<div class="row"><span class="label">Key:</span> <span class="element">Value</span> </div>
<xsl:for-each select="Element">
<xsl:variable name="var_tmp_i"><xsl:value-of select="position()" /></xsl:variable>
<div class="row">
<span class="label"><xsl:value-of select="$var_tmp_i" />: <xsl:value-of select="@key" /></span>
<span class="element"><xsl:value-of select="@value" /></span>
</div>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$param_inputBE=0">
<xsl:for-each select="Element">
<xsl:variable name="var_tmp_i"><xsl:value-of select="position()" /></xsl:variable>
<div class="row"><span class="label">Element <xsl:value-of select="$var_tmp_i" />:</span><span class="element"><input name="{$param_edit_mainkey}[Values][{$var_tmp_i}][VKey]" class="width" type="text" size="30" maxlength="" value="{@key}" /><input name="{$param_edit_mainkey}[Values][{$var_tmp_i}][VValue]" class="width" type="text" size="30" maxlength="" value="{@value}" /></span> </div>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="Element">
<xsl:variable name="var_tmp_i"><xsl:value-of select="position()" /></xsl:variable>
<div class="row"><span class="label">Element <xsl:value-of select="$var_tmp_i" />:</span><span class="element"><input name="{$param_inputBE}[{$param_edit_mainkey}][Values][{$var_tmp_i}][VKey]" class="width" type="text" size="30" maxlength="" value="{@key}" /><input name="{$param_inputBE}[{$param_edit_mainkey}][Values][{$var_tmp_i}][VValue]" class="width" type="text" size="30" maxlength="" value="{@value}" /></span> </div>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:template>
<xsl:template match="Formular/password">
<xsl:variable name="maxlength"> <xsl:value-of select="Password/@maxlength" /> </xsl:variable>
<xsl:variable name="Function"> <xsl:value-of select="@function" /> </xsl:variable>
<div class="formbox">
<form name="Formular" method="post" action="" onsubmit="return chkFormular()">
<div class="row">
<span class="label">altes Passwort</span>
<span class="element"><input type="password" name="oldpassword" size="11" maxlength="{$maxlength}" /></span>
</div>
<div class="row">
<span class="label">neues Passwort</span>
<span class="element"><input type="password" name="newpassword1" size="11" maxlength="{$maxlength}" /></span>
</div>
<div class="row">
<span class="label">Wiederholung</span>
<span class="element"><input type="password" name="newpassword2" size="11" maxlength="{$maxlength}" /></span>
</div>
<input type="hidden" name="function" value="{$Function}" />
<div class="row">
<span class="element">
<span class="button"><input type="reset" value="Cancel" /></span>
<span class="button"><input type="submit" name="Submit" value="OK" /></span>
</span>
</div>
</form>
</div>
</xsl:template>
<xsl:template name="Function_TimeFormular">
<xsl:param name="param_prefix">0</xsl:param>
<xsl:param name="difference_hour">0</xsl:param>
<xsl:param name="param_time">0</xsl:param>
<xsl:param name="param_inputBE" />
<select name="{$param_inputBE}[{$param_prefix}day]">
<xsl:call-template name="loop_FormularOption">
<xsl:with-param name="index">1</xsl:with-param>
<xsl:with-param name="max">32</xsl:with-param>
<xsl:with-param name="selected"><xsl:value-of select="php:functionString('XSLPHPFunction::getThisDay', string($param_time) )" /></xsl:with-param>
</xsl:call-template>
</select>.
<select name="{$param_inputBE}[{$param_prefix}month]">
<xsl:call-template name="loop_FormularOption">
<xsl:with-param name="index">1</xsl:with-param>
<xsl:with-param name="max">13</xsl:with-param>
<xsl:with-param name="selected"><xsl:value-of select="php:functionString('XSLPHPFunction::getThisMonth', string($param_time) )" /></xsl:with-param>
</xsl:call-template>
</select>.
<select name="{$param_inputBE}[{$param_prefix}year]">
<xsl:call-template name="loop_FormularOption">
<xsl:with-param name="index">2006</xsl:with-param>
<xsl:with-param name="max">2016</xsl:with-param>
<xsl:with-param name="selected"><xsl:value-of select="php:functionString('XSLPHPFunction::getThisYear', string($param_time) )" /></xsl:with-param>
</xsl:call-template>
</select><xsl:text disable-output-escaping="no">  </xsl:text>
<select name="{$param_inputBE}[{$param_prefix}hour]">
<xsl:call-template name="loop_FormularOption">
<xsl:with-param name="index">0</xsl:with-param>
<xsl:with-param name="max">24</xsl:with-param>
<xsl:with-param name="selected"><xsl:value-of select="php:functionString('XSLPHPFunction::getThisHour', string($param_time) )" /></xsl:with-param>
</xsl:call-template>
</select>:
<select name="{$param_inputBE}[{$param_prefix}minute]">
<xsl:call-template name="loop_FormularOption">
<xsl:with-param name="index">0</xsl:with-param>
<xsl:with-param name="max">60</xsl:with-param>
<xsl:with-param name="selected"><xsl:value-of select="php:functionString('XSLPHPFunction::getThisMinute', string($param_time) )" /></xsl:with-param>
</xsl:call-template>
</select> Uhr
</xsl:template>
<xsl:template name="function_addDateToDateBC">
<xsl:variable name="Action"> <xsl:value-of select="@action" /> </xsl:variable>
<xsl:variable name="var_ID"> <xsl:value-of select="ID" /> </xsl:variable>
<div class="formbox">
<form name="Formular" method="post" action="" onsubmit="return chkFormular()">
<!--<xsl:if test="List/profile">-->
<xsl:if test="List/BasisElement">
<div class="row">
<span class="label">Kalender von_:</span>
<span class="element">
<select name="Profiles[]" class="width" size="3" multiple="multiple">
<xsl:for-each select="List/BasisElement">
<xsl:variable name="var_value_ID"><xsl:value-of select="ID" /></xsl:variable>
<option value="{$var_value_ID}"><xsl:value-of select="Headline/Element" /> (<xsl:value-of select="Headline/Element/@class" />)</option>
</xsl:for-each>
</select>
</span>
</div>
</xsl:if>
<input type="hidden" name="SelectID" value="{$var_ID}" />
<div class="row">
<span class="element">
<span class="button"><input type="reset" value="Abbrechen" /></span>
<span class="button"><input type="submit" name="Submit" value="OK" /></span>
</span>
</div>
</form>
</div>
</xsl:template>
<xsl:template match="Formular/addProfile">
<xsl:variable name="NickName_maxlength"> <xsl:value-of select="NickName/@maxlength" /> </xsl:variable>
<div class="formbox">
<form name="Formular" method="post" action="" onsubmit="return chkFormular()">
<div class="row">
<span class="label">Profil Name:</span>
<span class="element"><input name="NickName" type="text" class="width" maxlength="{$NickName_maxlength}" /></span>
</div>
<div class="row">
<span class="element">
<span class="button"><input type="reset" value="Cancel" /></span>
<span class="button"><input type="submit" name="Submit" value="OK" /></span>
</span>
</div>
</form>
</div>
</xsl:template>
<xsl:template match="Formular/List">
<div class="formbox">
<form name="Formular" method="post" action="" onsubmit="return chkFormular()">
<div class="row">
<span class="label">Profil Name:</span>
<span class="element">
<select name="NickName" size="1" class="width">
<option></option>
<xsl:for-each select="profile">
<option><xsl:value-of select="NickName" /></option>
</xsl:for-each>
</select>
</span>
</div>
<div class="row">
<span class="element">
<span class="button"><input type="reset" value="Cancel" /></span>
<span class="button"><input type="submit" name="Submit" value="OK" /></span>
</span>
</div>
</form>
</div>
</xsl:template>
</xsl:stylesheet>