Changeset 1220

Show
Ignore:
Timestamp:
01/14/07 04:13:20
Author:
johnsa
Message:

Public web client:

- now rendered in xhtml
- minor css cleanup
- dept calendar skin upgraded to same

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/blue.css

    r1184 r1220  
    126126  margin: 0px; 
    127127  padding: 0em; 
     128  vertical-align: middle; 
    128129  background-color : #eee; 
    129130  color: black; 
     
    139140#searchBarTable .leftCell .link { 
    140141  font-size: 0.8em; 
    141   padding-left: 1em; 
     142  padding-left: 0.5em; 
    142143  color: #999; 
    143144  background-color: transparent; 
     
    159160  white-space: nowrap; 
    160161} 
     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} 
    161190#tabsTable { 
    162191  margin: 0em; 
     
    233262  margin: 0em; 
    234263  width: 10em; 
    235 } 
    236 #searchBarTable .calLinks { 
    237   white-space: nowrap; 
    238264} 
    239265#eventTable, 
     
    908934} 
    909935h2.bwStatusConfirmed { 
     936  border-top: 1px solid #ccc; 
    910937  background-color: #eee; 
    911938  color: black; 
    912939} 
    913940h2.bwStatusCancelled { 
     941  border-top: 1px solid #ccc; 
    914942  background-color: #eee; 
    915943  color: black; 
    916944} 
    917945h2.bwStatusTentative { 
     946  border-top: 1px solid #ccc; 
    918947  background: #eee url('../../images/tentativeLines.gif') top; 
    919948  color: black; 
     
    935964  padding: 0 1em; 
    936965} 
    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 } 
    962966#stats { 
    963967  font-size: 0.9em; 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl

    r1218 r1220  
    22<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
    33<xsl:output 
    4   method="html" 
    5   indent="yes
     4  method="xhtml" 
     5  indent="no
    66  media-type="text/html" 
    7   doctype-public="-//W3C//DTD HTML 4.01 Transitional//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" 
    99  standalone="yes" 
    10 /> 
     10  omit-xml-declaration="yes"/> 
     11 
    1112<!-- ========================================================= 
    1213 
     
    108109      <head> 
    109110        <title>Bedework Events Calendar</title> 
     111        <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> 
    110112        <!-- load css --> 
    111113        <xsl:choose> 
     
    124126        <!-- load javascript --> 
    125127        <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">&#160;</script
     129          <script type="text/javascript" src="{$resourcesRoot}/resources/javascript/bedework.js">&#160;</script
    128130        </xsl:if> 
    129131        <!-- address bar icon --> 
     
    158160          </xsl:when> 
    159161          <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 --> 
    164163            <!-- main eventCalendar content --> 
    165164            <xsl:choose> 
     
    461460               View: 
    462461               <form name="selectViewForm" method="post" action="{$setSelection}"> 
    463                 <select name="viewName" onChange="submit()" > 
     462                <select name="viewName" onchange="submit()" > 
    464463                  <xsl:for-each select="/bedework/views/view"> 
    465464                    <xsl:variable name="name" select="name"/> 
     
    475474                </select> 
    476475              </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> 
    478477             </xsl:otherwise> 
    479478           </xsl:choose> 
     
    481480         <td class="rightCell"> 
    482481            <xsl:if test="/bedework/page!='searchResult'"> 
    483               <form name="searchForm" method="post" action="{$search}"> 
     482              <form name="searchForm" id="searchForm" method="post" action="{$search}"> 
    484483                Search: 
    485484                <input type="text" name="query" size="15"> 
     
    488487                <input type="submit" name="submit" value="go"/> 
    489488              </form> 
     489              <xsl:text> </xsl:text> 
    490490            </xsl:if> 
    491491            <xsl:choose> 
     
    557557              </xsl:otherwise> 
    558558            </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> 
    560560          </td> 
    561561       </tr> 
     
    10171017                <xsl:value-of select="value"/> 
    10181018              </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> 
    10241026            </td> 
    10251027          </xsl:if> 
     
    10541056                    <xsl:value-of select="value"/> 
    10551057                  </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> 
    10611065                </td> 
    10621066              </xsl:otherwise> 
     
    12611265              <input type="radio" name="dateLimits" value="limited" onclick="changeClass('exportDateRange','visible')"/> date range 
    12621266              <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> 
    12651269              </div> 
    12661270              <p><input type="submit" value="export" class="bwWidgetSubmit" onclick="fillExportFields('exportCalendarForm');hideWidget('bwCalendarExportWidget')"/></p> 
     
    12971301        <xsl:variable name="name" select="name"/> 
    12981302        <xsl:variable name="calPath" select="path"/> 
     1303        <xsl:variable name="idForCal" select="translate(translate(path,'/','S'),' ','s')"/> 
    12991304        <span class="exportCalLink"> 
    1300           <!--<a href="{$export}&amp;calPath={$calPath}&amp;dateLimits=active&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;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"> 
    13021306            <img src="{$resourcesRoot}/images/calIconExport-sm.gif" width="13" height="13" alt="export calendar" border="0"/> 
    13031307          </a> 
    1304           <!--</a>--> 
    1305           <!--export 
    1306           <a href="{$export}&amp;calPath={$calPath}&amp;dateLimits=active&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$name}.ics" title="export calendar as iCal (excluding past events)">current</a> | 
    1307           <a href="{$export}&amp;calPath={$calPath}&amp;dateLimits=none&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$name}.ics" title="export calendar as iCal (excluding past events)">all</a>--> 
    13081308        </span> 
    13091309      </xsl:if> 
     
    15611561        <td class="rightCell"> 
    15621562          <form name="styleSelectForm" method="post" action="{$setup}"> 
    1563             <select name="setappvar" onChange="submit()"> 
     1563            <select name="setappvar" onchange="submit()"> 
    15641564              <option>example styles:</option> 
    15651565              <option value="style(green)">green</option> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/green.css

    r1184 r1220  
    135135  margin: 0px; 
    136136  padding: 0em; 
     137  vertical-align: middle; 
    137138  background-color : #eee; 
    138139  color: black; 
     
    148149#searchBarTable .leftCell .link { 
    149150  font-size: 0.8em; 
    150   padding-left: 1em; 
     151  padding-left: 0.5em; 
    151152  color: #999; 
    152153  background-color: transparent; 
     
    168169  white-space: nowrap; 
    169170} 
    170 #searchBarTable form { 
     171#searchBarTable form, 
     172#searchPageForm { 
    171173  display: inline; 
    172174  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; 
    174195} 
    175196#tabsTable { 
     
    247268  margin: 0em; 
    248269  width: 10em; 
    249 } 
    250 #searchBarTable .calLinks { 
    251   white-space: nowrap; 
    252270} 
    253271#eventTable, 
     
    919937} 
    920938h2.bwStatusConfirmed { 
     939  border-top: 1px solid #ccc; 
    921940  background-color: #eee; 
    922941  color: black; 
    923942} 
    924943h2.bwStatusCancelled { 
     944  border-top: 1px solid #ccc; 
    925945  background-color: #eee; 
    926946  color: black; 
    927947} 
    928948h2.bwStatusTentative { 
     949  border-top: 1px solid #ccc; 
    929950  background: #eee url('../../images/tentativeLines.gif') top; 
    930951  color: black; 
     
    946967  padding: 0 1em; 
    947968} 
    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 } 
    973969#stats { 
    974970  font-size: 0.9em; 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/red.css

    r1184 r1220  
    135135  margin: 0px; 
    136136  padding: 0em; 
     137  vertical-align: middle; 
    137138  background-color : #eee; 
    138139  color: black; 
     
    148149#searchBarTable .leftCell .link { 
    149150  font-size: 0.8em; 
    150   padding-left: 1em; 
     151  padding-left: 0.5em; 
    151152  color: #999; 
    152153  background-color: transparent; 
     
    168169  white-space: nowrap; 
    169170} 
    170 #searchBarTable form { 
     171#searchBarTable form, 
     172#searchPageForm { 
    171173  display: inline; 
    172174  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; 
    174195} 
    175196#tabsTable { 
     
    243264  margin: 0em; 
    244265  width: 10em; 
    245 } 
    246 #searchBarTable .calLinks { 
    247   white-space: nowrap; 
    248266} 
    249267#eventTable, 
     
    920938} 
    921939h2.bwStatusConfirmed { 
     940  border-top: 1px solid #ccc; 
    922941  background-color: #eee; 
    923942  color: black; 
    924943} 
    925944h2.bwStatusCancelled { 
     945  border-top: 1px solid #ccc; 
    926946  background-color: #eee; 
    927947  color: black; 
    928948} 
    929949h2.bwStatusTentative { 
     950  border-top: 1px solid #ccc; 
    930951  background: #eee url('../../images/tentativeLines.gif') top; 
    931952  color: black; 
     
    947968  padding: 0 1em; 
    948969} 
    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 } 
    974970#stats { 
    975971  font-size: 0.9em; 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/resources/javascript/bedework.js

    r1209 r1220  
    88  identity.className=newClass; 
    99} 
    10 function launchExportWidget(formId,name,calPath) { 
     10function launchExportWidget(formId,action,name,calPath) { 
    1111  var exportWidget = dojo.widget.byId('bwCalendarExportWidget'); 
    1212  exportWidget.show(); 
  • trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl

    r1218 r1220  
    22<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
    33<xsl:output 
    4   method="html" 
    5   indent="yes
     4  method="xhtml" 
     5  indent="no
    66  media-type="text/html" 
    7   doctype-public="-//W3C//DTD HTML 4.01 Transitional//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" 
    99  standalone="yes" 
    10 /> 
     10  omit-xml-declaration="yes"/> 
    1111 
    1212<!-- ========================================================= 
     
    6363  <!-- ================================= --> 
    6464 
     65  <!-- URL of resources common to all bedework apps (javascript, images) --> 
     66  <xsl:variable name="resourceCommons">../../../bedework-common</xsl:variable> 
     67 
    6568  <!-- 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"/> 
    6772 
    6873  <!-- DEFINE GLOBAL CONSTANTS --> 
     
    8893       query string with an ampersand. --> 
    8994  <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"/> 
    100106 
    101107  <!-- URL of the web application - includes web context --> 
     
    107113  <xsl:variable name="nextdate" select="/bedework/nextdate"/> 
    108114  <xsl:variable name="curdate" select="/bedework/currentdate/date"/> 
    109   <xsl:variable name="skin">default</xsl:variable> 
    110115 
    111116 
    112117  <!-- MAIN TEMPLATE --> 
    113118  <xsl:template match="/"> 
    114     <html lang="en"
     119    <html
    115120      <head> 
    116121        <title>School of Engineering: Example Bedework Departmental Calendar Suite</title> 
     122        <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> 
    117123        <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">&#160;</script> 
     128          <script type="text/javascript" src="{$resourcesRoot}/resources/javascript/bedework.js">&#160;</script> 
     129        </xsl:if> 
     130        <!-- address bar icon --> 
    118131        <link rel="icon" type="image/ico" href="{$resourcesRoot}/images/bedework.ico" /> 
    119132      </head> 
     
    127140        <xsl:call-template name="tabs"/> 
    128141        <xsl:call-template name="navigation"/> 
     142        <xsl:call-template name="searchBar"/> 
    129143        <xsl:choose> 
    130144          <xsl:when test="/bedework/page='event'"> 
     
    140154            <xsl:apply-templates select="/bedework/calendars"/> 
    141155          </xsl:when> 
     156          <xsl:when test="/bedework/page='searchResult'"> 
     157            <!-- display search results --> 
     158            <xsl:call-template name="searchResult"/> 
     159          </xsl:when> 
    142160          <xsl:otherwise> 
    143161            <!-- otherwise, show the eventsCalendar --> 
    144             <xsl:if test="/bedework/periodname!='Year'"> 
    145               <xsl:call-template name="searchBar"/> 
    146             </xsl:if> 
    147162            <!-- main eventCalendar content --> 
    148163            <xsl:choose> 
     
    447462               View: 
    448463               <form name="selectViewForm" method="post" action="{$setSelection}"> 
    449                 <select name="viewName" onChange="submit()" > 
     464                <select name="viewName" onchange="submit()" > 
    450465                  <xsl:for-each select="/bedework/views/view"> 
    451466                    <xsl:variable name="name" select="name"/> 
     
    461476                </select> 
    462477              </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> 
    464479             </xsl:otherwise> 
    465480           </xsl:choose> 
    466481         </td> 
    467482         <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> 
    468493            <xsl:choose> 
    469494              <xsl:when test="/bedework/periodname='Day'"> 
     
    534559              </xsl:otherwise> 
    535560            </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> 
    537562          </td> 
    538563       </tr> 
     
    542567  <!--==== SINGLE EVENT ====--> 
    543568  <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"/> 
    544573    <xsl:variable name="statusClass"> 
    545574      <xsl:choose> 
     
    588617            </xsl:when> 
    589618          </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'"> 
    591621            <xsl:text> </xsl:text> 
    592622            -- 
    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> 
    594633            <br/> 
    595634          </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'"> 
    607637            <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> 
    610692              </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> 
    617719            </xsl:choose> 
    618             <xsl:text> </xsl:text> 
    619             -- 
    620             <strong><xsl:value-of select="start/timezone/id"/></strong> 
    621720          </xsl:if> 
    622721        </td> 
    623722        <th class="icalIcon" rowspan="2"> 
    624723          <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}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar"> 
     724            <a href="{$privateCal}/event/addEventRef.do?subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar"> 
    631725              <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon.gif" width="20" height="26" border="0" alt="Add event to MyCalendar"/> 
    632726            add to my calendar</a> 
    633             <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/> 
     727            <xsl:variable name="eventIcalName" select="concat($guid,'.ics')"/> 
    634728            <a href="{$export}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 
    635729              <img src="{$resourcesRoot}/images/std-ical_icon.gif" width="20" height="26" border="0" alt="Download this event"/> 
     
    690784        </tr> 
    691785      </xsl:if> 
    692       <xsl:if test="sponsor/name!='none'"> 
     786      <xsl:if test="contact/name!='none'"> 
    693787        <tr> 
    694788          <td class="fieldname">Contact:</td> 
    695789          <td colspan="2" class="fieldval"> 
    696790            <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"/> 
    699793              </xsl:when> 
    700794              <xsl:otherwise> 
    701                 <xsl:variable name="sponsorLink" select="sponsor/link"/> 
     795                <xsl:variable name="sponsorLink" select="contact/link"/> 
    702796                <a href="{$sponsorLink}"> 
    703                   <xsl:value-of select="sponsor/name"/> 
     797                  <xsl:value-of select="contact/name"/> 
    704798                </a> 
    705799              </xsl:otherwise> 
    706800            </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"/> 
    709803            </xsl:if> 
    710804            <!-- If you want to display email addresses, uncomment the 
    711805                 following 8 lines. --> 
    712             <!-- <xsl:if test="sponsor/email!=''"> 
     806            <!-- <xsl:if test="contact/email!=''"> 
    713807              <br /> 
    714               <xsl:variable name="email" select="sponsor/email"/> 
     808              <xsl:variable name="email" select="contact/email"/> 
    715809              <xsl:variable name="subject" select="summary"/> 
    716810              <a href="mailto:{$email}&amp;subject={$subject}"> 
    717                 <xsl:value-of select="sponsor/email"/> 
     811                <xsl:value-of select="contact/email"/> 
    718812              </a> 
    719813            </xsl:if> --> 
     
    721815        </tr> 
    722816      </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}&amp;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}&amp;calUrl={$calUrl}"> 
     823              <xsl:value-of select="calendar/name"/> 
     824            </a> 
     825          </td> 
     826        </tr> 
     827      </xsl:if> 
    732828      <xsl:if test="categories/category"> 
    733829        <tr> 
     
    866962                            <xsl:value-of select="cost"/>.&#160; 
    867963                          </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"/> 
    870966                          </xsl:if> 
    871967                        </em> 
     968                        - <xsl:value-of select="calendar/name"/> 
    872969                      </a> 
    873970                      <xsl:if test="link != ''"> 
     
    880977                        <xsl:value-of select="summary"/> 
    881978                        <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if> 
     979                         - <em><xsl:value-of select="calendar/name"/></em> 
    882980                      </a> 
    883981                    </xsl:otherwise> 
     
    885983                </td> 
    886984                <td class="icons"> 
    887                   <variable name="confId" select="/bedework/confirmationid"/> 
    888                   <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar"> 
     985                  <a href="{$privateCal}/event/addEventRef.do?subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar"> 
    889986                    <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/> 
    890987                  </a> 
     
    9221019                <xsl:value-of select="value"/> 
    9231020              </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> 
    9291028            </td> 
    9301029          </xsl:if> 
     
    9591058                    <xsl:value-of select="value"/> 
    9601059                  </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> 
    9661067                </td> 
    9671068              </xsl:otherwise> 
     
    9851086        <xsl:when test="status='CANCELLED'">eventCancelled</xsl:when> 
    9861087        <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 --> 
    9891089        <xsl:when test="position() mod 2 = 1">eventLinkA</xsl:when> 
    9901090        <xsl:otherwise>eventLinkB</xsl:otherwise> 
    9911091      </xsl:choose> 
    9921092    </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> 
    9931102    <li> 
    994       <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" class="{$eventClass}"> 
     1103      <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" class="{$eventClass} {$subscriptionClass}"> 
    9951104        <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if> 
    9961105        <xsl:choose> 
     
    10181127          Time: 
    10191128          <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 
    10251131            </xsl:when> 
    10261132            <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> 
    10281146            </xsl:otherwise> 
    10291147          </xsl:choose><br/> 
     
    10931211                    <xsl:variable name="dayDate" select="date"/> 
    10941212                    <a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$dayDate}"> 
     1213                      <xsl:attribute name="class">today</xsl:attribute> 
    10951214                      <xsl:value-of select="value"/> 
    10961215                    </a> 
     
    11161235      <tr> 
    11171236        <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> 
    11191275        </td> 
    11201276      </tr> 
     
    11411297      </xsl:choose> 
    11421298    </xsl:variable> 
    1143     <xsl:variable name="url" select="path"/> 
     1299    <xsl:variable name="url" select="encodedPath"/> 
    11441300    <li class="{$itemClass}"> 
    1145       <a href="{$setSelection}&amp;calUrl={$url}"><xsl:value-of select="name"/></a> 
     1301      <a href="{$setSelection}&amp;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> 
    11461312      <xsl:if test="calendar"> 
    11471313        <ul> 
     
    11501316      </xsl:if> 
    11511317    </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 &gt; 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                &lt;<a href="{$search-next}&amp;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 &lt; 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}&amp;pageNum={$nextPage}">next</a>&gt; 
     1379                </xsl:when> 
     1380                <xsl:otherwise> 
     1381                  <span class="hidden">next&gt;</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 &amp; 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}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;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}&amp;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 &gt; 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}&amp;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 &lt; $endPage"> 
     1478       <xsl:call-template name="searchResultPageNav"> 
     1479         <xsl:with-param name="page" select="number($page)+1"/> 
     1480      </xsl:call-template> 
     1481    </xsl:if> 
    11521482  </xsl:template> 
    11531483 
  • trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/soe.css

    r1111 r1220  
    120120  white-space: nowrap; 
    121121} 
    122 #searchBarTable form { 
     122#searchBarTable form, 
     123#searchPageForm { 
    123124  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; 
    126149} 
    127150#tabsTable { 
     
    226249#navigationBarTable td.leftCell .prevImg { 
    227250  margin: 0 0.2em 0 0; 
    228   vertical-align: top
     251  vertical-align: middle
    229252} 
    230253#navigationBarTable td.leftCell .nextImg { 
    231254  margin: 0 0.75em 0 0; 
    232   vertical-align: top
     255  vertical-align: middle
    233256} 
    234257#navigationBarTable td.rightCell { 
     
    241264  width: 10em; 
    242265} 
    243 #searchBarTable .calLinks { 
    244   white-space: nowrap; 
    245 
    246 #eventTable { 
     266#eventTable, 
     267#searchTable { 
    247268  width: 100%; 
    248269  font-size: 0.9em; 
     
    305326  width: 100%; 
    306327} 
     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} 
    307353#calPageTable { 
    308354  width: 100%; 
     
    336382  text-align: center; 
    337383} 
     384#calPageTable td.infoCell p.info { 
     385  margin: 0; 
     386  padding: 0; 
     387} 
    338388#dayCalendarTable { 
    339389  width: 100%; 
     
    782832#calPageTable ul.calendarTree li.calendar { 
    783833  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; 
    784852} 
    785853.noEventsCell { 
     
    864932} 
    865933h2.bwStatusConfirmed { 
     934  border-top: 1px solid #ccc; 
    866935  background-color: #eee; 
    867936  color: black; 
    868937} 
    869938h2.bwStatusCancelled { 
     939  border-top: 1px solid #ccc; 
    870940  background-color: #eee; 
    871941  color: black; 
    872942} 
    873943h2.bwStatusTentative { 
     944  border-top: 1px solid #ccc; 
    874945  background: #eee url('../../images/tentativeLines.gif') top; 
     946  color: black; 
    875947} 
    876948/* Header IDs and classes */ 
     
    911983  padding-right: 2em; 
    912984} 
     985.hidden { 
     986  visibility: hidden; 
     987} 
     988.invisible { 
     989  display: none; 
     990} 
     991/* dojo widget overrides */ 
     992html .dojoFloatingPane { 
     993  width: 370px; 
     994  height: 200px; 
     995  text-align: left; 
     996} 
     997html .dojoFloatingPaneTitleBar { 
     998  color: white; 
     999  background: #2c5f89 url(../../images/curDateRangeBlue.gif) repeat-x bottom; 
     1000} 
     1001html .dojoFloatingPaneTitleText { 
     1002  padding: 0.25em 1em; 
     1003  font-weight: bold; 
     1004  font-size: 0.8em; 
     1005} 
     1006html .dojoFloatingPaneClient input.bwWidgetSubmit { 
     1007  position: absolute; 
     1008  bottom: 1em; 
     1009  right: 1em; 
     1010  width: 80px; 
     1011} 
     1012html .dojoFloatingPaneClient #exportDateRange { 
     1013  margin: 1em 0; 
     1014  text-align: center; 
     1015} 
     1016html .dojoFloatingPaneClient #bwCalendarExportWidgetCalName { 
     1017  padding-left: 1em; 
     1018} 
     1019html .dojoFloatingPaneClient form#exportCalendarForm { 
     1020  margin: 0; 
     1021  padding: 0; 
     1022} 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r1219 r1220  
    99  standalone="yes" 
    1010  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 
    1912  <!-- ========================================= --> 
    2013  <!--       PERSONAL CALENDAR STYLESHEET        -->