[se4_repository] / trunk / source / layout / page.xsl Repository:
ViewVC logotype

Annotation of /trunk/source/layout/page.xsl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1814 - (view) (download) (as text)

1 : kpinte 795 <?xml version="1.0"?>
2 :     <!-- stylesheet specifications page.xsl begin -->
3 :     <!-- author: Kevin Pinte (kpinte@vub.ac.be) -->
4 :    
5 :     <xsl:stylesheet version="1.0"
6 : tderutte 1376 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
7 :     <!-- xmlns:xhtml="http://www.w3.org/1999/xhtml"> -->
8 : se4_2006 1076
9 : ephilips 1151 <!-- Import the global templates -->
10 :     <xsl:include href="templates.xsl"/>
11 :     <xsl:include href="user.xsl" />
12 :     <xsl:include href="form.xsl" />
13 :     <xsl:include href="exception.xsl" />
14 :     <xsl:include href="subscribe.xsl" />
15 :     <xsl:include href="login.xsl" />
16 :     <xsl:include href="usertemplates.xsl" />
17 :     <xsl:include href="message.xsl" />
18 :     <xsl:include href="comments.xsl" />
19 : ephilips 1185 <xsl:include href="subscriptions.xsl" />
20 : ephilips 1585 <xsl:include href="ratings.xsl" />
21 : ephilips 1148 <xsl:include href="event.xsl" />
22 : ephilips 1151 <xsl:include href="agenda.xsl" />
23 : tderutte 1376 <xsl:include href="search_agenda.xsl" />
24 : se4_2006 1790 <xsl:include href="admin.xsl" />
25 :     <xsl:include href="levelrequest.xsl" />
26 :     <xsl:include href="usermanagement.xsl" />
27 : kpinte 1146
28 : ephilips 1151 <xsl:template match="PAGE">
29 :     <xsl:variable name="edit">
30 :     <xsl:value-of select="EDIT" />
31 :     </xsl:variable>
32 :     <xsl:variable name="loggedin">
33 :     <xsl:value-of select="LOGGEDIN" />
34 :     </xsl:variable>
35 :     <xsl:variable name="operation">
36 :     <xsl:value-of select="OPERATION" />
37 :     </xsl:variable>
38 : se4_2006 1792 <xsl:variable name="level">
39 :     <xsl:value-of select="LEVEL" />
40 :     </xsl:variable>
41 : kpinte 795
42 : se4_2006 1792
43 : ephilips 1151 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-AU">
44 :     <head>
45 : ephilips 1656 <meta http-equiv="content-type" content="text/html" charset="iso-8859-1" />
46 : ephilips 1151 <meta name="author" content="SE4 2006" />
47 :     <meta name="keywords" content="eventure, software engineering, vub, se4, se4_2006, " />
48 :     <meta name="description" content="eVenture provides you with a personalised list of hot events!" />
49 :     <title>eVenture v1.0</title>
50 : kpinte 795
51 : ephilips 1151 <link rel="stylesheet" type="text/css" href="../layout/eventure_grey.css" media="screen, tv, projection" />
52 :     <link rel="stylesheet" type="text/css" href="../layout/eventure_grey_print.css" media="print" />
53 :     </head>
54 : kpinte 795
55 : ephilips 1151 <body>
56 : kpinte 795
57 : ephilips 1151 <div id="layoutBox" style="width: 97%;">
58 : kpinte 795
59 : ephilips 1151 <div id="headerBox">
60 :     <div id="headerLeftBox">
61 :     <span class="title">
62 :     eVenture v1.0
63 :     </span>
64 :     <br />
65 :     <span class="subTitle">
66 :     what's up tonight?
67 :     </span>
68 :     </div>
69 :     <div id="headerRightBox">
70 :     <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
71 :     </div>
72 :     </div>
73 : kpinte 795
74 : ephilips 1151 <div id="menuBox">
75 :     <h1>
76 :     Main menu
77 :     </h1>
78 :     <div class="menuGroup">
79 : ephilips 1211 <a href="agendacontroller.cgi?operation=get_agenda" title="Show me the calendar!"><img src="../images/menu_icon.gif" alt="2" /> Agenda</a><span class="noDisplay"> | </span>
80 : kpinte 1671
81 :    
82 :     <xsl:if test="$loggedin='yes'">
83 :     <a href="agendacontroller.cgi?operation=add_event_form" title="Add new event">
84 :     <img src="../images/menu_icon.gif" alt="1" /> Add event</a>
85 :     <span class="noDisplay">|</span>
86 :     <a href="agendacontroller.cgi?operation=show_agenda" title="Show my personal agenda">
87 :     <img src="../images/menu_icon.gif" alt="2" /> Show my agenda</a>
88 :     <span class="noDisplay">|</span>
89 :     <a href="agendacontroller.cgi?operation=get_proposals" title="Show my proposals">
90 :     <img src="../images/menu_icon.gif" alt="2" /> Show my proposals</a>
91 :     <span class="noDisplay">|</span>
92 :     <a href="agendacontroller.cgi?operation=search_agenda_form" title="Search the agenda">
93 :     <img src="../images/menu_icon.gif" alt="3" /> Search agenda</a>
94 :     <span class="noDisplay">|</span>
95 :     </xsl:if>
96 : se4_2006 1792
97 : ephilips 1151 </div>
98 : kpinte 795
99 : ephilips 1151 <h1>
100 :     User menu
101 :     </h1>
102 :     <div class="menuGroup">
103 : se4_2006 1076
104 : ephilips 1151 <xsl:if test="$loggedin='no'">
105 :     <a href="usercontroller.cgi?operation=login_form" title="eVenturize me!">
106 :     <img src="../images/menu_icon.gif" alt="1" /> Log me in</a>
107 :     <span class="noDisplay">|</span>
108 :     <a href="usercontroller.cgi?operation=subscribe_form" title="Subscribe!">
109 :     <img src="../images/menu_icon.gif" alt="2" /> Subscribe</a>
110 :     <span class="noDisplay">|</span>
111 :     <a href="usercontroller.cgi?operation=lost_password_form" title="Help me!">
112 :     <img src="../images/menu_icon.gif" alt="3" /> Lost password</a>
113 :     <span class="noDisplay">|</span>
114 : se4_2006 981
115 : ephilips 1151 </xsl:if>
116 :     <xsl:if test="$loggedin='yes'">
117 : ephilips 1026
118 : ephilips 1151 <a href="usercontroller.cgi?operation=my_user" title="What do I look like on the internet?">
119 : ephilips 1463 <img src="../images/menu_icon.gif" alt="1" /> View profile</a>
120 : ephilips 1151 <span class="noDisplay">|</span>
121 : ephilips 1026
122 : ephilips 1151 <a href="usercontroller.cgi?operation=edit_user_form" title="Edit my stuff">
123 : ephilips 1463 <img src="../images/menu_icon.gif" alt="2" /> Edit profile</a>
124 : ephilips 1151 <span class="noDisplay">|</span>
125 : ephilips 1219 <a href="usercontroller.cgi?operation=user_keyword_form" title="Edit keywords">
126 : ephilips 1151 <img src="../images/menu_icon.gif" alt="3" /> Edit keywords</a>
127 :     <span class="noDisplay">|</span>
128 :     <a href="usercontroller.cgi?operation=change_password_form" title="Edit yout magic word">
129 :     <img src="../images/menu_icon.gif" alt="4" /> Change password</a>
130 :     <span class="noDisplay">|</span>
131 :     <a href="usercontroller.cgi?operation=find_user_form" title="Find your cyberspace friends">
132 :     <img src="../images/menu_icon.gif" alt="5" /> Find user</a>
133 :     <span class="noDisplay">|</span>
134 : kpinte 1323 <a href="usercontroller.cgi?operation=receive_messages" title="Your personal messages">
135 : ephilips 1151 <img src="../images/menu_icon.gif" alt="6" /> Inbox</a>
136 :     <span class="noDisplay">|</span>
137 : tderutte 1376 <a href="usercontroller.cgi?operation=get_outbox" title="Check mail send to your cyberspace friend">
138 : ephilips 1151 <img src="../images/menu_icon.gif" alt="7" /> Outbox</a>
139 :     <span class="noDisplay">|</span>
140 :     <a href="usercontroller.cgi?operation=send_message_form" title="Contact your cyberspace friends">
141 :     <img src="../images/menu_icon.gif" alt="8" /> Send message</a>
142 : se4_2006 1814 <span class="noDisplay">|</span>
143 :     <a href="configcontroller.cgi?operation=change_permission_form" title="Request permission change">
144 :     <img src="../images/menu_icon.gif" alt="9" /> Permission request</a>
145 : tderutte 1376 <span class="noDisplay">|</span>
146 : ephilips 1151 <a href="usercontroller.cgi?operation=logout" title="dEventurize me">
147 : se4_2006 1814 <img src="../images/menu_icon.gif" alt="10" /> Log me out</a>
148 : ephilips 1151 <span class="noDisplay">|</span>
149 :     <a href="usercontroller.cgi?operation=unsubscribe_form" title="I don't want no eVentures no more">
150 : se4_2006 1814 <img src="../images/menu_icon.gif" alt="11" /> Unsubscribe</a>
151 : ephilips 1151 <span class="noDisplay">|</span>
152 : tderutte 1376 </xsl:if>
153 : ephilips 1151 </div>
154 : se4_2006 1792 <xsl:if test="$loggedin='yes'">
155 :     <xsl:if test="$level='administrator'">
156 :     <h1>Admin menu</h1>
157 :     <div class="menuGroup">
158 :     <a href="configcontroller.cgi?operation=change_config_form" title="Change configuration">
159 :     <img src="../images/menu_icon.gif" alt="8" /> Configuration</a>
160 :     <span class="noDisplay">|</span>
161 :     <a href="configcontroller.cgi?operation=get_all_pending_permissions" title="Grant users">
162 :     <img src="../images/menu_icon.gif" alt="8" /> Grant users</a>
163 :     <span class="noDisplay">|</span>
164 :     </div>
165 :     </xsl:if>
166 :     </xsl:if>
167 : kpinte 795
168 : ephilips 1127
169 : ephilips 1151 <div class="menuFooter">
170 :     <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
171 :     </div>
172 : kpinte 795
173 : ephilips 1151 </div>
174 : kpinte 795
175 : ephilips 1151 <div id="mainContent">
176 :     <xsl:if test="$operation='subscribe_form'">
177 :     <xsl:call-template name="subscribe" />
178 :     </xsl:if>
179 :     <xsl:if test="$operation='lost_password_form'">
180 :     <xsl:call-template name="lostpass" />
181 :     </xsl:if>
182 :     <xsl:if test="$operation='change_password_form'">
183 :     <xsl:call-template name="changepass" />
184 :     </xsl:if>
185 :     <xsl:if test="$operation='login_form'">
186 :     <xsl:if test="$loggedin='no'">
187 :     <xsl:call-template name="login" />
188 :     </xsl:if>
189 :     </xsl:if>
190 :     <xsl:if test="$operation='find_user_form'">
191 : ephilips 1148 <xsl:if test="$loggedin='yes'">
192 : ephilips 1151 <xsl:call-template name="finduser" />
193 :     </xsl:if>
194 :     </xsl:if>
195 :     <xsl:if test="$operation='send_message_form'">
196 :     <xsl:if test="$loggedin='yes'">
197 :     <xsl:call-template name="send_message_form" />
198 :     </xsl:if>
199 :     </xsl:if>
200 :     <xsl:if test="$operation='unsubscribe_form'">
201 :     <xsl:if test="$loggedin='yes'">
202 : ephilips 1148 <xsl:call-template name="unsubscribe" />
203 :     </xsl:if>
204 : se4_2006 1814 </xsl:if>
205 :     <xsl:if test="$operation='permission_form'">
206 :     <xsl:call-template name="levelrequest" />
207 :     </xsl:if>
208 : ephilips 1216 <xsl:if test="$operation='user_keyword_form'">
209 : ephilips 1148 <xsl:call-template name="keywordsdispatch">
210 :     <xsl:with-param name="edit">
211 :     <xsl:value-of select="$edit" />
212 :     </xsl:with-param>
213 : ephilips 1216 <xsl:with-param name="operation">
214 :     <xsl:value-of select="$operation" />
215 :     </xsl:with-param>
216 :    
217 : ephilips 1148 </xsl:call-template>
218 :     </xsl:if>
219 : ephilips 1216 <xsl:if test="$operation='event_keyword_form'">
220 :     <xsl:call-template name="keywordsdispatch">
221 :     <xsl:with-param name="edit">
222 :     <xsl:value-of select="$edit" />
223 :     </xsl:with-param>
224 :     <xsl:with-param name="operation">
225 :     <xsl:value-of select="$operation" />
226 :     </xsl:with-param>
227 :     </xsl:call-template>
228 :     </xsl:if>
229 : ephilips 1148 <xsl:if test="$operation='comment_form'">
230 :     <xsl:call-template name="write_comment_form" />
231 :     </xsl:if>
232 :     <xsl:if test="$operation='set_event_form'">
233 :     <xsl:call-template name="eventdispatch">
234 :     <xsl:with-param name="edit">
235 :     <xsl:value-of select="$edit" />
236 :     </xsl:with-param>
237 :     <xsl:with-param name="operation">
238 :     <xsl:value-of select="$operation" />
239 :     </xsl:with-param>
240 :     </xsl:call-template>
241 :     </xsl:if>
242 : ephilips 1152 <xsl:if test="$operation='ubsubscribe_form'">
243 :     <xsl:if test="$loggedin='yes'">
244 :     <xsl:call-template name="unsubscribe" />
245 :     </xsl:if>
246 : ephilips 1151 </xsl:if>
247 :     <xsl:if test="$operation='edit_event_form'">
248 :     <xsl:call-template name="eventdispatch">
249 :     <xsl:with-param name="edit">
250 :     <xsl:value-of select="$edit" />
251 :     </xsl:with-param>
252 :     <xsl:with-param name="operation">
253 :     <xsl:value-of select="$operation" />
254 :     </xsl:with-param>
255 :     </xsl:call-template>
256 :     </xsl:if>
257 : ephilips 1275 <xsl:if test="$operation='inbox'">
258 :     <xsl:call-template name="show_messages">
259 : se4_2006 1277 <xsl:with-param name="operation">
260 : ephilips 1275 <xsl:value-of select="$operation" />
261 :     </xsl:with-param>
262 :     </xsl:call-template>
263 :     </xsl:if>
264 :     <xsl:if test="$operation='outbox'">
265 :     <xsl:call-template name="show_messages">
266 : tderutte 1376 <xsl:with-param name="operation">
267 : ephilips 1275 <xsl:value-of select="$operation" />
268 :     </xsl:with-param>
269 :     </xsl:call-template>
270 :     </xsl:if>
271 : se4_2006 1342 <xsl:if test="$operation='search_agenda_form'">
272 : tderutte 1376 <xsl:call-template name="search_agenda" />
273 : se4_2006 1792 </xsl:if>
274 :     <xsl:if test="$operation='config_form'">
275 :     <xsl:call-template name="admin">
276 :     <xsl:with-param name="level">
277 :     <xsl:value-of select="$level" />
278 :     </xsl:with-param>
279 :     </xsl:call-template>
280 :     </xsl:if>
281 : ephilips 1039
282 : tderutte 1376
283 :     <xsl:if test="$operation='none'">
284 : ephilips 1151 <xsl:for-each select="CONTENT/MODEL">
285 :     <xsl:variable name="model">
286 :     <xsl:value-of select="./TYPE" />
287 :     </xsl:variable>
288 :     <xsl:if test="$model='user'">
289 :     <xsl:call-template name="userdispatch">
290 :     <xsl:with-param name="edit">
291 :     <xsl:value-of select="$edit" />
292 :     </xsl:with-param>
293 :     </xsl:call-template>
294 :     </xsl:if>
295 :     <xsl:if test="$model='agenda'">
296 :     <xsl:call-template name="agenda" />
297 :     </xsl:if>
298 :     <xsl:if test="$model='event'">
299 :     <xsl:call-template name="eventdispatch">
300 :     <xsl:with-param name="edit">
301 :     <xsl:value-of select="$edit" />
302 :     </xsl:with-param>
303 :     </xsl:call-template>
304 :     </xsl:if>
305 : ephilips 1132
306 : ephilips 1151 <xsl:if test="$model='keywordlist'">
307 :     <xsl:call-template name="keywordsdispatch">
308 :     <xsl:with-param name="edit">
309 :     <xsl:value-of select="$edit" />
310 :     </xsl:with-param>
311 :     </xsl:call-template>
312 : se4_2006 1794 </xsl:if>
313 :     <xsl:if test="$model='pendingpermission_list'">
314 :     <xsl:call-template name="usermgr">
315 :     <xsl:value-of select="$level" />
316 :     </xsl:call-template>
317 :     </xsl:if>
318 : ephilips 1148 <xsl:if test="$model='form'">
319 :     <xsl:call-template name="form" />
320 :     </xsl:if>
321 :     <xsl:if test="$model='message_list'">
322 :     <xsl:call-template name="show_messages" />
323 :     </xsl:if>
324 :     <xsl:if test="$model='comment_list'">
325 :     <xsl:call-template name="show_comments" />
326 :     </xsl:if>
327 : ephilips 1182 <xsl:if test="$model='subscription_list'">
328 :     <xsl:call-template name="show_subscriptions" />
329 :     </xsl:if>
330 : ephilips 1585 <xsl:if test="$model='rating_list'">
331 :     <xsl:call-template name="show_ratings" />
332 :     </xsl:if>
333 : ephilips 1148 <xsl:if test="$model='message'">
334 :     <xsl:call-template name="get_message" />
335 :     </xsl:if>
336 :     <xsl:if test="$model='comment'">
337 :     <xsl:call-template name="get_comment" />
338 :     </xsl:if>
339 : ephilips 1037
340 : ephilips 1151 <xsl:if test="$model='exception'">
341 :     <xsl:call-template name="exception" />
342 :     </xsl:if>
343 :     <xsl:value-of select="CONTENT/MODEL/TYPE" />
344 :     </xsl:for-each>
345 :     </xsl:if>
346 : kpinte 795
347 : tderutte 1376 <br />
348 : kpinte 795
349 : ephilips 1151 <div class="footer">
350 :     valid <a href="http://validator.w3.org/check/referer" title="validate markup">XHTML</a> / <a href="http://jigsaw.w3.org/css-validator/check/referer" title="validate CSS">CSS</a> <br />
351 :     2006-04-06 / copyleft <a href="http://wilma.vub.ac.be/~se4_2006/" title="Software Engineering GROUP 4 - 2006">SE4</a> | design: <a href="http://www.oswd.org/userinfo.phtml?user=snop" title="OSWD profile / contact">snop</a>
352 :     </div>
353 :     </div>
354 : kpinte 795
355 : ephilips 1151 <div class="spacer">
356 :     </div>
357 :     </div>
358 : kpinte 795
359 : ephilips 1151 </body>
360 :     </html>
361 :     </xsl:template>
362 : kpinte 795 </xsl:stylesheet>

Kevin Pinte

Powered by ViewVC 1.0-dev

ViewVC Help