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

Kevin Pinte

Powered by ViewVC 1.0-dev

ViewVC Help