root/trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/eventForm.xsl

Revision 3201 (checked in by johnsa, 2 years ago)

user client: add white space to recurring event text in event form

Line 
1 <!--
2     Licensed to Jasig under one or more contributor license
3     agreements. See the NOTICE file distributed with this work
4     for additional information regarding copyright ownership.
5     Jasig licenses this file to you under the Apache License,
6     Version 2.0 (the "License"); you may not use this file
7     except in compliance with the License. You may obtain a
8     copy of the License at:
9    
10     http://www.apache.org/licenses/LICENSE-2.0
11    
12     Unless required by applicable law or agreed to in writing,
13     software distributed under the License is distributed on
14     an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15     KIND, either express or implied. See the License for the
16     specific language governing permissions and limitations
17     under the License.
18 -->
19 <xsl:stylesheet
20   version="1.0"
21   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
22   xmlns="http://www.w3.org/1999/xhtml">
23  
24   <!--==== ADD EVENT ====-->
25   <xsl:template match="formElements" mode="addEvent">
26   <!-- The name "eventForm" is referenced by several javascript functions. Do not
27     change it without modifying bedework.js -->
28     <xsl:variable name="submitter">
29       <xsl:choose>
30         <xsl:when test="form/xproperties/node()[name()='X-BEDEWORK-SUBMITTEDBY']"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-SUBMITTEDBY']/values/text"/></xsl:when>
31         <xsl:otherwise><xsl:value-of select="/bedework/userid"/></xsl:otherwise>
32       </xsl:choose>
33     </xsl:variable>
34     <form name="eventForm" method="post" action="{$addEvent}" id="standardForm" onsubmit="setEventFields(this,{$portalFriendly},'{$submitter}')">
35       <h2>
36         <span class="formButtons">
37           <xsl:apply-templates select="form" mode="addEditEventFormButtons" />
38         </span>
39         <xsl:choose>
40           <xsl:when test="form/entityType = '2'"><xsl:copy-of select="$bwStr-AddE-AddTask"/></xsl:when>
41           <xsl:when test="form/scheduleMethod = '2'"><xsl:copy-of select="$bwStr-AddE-AddMeeting"/></xsl:when>
42           <xsl:otherwise><xsl:copy-of select="$bwStr-AddE-AddEvent"/></xsl:otherwise>
43         </xsl:choose>
44       </h2>
45       <xsl:apply-templates select="." mode="eventForm"/>
46     </form>
47   </xsl:template>
48
49   <!--==== EDIT EVENT ====-->
50   <xsl:template match="formElements" mode="editEvent">
51     <!-- The name "eventForm" is referenced by several javascript functions. Do not
52     change it without modifying bedework.js -->
53     <xsl:variable name="submitter">
54       <xsl:choose>
55         <xsl:when test="form/xproperties/node()[name()='X-BEDEWORK-SUBMITTEDBY']"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-SUBMITTEDBY']/values/text"/></xsl:when>
56         <xsl:otherwise><xsl:value-of select="/bedework/userid"/></xsl:otherwise>
57       </xsl:choose>
58     </xsl:variable>
59     <form name="eventForm" method="post" action="{$updateEvent}" id="standardForm" onsubmit="setEventFields(this,{$portalFriendly},'{$submitter}')">
60       <h2>
61         <span class="formButtons">
62           <xsl:apply-templates select="form" mode="addEditEventFormButtons" />
63         </span>
64         <xsl:choose>
65           <xsl:when test="form/entityType = '2'"><xsl:copy-of select="$bwStr-EdtE-EditTask"/></xsl:when>
66           <xsl:when test="form/scheduleMethod = '2'"><xsl:copy-of select="$bwStr-EdtE-EditMeeting"/></xsl:when>
67           <xsl:otherwise><xsl:copy-of select="$bwStr-EdtE-EditEvent"/></xsl:otherwise>
68         </xsl:choose>
69       </h2>
70       <xsl:for-each select="form/xproperties/xproperty">
71         <xsl:variable name="xprop"><xsl:value-of select="@name"/><xsl:value-of select="pars"/>:<xsl:value-of select="value"/></xsl:variable>
72         <input type="hidden" name="xproperty" value="{$xprop}"/>
73       </xsl:for-each>
74       <xsl:apply-templates select="." mode="eventForm"/>
75     </form>
76   </xsl:template>
77
78
79   <!--==== ADD and EDIT EVENT FORM ====-->
80   <xsl:template match="formElements" mode="eventForm">
81     <xsl:variable name="calPathEncoded" select="form/calendar/encodedPath"/>
82     <xsl:variable name="calPath" select="form/calendar/path"/>
83     <xsl:variable name="guid"><xsl:call-template name="url-encode"><xsl:with-param name="str" select="guid"/></xsl:call-template></xsl:variable>
84     <xsl:variable name="recurrenceId" select="recurrenceId"/>
85     <input type="hidden" name="endType" value="date"/>
86
87       <!-- event info for edit event -->
88       <xsl:if test="/bedework/creating != 'true'">
89         <table class="common" cellspacing="0">
90           <tr>
91             <th colspan="2" class="commonHeader">
92               <div id="eventActions">
93                 <xsl:choose>
94                   <xsl:when test="recurrenceId != ''">
95                     <div id="bwDeleteRecurButton" class="bwMenuButton">
96                       <img src="{$resourcesRoot}/images/trashIcon.gif" width="13" height="13" border="0" alt="delete"/>
97                       <xsl:copy-of select="$bwStr-AEEF-Delete"/>
98                       <div id="bwDeleteRecurWidget" class="bwMenuWidget">
99                         <ul>
100                           <li>
101                             <a href="{$delEvent}&amp;calPath={$calPath}&amp;guid={$guid}" title="{$bwStr-AEEF-DeleteMaster}" onclick="return confirm('{$bwStr-AEEF-DeleteAllRecurrences}');">
102                               <xsl:copy-of select="$bwStr-AEEF-All"/>
103                             </a>
104                           </li>
105                           <li>
106                             <a href="{$delEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="${bwStr-AEEF-DeleteThisInstance}" onclick="return confirm('{$bwStr-AEEF-DeleteThisEvent}');">
107                               <xsl:copy-of select="$bwStr-AEEF-Instance"/>
108                             </a>
109                           </li>
110                         </ul>
111                       </div>
112                     </div>
113                   </xsl:when>
114                   <xsl:otherwise>
115                     <a href="{$delEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="{$bwStr-AEEF-DeleteEvent}" class="bwMenuButton" onclick="return confirm('{$bwStr-AEEF-DeleteThisEvent}');">
116                       <img src="{$resourcesRoot}/images/trashIcon.gif" width="13" height="13" border="0" alt="delete"/>
117                        <xsl:copy-of select="$bwStr-AEEF-Delete"/>
118                       <xsl:if test="form/recurringEntity='true'">
119                         <xsl:copy-of select="$bwStr-AEEF-All"/>
120                       </xsl:if>
121                     </a>
122                   </xsl:otherwise>
123                 </xsl:choose>
124                 <xsl:if test="not(form/recurringEntity = 'true' and recurrenceId = '')">
125                   <!-- don't display if a master recurring event (because the master can't be viewed) -->
126                   <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" class="bwMenuButton">
127                     <img src="{$resourcesRoot}/images/glassFill-icon-viewGray.gif" width="13" height="13" border="0" alt="view"/>
128                      <xsl:copy-of select="$bwStr-AEEF-View"/>
129                   </a>
130                 </xsl:if>
131               </div>
132               <!-- Display type of event -->
133               <xsl:variable name="entityType">
134                 <xsl:choose>
135                   <xsl:when test="form/entityType = '2'"><xsl:copy-of select="$bwStr-AEEF-TASK"/></xsl:when>
136                   <xsl:when test="form/scheduleMethod = '2'"><xsl:copy-of select="$bwStr-AEEF-Meeting"/></xsl:when>
137                   <xsl:otherwise><xsl:copy-of select="$bwStr-AEEF-EVENT"/></xsl:otherwise>
138                 </xsl:choose>
139               </xsl:variable>
140               <xsl:if test="form/recurringEntity='true' or recurrenceId != ''">
141                  <xsl:copy-of select="$bwStr-AEEF-Recurring"/>
142               </xsl:if>
143               <xsl:choose>
144                 <xsl:when test="form">
145                   <!-- just a placeholder: need to add owner to the jsp -->
146                    <xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-Personal"/><xsl:text> </xsl:text><xsl:value-of select="$entityType"/>
147                 </xsl:when>
148                 <xsl:when test="public = 'true'">
149                    <xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-Public"/><xsl:text> </xsl:text><xsl:value-of select="$entityType"/>
150                 </xsl:when>
151                 <xsl:otherwise>
152                   <xsl:value-of select="$entityType"/>
153                 </xsl:otherwise>
154               </xsl:choose>
155               <xsl:if test="form/recurringEntity='true' and recurrenceId = ''">
156                 <xsl:text> </xsl:text>
157                 <em><xsl:copy-of select="$bwStr-AEEF-RecurrenceMaster"/></em>
158               </xsl:if>
159             </th>
160           </tr>
161         </table>
162       </xsl:if>
163
164       <!-- event form submenu -->
165       <ul id="eventFormTabs" class="submenu">
166         <li class="selected">
167           <a href="javascript:setTab('eventFormTabs',0); show('bwEventTab-Basic'); hide('bwEventTab-Details','bwEventTab-Recurrence','bwEventTab-Access','bwEventTab-Scheduling');">
168             <xsl:copy-of select="$bwStr-AEEF-Basic"/>
169           </a>
170         </li>
171         <li>
172           <a href="javascript:setTab('eventFormTabs',1); show('bwEventTab-Details'); hide('bwEventTab-Basic','bwEventTab-Recurrence','bwEventTab-Access','bwEventTab-Scheduling');">
173             <xsl:copy-of select="$bwStr-AEEF-Details"/>
174           </a>
175         </li>
176         <li>
177           <a href="javascript:setTab('eventFormTabs',2); show('bwEventTab-Recurrence'); hide('bwEventTab-Details','bwEventTab-Basic','bwEventTab-Access','bwEventTab-Scheduling');">
178             <xsl:copy-of select="$bwStr-AEEF-Recurrence"/>
179           </a>
180         </li>
181         <li>
182           <a href="javascript:setTab('eventFormTabs',3); show('bwEventTab-Scheduling'); hide('bwEventTab-Basic','bwEventTab-Details','bwEventTab-Recurrence','bwEventTab-Access');">
183             <xsl:choose>
184               <xsl:when test="form/entityType = '2'"> <!-- "scheduling" for a task -->
185                 <xsl:copy-of select="$bwStr-AEEF-Scheduling"/>
186               </xsl:when>
187               <xsl:otherwise> <!-- "meeting" for a normal event -->
188                 <xsl:copy-of select="$bwStr-AEEF-Meetingtab"/>
189               </xsl:otherwise>
190             </xsl:choose>
191           </a>
192         </li>
193         <!-- Hide from use.  If you wish to enable the access control form for
194          events, uncomment this block and the access control block further down in this file.
195         <li>
196           <a href="javascript:setTab('eventFormTabs',4); show('bwEventTab-Access'); hide('bwEventTab-Details','bwEventTab-Basic','bwEventTab-Recurrence','bwEventTab-Scheduling');">
197             access
198           </a>
199         </li>-->
200       </ul>
201      
202
203     <!-- Basic tab -->
204     <!-- ============== -->
205     <!-- this tab is visible by default -->
206     <div id="bwEventTab-Basic">
207       <table cellspacing="0" class="common dottedBorder">
208      
209         <!--  Calendar  -->
210         <tr>
211           <td class="fieldname">
212             <xsl:copy-of select="$bwStr-AEEF-Calendar"/><xsl:text> </xsl:text>
213           </td>
214           <td class="fieldval">
215             <!-- the string "user/" should not be hard coded; fix this -->
216             <xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/></xsl:variable>
217             <xsl:variable name="writableCalendars">
218               <xsl:value-of select="
219                 count(/bedework/myCalendars//calendar[calType = '1' and
220                        currentAccess/current-user-privilege-set/privilege/write-content]) +
221                 count(/bedework/mySubscriptions//calendar[calType = '1' and
222                        currentAccess/current-user-privilege-set/privilege/write-content and
223                        (not(contains(path,$userPath)))])"/>
224             </xsl:variable>
225             <xsl:choose>
226               <xsl:when test="$writableCalendars = 1">
227                 <!-- there is only 1 writable calendar, so find it by looking down both trees at once -->
228                 <xsl:variable name="newCalPath"><xsl:value-of select="/bedework/myCalendars//calendar[calType = '1' and
229                          currentAccess/current-user-privilege-set/privilege/write-content]/path"/><xsl:value-of select="/bedework/mySubscriptions//calendar[calType = '1' and
230                        currentAccess/current-user-privilege-set/privilege/write-content and
231                        (not(contains(path,$userPath)))]/path"/></xsl:variable>
232
233                 <input type="hidden" name="newCalPath" value="{$newCalPath}"/>
234                 <span id="bwEventCalDisplay">
235                   <xsl:value-of select="form/calendar/summary"/>
236                   <xsl:text> </xsl:text>
237                 </span>
238               </xsl:when>
239               <xsl:otherwise>
240                 <input type="hidden" name="newCalPath" id="bwNewCalPathField">
241                   <xsl:attribute name="value"><xsl:value-of select="form/calendar/path"/></xsl:attribute>
242                 </input>
243                 <span id="bwEventCalDisplay">
244                   <xsl:value-of select="form/calendar/summary"/>
245                   <xsl:text> </xsl:text>
246                 </span>
247                 <xsl:call-template name="selectCalForEvent"/>
248               </xsl:otherwise>
249             </xsl:choose>
250           </td>
251         </tr>
252        
253         <!--  Summary (title) of event  -->
254         <tr>
255           <td class="fieldname">
256             <xsl:copy-of select="$bwStr-AEEF-Title"/><xsl:text> </xsl:text>
257           </td>
258           <td class="fieldval">
259             <xsl:variable name="title" select="form/title/input/@value"/>
260             <input type="text" name="summary" size="80" value="{$title}" id="bwEventTitle"/>
261           </td>
262         </tr>
263
264         <!--  Date and Time -->
265         <!--  ============= -->
266         <tr>
267           <td class="fieldname">
268             <xsl:copy-of select="$bwStr-AEEF-DateAndTime"/><xsl:text> </xsl:text>
269           </td>
270           <td class="fieldval">
271             <!-- Set the timefields class for the first load of the page;
272                  subsequent changes will take place using javascript without a
273                  page reload. -->
274             <xsl:variable name="timeFieldsClass">
275               <xsl:choose>
276                 <xsl:when test="form/allDay/input/@checked='checked'">invisible</xsl:when>
277                 <xsl:otherwise>timeFields</xsl:otherwise>
278               </xsl:choose>
279             </xsl:variable>
280
281             <!-- date only event: anniversary event - often interpreted as "all day event" -->
282             <xsl:choose>
283               <xsl:when test="form/allDay/input/@checked='checked'">
284                 <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="on" checked="checked"/>
285                 <input type="hidden" name="eventStartDate.dateOnly" value="true" id="allDayStartDateField"/>
286                 <input type="hidden" name="eventEndDate.dateOnly" value="true" id="allDayEndDateField"/>
287               </xsl:when>
288               <xsl:otherwise>
289                 <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="off"/>
290                 <input type="hidden" name="eventStartDate.dateOnly" value="false" id="allDayStartDateField"/>
291                 <input type="hidden" name="eventEndDate.dateOnly" value="false" id="allDayEndDateField"/>
292               </xsl:otherwise>
293             </xsl:choose>
294             <xsl:copy-of select="$bwStr-AEEF-AllDay"/>
295
296             <!-- floating event: no timezone (and not UTC) -->
297             <xsl:choose>
298               <xsl:when test="form/floating/input/@checked='checked'">
299                 <input type="checkbox" name="floatingFlag" id="floatingFlag" onclick="swapFloatingTime(this)" value="on" checked="checked"/>
300                 <input type="hidden" name="eventStartDate.floating" value="true" id="startFloating"/>
301                 <input type="hidden" name="eventEndDate.floating" value="true" id="endFloating"/>
302               </xsl:when>
303               <xsl:otherwise>
304                 <input type="checkbox" name="floatingFlag" id="floatingFlag" onclick="swapFloatingTime(this)" value="off"/>
305                 <input type="hidden" name="eventStartDate.floating" value="false" id="startFloating"/>
306                 <input type="hidden" name="eventEndDate.floating" value="false" id="endFloating"/>
307               </xsl:otherwise>
308             </xsl:choose>
309             <xsl:copy-of select="$bwStr-AEEF-Floating"/>
310
311             <!-- store time as coordinated universal time (UTC) -->
312             <xsl:choose>
313               <xsl:when test="form/storeUTC/input/@checked='checked'">
314                 <input type="checkbox" name="storeUTCFlag" id="storeUTCFlag" onclick="swapStoreUTC(this)" value="on" checked="checked"/>
315                 <input type="hidden" name="eventStartDate.storeUTC" value="true" id="startStoreUTC"/>
316                 <input type="hidden" name="eventEndDate.storeUTC" value="true" id="endStoreUTC"/>
317               </xsl:when>
318               <xsl:otherwise>
319                 <input type="checkbox" name="storeUTCFlag" id="storeUTCFlag" onclick="swapStoreUTC(this)" value="off"/>
320                 <input type="hidden" name="eventStartDate.storeUTC" value="false" id="startStoreUTC"/>
321                 <input type="hidden" name="eventEndDate.storeUTC" value="false" id="endStoreUTC"/>
322               </xsl:otherwise>
323             </xsl:choose>
324             <xsl:copy-of select="$bwStr-AEEF-StoreAsUTC"/>
325
326             <br/>
327             <div class="dateStartEndBox">
328               <strong><xsl:copy-of select="$bwStr-AEEF-Start"/></strong><xsl:text> </xsl:text>
329               <div class="dateFields">
330                 <span class="startDateLabel"><xsl:copy-of select="$bwStr-AEEF-Date"/><xsl:text> </xsl:text></span>
331                 <xsl:choose>
332                   <xsl:when test="$portalFriendly = 'true'">
333                     <xsl:copy-of select="/bedework/formElements/form/start/month/*"/>
334                     <xsl:copy-of select="/bedework/formElements/form/start/day/*"/>
335                     <xsl:choose>
336                       <xsl:when test="/bedework/creating = 'true'">
337                         <xsl:copy-of select="/bedework/formElements/form/start/year/*"/>
338                       </xsl:when>
339                       <xsl:otherwise>
340                         <xsl:copy-of select="/bedework/formElements/form/start/yearText/*"/>
341                       </xsl:otherwise>
342                     </xsl:choose>
343                     <script type="text/javascript">
344                       <xsl:comment>
345                       startDateDynCalWidget = new dynCalendar('startDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'startDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/images/');
346                       </xsl:comment>
347                     </script>
348                   </xsl:when>
349                   <xsl:otherwise>
350                     <input type="text" name="bwEventWidgetStartDate" id="bwEventWidgetStartDate" size="10"/>
351                     <input type="hidden" name="eventStartDate.year">
352                       <xsl:attribute name="value"><xsl:value-of select="form/start/yearText/input/@value"/></xsl:attribute>
353                     </input>
354                     <input type="hidden" name="eventStartDate.month">
355                       <xsl:attribute name="value"><xsl:value-of select="form/start/month/select/option[@selected = 'selected']/@value"/></xsl:attribute>
356                     </input>
357                     <input type="hidden" name="eventStartDate.day">
358                       <xsl:attribute name="value"><xsl:value-of select="form/start/day/select/option[@selected = 'selected']/@value"/></xsl:attribute>
359                     </input>
360                   </xsl:otherwise>
361                 </xsl:choose>
362               </div>
363               <div class="{$timeFieldsClass}" id="startTimeFields">
364                 <span id="calWidgetStartTimeHider" class="show">
365                         <select name="eventStartDate.hour" id="eventStartDateHour">
366                           <xsl:copy-of select="form/start/hour/select/*"/>
367                         </select>
368                         <select name="eventStartDate.minute" id="eventStartDateMinute">
369                           <xsl:copy-of select="form/start/minute/select/*"/>
370                         </select>
371                         <xsl:if test="form/start/ampm">
372                           <select name="eventStartDate.ampm" id="eventStartDateAmpm">
373                             <xsl:copy-of select="form/start/ampm/select/*"/>
374                           </select>
375                         </xsl:if>
376                   <xsl:text> </xsl:text>
377                   <img src="{$resourcesRoot}/images/clockIcon.gif" width="16" height="15" border="0" alt="bwClock" id="bwStartClock"/>
378
379                   <select name="eventStartDate.tzid" id="startTzid" class="timezones">
380                     <xsl:if test="form/floating/input/@checked='checked'"><xsl:attribute name="disabled">disabled</xsl:attribute></xsl:if>
381                     <option value="-1"><xsl:copy-of select="$bwStr-AEEF-SelectTimezone"/></option>
382                     <!-- options filled from timezone server.  See bedeworkEventForm.js -->
383                   </select>
384                 </span>
385               </div>
386             </div>
387             <div class="dateStartEndBox">
388               <strong>
389                 <xsl:choose>
390                   <xsl:when test="form/entityType = '2'"><xsl:copy-of select="$bwStr-AEEF-Due"/><xsl:text> </xsl:text></xsl:when>
391                   <xsl:otherwise><xsl:copy-of select="$bwStr-AEEF-End"/><xsl:text> </xsl:text></xsl:otherwise>
392                 </xsl:choose>
393               </strong>
394               <xsl:choose>
395                 <xsl:when test="form/end/type='E'">
396                   <input type="radio" name="eventEndType" id="eventEndTypeDateTime" value="E" checked="checked" onclick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/>
397                 </xsl:when>
398                 <xsl:otherwise>
399                   <input type="radio" name="eventEndType" id="eventEndTypeDateTime" value="E" onclick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/>
400                 </xsl:otherwise>
401               </xsl:choose>
402               <xsl:copy-of select="$bwStr-AEEF-Date"/>
403               <xsl:text> </xsl:text>
404               <xsl:variable name="endDateTimeClass">
405                 <xsl:choose>
406                   <xsl:when test="form/end/type='E'">shown</xsl:when>
407                   <xsl:otherwise>invisible</xsl:otherwise>
408                 </xsl:choose>
409               </xsl:variable>
410               <div class="{$endDateTimeClass}" id="endDateTime">
411                 <div class="dateFields">
412                   <xsl:choose>
413                     <xsl:when test="$portalFriendly = 'true'">
414                       <xsl:copy-of select="/bedework/formElements/form/end/dateTime/month/*"/>
415                       <xsl:copy-of select="/bedework/formElements/form/end/dateTime/day/*"/>
416                       <xsl:choose>
417                         <xsl:when test="/bedework/creating = 'true'">
418                           <xsl:copy-of select="/bedework/formElements/form/end/dateTime/year/*"/>
419                         </xsl:when>
420                         <xsl:otherwise>
421                           <xsl:copy-of select="/bedework/formElements/form/end/dateTime/yearText/*"/>
422                         </xsl:otherwise>
423                       </xsl:choose>
424                       <script type="text/javascript">
425                       <xsl:comment>
426                         endDateDynCalWidget = new dynCalendar('endDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'endDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/images/');
427                       </xsl:comment>
428                       </script>
429                     </xsl:when>
430                     <xsl:otherwise>
431                       <input type="text" name="bwEventWidgetEndDate" id="bwEventWidgetEndDate" size="10"/>
432                       <input type="hidden" name="eventEndDate.year">
433                         <xsl:attribute name="value"><xsl:value-of select="form/end/dateTime/yearText/input/@value"/></xsl:attribute>
434                       </input>
435                       <input type="hidden" name="eventEndDate.month">
436                         <xsl:attribute name="value"><xsl:value-of select="form/end/dateTime/month/select/option[@selected = 'selected']/@value"/></xsl:attribute>
437                       </input>
438                       <input type="hidden" name="eventEndDate.day">
439                         <xsl:attribute name="value"><xsl:value-of select="form/end/dateTime/day/select/option[@selected = 'selected']/@value"/></xsl:attribute>
440                       </input>
441                     </xsl:otherwise>
442                   </xsl:choose>
443                 </div>
444                 <div class="{$timeFieldsClass}" id="endTimeFields">
445                   <span id="calWidgetEndTimeHider" class="show">
446                     <select name="eventEndDate.hour" id="eventEndDateHour">
447                             <xsl:copy-of select="form/end/dateTime/hour/select/*"/>
448                           </select>
449                           <select name="eventEndDate.minute" id="eventEndDateMinute">
450                             <xsl:copy-of select="form/end/dateTime/minute/select/*"/>
451                           </select>
452                           <xsl:if test="form/start/ampm">
453                             <select name="eventEndDate.ampm" id="eventEndDateAmpm">
454                               <xsl:copy-of select="form/end/dateTime/ampm/select/*"/>
455                             </select>
456                           </xsl:if>
457                     <xsl:text> </xsl:text>
458                     <img src="{$resourcesRoot}/images/clockIcon.gif" width="16" height="15" border="0" alt="bwClock" id="bwEndClock"/>
459
460                     <select name="eventEndDate.tzid" id="endTzid" class="timezones">
461                       <xsl:if test="form/floating/input/@checked='checked'"><xsl:attribute name="disabled">disabled</xsl:attribute></xsl:if>
462                       <option value="-1"><xsl:copy-of select="$bwStr-AEEF-SelectTimezone"/></option>
463                       <!--  Timezone options come from the timezone server.  See bedeworkEventForm.js -->
464                     </select>
465                   </span>
466                 </div>
467               </div>
468               <div id="clock" class="invisible">
469                 <xsl:call-template name="clock"/>
470               </div>
471               <br/>
472               <div class="dateFields">
473                 <xsl:choose>
474                   <xsl:when test="form/end/type='D'">
475                     <input type="radio" name="eventEndType" id="eventEndTypeDuration" value="D" checked="checked" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/>
476                   </xsl:when>
477                   <xsl:otherwise>
478                     <input type="radio" name="eventEndType" id="eventEndTypeDuration" value="D" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/>
479                   </xsl:otherwise>
480                 </xsl:choose>
481                 <xsl:copy-of select="$bwStr-AEEF-Duration"/>
482                 <xsl:variable name="endDurationClass">
483                   <xsl:choose>
484                     <xsl:when test="form/end/type='D'">shown</xsl:when>
485                     <xsl:otherwise>invisible</xsl:otherwise>
486                   </xsl:choose>
487                 </xsl:variable>
488                 <xsl:variable name="durationHrMinClass">
489                   <xsl:choose>
490                     <xsl:when test="form/allDay/input/@checked='checked'">invisible</xsl:when>
491                     <xsl:otherwise>shown</xsl:otherwise>
492                   </xsl:choose>
493                 </xsl:variable>
494                 <div class="{$endDurationClass}" id="endDuration">
495                   <xsl:choose>
496                     <xsl:when test="form/end/duration/weeks/input/@value = '0'">
497                     <!-- we are using day, hour, minute format -->
498                     <!-- must send either no week value or week value of 0 (zero) -->
499                       <div class="durationBox">
500                         <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')" checked="checked"/>
501                         <input type="text" name="eventDuration.daysStr" size="2" id="durationDays">
502                           <xsl:attribute name="value">
503                             <xsl:choose>
504                               <xsl:when test="/bedework/creating='true' and form/allDay/input/@checked='checked'">1</xsl:when>
505                               <xsl:when test="/bedework/creating='true' and form/allDay/input/@checked!='checked'">0</xsl:when>
506                               <xsl:otherwise><xsl:value-of select="form/end/duration/days/input/@value"/></xsl:otherwise>
507                             </xsl:choose>
508                           </xsl:attribute>
509                         </input>
510                         <xsl:copy-of select="$bwStr-AEEF-Days"/>
511                         <xsl:text> </xsl:text>
512                         <span id="durationHrMin" class="{$durationHrMinClass}">
513                           <input type="text" name="eventDuration.hoursStr" size="2" id="durationHours">
514                             <xsl:attribute name="value">
515                               <xsl:choose>
516                                 <xsl:when test="/bedework/creating='true'">1</xsl:when>
517                                 <xsl:otherwise><xsl:value-of select="form/end/duration/hours/input/@value"/></xsl:otherwise>
518                               </xsl:choose>
519                             </xsl:attribute>
520                           </input>
521                           <xsl:copy-of select="$bwStr-AEEF-Hours"/>
522                           <xsl:text> </xsl:text>
523                           <input type="text" name="eventDuration.minutesStr" size="2" id="durationMinutes">
524                             <xsl:attribute name="value">
525                               <xsl:choose>
526                                 <xsl:when test="/bedework/creating='true'">0</xsl:when>
527                                 <xsl:otherwise><xsl:value-of select="form/end/duration/minutes/input/@value"/></xsl:otherwise>
528                               </xsl:choose>
529                             </xsl:attribute>
530                           </input>
531                           <xsl:copy-of select="$bwStr-AEEF-Minutes"/>
532                         </span>
533                       </div>
534                       <span class="durationSpacerText"><xsl:copy-of select="$bwStr-AEEF-Or"/></span>
535                       <div class="durationBox">
536                         <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')"/>
537                         <xsl:variable name="weeksStr" select="form/end/duration/weeks/input/@value"/>
538                         <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks" disabled="disabled"/><xsl:copy-of select="$bwStr-AEEF-Weeks"/>
539                       </div>
540                     </xsl:when>
541                     <xsl:otherwise>
542                       <!-- we are using week format -->
543                       <div class="durationBox">
544                         <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')"/>
545                         <xsl:variable name="daysStr" select="form/end/duration/days/input/@value"/>
546                         <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays" disabled="disabled"/><xsl:copy-of select="$bwStr-AEEF-Days"/>
547                         <span id="durationHrMin" class="{$durationHrMinClass}">
548                           <xsl:variable name="hoursStr" select="form/end/duration/hours/input/@value"/>
549                           <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours" disabled="disabled"/><xsl:copy-of select="$bwStr-AEEF-Hours"/>
550                           <xsl:variable name="minutesStr" select="form/end/duration/minutes/input/@value"/>
551                           <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes" disabled="disabled"/><xsl:copy-of select="$bwStr-AEEF-Minutes"/>
552                         </span>
553                       </div>
554                       <span class="durationSpacerText"><xsl:copy-of select="$bwStr-AEEF-Or"/></span>
555                       <div class="durationBox">
556                         <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')" checked="checked"/>
557                         <xsl:variable name="weeksStr" select="form/end/duration/weeks/input/@value"/>
558                         <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks"/><xsl:copy-of select="$bwStr-AEEF-Weeks"/>
559                       </div>
560                     </xsl:otherwise>
561                   </xsl:choose>
562                 </div>
563               </div><br/>
564               <div class="dateFields" id="noDuration">
565                 <xsl:choose>
566                   <xsl:when test="form/end/type='N'">
567                     <input type="radio" name="eventEndType" id="eventEndTypeNone" value="N" checked="checked" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/>
568                   </xsl:when>
569                   <xsl:otherwise>
570                     <input type="radio" name="eventEndType" id="eventEndTypeNone" value="N" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/>
571                   </xsl:otherwise>
572                 </xsl:choose>
573                 <xsl:copy-of select="$bwStr-AEEF-This"/><xsl:text> </xsl:text>
574                 <xsl:choose>
575                   <xsl:when test="form/entityType = '2'"><xsl:copy-of select="$bwStr-AEEF-Task"/><xsl:text> </xsl:text></xsl:when>
576                   <xsl:otherwise><xsl:copy-of select="$bwStr-AEEF-Event"/><xsl:text> </xsl:text></xsl:otherwise>
577                 </xsl:choose>
578                 <xsl:copy-of select="$bwStr-AEEF-HasNoDurationEndDate"/>
579               </div>
580             </div>
581           </td>
582         </tr>
583
584         <!--  Location  -->
585         <tr>
586           <td class="fieldname"><xsl:copy-of select="$bwStr-AEEF-Location"/></td>
587           <td class="fieldval">
588             <span class="std-text"><xsl:copy-of select="$bwStr-AEEF-Choose"/><xsl:text> </xsl:text></span>
589             <span id="eventFormLocationList">
590               <!--
591               <xsl:choose>
592                 <xsl:when test="/bedework/creating = 'true'">
593                   <select name="locationUid">
594                     <option value="-1">select...</option>
595                     <xsl:copy-of select="form/location/locationmenu/select/*"/>
596                   </select>
597                 </xsl:when>
598                 <xsl:otherwise>
599                   <select name="eventLocationUid">
600                     <option value="-1">select...</option>
601                     <xsl:copy-of select="form/location/locationmenu/select/*"/>
602                   </select>
603                 </xsl:otherwise>
604               </xsl:choose>
605               -->
606               <select name="locationUid">
607                 <option value=""><xsl:copy-of select="$bwStr-AEEF-Select"/></option>
608                 <xsl:copy-of select="form/location/locationmenu/select/*"/>
609               </select>
610             </span>
611             <span class="std-text"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-OrAddNew"/><xsl:text> </xsl:text></span>
612             <input type="text" name="locationAddress.value" value="" />
613           </td>
614         </tr>
615        
616         <!--  Percent Complete (only for Tasks)  -->
617         <xsl:if test="form/entityType = '2'">
618           <tr>
619             <td class="fieldname">
620               <xsl:copy-of select="$bwStr-AEEF-Complete"/><xsl:text> </xsl:text>
621             </td>
622             <td class="fieldval" align="left">
623               <input type="text" name="percentComplete" size="3" maxlength="3">
624                 <xsl:attribute name="value"><xsl:value-of select="form/percentComplete"/></xsl:attribute>
625               </input>%
626             </td>
627           </tr>
628         </xsl:if>
629
630         <!--  Category  -->
631         <tr>
632           <td class="fieldname">
633             <xsl:copy-of select="$bwStr-AEEF-Categories"/><xsl:text> </xsl:text>
634           </td>
635           <td class="fieldval">
636             <xsl:variable name="catCount" select="count(form/categories/all/category)"/>
637             <xsl:choose>
638               <xsl:when test="not(form/categories/all/category)">
639                 <xsl:copy-of select="$bwStr-AEEF-NoCategoriesDefined"/>
640                 <span class="note">(<a href="{$category-initAdd}"><xsl:copy-of select="$bwStr-AEEF-AddCategory"/></a>)</span>
641               </xsl:when>
642               <xsl:otherwise>
643                 <table cellpadding="0" id="allCategoryCheckboxes">
644                   <tr>
645                     <td>
646                       <xsl:for-each select="form/categories/all/category[position() &lt;= ceiling($catCount div 2)]">
647                         <input type="checkbox" name="catUid">
648                           <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute>
649                           <xsl:if test="uid = ../../current//category/uid"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
650                         </input>
651                         <xsl:value-of select="value"/>
652                         <br/>
653                       </xsl:for-each>
654                     </td>
655                     <td>
656                       <xsl:for-each select="form/categories/all/category[position() &gt; ceiling($catCount div 2)]">
657                         <input type="checkbox" name="catUid">
658                           <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute>
659                           <xsl:if test="uid = ../../current//category/uid"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
660                         </input>
661                         <xsl:value-of select="value"/>
662                         <br/>
663                       </xsl:for-each>
664                     </td>
665                   </tr>
666                 </table>
667               </xsl:otherwise>
668             </xsl:choose>
669           </td>
670         </tr>
671       </table>
672     </div>
673
674
675     <!-- Details tab -->
676     <!-- ============== -->
677     <div id="bwEventTab-Details" class="invisible">
678       <table cellspacing="0" class="common dottedBorder">
679
680         <!--  Link (url associated with event)  -->
681         <tr>
682           <td class="fieldname"><xsl:copy-of select="$bwStr-AEEF-EventLink"/><xsl:text> </xsl:text></td>
683           <td class="fieldval">
684             <xsl:variable name="link" select="form/link/input/@value"/>
685             <input type="text" name="eventLink" size="80" value="{$link}"/>
686           </td>
687         </tr>
688
689         <!--  Description  -->
690         <tr>
691           <td class="fieldname"><xsl:copy-of select="$bwStr-AEEF-Description"/><xsl:text> </xsl:text></td>
692           <td class="fieldval">
693             <xsl:choose>
694               <xsl:when test="normalize-space(form/desc/textarea) = ''">
695                 <textarea name="description" cols="60" rows="4">
696                   <xsl:text> </xsl:text>
697                 </textarea>
698                 <!-- keep this space to avoid browser
699                 rendering errors when the text area is empty -->
700               </xsl:when>
701               <xsl:otherwise>
702                 <textarea name="description" cols="60" rows="4">
703                   <xsl:value-of select="form/desc/textarea"/>
704                 </textarea>
705               </xsl:otherwise>
706             </xsl:choose>
707           </td>
708         </tr>
709
710         <!--<tr>
711           <td class="fieldname">
712             Type:
713           </td>
714           <td class="fieldval">
715             <input type="radio" name="schedule" size="80" value="none" checked="checked">
716               <xsl:if test="form/scheduleMethod = '0'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
717               my event
718             </input>
719             <input type="radio" name="schedule" size="80" value="request">
720               <xsl:if test="form/scheduleMethod = '2'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
721               meeting request
722             </input>
723             <input type="radio" name="schedule" size="80" value="publish">
724               <xsl:if test="form/scheduleMethod = '1'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
725               published event
726             </input>
727             <xsl:if test="/bedework/creating = 'false' and form/scheduleMethod = '2'">
728               <br/><input type="checkbox" name="schedule" value="reconfirm "/> ask attendees to reconfirm
729             </xsl:if>
730           </td>
731         </tr>-->
732         <!--  Recipients and Attendees  -->
733         <!--
734         <tr>
735           <td class="fieldname">
736             Recipients &amp;<br/> Attendees:
737           </td>
738           <td class="fieldval posrelative">
739             <input type="button" value="Manage recipients and attendees" onclick="launchSizedWindow('{$event-showAttendeesForEvent}','500','400')" class="small"/>
740           </td>
741         </tr>-->
742
743         <!--  Status  -->
744         <tr>
745           <td class="fieldname">
746             <xsl:copy-of select="$bwStr-AEEF-Status"/><xsl:text> </xsl:text>
747           </td>
748           <td class="fieldval">
749             <input type="radio" name="eventStatus" value="CONFIRMED">
750               <xsl:if test="form/status = 'CONFIRMED' or /bedework/creating = 'true' or form/status = ''"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
751             </input>
752             <xsl:copy-of select="$bwStr-AEEF-Confirmed"/>
753             <input type="radio" name="eventStatus" value="TENTATIVE">
754               <xsl:if test="form/status = 'TENTATIVE'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
755             </input>
756             <xsl:copy-of select="$bwStr-AEEF-Tentative"/>
757             <input type="radio" name="eventStatus" value="CANCELLED">
758               <xsl:if test="form/status = 'CANCELLED'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
759             </input>
760             <xsl:copy-of select="$bwStr-AEEF-Canceled"/>
761           </td>
762         </tr>
763
764         <!--  Transparency ("Affects free/busy")  -->
765         <xsl:if test="form/entityType != '2'"><!-- no transparency for Tasks -->
766           <tr>
767             <td class="fieldname padMeTop">
768               <xsl:copy-of select="$bwStr-AEEF-AffectsFreeBusy"/><xsl:text> </xsl:text>
769             </td>
770             <td class="fieldval padMeTop">
771               <input type="radio" value="OPAQUE" name="transparency">
772                 <xsl:if test="form/transparency = 'OPAQUE'">
773                   <xsl:attribute name="checked">checked</xsl:attribute>
774                 </xsl:if>
775               </input>
776               <xsl:copy-of select="$bwStr-AEEF-Yes"/><xsl:text> </xsl:text><span class="note"><xsl:copy-of select="$bwStr-AEEF-Opaque"/></span><br/>
777  
778               <input type="radio" value="TRANSPARENT" name="transparency">
779                 <xsl:if test="form/transparency = 'TRANSPARENT'">
780                   <xsl:attribute name="checked">checked</xsl:attribute>
781                 </xsl:if>
782               </input>
783               <xsl:copy-of select="$bwStr-AEEF-No"/><xsl:text> </xsl:text><span class="note"><xsl:copy-of select="$bwStr-AEEF-Transparent"/></span><br/>
784             </td>
785           </tr>
786         </xsl:if>
787       </table>
788     </div>
789
790
791     <!-- Recurrence tab -->
792     <!-- ============== -->
793     <div id="bwEventTab-Recurrence" class="invisible">
794       <xsl:choose>
795         <xsl:when test="recurrenceId != ''">
796           <!-- recurrence instances can not themselves recur,
797                so provide access to master event -->
798           <em><xsl:copy-of select="$bwStr-AEEF-ThisEventRecurrenceInstance"/></em><br/>
799           <a href="{$editEvent}&amp;calPath={$calPath}&amp;guid={$guid}" title="{$bwStr-AEEF-EditMaster}"><xsl:copy-of select="$bwStr-AEEF-EditMasterEvent"/></a>
800         </xsl:when>
801         <xsl:otherwise>
802           <!-- has recurrenceId, so is master -->
803          
804           <xsl:choose>
805             <xsl:when test="form/recurringEntity = 'false'">
806                           <!-- the switch is required to turn recurrence on - maybe we can infer this instead? -->
807                           <div id="recurringSwitch">
808                             <!-- set or remove "recurring" and show or hide all recurrence fields: -->
809                             <input type="radio" name="recurring" value="true" onclick="swapRecurrence(this)">
810                               <xsl:if test="form/recurringEntity = 'true'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
811                             </input> <xsl:copy-of select="$bwStr-AEEF-EventRecurs"/>
812                             <input type="radio" name="recurring" value="false" onclick="swapRecurrence(this)">
813                               <xsl:if test="form/recurringEntity = 'false'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
814                             </input> <xsl:copy-of select="$bwStr-AEEF-EventDoesNotRecur"/>
815                           </div>
816                         </xsl:when>
817                         <xsl:otherwise>
818                           <!-- is a recurring event; once created as such, it can no longer be made non-recurring. -->
819                           <input type="hidden" name="recurring" value="true"/>
820                         </xsl:otherwise>
821           </xsl:choose>
822          
823           <!-- wrapper for all recurrence fields (rrules and rdates): -->
824           <div id="recurrenceFields" class="invisible">
825             <xsl:if test="form/recurringEntity = 'true'"><xsl:attribute name="class">visible</xsl:attribute></xsl:if>
826
827             <h4><xsl:copy-of select="$bwStr-AEEF-RecurrenceRules"/></h4>
828             <!-- show or hide rrules fields when editing: -->
829             <!-- DEPRECATED: No longer allow the changing of recurrence information once created.
830             <xsl:if test="form/recurrence">
831               <input type="checkbox" name="rrulesFlag" onclick="swapRrules(this)" value="on"/>
832               <span id="rrulesSwitch">
833                 <xsl:copy-of select="$bwStr-AEEF-ChangeRecurrenceRules"/>
834               </span>
835             </xsl:if> -->
836             <span id="rrulesUiSwitch">
837               <xsl:if test="form/recurrence">
838                 <xsl:attribute name="class">invisible</xsl:attribute>
839               </xsl:if>
840               <input type="checkbox" name="rrulesUiSwitch" value="advanced" onchange="swapVisible(this,'advancedRrules')"/>
841               <xsl:copy-of select="$bwStr-AEEF-ShowAdvancedRecurrenceRules"/>
842             </span>
843
844             <xsl:if test="form/recurrence">
845               <!-- Output descriptive recurrence rules information.  Probably not
846                    complete yet. Replace all strings so can be
847                    more easily internationalized. -->
848               <div id="recurrenceInfo">
849                 <xsl:copy-of select="$bwStr-AEEF-EVERY"/><xsl:text> </xsl:text>
850                 <xsl:choose>
851                   <xsl:when test="form/recurrence/interval &gt; 1">
852                     <xsl:value-of select="form/recurrence/interval"/>
853                   </xsl:when>
854                 </xsl:choose>
855                 <xsl:text> </xsl:text>
856                 <xsl:choose>
857                   <xsl:when test="form/recurrence/freq = 'HOURLY'"><xsl:copy-of select="$bwStr-AEEF-Hour"/><xsl:text> </xsl:text></xsl:when>
858                   <xsl:when test="form/recurrence/freq = 'DAILY'"><xsl:copy-of select="$bwStr-AEEF-Day"/><xsl:text> </xsl:text></xsl:when>
859                   <xsl:when test="form/recurrence/freq = 'WEEKLY'"><xsl:copy-of select="$bwStr-AEEF-Week"/><xsl:text> </xsl:text></xsl:when>
860                   <xsl:when test="form/recurrence/freq = 'MONTHLY'"><xsl:copy-of select="$bwStr-AEEF-Month"/><xsl:text> </xsl:text></xsl:when>
861                   <xsl:when test="form/recurrence/freq = 'YEARLY'"><xsl:copy-of select="$bwStr-AEEF-Year"/><xsl:text> </xsl:text></xsl:when>
862                 </xsl:choose>
863                 <xsl:text> </xsl:text>
864
865                 <xsl:if test="form/recurrence/byday">
866                   <xsl:for-each select="form/recurrence/byday/pos">
867                     <xsl:if test="position() != 1"> <xsl:copy-of select="$bwStr-AEEF-And"/> </xsl:if>
868                     <xsl:copy-of select="$bwStr-AEEF-On"/>
869                     <xsl:choose>
870                       <xsl:when test="@val='1'">
871                         <xsl:copy-of select="$bwStr-AEEF-TheFirst"/><xsl:text> </xsl:text>
872                       </xsl:when>
873                       <xsl:when test="@val='2'">
874                         <xsl:copy-of select="$bwStr-AEEF-TheSecond"/><xsl:text> </xsl:text>
875                       </xsl:when>
876                       <xsl:when test="@val='3'">
877                         <xsl:copy-of select="$bwStr-AEEF-TheThird"/><xsl:text> </xsl:text>
878                       </xsl:when>
879                       <xsl:when test="@val='4'">
880                         <xsl:copy-of select="$bwStr-AEEF-TheFourth"/><xsl:text> </xsl:text>
881                       </xsl:when>
882                       <xsl:when test="@val='5'">
883                         <xsl:copy-of select="$bwStr-AEEF-TheFifth"/><xsl:text> </xsl:text>
884                       </xsl:when>
885                       <xsl:when test="@val='-1'">
886                         <xsl:copy-of select="$bwStr-AEEF-TheLast"/><xsl:text> </xsl:text>
887                       </xsl:when>
888                       <!-- don't output "every" -->
889                       <!--<xsl:otherwise>
890                         every
891                       </xsl:otherwise>-->
892                     </xsl:choose>
893                     <xsl:for-each select="day">
894                       <xsl:text> </xsl:text>
895                       <xsl:if test="position() != 1 and position() = last()"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-And"/><xsl:text> </xsl:text></xsl:if>
896                       <xsl:variable name="dayVal" select="."/>
897                       <xsl:variable name="dayPos">
898                         <xsl:for-each select="/bedework/recurdayvals/val">
899                           <xsl:if test="node() = $dayVal"><xsl:value-of select="position()"/></xsl:if>
900                         </xsl:for-each>
901                       </xsl:variable>
902                       <xsl:value-of select="/bedework/shortdaynames/val[position() = $dayPos]"/>
903                       <xsl:if test="position() != last()">, </xsl:if>
904                       <xsl:text> </xsl:text>
905                     </xsl:for-each>
906                   </xsl:for-each>
907                 </xsl:if>
908
909                 <xsl:if test="form/recurrence/bymonth">
910                   <xsl:copy-of select="$bwStr-AEEF-In"/>
911                   <xsl:for-each select="form/recurrence/bymonth/val">
912                     <xsl:if test="position() != 1 and position() = last()"> <xsl:copy-of select="$bwStr-AEEF-And"/><xsl:text> </xsl:text></xsl:if>
913                     <xsl:variable name="monthNum" select="number(.)"/>
914                     <xsl:value-of select="/bedework/monthlabels/val[position() = $monthNum]"/>
915                     <xsl:if test="position() != last()">, </xsl:if>
916                   </xsl:for-each>
917                 </xsl:if>
918
919                 <xsl:if test="form/recurrence/bymonthday">
920                   <xsl:text> </xsl:text>
921                   <xsl:copy-of select="$bwStr-AEEF-OnThe"/>
922                   <xsl:text> </xsl:text>
923                   <xsl:apply-templates select="form/recurrence/bymonthday/val" mode="weekMonthYearNumbers"/>
924                   <xsl:copy-of select="$bwStr-AEEF-DayOfTheMonth"/>
925                   <xsl:text> </xsl:text>
926                 </xsl:if>
927
928                 <xsl:if test="form/recurrence/byyearday">
929                   <xsl:text> </xsl:text>
930                   <xsl:copy-of select="$bwStr-AEEF-OnThe"/>
931                   <xsl:text> </xsl:text>
932                   <xsl:apply-templates select="form/recurrence/byyearday/val" mode="weekMonthYearNumbers"/>
933                   <xsl:copy-of select="$bwStr-AEEF-DayOfTheYear"/>
934                   <xsl:text> </xsl:text>
935                 </xsl:if>
936
937                 <xsl:if test="form/recurrence/byweekno">
938                   <xsl:text> </xsl:text>
939                   <xsl:copy-of select="$bwStr-AEEF-InThe"/>
940                   <xsl:text> </xsl:text>
941                   <xsl:apply-templates select="form/recurrence/byweekno/val" mode="weekMonthYearNumbers"/>
942                   <xsl:copy-of select="$bwStr-AEEF-WeekOfTheYear"/>
943                   <xsl:text> </xsl:text>
944                 </xsl:if>
945
946                 <xsl:copy-of select="$bwStr-AEEF-Repeating"/>
947                 <xsl:choose>
948                   <xsl:when test="form/recurrence/count = '-1'"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-Forever"/></xsl:when>
949                   <xsl:when test="form/recurrence/until">
950                     <xsl:text> </xsl:text>
951                     <xsl:copy-of select="$bwStr-AEEF-Until"/>
952                     <xsl:text> </xsl:text>
953                     <xsl:value-of select="substring(form/recurrence/until,1,4)"/>-<xsl:value-of select="substring(form/recurrence/until,5,2)"/>-<xsl:value-of select="substring(form/recurrence/until,7,2)"/>
954                   </xsl:when>
955                   <xsl:otherwise>
956                     <xsl:text> </xsl:text>
957                     <xsl:value-of select="form/recurrence/count"/>
958                     <xsl:text> </xsl:text>
959                     <xsl:copy-of select="$bwStr-AEEF-Time"/>
960                   </xsl:otherwise>
961                 </xsl:choose>
962               </div>
963             </xsl:if>
964
965             <!-- set these dynamically when form is submitted -->
966             <input type="hidden" name="interval" value=""/>
967             <input type="hidden" name="count" value=""/>
968             <input type="hidden" name="until" value=""/>
969             <input type="hidden" name="byday" value=""/>
970             <input type="hidden" name="bymonthday" value=""/>
971             <input type="hidden" name="bymonth" value=""/>
972             <input type="hidden" name="byweekno" value=""/>
973             <input type="hidden" name="byyearday" value=""/>
974             <input type="hidden" name="wkst" value=""/>
975             <input type="hidden" name="setpos" value=""/>
976
977             <!-- wrapper for rrules: -->
978             <table id="rrulesTable" cellspacing="0">
979               <xsl:if test="form/recurrence">
980                 <xsl:attribute name="class">invisible</xsl:attribute>
981               </xsl:if>
982               <tr>
983                 <td id="recurrenceFrequency" rowspan="2">
984                   <em><xsl:copy-of select="$bwStr-AEEF-Frequency"/></em><br/>
985                   <input type="radio" name="freq" value="NONE" onclick="showRrules(this.value)" checked="checked"/><xsl:copy-of select="$bwStr-AEEF-None"/><br/>
986                   <!--<input type="radio" name="freq" value="HOURLY" onclick="showRrules(this.value)"/>hourly<br/>-->
987                   <input type="radio" name="freq" value="DAILY" onclick="showRrules(this.value)"/><xsl:copy-of select="$bwStr-AEEF-Daily"/><br/>
988                   <input type="radio" name="freq" value="WEEKLY" onclick="showRrules(this.value)"/><xsl:copy-of select="$bwStr-AEEF-Weekly"/><br/>
989                   <input type="radio" name="freq" value="MONTHLY" onclick="showRrules(this.value)"/><xsl:copy-of select="$bwStr-AEEF-Monthly"/><br/>
990                   <input type="radio" name="freq" value="YEARLY" onclick="showRrules(this.value)"/><xsl:copy-of select="$bwStr-AEEF-Yearly"/>
991                 </td>
992                 <!-- recurrence count, until, forever -->
993                 <td id="recurrenceUntil">
994                   <div id="noneRecurrenceRules">
995                     <xsl:copy-of select="$bwStr-AEEF-NoRecurrenceRules"/>
996                   </div>
997                   <div id="recurrenceUntilRules" class="invisible">
998                     <em><xsl:copy-of select="$bwStr-AEEF-Repeat"/></em>
999                     <p>
1000                       <input type="radio" name="recurCountUntil" value="forever">
1001                         <xsl:if test="not(form/recurring) or form/recurring/count = '-1'">
1002                           <xsl:attribute name="checked">checked</xsl:attribute>
1003                         </xsl:if>
1004                       </input>
1005                       <xsl:copy-of select="$bwStr-AEEF-Forever"/>
1006                       <input type="radio" name="recurCountUntil" value="count" id="recurCount">
1007                         <xsl:if test="form/recurring/count != '-1'">
1008                           <xsl:attribute name="checked">checked</xsl:attribute>
1009                         </xsl:if>
1010                       </input>
1011                       <input type="text" value="1" size="2" name="countHolder"  onfocus="selectRecurCountUntil('recurCount')">
1012                         <xsl:if test="form/recurring/count and form/recurring/count != '-1'">
1013                           <xsl:attribute name="value"><xsl:value-of select="form/recurring/count"/></xsl:attribute>
1014                         </xsl:if>
1015                       </input>
1016                       <xsl:copy-of select="$bwStr-AEEF-Time"/>
1017                       <input type="radio" name="recurCountUntil" value="until" id="recurUntil">
1018                         <xsl:if test="form/recurring/until">
1019                           <xsl:attribute name="checked">checked</xsl:attribute>
1020                         </xsl:if>
1021                       </input>
1022                       <xsl:copy-of select="$bwStr-AEEF-Until"/>
1023                       <span id="untilHolder">
1024                         <input type="hidden" name="bwEventUntilDate" id="bwEventUntilDate" size="10"/>
1025                         <input type="text" name="bwEventWidgetUntilDate" id="bwEventWidgetUntilDate" size="10" onfocus="selectRecurCountUntil('recurUntil')"/>
1026                       </span>
1027                     </p>
1028                   </div>
1029                 </td>
1030               </tr>
1031               <tr>
1032                 <td id="advancedRrules" class="invisible">
1033                   <!-- hourly -->
1034                   <div id="hourlyRecurrenceRules" class="invisible">
1035                     <p>
1036                       <em><xsl:copy-of select="$bwStr-AEEF-Interval"/></em>
1037                       <xsl:copy-of select="$bwStr-AEEF-Every"/>
1038                       <input type="text" name="hourlyInterval" size="2" value="1">
1039                         <xsl:if test="form/recurrence/interval">
1040                           <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute>
1041                         </xsl:if>
1042                       </input>
1043                       <xsl:copy-of select="$bwStr-AEEF-Hour"/>
1044                     </p>
1045                   </div>
1046                   <!-- daily -->
1047                   <div id="dailyRecurrenceRules" class="invisible">
1048                     <p>
1049                       <em><xsl:copy-of select="$bwStr-AEEF-Interval"/></em>
1050                       <xsl:copy-of select="$bwStr-AEEF-Every"/>
1051                       <input type="text" name="dailyInterval" size="2" value="1">
1052                         <xsl:if test="form/recurrence/interval">
1053                           <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute>
1054                         </xsl:if>
1055                       </input>
1056                       <xsl:copy-of select="$bwStr-AEEF-Day"/>
1057                     </p>
1058                     <div>
1059                       <input type="checkbox" name="swapDayMonthCheckBoxList" value="" onclick="swapVisible(this,'dayMonthCheckBoxList')"/>
1060                       <xsl:copy-of select="$bwStr-AEEF-InTheseMonths"/>
1061                       <div id="dayMonthCheckBoxList" class="invisible">
1062                         <xsl:for-each select="/bedework/monthlabels/val">
1063                           <xsl:variable name="pos"><xsl:value-of select="position()"/></xsl:variable>
1064                           <span class="chkBoxListItem">
1065                             <input type="checkbox" name="dayMonths">
1066                               <xsl:attribute name="value"><xsl:value-of select="/bedework/monthvalues/val[position() = $pos]"/></xsl:attribute>
1067                             </input>
1068                             <xsl:value-of select="."/>
1069                           </span>
1070                           <xsl:if test="$pos mod 6 = 0"><br/></xsl:if>
1071                         </xsl:for-each>
1072                       </div>
1073                     </div>
1074                     <!--<p>
1075                       <input type="checkbox" name="swapDaySetPos" value="" onclick="swapVisible(this,'daySetPos')"/>
1076                       limit to:
1077                       <div id="daySetPos" class="invisible">
1078                       </div>
1079                     </p>-->
1080                   </div>
1081                   <!-- weekly -->
1082                   <div id="weeklyRecurrenceRules" class="invisible">
1083                     <p>
1084                       <em><xsl:copy-of select="$bwStr-AEEF-Interval"/><xsl:text> </xsl:text></em>
1085                       <xsl:copy-of select="$bwStr-AEEF-Every"/>
1086                       <input type="text" name="weeklyInterval" size="2" value="1">
1087                         <xsl:if test="form/recurrence/interval">
1088                           <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute>
1089                         </xsl:if>
1090                       </input>
1091                       <xsl:copy-of select="$bwStr-AEEF-WeekOn"/>
1092                     </p>
1093                     <div id="weekRecurFields">
1094                       <xsl:call-template name="byDayChkBoxList">
1095                         <xsl:with-param name="name">byDayWeek</xsl:with-param>
1096                       </xsl:call-template>
1097                     </div>
1098                     <p class="weekRecurLinks">
1099                       <a href="javascript:recurSelectWeekdays('weekRecurFields')"><xsl:copy-of select="$bwStr-AEEF-SelectWeekdays"/></a> |
1100                       <a href="javascript:recurSelectWeekends('weekRecurFields')"><xsl:copy-of select="$bwStr-AEEF-SelectWeekends"/></a>
1101                     </p>
1102                     <p>
1103                       <xsl:copy-of select="$bwStr-AEEF-WeekStart"/>
1104                       <select name="weekWkst">
1105                         <xsl:for-each select="/bedework/shortdaynames/val">
1106                           <xsl:variable name="pos" select="position()"/>
1107                           <option>
1108                             <xsl:attribute name="value"><xsl:value-of select="/bedework/recurdayvals/val[position() = $pos]"/></xsl:attribute>
1109                             <xsl:value-of select="."/>
1110                           </option>
1111                         </xsl:for-each>
1112                       </select>
1113                     </p>
1114                   </div>
1115                   <!-- monthly -->
1116                   <div id="monthlyRecurrenceRules" class="invisible">
1117                     <p>
1118                       <em><xsl:copy-of select="$bwStr-AEEF-Interval"/></em>
1119                       <xsl:copy-of select="$bwStr-AEEF-Every"/>
1120                       <input type="text" name="monthlyInterval" size="2" value="1">
1121                         <xsl:if test="form/recurrence/interval">
1122                           <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute>
1123                         </xsl:if>
1124                       </input>
1125                       <xsl:copy-of select="$bwStr-AEEF-Month"/>
1126                     </p>
1127                     <div id="monthRecurFields">
1128                       <div id="monthRecurFields1">
1129                         <xsl:copy-of select="$bwStr-AEEF-On"/>
1130                         <select name="bymonthposPos1" size="7" onchange="changeClass('monthRecurFields2','shown')">
1131                           <xsl:call-template name="recurrenceDayPosOptions"/>
1132                         </select>
1133                         <xsl:call-template name="byDayChkBoxList"/>
1134                       </div>
1135                       <xsl:call-template name="buildRecurFields">
1136                         <xsl:with-param name="current">2</xsl:with-param>
1137                         <xsl:with-param name="total">10</xsl:with-param>
1138                         <xsl:with-param name="name">month</xsl:with-param>
1139                       </xsl:call-template>
1140                     </div>
1141                     <div>
1142                       <input type="checkbox" name="swapMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'monthDaysCheckBoxList')"/>
1143                       <xsl:copy-of select="$bwStr-AEEF-OnTheseDays"/><br/>
1144                       <div id="monthDaysCheckBoxList" class="invisible">
1145                         <xsl:call-template name="buildCheckboxList">
1146                           <xsl:with-param name="current">1</xsl:with-param>
1147                           <xsl:with-param name="end">31</xsl:with-param>
1148                           <xsl:with-param name="name">monthDayBoxes</xsl:with-param>
1149                         </xsl:call-template>
1150                       </div>
1151                     </div>
1152                   </div>
1153                   <!-- yearly -->
1154                   <div id="yearlyRecurrenceRules" class="invisible">
1155                     <p>
1156                       <em><xsl:copy-of select="$bwStr-AEEF-Interval"/><xsl:text> </xsl:text></em>
1157                       <xsl:copy-of select="$bwStr-AEEF-Every"/>
1158                       <input type="text" name="yearlyInterval" size="2" value="1">
1159                         <xsl:if test="form/recurrence/interval">
1160                           <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute>
1161                         </xsl:if>
1162                       </input>
1163                       <xsl:copy-of select="$bwStr-AEEF-Year"/>
1164                     </p>
1165                     <div id="yearRecurFields">
1166                       <div id="yearRecurFields1">
1167                         <xsl:copy-of select="$bwStr-AEEF-On"/>
1168                         <select name="byyearposPos1" size="7" onchange="changeClass('yearRecurFields2','shown')">
1169                           <xsl:call-template name="recurrenceDayPosOptions"/>
1170                         </select>
1171                         <xsl:call-template name="byDayChkBoxList"/>
1172                       </div>
1173                       <xsl:call-template name="buildRecurFields">
1174                         <xsl:with-param name="current">2</xsl:with-param>
1175                         <xsl:with-param name="total">10</xsl:with-param>
1176                         <xsl:with-param name="name">year</xsl:with-param>
1177                       </xsl:call-template>
1178                     </div>
1179                     <div>
1180                       <input type="checkbox" name="swapYearMonthCheckBoxList" value="" onclick="swapVisible(this,'yearMonthCheckBoxList')"/>
1181                       <xsl:copy-of select="$bwStr-AEEF-InTheseMonths"/>
1182                       <div id="yearMonthCheckBoxList" class="invisible">
1183                         <xsl:for-each select="/bedework/monthlabels/val">
1184                           <xsl:variable name="pos"><xsl:value-of select="position()"/></xsl:variable>
1185                           <span class="chkBoxListItem">
1186                             <input type="checkbox" name="yearMonths">
1187                               <xsl:attribute name="value"><xsl:value-of select="/bedework/monthvalues/val[position() = $pos]"/></xsl:attribute>
1188                             </input>
1189                             <xsl:value-of select="."/>
1190                           </span>
1191                           <xsl:if test="$pos mod 6 = 0"><br/></xsl:if>
1192                         </xsl:for-each>
1193                       </div>
1194                     </div>
1195                     <div>
1196                       <input type="checkbox" name="swapYearMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'yearMonthDaysCheckBoxList')"/>
1197                       <xsl:copy-of select="$bwStr-AEEF-OnTheseDaysOfTheMonth"/><br/>
1198                       <div id="yearMonthDaysCheckBoxList" class="invisible">
1199                         <xsl:call-template name="buildCheckboxList">
1200                           <xsl:with-param name="current">1</xsl:with-param>
1201                           <xsl:with-param name="end">31</xsl:with-param>
1202                           <xsl:with-param name="name">yearMonthDayBoxes</xsl:with-param>
1203                         </xsl:call-template>
1204                       </div>
1205                     </div>
1206                     <div>
1207                       <input type="checkbox" name="swapYearWeeksCheckBoxList" value="" onclick="swapVisible(this,'yearWeeksCheckBoxList')"/>
1208                       <xsl:copy-of select="$bwStr-AEEF-InTheseWeeksOfTheYear"/><br/>
1209                       <div id="yearWeeksCheckBoxList" class="invisible">
1210                         <xsl:call-template name="buildCheckboxList">
1211                           <xsl:with-param name="current">1</xsl:with-param>
1212                           <xsl:with-param name="end">53</xsl:with-param>
1213                           <xsl:with-param name="name">yearWeekBoxes</xsl:with-param>
1214                         </xsl:call-template>
1215                       </div>
1216                     </div>
1217                     <div>
1218                       <input type="checkbox" name="swapYearDaysCheckBoxList" value="" onclick="swapVisible(this,'yearDaysCheckBoxList')"/>
1219                       <xsl:copy-of select="$bwStr-AEEF-OnTheseDaysOfTheYear"/><br/>
1220                       <div id="yearDaysCheckBoxList" class="invisible">
1221                         <xsl:call-template name="buildCheckboxList">
1222                           <xsl:with-param name="current">1</xsl:with-param>
1223                           <xsl:with-param name="end">366</xsl:with-param>
1224                           <xsl:with-param name="name">yearDayBoxes</xsl:with-param>
1225                         </xsl:call-template>
1226                       </div>
1227                     </div>
1228                     <p>
1229                       <xsl:copy-of select="$bwStr-AEEF-WeekStart"/>
1230                       <select name="yearWkst">
1231                         <xsl:for-each select="/bedework/shortdaynames/val">
1232                           <xsl:variable name="pos" select="position()"/>
1233                           <option>
1234                             <xsl:attribute name="value"><xsl:value-of select="/bedework/recurdayvals/val[position() = $pos]"/></xsl:attribute>
1235                             <xsl:value-of select="."/>
1236                           </option>
1237                         </xsl:for-each>
1238                       </select>
1239                     </p>
1240                   </div>
1241                 </td>
1242               </tr>
1243             </table>
1244
1245             <h4>
1246               <xsl:copy-of select="$bwStr-AEEF-RecurrenceAndExceptionDates"/>
1247             </h4>
1248             <div id="raContent">
1249               <div class="dateStartEndBox" id="rdatesFormFields">
1250                 <div class="dateFields">
1251                   <input type="text" name="eventRdate.date" id="bwEventWidgetRdate" size="10"/>
1252                 </div>
1253                 <div id="rdateTimeFields" class="timeFields">
1254                  <select name="eventRdate.hour" id="eventRdateHour">
1255                     <option value="00">00</option>
1256                     <option value="01">01</option>
1257                     <option value="02">02</option>
1258                     <option value="03">03</option>
1259                     <option value="04">04</option>
1260                     <option value="05">05</option>
1261                     <option value="06">06</option>
1262                     <option value="07">07</option>
1263                     <option value="08">08</option>
1264                     <option value="09">09</option>
1265                     <option value="10">10</option>
1266                     <option value="11">11</option>
1267                     <option value="12" selected="selected">12</option>
1268                     <option value="13">13</option>
1269                     <option value="14">14</option>
1270                     <option value="15">15</option>
1271                     <option value="16">16</option>
1272                     <option value="17">17</option>
1273                     <option value="18">18</option>
1274                     <option value="19">19</option>
1275                     <option value="20">20</option>
1276                     <option value="21">21</option>
1277                     <option value="22">22</option>
1278                     <option value="23">23</option>
1279                   </select>
1280                   <select name="eventRdate.minute" id="eventRdateMinute">
1281                     <option value="00" selected="selected">00</option>
1282                     <option value="05">05</option>
1283                     <option value="10">10</option>
1284                     <option value="15">15</option>
1285                     <option value="20">20</option>
1286                     <option value="25">25</option>
1287                     <option value="30">30</option>
1288                     <option value="35">35</option>
1289                     <option value="40">40</option>
1290                     <option value="45">45</option>
1291                     <option value="50">50</option>
1292                     <option value="55">55</option>
1293                   </select>
1294                   <xsl:text> </xsl:text>
1295                   <img src="{$resourcesRoot}/images/clockIcon.gif" width="16" height="15" border="0" alt="bwClock" id="bwRecExcClock"/>
1296
1297                   <select name="tzid" id="rdateTzid" class="timezones">
1298                     <xsl:if test="form/floating/input/@checked='checked'"><xsl:attribute name="disabled">disabled</xsl:attribute></xsl:if>
1299                     <option value=""><xsl:copy-of select="$bwStr-AEEF-SelectTimezone"/></option>
1300                     <!--  Timezone options are called from the timezone server.  See bedeworkEventForm.js -->
1301                   </select>
1302                 </div>
1303                 <xsl:text> </xsl:text>
1304                 <!--bwRdates.update() accepts: date, time, allDay, floating, utc, tzid-->
1305                 <input type="button" name="rdate" value="{$bwStr-AEEF-AddRecurance}" onclick="bwRdates.update(this.form['eventRdate.date'].value,this.form['eventRdate.hour'].value + this.form['eventRdate.minute'].value,false,false,false,this.form.tzid.value)"/>
1306                 <!-- input type="button" name="exdate" value="{$bwStr-AEEF-AddException}" onclick="bwExdates.update(this.form['eventRdate.date'].value,this.form['eventRdate.hour'].value + this.form['eventRdate.minute'].value,false,false,false,this.form.tzid.value)"/-->
1307                 <br class="clear"/>
1308                 <input type="hidden" name="rdates" value="" id="bwRdatesField" />
1309                 <!-- if there are no recurrence dates, the following table will show -->
1310                 <table cellspacing="0" class="invisible" id="bwCurrentRdatesNone">
1311                   <tr><th><xsl:copy-of select="$bwStr-AEEF-RecurrenceDates"/></th></tr>
1312                   <tr><td><xsl:copy-of select="$bwStr-AEEF-NoRecurrenceDates"/></td></tr>
1313                 </table>
1314
1315                 <!-- if there are recurrence dates, the following table will show -->
1316                 <table cellspacing="0" class="invisible" id="bwCurrentRdates">
1317                   <tr>
1318                     <th colspan="4"><xsl:copy-of select="$bwStr-AEEF-RecurrenceDates"/></th>
1319                   </tr>
1320                   <tr class="colNames">
1321                     <td><xsl:copy-of select="$bwStr-AEEF-Date"/></td>
1322                     <td><xsl:copy-of select="$bwStr-AEEF-TIME"/></td>
1323                     <td><xsl:copy-of select="$bwStr-AEEF-TZid"/></td>
1324                     <td></td>
1325                   </tr>
1326                 </table>
1327
1328                 <input type="hidden" name="exdates" value="" id="bwExdatesField" />
1329                 <!-- if there are no exception dates, the following table will show -->
1330                 <table cellspacing="0" class="invisible" id="bwCurrentExdatesNone">
1331                   <tr><th><xsl:copy-of select="$bwStr-AEEF-ExceptionDates"/></th></tr>
1332                   <tr><td><xsl:copy-of select="$bwStr-AEEF-NoExceptionDates"/></td></tr>
1333                 </table>
1334
1335                 <!-- if there are exception dates, the following table will show -->
1336                 <table cellspacing="0" class="invisible" id="bwCurrentExdates">
1337                   <tr>
1338                     <th colspan="4"><xsl:copy-of select="$bwStr-AEEF-ExceptionDates"/></th>
1339                   </tr>
1340                   <tr class="colNames">
1341                     <td><xsl:copy-of select="$bwStr-AEEF-Date"/></td>
1342                     <td><xsl:copy-of select="$bwStr-AEEF-Time"/></td>
1343                     <td><xsl:copy-of select="$bwStr-AEEF-TZid"/></td>
1344                     <td></td>
1345                   </tr>
1346                 </table>
1347                 <p>
1348                   <xsl:copy-of select="$bwStr-AEEF-ExceptionDatesMayBeCreated"/>
1349                 </p>
1350               </div>
1351             </div>
1352           </div>
1353         </xsl:otherwise>
1354       </xsl:choose>
1355     </div>
1356
1357     <!-- Access tab -->
1358     <!-- if you want to expose access control on events, uncomment
1359          the tab in the event form submenu at the top of this file -->
1360     <!-- ========== -->
1361     <div id="bwEventTab-Access" class="invisible">
1362       <div id="sharingBox">
1363         <h3>Current Access:</h3>
1364         <div id="bwCurrentAccessWidget">&#160;</div>
1365         <script type="text/javascript">
1366           bwAcl.display("bwCurrentAccessWidget");
1367         </script>
1368         <xsl:call-template name="entityAccessForm">
1369           <xsl:with-param name="outputId">bwCurrentAccessWidget</xsl:with-param>
1370         </xsl:call-template>
1371       </div>
1372     </div>
1373
1374     <!-- Meeting / Scheduling tab -->
1375     <!-- ======================== -->
1376     <div id="bwEventTab-Scheduling" class="invisible">
1377       <!--
1378       <h4><xsl:copy-of select="$bwStr-Atnd-AddAttendees"/></h4>
1379       <form name="raForm" id="recipientsAndAttendeesForm" action="{$requestFreeBusy}" method="post">
1380         <div id="raFields">
1381           <input type="text" name="uri" width="40" id="bwRaUri"/>
1382           <input type="submit" value="{$bwStr-Atnd-Add}" />
1383           <input type="hidden" name="recipient" value="true"/>
1384           <input type="hidden" name="attendee"  value="true"/>
1385           <xsl:text> </xsl:text>
1386           <xsl:copy-of select="$bwStr-Atnd-RoleColon"/>
1387           <select name="role">
1388             <option value="REQ-PARTICIPANT"><xsl:copy-of select="$bwStr-Atnd-RequiredParticipant"/></option>
1389             <option value="OPT-PARTICIPANT"><xsl:copy-of select="$bwStr-Atnd-OptionalParticipant"/></option>
1390             <option value="CHAIR"><xsl:copy-of select="$bwStr-Atnd-Chair"/></option>
1391             <option value="NON-PARTICIPANT"><xsl:copy-of select="$bwStr-Atnd-NonParticipant"/></option>
1392           </select>
1393           <xsl:text> </xsl:text>
1394           <xsl:copy-of select="$bwStr-Atnd-StatusColon"/>
1395           <select name="partstat">
1396             <option value="NEEDS-ACTION"><xsl:copy-of select="$bwStr-Atnd-NeedsAction"/></option>
1397             <option value="ACCEPTED"><xsl:copy-of select="$bwStr-Atnd-Accepted"/></option>
1398             <option value="DECLINED"><xsl:copy-of select="$bwStr-Atnd-Declined"/></option>
1399             <option value="TENTATIVE"><xsl:copy-of select="$bwStr-Atnd-Tentative"/></option>
1400             <option value="DELEGATED"><xsl:copy-of select="$bwStr-Atnd-Delegated"/></option>
1401           </select>
1402         </div>
1403       </form>
1404       -->
1405      
1406             <div id="bwSchedule">
1407               <div id="bwFreeBusyDisplay">
1408                 loading...
1409               </div>
1410              
1411               <table id="bwScheduleControls">
1412                 <tr>
1413                   <td>
1414                     <input type="button" id="bwPickPrevious" onclick="bwGrid.pickPrevious();" value="{$bwStr-AEEF-PickPrevious}"/>
1415                   </td>
1416                   <td>
1417                     <input type="button" id="bwPickNext" onclick="bwGrid.pickNext();" value="{$bwStr-AEEF-PickNext}"/>
1418                   </td>
1419                   <td class="dateLabel">
1420                     <strong><xsl:copy-of select="$bwStr-AEEF-Start"/></strong>
1421                   </td>
1422                   <td class="schedDate">
1423                     <input type="text" name="bwEventWidgetStartDateSched" id="bwEventWidgetStartDateSched" size="10"/>
1424               <xsl:text> </xsl:text>
1425               <span class="schedTime" id="schedTime">
1426                 <select name="eventStartDateSched.hour" id="eventStartDateSchedHour">
1427                   <xsl:copy-of select="form/start/hour/select/*"/>
1428                 </select>
1429                 <select name="eventStartDateSched.minute" id="eventStartDateSchedMinute">
1430                   <xsl:copy-of select="form/start/minute/select/*"/>
1431                 </select>
1432                 <xsl:if test="form/start/ampm">
1433                   <select name="eventStartDateSched.ampm" id="eventStartDateSchedAmpm">
1434                     <xsl:copy-of select="form/start/ampm/select/*"/>
1435                   </select>
1436                 </xsl:if>
1437                 <xsl:text> </xsl:text>
1438                 <img src="{$resourcesRoot}/images/clockIcon.gif" width="16" height="15" border="0" alt="bwClock" id="bwSchedClock"/>
1439               </span>
1440                   </td>
1441                 </tr>
1442                 <tr>
1443                   <td class="zoom">
1444                     <!--  hid the zoom for now - may not use it. -->
1445                     <!--             
1446                     <span class="zoomControl">-</span>
1447                     <select name="zoom">
1448                       <option>300%</option>
1449                       <option>200%</option>
1450                       <option>150%</option>
1451                       <option selected="selected">100%</option>
1452                       <option>75%</option>
1453                       <option>50%</option>
1454                     </select>
1455                     <span class="zoomControl">+</span>
1456                     -->
1457                   </td>
1458                   <td>
1459                     <ul id="bwSchedOptionsContainer">
1460                       <li>
1461                                     <input type="button" id="bwSchedOptions" value="{$bwStr-AEEF-Options}"/>
1462                               <ul id="bwFbOptionsMenu">
1463                                 <li id="bwSched24Hours"><span id="bwSched24HoursText"><xsl:copy-of select="$bwStr-AEEF-24Hours"/></span> <input type="checkbox" id="bwSched24HoursCb"/></li>
1464                               </ul>
1465                             </li>
1466                     </ul>
1467                   </td>
1468                   <td class="dateLabel">
1469                     <strong><xsl:copy-of select="$bwStr-AEEF-Duration-Sched"/></strong>
1470                   </td>
1471                   <td class="schedDate">
1472               <!-- force day, hour, minute format -->
1473               <input type="text" name="eventDurationSched.daysStr" size="2" id="durationDaysSched">
1474                 <xsl:attribute name="value">
1475                   <xsl:choose>
1476                     <xsl:when test="/bedework/creating='true' and form/allDay/input/@checked='checked'">1</xsl:when>
1477                     <xsl:when test="/bedework/creating='true' and form/allDay/input/@checked!='checked'">0</xsl:when>
1478                     <xsl:otherwise><xsl:value-of select="form/end/duration/days/input/@value"/></xsl:otherwise>
1479                   </xsl:choose>
1480                 </xsl:attribute>
1481               </input>
1482               <xsl:text> </xsl:text>
1483               <xsl:copy-of select="$bwStr-AEEF-Days"/>
1484               <xsl:text> </xsl:text>
1485               <span id="durationHrMinSched">
1486                 <input type="text" name="eventDurationSched.hoursStr" size="2" id="durationHoursSched">
1487                   <xsl:attribute name="value">
1488                     <xsl:choose>
1489                       <xsl:when test="/bedework/creating='true'">1</xsl:when>
1490                       <xsl:otherwise><xsl:value-of select="form/end/duration/hours/input/@value"/></xsl:otherwise>
1491                     </xsl:choose>
1492                   </xsl:attribute>
1493                 </input>
1494                 <xsl:text> </xsl:text>
1495                 <xsl:copy-of select="$bwStr-AEEF-Hours"/>
1496                 <xsl:text> </xsl:text>
1497                 <input type="text" name="eventDurationSched.minutesStr" size="2" id="durationMinutesSched">
1498                   <xsl:attribute name="value">
1499                     <xsl:choose>
1500                       <xsl:when test="/bedework/creating='true'">0</xsl:when>
1501                       <xsl:otherwise><xsl:value-of select="form/end/duration/minutes/input/@value"/></xsl:otherwise>
1502                     </xsl:choose>
1503                   </xsl:attribute>
1504                 </input>
1505                 <xsl:text> </xsl:text>
1506                 <xsl:copy-of select="$bwStr-AEEF-Minutes"/>
1507               </span>
1508              
1509                   </td>
1510                 </tr> 
1511               </table>
1512                        
1513             </div>
1514     </div>
1515
1516     <div class="eventSubmitButtons">
1517       <xsl:apply-templates select="form" mode="addEditEventFormButtons" />
1518     </div>
1519   </xsl:template>
1520
1521   <xsl:template match="form" mode="addEditEventFormButtons">
1522     <xsl:choose>
1523       <!-- the following test on the organizerSchedulingObject is not good - will need to fix -->
1524       <xsl:when test="scheduleMethod = '2' and organizerSchedulingObject">
1525         <input name="submitAndSend" type="submit" value="{$bwStr-AEEF-SaveAndSendInvites}" class="bwEventFormSubmit"/>
1526         <!-- dissalow: at the moment there's no way to send invitations after the first save
1527         <input name="submit" type="submit" value="{$bwStr-AEEF-SaveDraft}"/> -->
1528       </xsl:when>
1529       <xsl:otherwise>
1530         <input name="submit" type="submit" value="{$bwStr-AEEF-Save}" class="bwEventFormSubmit"/>
1531       </xsl:otherwise>
1532     </xsl:choose>
1533     <input name="cancelled" type="submit" value="{$bwStr-AEEF-Cancel}"/>
1534   </xsl:template>
1535
1536   <xsl:template match="val" mode="weekMonthYearNumbers">
1537     <xsl:if test="position() != 1 and position() = last()"> and </xsl:if>
1538     <xsl:value-of select="."/><xsl:choose>
1539       <xsl:when test="substring(., string-length(.)-1, 2) = '11' or
1540                       substring(., string-length(.)-1, 2) = '12' or
1541                       substring(., string-length(.)-1, 2) = '13'">th</xsl:when>
1542       <xsl:when test="substring(., string-length(.), 1) = '1'">st</xsl:when>
1543       <xsl:when test="substring(., string-length(.), 1) = '2'">nd</xsl:when>
1544       <xsl:when test="substring(., string-length(.), 1) = '3'">rd</xsl:when>
1545       <xsl:otherwise>th</xsl:otherwise>
1546     </xsl:choose>
1547     <xsl:if test="position() != last()">, </xsl:if>
1548   </xsl:template>
1549
1550   <xsl:template name="byDayChkBoxList">
1551     <xsl:param name="name"/>
1552     <xsl:for-each select="/bedework/shortdaynames/val">
1553       <xsl:variable name="pos" select="position()"/>
1554       <input type="checkbox">
1555         <xsl:attribute name="value"><xsl:value-of select="/bedework/recurdayvals/val[position() = $pos]"/></xsl:attribute>
1556         <xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
1557       </input>
1558       <xsl:value-of select="."/>
1559     </xsl:for-each>
1560   </xsl:template>
1561
1562   <xsl:template name="buildCheckboxList">
1563     <xsl:param name="current"/>
1564     <xsl:param name="end"/>
1565     <xsl:param name="name"/>
1566     <xsl:param name="splitter">10</xsl:param>
1567     <span class="chkBoxListItem">
1568       <input type="checkbox">
1569         <xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
1570         <xsl:attribute name="value"><xsl:value-of select="$current"/></xsl:attribute>
1571       </input>
1572       <xsl:value-of select="$current"/>
1573     </span>
1574     <xsl:if test="$current mod $splitter = 0"><br/></xsl:if>
1575     <xsl:if test="$current = $end"><br/></xsl:if>
1576     <xsl:if test="$current &lt; $end">
1577       <xsl:call-template name="buildCheckboxList">
1578         <xsl:with-param name="current"><xsl:value-of select="$current + 1"/></xsl:with-param>
1579         <xsl:with-param name="end"><xsl:value-of select="$end"/></xsl:with-param>
1580         <xsl:with-param name="name"><xsl:value-of select="$name"/></xsl:with-param>
1581       </xsl:call-template>
1582     </xsl:if>
1583   </xsl:template>
1584
1585   <xsl:template name="recurrenceDayPosOptions">
1586     <option value="0"><xsl:copy-of select="$bwStr-RCPO-None"/></option>
1587     <option value="1"><xsl:copy-of select="$bwStr-RCPO-TheFirst"/></option>
1588     <option value="2"><xsl:copy-of select="$bwStr-RCPO-TheSecond"/></option>
1589     <option value="3"><xsl:copy-of select="$bwStr-RCPO-TheThird"/></option>
1590     <option value="4"><xsl:copy-of select="$bwStr-RCPO-TheFourth"/></option>
1591     <option value="5"><xsl:copy-of select="$bwStr-RCPO-TheFifth"/></option>
1592     <option value="-1"><xsl:copy-of select="$bwStr-RCPO-TheLast"/></option>
1593     <option value=""><xsl:copy-of select="$bwStr-RCPO-Every"/></option>
1594   </xsl:template>
1595
1596   <xsl:template name="buildRecurFields">
1597     <xsl:param name="current"/>
1598     <xsl:param name="total"/>
1599     <xsl:param name="name"/>
1600     <div class="invisible">
1601       <xsl:attribute name="id"><xsl:value-of select="$name"/>RecurFields<xsl:value-of select="$current"/></xsl:attribute>
1602       <xsl:copy-of select="$bwStr-BuRF-And"/>
1603       <select size="12">
1604         <xsl:attribute name="name">by<xsl:value-of select="$name"/>posPos<xsl:value-of select="$current"/></xsl:attribute>
1605         <xsl:if test="$current != $total">
1606           <xsl:attribute name="onchange">changeClass('<xsl:value-of select="$name"/>RecurFields<xsl:value-of select="$current+1"/>','shown')</xsl:attribute>
1607         </xsl:if>
1608         <xsl:call-template name="recurrenceDayPosOptions"/>
1609       </select>
1610       <xsl:call-template name="byDayChkBoxList"/>
1611     </div>
1612     <xsl:if test="$current &lt; $total">
1613       <xsl:call-template name="buildRecurFields">
1614         <xsl:with-param name="current"><xsl:value-of select="$current+1"/></xsl:with-param>
1615         <xsl:with-param name="total"><xsl:value-of select="$total"/></xsl:with-param>
1616         <xsl:with-param name="name"><xsl:value-of select="$name"/></xsl:with-param>
1617       </xsl:call-template>
1618     </xsl:if>
1619   </xsl:template>
1620
1621   <xsl:template name="buildNumberOptions">
1622     <xsl:param name="current"/>
1623     <xsl:param name="total"/>
1624     <option value="{$current}"><xsl:value-of select="$current"/></option>
1625     <xsl:if test="$current &lt; $total">
1626       <xsl:call-template name="buildNumberOptions">
1627         <xsl:with-param name="current"><xsl:value-of select="$current+1"/></xsl:with-param>
1628         <xsl:with-param name="total"><xsl:value-of select="$total"/></xsl:with-param>
1629       </xsl:call-template>
1630     </xsl:if>
1631   </xsl:template>
1632
1633   <xsl:template name="clock">
1634     <div id="bwClock">
1635       <!-- Bedework 24-Hour Clock time selection widget
1636            used with bwClock.js and bwClock.css -->
1637       <xsl:variable name="hour24" select="/bedework/hour24"/><!-- true or false -->
1638       <div id="bwClockClock">
1639         <img id="clockMap" src="{$resourcesRoot}/images/clockMap.gif" width="368" height="368" border="0" alt="bwClock" usemap="#bwClockMap" />
1640       </div>
1641       <div id="bwClockCover">
1642         &#160;
1643         <!-- this is a special effect div used simply to cover the pixelated edge
1644              where the clock meets the clock box title -->
1645       </div>
1646       <div id="bwClockBox">
1647         <h2>
1648           <xsl:copy-of select="$bwStr-Cloc-Bedework24HourClock"/>
1649         </h2>
1650         <div id="bwClockDateTypeIndicator">
1651           <xsl:copy-of select="$bwStr-Cloc-Type"/>
1652         </div>
1653         <div id="bwClockTime">
1654           <xsl:copy-of select="$bwStr-Cloc-SelectTime"/>
1655         </div>
1656         <div id="bwClockSwitch">
1657           <xsl:copy-of select="$bwStr-Cloc-Switch"/>
1658         </div>
1659         <div id="bwClockCloseText">
1660           <xsl:copy-of select="$bwStr-Cloc-Close"/>
1661         </div>
1662         <div id="bwClockCloseButton">
1663           <a href="javascript:bwClockClose();">X</a>
1664         </div>
1665       </div>
1666       <map name="bwClockMap" id="bwClockMap">
1667         <area shape="rect" alt="close clock" title="{$bwStr-Cloc-CloseClock}" coords="160,167, 200,200" href="javascript:bwClockClose()"/>
1668         <area shape="poly" alt="minute 00:55" title="minute 00:55" coords="156,164, 169,155, 156,107, 123,128" href="javascript:bwClockUpdateDateTimeForm('minute','55')" />
1669         <area shape="poly" alt="minute 00:50" title="minute 00:50" coords="150,175, 156,164, 123,128, 103,161" href="javascript:bwClockUpdateDateTimeForm('minute','50')" />
1670         <area shape="poly" alt="minute 00:45" title="minute 00:45" coords="150,191, 150,175, 103,161, 103,206" href="javascript:bwClockUpdateDateTimeForm('minute','45')" />
1671         <area shape="poly" alt="minute 00:40" title="minute 00:40" coords="158,208, 150,191, 105,206, 123,237" href="javascript:bwClockUpdateDateTimeForm('minute','40')" />
1672         <area shape="poly" alt="minute 00:35" title="minute 00:35" coords="171,218, 158,208, 123,238, 158,261" href="javascript:bwClockUpdateDateTimeForm('minute','35')" />
1673         <area shape="poly" alt="minute 00:30" title="minute 00:30" coords="193,218, 172,218, 158,263, 209,263" href="javascript:bwClockUpdateDateTimeForm('minute','30')" />
1674         <area shape="poly" alt="minute 00:25" title="minute 00:25" coords="209,210, 193,218, 209,261, 241,240" href="javascript:bwClockUpdateDateTimeForm('minute','25')" />
1675         <area shape="poly" alt="minute 00:20" title="minute 00:20" coords="216,196, 209,210, 241,240, 261,206" href="javascript:bwClockUpdateDateTimeForm('minute','20')" />
1676         <area shape="poly" alt="minute 00:15" title="minute 00:15" coords="216,178, 216,196, 261,206, 261,159" href="javascript:bwClockUpdateDateTimeForm('minute','15')" />
1677         <area shape="poly" alt="minute 00:10" title="minute 00:10" coords="209,164, 216,178, 261,159, 240,126" href="javascript:bwClockUpdateDateTimeForm('minute','10')" />
1678         <area shape="poly" alt="minute 00:05" title="minute 00:05" coords="196,155, 209,164, 238,126, 206,107" href="javascript:bwClockUpdateDateTimeForm('minute','5')" />
1679         <area shape="poly" alt="minute 00:00" title="minute 00:00" coords="169,155, 196,155, 206,105, 156,105" href="javascript:bwClockUpdateDateTimeForm('minute','0')" />
1680         <area shape="poly" alt="11 PM, 2300 hour" title="11 PM, 2300 hour" coords="150,102, 172,96, 158,1, 114,14" href="javascript:bwClockUpdateDateTimeForm('hour','23',{$hour24})" />
1681         <area shape="poly" alt="10 PM, 2200 hour" title="10 PM, 2200 hour" coords="131,114, 150,102, 114,14, 74,36" href="javascript:bwClockUpdateDateTimeForm('hour','22',{$hour24})" />
1682         <area shape="poly" alt="9 PM, 2100 hour" title="9 PM, 2100 hour" coords="111,132, 131,114, 74,36, 40,69" href="javascript:bwClockUpdateDateTimeForm('hour','21',{$hour24})" />
1683         <area shape="poly" alt="8 PM, 2000 hour" title="8 PM, 2000 hour" coords="101,149, 111,132, 40,69, 15,113" href="javascript:bwClockUpdateDateTimeForm('hour','20',{$hour24})" />
1684         <area shape="poly" alt="7 PM, 1900 hour" title="7 PM, 1900 hour" coords="95,170, 101,149, 15,113, 1,159" href="javascript:bwClockUpdateDateTimeForm('hour','19',{$hour24})" />
1685         <area shape="poly" alt="6 PM, 1800 hour" title="6 PM, 1800 hour" coords="95,196, 95,170, 0,159, 0,204" href="javascript:bwClockUpdateDateTimeForm('hour','18',{$hour24})" />
1686         <area shape="poly" alt="5 PM, 1700 hour" title="5 PM, 1700 hour" coords="103,225, 95,196, 1,205, 16,256" href="javascript:bwClockUpdateDateTimeForm('hour','17',{$hour24})" />
1687         <area shape="poly" alt="4 PM, 1600 hour" title="4 PM, 1600 hour" coords="116,245, 103,225, 16,256, 41,298" href="javascript:bwClockUpdateDateTimeForm('hour','16',{$hour24})" />
1688         <area shape="poly" alt="3 PM, 1500 hour" title="3 PM, 1500 hour" coords="134,259, 117,245, 41,298, 76,332" href="javascript:bwClockUpdateDateTimeForm('hour','15',{$hour24})" />
1689         <area shape="poly" alt="2 PM, 1400 hour" title="2 PM, 1400 hour" coords="150,268, 134,259, 76,333, 121,355" href="javascript:bwClockUpdateDateTimeForm('hour','14',{$hour24})" />
1690         <area shape="poly" alt="1 PM, 1300 hour" title="1 PM, 1300 hour" coords="169,273, 150,268, 120,356, 165,365" href="javascript:bwClockUpdateDateTimeForm('hour','13',{$hour24})" />
1691         <area shape="poly" alt="Noon, 1200 hour" title="Noon, 1200 hour" coords="193,273, 169,273, 165,365, 210,364" href="javascript:bwClockUpdateDateTimeForm('hour','12',{$hour24})" />
1692         <area shape="poly" alt="11 AM, 1100 hour" title="11 AM, 1100 hour" coords="214,270, 193,273, 210,363, 252,352" href="javascript:bwClockUpdateDateTimeForm('hour','11',{$hour24})" />
1693         <area shape="poly" alt="10 AM, 1000 hour" title="10 AM, 1000 hour" coords="232,259, 214,270, 252,352, 291,330" href="javascript:bwClockUpdateDateTimeForm('hour','10',{$hour24})" />
1694         <area shape="poly" alt="9 AM, 0900 hour" title="9 AM, 0900 hour" coords="251,240, 232,258, 291,330, 323,301" href="javascript:bwClockUpdateDateTimeForm('hour','9',{$hour24})" />
1695         <area shape="poly" alt="8 AM, 0800 hour" title="8 AM, 0800 hour" coords="263,219, 251,239, 323,301, 349,261" href="javascript:bwClockUpdateDateTimeForm('hour','8',{$hour24})" />
1696         <area shape="poly" alt="7 AM, 0700 hour" title="7 AM, 0700 hour" coords="269,194, 263,219, 349,261, 363,212" href="javascript:bwClockUpdateDateTimeForm('hour','7',{$hour24})" />
1697         <area shape="poly" alt="6 AM, 0600 hour" title="6 AM, 0600 hour" coords="269,172, 269,193, 363,212, 363,155" href="javascript:bwClockUpdateDateTimeForm('hour','6',{$hour24})" />
1698         <area shape="poly" alt="5 AM, 0500 hour" title="5 AM, 0500 hour" coords="263,150, 269,172, 363,155, 351,109" href="javascript:bwClockUpdateDateTimeForm('hour','5',{$hour24})" />
1699         <area shape="poly" alt="4 AM, 0400 hour" title="4 AM, 0400 hour" coords="251,130, 263,150, 351,109, 325,68" href="javascript:bwClockUpdateDateTimeForm('hour','4',{$hour24})" />
1700         <area shape="poly" alt="3 AM, 0300 hour" title="3 AM, 0300 hour" coords="234,112, 251,130, 325,67, 295,37" href="javascript:bwClockUpdateDateTimeForm('hour','3',{$hour24})" />
1701         <area shape="poly" alt="2 AM, 0200 hour" title="2 AM, 0200 hour" coords="221,102, 234,112, 295,37, 247,11" href="javascript:bwClockUpdateDateTimeForm('hour','2',{$hour24})" />
1702         <area shape="poly" alt="1 AM, 0100 hour" title="1 AM, 0100 hour" coords="196,96, 221,102, 247,10, 209,-1, 201,61, 206,64, 205,74, 199,75" href="javascript:bwClockUpdateDateTimeForm('hour','1',{$hour24})" />
1703         <area shape="poly" alt="Midnight, 0000 hour" title="Midnight, 0000 hour" coords="172,96, 169,74, 161,73, 161,65, 168,63, 158,-1, 209,-1, 201,61, 200,62, 206,64, 205,74, 198,75, 196,96, 183,95" href="javascript:bwClockUpdateDateTimeForm('hour','0',{$hour24})" />
1704       </map>
1705     </div>
1706   </xsl:template>
1707  
1708 </xsl:stylesheet>
Note: See TracBrowser for help on using the browser.