Changeset 104
- Timestamp:
- 02/07/06 12:06:47
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/default.xsl
r103 r104 51 51 urls; allows the application to be used without cookies or within a portal. --> 52 52 <xsl:variable name="setup" select="/ucalendar/urlPrefixes/setup"/> 53 <xsl:variable name="se lectView" select="/ucalendar/urlPrefixes/selectView"/>53 <xsl:variable name="setSelection" select="/ucalendar/urlPrefixes/setSelection"/> 54 54 <xsl:variable name="fetchPublicCalendars" select="/ucalendar/urlPrefixes/fetchPublicCalendars"/> 55 <xsl:variable name="setView " select="/ucalendar/urlPrefixes/setView"/>55 <xsl:variable name="setViewPeriod" select="/ucalendar/urlPrefixes/setViewPeriod"/> 56 56 <xsl:variable name="eventView" select="/ucalendar/urlPrefixes/eventView"/> 57 57 <xsl:variable name="addEventRef" select="/ucalendar/urlPrefixes/addEventRef"/> … … 325 325 <td colspan="5" class="dateRow"> 326 326 <xsl:variable name="date" select="date"/> 327 <a href="{$setView }?viewType=dayView&date={$date}">327 <a href="{$setViewPeriod}?viewType=dayView&date={$date}"> 328 328 <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/> 329 329 </a> … … 447 447 <img class="addref" src="{$resourcesRoot}/images/demo/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/> 448 448 </a> 449 <xsl:variable name=" icalName" select="concat($id,'.ics')"/>450 <a href="{$e ventView}?eventId=subid={$subscriptionId}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$icalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">449 <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/> 450 <a href="{$export}?subid={$subscriptionId}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 451 451 <img src="{$resourcesRoot}/images/demo/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/> 452 452 </a> … … 474 474 <td> 475 475 <xsl:variable name="dayDate" select="date"/> 476 <a href="{$setView }?viewType=dayView&date={$dayDate}" class="dayLink">476 <a href="{$setViewPeriod}?viewType=dayView&date={$dayDate}" class="dayLink"> 477 477 <xsl:value-of select="value"/> 478 478 </a> … … 508 508 <td> 509 509 <xsl:variable name="dayDate" select="date"/> 510 <a href="{$setView }?viewType=dayView&date={$dayDate}" class="dayLink">510 <a href="{$setViewPeriod}?viewType=dayView&date={$dayDate}" class="dayLink"> 511 511 <xsl:value-of select="value"/> 512 512 </a> … … 592 592 <td colspan="8" class="monthName"> 593 593 <xsl:variable name="firstDayOfMonth" select="week/day/date"/> 594 <a href="{$setView }?viewType=monthView&date={$firstDayOfMonth}">594 <a href="{$setViewPeriod}?viewType=monthView&date={$firstDayOfMonth}"> 595 595 <xsl:value-of select="longname"/> 596 596 </a> … … 607 607 <td class="weekCell"> 608 608 <xsl:variable name="firstDayOfWeek" select="day/date"/> 609 <a href="{$setView }?viewType=weekView&date={$firstDayOfWeek}">609 <a href="{$setViewPeriod}?viewType=weekView&date={$firstDayOfWeek}"> 610 610 <xsl:value-of select="value"/> 611 611 </a> … … 619 619 <td> 620 620 <xsl:variable name="dayDate" select="date"/> 621 <a href="{$setView }?viewType=dayView&date={$dayDate}">621 <a href="{$setViewPeriod}?viewType=dayView&date={$dayDate}"> 622 622 <xsl:value-of select="value"/> 623 623 </a> … … 634 634 <!--==== CALENDARS PAGE ====--> 635 635 <xsl:template match="calendars"> 636 <xsl:variable name="topLevelCalCount" select="count(/ucalendar/calendars/calendar )"/>636 <xsl:variable name="topLevelCalCount" select="count(/ucalendar/calendars/calendar/calendar)"/> 637 637 <table id="calPageTable" border="0" cellpadding="0" cellspacing="0"> 638 638 <tr> … … 648 648 <tr> 649 649 <td class="leftCell"> 650 <xsl:apply-templates select="calendar [position() <= floor($topLevelCalCount div 2)]"/>650 <xsl:apply-templates select="calendar/calendar[position() <= floor($topLevelCalCount div 2)]"/> 651 651 </td> 652 652 <td> 653 <xsl:apply-templates select="calendar [position() > floor($topLevelCalCount div 2)]"/>653 <xsl:apply-templates select="calendar/calendar[position() > floor($topLevelCalCount div 2)]"/> 654 654 </td> 655 655 </tr> … … 658 658 659 659 <xsl:template match="calendar"> 660 <xsl:variable name=" id" select="id"/>661 <h2><a href="{$se lectView}?calId={$id}"><xsl:value-of select="title"/></a></h2>660 <xsl:variable name="url" select="url"/> 661 <h2><a href="{$setSelection}?calUrl={$url}"><xsl:value-of select="name"/></a></h2> 662 662 <ul> 663 663 <xsl:for-each select="calendar"> 664 664 <!--<xsl:sort select="title" order="ascending" case-order="upper-first"/>--> 665 <xsl:variable name=" id" select="id"/>666 <li><a href="{$se lectView}?calId={$id}"><xsl:value-of select="title"/></a></li>665 <xsl:variable name="url" select="url"/> 666 <li><a href="{$setSelection}?calUrl={$url}"><xsl:value-of select="name"/></a></li> 667 667 </xsl:for-each> 668 668 </ul> … … 754 754 <img alt="print this view" src="{$resourcesRoot}/images/demo/std-print-icon.gif" width="20" height="14" border="0"/> 755 755 </a> 756 <a class="rss" href="{$se lectView}?calId=&setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>756 <a class="rss" href="{$setSelection}?calId=&setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a> 757 757 <xsl:variable name="calcategory"> 758 758 <xsl:choose> … … 778 778 <xsl:choose> 779 779 <xsl:when test="/ucalendar/periodname='Day'"> 780 <a href="{$setView }?viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-day-on.gif" width="91" height="20" border="0" alt="DAY"/></a>780 <a href="{$setViewPeriod}?viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-day-on.gif" width="91" height="20" border="0" alt="DAY"/></a> 781 781 </xsl:when> 782 782 <xsl:otherwise> 783 <a href="{$setView }?viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>783 <a href="{$setViewPeriod}?viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a> 784 784 </xsl:otherwise> 785 785 </xsl:choose> … … 788 788 <xsl:choose> 789 789 <xsl:when test="/ucalendar/periodname='Week' or /ucalendar/periodname=''"> 790 <a href="{$setView }?viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-week-on.gif" width="92" height="20" border="0" alt="WEEK"/></a>790 <a href="{$setViewPeriod}?viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-week-on.gif" width="92" height="20" border="0" alt="WEEK"/></a> 791 791 </xsl:when> 792 792 <xsl:otherwise> 793 <a href="{$setView }?viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>793 <a href="{$setViewPeriod}?viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a> 794 794 </xsl:otherwise> 795 795 </xsl:choose> … … 798 798 <xsl:choose> 799 799 <xsl:when test="/ucalendar/periodname='Month'"> 800 <a href="{$setView }?viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-month-on.gif" width="90" height="20" border="0" alt="MONTH"/></a>800 <a href="{$setViewPeriod}?viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-month-on.gif" width="90" height="20" border="0" alt="MONTH"/></a> 801 801 </xsl:when> 802 802 <xsl:otherwise> 803 <a href="{$setView }?viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>803 <a href="{$setViewPeriod}?viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a> 804 804 </xsl:otherwise> 805 805 </xsl:choose> … … 808 808 <xsl:choose> 809 809 <xsl:when test="/ucalendar/periodname='Year'"> 810 <a href="{$setView }?viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-year-on.gif" width="92" height="20" border="0" alt="YEAR"/></a>810 <a href="{$setViewPeriod}?viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-year-on.gif" width="92" height="20" border="0" alt="YEAR"/></a> 811 811 </xsl:when> 812 812 <xsl:otherwise> 813 <a href="{$setView }?viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>813 <a href="{$setViewPeriod}?viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a> 814 814 </xsl:otherwise> 815 815 </xsl:choose> … … 898 898 <tr> 899 899 <td> 900 <a href="{$setView }?viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>900 <a href="{$setViewPeriod}?viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a> 901 901 </td> 902 902 <td> 903 <a href="{$setView }?viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>903 <a href="{$setViewPeriod}?viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a> 904 904 </td> 905 905 <td> 906 <a href="{$setView }?viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>906 <a href="{$setViewPeriod}?viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a> 907 907 </td> 908 908 <td> 909 <a href="{$setView }?viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>909 <a href="{$setViewPeriod}?viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a> 910 910 </td> 911 911 <td class="centerCell"> … … 935 935 <tr> 936 936 <td class="leftCell"> 937 <a href="{$setView }?date={$prevdate}"><img src="{$resourcesRoot}/images/demo/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a>938 <a href="{$setView }?date={$nextdate}"><img src="{$resourcesRoot}/images/demo/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a>937 <a href="{$setViewPeriod}?date={$prevdate}"><img src="{$resourcesRoot}/images/demo/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a> 938 <a href="{$setViewPeriod}?date={$nextdate}"><img src="{$resourcesRoot}/images/demo/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a> 939 939 <xsl:choose> 940 940 <xsl:when test="/ucalendar/periodname='Day'"> … … 953 953 </td> 954 954 <td align="right" class="gotoForm"> 955 <form name="calForm" method="get" action="{$setView }">955 <form name="calForm" method="get" action="{$setViewPeriod}"> 956 956 <table border="0" cellpadding="0" cellspacing="0"> 957 957 <tr> … … 1012 1012 </td> 1013 1013 <td class="todayButton"> 1014 <a href="{$setView }?viewType=todayView&date={$curdate}">1014 <a href="{$setViewPeriod}?viewType=todayView&date={$curdate}"> 1015 1015 <img src="{$resourcesRoot}/images/demo/std-button-today-off.gif" width="54" height="22" border="0" alt="Go to Today" align="left"/> 1016 1016 </a> … … 1029 1029 <xsl:when test="/ucalendar/name!=''"> 1030 1030 View: 1031 <form name="selectViewForm" method="get" action="{$se lectView}">1031 <form name="selectViewForm" method="get" action="{$setSelection}"> 1032 1032 <select name="viewName" onChange="submit()" > 1033 1033 <xsl:for-each select="/ucalendar/views/view"> … … 1044 1044 </select> 1045 1045 </form> 1046 <span class="calLinks"><a href="{$se lectView}">default view</a> | <a href="{$fetchPublicCalendars}">calendar list</a></span>1046 <span class="calLinks"><a href="{$setSelection}">default view</a> | <a href="{$fetchPublicCalendars}">calendar list</a></span> 1047 1047 </xsl:when> 1048 1048 <xsl:when test="/ucalendar/search!=''"> 1049 1049 Current search: <xsl:value-of select="/ucalendar/search"/> 1050 <span class="link">[<a href="{$se lectView}">default view</a>]</span>1050 <span class="link">[<a href="{$setSelection}">default view</a>]</span> 1051 1051 </xsl:when> 1052 1052 </xsl:choose> 1053 1053 </td> 1054 <td class="rightCell"><!--<form name="searchForm" method="get" action="{$se lectView}">Search: <input type="text" name="searchString" size="30" value=""/><input type="submit" value="go"/></form>--></td>1054 <td class="rightCell"><!--<form name="searchForm" method="get" action="{$setSelection}">Search: <input type="text" name="searchString" size="30" value=""/><input type="submit" value="go"/></form>--></td> 1055 1055 </tr> 1056 1056 </table> trunk/calendar3/webclient/war/WEB-INF/struts-config.xml
r95 r104 179 179 </action> 180 180 181 <action path="/selectCalendar"182 type="org.bedework.webclient.BwCalendarAction"183 name="calForm"184 scope="session"185 validate="false">186 <forward name="noCalDef" path="/showMain.rdo" redirect="true" />187 </action>188 189 181 <action path="/fetchPublicCalendars" 190 182 type="org.bedework.webclient.BwAction" … … 203 195 </action> 204 196 205 <action path="/se lectView"197 <action path="/setSelection" 206 198 type="org.bedework.webclient.BwSelectViewAction" 207 199 name="calForm" … … 211 203 </action> 212 204 213 <action path="/setView "205 <action path="/setViewPeriod" 214 206 type="org.bedework.webclient.BwGoToAction" 215 207 name="calForm" trunk/calendar3/webclient/war/docs/header.jsp
r94 r104 132 132 <%-- action urls --%> 133 133 <setup><genurl:rewrite action="setup.do"/></setup> 134 <selectView ><genurl:rewrite action="selectView.do"/></selectView>134 <selectViewPeriod><genurl:rewrite action="selectViewPeriod.do"/></selectViewPeriod> 135 135 <setView><genurl:rewrite action="setView.do"/></setView> 136 136 <eventView><genurl:rewrite action="eventView.do"/></eventView>
