| 2193 | | <input type="checkbox" name="recurrenceFlag" onclick="swapRecurrence(this)" value="on"/> |
|---|
| 2194 | | <xsl:if test="form/recurring='true'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| 2195 | | recurring |
|---|
| 2196 | | <span id="recurrenceUiSwitch" class="invisible"> |
|---|
| 2197 | | <input type="checkbox" name="recurrenceUiSwitch" value="simple" onchange="swapVisible(this,'advancedRecurrenceRules')"/>show advanced recurrence rules |
|---|
| 2198 | | </span> |
|---|
| 2199 | | |
|---|
| 2200 | | <!-- set these dynamically when form is submitted --> |
|---|
| 2201 | | <input type="hidden" name="interval" value=""/> |
|---|
| 2202 | | <input type="hidden" name="count" value=""/> |
|---|
| 2203 | | <input type="hidden" name="until" value=""/> |
|---|
| 2204 | | <input type="hidden" name="byday" value=""/> |
|---|
| 2205 | | <input type="hidden" name="bymonthday" value=""/> |
|---|
| 2206 | | <input type="hidden" name="bymonth" value=""/> |
|---|
| 2207 | | <input type="hidden" name="byyearday" value=""/> |
|---|
| 2208 | | |
|---|
| 2209 | | <div id="recurrenceFields" class="invisible"> |
|---|
| 2210 | | <table id="recurrenceTable" cellspacing="0"> |
|---|
| 2211 | | <tr> |
|---|
| 2212 | | <td class="recurrenceFrequency" rowspan="2"> |
|---|
| 2213 | | <strong>Frequency:</strong><br/> |
|---|
| 2214 | | <!-- "freq" is used to determine if a recurrence should be created; test for "NONE" --> |
|---|
| 2215 | | <input type="radio" name="freq" value="NONE" onclick="showRecurrence(this.value)" checked="checked"/>none<br/> |
|---|
| 2216 | | <!--<input type="radio" name="freq" value="HOURLY" onclick="showRecurrence(this.value)"/>hourly<br/>--> |
|---|
| 2217 | | <input type="radio" name="freq" value="DAILY" onclick="showRecurrence(this.value)"/>daily<br/> |
|---|
| 2218 | | <input type="radio" name="freq" value="WEEKLY" onclick="showRecurrence(this.value)"/>weekly<br/> |
|---|
| 2219 | | <input type="radio" name="freq" value="MONTHLY" onclick="showRecurrence(this.value)"/>monthly<br/> |
|---|
| 2220 | | <input type="radio" name="freq" value="YEARLY" onclick="showRecurrence(this.value)"/>yearly |
|---|
| 2221 | | </td> |
|---|
| 2222 | | <td class="recurrenceRules"> |
|---|
| 2223 | | <!-- none --> |
|---|
| 2224 | | <div id="noneRecurrenceRules"> |
|---|
| 2225 | | <p>does not recur</p> |
|---|
| 2226 | | </div> |
|---|
| 2227 | | <span id="advancedRecurrenceRules" class="invisible"> |
|---|
| 2228 | | <!-- hourly --> |
|---|
| 2229 | | <div id="hourlyRecurrenceRules" class="invisible"> |
|---|
| 2230 | | <strong>Interval:</strong> |
|---|
| 2231 | | every <input type="text" name="hourlyInterval" size="2" value="1"/> hour(s) |
|---|
| | 2193 | <xsl:if test="recurrenceId = ''"> |
|---|
| | 2194 | <!-- existing recurrence instances can not themselves recur, |
|---|
| | 2195 | so block this whole section if this event is an instance |
|---|
| | 2196 | (has a recurrenceId) --> |
|---|
| | 2197 | <input type="checkbox" name="recurrenceFlag" onclick="swapRecurrence(this)" value="on"/> |
|---|
| | 2198 | <xsl:if test="form/recurring='true'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| | 2199 | <xsl:choose> |
|---|
| | 2200 | <xsl:when test="/bedework/creating = 'true'"> |
|---|
| | 2201 | recurring |
|---|
| | 2202 | </xsl:when> |
|---|
| | 2203 | <xsl:otherwise> |
|---|
| | 2204 | change recurrence |
|---|
| | 2205 | </xsl:otherwise> |
|---|
| | 2206 | </xsl:choose> |
|---|
| | 2207 | <span id="recurrenceUiSwitch" class="invisible"> |
|---|
| | 2208 | <input type="checkbox" name="recurrenceUiSwitch" value="simple" onchange="swapVisible(this,'advancedRecurrenceRules')"/>show advanced recurrence rules |
|---|
| | 2209 | </span> |
|---|
| | 2210 | |
|---|
| | 2211 | <!-- set these dynamically when form is submitted --> |
|---|
| | 2212 | <input type="hidden" name="interval" value=""/> |
|---|
| | 2213 | <input type="hidden" name="count" value=""/> |
|---|
| | 2214 | <input type="hidden" name="until" value=""/> |
|---|
| | 2215 | <input type="hidden" name="byday" value=""/> |
|---|
| | 2216 | <input type="hidden" name="bymonthday" value=""/> |
|---|
| | 2217 | <input type="hidden" name="bymonth" value=""/> |
|---|
| | 2218 | <input type="hidden" name="byweekno" value=""/> |
|---|
| | 2219 | <input type="hidden" name="byyearday" value=""/> |
|---|
| | 2220 | <input type="hidden" name="wkst" value=""/> |
|---|
| | 2221 | |
|---|
| | 2222 | <div id="recurrenceFields" class="invisible"> |
|---|
| | 2223 | <table id="recurrenceTable" cellspacing="0"> |
|---|
| | 2224 | <tr> |
|---|
| | 2225 | <td class="recurrenceFrequency" rowspan="2"> |
|---|
| | 2226 | <strong>Frequency:</strong><br/> |
|---|
| | 2227 | <!-- "freq" is used to determine if a recurrence should be created; test for "NONE" --> |
|---|
| | 2228 | <input type="radio" name="freq" value="NONE" onclick="showRecurrence(this.value)" checked="checked"/>none<br/> |
|---|
| | 2229 | <!--<input type="radio" name="freq" value="HOURLY" onclick="showRecurrence(this.value)"/>hourly<br/>--> |
|---|
| | 2230 | <input type="radio" name="freq" value="DAILY" onclick="showRecurrence(this.value)"/>daily<br/> |
|---|
| | 2231 | <input type="radio" name="freq" value="WEEKLY" onclick="showRecurrence(this.value)"/>weekly<br/> |
|---|
| | 2232 | <input type="radio" name="freq" value="MONTHLY" onclick="showRecurrence(this.value)"/>monthly<br/> |
|---|
| | 2233 | <input type="radio" name="freq" value="YEARLY" onclick="showRecurrence(this.value)"/>yearly |
|---|
| | 2234 | </td> |
|---|
| | 2235 | <td class="recurrenceRules"> |
|---|
| | 2236 | <!-- none --> |
|---|
| | 2237 | <div id="noneRecurrenceRules"> |
|---|
| | 2238 | <p>does not recur</p> |
|---|
| 2237 | | every <input type="text" name="dailyInterval" size="2" value="1"/> day(s) |
|---|
| 2238 | | </p> |
|---|
| 2239 | | </div> |
|---|
| 2240 | | <!-- weekly --> |
|---|
| 2241 | | <div id="weeklyRecurrenceRules" class="invisible"> |
|---|
| 2242 | | <p> |
|---|
| 2243 | | <strong>Interval:</strong> |
|---|
| 2244 | | every <input type="text" name="weeklyInterval" size="2" value="1"/> week(s) on:<br/> |
|---|
| 2245 | | </p> |
|---|
| 2246 | | <p> |
|---|
| 2247 | | <div id="weekRecurFields"> |
|---|
| 2248 | | <xsl:call-template name="byDayChkBoxList"> |
|---|
| 2249 | | <xsl:with-param name="name">byDayWeek</xsl:with-param> |
|---|
| | 2244 | every <input type="text" name="hourlyInterval" size="2" value="1"/> hour(s) |
|---|
| | 2245 | </div> |
|---|
| | 2246 | <!-- daily --> |
|---|
| | 2247 | <div id="dailyRecurrenceRules" class="invisible"> |
|---|
| | 2248 | <p> |
|---|
| | 2249 | <strong>Interval:</strong> |
|---|
| | 2250 | every <input type="text" name="dailyInterval" size="2" value="1"/> day(s) |
|---|
| | 2251 | </p> |
|---|
| | 2252 | <p> |
|---|
| | 2253 | <input type="checkbox" name="swapDayMonthCheckBoxList" value="" onclick="swapVisible(this,'dayMonthCheckBoxList')"/> |
|---|
| | 2254 | in these months: |
|---|
| | 2255 | <div id="dayMonthCheckBoxList" class="invisible"> |
|---|
| | 2256 | <xsl:for-each select="/bedework/monthlabels/val"> |
|---|
| | 2257 | <xsl:variable name="pos"><xsl:value-of select="position()"/></xsl:variable> |
|---|
| | 2258 | <span class="chkBoxListItem"> |
|---|
| | 2259 | <input type="checkbox" name="dayMonths"> |
|---|
| | 2260 | <xsl:attribute name="value"><xsl:value-of select="/bedework/monthvalues/val[position() = $pos]"/></xsl:attribute> |
|---|
| | 2261 | </input> |
|---|
| | 2262 | <xsl:value-of select="."/> |
|---|
| | 2263 | </span> |
|---|
| | 2264 | <xsl:if test="$pos mod 6 = 0"><br/></xsl:if> |
|---|
| | 2265 | </xsl:for-each> |
|---|
| | 2266 | </div> |
|---|
| | 2267 | </p> |
|---|
| | 2268 | </div> |
|---|
| | 2269 | <!-- weekly --> |
|---|
| | 2270 | <div id="weeklyRecurrenceRules" class="invisible"> |
|---|
| | 2271 | <p> |
|---|
| | 2272 | <strong>Interval:</strong> |
|---|
| | 2273 | every <input type="text" name="weeklyInterval" size="2" value="1"/> week(s) on:<br/> |
|---|
| | 2274 | </p> |
|---|
| | 2275 | <p> |
|---|
| | 2276 | <div id="weekRecurFields"> |
|---|
| | 2277 | <xsl:call-template name="byDayChkBoxList"> |
|---|
| | 2278 | <xsl:with-param name="name">byDayWeek</xsl:with-param> |
|---|
| | 2279 | </xsl:call-template> |
|---|
| | 2280 | </div> |
|---|
| | 2281 | </p> |
|---|
| | 2282 | <p class="weekRecurLinks"> |
|---|
| | 2283 | <a href="javascript:recurSelectWeekdays('weekRecurFields')">select weekdays</a> | |
|---|
| | 2284 | <a href="javascript:recurSelectWeekends('weekRecurFields')">select weekends</a> |
|---|
| | 2285 | </p> |
|---|
| | 2286 | <p> |
|---|
| | 2287 | Week start: |
|---|
| | 2288 | <select name="weekWkst"> |
|---|
| | 2289 | <xsl:for-each select="/bedework/shortdaynames/val"> |
|---|
| | 2290 | <xsl:variable name="pos" select="position()"/> |
|---|
| | 2291 | <option> |
|---|
| | 2292 | <xsl:attribute name="value"><xsl:value-of select="/bedework/recurdaynames/val[position() = $pos]"/></xsl:attribute> |
|---|
| | 2293 | <xsl:value-of select="."/> |
|---|
| | 2294 | </option> |
|---|
| | 2295 | </xsl:for-each> |
|---|
| | 2296 | </select> |
|---|
| | 2297 | </p> |
|---|
| | 2298 | </div> |
|---|
| | 2299 | <!-- monthly --> |
|---|
| | 2300 | <div id="monthlyRecurrenceRules" class="invisible"> |
|---|
| | 2301 | <p> |
|---|
| | 2302 | <strong>Interval:</strong> |
|---|
| | 2303 | every <input type="text" name="monthlyInterval" size="2" value="1"/> month(s) |
|---|
| | 2304 | </p> |
|---|
| | 2305 | <div id="monthRecurFields"> |
|---|
| | 2306 | <div id="monthRecurFields1"> |
|---|
| | 2307 | on |
|---|
| | 2308 | <select name="bymonthposPos1" width="7em" onchange="changeClass('monthRecurFields2','shown')"> |
|---|
| | 2309 | <xsl:call-template name="recurrenceDayPosOptions"/> |
|---|
| | 2310 | </select> |
|---|
| | 2311 | <xsl:call-template name="byDayChkBoxList"/> |
|---|
| | 2312 | </div> |
|---|
| | 2313 | <xsl:call-template name="buildRecurFields"> |
|---|
| | 2314 | <xsl:with-param name="current">2</xsl:with-param> |
|---|
| | 2315 | <xsl:with-param name="total">10</xsl:with-param> |
|---|
| | 2316 | <xsl:with-param name="name">month</xsl:with-param> |
|---|
| 2262 | | every <input type="text" name="monthlyInterval" size="2" value="1"/> month(s) |
|---|
| 2263 | | </p> |
|---|
| 2264 | | <div id="monthRecurFields"> |
|---|
| 2265 | | <div id="monthRecurFields1"> |
|---|
| 2266 | | on |
|---|
| 2267 | | <select name="bymonthposPos1" width="7em" onchange="changeClass('monthRecurFields2','shown')"> |
|---|
| 2268 | | <xsl:call-template name="recurrenceDayPosOptions"/> |
|---|
| 2269 | | </select> |
|---|
| 2270 | | <xsl:call-template name="byDayChkBoxList"/> |
|---|
| 2271 | | </div> |
|---|
| 2272 | | <xsl:call-template name="buildRecurFields"> |
|---|
| 2273 | | <xsl:with-param name="current">2</xsl:with-param> |
|---|
| 2274 | | <xsl:with-param name="total">10</xsl:with-param> |
|---|
| 2275 | | <xsl:with-param name="name">month</xsl:with-param> |
|---|
| 2276 | | </xsl:call-template> |
|---|
| 2277 | | </div> |
|---|
| 2278 | | <p> |
|---|
| 2279 | | <input type="checkbox" name="swapMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'monthDaysCheckBoxList')"/> |
|---|
| 2280 | | on these days:<br/> |
|---|
| 2281 | | <div id="monthDaysCheckBoxList" class="invisible"> |
|---|
| 2282 | | <xsl:call-template name="buildCheckboxList"> |
|---|
| 2283 | | <xsl:with-param name="current">1</xsl:with-param> |
|---|
| 2284 | | <xsl:with-param name="end">31</xsl:with-param> |
|---|
| 2285 | | <xsl:with-param name="name">monthDayBoxes</xsl:with-param> |
|---|
| | 2334 | every <input type="text" name="yearlyInterval" size="2" value="1"/> years(s)<br/> |
|---|
| | 2335 | <div id="yearRecurFields"> |
|---|
| | 2336 | <div id="yearRecurFields1"> |
|---|
| | 2337 | on |
|---|
| | 2338 | <select name="byyearposPos1" width="7em" onchange="changeClass('yearRecurFields2','shown')"> |
|---|
| | 2339 | <xsl:call-template name="recurrenceDayPosOptions"/> |
|---|
| | 2340 | </select> |
|---|
| | 2341 | <xsl:call-template name="byDayChkBoxList"/> |
|---|
| | 2342 | </div> |
|---|
| | 2343 | <xsl:call-template name="buildRecurFields"> |
|---|
| | 2344 | <xsl:with-param name="current">2</xsl:with-param> |
|---|
| | 2345 | <xsl:with-param name="total">10</xsl:with-param> |
|---|
| | 2346 | <xsl:with-param name="name">year</xsl:with-param> |
|---|
| 2288 | | </p> |
|---|
| 2289 | | </div> |
|---|
| 2290 | | <!-- yearly --> |
|---|
| 2291 | | <div id="yearlyRecurrenceRules" class="invisible"> |
|---|
| 2292 | | <strong>Interval:</strong> |
|---|
| 2293 | | every <input type="text" name="yearlyInterval" size="2" value="1"/> years(s)<br/> |
|---|
| 2294 | | <div id="yearRecurFields"> |
|---|
| 2295 | | <div id="yearRecurFields1"> |
|---|
| 2296 | | on |
|---|
| 2297 | | <select name="byyearposPos1" width="7em" onchange="changeClass('yearRecurFields2','shown')"> |
|---|
| 2298 | | <xsl:call-template name="recurrenceDayPosOptions"/> |
|---|
| | 2349 | <p> |
|---|
| | 2350 | <input type="checkbox" name="swapYearMonthCheckBoxList" value="" onclick="swapVisible(this,'yearMonthCheckBoxList')"/> |
|---|
| | 2351 | in these months: |
|---|
| | 2352 | <div id="yearMonthCheckBoxList" class="invisible"> |
|---|
| | 2353 | <xsl:for-each select="/bedework/monthlabels/val"> |
|---|
| | 2354 | <xsl:variable name="pos"><xsl:value-of select="position()"/></xsl:variable> |
|---|
| | 2355 | <span class="chkBoxListItem"> |
|---|
| | 2356 | <input type="checkbox" name="yearMonths"> |
|---|
| | 2357 | <xsl:attribute name="value"><xsl:value-of select="/bedework/monthvalues/val[position() = $pos]"/></xsl:attribute> |
|---|
| | 2358 | </input> |
|---|
| | 2359 | <xsl:value-of select="."/> |
|---|
| | 2360 | </span> |
|---|
| | 2361 | <xsl:if test="$pos mod 6 = 0"><br/></xsl:if> |
|---|
| | 2362 | </xsl:for-each> |
|---|
| | 2363 | </div> |
|---|
| | 2364 | </p> |
|---|
| | 2365 | <p> |
|---|
| | 2366 | <input type="checkbox" name="swapYearMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'yearMonthDaysCheckBoxList')"/> |
|---|
| | 2367 | on these days of the month:<br/> |
|---|
| | 2368 | <div id="yearMonthDaysCheckBoxList" class="invisible"> |
|---|
| | 2369 | <xsl:call-template name="buildCheckboxList"> |
|---|
| | 2370 | <xsl:with-param name="current">1</xsl:with-param> |
|---|
| | 2371 | <xsl:with-param name="end">31</xsl:with-param> |
|---|
| | 2372 | <xsl:with-param name="name">yearMonthDayBoxes</xsl:with-param> |
|---|
| | 2373 | </xsl:call-template> |
|---|
| | 2374 | </div> |
|---|
| | 2375 | </p> |
|---|
| | 2376 | <p> |
|---|
| | 2377 | <input type="checkbox" name="swapYearWeeksCheckBoxList" value="" onclick="swapVisible(this,'yearWeeksCheckBoxList')"/> |
|---|
| | 2378 | in these weeks of the year:<br/> |
|---|
| | 2379 | <div id="yearWeeksCheckBoxList" class="invisible"> |
|---|
| | 2380 | <xsl:call-template name="buildCheckboxList"> |
|---|
| | 2381 | <xsl:with-param name="current">1</xsl:with-param> |
|---|
| | 2382 | <xsl:with-param name="end">53</xsl:with-param> |
|---|
| | 2383 | <xsl:with-param name="name">yearWeekBoxes</xsl:with-param> |
|---|
| | 2384 | </xsl:call-template> |
|---|
| | 2385 | </div> |
|---|
| | 2386 | </p> |
|---|
| | 2387 | <p> |
|---|
| | 2388 | <input type="checkbox" name="swapYearDaysCheckBoxList" value="" onclick="swapVisible(this,'yearDaysCheckBoxList')"/> |
|---|
| | 2389 | on these days of the year:<br/> |
|---|
| | 2390 | <div id="yearDaysCheckBoxList" class="invisible"> |
|---|
| | 2391 | <xsl:call-template name="buildCheckboxList"> |
|---|
| | 2392 | <xsl:with-param name="current">1</xsl:with-param> |
|---|
| | 2393 | <xsl:with-param name="end">366</xsl:with-param> |
|---|
| | 2394 | <xsl:with-param name="name">yearDayBoxes</xsl:with-param> |
|---|
| | 2395 | </xsl:call-template> |
|---|
| | 2396 | </div> |
|---|
| | 2397 | </p> |
|---|
| | 2398 | <p> |
|---|
| | 2399 | Week start: |
|---|
| | 2400 | <select name="yearWkst"> |
|---|
| | 2401 | <xsl:for-each select="/bedework/shortdaynames/val"> |
|---|
| | 2402 | <xsl:variable name="pos" select="position()"/> |
|---|
| | 2403 | <option> |
|---|
| | 2404 | <xsl:attribute name="value"><xsl:value-of select="/bedework/recurdaynames/val[position() = $pos]"/></xsl:attribute> |
|---|
| | 2405 | <xsl:value-of select="."/> |
|---|
| | 2406 | </option> |
|---|
| | 2407 | </xsl:for-each> |
|---|
| 2308 | | <p> |
|---|
| 2309 | | <input type="checkbox" name="swapYearMonthCheckBoxList" value="" onclick="swapVisible(this,'yearMonthCheckBoxList')"/> |
|---|
| 2310 | | in these months: |
|---|
| 2311 | | <div id="yearMonthCheckBoxList" class="invisible"> |
|---|
| 2312 | | <xsl:for-each select="/bedework/monthlabels/val"> |
|---|
| 2313 | | <xsl:variable name="pos"><xsl:value-of select="position()"/></xsl:variable> |
|---|
| 2314 | | <span class="chkBoxListItem"> |
|---|
| 2315 | | <input type="checkbox" name="yearMonths"> |
|---|
| 2316 | | <xsl:attribute name="value"><xsl:value-of select="/bedework/monthvalues/val[position() = $pos]"/></xsl:attribute> |
|---|
| 2317 | | </input> |
|---|
| 2318 | | <xsl:value-of select="."/> |
|---|
| 2319 | | </span> |
|---|
| 2320 | | <xsl:if test="$pos mod 6 = 0"><br/></xsl:if> |
|---|
| 2321 | | </xsl:for-each> |
|---|
| 2322 | | </div> |
|---|
| 2323 | | </p> |
|---|
| 2324 | | <p> |
|---|
| 2325 | | <input type="checkbox" name="swapYearMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'yearMonthDaysCheckBoxList')"/> |
|---|
| 2326 | | on these days of the month:<br/> |
|---|
| 2327 | | <div id="yearMonthDaysCheckBoxList" class="invisible"> |
|---|
| 2328 | | <xsl:call-template name="buildCheckboxList"> |
|---|
| 2329 | | <xsl:with-param name="current">1</xsl:with-param> |
|---|
| 2330 | | <xsl:with-param name="end">31</xsl:with-param> |
|---|
| 2331 | | <xsl:with-param name="name">yearMonthDayBoxes</xsl:with-param> |
|---|
| 2332 | | </xsl:call-template> |
|---|
| 2333 | | </div> |
|---|
| 2334 | | </p> |
|---|
| 2335 | | <p> |
|---|
| 2336 | | <input type="checkbox" name="swapYearDaysCheckBoxList" value="" onclick="swapVisible(this,'yearDaysCheckBoxList')"/> |
|---|
| 2337 | | on these days of the year:<br/> |
|---|
| 2338 | | <div id="yearDaysCheckBoxList" class="invisible"> |
|---|
| 2339 | | <xsl:call-template name="buildCheckboxList"> |
|---|
| 2340 | | <xsl:with-param name="current">1</xsl:with-param> |
|---|
| 2341 | | <xsl:with-param name="end">366</xsl:with-param> |
|---|
| 2342 | | <xsl:with-param name="name">yearDayBoxes</xsl:with-param> |
|---|
| 2343 | | </xsl:call-template> |
|---|
| 2344 | | </div> |
|---|
| 2345 | | </p> |
|---|
| 2346 | | </div> |
|---|
| 2347 | | </span> |
|---|
| 2348 | | </td> |
|---|
| 2349 | | </tr> |
|---|
| 2350 | | <!-- recurrence count, until, forever --> |
|---|
| 2351 | | <tr> |
|---|
| 2352 | | <td class="recurrenceUntil"> |
|---|
| 2353 | | <div id="recurrenceUntilRules" class="invisible"> |
|---|
| 2354 | | <strong>Repeat:</strong> |
|---|
| 2355 | | <p> |
|---|
| 2356 | | <div class="dateFields"> |
|---|
| 2357 | | <input type="radio" name="recurCountUntil" value="until" id="recurUntil"/> |
|---|
| 2358 | | until |
|---|
| 2359 | | <select name="untilMonth" onchange="selectRecurCountUntil('recurUntil')"> |
|---|
| 2360 | | <xsl:for-each select="form/start/month/select/option"> |
|---|
| 2361 | | <xsl:copy-of select="."/> |
|---|
| 2362 | | </xsl:for-each> |
|---|
| 2363 | | </select> |
|---|
| 2364 | | <select name="untilDay" onchange="selectRecurCountUntil('recurUntil')"> |
|---|
| 2365 | | <xsl:for-each select="form/start/day/select/option"> |
|---|
| 2366 | | <xsl:copy-of select="."/> |
|---|
| 2367 | | </xsl:for-each> |
|---|
| 2368 | | </select> |
|---|
| 2369 | | <xsl:choose> |
|---|
| 2370 | | <xsl:when test="/bedework/creating = 'true'"> |
|---|
| 2371 | | <select name="untilYear" onchange="selectRecurCountUntil('recurUntil')"> |
|---|
| 2372 | | <xsl:for-each select="form/start/year/select/option"> |
|---|
| 2373 | | <xsl:copy-of select="."/> |
|---|
| 2374 | | </xsl:for-each> |
|---|
| 2375 | | </select> |
|---|
| 2376 | | </xsl:when> |
|---|
| 2377 | | <xsl:otherwise> |
|---|
| 2378 | | <input type="text" name="untilYear" size="4" onchange="selectRecurCountUntil('recurUntil')"/> |
|---|
| 2379 | | <xsl:attribute name="value"><xsl:value-of select="form/start/yearText/input/@value"/></xsl:attribute> |
|---|
| 2380 | | </xsl:otherwise> |
|---|
| 2381 | | </xsl:choose> |
|---|
| 2382 | | </div> |
|---|
| 2383 | | <script language="JavaScript" type="text/javascript"> |
|---|
| 2384 | | <xsl:comment> |
|---|
| 2385 | | untilDateDynCalWidget = new dynCalendar('untilDateDynCalWidget', <xsl:value-of select="number(form/start/yearText/input/@value)"/>, <xsl:value-of select="number(form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(form/start/day/select/option[@selected='selected']/@value)"/>, 'untilDateCalWidgetCallback',false,'<xsl:value-of select="$resourcesRoot"/>/resources/'); |
|---|
| 2386 | | </xsl:comment> |
|---|
| 2387 | | </script> |
|---|
| 2388 | | </p> |
|---|
| 2389 | | <p> |
|---|
| 2390 | | <input type="radio" name="recurCountUntil" value="forever" checked="checked"/> |
|---|
| 2391 | | forever |
|---|
| 2392 | |   |
|---|
| 2393 | | <input type="radio" name="recurCountUntil" value="count" id="recurCount"/> |
|---|
| 2394 | | <input type="text" value="1" size="2" name="countHolder" onchange="selectRecurCountUntil('recurCount')"/> times |
|---|
| 2395 | | </p> |
|---|
| 2396 | | </div> |
|---|
| 2397 | | </td> |
|---|
| 2398 | | </tr> |
|---|
| 2399 | | </table> |
|---|
| 2400 | | </div> |
|---|
| | 2411 | </span> |
|---|
| | 2412 | </td> |
|---|
| | 2413 | </tr> |
|---|
| | 2414 | <!-- recurrence count, until, forever --> |
|---|
| | 2415 | <tr> |
|---|
| | 2416 | <td class="recurrenceUntil"> |
|---|
| | 2417 | <div id="recurrenceUntilRules" class="invisible"> |
|---|
| | 2418 | <strong>Repeat:</strong> |
|---|
| | 2419 | <p> |
|---|
| | 2420 | <div class="dateFields"> |
|---|
| | 2421 | <input type="radio" name="recurCountUntil" value="until" id="recurUntil"/> |
|---|
| | 2422 | until |
|---|
| | 2423 | <select name="untilMonth" onfocus="selectRecurCountUntil('recurUntil')"> |
|---|
| | 2424 | <xsl:for-each select="form/start/month/select/option"> |
|---|
| | 2425 | <xsl:copy-of select="."/> |
|---|
| | 2426 | </xsl:for-each> |
|---|
| | 2427 | </select> |
|---|
| | 2428 | <select name="untilDay" onfocus="selectRecurCountUntil('recurUntil')"> |
|---|
| | 2429 | <xsl:for-each select="form/start/day/select/option"> |
|---|
| | 2430 | <xsl:copy-of select="."/> |
|---|
| | 2431 | </xsl:for-each> |
|---|
| | 2432 | </select> |
|---|
| | 2433 | <xsl:choose> |
|---|
| | 2434 | <xsl:when test="/bedework/creating = 'true'"> |
|---|
| | 2435 | <select name="untilYear" onfocus="selectRecurCountUntil('recurUntil')"> |
|---|
| | 2436 | <xsl:for-each select="form/start/year/select/option"> |
|---|
| | 2437 | <xsl:copy-of select="."/> |
|---|
| | 2438 | </xsl:for-each> |
|---|
| | 2439 | </select> |
|---|
| | 2440 | </xsl:when> |
|---|
| | 2441 | <xsl:otherwise> |
|---|
| | 2442 | <input type="text" name="untilYear" size="4" onfocus="selectRecurCountUntil('recurUntil')"/> |
|---|
| | 2443 | <xsl:attribute name="value"><xsl:value-of select="form/start/yearText/input/@value"/></xsl:attribute> |
|---|
| | 2444 | </xsl:otherwise> |
|---|
| | 2445 | </xsl:choose> |
|---|
| | 2446 | </div> |
|---|
| | 2447 | <script language="JavaScript" type="text/javascript"> |
|---|
| | 2448 | <xsl:comment> |
|---|
| | 2449 | untilDateDynCalWidget = new dynCalendar('untilDateDynCalWidget', <xsl:value-of select="number(form/start/yearText/input/@value)"/>, <xsl:value-of select="number(form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(form/start/day/select/option[@selected='selected']/@value)"/>, 'untilDateCalWidgetCallback',false,'<xsl:value-of select="$resourcesRoot"/>/resources/'); |
|---|
| | 2450 | </xsl:comment> |
|---|
| | 2451 | </script> |
|---|
| | 2452 | </p> |
|---|
| | 2453 | <p> |
|---|
| | 2454 | <input type="radio" name="recurCountUntil" value="forever" checked="checked"/> |
|---|
| | 2455 | forever |
|---|
| | 2456 |   |
|---|
| | 2457 | <input type="radio" name="recurCountUntil" value="count" id="recurCount"/> |
|---|
| | 2458 | <input type="text" value="1" size="2" name="countHolder" onfocus="selectRecurCountUntil('recurCount')"/> times |
|---|
| | 2459 | </p> |
|---|
| | 2460 | </div> |
|---|
| | 2461 | </td> |
|---|
| | 2462 | </tr> |
|---|
| | 2463 | </table> |
|---|
| | 2464 | </div> |
|---|
| | 2465 | </xsl:if> |
|---|
| 2518 | | <table cellpadding="0" id="allCategoryCheckboxes"> |
|---|
| 2519 | | <tr> |
|---|
| 2520 | | <xsl:variable name="catCount" select="count(form/categories/all/category)"/> |
|---|
| 2521 | | <td> |
|---|
| 2522 | | <xsl:for-each select="form/categories/all/category[position() <= ceiling($catCount div 2)]"> |
|---|
| 2523 | | <input type="checkbox" name="categoryKey"> |
|---|
| 2524 | | <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> |
|---|
| 2525 | | <xsl:if test="keyword = form/categories/current//category/keyword"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| 2526 | | <xsl:value-of select="keyword"/> |
|---|
| 2527 | | </input><br/> |
|---|
| 2528 | | </xsl:for-each> |
|---|
| 2529 | | </td> |
|---|
| 2530 | | <td> |
|---|
| 2531 | | <xsl:for-each select="form/categories/all/category[position() > ceiling($catCount div 2)]"> |
|---|
| 2532 | | <input type="checkbox" name="categoryKey"> |
|---|
| 2533 | | <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> |
|---|
| 2534 | | <xsl:if test="keyword = form/categories/current//category/keyword"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| 2535 | | <xsl:value-of select="keyword"/> |
|---|
| 2536 | | </input><br/> |
|---|
| 2537 | | </xsl:for-each> |
|---|
| 2538 | | </td> |
|---|
| 2539 | | </tr> |
|---|
| 2540 | | </table> |
|---|
| | 2583 | <xsl:variable name="catCount" select="count(form/categories/all/category)"/> |
|---|
| | 2584 | <xsl:choose> |
|---|
| | 2585 | <xsl:when test="catCount = 0"> |
|---|
| | 2586 | no categories defined |
|---|
| | 2587 | </xsl:when> |
|---|
| | 2588 | <xsl:otherwise> |
|---|
| | 2589 | <table cellpadding="0" id="allCategoryCheckboxes"> |
|---|
| | 2590 | <tr> |
|---|
| | 2591 | <td> |
|---|
| | 2592 | <xsl:for-each select="form/categories/all/category[position() <= ceiling($catCount div 2)]"> |
|---|
| | 2593 | <input type="checkbox" name="categoryKey"> |
|---|
| | 2594 | <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> |
|---|
| | 2595 | <xsl:if test="keyword = form/categories/current//category/keyword"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| | 2596 | <xsl:value-of select="keyword"/> |
|---|
| | 2597 | </input><br/> |
|---|
| | 2598 | </xsl:for-each> |
|---|
| | 2599 | </td> |
|---|
| | 2600 | <td> |
|---|
| | 2601 | <xsl:for-each select="form/categories/all/category[position() > ceiling($catCount div 2)]"> |
|---|
| | 2602 | <input type="checkbox" name="categoryKey"> |
|---|
| | 2603 | <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> |
|---|
| | 2604 | <xsl:if test="keyword = form/categories/current//category/keyword"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| | 2605 | <xsl:value-of select="keyword"/> |
|---|
| | 2606 | </input><br/> |
|---|
| | 2607 | </xsl:for-each> |
|---|
| | 2608 | </td> |
|---|
| | 2609 | </tr> |
|---|
| | 2610 | </table> |
|---|
| | 2611 | </xsl:otherwise> |
|---|
| | 2612 | </xsl:choose> |
|---|