Changeset 1220
- Timestamp:
- 01/14/07 04:13:20
- Files:
-
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/blue.css (modified) (6 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl (modified) (14 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/green.css (modified) (6 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/red.css (modified) (6 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/resources/javascript/bedework.js (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl (modified) (24 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/soe.css (modified) (8 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/resources (added)
- trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/resources/javascript (added)
- trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/resources/javascript/bedework.js (added)
- trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/blue.css
r1184 r1220 126 126 margin: 0px; 127 127 padding: 0em; 128 vertical-align: middle; 128 129 background-color : #eee; 129 130 color: black; … … 139 140 #searchBarTable .leftCell .link { 140 141 font-size: 0.8em; 141 padding-left: 1em;142 padding-left: 0.5em; 142 143 color: #999; 143 144 background-color: transparent; … … 159 160 white-space: nowrap; 160 161 } 162 #searchBarTable form, 163 #searchPageForm { 164 display: inline; 165 margin: 0; 166 padding: 0; 167 white-space: nowrap; 168 } 169 #searchBarTable #searchForm { 170 margin-right: 0.5em; 171 } 172 #searchPageForm { 173 float: right; 174 } 175 #searchBarTable form input { 176 font-size: 0.7em; 177 } 178 #searchBarTable img { 179 vertical-align: middle; 180 } 181 #searchFilter { 182 float: right; 183 font-size: 10pt; 184 font-weight: normal; 185 margin-top: 5px; 186 } 187 #searchFilter form { 188 display: inline; 189 } 161 190 #tabsTable { 162 191 margin: 0em; … … 233 262 margin: 0em; 234 263 width: 10em; 235 }236 #searchBarTable .calLinks {237 white-space: nowrap;238 264 } 239 265 #eventTable, … … 908 934 } 909 935 h2.bwStatusConfirmed { 936 border-top: 1px solid #ccc; 910 937 background-color: #eee; 911 938 color: black; 912 939 } 913 940 h2.bwStatusCancelled { 941 border-top: 1px solid #ccc; 914 942 background-color: #eee; 915 943 color: black; 916 944 } 917 945 h2.bwStatusTentative { 946 border-top: 1px solid #ccc; 918 947 background: #eee url('../../images/tentativeLines.gif') top; 919 948 color: black; … … 935 964 padding: 0 1em; 936 965 } 937 #searchBarTable form,938 #searchPageForm {939 display: inline;940 margin: 0px 0px 1px 0px;941 padding: 0em;942 white-space: nowrap;943 }944 #searchPageForm {945 float: right;946 }947 #searchBarTable form input {948 font-size: 0.7em;949 }950 #searchBarTable img {951 vertical-align: middle;952 }953 #searchFilter {954 float: right;955 font-size: 10pt;956 font-weight: normal;957 margin-top: 5px;958 }959 #searchFilter form {960 display: inline;961 }962 966 #stats { 963 967 font-size: 0.9em; trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl
r1218 r1220 2 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 3 <xsl:output 4 method=" html"5 indent=" yes"4 method="xhtml" 5 indent="no" 6 6 media-type="text/html" 7 doctype-public="-//W3C//DTD HTML 4.01Transitional//EN"8 doctype-system="http://www.w3.org/TR/ html4/loose.dtd"7 doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" 8 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" 9 9 standalone="yes" 10 /> 10 omit-xml-declaration="yes"/> 11 11 12 <!-- ========================================================= 12 13 … … 108 109 <head> 109 110 <title>Bedework Events Calendar</title> 111 <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> 110 112 <!-- load css --> 111 113 <xsl:choose> … … 124 126 <!-- load javascript --> 125 127 <xsl:if test="/bedework/page='calendarList'"> 126 <script type="text/javascript" src="{$resourceCommons}/javascript/dojo/dojo.js" />127 <script type="text/javascript" src="{$resourcesRoot}/resources/javascript/bedework.js" />128 <script type="text/javascript" src="{$resourceCommons}/javascript/dojo/dojo.js"> </script> 129 <script type="text/javascript" src="{$resourcesRoot}/resources/javascript/bedework.js"> </script> 128 130 </xsl:if> 129 131 <!-- address bar icon --> … … 158 160 </xsl:when> 159 161 <xsl:otherwise> 160 <!-- otherwise, show the eventsCalendar 161 <xsl:if test="/bedework/periodname!='Year'"> 162 <xsl:call-template name="searchBar"/> 163 </xsl:if>--> 162 <!-- otherwise, show the eventsCalendar --> 164 163 <!-- main eventCalendar content --> 165 164 <xsl:choose> … … 461 460 View: 462 461 <form name="selectViewForm" method="post" action="{$setSelection}"> 463 <select name="viewName" on Change="submit()" >462 <select name="viewName" onchange="submit()" > 464 463 <xsl:for-each select="/bedework/views/view"> 465 464 <xsl:variable name="name" select="name"/> … … 475 474 </select> 476 475 </form> 477 <span class=" calLinks"><a href="{$setSelection}">default view</a> | <a href="{$fetchPublicCalendars}">available calendars</a></span>476 <span class="link"><a href="{$setSelection}">default view</a> | <a href="{$fetchPublicCalendars}">available calendars</a></span> 478 477 </xsl:otherwise> 479 478 </xsl:choose> … … 481 480 <td class="rightCell"> 482 481 <xsl:if test="/bedework/page!='searchResult'"> 483 <form name="searchForm" method="post" action="{$search}">482 <form name="searchForm" id="searchForm" method="post" action="{$search}"> 484 483 Search: 485 484 <input type="text" name="query" size="15"> … … 488 487 <input type="submit" name="submit" value="go"/> 489 488 </form> 489 <xsl:text> </xsl:text> 490 490 </xsl:if> 491 491 <xsl:choose> … … 557 557 </xsl:otherwise> 558 558 </xsl:choose> 559 <a href=" setup.do"><img src="{$resourcesRoot}/images/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a>559 <a href="{$setup}"><img src="{$resourcesRoot}/images/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a> 560 560 </td> 561 561 </tr> … … 1017 1017 <xsl:value-of select="value"/> 1018 1018 </a> 1019 <ul> 1020 <xsl:apply-templates select="event" mode="calendarLayout"> 1021 <xsl:with-param name="dayPos" select="$dayPos"/> 1022 </xsl:apply-templates> 1023 </ul> 1019 <xsl:if test="event"> 1020 <ul> 1021 <xsl:apply-templates select="event" mode="calendarLayout"> 1022 <xsl:with-param name="dayPos" select="$dayPos"/> 1023 </xsl:apply-templates> 1024 </ul> 1025 </xsl:if> 1024 1026 </td> 1025 1027 </xsl:if> … … 1054 1056 <xsl:value-of select="value"/> 1055 1057 </a> 1056 <ul> 1057 <xsl:apply-templates select="event" mode="calendarLayout"> 1058 <xsl:with-param name="dayPos" select="$dayPos"/> 1059 </xsl:apply-templates> 1060 </ul> 1058 <xsl:if test="event"> 1059 <ul> 1060 <xsl:apply-templates select="event" mode="calendarLayout"> 1061 <xsl:with-param name="dayPos" select="$dayPos"/> 1062 </xsl:apply-templates> 1063 </ul> 1064 </xsl:if> 1061 1065 </td> 1062 1066 </xsl:otherwise> … … 1261 1265 <input type="radio" name="dateLimits" value="limited" onclick="changeClass('exportDateRange','visible')"/> date range 1262 1266 <div id="exportDateRange" class="invisible"> 1263 Start: <div dojoType="dropdowndatepicker" formatLength="medium" saveFormat="yyyyMMdd" id="bwExportCalendarWidgetStartDate">< /div>1264 End: <div dojoType="dropdowndatepicker" formatLength="medium" saveFormat="yyyyMMdd" id="bwExportCalendarWidgetEndDate">< /div>1267 Start: <div dojoType="dropdowndatepicker" formatLength="medium" saveFormat="yyyyMMdd" id="bwExportCalendarWidgetStartDate"><xsl:text> </xsl:text></div> 1268 End: <div dojoType="dropdowndatepicker" formatLength="medium" saveFormat="yyyyMMdd" id="bwExportCalendarWidgetEndDate"><xsl:text> </xsl:text></div> 1265 1269 </div> 1266 1270 <p><input type="submit" value="export" class="bwWidgetSubmit" onclick="fillExportFields('exportCalendarForm');hideWidget('bwCalendarExportWidget')"/></p> … … 1297 1301 <xsl:variable name="name" select="name"/> 1298 1302 <xsl:variable name="calPath" select="path"/> 1303 <xsl:variable name="idForCal" select="translate(translate(path,'/','S'),' ','s')"/> 1299 1304 <span class="exportCalLink"> 1300 <!--<a href="{$export}&calPath={$calPath}&dateLimits=active&nocache=no&skinName=ical&contentType=text/calendar&contentName={$name}.ics" title="export calendar as iCal (excluding past events)">--> 1301 <a href="javascript:launchExportWidget('exportCalendarForm','{$name}','{$calPath}')" id="{$calPath}" title="export calendar as iCal"> 1305 <a href="javascript:launchExportWidget('exportCalendarForm','{$export}','{$name}','{$calPath}')" id="{$idForCal}" title="export calendar as iCal"> 1302 1306 <img src="{$resourcesRoot}/images/calIconExport-sm.gif" width="13" height="13" alt="export calendar" border="0"/> 1303 1307 </a> 1304 <!--</a>-->1305 <!--export1306 <a href="{$export}&calPath={$calPath}&dateLimits=active&nocache=no&skinName=ical&contentType=text/calendar&contentName={$name}.ics" title="export calendar as iCal (excluding past events)">current</a> |1307 <a href="{$export}&calPath={$calPath}&dateLimits=none&nocache=no&skinName=ical&contentType=text/calendar&contentName={$name}.ics" title="export calendar as iCal (excluding past events)">all</a>-->1308 1308 </span> 1309 1309 </xsl:if> … … 1561 1561 <td class="rightCell"> 1562 1562 <form name="styleSelectForm" method="post" action="{$setup}"> 1563 <select name="setappvar" on Change="submit()">1563 <select name="setappvar" onchange="submit()"> 1564 1564 <option>example styles:</option> 1565 1565 <option value="style(green)">green</option> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/green.css
r1184 r1220 135 135 margin: 0px; 136 136 padding: 0em; 137 vertical-align: middle; 137 138 background-color : #eee; 138 139 color: black; … … 148 149 #searchBarTable .leftCell .link { 149 150 font-size: 0.8em; 150 padding-left: 1em;151 padding-left: 0.5em; 151 152 color: #999; 152 153 background-color: transparent; … … 168 169 white-space: nowrap; 169 170 } 170 #searchBarTable form { 171 #searchBarTable form, 172 #searchPageForm { 171 173 display: inline; 172 174 margin: 0px 0px 1px 0px; 173 padding: 0em; 175 padding: 0 1em 0 0; 176 white-space: nowrap; 177 } 178 #searchPageForm { 179 float: right; 180 } 181 #searchBarTable form input { 182 font-size: 0.7em; 183 } 184 #searchBarTable img { 185 vertical-align: middle; 186 } 187 #searchFilter { 188 float: right; 189 font-size: 10pt; 190 font-weight: normal; 191 margin-top: 5px; 192 } 193 #searchFilter form { 194 display: inline; 174 195 } 175 196 #tabsTable { … … 247 268 margin: 0em; 248 269 width: 10em; 249 }250 #searchBarTable .calLinks {251 white-space: nowrap;252 270 } 253 271 #eventTable, … … 919 937 } 920 938 h2.bwStatusConfirmed { 939 border-top: 1px solid #ccc; 921 940 background-color: #eee; 922 941 color: black; 923 942 } 924 943 h2.bwStatusCancelled { 944 border-top: 1px solid #ccc; 925 945 background-color: #eee; 926 946 color: black; 927 947 } 928 948 h2.bwStatusTentative { 949 border-top: 1px solid #ccc; 929 950 background: #eee url('../../images/tentativeLines.gif') top; 930 951 color: black; … … 946 967 padding: 0 1em; 947 968 } 948 #searchBarTable form,949 #searchPageForm {950 display: inline;951 margin: 0px 0px 1px 0px;952 padding: 0em;953 white-space: nowrap;954 }955 #searchPageForm {956 float: right;957 }958 #searchBarTable form input {959 font-size: 0.7em;960 }961 #searchBarTable img {962 vertical-align: middle;963 }964 #searchFilter {965 float: right;966 font-size: 10pt;967 font-weight: normal;968 margin-top: 5px;969 }970 #searchFilter form {971 display: inline;972 }973 969 #stats { 974 970 font-size: 0.9em; trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/red.css
r1184 r1220 135 135 margin: 0px; 136 136 padding: 0em; 137 vertical-align: middle; 137 138 background-color : #eee; 138 139 color: black; … … 148 149 #searchBarTable .leftCell .link { 149 150 font-size: 0.8em; 150 padding-left: 1em;151 padding-left: 0.5em; 151 152 color: #999; 152 153 background-color: transparent; … … 168 169 white-space: nowrap; 169 170 } 170 #searchBarTable form { 171 #searchBarTable form, 172 #searchPageForm { 171 173 display: inline; 172 174 margin: 0px 0px 1px 0px; 173 padding: 0em; 175 padding: 0 1em 0 0; 176 white-space: nowrap; 177 } 178 #searchPageForm { 179 float: right; 180 } 181 #searchBarTable form input { 182 font-size: 0.7em; 183 } 184 #searchBarTable img { 185 vertical-align: middle; 186 } 187 #searchFilter { 188 float: right; 189 font-size: 10pt; 190 font-weight: normal; 191 margin-top: 5px; 192 } 193 #searchFilter form { 194 display: inline; 174 195 } 175 196 #tabsTable { … … 243 264 margin: 0em; 244 265 width: 10em; 245 }246 #searchBarTable .calLinks {247 white-space: nowrap;248 266 } 249 267 #eventTable, … … 920 938 } 921 939 h2.bwStatusConfirmed { 940 border-top: 1px solid #ccc; 922 941 background-color: #eee; 923 942 color: black; 924 943 } 925 944 h2.bwStatusCancelled { 945 border-top: 1px solid #ccc; 926 946 background-color: #eee; 927 947 color: black; 928 948 } 929 949 h2.bwStatusTentative { 950 border-top: 1px solid #ccc; 930 951 background: #eee url('../../images/tentativeLines.gif') top; 931 952 color: black; … … 947 968 padding: 0 1em; 948 969 } 949 #searchBarTable form,950 #searchPageForm {951 display: inline;952 margin: 0px 0px 1px 0px;953 padding: 0em;954 white-space: nowrap;955 }956 #searchPageForm {957 float: right;958 }959 #searchBarTable form input {960 font-size: 0.7em;961 }962 #searchBarTable img {963 vertical-align: middle;964 }965 #searchFilter {966 float: right;967 font-size: 10pt;968 font-weight: normal;969 margin-top: 5px;970 }971 #searchFilter form {972 display: inline;973 }974 970 #stats { 975 971 font-size: 0.9em; trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/resources/javascript/bedework.js
r1209 r1220 8 8 identity.className=newClass; 9 9 } 10 function launchExportWidget(formId, name,calPath) {10 function launchExportWidget(formId,action,name,calPath) { 11 11 var exportWidget = dojo.widget.byId('bwCalendarExportWidget'); 12 12 exportWidget.show(); trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl
r1218 r1220 2 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 3 <xsl:output 4 method=" html"5 indent=" yes"4 method="xhtml" 5 indent="no" 6 6 media-type="text/html" 7 doctype-public="-//W3C//DTD HTML 4.01Transitional//EN"8 doctype-system="http://www.w3.org/TR/ html4/loose.dtd"7 doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" 8 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" 9 9 standalone="yes" 10 />10 omit-xml-declaration="yes"/> 11 11 12 12 <!-- ========================================================= … … 63 63 <!-- ================================= --> 64 64 65 <!-- URL of resources common to all bedework apps (javascript, images) --> 66 <xsl:variable name="resourceCommons">../../../bedework-common</xsl:variable> 67 65 68 <!-- DEFINE INCLUDES --> 66 <xsl:include href="/bedework-common/default/default/errors.xsl"/> 69 <!-- cannot use the resourceCommons variable in xsl:include paths --> 70 <xsl:include href="../../../bedework-common/default/default/errors.xsl"/> 71 <xsl:include href="../../../bedework-common/default/default/messages.xsl"/> 67 72 68 73 <!-- DEFINE GLOBAL CONSTANTS --> … … 88 93 query string with an ampersand. --> 89 94 <xsl:variable name="setup" select="/bedework/urlPrefixes/setup"/> 90 <xsl:variable name="setSelection" select="/bedework/urlPrefixes/setSelection"/> 91 <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/fetchPublicCalendars"/> 92 <xsl:variable name="setViewPeriod" select="/bedework/urlPrefixes/setViewPeriod"/> 93 <xsl:variable name="eventView" select="/bedework/urlPrefixes/eventView"/> 94 <xsl:variable name="addEventRef" select="/bedework/urlPrefixes/addEventRef"/> 95 <xsl:variable name="export" select="/bedework/urlPrefixes/export/a/@href"/> 96 <xsl:variable name="search" select="/bedework/urlPrefixes/search"/> 97 <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mailEvent"/> 98 <xsl:variable name="showPage" select="/bedework/urlPrefixes/showPage"/> 99 <xsl:variable name="stats" select="/bedework/urlPrefixes/stats"/> 95 <xsl:variable name="setSelection" select="/bedework/urlPrefixes/main/setSelection"/> 96 <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/calendar/fetchPublicCalendars"/> 97 <xsl:variable name="setViewPeriod" select="/bedework/urlPrefixes/main/setViewPeriod"/> 98 <xsl:variable name="eventView" select="/bedework/urlPrefixes/event/eventView"/> 99 <xsl:variable name="addEventRef" select="/bedework/urlPrefixes/event/addEventRef"/> 100 <xsl:variable name="export" select="/bedework/urlPrefixes/misc/export/a/@href"/> 101 <xsl:variable name="search" select="/bedework/urlPrefixes/search/search"/> 102 <xsl:variable name="search-next" select="/bedework/urlPrefixes/search/next"/> 103 <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mail/mailEvent"/> 104 <xsl:variable name="showPage" select="/bedework/urlPrefixes/main/showPage"/> 105 <xsl:variable name="stats" select="/bedework/urlPrefixes/stats/stats"/> 100 106 101 107 <!-- URL of the web application - includes web context --> … … 107 113 <xsl:variable name="nextdate" select="/bedework/nextdate"/> 108 114 <xsl:variable name="curdate" select="/bedework/currentdate/date"/> 109 <xsl:variable name="skin">default</xsl:variable>110 115 111 116 112 117 <!-- MAIN TEMPLATE --> 113 118 <xsl:template match="/"> 114 <html lang="en">119 <html> 115 120 <head> 116 121 <title>School of Engineering: Example Bedework Departmental Calendar Suite</title> 122 <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> 117 123 <link rel="stylesheet" type="text/css" href="{$resourcesRoot}/default/default/soe.css" /> 124 <link rel="stylesheet" href="{$resourcesRoot}/default/default/subColors.css"/> 125 <!-- load javascript --> 126 <xsl:if test="/bedework/page='calendarList'"> 127 <script type="text/javascript" src="{$resourceCommons}/javascript/dojo/dojo.js"> </script> 128 <script type="text/javascript" src="{$resourcesRoot}/resources/javascript/bedework.js"> </script> 129 </xsl:if> 130 <!-- address bar icon --> 118 131 <link rel="icon" type="image/ico" href="{$resourcesRoot}/images/bedework.ico" /> 119 132 </head> … … 127 140 <xsl:call-template name="tabs"/> 128 141 <xsl:call-template name="navigation"/> 142 <xsl:call-template name="searchBar"/> 129 143 <xsl:choose> 130 144 <xsl:when test="/bedework/page='event'"> … … 140 154 <xsl:apply-templates select="/bedework/calendars"/> 141 155 </xsl:when> 156 <xsl:when test="/bedework/page='searchResult'"> 157 <!-- display search results --> 158 <xsl:call-template name="searchResult"/> 159 </xsl:when> 142 160 <xsl:otherwise> 143 161 <!-- otherwise, show the eventsCalendar --> 144 <xsl:if test="/bedework/periodname!='Year'">145 <xsl:call-template name="searchBar"/>146 </xsl:if>147 162 <!-- main eventCalendar content --> 148 163 <xsl:choose> … … 447 462 View: 448 463 <form name="selectViewForm" method="post" action="{$setSelection}"> 449 <select name="viewName" on Change="submit()" >464 <select name="viewName" onchange="submit()" > 450 465 <xsl:for-each select="/bedework/views/view"> 451 466 <xsl:variable name="name" select="name"/> … … 461 476 </select> 462 477 </form> 463 <span class=" calLinks"><a href="{$setSelection}">default view</a> | <a href="{$fetchPublicCalendars}">available calendars</a></span>478 <span class="link"><a href="{$setSelection}">default view</a> | <a href="{$fetchPublicCalendars}">available calendars</a></span> 464 479 </xsl:otherwise> 465 480 </xsl:choose> 466 481 </td> 467 482 <td class="rightCell"> 483 <xsl:if test="/bedework/page!='searchResult'"> 484 <form name="searchForm" id="searchForm" method="post" action="{$search}"> 485 Search: 486 <input type="text" name="query" size="15"> 487 <xsl:attribute name="value"><xsl:value-of select="/bedework/searchResults/query"/></xsl:attribute> 488 </input> 489 <input type="submit" name="submit" value="go"/> 490 </form> 491 <xsl:text> </xsl:text> 492 </xsl:if> 468 493 <xsl:choose> 469 494 <xsl:when test="/bedework/periodname='Day'"> … … 534 559 </xsl:otherwise> 535 560 </xsl:choose> 536 <a href=" setup.do"><img src="{$resourcesRoot}/images/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a>561 <a href="{$setup}"><img src="{$resourcesRoot}/images/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a> 537 562 </td> 538 563 </tr> … … 542 567 <!--==== SINGLE EVENT ====--> 543 568 <xsl:template match="event"> 569 <xsl:variable name="subscriptionId" select="subscription/id"/> 570 <xsl:variable name="calPath" select="calendar/encodedPath"/> 571 <xsl:variable name="guid" select="guid"/> 572 <xsl:variable name="recurrenceId" select="recurrenceId"/> 544 573 <xsl:variable name="statusClass"> 545 574 <xsl:choose> … … 588 617 </xsl:when> 589 618 </xsl:choose> 590 <xsl:if test="start/timezone/islocal = 'false'"> 619 <!-- if timezones are not local, or if floating add labels: --> 620 <xsl:if test="start/timezone/islocal = 'false' or end/timezone/islocal = 'false'"> 591 621 <xsl:text> </xsl:text> 592 622 -- 593 <strong>Local time</strong> 623 <strong> 624 <xsl:choose> 625 <xsl:when test="start/floating = 'true'"> 626 Floating time 627 </xsl:when> 628 <xsl:otherwise> 629 Local time 630 </xsl:otherwise> 631 </xsl:choose> 632 </strong> 594 633 <br/> 595 634 </xsl:if> 596 <!-- display in timezone if not local --> 597 <xsl:if test="start/timezone/islocal = 'false'"> 598 <xsl:value-of select="start/timezone/dayname"/>, <xsl:value-of select="start/timezone/longdate"/><xsl:text> </xsl:text> 599 <xsl:if test="start/allday = 'false'"> 600 <span class="time"><xsl:value-of select="start/timezone/time"/></span> 601 </xsl:if> 602 <xsl:if test="(end/timezone/longdate != start/timezone/longdate) or 603 ((end/timezone/longdate = start/timezone/longdate) and (end/timezone/time != start/timezone/time))"> - </xsl:if> 604 <xsl:if test="end/timezone/longdate != start/timezone/longdate"> 605 <xsl:value-of select="substring(end/timezone/dayname,1,3)"/>, <xsl:value-of select="end/timezone/longdate"/><xsl:text> </xsl:text> 606 </xsl:if> 635 <!-- display in timezone if not local or floating time) --> 636 <xsl:if test="(start/timezone/islocal = 'false' or end/timezone/islocal = 'false') and start/floating = 'false'"> 607 637 <xsl:choose> 608 <xsl:when test="start/allday = 'true'"> 609 <span class="time"><em>(all day)</em></span> 638 <xsl:when test="start/timezone/id != end/timezone/id"> 639 <!-- need to display both timezones if they differ from start to end --> 640 <table border="0" cellspacing="0" id="tztable"> 641 <tr> 642 <td> 643 <strong>Start:</strong> 644 </td> 645 <td> 646 <xsl:choose> 647 <xsl:when test="start/timezone/islocal='true'"> 648 <xsl:value-of select="start/dayname"/>, 649 <xsl:value-of select="start/longdate"/> 650 <xsl:text> </xsl:text> 651 <span class="time"><xsl:value-of select="start/time"/></span> 652 </xsl:when> 653 <xsl:otherwise> 654 <xsl:value-of select="start/timezone/dayname"/>, 655 <xsl:value-of select="start/timezone/longdate"/> 656 <xsl:text> </xsl:text> 657 <span class="time"><xsl:value-of select="start/timezone/time"/></span> 658 </xsl:otherwise> 659 </xsl:choose> 660 </td> 661 <td> 662 -- 663 <strong><xsl:value-of select="start/timezone/id"/></strong> 664 </td> 665 </tr> 666 <tr> 667 <td> 668 <strong>End:</strong> 669 </td> 670 <td> 671 <xsl:choose> 672 <xsl:when test="end/timezone/islocal='true'"> 673 <xsl:value-of select="end/dayname"/>, 674 <xsl:value-of select="end/longdate"/> 675 <xsl:text> </xsl:text> 676 <span class="time"><xsl:value-of select="end/time"/></span> 677 </xsl:when> 678 <xsl:otherwise> 679 <xsl:value-of select="end/timezone/dayname"/>, 680 <xsl:value-of select="end/timezone/longdate"/> 681 <xsl:text> </xsl:text> 682 <span class="time"><xsl:value-of select="end/timezone/time"/></span> 683 </xsl:otherwise> 684 </xsl:choose> 685 </td> 686 <td> 687 -- 688 <strong><xsl:value-of select="end/timezone/id"/></strong> 689 </td> 690 </tr> 691 </table> 610 692 </xsl:when> 611 <xsl:when test="end/timezone/longdate != start/timezone/longdate"> 612 <span class="time"><xsl:value-of select="end/timezone/time"/></span> 613 </xsl:when> 614 <xsl:when test="end/timezone/time != start/timezone/time"> 615 <span class="time"><xsl:value-of select="end/timezone/time"/></span> 616 </xsl:when> 693 <xsl:otherwise> 694 <!-- otherwise, timezones are the same: display as a single line --> 695 <xsl:value-of select="start/timezone/dayname"/>, <xsl:value-of select="start/timezone/longdate"/><xsl:text> </xsl:text> 696 <xsl:if test="start/allday = 'false'"> 697 <span class="time"><xsl:value-of select="start/timezone/time"/></span> 698 </xsl:if> 699 <xsl:if test="(end/timezone/longdate != start/timezone/longdate) or 700 ((end/timezone/longdate = start/timezone/longdate) and (end/timezone/time != start/timezone/time))"> - </xsl:if> 701 <xsl:if test="end/timezone/longdate != start/timezone/longdate"> 702 <xsl:value-of select="substring(end/timezone/dayname,1,3)"/>, <xsl:value-of select="end/timezone/longdate"/><xsl:text> </xsl:text> 703 </xsl:if> 704 <xsl:choose> 705 <xsl:when test="start/allday = 'true'"> 706 <span class="time"><em>(all day)</em></span> 707 </xsl:when> 708 <xsl:when test="end/timezone/longdate != start/timezone/longdate"> 709 <span class="time"><xsl:value-of select="end/timezone/time"/></span> 710 </xsl:when> 711 <xsl:when test="end/timezone/time != start/timezone/time"> 712 <span class="time"><xsl:value-of select="end/timezone/time"/></span> 713 </xsl:when> 714 </xsl:choose> 715 <xsl:text> </xsl:text> 716 -- 717 <strong><xsl:value-of select="start/timezone/id"/></strong> 718 </xsl:otherwise> 617 719 </xsl:choose> 618 <xsl:text> </xsl:text>619 --620 <strong><xsl:value-of select="start/timezone/id"/></strong>621 720 </xsl:if> 622 721 </td> 623 722 <th class="icalIcon" rowspan="2"> 624 723 <div id="eventIcons"> 625 <xsl:variable name="id" select="id"/> 626 <xsl:variable name="subscriptionId" select="subscription/id"/> 627 <xsl:variable name="calPath" select="calendar/encodedPath"/> 628 <xsl:variable name="guid" select="guid"/> 629 <xsl:variable name="recurrenceId" select="recurrenceId"/> 630 <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar"> 724 <a href="{$privateCal}/event/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar"> 631 725 <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon.gif" width="20" height="26" border="0" alt="Add event to MyCalendar"/> 632 726 add to my calendar</a> 633 <xsl:variable name="eventIcalName" select="concat($ id,'.ics')"/>727 <xsl:variable name="eventIcalName" select="concat($guid,'.ics')"/> 634 728 <a href="{$export}&subid={$subscriptionId}&calPath={$calPath}&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"> 635 729 <img src="{$resourcesRoot}/images/std-ical_icon.gif" width="20" height="26" border="0" alt="Download this event"/> … … 690 784 </tr> 691 785 </xsl:if> 692 <xsl:if test=" sponsor/name!='none'">786 <xsl:if test="contact/name!='none'"> 693 787 <tr> 694 788 <td class="fieldname">Contact:</td> 695 789 <td colspan="2" class="fieldval"> 696 790 <xsl:choose> 697 <xsl:when test=" sponsor/link=''">698 <xsl:value-of select=" sponsor/name"/>791 <xsl:when test="contact/link=''"> 792 <xsl:value-of select="contact/name"/> 699 793 </xsl:when> 700 794 <xsl:otherwise> 701 <xsl:variable name="sponsorLink" select=" sponsor/link"/>795 <xsl:variable name="sponsorLink" select="contact/link"/> 702 796 <a href="{$sponsorLink}"> 703 <xsl:value-of select=" sponsor/name"/>797 <xsl:value-of select="contact/name"/> 704 798 </a> 705 799 </xsl:otherwise> 706 800 </xsl:choose> 707 <xsl:if test=" sponsor/phone!=''">708 <br /><xsl:value-of select=" sponsor/phone"/>801 <xsl:if test="contact/phone!=''"> 802 <br /><xsl:value-of select="contact/phone"/> 709 803 </xsl:if> 710 804 <!-- If you want to display email addresses, uncomment the 711 805 following 8 lines. --> 712 <!-- <xsl:if test=" sponsor/email!=''">806 <!-- <xsl:if test="contact/email!=''"> 713 807 <br /> 714 <xsl:variable name="email" select=" sponsor/email"/>808 <xsl:variable name="email" select="contact/email"/> 715 809 <xsl:variable name="subject" select="summary"/> 716 810 <a href="mailto:{$email}&subject={$subject}"> 717 <xsl:value-of select=" sponsor/email"/>811 <xsl:value-of select="contact/email"/> 718 812 </a> 719 813 </xsl:if> --> … … 721 815 </tr> 722 816 </xsl:if> 723 <tr> 724 <td class="fieldname">Calendar:</td> 725 <td class="fieldval"> 726 <xsl:variable name="calUrl" select="calendar/path"/> 727 <a href="{$setSelection}&calUrl={$calUrl}"> 728 <xsl:value-of select="calendar/name"/> 729 </a> 730 </td> 731 </tr> 817 <xsl:if test="calendar/path!=''"> 818 <tr> 819 <td class="fieldname">Calendar:</td> 820 <td class="fieldval"> 821 <xsl:variable name="calUrl" select="calendar/encodedPath"/> 822 <a href="{$setSelection}&calUrl={$calUrl}"> 823 <xsl:value-of select="calendar/name"/> 824 </a> 825 </td> 826 </tr> 827 </xsl:if> 732 828 <xsl:if test="categories/category"> 733 829 <tr> … … 866 962 <xsl:value-of select="cost"/>.  867 963 </xsl:if> 868 <xsl:if test=" sponsor/name!='none'">869 Contact: <xsl:value-of select=" sponsor/name"/>964 <xsl:if test="contact/name!='none'"> 965 Contact: <xsl:value-of select="contact/name"/> 870 966 </xsl:if> 871 967 </em> 968 - <xsl:value-of select="calendar/name"/> 872 969 </a> 873 970 <xsl:if test="link != ''"> … … 880 977 <xsl:value-of select="summary"/> 881 978 <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if> 979 - <em><xsl:value-of select="calendar/name"/></em> 882 980 </a> 883 981 </xsl:otherwise> … … 885 983 </td> 886 984 <td class="icons"> 887 <variable name="confId" select="/bedework/confirmationid"/> 888 <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar"> 985 <a href="{$privateCal}/event/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar"> 889 986 <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/> 890 987 </a> … … 922 1019 <xsl:value-of select="value"/> 923 1020 </a> 924 <ul> 925 <xsl:apply-templates select="event" mode="calendarLayout"> 926 <xsl:with-param name="dayPos" select="$dayPos"/> 927 </xsl:apply-templates> 928 </ul> 1021 <xsl:if test="event"> 1022 <ul> 1023 <xsl:apply-templates select="event" mode="calendarLayout"> 1024 <xsl:with-param name="dayPos" select="$dayPos"/> 1025 </xsl:apply-templates> 1026 </ul> 1027 </xsl:if> 929 1028 </td> 930 1029 </xsl:if> … … 959 1058 <xsl:value-of select="value"/> 960 1059 </a> 961 <ul> 962 <xsl:apply-templates select="event" mode="calendarLayout"> 963 <xsl:with-param name="dayPos" select="$dayPos"/> 964 </xsl:apply-templates> 965 </ul> 1060 <xsl:if test="event"> 1061 <ul> 1062 <xsl:apply-templates select="event" mode="calendarLayout"> 1063 <xsl:with-param name="dayPos" select="$dayPos"/> 1064 </xsl:apply-templates> 1065 </ul> 1066 </xsl:if> 966 1067 </td> 967 1068 </xsl:otherwise> … … 985 1086 <xsl:when test="status='CANCELLED'">eventCancelled</xsl:when> 986 1087 <xsl:when test="status='TENTATIVE'">eventTentative</xsl:when> 987 <xsl:when test="calendar/name='Holidays'">holiday</xsl:when> 988 <!-- Alternating colors for all standard events --> 1088 <!-- Default alternating colors for all standard events --> 989 1089 <xsl:when test="position() mod 2 = 1">eventLinkA</xsl:when> 990 1090 <xsl:otherwise>eventLinkB</xsl:otherwise> 991 1091 </xsl:choose> 992 1092 </xsl:variable> 1093 <!-- Subscription styles. 1094 These are set in the add/modify subscription forms in the admin client; 1095 if present, these override the background-color set by eventClass. The 1096 subscription styles should not be used for cancelled events (tentative is ok). --> 1097 <xsl:variable name="subscriptionClass"> 1098 <xsl:if test="status != 'CANCELLED' and 1099 subscription/subStyle != '' and 1100 subscription/subStyle != 'default'"><xsl:value-of select="subscription/subStyle"/></xsl:if> 1101 </xsl:variable> 993 1102 <li> 994 <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" class="{$eventClass} ">1103 <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" class="{$eventClass} {$subscriptionClass}"> 995 1104 <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if> 996 1105 <xsl:choose> … … 1018 1127 Time: 1019 1128 <xsl:choose> 1020 <xsl:when test="start/allday = 'false'"> 1021 <xsl:value-of select="start/time"/> 1022 <xsl:if test="start/time != end/time"> 1023 - <xsl:value-of select="end/time"/> 1024 </xsl:if> 1129 <xsl:when test="start/allday = 'true'"> 1130 all day 1025 1131 </xsl:when> 1026 1132 <xsl:otherwise> 1027 all day 1133 <xsl:if test="start/shortdate != ../shortdate"> 1134 <xsl:value-of select="start/month"/>/<xsl:value-of select="start/day"/> 1135 <xsl:text> </xsl:text> 1136 </xsl:if> 1137 <xsl:value-of select="start/time"/> 1138 <xsl:if test="(start/time != end/time) or (start/shortdate != end/shortdate)"> 1139 - 1140 <xsl:if test="end/shortdate != ../shortdate"> 1141 <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/> 1142 <xsl:text> </xsl:text> 1143 </xsl:if> 1144 <xsl:value-of select="end/time"/> 1145 </xsl:if> 1028 1146 </xsl:otherwise> 1029 1147 </xsl:choose><br/> … … 1093 1211 <xsl:variable name="dayDate" select="date"/> 1094 1212 <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}"> 1213 <xsl:attribute name="class">today</xsl:attribute> 1095 1214 <xsl:value-of select="value"/> 1096 1215 </a> … … 1116 1235 <tr> 1117 1236 <td colspan="2" class="infoCell"> 1118 Select a calendar from the list below to see only that calendar's events. 1237 <p class="info"> 1238 Select a calendar from the list below to see only that calendar's events. 1239 </p> 1240 <div dojoType="FloatingPane" id="bwCalendarExportWidget" 1241 title="Export Calendar as iCal" toggle="fade" toggleDuration="150" 1242 windowState="minimized" hasShadow="true" displayMinimizeAction="true" 1243 resizable="false"> 1244 <p> 1245 <strong>Calendar to export:</strong> 1246 <span id="bwCalendarExportWidgetCalName"></span> 1247 </p> 1248 <strong>Event date limits:</strong> 1249 <form name="exportCalendarForm" id="exportCalendarForm" action="{$export}" method="post"> 1250 <!-- this value is passed into the form when the widget is requested --> 1251 <input type="hidden" name="calPath" value=""/> 1252 <!-- fill these on submit --> 1253 <input type="hidden" name="eventStartDate.year" value=""/> 1254 <input type="hidden" name="eventStartDate.month" value=""/> 1255 <input type="hidden" name="eventStartDate.day" value=""/> 1256 <input type="hidden" name="eventEndDate.year" value=""/> 1257 <input type="hidden" name="eventEndDate.month" value=""/> 1258 <input type="hidden" name="eventEndDate.day" value=""/> 1259 <!-- static fields --> 1260 <input type="hidden" name="nocache" value="no"/> 1261 <input type="hidden" name="skinName" value="ical"/> 1262 <input type="hidden" name="contentType" value="text/calendar"/> 1263 <input type="hidden" name="contentName" value="calendar.ics"/> 1264 <!-- visible fields --> 1265 <input type="radio" name="dateLimits" value="active" checked="checked" onclick="changeClass('exportDateRange','invisible')"/> today forward 1266 <input type="radio" name="dateLimits" value="none" onclick="changeClass('exportDateRange','invisible')"/> all dates 1267 <input type="radio" name="dateLimits" value="limited" onclick="changeClass('exportDateRange','visible')"/> date range 1268 <div id="exportDateRange" class="invisible"> 1269 Start: <div dojoType="dropdowndatepicker" formatLength="medium" saveFormat="yyyyMMdd" id="bwExportCalendarWidgetStartDate"><xsl:text> </xsl:text></div> 1270 End: <div dojoType="dropdowndatepicker" formatLength="medium" saveFormat="yyyyMMdd" id="bwExportCalendarWidgetEndDate"><xsl:text> </xsl:text></div> 1271 </div> 1272 <p><input type="submit" value="export" class="bwWidgetSubmit" onclick="fillExportFields('exportCalendarForm');hideWidget('bwCalendarExportWidget')"/></p> 1273 </form> 1274 </div> 1119 1275 </td> 1120 1276 </tr> … … 1141 1297 </xsl:choose> 1142 1298 </xsl:variable> 1143 <xsl:variable name="url" select=" path"/>1299 <xsl:variable name="url" select="encodedPath"/> 1144 1300 <li class="{$itemClass}"> 1145 <a href="{$setSelection}&calUrl={$url}"><xsl:value-of select="name"/></a> 1301 <a href="{$setSelection}&calUrl={$url}" title="view calendar"><xsl:value-of select="name"/></a> 1302 <xsl:if test="calendarCollection='true'"> 1303 <xsl:variable name="name" select="name"/> 1304 <xsl:variable name="calPath" select="path"/> 1305 <xsl:variable name="idForCal" select="translate(translate(path,'/','S'),' ','s')"/> 1306 <span class="exportCalLink"> 1307 <a href="javascript:launchExportWidget('exportCalendarForm','{$export}','{$name}','{$calPath}')" id="{$idForCal}" title="export calendar as iCal"> 1308 <img src="{$resourcesRoot}/images/calIconExport-sm.gif" width="13" height="13" alt="export calendar" border="0"/> 1309 </a> 1310 </span> 1311 </xsl:if> 1146 1312 <xsl:if test="calendar"> 1147 1313 <ul> … … 1150 1316 </xsl:if> 1151 1317 </li> 1318 </xsl:template> 1319 1320 <!--==== SEARCH RESULT ====--> 1321 <xsl:template name="searchResult"> 1322 <h2 class="bwStatusConfirmed"> 1323 <div id="searchFilter"> 1324 <form name="searchForm" method="post" action="{$search}"> 1325 Search: 1326 <input type="text" name="query" size="15"> 1327 <xsl:attribute name="value"><xsl:value-of select="/bedework/searchResults/query"/></xsl:attribute> 1328 </input> 1329 <input type="submit" name="submit" value="go"/> 1330 Limit: 1331 <xsl:choose> 1332 <xsl:when test="/bedework/searchResults/searchLimits = 'beforeToday'"> 1333 <input type="radio" name="searchLimits" value="fromToday"/>today forward 1334 <input type="radio" name="searchLimits" value="beforeToday" checked="checked"/>past dates 1335 <input type="radio" name="searchLimits" value="none"/>all dates 1336 </xsl:when> 1337 <xsl:when test="/bedework/searchResults/searchLimits = 'none'"> 1338 <input type="radio" name="searchLimits" value="fromToday"/>today forward 1339 <input type="radio" name="searchLimits" value="beforeToday"/>past dates 1340 <input type="radio" name="searchLimits" value="none" checked="checked"/>all dates 1341 </xsl:when> 1342 <xsl:otherwise> 1343 <input type="radio" name="searchLimits" value="fromToday" checked="checked"/>today forward 1344 <input type="radio" name="searchLimits" value="beforeToday"/>past dates 1345 <input type="radio" name="searchLimits" value="none"/>all dates 1346 </xsl:otherwise> 1347 </xsl:choose> 1348 </form> 1349 </div> 1350 Search Result 1351 </h2> 1352 <table id="searchTable" cellpadding="0" cellspacing="0"> 1353 <tr> 1354 <th colspan="5"> 1355 <xsl:if test="/bedework/searchResults/numPages > 1"> 1356 <xsl:variable name="curPage" select="/bedework/searchResults/curPage"/> 1357 <div id="searchPageForm"> 1358 page: 1359 <xsl:if test="/bedework/searchResults/curPage != 1"> 1360 <xsl:variable name="prevPage" select="number($curPage) - 1"/> 1361 <<a href="{$search-next}&pageNum={$prevPage}">prev</a> 1362 </xsl:if> 1363 <xsl:text> </xsl:text> 1364 1365 <xsl:call-template name="searchResultPageNav"> 1366 <xsl:with-param name="page"> 1367 <xsl:choose> 1368 <xsl:when test="number($curPage) - 10 < 1">1</xsl:when> 1369 <xsl:otherwise><xsl:value-of select="number($curPage) - 6"/></xsl:otherwise> 1370 </xsl:choose> 1371 </xsl:with-param> 1372 </xsl:call-template> 1373 1374 <xsl:text> </xsl:text> 1375 <xsl:choose> 1376 <xsl:when test="$curPage != /bedework/searchResults/numPages"> 1377 <xsl:variable name="nextPage" select="number($curPage) + 1"/> 1378 <a href="{$search-next}&pageNum={$nextPage}">next</a>> 1379 </xsl:when> 1380 <xsl:otherwise> 1381 <span class="hidden">next></span><!-- occupy the space to keep the navigation from moving around --> 1382 </xsl:otherwise> 1383 </xsl:choose> 1384 </div> 1385 </xsl:if> 1386 <xsl:value-of select="/bedework/searchResults/resultSize"/> 1387 result<xsl:if test="/bedework/searchResults/resultSize != 1">s</xsl:if> returned 1388 for <em><xsl:value-of select="/bedework/searchResults/query"/></em> 1389 </th> 1390 </tr> 1391 <xsl:if test="/bedework/searchResults/searchResult"> 1392 <tr class="fieldNames"> 1393 <td> 1394 relevance 1395 </td> 1396 <td> 1397 summary 1398 </td> 1399 <td> 1400 date & time 1401 </td> 1402 <td> 1403 calendar 1404 </td> 1405 <td> 1406 location 1407 </td> 1408 </tr> 1409 </xsl:if> 1410 <xsl:for-each select="/bedework/searchResults/searchResult"> 1411 <xsl:variable name="subscriptionId" select="event/subscription/id"/> 1412 <xsl:variable name="calPath" select="event/calendar/encodedPath"/> 1413 <xsl:variable name="guid" select="event/guid"/> 1414 <xsl:variable name="recurrenceId" select="event/recurrenceId"/> 1415 <tr> 1416 <td class="relevance"> 1417 <xsl:value-of select="ceiling(number(score)*100)"/>% 1418 <img src="{$resourcesRoot}/images/spacer.gif" height="4" class="searchRelevance"> 1419 <xsl:attribute name="width"><xsl:value-of select="ceiling((number(score)*100) div 1.5)"/></xsl:attribute> 1420 </img> 1421 </td> 1422 <td> 1423 <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1424 <xsl:value-of select="event/summary"/> 1425 </a> 1426 </td> 1427 <td> 1428 <xsl:value-of select="event/start/longdate"/> 1429 <xsl:text> </xsl:text> 1430 <xsl:value-of select="event/start/time"/> 1431 <xsl:choose> 1432 <xsl:when test="event/start/longdate != event/end/longdate"> 1433 - <xsl:value-of select="event/start/longdate"/> 1434 <xsl:text> </xsl:text> 1435 <xsl:value-of select="event/end/time"/> 1436 </xsl:when> 1437 <xsl:when test="event/start/time != event/end/time"> 1438 - <xsl:value-of select="event/end/time"/> 1439 </xsl:when> 1440 </xsl:choose> 1441 </td> 1442 <td> 1443 <xsl:variable name="calUrl" select="event/calendar/encodedPath"/> 1444 <a href="{$setSelection}&calUrl={$calUrl}"> 1445 <xsl:value-of select="event/calendar/name"/> 1446 </a> 1447 </td> 1448 <td> 1449 <xsl:value-of select="event/location/address"/> 1450 </td> 1451 </tr> 1452 </xsl:for-each> 1453 </table> 1454 </xsl:template> 1455 1456 <xsl:template name="searchResultPageNav"> 1457 <xsl:param name="page">1</xsl:param> 1458 <xsl:variable name="curPage" select="/bedework/searchResults/curPage"/> 1459 <xsl:variable name="numPages" select="/bedework/searchResults/numPages"/> 1460 <xsl:variable name="endPage"> 1461 <xsl:choose> 1462 <xsl:when test="number($curPage) + 6 > number($numPages)"><xsl:value-of select="$numPages"/></xsl:when> 1463 <xsl:otherwise><xsl:value-of select="number($curPage) + 6"/></xsl:otherwise> 1464 </xsl:choose> 1465 </xsl:variable> 1466 <xsl:choose> 1467 <xsl:when test="$page = $curPage"> 1468 <xsl:value-of select="$page"/> 1469 </xsl:when> 1470 <xsl:otherwise> 1471 <a href="{$search-next}&pageNum={$page}"> 1472 <xsl:value-of select="$page"/> 1473 </a> 1474 </xsl:otherwise> 1475 </xsl:choose> 1476 <xsl:text> </xsl:text> 1477 <xsl:if test="$page < $endPage"> 1478 <xsl:call-template name="searchResultPageNav"> 1479 <xsl:with-param name="page" select="number($page)+1"/> 1480 </xsl:call-template> 1481 </xsl:if> 1152 1482 </xsl:template> 1153 1483 trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/soe.css
r1111 r1220 120 120 white-space: nowrap; 121 121 } 122 #searchBarTable form { 122 #searchBarTable form, 123 #searchPageForm { 123 124 display: inline; 124 margin: 0px 0px 1px 0px; 125 padding: 0em; 125 margin: 0; 126 padding: 0; 127 white-space: nowrap; 128 } 129 #searchBarTable #searchForm { 130 margin-right: 0.5em; 131 } 132 #searchPageForm { 133 float: right; 134 } 135 #searchBarTable form input { 136 font-size: 0.7em; 137 } 138 #searchBarTable img { 139 vertical-align: middle; 140 } 141 #searchFilter { 142 float: right; 143 font-size: 10pt; 144 font-weight: normal; 145 margin-top: 5px; 146 } 147 #searchFilter form { 148 display: inline; 126 149 } 127 150 #tabsTable { … … 226 249 #navigationBarTable td.leftCell .prevImg { 227 250 margin: 0 0.2em 0 0; 228 vertical-align: top;251 vertical-align: middle; 229 252 } 230 253 #navigationBarTable td.leftCell .nextImg { 231 254 margin: 0 0.75em 0 0; 232 vertical-align: top;255 vertical-align: middle; 233 256 } 234 257 #navigationBarTable td.rightCell { … … 241 264 width: 10em; 242 265 } 243 #searchBarTable .calLinks { 244 white-space: nowrap; 245 } 246 #eventTable { 266 #eventTable, 267 #searchTable { 247 268 width: 100%; 248 269 font-size: 0.9em; … … 305 326 width: 100%; 306 327 } 328 #searchTable th { 329 padding-left: 0.5em; 330 padding-right: 0.5em; 331 padding-top: 2px; 332 padding-bottom: 2px; 333 text-align: left; 334 background: #e5e5e5; 335 color: #000; 336 font-weight: normal; 337 } 338 #searchTable td { 339 padding: 4px; 340 vertical-align: top; 341 } 342 #searchTable tr.fieldNames td { 343 background: #eee; 344 border-bottom: 1px solid #ccc; 345 } 346 #searchTable td.relevance { 347 white-space: nowrap; 348 } 349 #searchTable .searchRelevance { 350 background-color: #2c5f89; 351 color: black; 352 } 307 353 #calPageTable { 308 354 width: 100%; … … 336 382 text-align: center; 337 383 } 384 #calPageTable td.infoCell p.info { 385 margin: 0; 386 padding: 0; 387 } 338 388 #dayCalendarTable { 339 389 width: 100%; … … 782 832 #calPageTable ul.calendarTree li.calendar { 783 833 list-style-image: url(../../images/calIcon-sm.gif); 834 } 835 #calPageTable .exportCalLink { 836 font-size: 0.6em; 837 padding-left: 1em; 838 color: #aaa; 839 background-color: transparent; 840 } 841 #calPageTable .exportCalLink a:link, 842 #calPageTable .exportCalLink a:active, 843 #calPageTable .exportCalLink a:visited { 844 color: #aaa; 845 background-color: transparent; 846 text-decoration: none; 847 } 848 #calPageTable .exportCalLink a:hover { 849 color: #333; 850 background-color: transparent; 851 text-decoration: none; 784 852 } 785 853 .noEventsCell { … … 864 932 } 865 933 h2.bwStatusConfirmed { 934 border-top: 1px solid #ccc; 866 935 background-color: #eee; 867 936 color: black; 868 937 } 869 938 h2.bwStatusCancelled { 939 border-top: 1px solid #ccc; 870 940 background-color: #eee; 871 941 color: black; 872 942 } 873 943 h2.bwStatusTentative { 944 border-top: 1px solid #ccc; 874 945 background: #eee url('../../images/tentativeLines.gif') top; 946 color: black; 875 947 } 876 948 /* Header IDs and classes */ … … 911 983 padding-right: 2em; 912 984 } 985 .hidden { 986 visibility: hidden; 987 } 988 .invisible { 989 display: none; 990 } 991 /* dojo widget overrides */ 992 html .dojoFloatingPane { 993 width: 370px; 994 height: 200px; 995 text-align: left; 996 } 997 html .dojoFloatingPaneTitleBar { 998 color: white; 999 background: #2c5f89 url(../../images/curDateRangeBlue.gif) repeat-x bottom; 1000 } 1001 html .dojoFloatingPaneTitleText { 1002 padding: 0.25em 1em; 1003 font-weight: bold; 1004 font-size: 0.8em; 1005 } 1006 html .dojoFloatingPaneClient input.bwWidgetSubmit { 1007 position: absolute; 1008 bottom: 1em; 1009 right: 1em; 1010 width: 80px; 1011 } 1012 html .dojoFloatingPaneClient #exportDateRange { 1013 margin: 1em 0; 1014 text-align: center; 1015 } 1016 html .dojoFloatingPaneClient #bwCalendarExportWidgetCalName { 1017 padding-left: 1em; 1018 } 1019 html .dojoFloatingPaneClient form#exportCalendarForm { 1020 margin: 0; 1021 padding: 0; 1022 } trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r1219 r1220 9 9 standalone="yes" 10 10 omit-xml-declaration="yes"/> 11 <!--<xsl:output 12 method="xhtml" 13 indent="yes" 14 media-type="text/html" 15 doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" 16 doctype-system="http://www.w3.org/TR/html4/loose.dtd" 17 standalone="yes" 18 />--> 11 19 12 <!-- ========================================= --> 20 13 <!-- PERSONAL CALENDAR STYLESHEET -->
