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

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

personal client: don't look up freebusy if no attendees; begin adding 24 hour switch to scheduling grid

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