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

Kevin Pinte

Powered by ViewVC 1.0-dev

ViewVC Help