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

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

user client: work on the "meeting" tab - begin using data from the backend for determining freebusy

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