root/trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/default.xsl

Revision 154 (checked in by johnsa, 7 years ago)

updates to skin sets and simple stylesheet cleanup

Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3 <xsl:output
4   method="html"
5   indent="yes"
6   media-type="text/html"
7   doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
8   doctype-system="http://www.w3.org/TR/html4/loose.dtd"
9   standalone="yes"
10 />
11
12 <!-- =========================================================
13
14               DEMONSTRATION CALENDAR STYLESHEET
15
16      This stylesheet is devoid of school branding.  It is a good
17      starting point for development of a customized calendar.
18
19      For detailed instructions on how to work with the XSLT
20      stylesheets included with this distribution, please see the
21      helper web site found at
22      http://localhost:8080/cal/info/designhelp/
23
24      (you can also get it from the source at ../info/designhelp/)
25
26 ===============================================================  -->
27
28   <!-- ================================= -->
29   <!--  DEMO PUBLIC CALENDAR STYLESHEET  -->
30   <!-- ================================= -->
31
32   <!-- DEFINE INCLUDES -->
33   <xsl:include href="errors.xsl"/>
34
35   <!-- DEFINE GLOBAL CONSTANTS -->
36
37   <!-- URL of the XSL template directory -->
38   <!-- The approot is an appropriate place to put
39        included stylesheets and xml fragments. These are generally
40        referenced relatively (like errors.xsl and messages.xsl above);
41        this variable is here for your convenience if you choose to
42        reference it explicitly.  It is not used in this stylesheet, however,
43        and can be safely removed if you so choose. -->
44   <xsl:variable name="appRoot" select="/bedework/approot"/>
45
46   <!-- URL of html resources (images, css, other html); by default this is
47        set to the application root -->
48   <xsl:variable name="resourcesRoot" select="/bedework/approot"/>
49
50   <!-- Properly encoded prefixes to the application actions; use these to build
51        urls; allows the application to be used without cookies or within a portal. -->
52   <xsl:variable name="setup" select="/bedework/urlPrefixes/setup"/>
53   <xsl:variable name="setSelection" select="/bedework/urlPrefixes/setSelection"/>
54   <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/fetchPublicCalendars"/>
55   <xsl:variable name="setViewPeriod" select="/bedework/urlPrefixes/setViewPeriod"/>
56   <xsl:variable name="eventView" select="/bedework/urlPrefixes/eventView"/>
57   <xsl:variable name="addEventRef" select="/bedework/urlPrefixes/addEventRef"/>
58   <xsl:variable name="export" select="/bedework/urlPrefixes/export"/>
59   <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mailEvent"/>
60   <xsl:variable name="showPage" select="/bedework/urlPrefixes/showPage"/>
61
62   <!-- Other generally useful global variables -->
63   <xsl:variable name="privateCal">/ucal</xsl:variable>
64   <xsl:variable name="prevdate" select="/bedework/previousdate"/>
65   <xsl:variable name="nextdate" select="/bedework/nextdate"/>
66   <xsl:variable name="curdate" select="/bedework/currentdate/date"/>
67   <xsl:variable name="skin">default</xsl:variable>
68
69   <!--========= BEGIN DEPRECATED VARIABLES =========-->
70   <!-- URL of the web application - includes host, port, and web context.  This
71        value was originally prepended to all URLs generated in this stylesheet
72        but will probably be deprecated in favor of relative references
73   <xsl:variable name="urlPrefix" select="/bedework/urlprefix"/> -->
74   <!--========= END DEPRECATED VARIABLES =========-->
75
76   <!-- MAIN TEMPLATE -->
77   <xsl:template match="/">
78     <html lang="en">
79       <head>
80         <title>Bedework Events Calendar</title>
81         <xsl:choose>
82           <xsl:when test="/bedework/appvar[key='style']/value='red'">
83             <link rel="stylesheet" href="{$resourcesRoot}/default/default/red.css"/>
84           </xsl:when>
85           <xsl:when test="/bedework/appvar[key='style']/value='green'">
86             <link rel="stylesheet" href="{$resourcesRoot}/default/default/green.css"/>
87           </xsl:when>
88           <xsl:otherwise>
89             <link rel="stylesheet" href="{$resourcesRoot}/default/default/blue.css"/>
90           </xsl:otherwise>
91         </xsl:choose>
92         <link rel="stylesheet" type="text/css" media="print" href="{$resourcesRoot}/default/default/print.css" />
93         <link rel="icon" type="image/ico" href="{$resourcesRoot}/images/bedework.ico" />
94       </head>
95       <body>
96         <xsl:call-template name="headBar"/>
97         <xsl:if test="/bedework/error">
98           <div id="errors">
99             <p><xsl:apply-templates select="/bedework/error"/></p>
100           </div>
101         </xsl:if>
102         <!-- <xsl:call-template name="alerts"/> -->
103         <xsl:call-template name="tabs"/>
104         <xsl:choose>
105           <xsl:when test="/bedework/page='event'">
106             <!-- show an event -->
107             <xsl:apply-templates select="/bedework/event"/>
108           </xsl:when>
109           <xsl:when test="/bedework/page='calendars'">
110             <!-- show a list of all calendars -->
111             <xsl:apply-templates select="/bedework/calendars"/>
112           </xsl:when>
113           <xsl:otherwise>
114             <!-- otherwise, show the eventsCalendar -->
115             <xsl:call-template name="navigation"/>
116             <xsl:if test="/bedework/periodname!='Year'">
117               <xsl:call-template name="searchBar"/>
118             </xsl:if>
119             <!-- main eventCalendar content -->
120             <xsl:choose>
121               <xsl:when test="/bedework/periodname='Day'">
122                 <xsl:call-template name="listView"/>
123               </xsl:when>
124               <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
125                 <xsl:choose>
126                   <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'">
127                     <xsl:call-template name="listView"/>
128                   </xsl:when>
129                   <xsl:otherwise>
130                     <xsl:call-template name="weekView"/>
131                   </xsl:otherwise>
132                 </xsl:choose>
133               </xsl:when>
134               <xsl:when test="/bedework/periodname='Month'">
135                 <xsl:choose>
136                   <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
137                     <xsl:call-template name="listView"/>
138                   </xsl:when>
139                   <xsl:otherwise>
140                     <xsl:call-template name="monthView"/>
141                   </xsl:otherwise>
142                 </xsl:choose>
143               </xsl:when>
144               <xsl:otherwise>
145                 <xsl:call-template name="yearView"/>
146               </xsl:otherwise>
147             </xsl:choose>
148           </xsl:otherwise>
149         </xsl:choose>
150         <!-- footer -->
151         <xsl:call-template name="footer"/>
152       </body>
153     </html>
154   </xsl:template>
155
156   <!--==== HEADER TEMPLATES and NAVIGATION  ====-->
157   <!-- these templates are separated out for convenience and to simplify the default template -->
158
159   <xsl:template name="headBar">
160     <h1 id="titleBar">
161       Bedework: Demonstration Calendar
162     </h1>
163     <table width="100%" border="0" cellpadding="0" cellspacing="0" id="logoTable">
164       <tr>
165         <td colspan="3" id="logoCell"><a href="http://www.bedework.org/"><img src="{$resourcesRoot}/images/bedeworkLogo.gif" width="292" height="75" border="0" alt="Bedework"/></a></td>
166         <td colspan="2" id="schoolLinksCell">
167           <h2>Public Calendar</h2>
168           <a href="{$privateCal}">Personal Calendar</a> |
169           <a href="http://www.yourschoolhere.edu">School Home</a> |
170           <a href="http://www.washington.edu/ucal/">Other Link</a> |
171           <a href="http://helpdesk.rpi.edu/update.do?catcenterkey=51">
172             Example Calendar Help
173           </a>
174         </td>
175       </tr>
176     </table>
177     <table width="100%" border="0" cellpadding="0" cellspacing="0">
178       <tr>
179         <td><img alt="" src="{$resourcesRoot}/images/std-title-left.gif" width="8" height="16" border="0"/></td>
180         <td width="50%"><img alt="" src="{$resourcesRoot}/images/std-title-space.gif" width="100%" height="16" border="0"/></td>
181         <td><img src="{$resourcesRoot}/images/std-title.gif" width="485" height="16" border="0" alt="Calendar of Events"/></td>
182         <td width="50%"><img alt="" src="{$resourcesRoot}/images/std-title-space.gif" width="100%" height="16" border="0"/></td>
183         <td><img alt="" src="{$resourcesRoot}/images/std-title-right.gif" width="9" height="16" border="0"/></td>
184       </tr>
185     </table>
186     <table width="100%" border="0" cellpadding="0" cellspacing="0" id="dateBarTable">
187       <tr>
188         <td width="50" class="imgCell"><img alt="*" src="{$resourcesRoot}/images/spacer.gif" width="50" height="14" border="0"/></td>
189         <td align="center" width="100%">
190           <xsl:value-of select="/bedework/firstday/longdate"/>
191           <xsl:if test="/bedework/periodname!='Day'">
192             -
193             <xsl:value-of select="/bedework/lastday/longdate"/>
194           </xsl:if>
195         </td>
196         <td width="50" class="imgCell">
197           <a href="javascript:window.print()" title="print this view">
198             <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/>
199           </a>
200           <a class="rss" href="{$setSelection}?setappvar=summaryMode(details)&amp;skinName=rss" title="RSS feed">RSS</a>
201           <xsl:variable name="calcategory">
202             <xsl:choose>
203               <xsl:when test="/bedework/title=''">all</xsl:when>
204               <xsl:otherwise><xsl:value-of select="translate(/bedework/title,' ','')"/></xsl:otherwise>
205             </xsl:choose>
206           </xsl:variable>
207           <!--<xsl:variable name="icalName"
208                         select="concat('ucal',$curdate,/bedework/periodname,$calcategory,'.ics')"/>
209           <a class="rss" href="{$export}?nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$icalName}" title="Download all events currently displayed as iCal - for multiple events, save to disk and import">iCal</a>
210           -->
211         </td>
212       </tr>
213     </table>
214   </xsl:template>
215
216   <xsl:template name="tabs">
217     <xsl:choose>
218       <xsl:when test="/bedework/page='eventscalendar'">
219         <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
220           <tr>
221             <td>
222               <xsl:choose>
223                 <xsl:when test="/bedework/periodname='Day'">
224                   <a href="{$setViewPeriod}?viewType=dayView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-on.gif" width="91" height="20" border="0" alt="DAY"/></a>
225                 </xsl:when>
226                 <xsl:otherwise>
227                   <a href="{$setViewPeriod}?viewType=dayView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
228                 </xsl:otherwise>
229               </xsl:choose>
230             </td>
231             <td>
232               <xsl:choose>
233                 <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
234                   <a href="{$setViewPeriod}?viewType=weekView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-on.gif" width="92" height="20" border="0" alt="WEEK"/></a>
235                  </xsl:when>
236                 <xsl:otherwise>
237                   <a href="{$setViewPeriod}?viewType=weekView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
238                  </xsl:otherwise>
239               </xsl:choose>
240             </td>
241             <td>
242               <xsl:choose>
243                 <xsl:when test="/bedework/periodname='Month'">
244                   <a href="{$setViewPeriod}?viewType=monthView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-on.gif" width="90" height="20" border="0" alt="MONTH"/></a>
245                 </xsl:when>
246                 <xsl:otherwise>
247                   <a href="{$setViewPeriod}?viewType=monthView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
248                 </xsl:otherwise>
249               </xsl:choose>
250             </td>
251             <td>
252               <xsl:choose>
253                 <xsl:when test="/bedework/periodname='Year'">
254                   <a href="{$setViewPeriod}?viewType=yearView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-on.gif" width="92" height="20" border="0" alt="YEAR"/></a>
255                 </xsl:when>
256                 <xsl:otherwise>
257                   <a href="{$setViewPeriod}?viewType=yearView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
258                 </xsl:otherwise>
259               </xsl:choose>
260             </td>
261             <td class="centerCell">
262               &#160;
263             </td>
264             <td class="rightCell">
265               &#160;
266             </td>
267           </tr>
268         </table>
269       </xsl:when>
270       <xsl:otherwise>
271         <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
272           <tr>
273             <td>
274               <a href="{$setViewPeriod}?viewType=dayView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
275             </td>
276             <td>
277               <a href="{$setViewPeriod}?viewType=weekView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
278             </td>
279             <td>
280               <a href="{$setViewPeriod}?viewType=monthView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
281             </td>
282             <td>
283               <a href="{$setViewPeriod}?viewType=yearView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
284             </td>
285             <td class="centerCell">
286                 &#160;
287             </td>
288             <td class="rightCell">
289               &#160;
290             </td>
291           </tr>
292         </table>
293       </xsl:otherwise>
294     </xsl:choose>
295   </xsl:template>
296
297   <xsl:template name="alerts">
298     <table id="alertsTable">
299       <tr>
300         <td>
301           I'm an alert
302         </td>
303       </tr>
304     </table>
305   </xsl:template>
306
307   <xsl:template name="navigation">
308     <table border="0" cellpadding="0" cellspacing="0" id="navigationBarTable">
309       <tr>
310         <td class="leftCell">
311           <a href="{$setViewPeriod}?date={$prevdate}"><img src="{$resourcesRoot}/images/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a>
312           <a href="{$setViewPeriod}?date={$nextdate}"><img src="{$resourcesRoot}/images/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a>
313           <xsl:choose>
314             <xsl:when test="/bedework/periodname='Day'">
315               <xsl:value-of select="substring(/bedework/eventscalendar/year/month/week/day/name,1,3)"/>, <xsl:value-of select="/bedework/eventscalendar/year/month/shortname"/>&#160;<xsl:value-of select="/bedework/eventscalendar/year/month/week/day/value"/>, <xsl:value-of select="/bedework/eventscalendar/year/value"/>
316             </xsl:when>
317             <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
318               Week of <xsl:value-of select="/bedework/eventscalendar/year/month/shortname"/>&#160;<xsl:value-of select="/bedework/eventscalendar/year/month/week/day/value"/>, <xsl:value-of select="/bedework/eventscalendar/year/value"/>
319             </xsl:when>
320             <xsl:when test="/bedework/periodname='Month'">
321               <xsl:value-of select="/bedework/eventscalendar/year/month/longname"/>, <xsl:value-of select="/bedework/eventscalendar/year/value"/>
322             </xsl:when>
323             <xsl:otherwise>
324               <xsl:value-of select="/bedework/eventscalendar/year/value"/>
325             </xsl:otherwise>
326           </xsl:choose>
327         </td>
328         <td align="right" class="gotoForm">
329           <form name="calForm" method="get" action="{$setViewPeriod}">
330              <table border="0" cellpadding="0" cellspacing="0">
331               <tr>
332                 <xsl:if test="/bedework/periodname!='Year'">
333                   <td>
334                     <select name="viewStartDate.month">
335                       <xsl:for-each select="/bedework/monthvalues/val">
336                         <xsl:variable name="temp" select="."/>
337                         <xsl:variable name="pos" select="position()"/>
338                         <xsl:choose>
339                           <xsl:when test="/bedework/monthvalues[start=$temp]">
340                             <option value="{$temp}" selected="selected">
341                               <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
342                             </option>
343                           </xsl:when>
344                           <xsl:otherwise>
345                             <option value="{$temp}">
346                               <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
347                             </option>
348                           </xsl:otherwise>
349                         </xsl:choose>
350                       </xsl:for-each>
351                     </select>
352                   </td>
353                   <xsl:if test="/bedework/periodname!='Month'">
354                     <td>
355                       <select name="viewStartDate.day">
356                         <xsl:for-each select="/bedework/dayvalues/val">
357                           <xsl:variable name="temp" select="."/>
358                           <xsl:variable name="pos" select="position()"/>
359                           <xsl:choose>
360                             <xsl:when test="/bedework/dayvalues[start=$temp]">
361                               <option value="{$temp}" selected="selected">
362                                 <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
363                               </option>
364                             </xsl:when>
365                             <xsl:otherwise>
366                               <option value="{$temp}">
367                                 <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
368                               </option>
369                             </xsl:otherwise>
370                           </xsl:choose>
371                         </xsl:for-each>
372                       </select>
373                     </td>
374                   </xsl:if>
375                 </xsl:if>
376                 <td>
377                   <xsl:variable name="temp" select="/bedework/yearvalues/start"/>
378                   <input type="text" name="viewStartDate.year" maxlength="4" size="4" value="{$temp}"/>
379                 </td>
380                 <td>
381                   <input name="submit" type="submit" value="go"/>
382                 </td>
383               </tr>
384             </table>
385           </form>
386         </td>
387         <td class="todayButton">
388           <a href="{$setViewPeriod}?viewType=todayView&amp;date={$curdate}">
389             <img src="{$resourcesRoot}/images/std-button-today-off.gif" width="54" height="22" border="0" alt="Go to Today" align="left"/>
390           </a>
391         </td>
392         <td class="rightCell">
393         </td>
394       </tr>
395     </table>
396   </xsl:template>
397
398   <xsl:template name="searchBar">
399     <table width="100%" border="0" cellpadding="0" cellspacing="0" id="searchBarTable">
400        <tr>
401          <td class="leftCell">
402            <xsl:choose>
403              <xsl:when test="/bedework/selectionState/selectionType = 'calendar'">
404                Calendar: <xsl:value-of select="/bedework/selectionState/subscriptions/subscription/calendar/name"/>
405                <span class="link">[<a href="{$setSelection}">default view</a>]</span>
406              </xsl:when>
407              <xsl:when test="/bedework/selectionState/selectionType = 'search'">
408                Current search: <xsl:value-of select="/bedework/search"/>
409                <span class="link">[<a href="{$setSelection}">default view</a>]</span>
410              </xsl:when>
411              <xsl:when test="/bedework/selectionState/selectionType = 'subscription'">
412                Subscription: (not implemented yet)
413                <span class="link">[<a href="{$setSelection}">default view</a>]</span>
414              </xsl:when>
415              <xsl:when test="/bedework/selectionState/selectionType = 'filter'">
416                Filter: (not implemented yet)
417                <span class="link">[<a href="{$setSelection}">default view</a>]</span>
418              </xsl:when>
419              <xsl:otherwise><!-- view -->
420                View:
421                <form name="selectViewForm" method="get" action="{$setSelection}">
422                 <select name="viewName" onChange="submit()" >
423                   <xsl:for-each select="/bedework/views/view">
424                     <xsl:variable name="name" select="name"/>
425                     <xsl:choose>
426                       <xsl:when test="name=/bedework/selectionState/view/name">
427                         <option value="{$name}" selected="selected"><xsl:value-of select="name"/></option>
428                       </xsl:when>
429                       <xsl:otherwise>
430                         <option value="{$name}"><xsl:value-of select="name"/></option>
431                       </xsl:otherwise>
432                     </xsl:choose>
433                   </xsl:for-each>
434                 </select>
435               </form>
436               <span class="calLinks"><a href="{$setSelection}">default view</a> | <a href="{$fetchPublicCalendars}">available calendars</a></span>
437              </xsl:otherwise>
438            </xsl:choose>
439          </td>
440          <td class="rightCell">
441             <xsl:choose>
442               <xsl:when test="/bedework/periodname='Day'">
443                 <img src="{$resourcesRoot}/images/std-button-listview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
444               </xsl:when>
445               <xsl:when test="/bedework/periodname='Year'">
446                 <img src="{$resourcesRoot}/images/std-button-calview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
447               </xsl:when>
448               <xsl:when test="/bedework/periodname='Month'">
449                 <xsl:choose>
450                   <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
451                     <a href="{$setup}?setappvar=monthViewMode(cal)" title="toggle list/calendar view">
452                       <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
453                     </a>
454                   </xsl:when>
455                   <xsl:otherwise>
456                     <a href="{$setup}?setappvar=monthViewMode(list)" title="toggle list/calendar view">
457                       <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
458                     </a>
459                   </xsl:otherwise>
460                 </xsl:choose>
461               </xsl:when>
462               <xsl:otherwise>
463                 <xsl:choose>
464                   <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'">
465                     <a href="{$setup}?setappvar=weekViewMode(cal)" title="toggle list/calendar view">
466                       <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
467                     </a>
468                   </xsl:when>
469                   <xsl:otherwise>
470                     <a href="{$setup}?setappvar=weekViewMode(list)" title="toggle list/calendar view">
471                       <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
472                     </a>
473                   </xsl:otherwise>
474                 </xsl:choose>
475               </xsl:otherwise>
476             </xsl:choose>
477             <xsl:choose>
478               <xsl:when test="/bedework/periodname='Year' or
479                               (/bedework/periodname='Month' and
480                               (/bedework/appvar[key='monthViewMode']/value='cal' or
481                                count(/bedework/appvar[key='monthViewMode'])=0)) or
482                               (/bedework/periodname='Week' and
483                               (/bedework/appvar[key='weekViewMode']/value='cal' or
484                                count(/bedework/appvar[key='weekViewMode'])=0))">
485                 <xsl:choose>
486                   <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
487                     <img src="{$resourcesRoot}/images/std-button-summary-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
488                   </xsl:when>
489                   <xsl:otherwise>
490                     <img src="{$resourcesRoot}/images/std-button-details-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
491                   </xsl:otherwise>
492                 </xsl:choose>
493               </xsl:when>
494               <xsl:otherwise>
495                 <xsl:choose>
496                   <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
497                     <a href="{$setup}?setappvar=summaryMode(summary)" title="toggle summary/detailed view">
498                       <img src="{$resourcesRoot}/images/std-button-summary.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
499                     </a>
500                   </xsl:when>
501                   <xsl:otherwise>
502                     <a href="{$setup}?setappvar=summaryMode(details)" title="toggle summary/detailed view">
503                       <img src="{$resourcesRoot}/images/std-button-details.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
504                     </a>
505                   </xsl:otherwise>
506                 </xsl:choose>
507               </xsl:otherwise>
508             </xsl:choose>
509             <a href="setup.do"><img src="{$resourcesRoot}/images/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a>
510           </td>
511        </tr>
512     </table>
513   </xsl:template>
514
515   <!--==== SINGLE EVENT ====-->
516   <xsl:template match="event">
517     <table id="eventTable" cellpadding="0" cellspacing="0">
518       <tr>
519         <th class="fieldname">Event:</th>
520         <th class="fieldval">
521           <xsl:choose>
522             <xsl:when test="link != ''">
523               <xsl:variable name="link" select="link"/>
524               <a href="{$link}">
525                 <xsl:value-of select="summary"/>
526               </a>
527             </xsl:when>
528             <xsl:otherwise>
529               <xsl:value-of select="summary"/>
530             </xsl:otherwise>
531           </xsl:choose>
532         </th>
533         <th class="icalIcon" rowspan="2">
534           <xsl:variable name="id" select="id"/>
535           <xsl:variable name="subscriptionId" select="subscription/id"/>
536           <xsl:variable name="guid" select="guid"/>
537           <xsl:variable name="recurrenceId" select="recurrenceId"/>
538           <a href="{$privateCal}/addEventRef.do?eventId={$id}" title="Add event to MyCalendar" target="myCalendar">
539             <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon.gif" width="20" height="26" border="0" alt="Add event to MyCalendar"/>
540           </a>
541           <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
542           <a href="{$export}?subid={$subscriptionId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
543             <img src="{$resourcesRoot}/images/std-ical_icon.gif" width="20" height="26" border="0" alt="Download this event"/>
544           </a>
545         </th>
546       </tr>
547       <tr>
548         <td class="fieldname">When:</td>
549         <td class="fieldval">
550           <!-- was using abbrev dayname: substring(start/dayname,1,3) -->
551           <xsl:value-of select="start/dayname"/>, <xsl:value-of select="start/longdate"/><xsl:text> </xsl:text>
552           <xsl:if test="start/allday = 'false'">
553             <span class="time"><xsl:value-of select="start/time"/></span>
554           </xsl:if>
555           <xsl:if test="end/allday = 'false' or end/longdate != start/longdate"> - </xsl:if>
556           <xsl:if test="end/longdate != start/longdate"><xsl:value-of select="substring(end/dayname,1,3)"/>, <xsl:value-of select="end/longdate"/><xsl:text> </xsl:text></xsl:if>
557           <xsl:if test="end/allday = 'false'"><span class="time"><xsl:value-of select="end/time"/></span></xsl:if>
558           <xsl:if test="start/allday = 'true'"><span class="time"><em>(all day)</em></span></xsl:if>
559         </td>
560       </tr>
561       <tr>
562         <td class="fieldname">Where:</td>
563         <td colspan="2" class="fieldval">
564           <xsl:choose>
565             <xsl:when test="location/link=''">
566               <xsl:value-of select="location/address"/>
567             </xsl:when>
568             <xsl:otherwise>
569               <xsl:variable name="locationLink" select="location/link"/>
570               <a href="{$locationLink}">
571                 <xsl:value-of select="location/address"/>
572               </a>
573             </xsl:otherwise>
574           </xsl:choose>
575           <xsl:if test="location/subaddress!=''">
576             <br/><xsl:value-of select="location/subaddress"/>
577           </xsl:if>
578         </td>
579       </tr>
580       <tr>
581         <td class="fieldname">Description:</td>
582         <td colspan="2" class="fieldval">
583           <xsl:value-of select="description"/>
584         </td>
585       </tr>
586        <xsl:if test="cost!=''">
587         <tr>
588           <td class="fieldname">Cost:</td>
589           <td colspan="2" class="fieldval"><xsl:value-of select="cost"/></td>
590         </tr>
591       </xsl:if>
592       <xsl:if test="link != ''">
593         <tr>
594           <td class="fieldname">See:</td>
595           <td colspan="2" class="fieldval">
596             <xsl:variable name="link" select="link"/>
597             <a href="{$link}"><xsl:value-of select="link"/></a>
598           </td>
599         </tr>
600       </xsl:if>
601       <xsl:if test="sponsor/name!='none'">
602         <tr>
603           <td class="fieldname">Contact:</td>
604           <td colspan="2" class="fieldval">
605             <xsl:choose>
606               <xsl:when test="sponsor/link=''">
607                 <xsl:value-of select="sponsor/name"/>
608               </xsl:when>
609               <xsl:otherwise>
610                 <xsl:variable name="sponsorLink" select="sponsor/link"/>
611                 <a href="{$sponsorLink}">
612                   <xsl:value-of select="sponsor/name"/>
613                 </a>
614               </xsl:otherwise>
615             </xsl:choose>
616             <xsl:if test="sponsor/phone!=''">
617               <br /><xsl:value-of select="sponsor/phone"/>
618             </xsl:if>
619             <!-- If you want to display email addresses, uncomment the
620                  following 8 lines. -->
621             <!-- <xsl:if test="sponsor/email!=''">
622               <br />
623               <xsl:variable name="email" select="sponsor/email"/>
624               <xsl:variable name="subject" select="summary"/>
625               <a href="mailto:{$email}?subject={$subject}">
626                 <xsl:value-of select="sponsor/email"/>
627               </a>
628             </xsl:if> -->
629           </td>
630         </tr>
631       </xsl:if>
632     </table>
633   </xsl:template>
634
635   <!--==== LIST VIEW  (for day, week, and month) ====-->
636   <xsl:template name="listView">
637     <table id="listTable" border="0" cellpadding="0" cellspacing="0">
638       <xsl:choose>
639         <xsl:when test="count(/bedework/eventscalendar/year/month/week/day/event)=0">
640           <tr>
641             <td class="noEventsCell">
642               There are no events posted
643               <xsl:choose>
644                 <xsl:when test="/bedework/periodname='Day'">
645                   today<xsl:if test="/bedework/title!=''"> for <strong><xsl:value-of select="/bedework/title"/></strong></xsl:if><xsl:if test="/bedework/search!=''"> for search term <strong>"<xsl:value-of select="/bedework/search"/>"</strong></xsl:if>.
646                 </xsl:when>
647                 <xsl:when test="/bedework/periodname='Month'">
648                   this month<xsl:if test="/bedework/title!=''"> for <strong><xsl:value-of select="/bedework/title"/></strong></xsl:if><xsl:if test="/bedework/search!=''"> for search term <strong>"<xsl:value-of select="/bedework/search"/>"</strong></xsl:if>.
649                 </xsl:when>
650                 <xsl:otherwise>
651                   this week<xsl:if test="/bedework/title!=''"> for <strong><xsl:value-of select="/bedework/title"/></strong></xsl:if><xsl:if test="/bedework/search!=''"> for search term <strong>"<xsl:value-of select="/bedework/search"/>"</strong></xsl:if>.
652                 </xsl:otherwise>
653               </xsl:choose>
654             </td>
655           </tr>
656         </xsl:when>
657         <xsl:otherwise>
658           <xsl:for-each select="/bedework/eventscalendar/year/month/week/day[count(event)!=0]">
659             <xsl:if test="/bedework/periodname='Week' or /bedework/periodname='Month' or /bedework/periodname=''">
660               <tr>
661                 <td colspan="5" class="dateRow">
662                    <xsl:variable name="date" select="date"/>
663                    <a href="{$setViewPeriod}?viewType=dayView&amp;date={$date}">
664                      <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/>
665                    </a>
666                 </td>
667               </tr>
668             </xsl:if>
669             <xsl:for-each select="event">
670               <xsl:variable name="id" select="id"/>
671               <xsl:variable name="subscriptionId" select="subscription/id"/>
672               <xsl:variable name="guid" select="guid"/>
673               <xsl:variable name="recurrenceId" select="recurrenceId"/>
674               <tr>
675                 <xsl:variable name="dateRangeStyle">
676                   <xsl:choose>
677                     <xsl:when test="start/shortdate = parent::day/shortdate">
678                       <xsl:choose>
679                         <xsl:when test="start/allday = 'true'">dateRangeCrossDay</xsl:when>
680                         <xsl:when test="start/hour24 &lt; 6">dateRangeEarlyMorning</xsl:when>
681                         <xsl:when test="start/hour24 &lt; 12">dateRangeMorning</xsl:when>
682                         <xsl:when test="start/hour24 &lt; 18">dateRangeAfternoon</xsl:when>
683                         <xsl:otherwise>dateRangeEvening</xsl:otherwise>
684                       </xsl:choose>
685                     </xsl:when>
686                     <xsl:otherwise>dateRangeCrossDay</xsl:otherwise>
687                   </xsl:choose>
688                 </xsl:variable>
689                 <xsl:choose>
690                   <xsl:when test="start/allday = 'true' and
691                                   start/shortdate = end/shortdate">
692                     <td class="{$dateRangeStyle} center" colspan="3">
693                       all day
694                     </td>
695                   </xsl:when>
696                   <xsl:otherwise>
697                     <td class="{$dateRangeStyle} right">
698                       <a href="{$eventView}?subid={$subscriptionId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">
699                       <xsl:choose>
700                         <xsl:when test="start/allday = 'true' and
701                                         parent::day/shortdate = start/shortdate">
702                           today
703                         </xsl:when>
704                         <xsl:when test="parent::day/shortdate != start/shortdate">
705                           <span class="littleArrow">&#171;</span>&#160;
706                           <xsl:value-of select="start/month"/>/<xsl:value-of select="start/day"/>
707                         </xsl:when>
708                         <xsl:otherwise>
709                           <xsl:value-of select="start/time"/>
710                         </xsl:otherwise>
711                       </xsl:choose>
712                       </a>
713                     </td>
714                     <td class="{$dateRangeStyle} center">
715                       <a href="{$eventView}?subid={$subscriptionId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">-</a>
716                     </td>
717                     <td class="{$dateRangeStyle} left">
718                       <a href="{$eventView}?subid={$subscriptionId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">
719                       <xsl:choose>
720                         <xsl:when test="end/allday = 'true' and
721                                         parent::day/shortdate = end/shortdate">
722                           today
723                         </xsl:when>
724                         <xsl:when test="parent::day/shortdate != end/shortdate">
725                           <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/>
726                           &#160;<span class="littleArrow">&#187;</span>
727                         </xsl:when>
728                         <xsl:otherwise>
729                           <xsl:value-of select="end/time"/>
730                         </xsl:otherwise>
731                       </xsl:choose>
732                       </a>
733                     </td>
734                   </xsl:otherwise>
735                 </xsl:choose>
736                 <xsl:variable name="descriptionClass">
737                   <xsl:choose>
738                     <xsl:when test="priority='cancelled'">description cancelled</xsl:when>
739                     <xsl:otherwise>description</xsl:otherwise>
740                   </xsl:choose>
741                 </xsl:variable>
742                 <td class="{$descriptionClass}">
743                   <xsl:choose>
744                     <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
745                       <a href="{$eventView}?subid={$subscriptionId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">
746                         <strong><xsl:value-of select="summary"/>: </strong>
747                         <xsl:value-of select="description"/>&#160;
748                         <em>
749                           <xsl:value-of select="location/address"/>
750                           <xsl:if test="location/subaddress != ''">
751                             , <xsl:value-of select="location/subaddress"/>
752                           </xsl:if>.&#160;
753                           <xsl:if test="cost!=''">
754                             <xsl:value-of select="cost"/>.&#160;
755                           </xsl:if>
756                           <xsl:if test="sponsor/name!='none'">
757                             Contact: <xsl:value-of select="sponsor/name"/>
758                           </xsl:if>
759                         </em>
760                       </a>
761                       <xsl:if test="link != ''">
762                         <xsl:variable name="link" select="link"/>
763                         <a href="{$link}" class="moreLink"><xsl:value-of select="link"/></a>
764                       </xsl:if>
765                     </xsl:when>
766                     <xsl:otherwise>
767                       <a href="{$eventView}?subid={$subscriptionId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">
768                         <xsl:value-of select="summary"/>, <xsl:value-of select="location/address"/>
769                       </a>
770                     </xsl:otherwise>
771                   </xsl:choose>
772                 </td>
773                 <td class="icons">
774                   <variable name="confId" select="/bedework/confirmationid"/>
775                   <a href="{$privateCal}/addEventRef.do?eventId={$id}" title="Add event to MyCalendar" target="myCalendar">
776                     <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/>
777                   </a>
778                   <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
779                   <a href="{$export}?subid={$subscriptionId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
780                     <img src="{$resourcesRoot}/images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/>
781                   </a>
782                 </td>
783               </tr>
784             </xsl:for-each>
785           </xsl:for-each>
786         </xsl:otherwise>
787       </xsl:choose>
788     </table>
789   </xsl:template>
790
791   <!--==== WEEK CALENDAR VIEW ====-->
792   <xsl:template name="weekView">
793     <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
794       <tr>
795         <xsl:for-each select="/bedework/daynames/val">
796           <th class="dayHeading"><xsl:value-of select="."/></th>
797         </xsl:for-each>
798       </tr>
799       <tr>
800         <xsl:for-each select="/bedework/eventscalendar/year/month/week/day">
801           <xsl:variable name="dayPos" select="position()"/>
802           <xsl:if test="filler='false'">
803             <td>
804               <xsl:variable name="dayDate" select="date"/>
805               <a href="{$setViewPeriod}?viewType=dayView&amp;date={$dayDate}" class="dayLink">
806                 <xsl:value-of select="value"/>
807               </a>
808               <ul>
809                 <xsl:apply-templates select="event" mode="calendarLayout">
810                   <xsl:with-param name="dayPos" select="$dayPos"/>
811                 </xsl:apply-templates>
812               </ul>
813             </td>
814           </xsl:if>
815         </xsl:for-each>
816       </tr>
817     </table>
818   </xsl:template>
819
820   <!--==== MONTH CALENDAR VIEW ====-->
821   <xsl:template name="monthView">
822     <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
823       <tr>
824         <xsl:for-each select="/bedework/daynames/val">
825           <th class="dayHeading"><xsl:value-of select="."/></th>
826         </xsl:for-each>
827       </tr>
828       <xsl:for-each select="/bedework/eventscalendar/year/month/week">
829         <tr>
830           <xsl:for-each select="day">
831             <xsl:variable name="dayPos" select="position()"/>
832             <xsl:choose>
833               <xsl:when test="filler='true'">
834                 <td class="filler">&#160;</td>
835               </xsl:when>
836               <xsl:otherwise>
837                 <td>
838                   <xsl:variable name="dayDate" select="date"/>
839                   <a href="{$setViewPeriod}?viewType=dayView&amp;date={$dayDate}" class="dayLink">
840                     <xsl:value-of select="value"/>
841                   </a>
842                   <ul>
843                     <xsl:apply-templates select="event" mode="calendarLayout">
844                       <xsl:with-param name="dayPos" select="$dayPos"/>
845                     </xsl:apply-templates>
846                   </ul>
847                 </td>
848               </xsl:otherwise>
849             </xsl:choose>
850           </xsl:for-each>
851         </tr>
852       </xsl:for-each>
853     </table>
854   </xsl:template>
855
856   <xsl:template match="event" mode="calendarLayout">
857     <xsl:param name="dayPos"/>
858     <xsl:variable name="subscriptionId" select="subscription/id"/>
859     <xsl:variable name="guid" select="guid"/>
860     <xsl:variable name="recurrenceId" select="recurrenceId"/>
861     <xsl:variable name="eventClass">
862       <xsl:choose>
863         <!-- Special styles for the month grid -->
864         <xsl:when test="status='cancelled'">eventCancelled</xsl:when>
865         <xsl:when test="calendar/name='Holidays'">holiday</xsl:when>
866         <!-- Alternating colors for all standard events -->
867         <xsl:when test="position() mod 2 = 1">eventLinkA</xsl:when>
868         <xsl:otherwise>eventLinkB</xsl:otherwise>
869       </xsl:choose>
870     </xsl:variable>
871     <li>
872       <a href="{$eventView}?subid={$subscriptionId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" class="{$eventClass}">
873         <xsl:value-of select="summary"/>
874         <xsl:variable name="eventTipClass">
875           <xsl:choose>
876             <xsl:when test="$dayPos &gt; 5">eventTipReverse</xsl:when>
877             <xsl:otherwise>eventTip</xsl:otherwise>
878           </xsl:choose>
879         </xsl:variable>
880         <span class="{$eventTipClass}">
881           <strong><xsl:value-of select="summary"/></strong><br/>
882           Time:
883           <xsl:choose>
884             <xsl:when test="start/allday = 'false'">
885               <xsl:value-of select="start/time"/>
886                - <xsl:value-of select="end/time"/>
887             </xsl:when>
888             <xsl:otherwise>
889               all day
890             </xsl:otherwise>
891           </xsl:choose><br/>
892           <xsl:if test="location/address">
893             Location: <xsl:value-of select="location/address"/><br/>
894           </xsl:if>
895           Calendar: <xsl:value-of select="calendar/name"/>
896         </span>
897       </a>
898     </li>
899   </xsl:template>
900
901   <!--==== YEAR VIEW ====-->
902   <xsl:template name="yearView">
903     <table id="yearCalendarTable" border="0" cellpadding="0" cellspacing="0">
904       <tr>
905         <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() &lt;= 3]"/>
906       </tr>
907       <tr>
908         <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() &gt; 3) and (position() &lt;= 6)]"/>
909       </tr>
910       <tr>
911         <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() &gt; 6) and (position() &lt;= 9)]"/>
912       </tr>
913       <tr>
914         <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() &gt; 9]"/>
915       </tr>
916     </table>
917   </xsl:template>
918
919   <!-- year view month tables -->
920   <xsl:template match="month">
921     <td>
922       <table class="yearViewMonthTable" border="0" cellpadding="0" cellspacing="0">
923         <tr>
924           <td colspan="8" class="monthName">
925             <xsl:variable name="firstDayOfMonth" select="week/day/date"/>
926             <a href="{$setViewPeriod}?viewType=monthView&amp;date={$firstDayOfMonth}">
927               <xsl:value-of select="longname"/>
928             </a>
929           </td>
930         </tr>
931         <tr>
932           <th>&#160;</th>
933           <xsl:for-each select="/bedework/shortdaynames/val">
934             <th><xsl:value-of select="."/></th>
935           </xsl:for-each>
936         </tr>
937         <xsl:for-each select="week">
938           <tr>
939             <td class="weekCell">
940               <xsl:variable name="firstDayOfWeek" select="day/date"/>
941               <a href="{$setViewPeriod}?viewType=weekView&amp;date={$firstDayOfWeek}">
942                 <xsl:value-of select="value"/>
943               </a>
944             </td>
945             <xsl:for-each select="day">
946               <xsl:choose>
947                 <xsl:when test="filler='true'">
948                   <td class="filler">&#160;</td>
949                 </xsl:when>
950                 <xsl:otherwise>
951                   <td>
952                     <xsl:variable name="dayDate" select="date"/>
953                     <a href="{$setViewPeriod}?viewType=dayView&amp;date={$dayDate}">
954                       <xsl:value-of select="value"/>
955                     </a>
956                   </td>
957                 </xsl:otherwise>
958               </xsl:choose>
959             </xsl:for-each>
960           </tr>
961         </xsl:for-each>
962       </table>
963     </td>
964   </xsl:template>
965
966   <!--==== CALENDARS PAGE ====-->
967   <xsl:template match="calendars">
968     <xsl:variable name="topLevelCalCount" select="count(calendar/calendar)"/>
969     <table id="calPageTable" border="0" cellpadding="0" cellspacing="0">
970       <tr>
971         <th colspan="2">
972           All Calendars
973         </th>
974       </tr>
975       <tr>
976         <td colspan="2" class="infoCell">
977           Select a calendar from the list below to see only that calendar's events.
978         </td>
979       </tr>
980       <tr>
981         <td class="leftCell">
982           <ul class="calendarTree">
983             <xsl:apply-templates select="calendar/calendar[position() &lt;= ceiling($topLevelCalCount div 2)]" mode="calTree"/>
984           </ul>
985         </td>
986         <td>
987           <ul class="calendarTree">
988             <xsl:apply-templates select="calendar/calendar[position() &gt; ceiling($topLevelCalCount div 2)]" mode="calTree"/>
989           </ul>
990         </td>
991       </tr>
992     </table>
993   </xsl:template>
994
995   <xsl:template match="calendar" mode="calTree">
996     <xsl:variable name="itemClass">
997       <xsl:choose>
998         <xsl:when test="calendarCollection='false'">folder</xsl:when>
999         <xsl:otherwise>calendar</xsl:otherwise>
1000       </xsl:choose>
1001     </xsl:variable>
1002     <xsl:variable name="url" select="url"/>
1003     <li class="{$itemClass}">
1004       <a href="{$setSelection}?calUrl={$url}"><xsl:value-of select="name"/></a>
1005       <xsl:if test="calendar">
1006         <ul>
1007           <xsl:apply-templates select="calendar" mode="calTree"/>
1008         </ul>
1009       </xsl:if>
1010     </li>
1011   </xsl:template>
1012
1013   <!--==== FOOTER ====-->
1014
1015   <xsl:template name="footer">
1016     <div id="footer">
1017       Demonstration calendar; place footer information here.
1018     </div>
1019     <table id="skinSelectorTable" border="0" cellpadding="0" cellspacing="0">
1020       <tr>
1021         <td class="leftCell">
1022           Based on the <a href="http://www.bedework.org/">Bedework Calendar</a>
1023         </td>
1024         <td class="rightCell">
1025           <form name="styleSelectForm" method="get" action="{$setup}">
1026             <select name="setappvar" onChange="submit()">
1027               <option>example styles:</option>
1028               <option value="style(green)">green</option>
1029               <option value="style(red)">red</option>
1030               <option value="style(blue)">blue</option>
1031             </select>
1032           </form>
1033           <form name="skinSelectForm" method="get" action="{$setup}">
1034             <input type="hidden" name="setappvar" value="summaryMode(details)"/>
1035             <select name="skinName" onchange="submit()">
1036               <option>example skins:</option>
1037               <option value="rss">rss feed</option>
1038               <option value="jsToday">javascript feed</option>
1039               <option value="videocal">video feed</option>
1040               <option value="default">reset to calendar default</option>
1041             </select>
1042           </form>
1043           <form name="skinSelectForm" method="get" action="">
1044             <select name="sitePicker" onchange="window.location = this.value">
1045               <option>production examples:</option>
1046               <option value="http://events.rpi.edu">Rensselaer</option>
1047               <option value="http://myuw.washington.edu/cal/">Washington</option>
1048             </select>
1049           </form>
1050         </td>
1051       </tr>
1052     </table>
1053   </xsl:template>
1054 </xsl:stylesheet>
Note: See TracBrowser for help on using the browser.