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

Revision 2897 (checked in by johnsa, 3 years ago)

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