root/trunk/calendar3/deployment/webadmin/webapp/resources/default/default/default.xsl

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

commented out all xsl:sort elements in public and admin stylesheets. For public there was a calendar sort in the calendar listing; for admin the sorts were for calendars, groups, authusers, views, subscriptions, and group members. Sorting should come from the back end.

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/strict.dtd"
9   standalone="yes"
10   omit-xml-declaration="yes"/>
11    <!-- ======================================== -->
12   <!--      BEDEWORK ADMIN CLIENT STYLESHEET     -->
13   <!-- ========================================= -->
14
15   <!-- DEFINE INCLUDES -->
16   <xsl:include href="errors.xsl"/>
17   <xsl:include href="messages.xsl"/>
18
19   <!-- DEFINE GLOBAL CONSTANTS -->
20   <!-- URL of html resources (images, css, other html); by default this is
21        set to the application root, but for the admin client
22        this should be changed to point to a
23        web server over https to avoid mixed content errors, e.g.,
24   <xsl:variable name="resourcesRoot" select="'https://mywebserver.edu/myresourcesdir'"/>
25     -->
26   <xsl:variable name="resourcesRoot" select="/bedeworkadmin/approot"/>
27
28   <!-- URL of the XSL template directory -->
29   <!-- The approot is an appropriate place to put
30        included stylesheets and xml fragments. These are generally
31        referenced relatively (like errors.xsl and messages.xsl above);
32        this variable is here for your convenience if you choose to
33        reference it explicitly.  It is not used in this stylesheet, however,
34        and can be safely removed if you so choose. -->
35   <xsl:variable name="appRoot" select="/bedeworkadmin/approot"/>
36
37   <!-- Properly encoded prefixes to the application actions; use these to build
38        urls; allows the application to be used without cookies or within a portal. -->
39   <xsl:variable name="setup" select="/bedeworkadmin/urlPrefixes/setup/a/@href"/> <!-- used -->
40   <xsl:variable name="logout" select="/bedeworkadmin/urlPrefixes/logout/a/@href"/><!-- used -->
41   <xsl:variable name="event-showEvent" select="/bedeworkadmin/urlPrefixes/event/showEvent/a/@href"/>
42   <xsl:variable name="event-showModForm" select="/bedeworkadmin/urlPrefixes/event/showModForm/a/@href"/>
43   <xsl:variable name="event-showUpdateList" select="/bedeworkadmin/urlPrefixes/event/showUpdateList/a/@href"/><!-- used -->
44   <xsl:variable name="event-showDeleteConfirm" select="/bedeworkadmin/urlPrefixes/event/showDeleteConfirm/a/@href"/>
45   <xsl:variable name="event-initAddEvent" select="/bedeworkadmin/urlPrefixes/event/initAddEvent/a/@href"/><!-- used -->
46   <xsl:variable name="event-initUpdateEvent" select="/bedeworkadmin/urlPrefixes/event/initUpdateEvent/a/@href"/><!-- used -->
47   <xsl:variable name="event-delete" select="/bedeworkadmin/urlPrefixes/event/delete/a/@href"/>
48   <xsl:variable name="event-fetchForDisplay" select="/bedeworkadmin/urlPrefixes/event/fetchForDisplay/a/@href"/>
49   <xsl:variable name="event-fetchForUpdate" select="/bedeworkadmin/urlPrefixes/event/fetchForUpdate/a/@href"/>
50   <xsl:variable name="event-update" select="/bedeworkadmin/urlPrefixes/event/update/a/@href"/>
51   <xsl:variable name="event-showClockMap" select="/bedeworkadmin/urlPrefixes/event/showClockMap/a/@href"/>
52   <xsl:variable name="sponsor-showSponsor" select="/bedeworkadmin/urlPrefixes/sponsor/showSponsor/a/@href"/>
53   <xsl:variable name="sponsor-showReferenced" select="/bedeworkadmin/urlPrefixes/sponsor/showReferenced/a/@href"/>
54   <xsl:variable name="sponsor-showModForm" select="/bedeworkadmin/urlPrefixes/sponsor/showModForm/a/@href"/>
55   <xsl:variable name="sponsor-showUpdateList" select="/bedeworkadmin/urlPrefixes/sponsor/showUpdateList/a/@href"/>
56   <xsl:variable name="sponsor-showDeleteConfirm" select="/bedeworkadmin/urlPrefixes/sponsor/showDeleteConfirm/a/@href"/>
57   <xsl:variable name="sponsor-initAdd" select="/bedeworkadmin/urlPrefixes/sponsor/initAdd/a/@href"/><!-- used -->
58   <xsl:variable name="sponsor-initUpdate" select="/bedeworkadmin/urlPrefixes/sponsor/initUpdate/a/@href"/>
59   <xsl:variable name="sponsor-delete" select="/bedeworkadmin/urlPrefixes/sponsor/delete/a/@href"/>
60   <xsl:variable name="sponsor-fetchForDisplay" select="/bedeworkadmin/urlPrefixes/sponsor/fetchForDisplay/a/@href"/>
61   <xsl:variable name="sponsor-fetchForUpdate" select="/bedeworkadmin/urlPrefixes/sponsor/fetchForUpdate/a/@href"/>
62   <xsl:variable name="sponsor-update" select="/bedeworkadmin/urlPrefixes/sponsor/update/a/@href"/>
63   <xsl:variable name="location-showLocation" select="/bedeworkadmin/urlPrefixes/location/showLocation/a/@href"/>
64   <xsl:variable name="location-showReferenced" select="/bedeworkadmin/urlPrefixes/location/showReferenced/a/@href"/>
65   <xsl:variable name="location-showModForm" select="/bedeworkadmin/urlPrefixes/location/showModForm/a/@href"/>
66   <xsl:variable name="location-showUpdateList" select="/bedeworkadmin/urlPrefixes/location/showUpdateList/a/@href"/>
67   <xsl:variable name="location-showDeleteConfirm" select="/bedeworkadmin/urlPrefixes/location/showDeleteConfirm/a/@href"/>
68   <xsl:variable name="location-initAdd" select="/bedeworkadmin/urlPrefixes/location/initAdd/a/@href"/><!-- used -->
69   <xsl:variable name="location-initUpdate" select="/bedeworkadmin/urlPrefixes/location/initUpdate/a/@href"/>
70   <xsl:variable name="location-delete" select="/bedeworkadmin/urlPrefixes/location/delete/a/@href"/>
71   <xsl:variable name="location-fetchForDisplay" select="/bedeworkadmin/urlPrefixes/location/fetchForDisplay/a/@href"/>
72   <xsl:variable name="location-fetchForUpdate" select="/bedeworkadmin/urlPrefixes/location/fetchForUpdate/a/@href"/>
73   <xsl:variable name="location-update" select="/bedeworkadmin/urlPrefixes/location/update/a/@href"/>
74   <!-- cals should all be good -->
75   <xsl:variable name="calendar-fetch" select="/bedeworkadmin/urlPrefixes/calendar/fetch/a/@href"/><!-- used -->
76   <xsl:variable name="calendar-initAdd" select="/bedeworkadmin/urlPrefixes/calendar/initAdd/a/@href"/><!-- used -->
77   <xsl:variable name="calendar-delete" select="/bedeworkadmin/urlPrefixes/calendar/delete/a/@href"/>
78   <xsl:variable name="calendar-fetchForDisplay" select="/bedeworkadmin/urlPrefixes/calendar/fetchForDisplay/a/@href"/>
79   <xsl:variable name="calendar-fetchForUpdate" select="/bedeworkadmin/urlPrefixes/calendar/fetchForUpdate/a/@href"/><!-- used -->
80   <xsl:variable name="calendar-update" select="/bedeworkadmin/urlPrefixes/calendar/update/a/@href"/><!-- used -->
81   <!-- all good - no need to clean any of these out  -->
82   <xsl:variable name="subscriptions-fetch" select="/bedeworkadmin/urlPrefixes/subscriptions/fetch/a/@href"/>
83   <xsl:variable name="subscriptions-fetchForUpdate" select="/bedeworkadmin/urlPrefixes/subscriptions/fetchForUpdate/a/@href"/>
84   <xsl:variable name="subscriptions-initAdd" select="/bedeworkadmin/urlPrefixes/subscriptions/initAdd/a/@href"/>
85   <xsl:variable name="subscriptions-subscribe" select="/bedeworkadmin/urlPrefixes/subscriptions/subscribe/a/@href"/>
86   <xsl:variable name="view-fetch" select="/bedeworkadmin/urlPrefixes/view/fetch/a/@href"/>
87   <xsl:variable name="view-fetchForUpdate" select="/bedeworkadmin/urlPrefixes/view/fetchForUpdate/a/@href"/>
88   <xsl:variable name="view-addView" select="/bedeworkadmin/urlPrefixes/view/addView/a/@href"/>
89   <xsl:variable name="view-update" select="/bedeworkadmin/urlPrefixes/view/update/a/@href"/>
90   <xsl:variable name="view-remove" select="/bedeworkadmin/urlPrefixes/view/remove/a/@href"/>
91   <xsl:variable name="system-fetch" select="/bedeworkadmin/urlPrefixes/system/fetch/a/@href"/>
92   <xsl:variable name="system-update" select="/bedeworkadmin/urlPrefixes/system/update/a/@href"/>
93   <xsl:variable name="timezones-initUpload" select="/bedeworkadmin/urlPrefixes/timezones/initUpload/a/@href"/>
94   <xsl:variable name="timezones-upload" select="/bedeworkadmin/urlPrefixes/timezones/upload/a/@href"/>
95   <!-- === -->
96   <xsl:variable name="authuser-showModForm" select="/bedeworkadmin/urlPrefixes/authuser/showModForm/a/@href"/>
97   <xsl:variable name="authuser-showUpdateList" select="/bedeworkadmin/urlPrefixes/authuser/showUpdateList/a/@href"/>
98   <xsl:variable name="authuser-initUpdate" select="/bedeworkadmin/urlPrefixes/authuser/initUpdate/a/@href"/>
99   <xsl:variable name="authuser-fetchForUpdate" select="/bedeworkadmin/urlPrefixes/authuser/fetchForUpdate/a/@href"/><!-- used -->
100   <xsl:variable name="authuser-update" select="/bedeworkadmin/urlPrefixes/authuser/update/a/@href"/>
101   <xsl:variable name="prefs-fetchForUpdate" select="/bedeworkadmin/urlPrefixes/prefs/fetchForUpdate/a/@href"/><!-- used -->
102   <xsl:variable name="prefs-update" select="/bedeworkadmin/urlPrefixes/prefs/update/a/@href"/><!-- used -->
103   <xsl:variable name="admingroup-showModForm" select="/bedeworkadmin/urlPrefixes/admingroup/showModForm/a/@href"/>
104   <xsl:variable name="admingroup-showModMembersForm" select="/bedeworkadmin/urlPrefixes/admingroup/showModMembersForm/a/@href"/>
105   <xsl:variable name="admingroup-showUpdateList" select="/bedeworkadmin/urlPrefixes/admingroup/showUpdateList/a/@href"/>
106   <xsl:variable name="admingroup-showChooseGroup" select="/bedeworkadmin/urlPrefixes/admingroup/showChooseGroup/a/@href"/>
107   <xsl:variable name="admingroup-showDeleteConfirm" select="/bedeworkadmin/urlPrefixes/admingroup/showDeleteConfirm/a/@href"/>
108   <xsl:variable name="admingroup-initAdd" select="/bedeworkadmin/urlPrefixes/admingroup/initAdd/a/@href"/><!-- used -->
109   <xsl:variable name="admingroup-initUpdate" select="/bedeworkadmin/urlPrefixes/admingroup/initUpdate/a/@href"/><!-- used -->
110   <xsl:variable name="admingroup-delete" select="/bedeworkadmin/urlPrefixes/admingroup/delete/a/@href"/>
111   <xsl:variable name="admingroup-fetchUpdateList" select="/bedeworkadmin/urlPrefixes/admingroup/fetchUpdateList/a/@href"/><!-- used -->
112   <xsl:variable name="admingroup-fetchForUpdate" select="/bedeworkadmin/urlPrefixes/admingroup/fetchForUpdate/a/@href"/><!-- used -->
113   <xsl:variable name="admingroup-fetchForUpdateMembers" select="/bedeworkadmin/urlPrefixes/admingroup/fetchForUpdateMembers/a/@href"/><!-- used -->
114   <xsl:variable name="admingroup-update" select="/bedeworkadmin/urlPrefixes/admingroup/update/a/@href"/><!-- used -->
115   <xsl:variable name="admingroup-updateMembers" select="/bedeworkadmin/urlPrefixes/admingroup/updateMembers/a/@href"/><!-- used -->
116   <xsl:variable name="admingroup-switch" select="/bedeworkadmin/urlPrefixes/admingroup/switch/a/@href"/>
117
118   <!-- URL of the web application - includes web context
119   <xsl:variable name="urlPrefix" select="/bedeworkadmin/urlprefix"/> -->
120
121   <!-- Other generally useful global variables -->
122   <xsl:variable name="publicCal">/cal</xsl:variable>
123
124   <!--==== MAIN TEMPLATE  ====-->
125   <xsl:template match="/">
126     <html lang="en">
127       <head>
128         <title>Calendar Admin: Events Calendar Administration</title>
129         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
130         <link rel="stylesheet" href="{$resourcesRoot}/default/default/default.css"/>
131         <xsl:if test="/bedeworkadmin/page='modEvent'">
132           <script language="JavaScript" type="text/javascript" src="{$resourcesRoot}/resources/includes.js"></script>
133           <script type='text/javascript' src="{$resourcesRoot}/resources/autoComplete.js"></script>
134           <script type='text/javascript' src="{$resourcesRoot}/resources/ui.js"></script>
135         </xsl:if>
136         <link rel="icon" type="image/ico" href="{$resourcesRoot}/bedework.ico" />
137         <script language="JavaScript" type="text/javascript">
138         <xsl:comment>
139         <![CDATA[
140         // places the cursor in the first available form element when the page is loaded
141         // (if a form exists on the page)
142         function focusFirstElement() {
143           if (window.document.forms[0]) {
144             window.document.forms[0].elements[0].focus();
145           }
146         }]]>
147         </xsl:comment>
148       </script>
149       </head>
150       <body onLoad="focusFirstElement()">
151         <xsl:call-template name="header"/>
152         <div id="content">
153           <xsl:choose>
154             <xsl:when test="/bedeworkadmin/page='eventList'">
155               <xsl:call-template name="eventList"/>
156             </xsl:when>
157             <xsl:when test="/bedeworkadmin/page='modEvent'">
158               <xsl:call-template name="modEvent"/>
159             </xsl:when>
160             <xsl:when test="/bedeworkadmin/page='displayEvent'">
161               <xsl:apply-templates select="/bedeworkadmin/event" mode="displayEvent"/>
162             </xsl:when>
163             <xsl:when test="/bedeworkadmin/page='sponsorList'">
164               <xsl:call-template name="sponsorList"/>
165             </xsl:when>
166             <xsl:when test="/bedeworkadmin/page='modSponsor'">
167               <xsl:call-template name="modSponsor"/>
168             </xsl:when>
169             <xsl:when test="/bedeworkadmin/page='deleteSponsorConfirm'">
170               <xsl:call-template name="deleteSponsorConfirm"/>
171             </xsl:when>
172             <xsl:when test="/bedeworkadmin/page='locationList'">
173               <xsl:call-template name="locationList"/>
174             </xsl:when>
175             <xsl:when test="/bedeworkadmin/page='modLocation'">
176               <xsl:call-template name="modLocation"/>
177             </xsl:when>
178             <xsl:when test="/bedeworkadmin/page='deleteLocationConfirm'">
179               <xsl:call-template name="deleteLocationConfirm"/>
180             </xsl:when>
181             <xsl:when test="/bedeworkadmin/page='calendarList' or /bedeworkadmin/page='modCalendar' or /bedeworkadmin/page='deleteCalendarConfirm'">
182               <xsl:apply-templates select="/bedeworkadmin/calendars"/>
183             </xsl:when>
184             <xsl:when test="/bedeworkadmin/page='subscriptions' or /bedeworkadmin/page='modSubscription'">
185               <xsl:apply-templates select="/bedeworkadmin/subscriptions"/>
186             </xsl:when>
187             <xsl:when test="/bedeworkadmin/page='views'">
188               <xsl:apply-templates select="/bedeworkadmin/views" mode="viewList"/>
189             </xsl:when>
190             <xsl:when test="/bedeworkadmin/page='modView'">
191               <xsl:call-template name="modView"/>
192             </xsl:when>
193             <xsl:when test="/bedeworkadmin/page='modSyspars'">
194               <xsl:call-template name="modSyspars"/>
195             </xsl:when>
196             <xsl:when test="/bedeworkadmin/page='deleteViewConfirm'">
197               <xsl:call-template name="deleteViewConfirm"/>
198             </xsl:when>
199             <xsl:when test="/bedeworkadmin/page='authUserList'">
200               <xsl:call-template name="authUserList"/>
201             </xsl:when>
202             <xsl:when test="/bedeworkadmin/page='modAuthUser'">
203               <xsl:call-template name="modAuthUser"/>
204             </xsl:when>
205             <xsl:when test="/bedeworkadmin/page='modPrefs'">
206               <xsl:call-template name="modPrefs"/>
207             </xsl:when>
208             <xsl:when test="/bedeworkadmin/page='chooseGroup'">
209               <xsl:apply-templates select="/bedeworkadmin/groups" mode="chooseGroup"/>
210             </xsl:when>
211             <xsl:when test="/bedeworkadmin/page='adminGroupList'">
212               <xsl:call-template name="listAdminGroups"/>
213             </xsl:when>
214             <xsl:when test="/bedeworkadmin/page='modAdminGroup'">
215               <xsl:call-template name="modAdminGroup"/>
216             </xsl:when>
217             <xsl:when test="/bedeworkadmin/page='modAdminGroupMembers'">
218               <xsl:call-template name="modAdminGroupMembers"/>
219             </xsl:when>
220             <xsl:when test="/bedeworkadmin/page='deleteAdminGroupConfirm'">
221               <xsl:call-template name="deleteAdminGroupConfirm"/>
222             </xsl:when>
223             <xsl:when test="/bedeworkadmin/page='noGroup'">
224               <h2>No administrative group</h2>
225               <p>Your userid has not been assigned to an administrative group.
226                 Please inform your administrator.</p>
227             </xsl:when>
228             <xsl:when test="/bedeworkadmin/page='uploadTimezones'">
229               <xsl:call-template name="uploadTimezones"/>
230             </xsl:when>
231             <xsl:when test="/bedeworkadmin/page='noAccess'">
232               <h2>No Access</h2>
233               <p>
234                 You have no access to the action you just attempted. If you believe
235                 you should have access and the problem persists, contact your
236                 administrator.
237               </p>
238               <p><a href="{$setup}">continue</a></p>
239             </xsl:when>
240             <xsl:when test="/bedeworkadmin/page='error'">
241               <h2>Application error</h2>
242               <p>An application error occurred.</p>
243               <p><a href="{$setup}">continue</a></p>
244             </xsl:when>
245             <xsl:otherwise>
246               <xsl:call-template name="mainMenu"/>
247             </xsl:otherwise>
248           </xsl:choose>
249         </div>
250         <!-- footer -->
251         <xsl:call-template name="footer"/>
252       </body>
253     </html>
254   </xsl:template>
255
256   <!--==============================================-->
257   <!--==============================================-->
258   <!--============= PAGE TEMPLATES =================-->
259   <!--==============================================-->
260   <!--==============================================-->
261
262   <!--+++++++++++++++ Main Menu ++++++++++++++++++++-->
263   <xsl:template name="mainMenu">
264     <h2 class="menuTitle">Main Menu</h2>
265     <table id="mainMenuTable">
266       <tr>
267         <th>Events</th>
268         <td>
269           <a href="{$event-initAddEvent}" >
270             Add
271           </a>
272         </td>
273         <td>
274           <a href="{$event-initUpdateEvent}" >
275             Edit / Delete
276           </a>
277         </td>
278         <!--
279         Disable direct selection by ID; we'll need to find another way
280         of quickly getting to events: search and grid views should be implemented. -->
281         <!--
282         <td>
283           Event ID:
284           <xsl:copy-of select="/bedeworkadmin/formElements/*"/>
285         </td>-->
286       </tr>
287       <tr>
288         <th>Contacts</th>
289         <td>
290           <a href="{$sponsor-initAdd}" >
291             Add
292           </a>
293         </td>
294         <td>
295           <a href="{$sponsor-initUpdate}" >
296             Edit / Delete
297           </a>
298         </td>
299       </tr>
300       <tr>
301         <th>Locations</th>
302         <td>
303           <a href="{$location-initAdd}" >
304             Add
305           </a>
306         </td>
307         <td>
308           <a href="{$location-initUpdate}" >
309             Edit / Delete
310           </a>
311         </td>
312       </tr>
313     </table>
314
315
316     <!-- Content admin and super user segment of the page.
317          Super user will have content admin access. -->
318
319     <xsl:if test="/bedeworkadmin/userInfo/contentAdminUser='true'">
320       <h2 class="menuTitle">Administrator's Menu</h2>
321       <xsl:if test="/bedeworkadmin/userInfo/superUser='true'">
322         <ul class="adminMenu">
323           <li>
324             <a href="{$calendar-fetch}">
325               Manage calendars
326             </a>
327           </li>
328           <li>
329             <a href="{$subscriptions-fetch}">
330               Manage subscriptions
331             </a>
332           </li>
333           <li>
334             <a href="{$view-fetch}">
335               Manage views
336             </a>
337           </li>
338           <li>
339             <a href="{$system-fetch}">
340               Manage system preferences
341             </a>
342           </li>
343           <li>
344             <a href="{$timezones-initUpload}" >
345               Upload and replace system timezones
346             </a>
347           </li>
348         </ul>
349       </xsl:if>
350       <h4 class="menuTitle">User management</h4>
351       <ul class="adminMenu">
352         <xsl:if test="/bedeworkadmin/userInfo/userMaintOK='true'">
353           <li>
354             <a href="{$authuser-initUpdate}" >
355               Manage public event administrators
356             </a>
357           </li>
358         </xsl:if>
359         <xsl:if test="/bedeworkadmin/userInfo/adminGroupMaintOk='true'">
360           <li>
361             <a href="{$admingroup-initUpdate}">
362               Manage admin groups
363             </a>
364           </li>
365         </xsl:if>
366         <li>
367           <a href="{$admingroup-switch}">
368             Choose/change group...
369           </a>
370         </li>
371         <xsl:if test="/bedeworkadmin/userInfo/userMaintOK='true'">
372           <li>
373             <form action="{$prefs-fetchForUpdate}" method="post">
374               Edit user preferences (enter userid): <input type="text" name="user" size="15"/>
375               <input type="submit" name="getPrefs" value="go"/>
376             </form>
377           </li>
378         </xsl:if>
379       </ul>
380     </xsl:if>
381   </xsl:template>
382
383   <!--++++++++++++++++++ Events ++++++++++++++++++++-->
384   <xsl:template name="eventList">
385     <p>Select the event that you would like to update:</p>
386
387     <form name="peForm" method="post" action="{$event-showUpdateList}">
388       <table>
389         <tr>
390           <td style="padding-right: 1em;">Show:</td>
391           <td>
392             <xsl:copy-of select="/bedeworkadmin/formElements/form/listAllSwitchFalse/*"/>
393             Active
394           </td>
395           <td>
396             <xsl:copy-of select="/bedeworkadmin/formElements/form/listAllSwitchTrue/*"/>
397             All
398           </td>
399         </tr>
400       </table>
401     </form>
402
403     <table id="commonListTable">
404       <tr>
405         <th>Title</th>
406         <th>Start Date</th>
407         <th>End Date</th>
408         <th>Description</th>
409       </tr>
410
411       <xsl:for-each select="/bedeworkadmin/events/event">
412         <tr>
413           <td>
414             <xsl:copy-of select="title/*"/>
415           </td>
416           <td class="date">
417             <xsl:value-of select="start"/>
418           </td>
419           <td class="date">
420             <xsl:value-of select="end"/>
421           </td>
422           <td>
423             <xsl:value-of select="desc"/>
424           </td>
425         </tr>
426       </xsl:for-each>
427     </table>
428   </xsl:template>
429
430   <xsl:template name="modEvent">
431     <h2>Event Information</h2>
432
433     <xsl:variable name="modEventAction" select="/bedeworkadmin/formElements/form/@action"/>
434     <form  name="peForm" method="post" action="{$modEventAction}">
435       <table class="eventFormTable">
436         <tr>
437           <td class="fieldName">
438             Title:
439           </td>
440           <td>
441             <xsl:copy-of select="/bedeworkadmin/formElements/form/title/*"/>
442           </td>
443         </tr>
444         <tr>
445           <td class="fieldName">
446             Calendar**:
447           </td>
448           <td>
449             <xsl:if test="/bedeworkadmin/formElements/form/calendar/preferred/select/option">
450               <select name="prefCalendarId">
451                 <option value="-1">
452                   Select preferred:
453                 </option>
454                 <xsl:copy-of select="/bedeworkadmin/formElements/form/calendar/preferred/select/*"/>
455               </select>
456               or Calendar (all):
457             </xsl:if>
458             <select name="calendarId">
459               <option value="-1">
460                 Select:
461               </option>
462               <xsl:copy-of select="/bedeworkadmin/formElements/form/calendar/all/select/*"/>
463             </select>
464             <xsl:text> </xsl:text>
465             <a href="" target="_blank">Calendar Definitions</a>
466           </td>
467         </tr>
468
469         <tr>
470           <td class="fieldName">
471             Date &amp; Time:
472           </td>
473           <td>
474             <!-- Set the timefields class for the first load of the page;
475                  subsequent changes will take place using javascript without a
476                  page reload. -->
477             <xsl:variable name="timeFieldsClass">
478               <xsl:choose>
479                 <xsl:when test="/bedeworkadmin/formElements/form/allDay/input/@checked='checked'">hidden</xsl:when>
480                 <xsl:otherwise>timeFields</xsl:otherwise>
481               </xsl:choose>
482             </xsl:variable>
483             <xsl:choose>
484               <xsl:when test="/bedeworkadmin/formElements/form/allDay/input/@checked='checked'">
485                 <input type="checkbox" name="eventStartDate.dateOnly" onchange="swapAllDayEvent(this)" value="on" checked="checked"/>
486               </xsl:when>
487               <xsl:otherwise>
488                 <input type="checkbox" name="eventStartDate.dateOnly" onchange="swapAllDayEvent(this)"/>
489               </xsl:otherwise>
490             </xsl:choose>
491             all day event<br/>
492             <div class="dateStartEndBox">
493               <strong>Start:</strong>
494               <div class="dateFields">
495                 <span class="startDateLabel">Date </span>
496                 <xsl:copy-of select="/bedeworkadmin/formElements/form/start/month/*"/>
497                 <xsl:copy-of select="/bedeworkadmin/formElements/form/start/day/*"/>
498                 <xsl:copy-of select="/bedeworkadmin/formElements/form/start/year/*"/>
499               </div>
500               <img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>
501               <div class="{$timeFieldsClass}" id="startTimeFields">
502                 <xsl:copy-of select="/bedeworkadmin/formElements/form/start/hour/*"/>
503                 <xsl:copy-of select="/bedeworkadmin/formElements/form/start/minute/*"/>
504                 <xsl:if test="/bedeworkadmin/formElements/form/start/ampm">
505                   <xsl:copy-of select="/bedeworkadmin/formElements/form/start/ampm/*"/>
506                 </xsl:if>
507                 <xsl:text> </xsl:text>
508                 <a href="javascript:launchClockMap('showClockMap.do?dateType=eventStartDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a>
509               </div>
510             </div>
511             <div class="dateStartEndBox">
512               <strong>End:</strong>
513               <xsl:choose>
514                 <xsl:when test="/bedeworkadmin/formElements/form/end/type='E'">
515                   <input type="radio" name="eventEndType" value="E" checked="checked" onClick="changeClass('endDateTime','shown');changeClass('endDuration','hidden');"/>
516                 </xsl:when>
517                 <xsl:otherwise>
518                   <input type="radio" name="eventEndType" value="E" onClick="changeClass('endDateTime','shown');changeClass('endDuration','hidden');"/>
519                 </xsl:otherwise>
520               </xsl:choose>
521               Date
522               <xsl:variable name="endDateTimeClass">
523                 <xsl:choose>
524                   <xsl:when test="/bedeworkadmin/formElements/form/end/type='E'">shown</xsl:when>
525                   <xsl:otherwise>hidden</xsl:otherwise>
526                 </xsl:choose>
527               </xsl:variable>
528               <div class="{$endDateTimeClass}" id="endDateTime">
529                 <div class="dateFields">
530                   <xsl:copy-of select="/bedeworkadmin/formElements/form/end/dateTime/month/*"/>
531                   <xsl:copy-of select="/bedeworkadmin/formElements/form/end/dateTime/day/*"/>
532                   <xsl:copy-of select="/bedeworkadmin/formElements/form/end/dateTime/year/*"/>
533                 </div>
534                 <img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>
535                 <div class="{$timeFieldsClass}" id="endTimeFields">
536                   <xsl:copy-of select="/bedeworkadmin/formElements/form/end/dateTime/hour/*"/>
537                   <xsl:copy-of select="/bedeworkadmin/formElements/form/end/dateTime/minute/*"/>
538                   <xsl:if test="/bedeworkadmin/formElements/form/end/dateTime/ampm">
539                     <xsl:copy-of select="/bedeworkadmin/formElements/form/end/dateTime/ampm/*"/>
540                   </xsl:if>
541                   <xsl:text> </xsl:text>
542                   <a href="javascript:launchClockMap('showClockMap.do?dateType=eventEndDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a>
543                 </div>
544               </div><br/>
545               <div class="dateFields">
546                 <xsl:choose>
547                   <xsl:when test="/bedeworkadmin/formElements/form/end/type='D'">
548                     <input type="radio" name="eventEndType" value="D" checked="checked" onClick="changeClass('endDateTime','hidden');changeClass('endDuration','shown');"/>
549                   </xsl:when>
550                   <xsl:otherwise>
551                     <input type="radio" name="eventEndType" value="D" onClick="changeClass('endDateTime','hidden');changeClass('endDuration','shown');"/>
552                   </xsl:otherwise>
553                 </xsl:choose>
554                 Duration
555                 <xsl:variable name="endDurationClass">
556                   <xsl:choose>
557                     <xsl:when test="/bedeworkadmin/formElements/form/end/type='D'">shown</xsl:when>
558                     <xsl:otherwise>hidden</xsl:otherwise>
559                   </xsl:choose>
560                 </xsl:variable>
561                 <div class="{$endDurationClass}" id="endDuration">
562                   <div class="durationBox">
563                     <input type="radio" name="eventDuration.type" value="daytime" checked="checked"/>
564                     <xsl:copy-of select="/bedeworkadmin/formElements/form/end/duration/days/*"/>days
565                     <xsl:copy-of select="/bedeworkadmin/formElements/form/end/duration/hours/*"/>hours
566                     <xsl:copy-of select="/bedeworkadmin/formElements/form/end/duration/minutes/*"/>minutes
567                   </div>
568                   <span class="durationSpacerText">or</span>
569                   <div class="durationBox">
570                     <input type="radio" name="eventDuration.type" value="weeks"/>
571                     <xsl:copy-of select="/bedeworkadmin/formElements/form/end/duration/weeks/*"/>weeks
572                   </div>
573                 </div>
574               </div><br/>
575               <xsl:variable name="noDurationClass">
576                 <xsl:choose>
577                   <xsl:when test="/bedeworkadmin/formElements/form/allDay/input/@checked='checked'">hidden</xsl:when>
578                   <xsl:otherwise>dateFields</xsl:otherwise>
579                 </xsl:choose>
580               </xsl:variable>
581               <div class="{$noDurationClass}" id="noDuration">
582                 <xsl:choose>
583                   <xsl:when test="/bedeworkadmin/formElements/form/end/type='N'">
584                     <input type="radio" name="eventEndType" value="N" checked="checked" onClick="changeClass('endDateTime','hidden');changeClass('endDuration','hidden');"/>
585                   </xsl:when>
586                   <xsl:otherwise>
587                     <input type="radio" name="eventEndType" value="N" onClick="changeClass('endDateTime','hidden');changeClass('endDuration','hidden');"/>
588                   </xsl:otherwise>
589                 </xsl:choose>
590                 This event has no duration / end date
591               </div>
592             </div>
593           </td>
594         </tr>
595
596         <!--  Category  -->
597         <!-- Hide this field for now: we will probably use it in a very different
598              way now that true calendars are implemented.
599         <tr>
600           <td class="fieldName">
601             Category**:
602           </td>
603           <td>
604             <xsl:if test="/bedeworkadmin/formElements/form/calendar/preferred/select/option">
605               <select name="prefCategoryId">
606                 <option value="-1">
607                   Select preferred:
608                 </option>
609                 <xsl:copy-of select="/bedeworkadmin/formElements/form/category/preferred/select/*"/>
610               </select>
611               Category (all):
612             </xsl:if>
613             <select name="categoryId">
614               <option value="-1">
615                 Select:
616               </option>option>
617               <xsl:copy-of select="/bedeworkadmin/formElements/form/category/all/select/*"/>
618             </select>
619           </td>
620         </tr> -->
621
622         <!--  Description  -->
623         <tr>
624           <td class="fieldName">
625             Description:
626           </td>
627           <td>
628             <xsl:copy-of select="/bedeworkadmin/formElements/form/desc/*"/>
629             <div class="fieldInfo">
630               Enter all pertinent information, including the academic titles of
631               all speakers and/or participants.
632               <span class="maxCharNotice">(<xsl:value-of select="/bedeworkadmin/formElements/form/descLength"/> characters max.)</span>
633             </div>
634           </td>
635         </tr>
636         <!-- Cost -->
637         <tr>
638           <td class="optional">
639             Price:
640           </td>
641           <td>
642             <xsl:copy-of select="/bedeworkadmin/formElements/form/cost/*"/>
643             <xsl:text> </xsl:text>
644             <span class="fieldInfo">(optional: if any, and place to purchase tickets)</span>
645           </td>
646         </tr>
647         <!-- Url -->
648         <tr>
649           <td class="optional">
650             URL:
651           </td>
652           <td>
653             <xsl:copy-of select="/bedeworkadmin/formElements/form/link/*"/>
654             <xsl:text> </xsl:text>
655             <span class="fieldInfo">(optional: for more information about the event)</span>
656           </td>
657         </tr>
658         <!-- Location -->
659         <tr>
660           <td class="fieldName">
661             Location**:
662           </td>
663           <td>
664             <xsl:if test="/bedeworkadmin/formElements/form/location/preferred/select/option">
665               <select name="prefLocationId">
666                 <option value="-1">
667                   Select preferred:
668                 </option>
669                 <xsl:copy-of select="/bedeworkadmin/formElements/form/location/preferred/select/*"/>
670               </select>
671               or Location (all):
672             </xsl:if>
673             <select name="locationId">
674               <option value="-1">
675                 Select:
676               </option>
677               <xsl:copy-of select="/bedeworkadmin/formElements/form/location/all/select/*"/>
678             </select>
679           </td>
680         </tr>
681
682        <xsl:if test="/bedeworkadmin/formElements/form/location/address">
683           <tr>
684             <td class="fieldName" colspan="2">
685               <span class="std-text"><span class="bold">or</span> add</span>
686             </td>
687           </tr>
688           <tr>
689             <td class="fieldName">
690               Address:
691             </td>
692             <td>
693               <xsl:variable name="addressFieldName" select="/bedeworkadmin/formElements/form/location/address/input/@name"/>
694               <xsl:variable name="calLocations">
695                 <xsl:for-each select="/bedeworkadmin/formElements/form/location/all/select/option">"<xsl:value-of select="."/>"<xsl:if test="position()!=last()">,</xsl:if></xsl:for-each>
696               </xsl:variable>
697               <input type="text" size="30" name="{$addressFieldName}" autocomplete="off" onfocus='autoComplete(this,event,new Array({$calLocations}));'/>
698               <div class="fieldInfo">
699                 Please include room, building, and campus (if not Seattle).
700               </div>
701             </td>
702           </tr>
703           <tr>
704             <td class="optional">
705               <span class="std-text">Location URL:</span>
706             </td>
707             <td>
708               <xsl:copy-of select="/bedeworkadmin/formElements/form/location/link/*"/>
709               <xsl:text> </xsl:text>
710               <span class="fieldInfo">(optional: for information about the location)</span>
711             </td>
712           </tr>
713         </xsl:if>
714
715         <!-- Sponsor -->
716         <tr>
717           <td class="fieldName">
718             Contact**:
719           </td>
720           <td>
721             <xsl:if test="/bedeworkadmin/formElements/form/sponsor/preferred/select/option">
722               <select name="prefSponsorId">
723                 <option value="-1">
724                   Select preferred:
725                 </option>option>
726                 <xsl:copy-of select="/bedeworkadmin/formElements/form/sponsor/preferred/select/*"/>
727               </select>
728               or Contact (all):
729             </xsl:if>
730             <select name="sponsorId">
731               <option value="-1">
732                 Select:
733               </option>
734               <xsl:copy-of select="/bedeworkadmin/formElements/form/sponsor/all/select/*"/>
735             </select>
736           </td>
737         </tr>
738         <tr>
739           <td colspan="2" style="padding-top: 1em;">
740             <span class="fieldInfo">
741               **<strong>If "preferred values" are enabled</strong>
742               by your administrator, the category, location, and contact lists will
743               contain only those value you've used previously.  If you don't find the value
744               you need in one of these lists, use the "all" list adjacent to each
745               of these fields.  The event you select from the "all" list will be added
746               to your preferred list from that point on.  <strong>Note: if you don't
747               find a location or contact at all, you can add a new one from the
748               <a href="{$setup}">main menu</a>.</strong>
749               Only administrators can create categories, however.
750               To make sure you've used the
751               correct category, please see the
752               <a href="" target="_blank">Calendar Definitions</a>
753             </span>
754           </td>
755         </tr>
756
757         <xsl:if test="/bedeworkadmin/formElements/form/sponsor/name">
758           <tr>
759             <td class="fieldName" colspan="2">
760               <span class="std-text"><span class="bold">or</span> add</span>
761             </td>
762           </tr>
763           <tr>
764             <td class="fieldName">
765               Contact (name):
766             </td>
767             <td>
768               <xsl:copy-of select="/bedeworkadmin/formElements/form/sponsor/name/*"/>
769             </td>
770           </tr>
771           <tr>
772             <td class="fieldName">
773               Contact Phone Number:
774             </td>
775             <td>
776               <xsl:copy-of select="/bedeworkadmin/formElements/form/sponsor/phone/*"/>
777               <xsl:text> </xsl:text>
778               <span class="fieldInfo">(optional)</span>
779             </td>
780           </tr>
781           <tr>
782             <td class="optional">
783               Contact's URL:
784             </td>
785             <td>
786               <xsl:copy-of select="/bedeworkadmin/formElements/form/sponsor/link/*"/>
787               <xsl:text> </xsl:text>
788               <span class="fieldInfo">(optional)</span>
789             </td>
790           </tr>
791           <tr>
792             <td class="optional">
793               Contact Email Address:
794             </td>
795             <td>
796               <xsl:copy-of select="/bedeworkadmin/formElements/form/sponsor/email/*"/>
797               <xsl:text> </xsl:text>
798               <span class="fieldInfo">(optional)</span> test
799               <div id="sponsorEmailAlert">&#160;</div> <!-- space for email warning -->
800             </td>
801           </tr>
802         </xsl:if>
803       </table>
804
805       <table border="0" width="100%" id="submitTable">
806         <tr>
807           <xsl:choose>
808             <xsl:when test="/bedeworkadmin/creating='true'">
809               <td>
810                 <input type="submit" name="addEvent" value="Add Event" class="padRight"/>
811                 <input type="submit" name="cancelled" value="Cancel"/>
812                 <input type="reset" value="Clear"/>
813               </td>
814             </xsl:when>
815             <xsl:otherwise>
816               <td>
817                 <input type="submit" name="updateEvent" value="Update Event" class="padRight"/>
818                 <input type="submit" name="cancelled" value="Cancel" class="padRight"/>
819                 <input type="reset" value="Reset" class="padRight"/>
820                 <input type="submit" name="copy" value="Duplicate Event"/>
821               </td>
822               <td align="right">
823                 <input type="submit" name="delete" value="Delete Event"/>
824               </td>
825             </xsl:otherwise>
826           </xsl:choose>
827         </tr>
828       </table>
829     </form>
830   </xsl:template>
831
832   <xsl:template match="event" mode="displayEvent">
833     <h2>Event Information</h2>
834
835     <table class="eventFormTable">
836       <tr>
837         <td class="fieldName">
838           ID:
839         </td>
840         <td>
841           <xsl:value-of select="id"/>
842         </td>
843       </tr>
844
845       <tr>
846         <td class="fieldName">
847           Title:
848         </td>
849         <td>
850           <xsl:value-of select="title"/>
851         </td>
852       </tr>
853
854       <tr>
855         <td class="fieldName">
856           Calendar:
857         </td>
858         <td>
859           <xsl:value-of select="calendar"/>
860         </td>
861       </tr>
862
863       <tr>
864         <td class="fieldName">
865           Start:
866         </td>
867         <td>
868           <xsl:value-of select="start/year"/>-<xsl:value-of select="start/month"/>-<xsl:value-of select="start/day"/>
869           <xsl:text> </xsl:text>
870           <xsl:choose>
871             <xsl:when test="start/allDay='true'">
872               <strong>all day event</strong>
873             </xsl:when>
874             <xsl:otherwise>
875               <xsl:value-of select="start/hour"/>:<xsl:value-of select="start/minute"/>
876               <xsl:if test="start/ampm">
877                 <xsl:value-of select="start/ampm"/>
878               </xsl:if>
879             </xsl:otherwise>
880           </xsl:choose>
881         </td>
882       </tr>
883       <tr>
884         <td class="fieldName">
885           End:
886         </td>
887         <td>
888           <xsl:choose>
889             <xsl:when test="end/endtype = 'none'">
890               <div class="dateFields" id="noDuration">
891                 This event has no duration / end date
892               </div>
893             </xsl:when>
894             <xsl:when test="end/endtype = 'duration'">
895               <div class="dateFields">
896                 <div class="hidden" id="endDuration">
897                   <div class="durationBox">
898                     <input type="text" name="eventDuration.daysStr" size="2" value="0" onChange="window.document.peForm.durationType[0].checked = true;"/>days
899                     <input type="text" name="eventDuration.hoursStr" size="2" value="1" onChange="window.document.peForm.durationType[0].checked = true;"/>hours
900                     <input type="text" name="eventDuration.minutesStr" size="2" value="0" onChange="window.document.peForm.durationType[0].checked = true;"/>minutes
901                   </div>
902                   <span class="durationSpacerText">or</span>
903                   <div class="durationBox">
904                     <input type="text" name="eventDuration.weeksStr" size="2" value="0" onChange="window.document.peForm.durationType[1].checked = true;"/>weeks
905                   </div>
906                 </div>
907               </div>
908             </xsl:when>
909             <xsl:otherwise>
910               <xsl:value-of select="end/dateTime/year"/>-<xsl:value-of select="end/dateTime/month"/>-<xsl:value-of select="end/dateTime/day"/>
911               <xsl:text> </xsl:text>
912               <xsl:value-of select="end/dateTime/hour"/>:<xsl:value-of select="end/dateTime/minute"/>
913               <xsl:text> </xsl:text>
914               <xsl:if test="end/dateTime/ampm">
915                 <xsl:value-of select="end/dateTime/ampm"/>
916               </xsl:if>
917             </xsl:otherwise>
918           </xsl:choose>
919         </td>
920       </tr>
921
922       <!--  Category  -->
923       <tr>
924         <td class="fieldName">
925           Category:
926         </td>
927         <td>
928           <xsl:value-of select="category"/>
929         </td>
930       </tr>
931
932       <!--  Description  -->
933       <tr>
934         <td class="fieldName">
935           Description:
936         </td>
937         <td>
938           <xsl:value-of select="desc"/>
939         </td>
940       </tr>
941       <!-- Cost -->
942       <tr>
943         <td class="optional">
944           Price:
945         </td>
946         <td>
947           <xsl:value-of select="cost"/>
948         </td>
949       </tr>
950       <!-- Url -->
951       <tr>
952         <td class="optional">
953           URL:
954         </td>
955         <td>
956           <xsl:variable name="eventLink" select="link"/>
957           <a href="{$eventLink}"><xsl:value-of select="link"/></a>
958         </td>
959       </tr>
960       <!-- Location -->
961       <tr>
962         <td class="fieldName">
963           Location:
964         </td>
965         <td>
966           <xsl:value-of select="location"/>
967         </td>
968       </tr>
969
970       <!-- Sponsor -->
971       <tr>
972         <td class="fieldName">
973           Contact:
974         </td>
975         <td>
976           <xsl:value-of select="sponsor"/>
977         </td>
978       </tr>
979
980       <!-- Owner -->
981       <tr>
982         <td class="fieldName">
983           Owner:
984         </td>
985         <td>
986           <xsl:value-of select="creator"/>
987         </td>
988       </tr>
989
990     </table>
991
992
993     <xsl:if test="/bedeworkadmin/canEdit = 'true' or /bedeworkadmin/userInfo/superUser = 'true'">
994       <xsl:variable name="id" select="id"/>
995       <h3><a href="{$event-fetchForUpdate}&amp;eventId={$id}">Edit Event</a></h3>
996     </xsl:if>
997   </xsl:template>
998
999   <!--+++++++++++++++ Sponsors (Contacts) ++++++++++++++++++++-->
1000   <xsl:template name="sponsorList">
1001     <p>
1002       Select the contact you would like to update:
1003     </p>
1004
1005     <table id="commonListTable">
1006       <tr>
1007         <th>Name</th>
1008         <th>Phone</th>
1009         <th>Email</th>
1010         <th>URL</th>
1011       </tr>
1012
1013       <xsl:for-each select="/bedeworkadmin/sponsors/sponsor">
1014         <tr>
1015           <td>
1016             <xsl:copy-of select="name" />
1017           </td>
1018           <td>
1019             <xsl:value-of select="phone" />
1020           </td>
1021           <td>
1022             <xsl:variable name="email" select="email"/>
1023             <a href="mailto:{$email}">
1024               <xsl:value-of select="email"/>
1025             </a>
1026           </td>
1027           <td>
1028             <xsl:variable name="link" select="link" />
1029             <a href="{$link}" target="linktest">
1030               <xsl:value-of select="link" />
1031             </a>
1032           </td>
1033         </tr>
1034       </xsl:for-each>
1035     </table>
1036   </xsl:template>
1037
1038   <xsl:template name="modSponsor">
1039     <form action="{$sponsor-update}" method="post">
1040       <h2>Contact Information</h2>
1041
1042       <table id="eventFormTable">
1043         <tr>
1044           <td class="fieldName">
1045             Contact:
1046           </td>
1047           <td>
1048             <xsl:copy-of select="/bedeworkadmin/formElements/form/name/*"/>
1049           </td>
1050         </tr>
1051         <tr>
1052           <td class="fieldName">
1053             Contact Phone Number:
1054           </td>
1055           <td>
1056             <xsl:copy-of select="/bedeworkadmin/formElements/form/phone/*"/> -
1057             <span class="fieldInfo">(optional)</span>
1058           </td>
1059         </tr>
1060         <tr>
1061           <td class="optional">
1062             Contact's URL:
1063           </td>
1064           <td>
1065             <xsl:copy-of select="/bedeworkadmin/formElements/form/link/*"/>
1066             <span class="fieldInfo">(optional)</span>
1067           </td>
1068         </tr>
1069         <tr>
1070           <td class="optional">
1071             Contact Email Address:
1072           </td>
1073           <td>
1074             <xsl:copy-of select="/bedeworkadmin/formElements/form/email/*"/>
1075             <span class="fieldInfo">(optional)</span>
1076           </td>
1077         </tr>
1078       </table>
1079
1080       <table border="0" width="100%" id="submitTable">
1081         <tr>
1082           <xsl:choose>
1083             <xsl:when test="/bedeworkadmin/creating='true'">
1084               <td>
1085                 <input type="submit" name="addSponsor" value="Add Contact" class="padRight"/>
1086                 <input type="submit" name="cancelled" value="Cancel"/>
1087                 <input type="reset" value="Clear"/>
1088               </td>
1089             </xsl:when>
1090             <xsl:otherwise>
1091               <td>
1092                 <input type="submit" name="updateSponsor" value="Update Contact" class="padRight"/>
1093                 <input type="submit" name="cancelled" value="Cancel" class="padRight"/>
1094                 <input type="reset" value="Reset" class="padRight"/>
1095               </td>
1096               <td align="right">
1097                 <input type="submit" name="delete" value="Delete Contact"/>
1098               </td>
1099             </xsl:otherwise>
1100           </xsl:choose>
1101         </tr>
1102       </table>
1103
1104     </form>
1105   </xsl:template>
1106
1107   <xsl:template name="deleteSponsorConfirm">
1108     <p>
1109       <h2>Ok to delete this contact?</h2>
1110       <xsl:copy-of select="/bedeworkadmin/formElements/*"/>
1111     </p>
1112
1113     <table id="commonListTable">
1114       <tr>
1115         <th>Name</th>
1116         <td><xsl:value-of select="/bedeworkadmin/sponsor/name" /></td>
1117       </tr>
1118       <tr>
1119         <th>Phone</th>
1120         <td><xsl:value-of select="/bedeworkadmin/sponsor/phone" /></td>
1121       </tr>
1122       <tr>
1123         <th>Email</th>
1124         <td><xsl:value-of select="/bedeworkadmin/sponsor/email" /></td>
1125       </tr>
1126       <tr>
1127         <th>URL</th>
1128         <td><xsl:value-of select="/bedeworkadmin/sponsor/link" /></td>
1129       </tr>
1130     </table>
1131   </xsl:template>
1132
1133    <!--+++++++++++++++ Locations ++++++++++++++++++++-->
1134   <xsl:template name="locationList">
1135     <p>
1136       Select the location that you would like to update:
1137       <input type="button" name="return" value="Add new location" onclick="javascript:location.replace('{$location-initAdd}')"/>
1138     </p>
1139
1140     <table id="commonListTable">
1141       <tr>
1142         <th>Address</th>
1143         <th>Subaddress</th>
1144         <th>URL</th>
1145       </tr>
1146
1147       <xsl:for-each select="/bedeworkadmin/locations/location">
1148         <tr>
1149           <td>
1150             <xsl:copy-of select="address/*"/>
1151           </td>
1152           <td>
1153             <xsl:value-of select="subaddress"/>
1154           </td>
1155           <td>
1156             <xsl:variable name="link" select="link" />
1157             <a href="{$link}" target="linktest">
1158               <xsl:value-of select="link" />
1159             </a>
1160           </td>
1161         </tr>
1162       </xsl:for-each>
1163     </table>
1164   </xsl:template>
1165
1166   <xsl:template name="modLocation">
1167     <xsl:choose>
1168       <xsl:when test="/bedeworkadmin/creating='true'">
1169         <h2>Add Location</h2>
1170       </xsl:when>
1171       <xsl:otherwise>
1172         <h2>Update Location</h2>
1173       </xsl:otherwise>
1174     </xsl:choose>
1175
1176     <form action="{$location-update}" method="post">
1177       <table id="eventFormTable">
1178         <tr>
1179           <td class="fieldName">
1180             Address:
1181           </td>
1182           <td>
1183             <xsl:copy-of select="/bedeworkadmin/formElements/form/address/*"/>
1184           </td>
1185         </tr>
1186         <tr>
1187           <td class="optional">
1188             Subaddress:
1189           </td>
1190           <td>
1191             <xsl:copy-of select="/bedeworkadmin/formElements/form/subaddress/*"/>
1192             <span class="fieldInfo">(optional)</span>
1193           </td>
1194         </tr>
1195         <tr>
1196           <td class="optional">
1197             Location's URL:
1198           </td>
1199           <td>
1200             <xsl:copy-of select="/bedeworkadmin/formElements/form/link/*"/>
1201             <span class="fieldInfo">(optional)</span>
1202           </td>
1203         </tr>
1204       </table>
1205
1206       <table border="0" width="100%" id="submitTable">
1207         <tr>
1208           <xsl:choose>
1209             <xsl:when test="/bedeworkadmin/creating='true'">
1210               <td>
1211                 <input type="submit" name="addLocation" value="Add Location" class="padRight"/>
1212                 <input type="submit" name="cancelled" value="Cancel"/>
1213                 <input type="reset" value="Clear"/>
1214               </td>
1215             </xsl:when>
1216             <xsl:otherwise>
1217               <td>
1218                 <input type="submit" name="updateLocation" value="Update Location" class="padRight"/>
1219                 <input type="submit" name="cancelled" value="Cancel" class="padRight"/>
1220                 <input type="reset" value="Reset" class="padRight"/>
1221               </td>
1222               <td align="right">
1223                 <input type="submit" name="delete" value="Delete Contact"/>
1224               </td>
1225             </xsl:otherwise>
1226           </xsl:choose>
1227         </tr>
1228       </table>
1229     </form>
1230   </xsl:template>
1231
1232   <xsl:template name="deleteLocationConfirm">
1233     <h2>Ok to delete this location?</h2>
1234     <xsl:copy-of select="/bedeworkadmin/formElements/*"/>
1235
1236     <table id="eventFormTable">
1237         <tr>
1238           <td class="fieldName">
1239             Address:
1240           </td>
1241           <td>
1242             <xsl:copy-of select="/bedeworkadmin/location/address/*"/>
1243           </td>
1244         </tr>
1245         <tr>
1246           <td class="optional">
1247             Subaddress:
1248           </td>
1249           <td>
1250             <xsl:copy-of select="/bedeworkadmin/location/subaddress/*"/>
1251             <span class="fieldInfo">(optional)</span>
1252           </td>
1253         </tr>
1254         <tr>
1255           <td class="optional">
1256             Location's URL:
1257           </td>
1258           <td>
1259             <xsl:copy-of select="/bedeworkadmin/location/link/*"/>
1260             <span class="fieldInfo">(optional)</span>
1261           </td>
1262         </tr>
1263       </table>
1264   </xsl:template>
1265
1266 <!--+++++++++++++++ Calendars ++++++++++++++++++++-->
1267   <xsl:template match="calendars">
1268     <table id="calendarTable">
1269       <tr>
1270         <td class="cals">
1271           <h3>Public calendars</h3>
1272           <ul id="calendarTree">
1273             <xsl:apply-templates select="calendar" mode="calendars"/>
1274           </ul>
1275         </td>
1276         <td class="calendarContent">
1277           <xsl:choose>
1278             <xsl:when test="/bedeworkadmin/page='calendarList'">
1279               <xsl:call-template name="calendarList"/>
1280             </xsl:when>
1281             <xsl:when test="/bedeworkadmin/page='deleteCalendarConfirm'">
1282               <xsl:apply-templates select="/bedeworkadmin/currentCalendar" mode="deleteCalendarConfirm"/>
1283             </xsl:when>
1284             <xsl:when test="/bedeworkadmin/creating='true'">
1285               <xsl:apply-templates select="/bedeworkadmin/currentCalendar" mode="addCalendar"/>
1286             </xsl:when>
1287             <xsl:otherwise>
1288               <xsl:apply-templates select="/bedeworkadmin/currentCalendar" mode="modCalendar"/>
1289             </xsl:otherwise>
1290           </xsl:choose>
1291         </td>
1292       </tr>
1293     </table>
1294   </xsl:template>
1295
1296   <xsl:template match="calendar" mode="calendars">
1297     <xsl:variable name="id" select="id"/>
1298     <xsl:variable name="itemClass">
1299       <xsl:choose>
1300         <xsl:when test="calendarCollection='false'">folder</xsl:when>
1301         <xsl:otherwise>calendar</xsl:otherwise>
1302       </xsl:choose>
1303     </xsl:variable>
1304     <li class="{$itemClass}">
1305       <a href="{$calendar-fetchForUpdate}&amp;calId={$id}" title="update">
1306         <xsl:value-of select="name"/>
1307       </a>
1308       <xsl:if test="calendarCollection='false'">
1309         <xsl:text> </xsl:text>
1310         <a href="{$calendar-initAdd}&amp;calId={$id}" title="add a calendar or folder">
1311           <img src="{$resourcesRoot}/resources/calAddIcon.gif" width="13" height="13" alt="add a calendar or folder" border="0"/>
1312         </a>
1313       </xsl:if>
1314       <xsl:if test="calendar">
1315         <ul>
1316           <xsl:apply-templates select="calendar" mode="calendars">
1317             <!--<xsl:sort select="title" order="ascending" case-order="upper-first"/>-->
1318           </xsl:apply-templates>
1319         </ul>
1320       </xsl:if>
1321     </li>
1322   </xsl:template>
1323
1324   <xsl:template match="currentCalendar" mode="addCalendar">
1325     <h3>Add Calendar / Folder</h3>
1326     <form name="addCalForm" action="{$calendar-update}">
1327       <table class="eventFormTable">
1328         <tr>
1329           <th>Name:</th>
1330           <td>
1331             <xsl:variable name="curCalName" select="name"/>
1332             <input name="calendar.name" value="{$curCalName}" size="40"/>
1333           </td>
1334         </tr>
1335         <tr>
1336           <th>Summary:</th>
1337           <td>
1338             <xsl:variable name="curCalSummary" select="summary"/>
1339             <input type="text" name="calendar.summary" value="{$curCalSummary}" size="40"/>
1340           </td>
1341         </tr>
1342         <tr>
1343           <th>Description:</th>
1344           <td>
1345             <textarea name="calendar.description" width="60" height="20">
1346               <xsl:value-of select="desc"/>
1347             </textarea>
1348           </td>
1349         </tr>
1350         <tr>
1351           <th>Calendar/Folder:</th>
1352           <td>
1353             <xsl:choose>
1354               <xsl:when test="calendarCollection='true'">
1355                 <input type="radio" value="true" name="calendarCollection" checked="checked"/> Calendar
1356                 <input type="radio" value="false" name="calendarCollection"/> Folder
1357               </xsl:when>
1358               <xsl:otherwise>
1359                 <input type="radio" value="true" name="calendarCollection"/> Calendar
1360                 <input type="radio" value="false" name="calendarCollection" checked="checked"/> Folder
1361               </xsl:otherwise>
1362             </xsl:choose>
1363           </td>
1364         </tr>
1365       </table>
1366
1367       <table border="0" width="100%" id="submitTable">
1368         <tr>
1369           <td>
1370             <input type="submit" name="addCalendar" value="Add Calendar/Folder" class="padRight"/>
1371             <input type="submit" name="cancelled" value="Cancel" class="padRight"/>
1372             <input type="reset" value="Clear" class="padRight"/>
1373           </td>
1374         </tr>
1375       </table>
1376     </form>
1377   </xsl:template>
1378
1379   <xsl:template match="currentCalendar" mode="modCalendar">
1380     <xsl:choose>
1381       <xsl:when test="calendarCollection='true'">
1382         <h3>Modify Calendar</h3>
1383       </xsl:when>
1384       <xsl:otherwise>
1385         <h3>Modify Folder</h3>
1386       </xsl:otherwise>
1387     </xsl:choose>
1388     <form name="modCalForm" action="{$calendar-update}">
1389       <table class="eventFormTable">
1390         <tr>
1391           <th>Path:</th>
1392           <td>
1393             <xsl:value-of select="path"/>
1394           </td>
1395         </tr>
1396         <tr>
1397           <th>Name:</th>
1398           <td>
1399             <xsl:value-of select="name"/>
1400           </td>
1401         </tr>
1402         <tr>
1403           <th>Mailing List ID:</th>
1404           <td>
1405             <xsl:value-of select="mailListId"/>
1406           </td>
1407         </tr>
1408         <tr>
1409           <th>Summary:</th>
1410           <td>
1411             <xsl:variable name="curCalSummary" select="summary"/>
1412             <input type="text" name="calendar.summary" value="{$curCalSummary}" size="40"/>
1413           </td>
1414         </tr>
1415         <tr>
1416           <th>Description:</th>
1417           <td>
1418             <textarea name="calendar.description" cols="40" rows="4">
1419               <xsl:value-of select="desc"/>
1420             </textarea>
1421           </td>
1422         </tr>
1423         <tr>
1424           <th>Calendar/Folder:</th>
1425           <td>
1426             <xsl:choose>
1427               <xsl:when test="calendarCollection='true'">
1428                 <input type="radio" value="true" name="calendarCollection" checked="checked"/> Calendar
1429                 <input type="radio" value="false" name="calendarCollection"/> Folder
1430               </xsl:when>
1431               <xsl:otherwise>
1432                 <input type="radio" value="true" name="calendarCollection"/> Calendar
1433                 <input type="radio" value="false" name="calendarCollection" checked="checked"/> Folder
1434               </xsl:otherwise>
1435             </xsl:choose>
1436           </td>
1437         </tr>
1438       </table>
1439
1440       <table border="0" width="100%" id="submitTable">
1441         <tr>
1442           <td>
1443             <xsl:choose>
1444               <xsl:when test="calendarCollection='true'">
1445                 <input type="submit" name="updateCalendar" value="Update Calendar" class="padRight"/>
1446               </xsl:when>
1447               <xsl:otherwise>
1448                 <input type="submit" name="updateCalendar" value="Update Folder" class="padRight"/>
1449               </xsl:otherwise>
1450             </xsl:choose>
1451             <input type="submit" name="cancelled" value="Cancel" class="padRight"/>
1452             <input type="reset" value="Reset" class="padRight"/>
1453           </td>
1454           <td align="right">
1455             <xsl:choose>
1456               <xsl:when test="calendarCollection='true'">
1457                 <input type="submit" name="delete" value="Delete Calendar"/>
1458               </xsl:when>
1459               <xsl:otherwise>
1460                 <input type="submit" name="delete" value="Delete Folder"/>
1461               </xsl:otherwise>
1462             </xsl:choose>
1463           </td>
1464         </tr>
1465       </table>
1466     </form>
1467   </xsl:template>
1468
1469   <xsl:template name="calendarList">
1470     <h3>Manage Calendars</h3>
1471     <ul>
1472       <li>Select an item from the calendar list on the left to modify
1473       a calendar or folder.</li>
1474       <li>Select the
1475       <img src="{$resourcesRoot}/resources/calAddIcon.gif" width="13" height="13" alt="true" border="0"/>
1476       icon to add a new calendar or folder to the tree.
1477         <ul>
1478           <li>Folders may only contain calendars and subfolders.</li>
1479           <li>Calendars may only contain events (and other calendar items).</li>
1480           <li>
1481             If a calendar is empty, it may be converted to a folder and vice
1482             versa.  If a calendar or folder are not empty, it may not be
1483             converted.
1484           </li>
1485         </ul>
1486       </li>
1487     </ul>
1488   </xsl:template>
1489
1490   <xsl:template match="currentCalendar" mode="deleteCalendarConfirm">
1491     <xsl:choose>
1492       <xsl:when test="calendarCollection='true'">
1493         <h3>Delete Calendar</h3>
1494         <p>
1495           The following calendar will be deleted.  Continue?
1496         </p>
1497       </xsl:when>
1498       <xsl:otherwise>
1499         <h3>Delete Folder</h3>
1500         <p>
1501           The following folder <em>and all its contents</em> will be deleted.
1502           Continue?
1503         </p>
1504       </xsl:otherwise>
1505     </xsl:choose>
1506
1507     <form name="delCalForm" action="{$calendar-delete}">
1508       <table class="eventFormTable">
1509         <tr>
1510           <th>Path:</th>
1511           <td>
1512             <xsl:value-of select="path"/>
1513           </td>
1514         </tr>
1515         <tr>
1516           <th>Name:</th>
1517           <td>
1518             <xsl:value-of select="name"/>
1519           </td>
1520         </tr>
1521         <tr>
1522           <th>Summary:</th>
1523           <td>
1524             <xsl:value-of select="summary"/>
1525           </td>
1526         </tr>
1527         <tr>
1528           <th>Description:</th>
1529           <td>
1530             <xsl:value-of select="desc"/>
1531           </td>
1532         </tr>
1533       </table>
1534
1535       <table border="0" width="100%" id="submitTable">
1536         <tr>
1537           <td>
1538             <input type="submit" name="cancelled" value="Cancel" class="padRight"/>
1539           </td>
1540           <td align="right">
1541             <xsl:choose>
1542               <xsl:when test="calendarCollection='true'">
1543                 <input type="submit" name="delete" value="Yes: Delete Calendar!"/>
1544               </xsl:when>
1545               <xsl:otherwise>
1546                 <input type="submit" name="delete" value="Yes: Delete Folder!"/>
1547               </xsl:otherwise>
1548             </xsl:choose>
1549           </td>
1550         </tr>
1551       </table>
1552     </form>
1553
1554   </xsl:template>
1555
1556   <!--+++++++++++++++ Subscriptions ++++++++++++++++++++-->
1557   <xsl:template match="subscriptions">
1558     <table id="subsTable">
1559       <tr>
1560         <td class="cals">
1561           <h3>Public calendars</h3>
1562           <p class="smaller">
1563             Select a calendar below to add a <em><strong>new</strong></em>
1564             internal subscription. <!-- or
1565             <a href="{$subscriptions-initAdd}&amp;calUri=please enter a calendar uri">
1566             subscribe to an external calendar</a>.-->
1567           </p>
1568           <ul id="calendarTree">
1569             <xsl:apply-templates select="/bedeworkadmin/subscriptions/subscribe/calendars/calendar" mode="subscribe"/>
1570           </ul>
1571         </td>
1572         <td class="subs">
1573           <xsl:choose>
1574             <xsl:when test="/bedeworkadmin/page='subscriptions'">
1575               <xsl:call-template name="subscriptionList"/>
1576             </xsl:when>
1577             <xsl:when test="/bedeworkadmin/creating='true'">
1578               <xsl:apply-templates select="subscription" mode="addSubscription"/>
1579             </xsl:when>
1580             <xsl:otherwise>
1581               <xsl:apply-templates select="subscription" mode="modSubscription"/>
1582             </xsl:otherwise>
1583           </xsl:choose>
1584         </td>
1585       </tr>
1586     </table>
1587   </xsl:template>
1588
1589   <xsl:template match="calendar" mode="subscribe">
1590     <xsl:variable name="id" select="id"/>
1591     <xsl:variable name="itemClass">
1592       <xsl:choose>
1593         <xsl:when test="calendarCollection='false'">folder</xsl:when>
1594         <xsl:otherwise>calendar</xsl:otherwise>
1595       </xsl:choose>
1596     </xsl:variable>
1597     <li class="{$itemClass}">
1598       <a href="{$subscriptions-initAdd}&amp;calId={$id}">
1599         <xsl:value-of select="name"/>
1600       </a>
1601       <xsl:if test="calendar">
1602         <ul>
1603           <xsl:apply-templates select="calendar" mode="subscribe">
1604             <!--<xsl:sort select="title" order="ascending" case-order="upper-first"/>-->
1605           </xsl:apply-templates>
1606         </ul>
1607       </xsl:if>
1608     </li>
1609   </xsl:template>
1610
1611   <xsl:template match="subscription" mode="addSubscription">
1612     <h2>Add new subscription</h2>
1613     <p class="note">*the subsciption name must be unique</p>
1614     <form name="subscribeForm" action="{$subscriptions-subscribe}" method="post">
1615       <table class="eventFormTable">
1616         <tr>
1617           <th>Name*:</th>
1618           <td>
1619             <xsl:variable name="subName" select="name"/>
1620             <input type="text" value="{$subName}" name="subscription.name" size="60"/>
1621           </td>
1622         </tr>
1623         <xsl:if test="internal='false'">
1624           <tr>
1625             <th>Uri:</th>
1626             <td>
1627               <xsl:variable name="subUri" select="uri"/>
1628               <input type="text" value="{$subUri}" name="subscription.uri" size="60"/>
1629             </td>
1630           </tr>
1631         </xsl:if>
1632         <tr>
1633           <th>Display:</th>
1634           <td>
1635             <input type="radio" value="true" name="subscription.display"/> yes
1636             <input type="radio" value="false" name="subscription.display" checked="checked"/> no
1637           </td>
1638         </tr>
1639         <tr>
1640           <th>Style:</th>
1641           <td>
1642             <xsl:variable name="subStyle" select="style"/>
1643             <input type="text" value="{$subStyle}" name="subscription.style" size="60"/>
1644           </td>
1645         </tr>
1646         <tr>
1647           <th>Unremoveable:</th>
1648           <td>
1649             <input type="radio" value="true" name="unremoveable" size="60"/> true
1650             <input type="radio" value="false" name="unremoveable" size="60" checked="checked"/> false
1651           </td>
1652         </tr>
1653       </table>
1654       <table border="0" width="100%" id="submitTable">
1655         <tr>
1656           <td>
1657             <input type="submit" name="addSubscription" value="Add Subscription" class="padRight"/>
1658             <input type="submit" name="cancelled" value="Cancel"/>
1659             <input type="reset" value="Clear"/>
1660           </td>
1661         </tr>
1662       </table>
1663     </form>
1664   </xsl:template>
1665
1666   <xsl:template match="subscription" mode="modSubscription">
1667     <h2>Modify subscription</h2>
1668     <form name="subscribeForm" action="{$subscriptions-subscribe}" method="post">
1669       <table class="eventFormTable">
1670         <tr>
1671           <th>Name*:</th>
1672           <td>
1673             <xsl:value-of select="name"/>
1674           </td>
1675         </tr>
1676         <xsl:choose>
1677           <xsl:when test="internal='false'">
1678             <tr>
1679               <th>Uri:</th>
1680               <td>
1681                 <xsl:variable name="subUri" select="uri"/>
1682                 <input type="text" value="{$subUri}" name="subscription.uri" size="60"/>
1683               </td>
1684             </tr>
1685           </xsl:when>
1686           <xsl:otherwise>
1687             <tr>
1688               <th>Uri:</th>
1689               <td>
1690                 <xsl:value-of select="uri"/>
1691               </td>
1692             </tr>
1693           </xsl:otherwise>
1694         </xsl:choose>
1695         <tr>
1696           <th>Display:</th>
1697           <td>
1698             <xsl:choose>
1699               <xsl:when test="display='true'">
1700                 <input type="radio" value="true" name="subscription.display" checked="checked"/> yes
1701                 <input type="radio" value="false" name="subscription.display"/> no
1702               </xsl:when>
1703               <xsl:otherwise>
1704                 <input type="radio" value="true" name="subscription.display"/> yes
1705                 <input type="radio" value="false" name="subscription.display" checked="checked"/> no
1706               </xsl:otherwise>
1707             </xsl:choose>
1708           </td>
1709         </tr>
1710         <tr>
1711           <th>Style:</th>
1712           <td>
1713             <xsl:variable name="subStyle" select="style"/>
1714             <input type="text" value="{$subStyle}" name="subscription.style" size="60"/>
1715           </td>
1716         </tr>
1717         <tr>
1718           <th>Unremoveable:</th>
1719           <td>
1720             <xsl:variable name="subUnremoveable" select="subscription.unremoveable"/>
1721             <xsl:choose>
1722               <xsl:when test="$subUnremoveable = 'true'">
1723                 <input type="radio" value="true" name="unremoveable" size="60" checked="checked"/> true
1724                 <input type="radio" value="false" name="unremoveable" size="60"/> false
1725               </xsl:when>
1726               <xsl:otherwise>
1727                 <input type="radio" value="true" name="unremoveable" size="60"/> true
1728                 <input type="radio" value="false" name="unremoveable" size="60" checked="checked"/> false
1729               </xsl:otherwise>
1730             </xsl:choose>
1731           </td>
1732         </tr>
1733       </table>
1734       <table border="0" width="100%" id="submitTable">
1735         <tr>
1736           <td>
1737             <input type="submit" name="updateSubscription" value="Update Subscription" class="padRight"/>
1738             <input type="submit" name="cancelled" value="Cancel" class="padRight"/>
1739             <input type="reset" value="Reset" class="padRight"/>
1740           </td>
1741           <td align="right">
1742             <input type="submit" name="delete" value="Delete Subscription"/>
1743           </td>
1744         </tr>
1745       </table>
1746     </form>
1747   </xsl:template>
1748
1749   <xsl:template name="subscriptionList">
1750     <h3>Current subscriptions</h3>
1751     <table id="commonListTable">
1752       <tr>
1753         <th>Name</th>
1754         <th>URI</th>
1755         <th>Style</th>
1756         <th>Display</th>
1757         <th>Unremoveable</th>
1758         <th>External</th>
1759         <th>Deleted?</th>
1760       </tr>
1761       <xsl:for-each select="subscription">
1762         <!--<xsl:sort select="name" order="ascending" case-order="upper-first"/>-->
1763         <tr>
1764           <td>
1765             <xsl:variable name="subname" select="name"/>
1766             <a href="{$subscriptions-fetchForUpdate}&amp;subname={$subname}">
1767               <xsl:value-of select="name"/>
1768             </a>
1769           </td>
1770           <td>
1771             <xsl:value-of select="uri"/>
1772           </td>
1773           <td>
1774             <xsl:value-of select="style"/>
1775           </td>
1776           <td class="center">
1777             <xsl:if test="display='true'">
1778               <img src="{$resourcesRoot}/resources/greenCheckIcon.gif" width="13" height="13" alt="true" border="0"/>
1779             </xsl:if>
1780           </td>
1781           <td class="center">
1782             <xsl:if test="unremoveable='true'">
1783               <img src="{$resourcesRoot}/resources/redCheckIcon.gif" width="13" height="13" alt="true" border="0"/>
1784             </xsl:if>
1785           </td>
1786           <td class="center">
1787             <xsl:if test="internal='false'">
1788               <img src="{$resourcesRoot}/resources/greenCheckIcon.gif" width="13" height="13" alt="true" border="0"/>
1789             </xsl:if>
1790           </td>
1791           <td class="center">
1792             <xsl:if test="calendarDeleted='true'">
1793               <img src="{$resourcesRoot}/resources/redCheckIcon.gif" width="13" height="13" alt="true" border="0"/>
1794             </xsl:if>
1795           </td>
1796         </tr>
1797       </xsl:for-each>
1798     </table>
1799     <!--<h4><a href="{$subscriptions-initAdd}&amp;calUri=please enter a calendar uri">Subscribe to a remote calendar</a> (by URI)</h4>-->
1800   </xsl:template>
1801
1802   <!--+++++++++++++++ Views ++++++++++++++++++++-->
1803   <xsl:template match="views" mode="viewList">
1804
1805     <h3>Add a new view</h3>
1806     <form name="addView" action="{$view-addView}" method="post">
1807       <input type="text" name="name" size="60"/>
1808       <input type="submit" value="add view" name="addview"/>
1809     </form>
1810
1811     <h3>Views</h3>
1812     <table id="commonListTable">
1813       <tr>
1814         <th>Name</th>
1815         <th>Included subscriptions</th>
1816       </tr>
1817
1818       <xsl:for-each select="view">
1819         <!--<xsl:sort select="name" order="ascending" case-order="upper-first"/>-->
1820         <tr>
1821           <td>
1822             <xsl:variable name="viewName" select="name"/>
1823             <a href="{$view-fetchForUpdate}&amp;name={$viewName}">
1824               <xsl:value-of select="name"/>
1825             </a>
1826           </td>
1827           <td>
1828             <xsl:for-each select="subscriptions/subscription">
1829               <xsl:value-of select="name"/>
1830               <xsl:if test="position()!=last()">, </xsl:if>
1831             </xsl:for-each>
1832           </td>
1833         </tr>
1834       </xsl:for-each>
1835     </table>
1836   </xsl:template>
1837
1838   <xsl:template name="modView">
1839     <h2>Update View</h2>
1840     <xsl:variable name="viewName" select="/bedeworkadmin/views/view/name"/>
1841     <h3 class="viewName"><xsl:value-of select="$viewName"/></h3>
1842     <table id="viewsTable">
1843       <tr>
1844         <td class="subs">
1845           <h3>Available Subscriptions:</h3>
1846
1847           <table class="subscriptionsListSubs">
1848             <xsl:for-each select="/bedeworkadmin/subscriptions/subscription">
1849               <!--<xsl:sort select="name" order="ascending" case-order="upper-first"/>-->
1850               <xsl:if test="not(/bedeworkadmin/views/view/subscriptions/subscription/name=name)">
1851                 <tr>
1852                   <td>
1853                     <xsl:value-of select="name"/>
1854                   </td>
1855                   <td class="arrows">
1856                     <xsl:variable name="subAddName" select="name"/>
1857                     <a href="{$view-update}&amp;name={$viewName}&amp;add={$subAddName}">
1858                       <img src="{$resourcesRoot}/resources/arrowRight.gif"
1859                         width="13" height="13" border="0"
1860                         alt="add subscription"/>
1861                     </a>
1862                   </td>
1863                 </tr>
1864               </xsl:if>
1865             </xsl:for-each>
1866           </table>
1867         </td>
1868         <td class="view">
1869           <h3>Active Subscriptions:</h3>
1870           <table class="subscriptionsListView">
1871             <xsl:for-each select="/bedeworkadmin/views/view/subscriptions/subscription">
1872               <!--<xsl:sort select="name" order="ascending" case-order="upper-first"/>-->
1873               <tr>
1874                 <td class="arrows">
1875                   <xsl:variable name="subRemoveName" select="name"/>
1876                   <a href="{$view-update}&amp;name={$viewName}&amp;remove={$subRemoveName}">
1877                     <img src="{$resourcesRoot}/resources/arrowLeft.gif"
1878                         width="13" height="13" border="0"
1879                         alt="add subscription"/>
1880                   </a>
1881                 </td>
1882                 <td>
1883                   <xsl:value-of select="name"/>
1884                 </td>
1885               </tr>
1886             </xsl:for-each>
1887           </table>
1888         </td>
1889       </tr>
1890     </table>
1891     <table border="0" width="100%" id="submitTable">
1892       <tr>
1893         <td>
1894           <input type="button" name="return" value="Return to Views Listing" class="padRight" onclick="javascript:location.replace('{$view-fetch}')"/>
1895         </td>
1896         <td align="right">
1897           <input type="button" name="delete" value="Delete View" onclick="javascript:location.replace('{$view-fetchForUpdate}&amp;name={$viewName}&amp;delete=yes')"/>
1898         </td>
1899       </tr>
1900     </table>
1901   </xsl:template>
1902
1903   <xsl:template name="deleteViewConfirm">
1904     <h2>Remove View?</h2>
1905
1906     <xsl:variable name="viewName" select="/bedeworkadmin/views/view/name"/>
1907     <p>The following view will be removed. Continue?</p>
1908
1909     <h3 class="viewName"><xsl:value-of select="$viewName"/></h3>
1910     <form name="removeView" action="{$view-remove}">
1911       <input type="hidden" name="name" value="{$viewName}"/>
1912       <input type="submit" name="delete" value="Yes: Remove View" class="padRight"/>
1913       <input type="submit" name="cancelled" value="No: Cancel"/>
1914     </form>
1915
1916   </xsl:template>
1917
1918   <!--+++++++++++++++ System Parameters (preferences) ++++++++++++++++++++-->
1919   <xsl:template name="modSyspars">
1920     <h2>Modify System Parameters</h2>
1921     <p>
1922       Do not change unless you know what you're doing.<br/>
1923       Changes to these parameters have wide impact on the system.
1924     </p>
1925     <form name="systemParamsForm" action="{$system-update}" method="post">
1926       <table class="eventFormTable">
1927         <tr>
1928           <th>Default user view name:</th>
1929           <td>
1930             <xsl:variable name="defaultViewName" select="/bedeworkadmin/system/defaultUserViewName"/>
1931             <input value="{$defaultViewName}" name="defaultUserViewName" size="20"/>
1932           </td>
1933           <td>
1934             Name used for default view created when a new user is added
1935           </td>
1936         </tr>
1937         <tr>
1938           <th>Http connections per user:</th>
1939           <td>
1940             <xsl:variable name="httpPerUser" select="/bedeworkadmin/system/httpConnectionsPerUser"/>
1941             <input value="{$httpPerUser}" name="httpConnectionsPerUser" size="20"/>
1942           </td>
1943           <td>
1944           </td>
1945         </tr>
1946         <tr>
1947           <th>Http connections per host:</th>
1948           <td>
1949             <xsl:variable name="httpPerHost" select="/bedeworkadmin/system/httpConnectionsPerHost"/>
1950             <input value="{$httpPerHost}" name="httpConnectionsPerHost" size="20"/>
1951           </td>
1952           <td>
1953           </td>
1954         </tr>
1955         <tr>
1956           <th>Total http connections:</th>
1957           <td>
1958             <xsl:variable name="httpTotal" select="/bedeworkadmin/system/httpConnections"/>
1959             <input value="{$httpTotal}" name="httpConnections" size="20"/>
1960           </td>
1961           <td>
1962           </td>
1963         </tr>
1964         <tr>
1965           <th>Default user quota:</th>
1966           <td>
1967             <xsl:variable name="defaultUserQuota" select="/bedeworkadmin/system/defaultUserQuota"/>
1968             <input value="{$defaultUserQuota}" name="defaultUserQuota" size="20"/>
1969           </td>
1970           <td>
1971           </td>
1972         </tr>
1973       </table>
1974       <table border="0" width="100%" id="submitTable">
1975         <tr>
1976           <td>
1977             <input type="submit" name="updateSystemParams" value="Update" class="padRight"/>
1978             <input type="submit" name="cancelled" value="Cancel"/>
1979             <input type="reset" value="Reset"/>
1980           </td>
1981         </tr>
1982       </table>
1983     </form>
1984   </xsl:template>
1985
1986   <!--+++++++++++++++ Timezones ++++++++++++++++++++-->
1987   <xsl:template name="uploadTimezones">
1988     <h2>Upload Timezones</h2>
1989     <form name="peForm" method="post" action="{$timezones-upload}" enctype="multipart/form-data">
1990       <input type="file" name="uploadFile" size="40" value=""/>
1991       <input type="submit" name="doUpload" value="Upload Timezones"/>
1992       <input type="submit" name="cancelled" value="Cancel"/>
1993     </form>
1994   </xsl:template>
1995
1996   <!--+++++++++++++++ Authuser ++++++++++++++++++++-->
1997   <xsl:template name="authUserList">
1998     <h2>Modify Administrators</h2>
1999
2000     <div id="authUserInputForms">
2001       <form name="getUserRolesForm" action="{$authuser-fetchForUpdate}" method="post">
2002         Edit admin roles by userid: <input type="text" name="editAuthUserId" size="20"/>
2003         <input type="submit" value="go" name="submit"/>
2004       </form>
2005     </div>
2006
2007     <table id="commonListTable">
2008       <tr>
2009         <th>UserId</th>
2010         <th>Roles</th>
2011         <th></th>
2012       </tr>
2013
2014       <xsl:for-each select="bedeworkadmin/authUsers/authUser">
2015         <!--<xsl:sort select="account" order="ascending" case-order="upper-first"/>-->
2016         <tr>
2017           <td>
2018             <xsl:value-of select="account"/>
2019           </td>
2020           <td>
2021             <xsl:if test="publicEventUser='true'">
2022               publicEvent; <xsl:text> </xsl:text>
2023             </xsl:if>
2024             <xsl:if test="superUser='true'">
2025               superUser; <xsl:text> </xsl:text>
2026             </xsl:if>
2027             <xsl:if test="alertUser='true'">
2028               alert; <xsl:text> </xsl:text>
2029             </xsl:if>
2030           </td>
2031           <td>
2032             <xsl:variable name="account" select="account"/>
2033             <a href="{$authuser-fetchForUpdate}&amp;editAuthUserId={$account}">
2034               edit
2035             </a>
2036           </td>
2037         </tr>
2038       </xsl:for-each>
2039     </table>
2040   </xsl:template>
2041
2042   <xsl:template name="modAuthUser">
2043     <h2>Update Administrator</h2>
2044     <xsl:variable name="modAuthUserAction" select="/bedeworkadmin/formElements/form/@action"/>
2045     <form action="{$modAuthUserAction}" method="post">
2046       <table id="eventFormTable">
2047         <tr>
2048           <td class="fieldName">
2049             Account:
2050           </td>
2051           <td>
2052             <xsl:value-of select="/bedeworkadmin/formElements/form/account"/>
2053           </td>
2054         </tr>
2055         <tr>
2056           <td class="fieldName">
2057             Alerts:
2058           </td>
2059           <td>
2060             <xsl:copy-of select="/bedeworkadmin/formElements/form/alerts/*"/>
2061           </td>
2062         </tr>
2063         <tr>
2064           <td class="fieldName">
2065             Public Events:
2066           </td>
2067           <td>
2068             <xsl:copy-of select="/bedeworkadmin/formElements/form/publicEvents/*"/>
2069           </td>
2070         </tr>
2071         <tr>
2072           <td class="fieldName">
2073             Super User:
2074           </td>
2075           <td>
2076             <xsl:copy-of select="/bedeworkadmin/formElements/form/superUser/*"/>
2077           </td>
2078         </tr>
2079         <tr>
2080           <td class="optional">
2081             Email:
2082           </td>
2083           <td>
2084             <xsl:copy-of select="/bedeworkadmin/formElements/form/email/*"/>
2085             <span class="fieldInfo"></span>
2086           </td>
2087         </tr>
2088         <tr>
2089           <td class="optional">
2090             Phone:
2091           </td>
2092           <td>
2093             <xsl:copy-of select="/bedeworkadmin/formElements/form/phone/*"/>
2094             <span class="fieldInfo"></span>
2095           </td>
2096         </tr>
2097         <tr>
2098           <td class="optional">
2099             Department:
2100           </td>
2101           <td>
2102             <xsl:copy-of select="/bedeworkadmin/formElements/form/dept/*"/>
2103             <span class="fieldInfo"></span>
2104           </td>
2105         </tr>
2106         <tr>
2107           <td class="optional">
2108             Last name:
2109           </td>
2110           <td>
2111             <xsl:copy-of select="/bedeworkadmin/formElements/form/lastName/*"/>
2112             <span class="fieldInfo"></span>
2113           </td>
2114         </tr>
2115         <tr>
2116           <td class="optional">
2117             First name:
2118           </td>
2119           <td>
2120             <xsl:copy-of select="/bedeworkadmin/formElements/form/firstName/*"/>
2121             <span class="fieldInfo"></span>
2122           </td>
2123         </tr>
2124       </table>
2125       <br />
2126
2127       <input type="submit" name="modAuthUser" value="Update" class="padRight"/>
2128       <input type="reset" value="Reset"/>
2129       <input type="submit" name="cancelled" value="Cancel"/>
2130     </form>
2131   </xsl:template>
2132
2133   <!--+++++++++++++++ User Prefs ++++++++++++++++++++-->
2134   <xsl:template name="modPrefs">
2135     <h2>Edit User Preferences</h2>
2136     <form name="userPrefsForm" method="post" action="{$prefs-update}">
2137       <table id="eventFormTable">
2138         <tr>
2139           <td class="fieldName">
2140             User:
2141           </td>
2142           <td>
2143             <xsl:value-of select="/bedeworkadmin/prefs/user"/>
2144             <xsl:variable name="user" select="/bedeworkadmin/prefs/user"/>
2145             <input type="hidden" name="user" value="{$user}"/>
2146           </td>
2147         </tr>
2148         <tr>
2149           <td class="fieldName">
2150             Preferred view:
2151           </td>
2152           <td>
2153             <xsl:variable name="preferredView" select="/bedeworkadmin/prefs/preferredView"/>
2154             <input type="text" name="preferredView" value="{$preferredView}" size="40"/>
2155           </td>
2156         </tr>
2157         <tr>
2158           <td class="fieldName">
2159             Preferred view period:
2160           </td>
2161           <td>
2162             <xsl:variable name="preferredViewPeriod" select="/bedeworkadmin/prefs/preferredViewPeriod"/>
2163             <input type="text" name="viewPeriod" value="{$preferredViewPeriod}" size="40"/>
2164           </td>
2165         </tr>
2166         <tr>
2167           <td class="fieldName">
2168             Skin name:
2169           </td>
2170           <td>
2171             <xsl:variable name="skinName" select="/bedeworkadmin/prefs/skinName"/>
2172             <input type="text" name="skin" value="{$skinName}" size="40"/>
2173           </td>
2174         </tr>
2175         <tr>
2176           <td class="fieldName">
2177             Skin style:
2178           </td>
2179           <td>
2180             <xsl:variable name="skinStyle" select="/bedeworkadmin/prefs/skinStyle"/>
2181             <input type="text" name="skinStyle" value="{$skinStyle}" size="40"/>
2182           </td>
2183         </tr>
2184       </table>
2185       <br />
2186
2187       <input type="submit" name="modPrefs" value="Update" class="padRight"/>
2188       <input type="reset" value="Reset"/>
2189       <input type="submit" name="cancelled" value="Cancel"/>
2190     </form>
2191   </xsl:template>
2192
2193   <!--+++++++++++++++ Admin Groups ++++++++++++++++++++-->
2194   <xsl:template name="listAdminGroups">
2195     <h2>Modify Groups</h2>
2196     <form name="adminGroupMembersForm" method="post" action="{$admingroup-initUpdate}">
2197       <xsl:choose>
2198         <xsl:when test="/bedeworkadmin/groups/showMembers='true'">
2199           <input type="radio" name="showAgMembers" value="false" onclick="document.adminGroupMembersForm.submit();"/>
2200           Hide members
2201           <input type="radio" name="showAgMembers" value="true" checked="checked" onclick="document.adminGroupMembersForm.submit();"/>
2202           Show members
2203         </xsl:when>
2204         <xsl:otherwise>
2205           <input type="radio" name="showAgMembers" value="false" checked="checked" onclick="document.adminGroupMembersForm.submit();"/>
2206           Hide members
2207           <input type="radio" name="showAgMembers" value="true" onclick="document.adminGroupMembersForm.submit();"/>
2208           Show members
2209         </xsl:otherwise>
2210       </xsl:choose>
2211     </form>
2212
2213     <p>Click on the group name to modify the group owner or description.<br/>
2214     Click "add/remove members" to modify group membership.</p>
2215     <p><input type="button" name="return" onclick="javascript:location.replace('{$admingroup-initAdd}')" value="Add a new group"/></p>
2216     <table id="commonListTable">
2217       <tr>
2218         <th>Name</th>
2219         <th>Description</th>
2220         <xsl:if test="/bedeworkadmin/groups/showMembers='true'">
2221           <th>Members</th>
2222         </xsl:if>
2223         <th></th>
2224       </tr>
2225       <xsl:for-each select="/bedeworkadmin/groups/group">
2226         <!--<xsl:sort select="name" order="ascending" case-order="upper-first"/>-->
2227         <xsl:variable name="groupName" select="name"/>
2228         <tr>
2229           <td>
2230             <a href="{$admingroup-fetchForUpdate}&amp;adminGroupName={$groupName}">
2231               <xsl:value-of select="name"/>
2232             </a>
2233           </td>
2234           <td>
2235             <xsl:value-of select="desc"/>
2236           </td>
2237           <xsl:if test="/bedeworkadmin/groups/showMembers='true'">
2238             <td>
2239               <xsl:for-each select="members/member/account">
2240                   <xsl:value-of select="."/>&#160;
2241               </xsl:for-each>
2242             </td>
2243           </xsl:if>
2244           <td>
2245             <a href="{$admingroup-fetchForUpdateMembers}&amp;adminGroupName={$groupName}">Add/Remove members</a>
2246           </td>
2247         </tr>
2248       </xsl:for-each>
2249     </table>
2250     <p><input type="button" name="return" onclick="javascript:location.replace('{$admingroup-initAdd}')" value="Add a new group"/></p>
2251   </xsl:template>
2252
2253   <xsl:template match="groups" mode="chooseGroup">
2254     <h2>Choose Your Administrative Group</h2>
2255
2256     <table id="commonListTable">
2257
2258       <tr>
2259         <th>Name</th>
2260         <th>Description</th>
2261       </tr>
2262
2263       <xsl:for-each select="group">
2264         <!--<xsl:sort select="name" order="ascending" case-order="upper-first"/>-->
2265         <tr>
2266           <td>
2267             <xsl:variable name="admGroupName" select="name"/>
2268             <a href="{$setup}&amp;adminGroupName={$admGroupName}">
2269               <xsl:copy-of select="name"/>
2270             </a>
2271           </td>
2272           <td>
2273             <xsl:value-of select="desc"/>
2274           </td>
2275         </tr>
2276       </xsl:for-each>
2277     </table>
2278   </xsl:template>
2279
2280   <xsl:template name="modAdminGroup">
2281     <xsl:choose>
2282       <xsl:when test="/bedeworkadmin/creating = 'true'">
2283         <h2>Add Group</h2>
2284       </xsl:when>
2285       <xsl:otherwise>
2286         <h2>Modify Group</h2>
2287       </xsl:otherwise>
2288     </xsl:choose>
2289     <form name="peForm" method="post" action="{$admingroup-update}">
2290       <table id="adminGroupFormTable">
2291         <tr>
2292           <td class="fieldName">
2293             Name:
2294           </td>
2295           <td>
2296             <xsl:choose>
2297               <xsl:when test="/bedeworkadmin/creating = 'true'">
2298                 <xsl:copy-of select="/bedeworkadmin/formElements/form/name/*"/>
2299               </xsl:when>
2300               <xsl:otherwise>
2301                 <xsl:value-of  select="/bedeworkadmin/formElements/form/name"/>
2302               </xsl:otherwise>
2303             </xsl:choose>
2304           </td>
2305         </tr>
2306         <tr>
2307           <td class="fieldName">
2308             Description:
2309           </td>
2310           <td>
2311             <xsl:copy-of select="/bedeworkadmin/formElements/form/desc/*"/>
2312           </td>
2313         </tr>
2314         <tr>
2315           <td class="fieldName">
2316             Group owner:
2317           </td>
2318           <td>
2319             <xsl:copy-of select="/bedeworkadmin/formElements/form/groupOwner/*"/>
2320           </td>
2321         </tr>
2322         <tr>
2323           <td class="fieldName">
2324             Events owner:
2325           </td>
2326           <td>
2327             <xsl:copy-of select="/bedeworkadmin/formElements/form/eventsOwner/*"/>
2328           </td>
2329         </tr>
2330       </table>
2331       <table border="0" width="100%" id="submitTable">
2332         <tr>
2333           <td>
2334             <xsl:choose>
2335               <xsl:when test="/bedeworkadmin/creating = 'true'">
2336                 <input type="submit" name="updateAdminGroup" value="Add Admin Group" class="padRight"/>
2337                 <input type="submit" name="cancelled" value="Cancel"/>
2338                 <input type="reset" value="Clear"/>
2339               </xsl:when>
2340               <xsl:otherwise>
2341                 <input type="submit" name="updateAdminGroup" value="Update Admin Group" class="padRight"/>
2342                 <input type="submit" name="cancelled" value="Cancel"/>
2343                 <input type="reset" value="Reset"/>
2344               </xsl:otherwise>
2345             </xsl:choose>
2346           </td>
2347           <td align="right">
2348             <input type="submit" name="delete" value="Delete"/>
2349           </td>
2350         </tr>
2351       </table>
2352     </form>
2353   </xsl:template>
2354
2355   <xsl:template name="modAdminGroupMembers">
2356     <h2>Update Group Membership</h2>
2357     <p>Enter a userid (for user or group) and click "add" to update group membership.
2358     Click the trash icon to remove a user from the group.</p>
2359
2360     <form name="adminGroupMembersForm" method="post" action="{$admingroup-updateMembers}">
2361       <p>Add member:
2362         <input type="text" name="updGroupMember" size="15"/>
2363         <input type="radio" value="user" name="kind" checked="checked"/>user
2364         <input type="radio" value="group" name="kind"/>group
2365         <input type="submit" name="addGroupMember" value="Add"/>
2366       </p>
2367     </form>
2368     <p><input type="button" name="return" onclick="javascript:location.replace('{$admingroup-initUpdate}')" value="Return to Admin Group listing"/></p>
2369
2370     <table id="adminGroupFormTable">
2371       <tr>
2372         <td class="fieldName">
2373           Name:
2374         </td>
2375         <td>
2376           <xsl:value-of select="/bedeworkadmin/adminGroup/name"/>
2377         </td>
2378       </tr>
2379       <tr>
2380         <td class="fieldName">
2381           Members:
2382         </td>
2383         <td>
2384           <table id="memberAccountList">
2385             <xsl:for-each select="/bedeworkadmin/adminGroup/members/member">
2386               <!--<xsl:sort select="account" order="ascending" case-order="upper-first"/>-->
2387               <tr>
2388                 <td>
2389                   <xsl:choose>
2390                     <xsl:when test="kind='0'"><img src="{$resourcesRoot}/resources/userIcon.gif" width="13" height="13" border="0" alt="user"/></xsl:when>
2391                     <xsl:when test="kind='1'"><img src="{$resourcesRoot}/resources/groupIcon.gif" width="13" height="13" border="0" alt="group"/></xsl:when>
2392                     <xsl:when test="kind='3'"></xsl:when>
2393                     <xsl:otherwise></xsl:otherwise>
2394                   </xsl:choose>
2395                 </td>
2396                 <td>
2397                   <xsl:value-of select="account"/>
2398                 </td>
2399                 <td>
2400                   <xsl:variable name="acct" select="account"/>
2401                   <a href="{$admingroup-updateMembers}&amp;removeGroupMember={$acct}" title="remove">
2402                     <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="remove"/>
2403                   </a>
2404                 </td>
2405               </tr>
2406             </xsl:for-each>
2407           </table>
2408         </td>
2409       </tr>
2410     </table>
2411     <p>
2412       <img src="{$resourcesRoot}/resources/userIcon.gif" width="13" height="13" border="0" alt="user"/> user,
2413       <img src="{$resourcesRoot}/resources/groupIcon.gif" width="13" height="13" border="0" alt="group"/> group
2414     </p>
2415   </xsl:template>
2416
2417   <xsl:template name="deleteAdminGroupConfirm">
2418     <h2>Delete Admin Group?</h2>
2419     <p>The following group will be deleted. Continue?</p>
2420     <p>
2421       <strong><xsl:value-of select="/bedeworkadmin/groups/group/name"/></strong>:
2422       <xsl:value-of select="/bedeworkadmin/groups/group/desc"/>
2423     </p>
2424     <form  name="adminGroupDelete" method="post" action="{$admingroup-delete}">
2425       <input type="submit" name="removeAdminGroupOK" value="Yes: Delete!"/>
2426       <input type="submit" name="cancelled" value="No: Cancel"/>
2427     </form>
2428   </xsl:template>
2429
2430   <!--==== HEADER TEMPLATES and NAVIGATION  ====-->
2431
2432   <xsl:template name="header">
2433     <div id="header">
2434      <!-- Uncomment this code and replace the following logo
2435           to brand your administrative interface.
2436
2437       <img id="logo"
2438           alt="logo"
2439           src="{$resourcesRoot}/resources/caladminlogo.gif"
2440           align="right"
2441           border="0"/> -->
2442
2443       <!-- set the page heading: -->
2444       <h1>
2445         <xsl:choose>
2446           <xsl:when test="/bedeworkadmin/page='modEvent' or
2447                           /bedeworkadmin/page='eventList' or
2448                           /bedeworkadmin/page='displayEvent'">
2449             Manage Events
2450           </xsl:when>
2451           <xsl:when test="/bedeworkadmin/page='sponsorList' or
2452                           /bedeworkadmin/page='modSponsor' or
2453                           /bedeworkadmin/page='deleteSponsorConfirm'">
2454             Manage Contacts
2455           </xsl:when>
2456           <xsl:when test="/bedeworkadmin/page='locationList' or
2457                           /bedeworkadmin/page='modLocation' or
2458                           /bedeworkadmin/page='deleteLocationConfirm'">
2459             Manage Locations
2460           </xsl:when>
2461           <xsl:when test="/bedeworkadmin/page='calendarList' or /bedeworkadmin/page='modCalendar'">
2462             Manage Calendars
2463           </xsl:when>
2464           <xsl:when test="/bedeworkadmin/page='subscriptions' or /bedeworkadmin/page='modSubscription'">
2465             Manage Subscriptions
2466           </xsl:when>
2467           <xsl:when test="/bedeworkadmin/page='views' or /bedeworkadmin/page='modView'">
2468             Manage Views
2469           </xsl:when>
2470           <xsl:when test="/bedeworkadmin/page='modSyspars'">
2471             Manage System Preferences
2472           </xsl:when>
2473           <xsl:when test="/bedeworkadmin/page='authUserList' or /bedeworkadmin/page='modAuthUser'">
2474             Manage Public Events Administrators
2475           </xsl:when>
2476           <xsl:when test="/bedeworkadmin/page='chooseGroup'">
2477             Choose Administrative Group
2478           </xsl:when>
2479           <xsl:when test="/bedeworkadmin/page='adminGroupList' or
2480                           /bedeworkadmin/page='modAdminGroup' or
2481                           /bedeworkadmin/page='modAdminGroup' or
2482                           /bedeworkadmin/page='modAdminGroupMembers'">
2483             Manage Administrative Groups
2484           </xsl:when>
2485           <xsl:when test="/bedeworkadmin/page='noGroup'">
2486             No Administrative Group
2487           </xsl:when>
2488           <xsl:when test="/bedeworkadmin/page='uploadTimezones'">
2489             Manage Time Zones
2490           </xsl:when>
2491           <xsl:when test="/bedeworkadmin/page='noAccess'">
2492             Access Denied
2493           </xsl:when>
2494           <xsl:when test="/bedeworkadmin/page='error'">
2495             Error
2496           </xsl:when>
2497           <xsl:otherwise>
2498             Bedework Calendar Administration
2499           </xsl:otherwise>
2500         </xsl:choose>
2501       </h1>
2502
2503       <xsl:if test="/bedeworkadmin/message">
2504         <div id="messages">
2505           <p><xsl:apply-templates select="/bedeworkadmin/message"/></p>
2506         </div>
2507       </xsl:if>
2508       <xsl:if test="/bedeworkadmin/error">
2509         <div id="errors">
2510           <p><xsl:apply-templates select="/bedeworkadmin/error"/></p>
2511         </div>
2512       </xsl:if>
2513
2514     </div>
2515     <table id="statusBarTable">
2516       <tr>
2517         <td class="leftCell">
2518           <a href="{$setup}">Main Menu</a> |
2519           <a href="{$publicCal}" target="calendar">Launch Calendar</a> |
2520           <a href="{$logout}">Log Out</a> |
2521           <!-- Enable the following two items when debugging skins only -->
2522           <a href="?refreshXslt=yes">Refresh XSL</a> |
2523           <a href="?noxslt=yes">Show XML</a> (view source)
2524         </td>
2525         <xsl:if test="/bedeworkadmin/userInfo/user">
2526           <td class="rightCell">
2527             Logged in as:
2528             <span class="status">
2529               <xsl:value-of select="/bedeworkadmin/userInfo/user"/>
2530             </span>
2531             &#160;
2532             <xsl:if test="/bedeworkadmin/userInfo/group">
2533               Group:
2534               <span class="status">
2535                 <xsl:value-of select="/bedeworkadmin/userInfo/group"/>
2536               </span>
2537             </xsl:if>
2538           </td>
2539         </xsl:if>
2540       </tr>
2541     </table>
2542     <table width="100%" border="0" cellpadding="0" cellspacing="0">
2543       <tr>
2544         <td width="50%"><img alt="" src="{$resourcesRoot}/resources/std-title-space.gif"
2545                              width="100%" height="16" border="0"/></td>
2546         <td><img src="{$resourcesRoot}/resources/std-title.gif" width="485" height="16"
2547                  border="0"
2548                  alt="Calendar of Events"/></td>
2549         <td width="50%"><img alt="" src="{$resourcesRoot}/resources/std-title-space.gif"
2550                              width="100%" height="16" border="0"/></td>
2551       </tr>
2552     </table>
2553   </xsl:template>
2554
2555   <!--==== FOOTER ====-->
2556   <xsl:template name="footer">
2557     <div id="footer">
2558       <a href="http://www.bedework.org/">Bedework website</a>
2559     </div>
2560   </xsl:template>
2561 </xsl:stylesheet>
Note: See TracBrowser for help on using the browser.