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

Kevin Pinte

Powered by ViewVC 1.0-dev

ViewVC Help