| 2466 | | <div id="recurrenceRulesFields" class="invisible"> |
|---|
| 2467 | | <table id="recurrenceTable" cellspacing="0"> |
|---|
| 2468 | | <tr> |
|---|
| 2469 | | <td class="recurrenceFrequency" rowspan="2"> |
|---|
| 2470 | | <strong>Frequency:</strong><br/> |
|---|
| 2471 | | <!-- "freq" is used to determine if a recurrence should be created; test for "NONE" --> |
|---|
| 2472 | | <span class="freqNoneHider"> |
|---|
| 2473 | | <xsl:if test="form/recurrence"><xsl:attribute name="class">invisible</xsl:attribute></xsl:if> |
|---|
| 2474 | | <input type="radio" name="freq" value="NONE" onclick="showRecurrence(this.value)" checked="checked"/>none<br/> |
|---|
| 2475 | | </span> |
|---|
| 2476 | | <!--<input type="radio" name="freq" value="HOURLY" onclick="showRecurrence(this.value)"/>hourly<br/>--> |
|---|
| 2477 | | <input type="radio" name="freq" value="DAILY" onclick="showRecurrence(this.value)"/>daily<br/> |
|---|
| 2478 | | <input type="radio" name="freq" value="WEEKLY" onclick="showRecurrence(this.value)"/>weekly<br/> |
|---|
| 2479 | | <input type="radio" name="freq" value="MONTHLY" onclick="showRecurrence(this.value)"/>monthly<br/> |
|---|
| 2480 | | <input type="radio" name="freq" value="YEARLY" onclick="showRecurrence(this.value)"/>yearly |
|---|
| 2481 | | </td> |
|---|
| 2482 | | <!-- recurrence count, until, forever --> |
|---|
| 2483 | | <td class="recurrenceUntil"> |
|---|
| 2484 | | <div id="recurrenceUntilRules" class="invisible"> |
|---|
| 2485 | | <strong>Repeat:</strong> |
|---|
| 2486 | | <p> |
|---|
| 2487 | | <input type="radio" name="recurCountUntil" value="forever"> |
|---|
| 2488 | | <xsl:if test="not(form/recurring) or form/recurring/count = '-1'"> |
|---|
| 2489 | | <xsl:attribute name="checked">checked</xsl:attribute> |
|---|
| 2490 | | </xsl:if> |
|---|
| 2491 | | </input> |
|---|
| 2492 | | forever |
|---|
| 2493 | | <input type="radio" name="recurCountUntil" value="count" id="recurCount"> |
|---|
| 2494 | | <xsl:if test="form/recurring/count != '-1'"> |
|---|
| 2495 | | <xsl:attribute name="checked">checked</xsl:attribute> |
|---|
| 2496 | | </xsl:if> |
|---|
| 2497 | | </input> |
|---|
| 2498 | | <input type="text" value="1" size="2" name="countHolder" onfocus="selectRecurCountUntil('recurCount')"> |
|---|
| 2499 | | <xsl:if test="form/recurring/count and form/recurring/count != '-1'"> |
|---|
| 2500 | | <xsl:attribute name="value"><xsl:value-of select="form/recurring/count"/></xsl:attribute> |
|---|
| 2501 | | </xsl:if> |
|---|
| 2502 | | </input> |
|---|
| 2503 | | time(s) |
|---|
| 2504 | | <input type="radio" name="recurCountUntil" value="until" id="recurUntil"> |
|---|
| 2505 | | <xsl:if test="form/recurring/until"> |
|---|
| 2506 | | <xsl:attribute name="checked">checked</xsl:attribute> |
|---|
| 2507 | | </xsl:if> |
|---|
| 2508 | | </input> |
|---|
| 2509 | | until |
|---|
| 2510 | | <span id="untilHolder"> |
|---|
| 2511 | | <span dojoType="dropdowndatepicker" formatLength="medium" value="today" saveFormat="yyyyMMdd" id="bwEventWidgetUntilDate" iconURL="{$resourcesRoot}/resources/calIcon.gif"> |
|---|
| 2512 | | <xsl:attribute name="value"><xsl:value-of select="form/start/rfc3339DateTime"/></xsl:attribute> |
|---|
| 2513 | | <xsl:text> </xsl:text> |
|---|
| | 2460 | |
|---|
| | 2461 | <!-- show or hide rrules fields: --> |
|---|
| | 2462 | <input type="checkbox" name="rrulesFlag" onclick="swapRrules(this)" value="on"/> |
|---|
| | 2463 | <span id="rrulesSwitch"> |
|---|
| | 2464 | <xsl:choose> |
|---|
| | 2465 | <xsl:when test="/bedework/creating = 'true'"> |
|---|
| | 2466 | create recurrence rules |
|---|
| | 2467 | </xsl:when> |
|---|
| | 2468 | <xsl:otherwise> |
|---|
| | 2469 | change recurrence rules |
|---|
| | 2470 | </xsl:otherwise> |
|---|
| | 2471 | </xsl:choose> |
|---|
| | 2472 | </span> |
|---|
| | 2473 | <span id="rrulesUiSwitch" class="invisible"> |
|---|
| | 2474 | <input type="checkbox" name="rrulesUiSwitch" value="advanced" onchange="swapVisible(this,'advancedRrules')"/> |
|---|
| | 2475 | show advanced recurrence rules |
|---|
| | 2476 | </span> |
|---|
| | 2477 | |
|---|
| | 2478 | <!-- wrapper for rrules: --> |
|---|
| | 2479 | <table id="rrulesTable" cellspacing="0" class="invisible"> |
|---|
| | 2480 | <tr> |
|---|
| | 2481 | <td id="recurrenceFrequency" rowspan="2"> |
|---|
| | 2482 | <strong>Frequency:</strong><br/> |
|---|
| | 2483 | <input type="radio" name="freq" value="NONE" onclick="showRrules(this.value)" checked="checked"/>none<br/> |
|---|
| | 2484 | <!--<input type="radio" name="freq" value="HOURLY" onclick="showRrules(this.value)"/>hourly<br/>--> |
|---|
| | 2485 | <input type="radio" name="freq" value="DAILY" onclick="showRrules(this.value)"/>daily<br/> |
|---|
| | 2486 | <input type="radio" name="freq" value="WEEKLY" onclick="showRrules(this.value)"/>weekly<br/> |
|---|
| | 2487 | <input type="radio" name="freq" value="MONTHLY" onclick="showRrules(this.value)"/>monthly<br/> |
|---|
| | 2488 | <input type="radio" name="freq" value="YEARLY" onclick="showRrules(this.value)"/>yearly |
|---|
| | 2489 | </td> |
|---|
| | 2490 | <!-- recurrence count, until, forever --> |
|---|
| | 2491 | <td id="recurrenceUntil"> |
|---|
| | 2492 | <div id="noneRecurrenceRules"> |
|---|
| | 2493 | no recurrence rules |
|---|
| | 2494 | </div> |
|---|
| | 2495 | <div id="recurrenceUntilRules" class="invisible"> |
|---|
| | 2496 | <strong>Repeat:</strong> |
|---|
| | 2497 | <p> |
|---|
| | 2498 | <input type="radio" name="recurCountUntil" value="forever"> |
|---|
| | 2499 | <xsl:if test="not(form/recurring) or form/recurring/count = '-1'"> |
|---|
| | 2500 | <xsl:attribute name="checked">checked</xsl:attribute> |
|---|
| | 2501 | </xsl:if> |
|---|
| | 2502 | </input> |
|---|
| | 2503 | forever |
|---|
| | 2504 | <input type="radio" name="recurCountUntil" value="count" id="recurCount"> |
|---|
| | 2505 | <xsl:if test="form/recurring/count != '-1'"> |
|---|
| | 2506 | <xsl:attribute name="checked">checked</xsl:attribute> |
|---|
| | 2507 | </xsl:if> |
|---|
| | 2508 | </input> |
|---|
| | 2509 | <input type="text" value="1" size="2" name="countHolder" onfocus="selectRecurCountUntil('recurCount')"> |
|---|
| | 2510 | <xsl:if test="form/recurring/count and form/recurring/count != '-1'"> |
|---|
| | 2511 | <xsl:attribute name="value"><xsl:value-of select="form/recurring/count"/></xsl:attribute> |
|---|
| | 2512 | </xsl:if> |
|---|
| | 2513 | </input> |
|---|
| | 2514 | time(s) |
|---|
| | 2515 | <input type="radio" name="recurCountUntil" value="until" id="recurUntil"> |
|---|
| | 2516 | <xsl:if test="form/recurring/until"> |
|---|
| | 2517 | <xsl:attribute name="checked">checked</xsl:attribute> |
|---|
| | 2518 | </xsl:if> |
|---|
| | 2519 | </input> |
|---|
| | 2520 | until |
|---|
| | 2521 | <span id="untilHolder"> |
|---|
| | 2522 | <span dojoType="dropdowndatepicker" formatLength="medium" value="today" saveFormat="yyyyMMdd" id="bwEventWidgetUntilDate" iconURL="{$resourcesRoot}/resources/calIcon.gif"> |
|---|
| | 2523 | <xsl:attribute name="value"><xsl:value-of select="form/start/rfc3339DateTime"/></xsl:attribute> |
|---|
| | 2524 | <xsl:text> </xsl:text> |
|---|
| | 2525 | </span> |
|---|
| | 2526 | </span> |
|---|
| | 2527 | </p> |
|---|
| | 2528 | </div> |
|---|
| | 2529 | </td> |
|---|
| | 2530 | </tr> |
|---|
| | 2531 | <tr> |
|---|
| | 2532 | <td id="advancedRrules" class="invisible"> |
|---|
| | 2533 | <!-- hourly --> |
|---|
| | 2534 | <div id="hourlyRecurrenceRules" class="invisible"> |
|---|
| | 2535 | <p> |
|---|
| | 2536 | <strong>Interval:</strong> |
|---|
| | 2537 | every |
|---|
| | 2538 | <input type="text" name="hourlyInterval" size="2" value="1"> |
|---|
| | 2539 | <xsl:if test="form/recurrence/interval"> |
|---|
| | 2540 | <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> |
|---|
| | 2541 | </xsl:if> |
|---|
| | 2542 | </input> |
|---|
| | 2543 | hour(s) |
|---|
| | 2544 | </p> |
|---|
| | 2545 | </div> |
|---|
| | 2546 | <!-- daily --> |
|---|
| | 2547 | <div id="dailyRecurrenceRules" class="invisible"> |
|---|
| | 2548 | <p> |
|---|
| | 2549 | <strong>Interval:</strong> |
|---|
| | 2550 | every |
|---|
| | 2551 | <input type="text" name="dailyInterval" size="2" value="1"> |
|---|
| | 2552 | <xsl:if test="form/recurrence/interval"> |
|---|
| | 2553 | <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> |
|---|
| | 2554 | </xsl:if> |
|---|
| | 2555 | </input> |
|---|
| | 2556 | day(s) |
|---|
| | 2557 | </p> |
|---|
| | 2558 | <p> |
|---|
| | 2559 | <input type="checkbox" name="swapDayMonthCheckBoxList" value="" onclick="swapVisible(this,'dayMonthCheckBoxList')"/> |
|---|
| | 2560 | in these months: |
|---|
| | 2561 | <div id="dayMonthCheckBoxList" class="invisible"> |
|---|
| | 2562 | <xsl:for-each select="/bedework/monthlabels/val"> |
|---|
| | 2563 | <xsl:variable name="pos"><xsl:value-of select="position()"/></xsl:variable> |
|---|
| | 2564 | <span class="chkBoxListItem"> |
|---|
| | 2565 | <input type="checkbox" name="dayMonths"> |
|---|
| | 2566 | <xsl:attribute name="value"><xsl:value-of select="/bedework/monthvalues/val[position() = $pos]"/></xsl:attribute> |
|---|
| | 2567 | </input> |
|---|
| | 2568 | <xsl:value-of select="."/> |
|---|
| 2515 | | </span> |
|---|
| 2516 | | </p> |
|---|
| | 2570 | <xsl:if test="$pos mod 6 = 0"><br/></xsl:if> |
|---|
| | 2571 | </xsl:for-each> |
|---|
| | 2572 | </div> |
|---|
| | 2573 | </p> |
|---|
| | 2574 | <!--<p> |
|---|
| | 2575 | <input type="checkbox" name="swapDaySetPos" value="" onclick="swapVisible(this,'daySetPos')"/> |
|---|
| | 2576 | limit to: |
|---|
| | 2577 | <div id="daySetPos" class="invisible"> |
|---|
| | 2578 | </div> |
|---|
| | 2579 | </p>--> |
|---|
| | 2580 | </div> |
|---|
| | 2581 | <!-- weekly --> |
|---|
| | 2582 | <div id="weeklyRecurrenceRules" class="invisible"> |
|---|
| | 2583 | <p> |
|---|
| | 2584 | <strong>Interval:</strong> |
|---|
| | 2585 | every |
|---|
| | 2586 | <input type="text" name="weeklyInterval" size="2" value="1"> |
|---|
| | 2587 | <xsl:if test="form/recurrence/interval"> |
|---|
| | 2588 | <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> |
|---|
| | 2589 | </xsl:if> |
|---|
| | 2590 | </input> |
|---|
| | 2591 | week(s) on: |
|---|
| | 2592 | </p> |
|---|
| | 2593 | <p> |
|---|
| | 2594 | <div id="weekRecurFields"> |
|---|
| | 2595 | <xsl:call-template name="byDayChkBoxList"> |
|---|
| | 2596 | <xsl:with-param name="name">byDayWeek</xsl:with-param> |
|---|
| | 2597 | </xsl:call-template> |
|---|
| | 2598 | </div> |
|---|
| | 2599 | </p> |
|---|
| | 2600 | <p class="weekRecurLinks"> |
|---|
| | 2601 | <a href="javascript:recurSelectWeekdays('weekRecurFields')">select weekdays</a> | |
|---|
| | 2602 | <a href="javascript:recurSelectWeekends('weekRecurFields')">select weekends</a> |
|---|
| | 2603 | </p> |
|---|
| | 2604 | <p> |
|---|
| | 2605 | Week start: |
|---|
| | 2606 | <select name="weekWkst"> |
|---|
| | 2607 | <xsl:for-each select="/bedework/shortdaynames/val"> |
|---|
| | 2608 | <xsl:variable name="pos" select="position()"/> |
|---|
| | 2609 | <option> |
|---|
| | 2610 | <xsl:attribute name="value"><xsl:value-of select="/bedework/recurdayvals/val[position() = $pos]"/></xsl:attribute> |
|---|
| | 2611 | <xsl:value-of select="."/> |
|---|
| | 2612 | </option> |
|---|
| | 2613 | </xsl:for-each> |
|---|
| | 2614 | </select> |
|---|
| | 2615 | </p> |
|---|
| | 2616 | </div> |
|---|
| | 2617 | <!-- monthly --> |
|---|
| | 2618 | <div id="monthlyRecurrenceRules" class="invisible"> |
|---|
| | 2619 | <p> |
|---|
| | 2620 | <strong>Interval:</strong> |
|---|
| | 2621 | every |
|---|
| | 2622 | <input type="text" name="monthlyInterval" size="2" value="1"> |
|---|
| | 2623 | <xsl:if test="form/recurrence/interval"> |
|---|
| | 2624 | <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> |
|---|
| | 2625 | </xsl:if> |
|---|
| | 2626 | </input> |
|---|
| | 2627 | month(s) |
|---|
| | 2628 | </p> |
|---|
| | 2629 | <div id="monthRecurFields"> |
|---|
| | 2630 | <div id="monthRecurFields1"> |
|---|
| | 2631 | on |
|---|
| | 2632 | <select name="bymonthposPos1" width="7em" onchange="changeClass('monthRecurFields2','shown')"> |
|---|
| | 2633 | <xsl:call-template name="recurrenceDayPosOptions"/> |
|---|
| | 2634 | </select> |
|---|
| | 2635 | <xsl:call-template name="byDayChkBoxList"/> |
|---|
| | 2636 | </div> |
|---|
| | 2637 | <xsl:call-template name="buildRecurFields"> |
|---|
| | 2638 | <xsl:with-param name="current">2</xsl:with-param> |
|---|
| | 2639 | <xsl:with-param name="total">10</xsl:with-param> |
|---|
| | 2640 | <xsl:with-param name="name">month</xsl:with-param> |
|---|
| | 2641 | </xsl:call-template> |
|---|
| 2518 | | </td> |
|---|
| 2519 | | </tr> |
|---|
| 2520 | | <tr> |
|---|
| 2521 | | <td class="recurrenceRules"> |
|---|
| 2522 | | <span id="advancedRecurrenceRules" class="invisible"> |
|---|
| 2523 | | <!-- none --> |
|---|
| 2524 | | <div id="noneRecurrenceRules"> |
|---|
| 2525 | | <!-- Output descriptive recurrence information. Probably not |
|---|
| 2526 | | complete yet. Replace all strings so can be |
|---|
| 2527 | | more easily internationalized. --> |
|---|
| | 2643 | <p> |
|---|
| | 2644 | <input type="checkbox" name="swapMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'monthDaysCheckBoxList')"/> |
|---|
| | 2645 | on these days:<br/> |
|---|
| | 2646 | <div id="monthDaysCheckBoxList" class="invisible"> |
|---|
| | 2647 | <xsl:call-template name="buildCheckboxList"> |
|---|
| | 2648 | <xsl:with-param name="current">1</xsl:with-param> |
|---|
| | 2649 | <xsl:with-param name="end">31</xsl:with-param> |
|---|
| | 2650 | <xsl:with-param name="name">monthDayBoxes</xsl:with-param> |
|---|
| | 2651 | </xsl:call-template> |
|---|
| | 2652 | </div> |
|---|
| | 2653 | </p> |
|---|
| | 2654 | </div> |
|---|
| | 2655 | <!-- yearly --> |
|---|
| | 2656 | <div id="yearlyRecurrenceRules" class="invisible"> |
|---|
| | 2657 | <p> |
|---|
| | 2658 | <strong>Interval:</strong> |
|---|
| | 2659 | every |
|---|
| | 2660 | <input type="text" name="yearlyInterval" size="2" value="1"> |
|---|
| | 2661 | <xsl:if test="form/recurrence/interval"> |
|---|
| | 2662 | <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> |
|---|
| | 2663 | </xsl:if> |
|---|
| | 2664 | </input> |
|---|
| | 2665 | years(s) |
|---|
| | 2666 | </p> |
|---|
| | 2667 | <div id="yearRecurFields"> |
|---|
| | 2668 | <div id="yearRecurFields1"> |
|---|
| | 2669 | on |
|---|
| | 2670 | <select name="byyearposPos1" width="7em" onchange="changeClass('yearRecurFields2','shown')"> |
|---|
| | 2671 | <xsl:call-template name="recurrenceDayPosOptions"/> |
|---|
| | 2672 | </select> |
|---|
| | 2673 | <xsl:call-template name="byDayChkBoxList"/> |
|---|
| | 2674 | </div> |
|---|
| | 2675 | <xsl:call-template name="buildRecurFields"> |
|---|
| | 2676 | <xsl:with-param name="current">2</xsl:with-param> |
|---|
| | 2677 | <xsl:with-param name="total">10</xsl:with-param> |
|---|
| | 2678 | <xsl:with-param name="name">year</xsl:with-param> |
|---|
| | 2679 | </xsl:call-template> |
|---|
| 2542 | | <!-- daily --> |
|---|
| 2543 | | <div id="dailyRecurrenceRules" class="invisible"> |
|---|
| 2544 | | <p> |
|---|
| 2545 | | <strong>Interval:</strong> |
|---|
| 2546 | | every |
|---|
| 2547 | | <input type="text" name="dailyInterval" size="2" value="1"> |
|---|
| 2548 | | <xsl:if test="form/recurrence/interval"> |
|---|
| 2549 | | <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> |
|---|
| 2550 | | </xsl:if> |
|---|
| 2551 | | </input> |
|---|
| 2552 | | day(s) |
|---|
| 2553 | | </p> |
|---|
| 2554 | | <p> |
|---|
| 2555 | | <input type="checkbox" name="swapDayMonthCheckBoxList" value="" onclick="swapVisible(this,'dayMonthCheckBoxList')"/> |
|---|
| 2556 | | in these months: |
|---|
| 2557 | | <div id="dayMonthCheckBoxList" class="invisible"> |
|---|
| 2558 | | <xsl:for-each select="/bedework/monthlabels/val"> |
|---|
| 2559 | | <xsl:variable name="pos"><xsl:value-of select="position()"/></xsl:variable> |
|---|
| 2560 | | <span class="chkBoxListItem"> |
|---|
| 2561 | | <input type="checkbox" name="dayMonths"> |
|---|
| 2562 | | <xsl:attribute name="value"><xsl:value-of select="/bedework/monthvalues/val[position() = $pos]"/></xsl:attribute> |
|---|
| 2563 | | </input> |
|---|
| 2564 | | <xsl:value-of select="."/> |
|---|
| 2565 | | </span> |
|---|
| 2566 | | <xsl:if test="$pos mod 6 = 0"><br/></xsl:if> |
|---|
| 2567 | | </xsl:for-each> |
|---|
| 2568 | | </div> |
|---|
| 2569 | | </p> |
|---|
| 2570 | | <!--<p> |
|---|
| 2571 | | <input type="checkbox" name="swapDaySetPos" value="" onclick="swapVisible(this,'daySetPos')"/> |
|---|
| 2572 | | limit to: |
|---|
| 2573 | | <div id="daySetPos" class="invisible"> |
|---|
| 2574 | | </div> |
|---|
| 2575 | | </p>--> |
|---|
| | 2696 | </p> |
|---|
| | 2697 | <p> |
|---|
| | 2698 | <input type="checkbox" name="swapYearMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'yearMonthDaysCheckBoxList')"/> |
|---|
| | 2699 | on these days of the month:<br/> |
|---|
| | 2700 | <div id="yearMonthDaysCheckBoxList" class="invisible"> |
|---|
| | 2701 | <xsl:call-template name="buildCheckboxList"> |
|---|
| | 2702 | <xsl:with-param name="current">1</xsl:with-param> |
|---|
| | 2703 | <xsl:with-param name="end">31</xsl:with-param> |
|---|
| | 2704 | <xsl:with-param name="name">yearMonthDayBoxes</xsl:with-param> |
|---|
| | 2705 | </xsl:call-template> |
|---|
| 2577 | | <!-- weekly --> |
|---|
| 2578 | | <div id="weeklyRecurrenceRules" class="invisible"> |
|---|
| 2579 | | <p> |
|---|
| 2580 | | <strong>Interval:</strong> |
|---|
| 2581 | | every |
|---|
| 2582 | | <input type="text" name="weeklyInterval" size="2" value="1"> |
|---|
| 2583 | | <xsl:if test="form/recurrence/interval"> |
|---|
| 2584 | | <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> |
|---|
| 2585 | | </xsl:if> |
|---|
| 2586 | | </input> |
|---|
| 2587 | | week(s) on: |
|---|
| 2588 | | </p> |
|---|
| 2589 | | <p> |
|---|
| 2590 | | <div id="weekRecurFields"> |
|---|
| 2591 | | <xsl:call-template name="byDayChkBoxList"> |
|---|
| 2592 | | <xsl:with-param name="name">byDayWeek</xsl:with-param> |
|---|
| 2593 | | </xsl:call-template> |
|---|
| 2594 | | </div> |
|---|
| 2595 | | </p> |
|---|
| 2596 | | <p class="weekRecurLinks"> |
|---|
| 2597 | | <a href="javascript:recurSelectWeekdays('weekRecurFields')">select weekdays</a> | |
|---|
| 2598 | | <a href="javascript:recurSelectWeekends('weekRecurFields')">select weekends</a> |
|---|
| 2599 | | </p> |
|---|
| 2600 | | <p> |
|---|
| 2601 | | Week start: |
|---|
| 2602 | | <select name="weekWkst"> |
|---|
| 2603 | | <xsl:for-each select="/bedework/shortdaynames/val"> |
|---|
| 2604 | | <xsl:variable name="pos" select="position()"/> |
|---|
| 2605 | | <option> |
|---|
| 2606 | | <xsl:attribute name="value"><xsl:value-of select="/bedework/recurdayvals/val[position() = $pos]"/></xsl:attribute> |
|---|
| 2607 | | <xsl:value-of select="."/> |
|---|
| 2608 | | </option> |
|---|
| 2609 | | </xsl:for-each> |
|---|
| 2610 | | </select> |
|---|
| 2611 | | </p> |
|---|
| | 2707 | </p> |
|---|
| | 2708 | <p> |
|---|
| | 2709 | <input type="checkbox" name="swapYearWeeksCheckBoxList" value="" onclick="swapVisible(this,'yearWeeksCheckBoxList')"/> |
|---|
| | 2710 | in these weeks of the year:<br/> |
|---|
| | 2711 | <div id="yearWeeksCheckBoxList" class="invisible"> |
|---|
| | 2712 | <xsl:call-template name="buildCheckboxList"> |
|---|
| | 2713 | <xsl:with-param name="current">1</xsl:with-param> |
|---|
| | 2714 | <xsl:with-param name="end">53</xsl:with-param> |
|---|
| | 2715 | <xsl:with-param name="name">yearWeekBoxes</xsl:with-param> |
|---|
| | 2716 | </xsl:call-template> |
|---|
| 2613 | | <!-- monthly --> |
|---|
| 2614 | | <div id="monthlyRecurrenceRules" class="invisible"> |
|---|
| 2615 | | <p> |
|---|
| 2616 | | <strong>Interval:</strong> |
|---|
| 2617 | | every |
|---|
| 2618 | | <input type="text" name="monthlyInterval" size="2" value="1"> |
|---|
| 2619 | | <xsl:if test="form/recurrence/interval"> |
|---|
| 2620 | | <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> |
|---|
| 2621 | | </xsl:if> |
|---|
| 2622 | | </input> |
|---|
| 2623 | | month(s) |
|---|
| 2624 | | </p> |
|---|
| 2625 | | <div id="monthRecurFields"> |
|---|
| 2626 | | <div id="monthRecurFields1"> |
|---|
| 2627 | | on |
|---|
| 2628 | | <select name="bymonthposPos1" width="7em" onchange="changeClass('monthRecurFields2','shown')"> |
|---|
| 2629 | | <xsl:call-template name="recurrenceDayPosOptions"/> |
|---|
| 2630 | | </select> |
|---|
| 2631 | | <xsl:call-template name="byDayChkBoxList"/> |
|---|
| 2632 | | </div> |
|---|
| 2633 | | <xsl:call-template name="buildRecurFields"> |
|---|
| 2634 | | <xsl:with-param name="current">2</xsl:with-param> |
|---|
| 2635 | | <xsl:with-param name="total">10</xsl:with-param> |
|---|
| 2636 | | <xsl:with-param name="name">month</xsl:with-param> |
|---|
| 2637 | | </xsl:call-template> |
|---|
| 2638 | | </div> |
|---|
| 2639 | | <p> |
|---|
| 2640 | | <input type="checkbox" name="swapMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'monthDaysCheckBoxList')"/> |
|---|
| 2641 | | on these days:<br/> |
|---|
| 2642 | | <div id="monthDaysCheckBoxList" class="invisible"> |
|---|
| 2643 | | <xsl:call-template name="buildCheckboxList"> |
|---|
| 2644 | | <xsl:with-param name="current">1</xsl:with-param> |
|---|
| 2645 | | <xsl:with-param name="end">31</xsl:with-param> |
|---|
| 2646 | | <xsl:with-param name="name">monthDayBoxes</xsl:with-param> |
|---|
| 2647 | | </xsl:call-template> |
|---|
| 2648 | | </div> |
|---|
| 2649 | | </p> |
|---|
| | 2718 | </p> |
|---|
| | 2719 | <p> |
|---|
| | 2720 | <input type="checkbox" name="swapYearDaysCheckBoxList" value="" onclick="swapVisible(this,'yearDaysCheckBoxList')"/> |
|---|
| | 2721 | on these days of the year:<br/> |
|---|
| | 2722 | <div id="yearDaysCheckBoxList" class="invisible"> |
|---|
| | 2723 | <xsl:call-template name="buildCheckboxList"> |
|---|
| | 2724 | <xsl:with-param name="current">1</xsl:with-param> |
|---|
| | 2725 | <xsl:with-param name="end">366</xsl:with-param> |
|---|
| | 2726 | <xsl:with-param name="name">yearDayBoxes</xsl:with-param> |
|---|
| | 2727 | </xsl:call-template> |
|---|
| 2651 | | <!-- yearly --> |
|---|
| 2652 | | <div id="yearlyRecurrenceRules" class="invisible"> |
|---|
| 2653 | | <p> |
|---|
| 2654 | | <strong>Interval:</strong> |
|---|
| 2655 | | every |
|---|
| 2656 | | <input type="text" name="yearlyInterval" size="2" value="1"> |
|---|
| 2657 | | <xsl:if test="form/recurrence/interval"> |
|---|
| 2658 | | <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> |
|---|
| 2659 | | </xsl:if> |
|---|
| 2660 | | </input> |
|---|
| 2661 | | years(s) |
|---|
| 2662 | | </p> |
|---|
| 2663 | | <div id="yearRecurFields"> |
|---|
| 2664 | | <div id="yearRecurFields1"> |
|---|
| 2665 | | on |
|---|
| 2666 | | <select name="byyearposPos1" width="7em" onchange="changeClass('yearRecurFields2','shown')"> |
|---|
| 2667 | | <xsl:call-template name="recurrenceDayPosOptions"/> |
|---|
| 2668 | | </select> |
|---|
| 2669 | | <xsl:call-template name="byDayChkBoxList"/> |
|---|
| 2670 | | </div> |
|---|
| 2671 | | <xsl:call-template name="buildRecurFields"> |
|---|
| 2672 | | <xsl:with-param name="current">2</xsl:with-param> |
|---|
| 2673 | | <xsl:with-param name="total">10</xsl:with-param> |
|---|
| 2674 | | <xsl:with-param name="name">year</xsl:with-param> |
|---|
| 2675 | | </xsl:call-template> |
|---|
| 2676 | | </div> |
|---|
| 2677 | | <p> |
|---|
| 2678 | | <input type="checkbox" name="swapYearMonthCheckBoxList" value="" onclick="swapVisible(this,'yearMonthCheckBoxList')"/> |
|---|
| 2679 | | in these months: |
|---|
| 2680 | | <div id="yearMonthCheckBoxList" class="invisible"> |
|---|
| 2681 | | <xsl:for-each select="/bedework/monthlabels/val"> |
|---|
| 2682 | | <xsl:variable name="pos"><xsl:value-of select="position()"/></xsl:variable> |
|---|
| 2683 | | <span class="chkBoxListItem"> |
|---|
| 2684 | | <input type="checkbox" name="yearMonths"> |
|---|
| 2685 | | <xsl:attribute name="value"><xsl:value-of select="/bedework/monthvalues/val[position() = $pos]"/></xsl:attribute> |
|---|
| 2686 | | </input> |
|---|
| 2687 | | <xsl:value-of select="."/> |
|---|
| 2688 | | </span> |
|---|
| 2689 | | <xsl:if test="$pos mod 6 = 0"><br/></xsl:if> |
|---|
| 2690 | | </xsl:for-each> |
|---|
| 2691 | | </div> |
|---|
| 2692 | | </p> |
|---|
| 2693 | | <p> |
|---|
| 2694 | | <input type="checkbox" name="swapYearMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'yearMonthDaysCheckBoxList')"/> |
|---|
| 2695 | | on these days of the month:<br/> |
|---|
| 2696 | | <div id="yearMonthDaysCheckBoxList" class="invisible"> |
|---|
| 2697 | | <xsl:call-template name="buildCheckboxList"> |
|---|
| 2698 | | <xsl:with-param name="current">1</xsl:with-param> |
|---|
| 2699 | | <xsl:with-param name="end">31</xsl:with-param> |
|---|
| 2700 | | <xsl:with-param name="name">yearMonthDayBoxes</xsl:with-param> |
|---|
| 2701 | | </xsl:call-template> |
|---|
| 2702 | | </div> |
|---|
| 2703 | | </p> |
|---|
| 2704 | | <p> |
|---|
| 2705 | | <input type="checkbox" name="swapYearWeeksCheckBoxList" value="" onclick="swapVisible(this,'yearWeeksCheckBoxList')"/> |
|---|
| 2706 | | in these weeks of the year:<br/> |
|---|
| 2707 | | <div id="yearWeeksCheckBoxList" class="invisible"> |
|---|
| 2708 | | <xsl:call-template name="buildCheckboxList"> |
|---|
| 2709 | | <xsl:with-param name="current">1</xsl:with-param> |
|---|
| 2710 | | <xsl:with-param name="end">53</xsl:with-param> |
|---|
| 2711 | | <xsl:with-param name="name">yearWeekBoxes</xsl:with-param> |
|---|
| 2712 | | </xsl:call-template> |
|---|
| 2713 | | </div> |
|---|
| 2714 | | </p> |
|---|
| 2715 | | <p> |
|---|
| 2716 | | <input type="checkbox" name="swapYearDaysCheckBoxList" value="" onclick="swapVisible(this,'yearDaysCheckBoxList')"/> |
|---|
| 2717 | | on these days of the year:<br/> |
|---|
| 2718 | | <div id="yearDaysCheckBoxList" class="invisible"> |
|---|
| 2719 | | <xsl:call-template name="buildCheckboxList"> |
|---|
| 2720 | | <xsl:with-param name="current">1</xsl:with-param> |
|---|
| 2721 | | <xsl:with-param name="end">366</xsl:with-param> |
|---|
| 2722 | | <xsl:with-param name="name">yearDayBoxes</xsl:with-param> |
|---|
| 2723 | | </xsl:call-template> |
|---|
| 2724 | | </div> |
|---|
| 2725 | | </p> |
|---|
| 2726 | | <p> |
|---|
| 2727 | | Week start: |
|---|
| 2728 | | <select name="yearWkst"> |
|---|
| 2729 | | <xsl:for-each select="/bedework/shortdaynames/val"> |
|---|
| 2730 | | <xsl:variable name="pos" select="position()"/> |
|---|
| 2731 | | <option> |
|---|
| 2732 | | <xsl:attribute name="value"><xsl:value-of select="/bedework/recurdayvals/val[position() = $pos]"/></xsl:attribute> |
|---|
| 2733 | | <xsl:value-of select="."/> |
|---|
| 2734 | | </option> |
|---|
| 2735 | | </xsl:for-each> |
|---|
| 2736 | | </select> |
|---|
| 2737 | | </p> |
|---|
| 2738 | | </div> |
|---|
| 2739 | | </span> |
|---|
| 2740 | | </td> |
|---|
| 2741 | | </tr> |
|---|
| 2742 | | </table> |
|---|
| | 2729 | </p> |
|---|
| | 2730 | <p> |
|---|
| | 2731 | Week start: |
|---|
| | 2732 | <select name="yearWkst"> |
|---|
| | 2733 | <xsl:for-each select="/bedework/shortdaynames/val"> |
|---|
| | 2734 | <xsl:variable name="pos" select="position()"/> |
|---|
| | 2735 | <option> |
|---|
| | 2736 | <xsl:attribute name="value"><xsl:value-of select="/bedework/recurdayvals/val[position() = $pos]"/></xsl:attribute> |
|---|
| | 2737 | <xsl:value-of select="."/> |
|---|
| | 2738 | </option> |
|---|
| | 2739 | </xsl:for-each> |
|---|
| | 2740 | </select> |
|---|
| | 2741 | </p> |
|---|
| | 2742 | </div> |
|---|
| | 2743 | </td> |
|---|
| | 2744 | </tr> |
|---|
| | 2745 | </table> |
|---|
| | 2746 | <!-- recurrence dates (rdates) --> |
|---|
| | 2747 | <div id="recurrenceDatesButton"> |
|---|
| | 2748 | <input type="button" value="add/remove recurrence dates" onclick="launchSizedWindow('{$event-showRdates}','560','400')"/> |
|---|