Changeset 1209
- Timestamp:
- 01/09/07 22:31:30
- Files:
-
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/resources/javascript/bedework.js (modified) (1 diff)
- trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.css (modified) (25 diffs)
- trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl (modified) (59 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl
r1185 r1209 1247 1247 <input type="hidden" name="calPath" value=""/> 1248 1248 <!-- fill these on submit --> 1249 <input type="hidden" name="eventStartDate" value=""/> 1250 <input type="hidden" name="eventEndDate" value=""/> 1249 <input type="hidden" name="eventStartDate.year" value=""/> 1250 <input type="hidden" name="eventStartDate.month" value=""/> 1251 <input type="hidden" name="eventStartDate.day" value=""/> 1252 <input type="hidden" name="eventEndDate.year" value=""/> 1253 <input type="hidden" name="eventEndDate.month" value=""/> 1254 <input type="hidden" name="eventEndDate.day" value=""/> 1251 1255 <!-- static fields --> 1252 1256 <input type="hidden" name="nocache" value="no"/> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/resources/javascript/bedework.js
r1169 r1209 17 17 } 18 18 function fillExportFields(formId) { 19 var formObj = document.getElementById(formId); 20 formObj.eventStartDate.value = dojo.widget.byId('bwExportCalendarWidgetStartDate').getValue(); 21 formObj.eventEndDate.value = dojo.widget.byId('bwExportCalendarWidgetEndDate').getValue(); 19 var formObj = document.getElementById(formId); 20 var startDate = new Date(); 21 startDate = dojo.widget.byId("bwExportCalendarWidgetStartDate").getDate(); 22 formObj["eventStartDate.year"].value = startDate.getFullYear(); 23 formObj["eventStartDate.month"].value = startDate.getMonth() + 1; 24 formObj["eventStartDate.day"].value = startDate.getDate(); 25 26 var endDate = new Date(); 27 endDate = dojo.widget.byId("bwExportCalendarWidgetEndDate").getDate(); 28 formObj["eventEndDate.year"].value = endDate.getFullYear(); 29 formObj["eventEndDate.month"].value = endDate.getMonth() + 1; 30 formObj["eventEndDate.day"].value = endDate.getDate(); 22 31 } 23 32 function hideWidget(id) { trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.css
r1204 r1209 41 41 h2 .formButtons { 42 42 float: right; 43 font-size: 0.8em; 44 } 45 div.eventSubmitButtons { 46 text-align: right; 47 margin: 1em 0.5em; 48 } 49 .eventSubmitButtons input, 50 .formButtons input { 51 margin: 0; 52 font-size: 0.8em; 43 53 } 44 54 h3 { … … 72 82 } 73 83 #logoTable img { 74 display: inline;75 84 padding: 0 0 2px 5px; 85 margin: 0; 76 86 } 77 87 #logoTable #schoolLinksCell { … … 110 120 font-weight : bold; 111 121 text-align : center; 112 vertical-align: middle;113 122 white-space: nowrap; 114 123 } … … 118 127 padding-left: 0.5em; 119 128 padding-right: 0.5em; 129 vertical-align: middle; 120 130 } 121 131 #curDateRangeTable td.sideBarOpenCloseIcon { … … 136 146 text-align : right; 137 147 white-space: nowrap; 148 vertical-align: middle; 138 149 } 139 150 #curDateRangeTable td.rssPrint img { … … 302 313 #utilBarTable img { 303 314 vertical-align: middle; 315 margin: 0; 316 padding: 0; 304 317 } 305 318 #searchTable { … … 344 357 } 345 358 #tabsTable { 346 margin: 0em; 359 margin: 0; 360 padding: 0; 347 361 text-align: center; 348 362 vertical-align: bottom; … … 352 366 } 353 367 #tabsTable td { 354 padding-top: 4px; 355 white-space: nowrap; 368 padding: 4px 0 0 0; 369 white-space: nowrap; 370 } 371 #tabsTable img { 372 display: inline; 356 373 } 357 374 #tabsTable a { … … 359 376 color: #ccc; 360 377 } 361 #tabsTable .rightCell {378 #tabsTable td.rightCell { 362 379 width: 100%; 363 380 background : url(../../resources/std-tab-space.gif); … … 409 426 #navigationBarTable td.leftCell .prevImg { 410 427 margin: 0; 428 padding: 0; 411 429 vertical-align: middle; 412 430 } 413 431 #navigationBarTable td.leftCell .nextImg { 414 margin -left:0.2em;415 margin-right: 0.5em;432 margin: 0 0.5em 0 0.2em; 433 padding: 0; 416 434 vertical-align: middle; 417 435 } … … 458 476 margin: 0 0 1em 0; 459 477 padding: 0; 460 font-size: 0. 9em;478 font-size: 0.8em; 461 479 color: black; 462 480 background-color: #eee; … … 475 493 color: black; 476 494 background-color: white; 477 font-weight: bold;478 495 border-bottom: 1px solid white; 479 496 } … … 499 516 padding: 0; 500 517 } 518 #eventAccessLink { 519 float: right; 520 font-size: 0.8em; 521 margin: 0 1em; 522 } 501 523 /* table below is used for almost all forms */ 502 524 table.common { … … 505 527 margin: 0px; 506 528 padding: 0px; 529 } 530 table.dottedBorder { 531 border: 1px dotted #ccc; 507 532 } 508 533 table.common th { … … 579 604 white-space: nowrap; 580 605 } 606 table.dottedBorder td.fieldname { 607 text-align: right; 608 } 581 609 table.common td.submit { 582 610 padding: 0.5em 0.5em 0.2em 0.5em; 583 611 color: black; 584 background: #f5f5f5;612 background: white; 585 613 text-align: right; 586 614 border-top: 1px solid #ccc; … … 592 620 text-align: center; 593 621 } 594 table.common td.tzTime {595 /*font-style: italic;*/596 }597 622 table.common #eventActions { 598 623 float: right; … … 619 644 padding: 0.5em; 620 645 } 621 table.common .dateFields { 646 table.common .padMeTop { 647 padding-top: 1em !important; 648 } 649 table.common .padMe { 650 padding: 1em !important; 651 } 652 .dateFields { 622 653 display: inline; 623 654 } 624 table.common.timeFields {655 .timeFields { 625 656 display: inline; 626 657 margin-left: 1em; 627 658 } 628 table.common.dateStartEndBox {659 .dateStartEndBox { 629 660 border: 1px solid #ccb; 630 661 margin: 4px; … … 632 663 white-space: nowrap; 633 664 } 634 table.common.dateStartEndBox strong {665 .dateStartEndBox strong { 635 666 display: block; 636 667 } 637 table.common.startDateLabel {668 .startDateLabel { 638 669 margin-left: 26px; 639 670 } 640 table.commonselect.timezones {671 select.timezones { 641 672 margin-left: 1em; 642 673 width: 160px; 643 674 } 644 table.commondiv.durationBox {675 div.durationBox { 645 676 border: 1px solid #ccb; 646 677 display: inline; … … 648 679 padding: 4px; 649 680 } 650 table.common.durationSpacerText {681 .durationSpacerText { 651 682 font-weight: bold; 652 683 margin: 0 1em; 653 684 } 654 table.common .padMeTop {655 padding-top: 1em !important;656 }657 table.common .padMe {658 padding: 1em !important;659 }660 685 table.scheduling td { 661 686 white-space: nowrap; … … 663 688 table#manage td { 664 689 padding: 0.2em 0 0 0.5em; 690 } 691 #bwEventTab-Recurrence { 692 margin: 0 1em; 693 font-size: 0.9em; 665 694 } 666 695 #bwEventCalDisplay { … … 670 699 #clock { 671 700 position: absolute; 672 top: 460px; 673 left: 320px; 701 top: 160px; 702 margin: auto; 703 } 704 #startTimeFields img, 705 #endTimeFields img { 706 vertical-align: middle; 674 707 } 675 708 #tztable { … … 684 717 margin-bottom: 0.5em; 685 718 } 719 #recurrenceUiSwitch { 720 margin: 0.2em 0 2em 0; 721 font-size: 0.8em; 722 } 723 #recurrenceFields { 724 margin: 0; 725 border: 1px solid #ddd; 726 } 686 727 #recurrenceFields #recurrenceTable strong { 687 728 display: inline; 688 729 } 689 730 #recurrenceFields #recurrenceTable td.recurrenceFrequency { 690 padding: 0.5em 1em 0 0;731 padding: 0.5em 1em; 691 732 } 692 733 #recurrenceFields #recurrenceTable td.recurrenceRules { 693 padding: 0.5em 00.5em 1em;734 padding: 0.5em 1em 0.5em 1em; 694 735 border-left: 1px solid #ddd; 695 736 } … … 701 742 #recurrenceFields #recurrenceTable td.recurrenceRules #advancedRecurrenceRules { 702 743 display: block; 703 border-bottom: 1px solid #ddd; 704 } 705 #recurrenceFields #recurrenceTable td.recurrenceRules .rruleBlock { 706 margin: 0 0 0.5em 2em; 744 border-top: 1px solid #ddd; 745 padding: 1em 0; 707 746 } 708 747 .chkBoxListItem { … … 738 777 display: block; 739 778 clear: both; 779 white-space: nowrap !important; 740 780 } 741 781 #recurrenceDatesButton { 742 margin -top: 0.5em;782 margin: 0 0 1em 0; 743 783 } 744 784 .shown { … … 859 899 color: black; 860 900 background: #eee; 861 }862 /* default title of movable dialog boxes */863 #dialogTitle {864 cursor: move;865 901 } 866 902 #weekCalendarTable { trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r1204 r1209 2 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 3 <xsl:output 4 method="html" 4 method="xhtml" 5 indent="no" 6 media-type="text/html" 7 doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" 8 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" 9 standalone="yes" 10 omit-xml-declaration="yes"/> 11 <!--<xsl:output 12 method="xhtml" 5 13 indent="yes" 6 14 media-type="text/html" … … 8 16 doctype-system="http://www.w3.org/TR/html4/loose.dtd" 9 17 standalone="yes" 10 /> 18 />--> 11 19 <!-- ========================================= --> 12 20 <!-- PERSONAL CALENDAR STYLESHEET --> … … 76 84 <xsl:variable name="addEvent" select="/bedework/urlPrefixes/event/addEvent"/> 77 85 <xsl:variable name="event-addEventRefComplete" select="/bedework/urlPrefixes/event/addEventRefComplete/a/@href"/> 86 <xsl:variable name="event-initAccess" select="/bedework/urlPrefixes/event/initAccess/a/@href"/> 78 87 <xsl:variable name="event-setAccess" select="/bedework/urlPrefixes/event/setAccess/a/@href"/> 79 88 <xsl:variable name="event-selectCalForEvent" select="/bedework/urlPrefixes/event/selectCalForEvent/a/@href"/> … … 322 331 <title>Bedework: Personal Calendar Client</title> 323 332 <meta name="robots" content="noindex,nofollow"/> 333 <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> 324 334 <link rel="stylesheet" href="{$resourcesRoot}/default/default/default.css"/> 325 335 <link rel="stylesheet" href="{$resourcesRoot}/default/default/subColors.css"/> 326 336 <link rel="stylesheet" type="text/css" media="print" href="{$resourcesRoot}/default/default/print.css" /> 327 337 <link rel="icon" type="image/ico" href="{$resourcesRoot}/resources/bedework.ico" /> 338 <!-- note: the non-breaking spaces in the script bodies below are to avoid 339 losing the script closing tags (which avoids browser problems) --> 328 340 <xsl:if test="/bedework/page='addEvent' or 329 341 /bedework/page='addEventRef' or … … 336 348 /bedework/page='attendeeRespond' or 337 349 /bedework/page='modSchedulingPrefs'"> 338 <script type="text/javascript" src="{$resourcesRoot}/resources/includes.js"></script> 350 <script type="text/javascript" src="{$resourcesRoot}/resources/bedework.js"> </script> 351 </xsl:if> 352 <xsl:if test="/bedework/page='modSchedulingPrefs'"> 353 <script type="text/javascript" src="{$resourcesRoot}/resources/bedeworkPrefs.js"> </script> 339 354 </xsl:if> 340 355 <xsl:if test="/bedework/page='addEvent' or 341 356 /bedework/page='editEvent' or 342 357 /bedework/page='calendarListForExport'"> 343 <script type="text/javascript" src="{$resourcesRoot}/resources/bwClock.js"> </script>358 <script type="text/javascript" src="{$resourcesRoot}/resources/bwClock.js"> </script> 344 359 <link rel="stylesheet" href="{$resourcesRoot}/resources/bwClock.css"/> 345 <script type="text/javascript" src="{$resourcesRoot}/resources/dynCalendarWidget.js"></script> 346 <link rel="stylesheet" href="{$resourcesRoot}/resources/dynCalendarWidget.css"/> 347 <script type="text/javascript" src="{$resourcesRoot}/resources/browserSniffer.js"></script> 348 <script type="text/javascript" src="/bedework-common/javascript/dojo/dojo.js"/> 360 <script type="text/javascript" src="/bedework-common/javascript/dojo/dojo.js"> </script> 361 <script type="text/javascript" src="{$resourcesRoot}/resources/bedeworkEventForm.js"> </script> 349 362 </xsl:if> 350 363 <script type="text/javascript"> … … 508 521 </xsl:choose> 509 522 </xsl:variable> 510 <table border="0" cellpadding="0"cellspacing="0" id="tabsTable">523 <table cellspacing="0" id="tabsTable"> 511 524 <tr> 512 525 <td> … … 562 575 </xsl:when> 563 576 <xsl:otherwise> 564 <table border="0" cellpadding="0"cellspacing="0" id="tabsTable">577 <table cellspacing="0" id="tabsTable"> 565 578 <tr> 566 579 <td> … … 1060 1073 <xsl:value-of select="value"/> 1061 1074 </a> 1062 <ul> 1063 <xsl:apply-templates select="event" mode="calendarLayout"> 1064 <xsl:with-param name="dayPos" select="$dayPos"/> 1065 </xsl:apply-templates> 1066 </ul> 1075 <xsl:if test="event"> 1076 <ul> 1077 <xsl:apply-templates select="event" mode="calendarLayout"> 1078 <xsl:with-param name="dayPos" select="$dayPos"/> 1079 </xsl:apply-templates> 1080 </ul> 1081 </xsl:if> 1067 1082 </td> 1068 1083 </xsl:if> … … 1100 1115 <xsl:value-of select="value"/> 1101 1116 </a> 1102 <ul> 1103 <xsl:apply-templates select="event" mode="calendarLayout"> 1104 <xsl:with-param name="dayPos" select="$dayPos"/> 1105 </xsl:apply-templates> 1106 </ul> 1117 <xsl:if test="event"> 1118 <ul> 1119 <xsl:apply-templates select="event" mode="calendarLayout"> 1120 <xsl:with-param name="dayPos" select="$dayPos"/> 1121 </xsl:apply-templates> 1122 </ul> 1123 </xsl:if> 1107 1124 </td> 1108 1125 </xsl:otherwise> … … 1733 1750 <xsl:template match="formElements" mode="addEvent"> 1734 1751 <!-- The name "eventForm" is referenced by several javascript functions. Do not 1735 change it without modifying includes.js -->1736 <form name="eventForm" method="post" action="{$addEvent}" id="standardForm" onsubmit="set Recurrence(this)">1752 change it without modifying bedework.js --> 1753 <form name="eventForm" method="post" action="{$addEvent}" id="standardForm" onsubmit="setEventFields(this)"> 1737 1754 <h2> 1738 1755 <span class="formButtons"> 1739 <input name="submit" type="submit" value="save event"/>  1756 <input name="submit" type="submit" value="save event"/> 1740 1757 <input name="cancelled" type="submit" value="cancel"/> 1741 1758 </span> … … 1744 1761 <xsl:apply-templates select="." mode="eventForm"/> 1745 1762 </form> 1746 1747 <!-- Access tab (must exist outside of event form -->1748 <!-- =============================================== -->1749 <div id="bwEventTab-Access" class="invisible">1750 <div id="sharingBox">1751 <h3>Current Access:</h3>1752 Sharing may be added once an event is created1753 </div>1754 </div>1755 1763 </xsl:template> 1756 1764 … … 1763 1771 <xsl:variable name="recurrenceId" select="recurrenceId"/> 1764 1772 <!-- The name "eventForm" is referenced by several javascript functions. Do not 1765 change it without modifying includes.js -->1766 <form name="eventForm" method="post" action="{$updateEvent}" id="standardForm" onsubmit="set Recurrence(this)">1773 change it without modifying bedework.js --> 1774 <form name="eventForm" method="post" action="{$updateEvent}" id="standardForm" onsubmit="setEventFields(this)"> 1767 1775 <h2> 1768 1776 <span class="formButtons"> 1769 <input name="submit" type="submit" value="save event"/>  1777 <input name="submit" type="submit" value="save event"/> 1770 1778 <input name="cancelled" type="submit" value="cancel"/> 1771 <input type="button" value="go to view" onclick="location.replace('{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}')"/>1772 1779 </span> 1773 1780 Edit Event … … 1775 1782 <xsl:apply-templates select="." mode="eventForm"/> 1776 1783 </form> 1777 1778 <!-- Access tab (must exist outside of event form) --> 1779 <!-- ============================================= --> 1780 <div id="bwEventTab-Access" class="invisible"> 1781 <div id="sharingBox"> 1782 <xsl:apply-templates select="/bedework/access/acl" mode="currentAccess"> 1783 <xsl:with-param name="action" select="$event-setAccess"/> 1784 <xsl:with-param name="calPathEncoded" select="$calPathEncoded"/> 1785 <xsl:with-param name="guid" select="$guid"/> 1786 <xsl:with-param name="recurrenceId" select="$recurrenceId"/> 1787 </xsl:apply-templates> 1788 <form name="eventShareForm" action="{$event-setAccess}" id="shareForm"> 1789 <input type="hidden" name="calPath" value="{$calPath}"/> 1790 <input type="hidden" name="guid" value="{$guid}"/> 1791 <input type="hidden" name="recurid" value="{$recurrenceId}"/> 1792 <xsl:call-template name="entityAccessForm"/> 1793 </form> 1794 </div> 1795 </div> 1796 </xsl:template> 1784 </xsl:template> 1785 1797 1786 1798 1787 <!--==== ADD and EDIT EVENT FORM ====--> … … 1804 1793 <xsl:variable name="recurrenceId" select="recurrenceId"/> 1805 1794 <input type="hidden" name="endType" value="date"/> 1806 <table class="common" cellspacing="0"> 1795 1807 1796 <!-- event info for edit event --> 1808 1797 <xsl:if test="/bedework/creating != 'true'"> 1809 <tr> 1810 <th colspan="2" class="commonHeader"> 1811 <div id="eventActions"> 1812 <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1813 <img src="{$resourcesRoot}/resources/glassFill-icon-viewGray.gif" width="13" height="13" border="0" alt="view"/> 1814 View 1815 </a> 1816 | 1817 <xsl:choose> 1818 <xsl:when test="recurring='true'"> 1819 <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 1820 Delete: 1821 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="delete master (recurring event)">all</a>,<a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="delete instance (recurring event)">instance</a> 1822 </xsl:when> 1823 <xsl:otherwise> 1824 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="delete event"> 1798 <table class="common" cellspacing="0"> 1799 <tr> 1800 <th colspan="2" class="commonHeader"> 1801 <div id="eventActions"> 1802 <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1803 <img src="{$resourcesRoot}/resources/glassFill-icon-viewGray.gif" width="13" height="13" border="0" alt="view"/> 1804 View 1805 </a> 1806 | 1807 <xsl:choose> 1808 <xsl:when test="recurring='true'"> 1825 1809 <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 1826 Delete 1827 </a> 1828 </xsl:otherwise> 1829 </xsl:choose> 1830 </div> 1831 Personal Event 1832 </th> 1833 </tr> 1810 Delete: 1811 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="delete master (recurring event)">all</a>,<a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="delete instance (recurring event)">instance</a> 1812 </xsl:when> 1813 <xsl:otherwise> 1814 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="delete event"> 1815 <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 1816 Delete 1817 </a> 1818 </xsl:otherwise> 1819 </xsl:choose> 1820 </div> 1821 Personal Event 1822 </th> 1823 </tr> 1824 </table> 1834 1825 </xsl:if> 1835 1826 1836 1827 <!-- event form submenu --> 1837 <tr> 1838 <td colspan="2"> 1839 <ul id="eventFormTabs" class="submenu"> 1840 <li class="selected"> 1841 <a href="javascript:setTab('eventFormTabs',0); show('bwEventTab-Basic'); hide('bwEventTab-Details','bwEventTab-Recurrence','bwEventTab-Access');"> 1842 basic 1843 </a> 1844 </li> 1845 <li> 1846 <a href="javascript:setTab('eventFormTabs',1); show('bwEventTab-Details'); hide('bwEventTab-Basic','bwEventTab-Recurrence','bwEventTab-Access');"> 1847 details 1848 </a> 1849 </li> 1850 <li> 1851 <a href="javascript:setTab('eventFormTabs',2); show('bwEventTab-Recurrence'); hide('bwEventTab-Details','bwEventTab-Basic','bwEventTab-Access');"> 1852 recurrence 1853 </a> 1854 </li> 1855 <li> 1856 <a href="javascript:setTab('eventFormTabs',3); show('bwEventTab-Access'); hide('bwEventTab-Details','bwEventTab-Recurrence','bwEventTab-Basic');"> 1857 access 1858 </a> 1859 <!-- note, the access tab is outside of the events form --> 1860 </li> 1861 </ul> 1862 </td> 1863 </tr> 1864 </table> 1828 <xsl:if test="/bedework/creating = 'false'"> 1829 <a href="{$event-initAccess}" id="eventAccessLink">set event access</a> 1830 </xsl:if> 1831 <ul id="eventFormTabs" class="submenu"> 1832 <li class="selected"> 1833 <a href="javascript:setTab('eventFormTabs',0); show('bwEventTab-Basic'); hide('bwEventTab-Details','bwEventTab-Recurrence');"> 1834 basic 1835 </a> 1836 </li> 1837 <li> 1838 <a href="javascript:setTab('eventFormTabs',1); show('bwEventTab-Details'); hide('bwEventTab-Basic','bwEventTab-Recurrence');"> 1839 details 1840 </a> 1841 </li> 1842 <li> 1843 <a href="javascript:setTab('eventFormTabs',2); show('bwEventTab-Recurrence'); hide('bwEventTab-Details','bwEventTab-Basic');"> 1844 recurrence 1845 </a> 1846 </li> 1847 </ul> 1865 1848 1866 1849 <!-- Basic tab --> … … 1869 1852 <div id="bwEventTab-Basic"> 1870 1853 <!--<h3>Basic Event Recurrence:</h3>--> 1871 <table cellspacing="0" class="common ">1854 <table cellspacing="0" class="common dottedBorder"> 1872 1855 <!-- Calendar in which to place event --> 1873 1856 <tr> … … 1926 1909 <xsl:when test="form/allDay/input/@checked='checked'"> 1927 1910 <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="on" checked="checked"/> 1928 <input type="hidden" name="eventStartDate.dateOnly" value=" on" id="allDayStartDateField"/>1929 <input type="hidden" name="eventEndDate.dateOnly" value=" on" id="allDayEndDateField"/>1911 <input type="hidden" name="eventStartDate.dateOnly" value="true" id="allDayStartDateField"/> 1912 <input type="hidden" name="eventEndDate.dateOnly" value="true" id="allDayEndDateField"/> 1930 1913 </xsl:when> 1931 1914 <xsl:otherwise> 1932 1915 <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="off"/> 1933 <input type="hidden" name="eventStartDate.dateOnly" value=" off" id="allDayStartDateField"/>1934 <input type="hidden" name="eventEndDate.dateOnly" value=" off" id="allDayEndDateField"/>1916 <input type="hidden" name="eventStartDate.dateOnly" value="false" id="allDayStartDateField"/> 1917 <input type="hidden" name="eventEndDate.dateOnly" value="false" id="allDayEndDateField"/> 1935 1918 </xsl:otherwise> 1936 1919 </xsl:choose> … … 1941 1924 <xsl:when test="form/floating/input/@checked='checked'"> 1942 1925 <input type="checkbox" name="floatingFlag" id="floatingFlag" onclick="swapFloatingTime(this)" value="on" checked="checked"/> 1943 <input type="hidden" name="eventStartDate.floating" value=" on" id="startFloating"/>1944 <input type="hidden" name="eventEndDate.floating" value=" on" id="endFloating"/>1926 <input type="hidden" name="eventStartDate.floating" value="true" id="startFloating"/> 1927 <input type="hidden" name="eventEndDate.floating" value="true" id="endFloating"/> 1945 1928 </xsl:when> 1946 1929 <xsl:otherwise> 1947 1930 <input type="checkbox" name="floatingFlag" id="floatingFlag" onclick="swapFloatingTime(this)" value="off"/> 1948 <input type="hidden" name="eventStartDate.floating" value=" off" id="startFloating"/>1949 <input type="hidden" name="eventEndDate.floating" value=" off" id="endFloating"/>1931 <input type="hidden" name="eventStartDate.floating" value="false" id="startFloating"/> 1932 <input type="hidden" name="eventEndDate.floating" value="false" id="endFloating"/> 1950 1933 </xsl:otherwise> 1951 1934 </xsl:choose> … … 1956 1939 <xsl:when test="form/storeUTC/input/@checked='checked'"> 1957 1940 <input type="checkbox" name="storeUTCFlag" id="storeUTCFlag" onclick="swapStoreUTC(this)" value="on" checked="checked"/> 1958 <input type="hidden" name="eventStartDate.storeUTC" value=" on" id="startStoreUTC"/>1959 <input type="hidden" name="eventEndDate.storeUTC" value=" on" id="endStoreUTC"/>1941 <input type="hidden" name="eventStartDate.storeUTC" value="true" id="startStoreUTC"/> 1942 <input type="hidden" name="eventEndDate.storeUTC" value="true" id="endStoreUTC"/> 1960 1943 </xsl:when> 1961 1944 <xsl:otherwise> 1962 1945 <input type="checkbox" name="storeUTCFlag" id="storeUTCFlag" onclick="swapStoreUTC(this)" value="off"/> 1963 <input type="hidden" name="eventStartDate.storeUTC" value=" off" id="startStoreUTC"/>1964 <input type="hidden" name="eventEndDate.storeUTC" value=" off" id="endStoreUTC"/>1946 <input type="hidden" name="eventStartDate.storeUTC" value="false" id="startStoreUTC"/> 1947 <input type="hidden" name="eventEndDate.storeUTC" value="false" id="endStoreUTC"/> 1965 1948 </xsl:otherwise> 1966 1949 </xsl:choose> … … 1972 1955 <div class="dateFields"> 1973 1956 <span class="startDateLabel">Date </span> 1957 <span dojoType="dropdowndatepicker" formatLength="medium" value="today" saveFormat="yyyyMMdd" id="bwEventWidgetStartDate" iconURL="{$resourcesRoot}/resources/calIcon.gif" onChange="setDate(this.form,'start')"> 1958 <xsl:attribute name="value"><xsl:value-of select="form/start/rfc3339DateTime"/></xsl:attribute> 1959 <xsl:text> </xsl:text> 1960 </span> 1961 <input type="hidden" name="eventStartDate.year"> 1962 <xsl:attribute name="value"><xsl:value-of select="form/start/yearText/input/@value"/></xsl:attribute> 1963 </input> 1964 <input type="hidden" name="eventStartDate.month"> 1965 <xsl:attribute name="value"><xsl:value-of select="form/start/month/select/option[@selected = 'selected']/@value"/></xsl:attribute> 1966 </input> 1967 <input type="hidden" name="eventStartDate.day"> 1968 <xsl:attribute name="value"><xsl:value-of select="form/start/day/select/option[@selected = 'selected']/@value"/></xsl:attribute> 1969 </input> 1970 <!-- 1974 1971 <xsl:copy-of select="form/start/month/*"/> 1975 1972 <xsl:copy-of select="form/start/day/*"/> … … 1981 1978 <xsl:copy-of select="form/start/yearText/*"/> 1982 1979 </xsl:otherwise> 1983 </xsl:choose> 1984 </div> 1980 </xsl:choose>--> 1981 </div><!-- 1985 1982 <script language="JavaScript" type="text/javascript"> 1986 1983 <xsl:comment> 1987 1984 startDateDynCalWidget = new dynCalendar('startDateDynCalWidget', <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)"/>, 'startDateCalWidgetCallback',true,'<xsl:value-of select="$resourcesRoot"/>/resources/'); 1988 1985 </xsl:comment> 1989 </script> 1990 <!--<img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>--> 1986 </script>--> 1991 1987 <div class="{$timeFieldsClass}" id="startTimeFields"> 1992 1988 <span id="calWidgetStartTimeHider" class="show"> … … 1997 1993 </xsl:if> 1998 1994 <xsl:text> </xsl:text> 1999 <a href="javascript:bwClockLaunch('eventStartDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" /></a>1995 <a href="javascript:bwClockLaunch('eventStartDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" alt="bwClock"/></a> 2000 1996 2001 1997 <select name="eventStartDate.tzid" id="startTzid" class="timezones"> 2002 <xsl:if test="form/floating/input/@checked='checked'"><xsl:attribute name="disabled"> true</xsl:attribute></xsl:if>1998 <xsl:if test="form/floating/input/@checked='checked'"><xsl:attribute name="disabled">disabled</xsl:attribute></xsl:if> 2003 1999 <option value="-1">select timezone...</option> 2004 2000 <xsl:variable name="startTzId" select="form/start/tzid"/> … … 2018 2014 <xsl:choose> 2019 2015 <xsl:when test="form/end/type='E'"> 2020 <input type="radio" name="eventEndType" value="E" checked="checked" on Click="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/>2016 <input type="radio" name="eventEndType" value="E" checked="checked" onclick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 2021 2017 </xsl:when> 2022 2018 <xsl:otherwise> 2023 <input type="radio" name="eventEndType" value="E" on Click="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/>2019 <input type="radio" name="eventEndType" value="E" onclick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 2024 2020 </xsl:otherwise> 2025 2021 </xsl:choose> … … 2033 2029 <div class="{$endDateTimeClass}" id="endDateTime"> 2034 2030 <div class="dateFields"> 2035 <xsl:copy-of select="form/end/dateTime/month/*"/> 2031 <span dojoType="dropdowndatepicker" formatLength="medium" value="today" saveFormat="yyyyMMdd" id="bwEventWidgetEndDate" iconURL="{$resourcesRoot}/resources/calIcon.gif" onChange="setDate(this.form,'end')"> 2032 <xsl:attribute name="value"><xsl:value-of select="form/end/rfc3339DateTime"/></xsl:attribute> 2033 <xsl:text> </xsl:text> 2034 </span> 2035 <input type="hidden" name="eventEndDate.year"> 2036 <xsl:attribute name="value"><xsl:value-of select="form/end/dateTime/yearText/input/@value"/></xsl:attribute> 2037 </input> 2038 <input type="hidden" name="eventEndDate.month"> 2039 <xsl:attribute name="value"><xsl:value-of select="form/end/dateTime/month/select/option[@selected = 'selected']/@value"/></xsl:attribute> 2040 </input> 2041 <input type="hidden" name="eventEndDate.day"> 2042 <xsl:attribute name="value"><xsl:value-of select="form/end/dateTime/day/select/option[@selected = 'selected']/@value"/></xsl:attribute> 2043 </input> 2044 <!--<xsl:copy-of select="form/end/dateTime/month/*"/> 2036 2045 <xsl:copy-of select="form/end/dateTime/day/*"/> 2037 2046 <xsl:choose> … … 2042 2051 <xsl:copy-of select="form/end/dateTime/yearText/*"/> 2043 2052 </xsl:otherwise> 2044 </xsl:choose> 2053 </xsl:choose>--> 2045 2054 </div> 2046 < script language="JavaScript" type="text/javascript">2055 <!--<script language="JavaScript" type="text/javascript"> 2047 2056 <xsl:comment> 2048 2057 endDateDynCalWidget = new dynCalendar('endDateDynCalWidget', <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)"/>, 'endDateCalWidgetCallback',true,'<xsl:value-of select="$resourcesRoot"/>/resources/'); 2049 2058 </xsl:comment> 2050 </script> 2051 <!--<img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>--> 2059 </script>--> 2052 2060 <div class="{$timeFieldsClass}" id="endTimeFields"> 2053 2061 <span id="calWidgetEndTimeHider" class="show"> … … 2058 2066 </xsl:if> 2059 2067 <xsl:text> </xsl:text> 2060 <a href="javascript:bwClockLaunch('eventEndDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" /></a>2068 <a href="javascript:bwClockLaunch('eventEndDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" alt="bwClock"/></a> 2061 2069 2062 2070 <select name="eventEndDate.tzid" id="endTzid" class="timezones"> 2063 <xsl:if test="form/floating/input/@checked='checked'"><xsl:attribute name="disabled"> true</xsl:attribute></xsl:if>2071 <xsl:if test="form/floating/input/@checked='checked'"><xsl:attribute name="disabled">disabled</xsl:attribute></xsl:if> 2064 2072 <option value="-1">select timezone...</option> 2065 2073 <xsl:variable name="endTzId" select="form/end/dateTime/tzid"/> … … 2081 2089 <xsl:choose> 2082 2090 <xsl:when test="form/end/type='D'"> 2083 <input type="radio" name="eventEndType" value="D" checked="checked" on Click="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/>2091 <input type="radio" name="eventEndType" value="D" checked="checked" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 2084 2092 </xsl:when> 2085 2093 <xsl:otherwise> 2086 <input type="radio" name="eventEndType" value="D" on Click="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/>2094 <input type="radio" name="eventEndType" value="D" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 2087 2095 </xsl:otherwise> 2088 2096 </xsl:choose> … … 2120 2128 <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')"/> 2121 2129 <xsl:variable name="weeksStr" select="form/end/duration/weeks/input/@value"/> 2122 <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks" disabled=" true"/>weeks2130 <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks" disabled="disabled"/>weeks 2123 2131 </div> 2124 2132 </xsl:when> … … 2128 2136 <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')"/> 2129 2137 <xsl:variable name="daysStr" select="form/end/duration/days/input/@value"/> 2130 <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays" disabled=" true"/>days2138 <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays" disabled="disabled"/>days 2131 2139 <span id="durationHrMin" class="{$durationHrMinClass}"> 2132 2140 <xsl:variable name="hoursStr" select="form/end/duration/hours/input/@value"/> 2133 <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours" disabled=" true"/>hours2141 <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours" disabled="disabled"/>hours 2134 2142 <xsl:variable name="minutesStr" select="form/end/duration/minutes/input/@value"/> 2135 <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes" disabled=" true"/>minutes2143 <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes" disabled="disabled"/>minutes 2136 2144 </span> 2137 2145 </div> … … 2149 2157 <xsl:choose> 2150 2158 <xsl:when test="form/end/type='N'"> 2151 <input type="radio" name="eventEndType" value="N" checked="checked" on Click="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/>2159 <input type="radio" name="eventEndType" value="N" checked="checked" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 2152 2160 </xsl:when> 2153 2161 <xsl:otherwise> 2154 <input type="radio" name="eventEndType" value="N" on Click="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/>2162 <input type="radio" name="eventEndType" value="N" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 2155 2163 </xsl:otherwise> 2156 2164 </xsl:choose> … … 2199 2207 </td> 2200 2208 </tr> 2201 <tr>2202 <td class="submit" colspan="2">2203 <input name="submit" type="submit" value="save event"/> 2204 <input name="cancelled" type="submit" value="cancel"/>2205 <xsl:if test="/bedework/creating != 'true'">2206 <input type="button" value="go to view" onclick="location.replace('{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}')"/>2207 </xsl:if>2208 </td>2209 </tr>2210 2209 </table> 2211 2210 </div> … … 2216 2215 <div id="bwEventTab-Details" class="invisible"> 2217 2216 <!--<h3>Extra Information:</h3>--> 2218 <table cellspacing="0" class="common ">2217 <table cellspacing="0" class="common dottedBorder"> 2219 2218 <!-- Location --> 2220 2219 <tr> … … 2261 2260 <td class="fieldname">Description:</td> 2262 2261 <td class="fieldval"> 2263 <textarea name="description" cols="60" rows="4"> 2264 <xsl:value-of select="form/desc/textarea"/> 2265 </textarea> 2262 <xsl:choose> 2263 <xsl:when test="normalize-space(form/desc/textarea) = ''"> 2264 <textarea name="description" cols="60" rows="4"> 2265 <xsl:text> </xsl:text> 2266 </textarea> 2267 <!-- keep this space to avoid browser 2268 rendering errors when the text area is empty --> 2269 </xsl:when> 2270 <xsl:otherwise> 2271 <textarea name="description" cols="60" rows="4"> 2272 <xsl:value-of select="form/desc/textarea"/> 2273 </textarea> 2274 </xsl:otherwise> 2275 </xsl:choose> 2266 2276 </td> 2267 2277 </tr> … … 2338 2348 </td> 2339 2349 </tr> 2340 <tr>2341 <td class="submit" colspan="2">2342 <input name="submit" type="submit" value="save event"/> 2343 <input name="cancelled" type="submit" value="cancel"/>2344 <xsl:if test="/bedework/creating != 'true'">2345 <input type="button" value="go to view" onclick="location.replace('{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}')"/>2346 </xsl:if>2347 </td>2348 </tr>2349 2350 </table> 2350 2351 </div> … … 2354 2355 <!-- ============== --> 2355 2356 <div id="bwEventTab-Recurrence" class="invisible"> 2356 <!--<h3>Event Recurrence:</h3>--> 2357 <table cellspacing="0" class="common"> 2358 <tr> 2359 <td class="fieldname"> 2360 Recurrence: 2361 </td> 2362 <td class="fieldval"> 2363 <!-- Output descriptive recurrence information. Probably not 2364 complete yet. Replace all strings so can be 2365 more easily internationalized. --> 2366 <xsl:if test="form/recurrence"> 2367 <div id="recurrenceInfo"> 2368 Every 2369 <xsl:choose> 2370 <xsl:when test="form/recurrence/interval > 1"> 2371 <xsl:value-of select="form/recurrence/interval"/> 2372 </xsl:when> 2373 </xsl:choose> 2374 <xsl:text> </xsl:text> 2375 <xsl:choose> 2376 <xsl:when test="form/recurrence/freq = 'HOURLY'">hour</xsl:when> 2377 <xsl:when test="form/recurrence/freq = 'DAILY'">day</xsl:when> 2378 <xsl:when test="form/recurrence/freq = 'WEEKLY'">week</xsl:when> 2379 <xsl:when test="form/recurrence/freq = 'MONTHLY'">month</xsl:when> 2380 <xsl:when test="form/recurrence/freq = 'YEARLY'">year</xsl:when> 2381 </xsl:choose><xsl:if test="form/recurrence/interval > 1">s</xsl:if> 2382 <xsl:text> </xsl:text> 2383 2384 <xsl:if test="form/recurrence/byday"> 2385 <xsl:for-each select="form/recurrence/byday/pos"> 2386 <xsl:if test="position() != 1"> and </xsl:if> 2387 on 2388 <xsl:choose> 2389 <xsl:when test="@val='1'"> 2390 the first 2391 </xsl:when> 2392 <xsl:when test="@val='2'"> 2393 the second 2394 </xsl:when> 2395 <xsl:when test="@val='3'"> 2396 the third 2397 </xsl:when> 2398 <xsl:when test="@val='4'"> 2399 the fourth 2400 </xsl:when> 2401 <xsl:when test="@val='5'"> 2402 the fifth 2403 </xsl:when> 2404 <xsl:when test="@val='-1'"> 2405 the last 2406 </xsl:when> 2407 <!-- don't output "every" --> 2408 <!--<xsl:otherwise> 2357 <!-- Output descriptive recurrence information. Probably not 2358 complete yet. Replace all strings so can be 2359 more easily internationalized. --> 2360 <xsl:if test="form/recurrence"> 2361 <div id="recurrenceInfo"> 2362 Every 2363 <xsl:choose> 2364 <xsl:when test="form/recurrence/interval > 1"> 2365 <xsl:value-of select="form/recurrence/interval"/> 2366 </xsl:when> 2367 </xsl:choose> 2368 <xsl:text> </xsl:text> 2369 <xsl:choose> 2370 <xsl:when test="form/recurrence/freq = 'HOURLY'">hour</xsl:when> 2371 <xsl:when test="form/recurrence/freq = 'DAILY'">day</xsl:when> 2372 <xsl:when test="form/recurrence/freq = 'WEEKLY'">week</xsl:when> 2373 <xsl:when test="form/recurrence/freq = 'MONTHLY'">month</xsl:when> 2374 <xsl:when test="form/recurrence/freq = 'YEARLY'">year</xsl:when> 2375 </xsl:choose><xsl:if test="form/recurrence/interval > 1">s</xsl:if> 2376 <xsl:text> </xsl:text> 2377 2378 <xsl:if test="form/recurrence/byday"> 2379 <xsl:for-each select="form/recurrence/byday/pos"> 2380 <xsl:if test="position() != 1"> and </xsl:if> 2381 on 2382 <xsl:choose> 2383 <xsl:when test="@val='1'"> 2384 the first 2385 </xsl:when> 2386 <xsl:when test="@val='2'"> 2387 the second 2388 </xsl:when> 2389 <xsl:when test="@val='3'"> 2390 the third 2391 </xsl:when> 2392 <xsl:when test="@val='4'"> 2393 the fourth 2394 </xsl:when> 2395 <xsl:when test="@val='5'"> 2396 the fifth 2397 </xsl:when> 2398 <xsl:when test="@val='-1'"> 2399 the last 2400 </xsl:when> 2401 <!-- don't output "every" --> 2402 <!--<xsl:otherwise> 2403 every 2404 </xsl:otherwise>--> 2405 </xsl:choose> 2406 <xsl:for-each select="day"> 2407 <xsl:if test="position() != 1 and position() = last()"> and </xsl:if> 2408 <xsl:variable name="dayVal" select="."/> 2409 <xsl:variable name="dayPos"> 2410 <xsl:for-each select="/bedework/recurdayvals/val"> 2411 <xsl:if test="node() = $dayVal"><xsl:value-of select="position()"/></xsl:if> 2412 </xsl:for-each> 2413 </xsl:variable> 2414 <xsl:value-of select="/bedework/shortdaynames/val[position() = $dayPos]"/> 2415 <xsl:if test="position() != last()">, </xsl:if> 2416 </xsl:for-each> 2417 </xsl:for-each> 2418 </xsl:if> 2419 2420 <xsl:if test="form/recurrence/bymonth"> 2421 in 2422 <xsl:for-each select="form/recurrence/bymonth/val"> 2423 <xsl:if test="position() != 1 and position() = last()"> and </xsl:if> 2424 <xsl:variable name="monthNum" select="number(.)"/> 2425 <xsl:value-of select="/bedework/monthlabels/val[position() = $monthNum]"/> 2426 <xsl:if test="position() != last()">, </xsl:if> 2427 </xsl:for-each> 2428 </xsl:if> 2429 2430 <xsl:if test="form/recurrence/bymonthday"> 2431 on the 2432 <xsl:apply-templates select="form/recurrence/bymonthday/val" mode="weekMonthYearNumbers"/> 2433 day<xsl:if test="form/recurrence/bymonthday/val[position()=2]">s</xsl:if> of the month 2434 </xsl:if> 2435 2436 <xsl:if test="form/recurrence/byyearday"> 2437 on the 2438 <xsl:apply-templates select="form/recurrence/byyearday/val" mode="weekMonthYearNumbers"/> 2439 day<xsl:if test="form/recurrence/byyearday/val[position()=2]">s</xsl:if> of the year 2440 </xsl:if> 2441 2442 <xsl:if test="form/recurrence/byweekno"> 2443 in the 2444 <xsl:apply-templates select="form/recurrence/byweekno/val" mode="weekMonthYearNumbers"/> 2445 week<xsl:if test="form/recurrence/byweekno/val[position()=2]">s</xsl:if> of the year 2446 </xsl:if> 2447 2448 repeating 2449 <xsl:choose> 2450 <xsl:when test="form/recurrence/count = '-1'">forever</xsl:when> 2451 <xsl:when test="form/recurrence/until"> 2452 <xsl:value-of select="form/recurrence/until"/> 2453 </xsl:when> 2454 <xsl:otherwise> 2455 <xsl:value-of select="form/recurrence/count"/> 2456 time<xsl:if test="form/recurrence/count > 1">s</xsl:if> 2457 </xsl:otherwise> 2458 </xsl:choose> 2459 </div> 2460 </xsl:if> 2461 2462 <!-- recurrence rules --> 2463 <xsl:choose> 2464 <xsl:when test="recurrenceId != ''"> 2465 <!-- recurrence instances can not themselves recur, 2466 so provide access to master event --> 2467 <em>This event is a recurrence instance.</em><br/> 2468 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="edit master (recurring event)">edit master event</a> 2469 </xsl:when> 2470 <xsl:otherwise> 2471 <!-- has recurrenceId, so is master --> 2472 <!--<input type="checkbox" name="recurrenceFlag" onclick="swapRecurrence(this)" value="on"/> 2473 <xsl:choose> 2474 <xsl:when test="/bedework/creating = 'true'"> 2475 set recurrence rules 2476 </xsl:when> 2477 <xsl:otherwise> 2478 change recurrence 2479 </xsl:otherwise> 2480 </xsl:choose>--> 2481 2482 <!-- set these dynamically when form is submitted --> 2483 <input type="hidden" name="interval" value=""/> 2484 <input type="hidden" name="count" value=""/> 2485 <input type="hidden" name="until" value=""/> 2486 <input type="hidden" name="byday" value=""/> 2487 <input type="hidden" name="bymonthday" value=""/> 2488 <input type="hidden" name="bymonth" value=""/> 2489 <input type="hidden" name="byweekno" value=""/> 2490 <input type="hidden" name="byyearday" value=""/> 2491 <input type="hidden" name="wkst" value=""/> 2492 <input type="hidden" name="setpos" value=""/> 2493 2494 <div id="recurrenceFields"> 2495 <table id="recurrenceTable" cellspacing="0"> 2496 <tr> 2497 <td class="recurrenceFrequency" rowspan="2"> 2498 <strong>Frequency:</strong><br/> 2499 <!-- "freq" is used to determine if a recurrence should be created; test for "NONE" --> 2500 <input type="radio" name="freq" value="NONE" onclick="showRecurrence(this.value)" checked="checked"/>none<br/> 2501 <!--<input type="radio" name="freq" value="HOURLY" onclick="showRecurrence(this.value)"/>hourly<br/>--> 2502 <input type="radio" name="freq" value="DAILY" onclick="showRecurrence(this.value)"/>daily<br/> 2503 <input type="radio" name="freq" value="WEEKLY" onclick="showRecurrence(this.value)"/>weekly<br/> 2504 <input type="radio" name="freq" value="MONTHLY" onclick="showRecurrence(this.value)"/>monthly<br/> 2505 <input type="radio" name="freq" value="YEARLY" onclick="showRecurrence(this.value)"/>yearly 2506 </td> 2507 <!-- recurrence count, until, forever --> 2508 <td class="recurrenceUntil"> 2509 <!-- none --> 2510 <div id="noneRecurrenceRules"> 2511 <p>does not recur</p> 2512 </div> 2513 <div id="recurrenceUntilRules" class="invisible"> 2514 <strong>Repeat:</strong> 2515 <p> 2516 <div class="dateFields"> 2517 <input type="radio" name="recurCountUntil" value="until" id="recurUntil"> 2518 <xsl:if test="form/recurring/until"> 2519 <xsl:attribute name="checked">checked</xsl:attribute> 2520 </xsl:if> 2521 </input> 2522 until 2523 <select name="untilMonth" onfocus="selectRecurCountUntil('recurUntil')"> 2524 <xsl:for-each select="form/start/month/select/option"> 2525 <xsl:copy-of select="."/> 2526 </xsl:for-each> 2527 </select> 2528 <select name="untilDay" onfocus="selectRecurCountUntil('recurUntil')"> 2529 <xsl:for-each select="form/start/day/select/option"> 2530 <xsl:copy-of select="."/> 2531 </xsl:for-each> 2532 </select> 2533 <xsl:choose> 2534 <xsl:when test="/bedework/creating = 'true'"> 2535 <select name="untilYear" onfocus="selectRecurCountUntil('recurUntil')"> 2536 <xsl:for-each select="form/start/year/select/option"> 2537 <xsl:copy-of select="."/> 2538 </xsl:for-each> 2539 </select> 2540 </xsl:when> 2541 <xsl:otherwise> 2542 <input type="text" name="untilYear" size="4" onfocus="selectRecurCountUntil('recurUntil')"> 2543 <xsl:attribute name="value"><xsl:value-of select="form/start/yearText/input/@value"/></xsl:attribute> 2544 </input> 2545 </xsl:otherwise> 2546 </xsl:choose> 2547 </div> 2548 <!-- 2549 <script language="JavaScript" type="text/javascript"> 2550 <xsl:comment> 2551 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/'); 2552 </xsl:comment> 2553 </script>--> 2554 </p> 2555 <p> 2556 <input type="radio" name="recurCountUntil" value="forever"> 2557 <xsl:if test="not(form/recurring) or form/recurring/count = '-1'"> 2558 <xsl:attribute name="checked">checked</xsl:attribute> 2559 </xsl:if> 2560 </input> 2561 forever 2562   2563 <input type="radio" name="recurCountUntil" value="count" id="recurCount"> 2564 <xsl:if test="form/recurring/count != '-1'"> 2565 <xsl:attribute name="checked">checked</xsl:attribute> 2566 </xsl:if> 2567 </input> 2568 <input type="text" value="1" size="2" name="countHolder" onfocus="selectRecurCountUntil('recurCount')"> 2569 <xsl:if test="form/recurring/count and form/recurring/count != '-1'"> 2570 <xsl:attribute name="value"><xsl:value-of select="form/recurring/count"/></xsl:attribute> 2571 </xsl:if> 2572 </input> 2573 times 2574 </p> 2575 </div> 2576 </td> 2577 </tr> 2578 <tr> 2579 <td class="recurrenceRules"> 2580 <span id="advancedRecurrenceRules" class="invisible"> 2581 <!-- hourly --> 2582 <div id="hourlyRecurrenceRules" class="invisible"> 2583 <p> 2584 <strong>Interval:</strong> 2409 2585 every 2410 </xsl:otherwise>--> 2411 </xsl:choose> 2412 <xsl:for-each select="day"> 2413 <xsl:if test="position() != 1 and position() = last()"> and </xsl:if> 2414 <xsl:variable name="dayVal" select="."/> 2415 <xsl:variable name="dayPos"> 2416 <xsl:for-each select="/bedework/recurdayvals/val"> 2417 <xsl:if test="node() = $dayVal"><xsl:value-of select="position()"/></xsl:if> 2418 </xsl:for-each> 2419 </xsl:variable> 2420 <xsl:value-of select="/bedework/shortdaynames/val[position() = $dayPos]"/> 2421 <xsl:if test="position() != last()">, </xsl:if> 2422 </xsl:for-each> 2423 </xsl:for-each> 2424 </xsl:if> 2425 2426 <xsl:if test="form/recurrence/bymonth"> 2427 in 2428 <xsl:for-each select="form/recurrence/bymonth/val"> 2429 <xsl:if test="position() != 1 and position() = last()"> and </xsl:if> 2430 <xsl:variable name="monthNum" select="number(.)"/> 2431 <xsl:value-of select="/bedework/monthlabels/val[position() = $monthNum]"/> 2432 <xsl:if test="position() != last()">, </xsl:if> 2433 </xsl:for-each> 2434 </xsl:if> 2435 2436 <xsl:if test="form/recurrence/bymonthday"> 2437 on the 2438 <xsl:apply-templates select="form/recurrence/bymonthday/val" mode="weekMonthYearNumbers"/> 2439 day<xsl:if test="form/recurrence/bymonthday/val[position()=2]">s</xsl:if> of the month 2440 </xsl:if> 2441 2442 <xsl:if test="form/recurrence/byyearday"> 2443 on the 2444 <xsl:apply-templates select="form/recurrence/byyearday/val" mode="weekMonthYearNumbers"/> 2445 day<xsl:if test="form/recurrence/byyearday/val[position()=2]">s</xsl:if> of the year 2446 </xsl:if> 2447 2448 <xsl:if test="form/recurrence/byweekno"> 2449 in the 2450 <xsl:apply-templates select="form/recurrence/byweekno/val" mode="weekMonthYearNumbers"/> 2451 week<xsl:if test="form/recurrence/byweekno/val[position()=2]">s</xsl:if> of the year 2452 </xsl:if> 2453 2454 repeating 2455 <xsl:choose> 2456 <xsl:when test="form/recurrence/count = '-1'">forever</xsl:when> 2457 <xsl:when test="form/recurrence/until"> 2458 <xsl:value-of select="form/recurrence/until"/> 2459 </xsl:when> 2460 <xsl:otherwise> 2461 <xsl:value-of select="form/recurrence/count"/> 2462 time<xsl:if test="form/recurrence/count > 1">s</xsl:if> 2463 </xsl:otherwise> 2464 </xsl:choose> 2465 </div> 2466 </xsl:if> 2467 2468 <!-- recurrence rules --> 2469 <xsl:choose> 2470 <xsl:when test="recurrenceId != ''"> 2471 <!-- recurrence instances can not themselves recur, 2472 so provide access to master event --> 2473 <em>This event is a recurrence instance.</em><br/> 2474 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="edit master (recurring event)">edit master event</a> 2475 </xsl:when> 2476 <xsl:otherwise> 2477 <!-- has recurrenceId, so is master --> 2478 <input type="checkbox" name="recurrenceFlag" onclick="swapRecurrence(this)" value="on"/> 2479 <xsl:choose> 2480 <xsl:when test="/bedework/creating = 'true'"> 2481 set recurrence rules 2482 </xsl:when> 2483 <xsl:otherwise> 2484 change recurrence 2485 </xsl:otherwise> 2486 </xsl:choose> 2487 <span id="recurrenceUiSwitch" class="invisible"> 2488 <input type="checkbox" name="recurrenceUiSwitch" value="simple" onchange="swapVisible(this,'advancedRecurrenceRules')"/> 2489 show advanced recurrence rules 2586 <input type="text" name="hourlyInterval" 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 hour(s) 2592 </p> 2593 </div> 2594 <!-- daily --> 2595 <div id="dailyRecurrenceRules" class="invisible"> 2596 <p> 2597 <strong>Interval:</strong> 2598 every 2599 <input type="text" name="dailyInterval" size="2" value="1"> 2600 <xsl:if test="form/recurrence/interval"> 2601 <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> 2602 </xsl:if> 2603 </input> 2604 day(s) 2605 </p> 2606 <p> 2607 <input type="checkbox" name="swapDayMonthCheckBoxList" value="" onclick="swapVisible(this,'dayMonthCheckBoxList')"/> 2608 in these months: 2609 <div id="dayMonthCheckBoxList" class="invisible"> 2610 <xsl:for-each select="/bedework/monthlabels/val"> 2611 <xsl:variable name="pos"><xsl:value-of select="position()"/></xsl:variable> 2612 <span class="chkBoxListItem"> 2613 <input type="checkbox" name="dayMonths"> 2614 <xsl:attribute name="value"><xsl:value-of select="/bedework/monthvalues/val[position() = $pos]"/></xsl:attribute> 2615 </input> 2616 <xsl:value-of select="."/> 2617 </span> 2618 <xsl:if test="$pos mod 6 = 0"><br/></xsl:if> 2619 </xsl:for-each> 2620 </div> 2621 </p> 2622 <!--<p> 2623 <input type="checkbox" name="swapDaySetPos" value="" onclick="swapVisible(this,'daySetPos')"/> 2624 limit to: 2625 <div id="daySetPos" class="invisible"> 2626 </div> 2627 </p>--> 2628 </div> 2629 <!-- weekly --> 2630 <div id="weeklyRecurrenceRules" class="invisible"> 2631 <p> 2632 <strong>Interval:</strong> 2633 every 2634 <input type="text" name="weeklyInterval" size="2" value="1"> 2635 <xsl:if test="form/recurrence/interval"> 2636 <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> 2637 </xsl:if> 2638 </input> 2639 week(s) on: 2640 </p> 2641 <p> 2642 <div id="weekRecurFields"> 2643 <xsl:call-template name="byDayChkBoxList"> 2644 <xsl:with-param name="name">byDayWeek</xsl:with-param> 2645 </xsl:call-template> 2646 </div> 2647 </p> 2648 <p class="weekRecurLinks"> 2649 <a href="javascript:recurSelectWeekdays('weekRecurFields')">select weekdays</a> | 2650 <a href="javascript:recurSelectWeekends('weekRecurFields')">select weekends</a> 2651 </p> 2652 <p> 2653 Week start: 2654 <select name="weekWkst"> 2655 <xsl:for-each select="/bedework/shortdaynames/val"> 2656 <xsl:variable name="pos" select="position()"/> 2657 <option> 2658 <xsl:attribute name="value"><xsl:value-of select="/bedework/recurdayvals/val[position() = $pos]"/></xsl:attribute> 2659 <xsl:value-of select="."/> 2660 </option> 2661 </xsl:for-each> 2662 </select> 2663 </p> 2664 </div> 2665 <!-- monthly --> 2666 <div id="monthlyRecurrenceRules" class="invisible"> 2667 <p> 2668 <strong>Interval:</strong> 2669 every 2670 <input type="text" name="monthlyInterval" size="2" value="1"> 2671 <xsl:if test="form/recurrence/interval"> 2672 <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> 2673 </xsl:if> 2674 </input> 2675 month(s) 2676 </p> 2677 <div id="monthRecurFields"> 2678 <div id="monthRecurFields1"> 2679 on 2680 <select name="bymonthposPos1" width="7em" onchange="changeClass('monthRecurFields2','shown')"> 2681 <xsl:call-template name="recurrenceDayPosOptions"/> 2682 </select> 2683 <xsl:call-template name="byDayChkBoxList"/> 2684 </div> 2685 <xsl:call-template name="buildRecurFields"> 2686 <xsl:with-param name="current">2</xsl:with-param> 2687 <xsl:with-param name="total">10</xsl:with-param> 2688 <xsl:with-param name="name">month</xsl:with-param> 2689 </xsl:call-template> 2690 </div> 2691 <p> 2692 <input type="checkbox" name="swapMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'monthDaysCheckBoxList')"/> 2693 on these days:<br/> 2694 <div id="monthDaysCheckBoxList" class="invisible"> 2695 <xsl:call-template name="buildCheckboxList"> 2696 <xsl:with-param name="current">1</xsl:with-param> 2697 <xsl:with-param name="end">31</xsl:with-param> 2698 <xsl:with-param name="name">monthDayBoxes</xsl:with-param> 2699 </xsl:call-template> 2700 </div> 2701 </p> 2702 </div> 2703 <!-- yearly --> 2704 <div id="yearlyRecurrenceRules" class="invisible"> 2705 <p> 2706 <strong>Interval:</strong> 2707 every 2708 <input type="text" name="yearlyInterval" size="2" value="1"> 2709 <xsl:if test="form/recurrence/interval"> 2710 <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> 2711 </xsl:if> 2712 </input> 2713 years(s) 2714 </p> 2715 <div id="yearRecurFields"> 2716 <div id="yearRecurFields1"> 2717 on 2718 <select name="byyearposPos1" width="7em" onchange="changeClass('yearRecurFields2','shown')"> 2719 <xsl:call-template name="recurrenceDayPosOptions"/> 2720 </select> 2721 <xsl:call-template name="byDayChkBoxList"/> 2722 </div> 2723 <xsl:call-template name="buildRecurFields"> 2724 <xsl:with-param name="current">2</xsl:with-param> 2725 <xsl:with-param name="total">10</xsl:with-param> 2726 <xsl:with-param name="name">year</xsl:with-param> 2727 </xsl:call-template> 2728 </div> 2729 <p> 2730 <input type="checkbox" name="swapYearMonthCheckBoxList" value="" onclick="swapVisible(this,'yearMonthCheckBoxList')"/> 2731 in these months: 2732 <div id="yearMonthCheckBoxList" class="invisible"> 2733 <xsl:for-each select="/bedework/monthlabels/val"> 2734 <xsl:variable name="pos"><xsl:value-of select="position()"/></xsl:variable> 2735 <span class="chkBoxListItem"> 2736 <input type="checkbox" name="yearMonths"> 2737 <xsl:attribute name="value"><xsl:value-of select="/bedework/monthvalues/val[position() = $pos]"/></xsl:attribute> 2738 </input> 2739 <xsl:value-of select="."/> 2740 </span> 2741 <xsl:if test="$pos mod 6 = 0"><br/></xsl:if> 2742 </xsl:for-each> 2743 </div> 2744 </p> 2745 <p> 2746 <input type="checkbox" name="swapYearMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'yearMonthDaysCheckBoxList')"/> 2747 on these days of the month:<br/> 2748 <div id="yearMonthDaysCheckBoxList" class="invisible"> 2749 <xsl:call-template name="buildCheckboxList"> 2750 <xsl:with-param name="current">1</xsl:with-param> 2751 <xsl:with-param name="end">31</xsl:with-param> 2752 <xsl:with-param name="name">yearMonthDayBoxes</xsl:with-param> 2753 </xsl:call-template> 2754 </div> 2755 </p> 2756 <p> 2757 <input type="checkbox" name="swapYearWeeksCheckBoxList" value="" onclick="swapVisible(this,'yearWeeksCheckBoxList')"/> 2758 in these weeks of the year:<br/> 2759 <div id="yearWeeksCheckBoxList" class="invisible"> 2760 <xsl:call-template name="buildCheckboxList"> 2761 <xsl:with-param name="current">1</xsl:with-param> 2762 <xsl:with-param name="end">53</xsl:with-param> 2763 <xsl:with-param name="name">yearWeekBoxes</xsl:with-param> 2764 </xsl:call-template> 2765 </div> 2766 </p> 2767 <p> 2768 <input type="checkbox" name="swapYearDaysCheckBoxList" value="" onclick="swapVisible(this,'yearDaysCheckBoxList')"/> 2769 on these days of the year:<br/> 2770 <div id="yearDaysCheckBoxList" class="invisible"> 2771 <xsl:call-template name="buildCheckboxList"> 2772 <xsl:with-param name="current">1</xsl:with-param> 2773 <xsl:with-param name="end">366</xsl:with-param> 2774 <xsl:with-param name="name">yearDayBoxes</xsl:with-param> 2775 </xsl:call-template> 2776 </div> 2777 </p> 2778 <p> 2779 Week start: 2780 <select name="yearWkst"> 2781 <xsl:for-each select="/bedework/shortdaynames/val"> 2782 <xsl:variable name="pos" select="position()"/> 2783 <option> 2784 <xsl:attribute name="value"><xsl:value-of select="/bedework/recurdayvals/val[position() = $pos]"/></xsl:attribute> 2785 <xsl:value-of select="."/> 2786 </option> 2787 </xsl:for-each> 2788 </select> 2789 </p> 2790 </div> 2490 2791 </span> 2491 2492 <!-- set these dynamically when form is submitted --> 2493 <input type="hidden" name="interval" value=""/> 2494 <input type="hidden" name="count" value=""/> 2495 <input type="hidden" name="until" value=""/> 2496 <input type="hidden" name="byday" value=""/> 2497 <input type="hidden" name="bymonthday" value=""/> 2498 <input type="hidden" name="bymonth" value=""/> 2499 <input type="hidden" name="byweekno" value=""/> 2500 <input type="hidden" name="byyearday" value=""/> 2501 <input type="hidden" name="wkst" value=""/> 2502 <input type="hidden" name="setpos" value=""/> 2503 2504 <div id="recurrenceFields" class="invisible"> 2505 <table id="recurrenceTable" cellspacing="0"> 2506 <tr> 2507 <td class="recurrenceFrequency" rowspan="2"> 2508 <strong>Frequency:</strong><br/> 2509 <!-- "freq" is used to determine if a recurrence should be created; test for "NONE" --> 2510 <input type="radio" name="freq" value="NONE" onclick="showRecurrence(this.value)" checked="checked"/>none<br/> 2511 <!--<input type="radio" name="freq" value="HOURLY" onclick="showRecurrence(this.value)"/>hourly<br/>--> 2512 <input type="radio" name="freq" value="DAILY" onclick="showRecurrence(this.value)"/>daily<br/> 2513 <input type="radio" name="freq" value="WEEKLY" onclick="showRecurrence(this.value)"/>weekly<br/> 2514 <input type="radio" name="freq" value="MONTHLY" onclick="showRecurrence(this.value)"/>monthly<br/> 2515 <input type="radio" name="freq" value="YEARLY" onclick="showRecurrence(this.value)"/>yearly 2516 </td> 2517 <td class="recurrenceRules"> 2518 <!-- none --> 2519 <div id="noneRecurrenceRules"> 2520 <p>does not recur</p> 2521 </div> 2522 <span id="advancedRecurrenceRules" class="invisible"> 2523 <!-- hourly --> 2524 <div id="hourlyRecurrenceRules" class="invisible"> 2525 <p> 2526 <strong>Interval:</strong> 2527 every 2528 <input type="text" name="hourlyInterval" size="2" value="1"> 2529 <xsl:if test="form/recurrence/interval"> 2530 <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> 2531 </xsl:if> 2532 </input> 2533 hour(s) 2534 </p> 2535 </div> 2536 <!-- daily --> 2537 <div id="dailyRecurrenceRules" class="invisible"> 2538 <p> 2539 <strong>Interval:</strong> 2540 every 2541 <input type="text" name="dailyInterval" size="2" value="1"> 2542 <xsl:if test="form/recurrence/interval"> 2543 <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> 2544 </xsl:if> 2545 </input> 2546 day(s) 2547 </p> 2548 <p> 2549 <input type="checkbox" name="swapDayMonthCheckBoxList" value="" onclick="swapVisible(this,'dayMonthCheckBoxList')"/> 2550 in these months: 2551 <div id="dayMonthCheckBoxList" class="invisible"> 2552 <xsl:for-each select="/bedework/monthlabels/val"> 2553 <xsl:variable name="pos"><xsl:value-of select="position()"/></xsl:variable> 2554 <span class="chkBoxListItem"> 2555 <input type="checkbox" name="dayMonths"> 2556 <xsl:attribute name="value"><xsl:value-of select="/bedework/monthvalues/val[position() = $pos]"/></xsl:attribute> 2557 </input> 2558 <xsl:value-of select="."/> 2559 </span> 2560 <xsl:if test="$pos mod 6 = 0"><br/></xsl:if> 2561 </xsl:for-each> 2562 </div> 2563 </p> 2564 <!--<p> 2565 <input type="checkbox" name="swapDaySetPos" value="" onclick="swapVisible(this,'daySetPos')"/> 2566 limit to: 2567 <div id="daySetPos" class="invisible"> 2568 </div> 2569 </p>--> 2570 </div> 2571 <!-- weekly --> 2572 <div id="weeklyRecurrenceRules" class="invisible"> 2573 <p> 2574 <strong>Interval:</strong> 2575 every 2576 <input type="text" name="weeklyInterval" size="2" value="1"> 2577 <xsl:if test="form/recurrence/interval"> 2578 <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> 2579 </xsl:if> 2580 </input> 2581 week(s) on: 2582 </p> 2583 <p> 2584 <div id="weekRecurFields"> 2585 <xsl:call-template name="byDayChkBoxList"> 2586 <xsl:with-param name="name">byDayWeek</xsl:with-param> 2587 </xsl:call-template> 2588 </div> 2589 </p> 2590 <p class="weekRecurLinks"> 2591 <a href="javascript:recurSelectWeekdays('weekRecurFields')">select weekdays</a> | 2592 <a href="javascript:recurSelectWeekends('weekRecurFields')">select weekends</a> 2593 </p> 2594 <p> 2595 Week start: 2596 <select name="weekWkst"> 2597 <xsl:for-each select="/bedework/shortdaynames/val"> 2598 <xsl:variable name="pos" select="position()"/> 2599 <option> 2600 <xsl:attribute name="value"><xsl:value-of select="/bedework/recurdayvals/val[position() = $pos]"/></xsl:attribute> 2601 <xsl:value-of select="."/> 2602 </option> 2603 </xsl:for-each> 2604 </select> 2605 </p> 2606 </div> 2607 <!-- monthly --> 2608 <div id="monthlyRecurrenceRules" class="invisible"> 2609 <p> 2610 <strong>Interval:</strong> 2611 every 2612 <input type="text" name="monthlyInterval" size="2" value="1"> 2613 <xsl:if test="form/recurrence/interval"> 2614 <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> 2615 </xsl:if> 2616 </input> 2617 month(s) 2618 </p> 2619 <div id="monthRecurFields"> 2620 <div id="monthRecurFields1"> 2621 on 2622 <select name="bymonthposPos1" width="7em" onchange="changeClass('monthRecurFields2','shown')"> 2623 <xsl:call-template name="recurrenceDayPosOptions"/> 2624 </select> 2625 <xsl:call-template name="byDayChkBoxList"/> 2626 </div> 2627 <xsl:call-template name="buildRecurFields"> 2628 <xsl:with-param name="current">2</xsl:with-param> 2629 <xsl:with-param name="total">10</xsl:with-param> 2630 <xsl:with-param name="name">month</xsl:with-param> 2631 </xsl:call-template> 2632 </div> 2633 <p> 2634 <input type="checkbox" name="swapMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'monthDaysCheckBoxList')"/> 2635 on these days:<br/> 2636 <div id="monthDaysCheckBoxList" class="invisible"> 2637 <xsl:call-template name="buildCheckboxList"> 2638 <xsl:with-param name="current">1</xsl:with-param> 2639 <xsl:with-param name="end">31</xsl:with-param> 2640 <xsl:with-param name="name">monthDayBoxes</xsl:with-param> 2641 </xsl:call-template> 2642 </div> 2643 </p> 2644 </div> 2645 <!-- yearly --> 2646 <div id="yearlyRecurrenceRules" class="invisible"> 2647 <p> 2648 <strong>Interval:</strong> 2649 every 2650 <input type="text" name="yearlyInterval" size="2" value="1"> 2651 <xsl:if test="form/recurrence/interval"> 2652 <xsl:attribute name="value"><xsl:value-of select="form/recurrence/interval"/></xsl:attribute> 2653 </xsl:if> 2654 </input> 2655 years(s) 2656 </p> 2657 <div id="yearRecurFields"> 2658 <div id="yearRecurFields1"> 2659 on 2660 <select name="byyearposPos1" width="7em" onchange="changeClass('yearRecurFields2','shown')"> 2661 <xsl:call-template name="recurrenceDayPosOptions"/> 2662 </select> 2663 <xsl:call-template name="byDayChkBoxList"/> 2664 </div> 2665 <xsl:call-template name="buildRecurFields"> 2666 <xsl:with-param name="current">2</xsl:with-param> 2667 <xsl:with-param name="total">10</xsl:with-param> 2668 <xsl:with-param name="name">year</xsl:with-param> 2669 </xsl:call-template> 2670 </div> 2671 <p> 2672 <input type="checkbox" name="swapYearMonthCheckBoxList" value="" onclick="swapVisible(this,'yearMonthCheckBoxList')"/> 2673 in these months: 2674 <div id="yearMonthCheckBoxList" class="invisible"> 2675 <xsl:for-each select="/bedework/monthlabels/val"> 2676 <xsl:variable name="pos"><xsl:value-of select="position()"/></xsl:variable> 2677 <span class="chkBoxListItem"> 2678 <input type="checkbox" name="yearMonths"> 2679 <xsl:attribute name="value"><xsl:value-of select="/bedework/monthvalues/val[position() = $pos]"/></xsl:attribute> 2680 </input> 2681 <xsl:value-of select="."/> 2682 </span> 2683 <xsl:if test="$pos mod 6 = 0"><br/></xsl:if> 2684 </xsl:for-each> 2685 </div> 2686 </p> 2687 <p> 2688 <input type="checkbox" name="swapYearMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'yearMonthDaysCheckBoxList')"/> 2689 on these days of the month:<br/> 2690 <div id="yearMonthDaysCheckBoxList" class="invisible"> 2691 <xsl:call-template name="buildCheckboxList"> 2692 <xsl:with-param name="current">1</xsl:with-param> 2693 <xsl:with-param name="end">31</xsl:with-param> 2694 <xsl:with-param name="name">yearMonthDayBoxes</xsl:with-param> 2695 </xsl:call-template> 2696 </div> 2697 </p> 2698 <p> 2699 <input type="checkbox" name="swapYearWeeksCheckBoxList" value="" onclick="swapVisible(this,'yearWeeksCheckBoxList')"/> 2700 in these weeks of the year:<br/> 2701 <div id="yearWeeksCheckBoxList" class="invisible"> 2702 <xsl:call-template name="buildCheckboxList"> 2703 <xsl:with-param name="current">1</xsl:with-param> 2704 <xsl:with-param name="end">53</xsl:with-param> 2705 <xsl:with-param name="name">yearWeekBoxes</xsl:with-param> 2706 </xsl:call-template> 2707 </div> 2708 </p> 2709 <p> 2710 <input type="checkbox" name="swapYearDaysCheckBoxList" value="" onclick="swapVisible(this,'yearDaysCheckBoxList')"/> 2711 on these days of the year:<br/> 2712 <div id="yearDaysCheckBoxList" class="invisible"> 2713 <xsl:call-template name="buildCheckboxList"> 2714 <xsl:with-param name="current">1</xsl:with-param> 2715 <xsl:with-param name="end">366</xsl:with-param> 2716 <xsl:with-param name="name">yearDayBoxes</xsl:with-param> 2717 </xsl:call-template> 2718 </div> 2719 </p> 2720 <p> 2721 Week start: 2722 <select name="yearWkst"> 2723 <xsl:for-each select="/bedework/shortdaynames/val"> 2724 <xsl:variable name="pos" select="position()"/> 2725 <option> 2726 <xsl:attribute name="value"><xsl:value-of select="/bedework/recurdayvals/val[position() = $pos]"/></xsl:attribute> 2727 <xsl:value-of select="."/> 2728 </option> 2729 </xsl:for-each> 2730 </select> 2731 </p> 2732 </div> 2733 </span> 2734 </td> 2735 </tr> 2736 <!-- recurrence count, until, forever --> 2737 <tr> 2738 <td class="recurrenceUntil"> 2739 <div id="recurrenceUntilRules" class="invisible"> 2740 <strong>Repeat:</strong> 2741 <p> 2742 <div class="dateFields"> 2743 <input type="radio" name="recurCountUntil" value="until" id="recurUntil"> 2744 <xsl:if test="form/recurring/until"> 2745 <xsl:attribute name="checked">checked</xsl:attribute> 2746 </xsl:if> 2747 </input> 2748 until 2749 <select name="untilMonth" onfocus="selectRecurCountUntil('recurUntil')"> 2750 <xsl:for-each select="form/start/month/select/option"> 2751 <xsl:copy-of select="."/> 2752 </xsl:for-each> 2753 </select> 2754 <select name="untilDay" onfocus="selectRecurCountUntil('recurUntil')"> 2755 <xsl:for-each select="form/start/day/select/option"> 2756 <xsl:copy-of select="."/> 2757 </xsl:for-each> 2758 </select> 2759 <xsl:choose> 2760 <xsl:when test="/bedework/creating = 'true'"> 2761 <select name="untilYear" onfocus="selectRecurCountUntil('recurUntil')"> 2762 <xsl:for-each select="form/start/year/select/option"> 2763 <xsl:copy-of select="."/> 2764 </xsl:for-each> 2765 </select> 2766 </xsl:when> 2767 <xsl:otherwise> 2768 <input type="text" name="untilYear" size="4" onfocus="selectRecurCountUntil('recurUntil')"> 2769 <xsl:attribute name="value"><xsl:value-of select="form/start/yearText/input/@value"/></xsl:attribute> 2770 </input> 2771 </xsl:otherwise> 2772 </xsl:choose> 2773 </div> 2774 <script language="JavaScript" type="text/javascript"> 2775 <xsl:comment> 2776 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/'); 2777 </xsl:comment> 2778 </script> 2779 </p> 2780 <p> 2781 <input type="radio" name="recurCountUntil" value="forever"> 2782 <xsl:if test="not(form/recurring) or form/recurring/count = '-1'"> 2783 <xsl:attribute name="checked">checked</xsl:attribute> 2784 </xsl:if> 2785 </input> 2786 forever 2787   2788 <input type="radio" name="recurCountUntil" value="count" id="recurCount"> 2789 <xsl:if test="form/recurring/count != '-1'"> 2790 <xsl:attribute name="checked">checked</xsl:attribute> 2791 </xsl:if> 2792 </input> 2793 <input type="text" value="1" size="2" name="countHolder" onfocus="selectRecurCountUntil('recurCount')"> 2794 <xsl:if test="form/recurring/count and form/recurring/count != '-1'"> 2795 <xsl:attribute name="value"><xsl:value-of select="form/recurring/count"/></xsl:attribute> 2796 </xsl:if> 2797 </input> 2798 times 2799 </p> 2800 </div> 2801 </td> 2802 </tr> 2803 </table> 2804 </div> 2805 2806 <!-- recurrence dates (rdates) --> 2807 <div id="recurrenceDatesButton"> 2808 <input type="button" value="add/remove recurrence dates" action="" class="small"/> 2809 </div> 2810 </xsl:otherwise> 2811 </xsl:choose> 2812 </td> 2813 </tr> 2814 <tr> 2815 <td class="submit" colspan="2"> 2816 <input name="submit" type="submit" value="save event"/>  2817 <input name="cancelled" type="submit" value="cancel"/> 2818 <xsl:if test="/bedework/creating != 'true'"> 2819 <input type="button" value="go to view" onclick="location.replace('{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}')"/> 2820 </xsl:if> 2821 </td> 2822 </tr> 2823 </table> 2792 </td> 2793 </tr> 2794 </table> 2795 </div> 2796 </xsl:otherwise> 2797 </xsl:choose> 2798 <div id="recurrenceUiSwitch"> 2799 <input type="checkbox" name="recurrenceUiSwitch" value="simple" onchange="swapVisible(this,'advancedRecurrenceRules')"/> 2800 show advanced recurrence rules 2801 </div> 2802 <!-- recurrence dates (rdates) --> 2803 <div id="recurrenceDatesButton"> 2804 <input type="button" value="add/remove recurrence dates" class="small"/> 2805 </div> 2806 </div> 2807 <div class="eventSubmitButtons"> 2808 <input name="submit" type="submit" value="save event"/> 2809 <input name="cancelled" type="submit" value="cancel"/> 2824 2810 </div> 2825 2811 </xsl:template> … … 2927 2913 used with resources/bwClock.js and resources/bwClock.css --> 2928 2914 <div id="bwClockClock"> 2929 <img id="clockMap" src="{$resourcesRoot}/resources/clockMap.gif" width="368" height="368" border="0" alt=" " usemap="#bwClockMap" />2915 <img id="clockMap" src="{$resourcesRoot}/resources/clockMap.gif" width="368" height="368" border="0" alt="bwClock" usemap="#bwClockMap" /> 2930 2916 </div> 2931 2917 <div id="bwClockCover"> 2918   2932 2919 <!-- this is a special effect div used simply to cover the pixelated edge 2933 2920 where the clock meets the clock box title --> … … 2942 2929 <div id="bwClockTime"> 2943 2930 select time 2931 </div> 2932 <div id="bwClockSwitch"> 2933 switch 2944 2934 </div> 2945 2935 <div id="bwClockCloseText"> … … 3102 3092 <xsl:template match="event" mode="addEventRef"> 3103 3093 <!-- The name "eventForm" is referenced by several javascript functions. Do not 3104 change it without modifying includes.js -->3094 change it without modifying bedework.js --> 3105 3095 <form name="eventForm" method="post" action="{$event-addEventRefComplete}" id="standardForm" enctype="multipart/form-data"> 3106 3096 <xsl:variable name="subscriptionId" select="subscription/id"/> … … 3356 3346 <td> 3357 3347 <textarea name="categoryDesc.value" rows="3" cols="60"> 3348 <xsl:text> </xsl:text> 3358 3349 </textarea> 3359 3350 </td> … … 3394 3385 <textarea name="categoryDesc.value" rows="3" cols="60"> 3395 3386 <xsl:value-of select="normalize-space(/bedework/currentCategory/category/desc)"/> 3387 <xsl:if test="normalize-space(/bedework/currentCategory/category/desc/textarea) = ''"> 3388 <xsl:text> </xsl:text> 3389 <!-- keep this space to avoid browser 3390 rendering errors when the text area is empty --> 3391 </xsl:if> 3396 3392 </textarea> 3397 3393 </td> … … 3736 3732 <textarea name="calendar.description" cols="40" rows="4"> 3737 3733 <xsl:value-of select="desc"/> 3734 <xsl:if test="normalize-space(desc) = ''"> 3735 <xsl:text> </xsl:text> 3736 <!-- keep this non-breaking space to avoid browser 3737 rendering errors when the text area is empty --> 3738 </xsl:if> 3738 3739 </textarea> 3739 3740 </td> … … 3808 3809 <textarea name="calendar.description" cols="40" rows="4"> 3809 3810 <xsl:value-of select="desc"/> 3811 <xsl:if test="normalize-space(desc) = ''"> 3812 <xsl:text> </xsl:text> 3813 <!-- keep this non-breaking space to avoid browser 3814 rendering errors when the text area is empty --> 3815 </xsl:if> 3810 3816 </textarea> 3811 3817 </td> … … 4127 4133 <li class="folder"> 4128 4134 <xsl:value-of select="name"/>: 4129 <ul> 4130 <xsl:for-each select="calendars//calendar[calendarCollection='true']"> 4131 <li class="calendar"> 4132 <xsl:variable name="calPath" select="path"/> 4133 <xsl:variable name="name" select="name"/> 4134 <a href="javascript:exportCalendar('exportCalendarForm','{$name}','{$calPath}')"> 4135 <xsl:value-of select="name"/> 4136 </a> 4137 </li> 4138 </xsl:for-each> 4139 </ul> 4135 <xsl:if test="calendars//calendar[calendarCollection='true']"> 4136 <ul> 4137 <xsl:for-each select="calendars//calendar[calendarCollection='true']"> 4138 <li class="calendar"> 4139 <xsl:variable name="calPath" select="path"/> 4140 <xsl:variable name="name" select="name"/> 4141 <a href="javascript:exportCalendar('exportCalendarForm','{$name}','{$calPath}')"> 4142 <xsl:value-of select="name"/> 4143 </a> 4144 </li> 4145 </xsl:for-each> 4146 </ul> 4147 </xsl:if> 4140 4148 </li> 4141 4149 </xsl:otherwise> … … 4230 4238 <h3>Add Subscription to User Calendar</h3> 4231 4239 <p class="note">*the subsciption name must be unique</p> 4232 <form name="subscribeForm" action="{$subscriptions-initAdd}" onsubmit="return setSubscriptionUri(this )" method="post">4240 <form name="subscribeForm" action="{$subscriptions-initAdd}" onsubmit="return setSubscriptionUri(this,'bwcal:///user/')" method="post"> 4233 4241 <table class="common" cellspacing="0"> 4234 4242 <tr> … … 4664 4672 <xsl:template name="upload"> 4665 4673 <!-- The name "eventForm" is referenced by several javascript functions. Do not 4666 change it without modifying includes.js -->4674 change it without modifying bedework.js --> 4667 4675 <form name="eventForm" method="post" action="{$upload}" id="standardForm" enctype="multipart/form-data"> 4668 4676 <h2>Upload iCAL File</h2> … … 4768 4776 <tr> 4769 4777 <td> 4770 <ul> 4771 <xsl:for-each select="/bedework/locations/location"> 4772 <xsl:sort select="."/> 4773 <li> 4774 <xsl:variable name="uid" select="uid"/> 4775 <a href="{$location-fetchForUpdate}&uid={$uid}"><xsl:value-of select="address"/></a> 4776 </li> 4777 </xsl:for-each> 4778 </ul> 4778 <xsl:if test="/bedework/locations/location"> 4779 <ul> 4780 <xsl:for-each select="/bedework/locations/location"> 4781 <xsl:sort select="."/> 4782 <li> 4783 <xsl:variable name="uid" select="uid"/> 4784 <a href="{$location-fetchForUpdate}&uid={$uid}"><xsl:value-of select="address"/></a> 4785 </li> 4786 </xsl:for-each> 4787 </ul> 4788 </xsl:if> 4779 4789 </td> 4780 4790 </tr> … … 5002 5012 <xsl:variable name="recurrenceId" select="recurrenceId"/> 5003 5013 <!-- The name "eventForm" is referenced by several javascript functions. Do not 5004 change it without modifying includes.js -->5014 change it without modifying bedework.js --> 5005 5015 <form name="eventForm" method="post" action="{$schedule-attendeeRespond}" id="standardForm"> 5006 5016 <input type="hidden" name="updateEvent" value="true"/> … … 5043 5053 <td class="fieldval scheduleActions"> 5044 5054 <textarea name="comment" cols="60" rows="2"> 5055 <xsl:text> </xsl:text> 5045 5056 </textarea> 5046 5057 </td> … … 5151 5162 <xsl:choose> 5152 5163 <xsl:when test="form/end/type='E'"> 5153 <input type="radio" name="eventEndType" value="E" checked="checked" on Click="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/>5164 <input type="radio" name="eventEndType" value="E" checked="checked" onclick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 5154 5165 </xsl:when> 5155 5166 <xsl:otherwise> 5156 <input type="radio" name="eventEndType" value="E" on Click="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/>5167 <input type="radio" name="eventEndType" value="E" onclick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 5157 5168 </xsl:otherwise> 5158 5169 </xsl:choose> … … 5200 5211 <xsl:choose> 5201 5212 <xsl:when test="form/end/type='D'"> 5202 <input type="radio" name="eventEndType" value="D" checked="checked" on Click="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/>5213 <input type="radio" name="eventEndType" value="D" checked="checked" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 5203 5214 </xsl:when> 5204 5215 <xsl:otherwise> 5205 <input type="radio" name="eventEndType" value="D" on Click="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/>5216 <input type="radio" name="eventEndType" value="D" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 5206 5217 </xsl:otherwise> 5207 5218 </xsl:choose> … … 5239 5250 <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')"/> 5240 5251 <xsl:variable name="weeksStr" select="form/end/duration/weeks/input/@value"/> 5241 <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks" disabled=" true"/>weeks5252 <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks" disabled="disabled"/>weeks 5242 5253 </div> 5243 5254 </xsl:when> … … 5247 5258 <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')"/> 5248 5259 <xsl:variable name="daysStr" select="form/end/duration/days/input/@value"/> 5249 <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays" disabled=" true"/>days5260 <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays" disabled="disabled"/>days 5250 5261 <span id="durationHrMin" class="{$durationHrMinClass}"> 5251 5262 <xsl:variable name="hoursStr" select="form/end/duration/hours/input/@value"/> 5252 <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours" disabled=" true"/>hours5263 <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours" disabled="disabled"/>hours 5253 5264 <xsl:variable name="minutesStr" select="form/end/duration/minutes/input/@value"/> 5254 <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes" disabled=" true"/>minutes5265 <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes" disabled="disabled"/>minutes 5255 5266 </span> 5256 5267 </div> … … 5268 5279 <xsl:choose> 5269 5280 <xsl:when test="form/end/type='N'"> 5270 <input type="radio" name="eventEndType" value="N" checked="checked" on Click="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/>5281 <input type="radio" name="eventEndType" value="N" checked="checked" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 5271 5282 </xsl:when> 5272 5283 <xsl:otherwise> 5273 <input type="radio" name="eventEndType" value="N" on Click="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/>5284 <input type="radio" name="eventEndType" value="N" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 5274 5285 </xsl:otherwise> 5275 5286 </xsl:choose> … … 5576 5587 <xsl:template match="event" mode="addEventRef"> 5577 5588 <!-- The name "eventForm" is referenced by several javascript functions. Do not 5578 change it without modifying includes.js -->5589 change it without modifying bedework.js --> 5579 5590 <form name="eventForm" method="post" action="{$event-addEventRefComplete}" id="standardForm" enctype="multipart/form-data"> 5580 5591 <xsl:variable name="subscriptionId" select="subscription/id"/> … … 5636 5647 <h2>Manage Preferences</h2> 5637 5648 <ul class="submenu"> 5638 <li class="selected"> General</li>5639 <li><a href="{$prefs-fetchSchedulingForUpdate}"> Scheduling/Meetings</a></li>5649 <li class="selected">general</li> 5650 <li><a href="{$prefs-fetchSchedulingForUpdate}">scheduling/meetings</a></li> 5640 5651 </ul> 5641 5652 <!-- The name "eventForm" is referenced by several javascript functions. Do not 5642 change it without modifying includes.js -->5643 <form name="eventForm" method="post" action="{$prefs-update}" on Submit="setWorkDays(this)">5653 change it without modifying bedework.js --> 5654 <form name="eventForm" method="post" action="{$prefs-update}" onsubmit="setWorkDays(this)"> 5644 5655 <table class="common"> 5645 5656 <tr><td colspan="2" class="fill">User settings:</td></tr> … … 5956 5967 <h2>Manage Preferences</h2> 5957 5968 <ul class="submenu"> 5958 <li><a href="{$prefs-fetchForUpdate}"> General</a></li>5959 <li class="selected"> <a href="">Scheduling/Meetings</a></li>5969 <li><a href="{$prefs-fetchForUpdate}">general</a></li> 5970 <li class="selected">scheduling/meetings</li> 5960 5971 </ul> 5961 5972 … … 5969 5980 <form name="prefsSetAccess1" method="post" action="{$prefs-setAccess}" onsubmit="setScheduleHow(this)"> 5970 5981 <xsl:call-template name="schedulingAccessForm"/> 5982 <input type="hidden" name="what" value="in"/> 5971 5983 </form> 5972 5984 <xsl:apply-templates select="inbox/acl" mode="currentAccess"> … … 5978 5990 <form name="prefsSetAccess2" method="post" action="{$prefs-setAccess}" onsubmit="setScheduleHow(this)"> 5979 5991 <xsl:call-template name="schedulingAccessForm"/> 5992 <input type="hidden" name="what" value="out"/> 5980 5993 </form> 5981 5994 <xsl:apply-templates select="outbox/acl" mode="currentAccess"> … … 6021 6034 <!--==== ACCESS CONTROL TEMPLATES ====--> 6022 6035 6036 <xsl:template name="eventAccessForm"> 6037 <xsl:variable name="calPathEncoded" select="form/calendar/encodedPath"/> 6038 <xsl:variable name="calPath" select="form/calendar/path"/> 6039 <xsl:variable name="guid" select="guid"/> 6040 <xsl:variable name="recurrenceId" select="recurrenceId"/> 6041 <div id="bwEventTab-Access" class="invisible"> 6042 <div id="sharingBox"> 6043 <xsl:apply-templates select="/bedework/access/acl" mode="currentAccess"> 6044 <xsl:with-param name="action" select="$event-setAccess"/> 6045 <xsl:with-param name="calPathEncoded" select="$calPathEncoded"/> 6046 <xsl:with-param name="guid" select="$guid"/> 6047 <xsl:with-param name="recurrenceId" select="$recurrenceId"/> 6048 </xsl:apply-templates> 6049 <form name="eventShareForm" action="{$event-setAccess}" id="shareForm"> 6050 <input type="hidden" name="calPath" value="{$calPath}"/> 6051 <input type="hidden" name="guid" value="{$guid}"/> 6052 <input type="hidden" name="recurid" value="{$recurrenceId}"/> 6053 <xsl:call-template name="entityAccessForm"/> 6054 </form> 6055 </div> 6056 </div> 6057 </xsl:template> 6058 6023 6059 <xsl:template name="schedulingAccessForm"> 6024 <input type="hidden" name="what" value="out"/>6025 6060 <p> 6026 6061 <input type="text" name="who" width="40"/> … … 6439 6474 <!--<form name="skinSelectForm" method="post" action="{$setup}"> 6440 6475 skin selector: 6441 <select name="skinNameSticky" on Change="submit()">6476 <select name="skinNameSticky" onchange="submit()"> 6442 6477 <option>select a skin</option> 6443 6478 <option value="default">Demo Calendar</option>
