Changeset 2581

Show
Ignore:
Timestamp:
12/29/09 13:25:57
Author:
johnsa
Message:

public client: refactored bedework classic theme

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bwclassicTheme/bwclassic.xsl

    r2578 r2581  
    5858  <!-- ================================= --> 
    5959 
     60  <!-- DEFINE INCLUDES --> 
     61  <!-- Theme preferences --> 
     62  <xsl:include href="themeSettings.xsl" /> 
     63 
    6064  <!-- Page subsections --> 
    61   <xsl:include href="./event.xsl" /> 
    62  
    63   <!-- URL of html resources (images, css, other html); by default this is 
    64        set to the current theme directory  --> 
    65   <xsl:variable name="resourcesRoot"><xsl:value-of select="/bedework/approot"/>/themes/bwclassicTheme</xsl:variable> 
     65  <xsl:include href="head.xsl" /> 
     66  <xsl:include href="header.xsl" /> 
     67  <xsl:include href="navigation.xsl" /> 
     68  <xsl:include href="eventGrids.xsl" /> 
     69  <xsl:include href="eventLists.xsl" /> 
     70  <xsl:include href="event.xsl" /> 
     71  <xsl:include href="calendarList.xsl" /> 
     72  <xsl:include href="search.xsl" /> 
     73  <xsl:include href="stats.xsl" /> 
     74  <xsl:include href="footer.xsl" /> 
    6675 
    6776  <!-- MAIN TEMPLATE --> 
    6877  <xsl:template match="/"> 
    6978    <html lang="en"> 
    70       <head> 
    71         <xsl:choose> 
    72           <xsl:when test="/bedework/page='event'"> 
    73             <title><xsl:value-of select="/bedework/event/summary"/></title> 
    74           </xsl:when> 
    75           <xsl:otherwise> 
    76             <title><xsl:copy-of select="$bwStr-Root-PageTitle"/></title> 
    77           </xsl:otherwise> 
    78         </xsl:choose> 
    79         <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> 
    80         <!-- load css --> 
    81         <xsl:choose> 
    82           <xsl:when test="/bedework/appvar[key='style']/value='red'"> 
    83             <link rel="stylesheet" href="{$resourcesRoot}/css/red.css"/> 
    84           </xsl:when> 
    85           <xsl:when test="/bedework/appvar[key='style']/value='green'"> 
    86             <link rel="stylesheet" href="{$resourcesRoot}/css/green.css"/> 
    87           </xsl:when> 
    88           <xsl:otherwise> 
    89             <link rel="stylesheet" href="{$resourcesRoot}/css/blue.css"/> 
    90           </xsl:otherwise> 
    91         </xsl:choose> 
    92         <link rel="stylesheet" href="../../../bedework-common/default/default/subColors.css"/> 
    93         <link rel="stylesheet" type="text/css" media="print" href="{$resourcesRoot}/css/print.css" /> 
    94         <!-- load javascript --> 
    95         <xsl:if test="/bedework/page='event' or /bedework/page='displayCalendarForExport'"> 
    96           <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-1.3.2.min.js">&#160;</script> 
    97           <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-ui-1.7.1.custom.min.js">&#160;</script> 
    98           <link rel="stylesheet" href="/bedework-common/javascript/jquery/css/custom-theme/jquery-ui-1.7.1.custom.css"/> 
    99           <link rel="stylesheet" href="/bedework-common/javascript/jquery/css/custom-theme/bedeworkJquery.css"/> 
    100           <script type="text/javascript" src="{$resourcesRoot}/javascript/bedework.js">&#160;</script> 
    101           <xsl:if test="/bedework/page='displayCalendarForExport'"> 
    102             <script type="text/javascript"> 
    103               <xsl:comment> 
    104               $.datepicker.setDefaults({ 
    105                 constrainInput: true, 
    106                 dateFormat: "yy-mm-dd", 
    107                 showOn: "both", 
    108                 buttonImage: "<xsl:value-of select='$resourcesRoot'/>/images/calIcon.gif", 
    109                 buttonImageOnly: true, 
    110                 gotoCurrent: true, 
    111                 duration: "" 
    112               }); 
    113               $(document).ready(function() { 
    114                 $("#bwExportCalendarWidgetStartDate").datepicker({ 
    115                 }).attr("readonly", "readonly"); 
    116                 $("#bwExportCalendarWidgetEndDate").datepicker({ 
    117                 }).attr("readonly", "readonly"); 
    118               }); 
    119               </xsl:comment> 
    120             </script> 
    121           </xsl:if> 
    122         </xsl:if> 
    123         <!-- address bar icon --> 
    124         <link rel="icon" type="image/ico" href="{$resourcesRoot}/images/bedework.ico" /> 
    125       </head> 
     79      <xsl:call-template name="head"/> 
    12680      <body> 
    12781        <xsl:call-template name="headBar"/> 
     
    199153  </xsl:template> 
    200154 
    201   <!--==== HEADER TEMPLATES and NAVIGATION  ====--> 
    202   <!-- these templates are separated out for convenience and to simplify the default template --> 
    203  
    204   <xsl:template name="headBar"> 
    205     <table width="100%" border="0" cellpadding="0" cellspacing="0" id="logoTable"> 
    206       <tr> 
    207         <td colspan="3" id="logoCell"><a href="/bedework/"><img src="{$resourcesRoot}/images/bedeworkLogo.gif" width="292" height="75" border="0" alt="Bedework"/></a></td> 
    208         <td colspan="2" id="schoolLinksCell"> 
    209           <h2><xsl:copy-of select="$bwStr-HdBr-PublicCalendar"/></h2> 
    210           <a href="{$privateCal}"><xsl:copy-of select="$bwStr-HdBr-PersonalCalendar"/></a> | 
    211           <a href="http://www.youruniversityhere.edu"><xsl:copy-of select="$bwStr-HdBr-UniversityHome"/></a> | 
    212           <a href="http://www.bedework.org/"><xsl:copy-of select="$bwStr-HdBr-OtherLink"/></a> 
    213         </td> 
    214       </tr> 
    215     </table> 
    216     <table id="curDateRangeTable"  cellspacing="0"> 
    217       <tr> 
    218         <td class="sideBarOpenCloseIcon"> 
    219           &#160; 
    220           <!-- 
    221           we may choose to implement calendar selection in the public calendar 
    222           using a sidebar; leave this comment here for now. 
    223           <xsl:choose> 
    224             <xsl:when test="/bedework/appvar[key='sidebar']/value='closed'"> 
    225               <a href="?setappvar=sidebar(opened)"> 
    226                 <img alt="open sidebar" src="{$resourcesRoot}/images/sideBarArrowOpen.gif" width="21" height="16" border="0" align="left"/> 
    227               </a> 
    228             </xsl:when> 
    229             <xsl:otherwise> 
    230               <a href="?setappvar=sidebar(closed)"> 
    231                 <img alt="close sidebar" src="{$resourcesRoot}/images/sideBarArrowClose.gif" width="21" height="16" border="0" align="left"/> 
    232               </a> 
    233             </xsl:otherwise> 
    234           </xsl:choose>--> 
    235         </td> 
    236         <td class="date"> 
    237           <xsl:choose> 
    238             <xsl:when test="/bedework/page='event'"> 
    239               <xsl:copy-of select="$bwStr-HdBr-EventInformation"/> 
    240             </xsl:when> 
    241             <xsl:when test="/bedework/page='showSysStats' or 
    242                             /bedework/page='calendars'"> 
    243               &#160; 
    244             </xsl:when> 
    245             <xsl:otherwise> 
    246               <xsl:value-of select="/bedework/firstday/longdate"/> 
    247               <xsl:if test="/bedework/periodname!='Day'"> 
    248                 - 
    249                 <xsl:value-of select="/bedework/lastday/longdate"/> 
    250               </xsl:if> 
    251             </xsl:otherwise> 
    252           </xsl:choose> 
    253         </td> 
    254         <td class="rssPrint"> 
    255           <a href="javascript:window.print()" title="{$bwStr-HdBr-PrintThisView}"> 
    256             <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-HdBr-Print"/> 
    257           </a> 
    258           <a class="rss" href="{$listEvents}&amp;setappvar=summaryMode(details)&amp;skinName=rss-list&amp;days=3" title="{$bwStr-HdBr-RSSFeed}"><xsl:copy-of select="$bwStr-HdBr-RSS"/></a> 
    259         </td> 
    260       </tr> 
    261     </table> 
    262   </xsl:template> 
    263  
    264   <xsl:template name="tabs"> 
    265     <div id="bwTabs"> 
    266       <ul> 
    267         <li> 
    268           <xsl:if test="/bedework/page='eventscalendar' and /bedework/periodname='Day'"> 
    269             <xsl:attribute name="class">selected</xsl:attribute> 
    270           </xsl:if> 
    271           <a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$curdate}"><xsl:copy-of select="$bwStr-Tabs-Day"/></a> 
    272         </li> 
    273         <li> 
    274           <xsl:if test="/bedework/page='eventscalendar' and /bedework/periodname='Week' or /bedework/periodname=''"> 
    275             <xsl:attribute name="class">selected</xsl:attribute> 
    276           </xsl:if> 
    277           <a href="{$setViewPeriod}&amp;viewType=weekView&amp;date={$curdate}"><xsl:copy-of select="$bwStr-Tabs-Week"/></a> 
    278         </li> 
    279         <li> 
    280           <xsl:if test="/bedework/page='eventscalendar' and /bedework/periodname='Month'"> 
    281             <xsl:attribute name="class">selected</xsl:attribute> 
    282           </xsl:if><a href="{$setViewPeriod}&amp;viewType=monthView&amp;date={$curdate}"><xsl:copy-of select="$bwStr-Tabs-Month"/></a> 
    283         </li> 
    284         <li> 
    285           <xsl:if test="/bedework/page='eventscalendar' and /bedework/periodname='Year'"> 
    286             <xsl:attribute name="class">selected</xsl:attribute> 
    287           </xsl:if><a href="{$setViewPeriod}&amp;viewType=yearView&amp;date={$curdate}"><xsl:copy-of select="$bwStr-Tabs-Year"/></a> 
    288         </li> 
    289         <!-- hide the list view.  It's intended primarily for data feeds and causes some 
    290              confusion when presented in the web client.  --> 
    291         <!-- 
    292         <li> 
    293           <xsl:if test="/bedework/page='eventList'"> 
    294             <xsl:attribute name="class">selected</xsl:attribute> 
    295           </xsl:if><a href="{$listEvents}"><xsl:copy-of select="$bwStr-Tabs-List"/></a> 
    296         </li> 
    297         --> 
    298       </ul> 
    299     </div> 
    300   </xsl:template> 
    301  
    302   <xsl:template name="navigation"> 
    303     <table border="0" cellpadding="0" cellspacing="0" id="navigationBarTable"> 
    304       <tr> 
    305         <td class="leftCell"> 
    306           <a id="prevViewPeriod" href="{$setViewPeriod}&amp;date={$prevdate}"><img src="{$resourcesRoot}/images/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a> 
    307           <a id="nextViewPeriod" href="{$setViewPeriod}&amp;date={$nextdate}"><img src="{$resourcesRoot}/images/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a> 
    308           <xsl:choose> 
    309             <xsl:when test="/bedework/periodname='Year'"> 
    310               <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/> 
    311             </xsl:when> 
    312             <xsl:when test="/bedework/periodname='Month'"> 
    313               <xsl:value-of select="/bedework/firstday/monthname"/>, <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/> 
    314             </xsl:when> 
    315             <xsl:when test="/bedework/periodname='Week'"> 
    316               <xsl:copy-of select="$bwStr-Navi-WeekOf"/><xsl:text> </xsl:text><xsl:value-of select="substring-after(/bedework/firstday/longdate,', ')"/> 
    317             </xsl:when> 
    318             <xsl:otherwise> 
    319               <xsl:value-of select="/bedework/firstday/longdate"/> 
    320             </xsl:otherwise> 
    321           </xsl:choose> 
    322         </td> 
    323         <td class="todayButton"> 
    324           <a href="{$setViewPeriod}&amp;viewType=todayView&amp;date={$curdate}"> 
    325             <img src="{$resourcesRoot}/images/std-button-today-off.gif" width="54" height="22" border="0" alt="Go to Today" align="left"/> 
    326           </a> 
    327         </td> 
    328         <td align="right" class="gotoForm"> 
    329           <form name="calForm" method="post" action="{$setViewPeriod}"> 
    330              <table border="0" cellpadding="0" cellspacing="0"> 
    331               <tr> 
    332                 <xsl:if test="/bedework/periodname!='Year'"> 
    333                   <td> 
    334                     <select name="viewStartDate.month"> 
    335                       <xsl:for-each select="/bedework/monthvalues/val"> 
    336                         <xsl:variable name="temp" select="."/> 
    337                         <xsl:variable name="pos" select="position()"/> 
    338                         <xsl:choose> 
    339                           <xsl:when test="/bedework/monthvalues[start=$temp]"> 
    340                             <option value="{$temp}" selected="selected"> 
    341                               <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/> 
    342                             </option> 
    343                           </xsl:when> 
    344                           <xsl:otherwise> 
    345                             <option value="{$temp}"> 
    346                               <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/> 
    347                             </option> 
    348                           </xsl:otherwise> 
    349                         </xsl:choose> 
    350                       </xsl:for-each> 
    351                     </select> 
    352                   </td> 
    353                   <xsl:if test="/bedework/periodname!='Month'"> 
    354                     <td> 
    355                       <select name="viewStartDate.day"> 
    356                         <xsl:for-each select="/bedework/dayvalues/val"> 
    357                           <xsl:variable name="temp" select="."/> 
    358                           <xsl:variable name="pos" select="position()"/> 
    359                           <xsl:choose> 
    360                             <xsl:when test="/bedework/dayvalues[start=$temp]"> 
    361                               <option value="{$temp}" selected="selected"> 
    362                                 <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/> 
    363                               </option> 
    364                             </xsl:when> 
    365                             <xsl:otherwise> 
    366                               <option value="{$temp}"> 
    367                                 <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/> 
    368                               </option> 
    369                             </xsl:otherwise> 
    370                           </xsl:choose> 
    371                         </xsl:for-each> 
    372                       </select> 
    373                     </td> 
    374                   </xsl:if> 
    375                 </xsl:if> 
    376                 <td> 
    377                   <xsl:variable name="temp" select="/bedework/yearvalues/start"/> 
    378                   <input type="text" name="viewStartDate.year" maxlength="4" size="4" value="{$temp}"/> 
    379                 </td> 
    380                 <td> 
    381                   <input name="submit" type="submit" value="{$bwStr-Navi-Go}"/> 
    382                 </td> 
    383               </tr> 
    384             </table> 
    385           </form> 
    386         </td> 
    387         <td class="rightCell"> 
    388         </td> 
    389       </tr> 
    390     </table> 
    391   </xsl:template> 
    392  
    393   <xsl:template name="searchBar"> 
    394     <table width="100%" border="0" cellpadding="0" cellspacing="0" id="searchBarTable"> 
    395        <tr> 
    396          <td class="leftCell"> 
    397            <xsl:choose> 
    398              <xsl:when test="/bedework/selectionState/selectionType = 'collections'"> 
    399                <xsl:copy-of select="$bwStr-SrcB-Calendar"/> 
    400                <xsl:text> </xsl:text> 
    401                <strong> 
    402                  <xsl:call-template name="substring-afterLastInstanceOf"> 
    403                    <xsl:with-param name="string" select="/bedework/appvar[key='curCollection']/value"/> 
    404                    <xsl:with-param name="char">/</xsl:with-param> 
    405                  </xsl:call-template> 
    406                </strong> 
    407              </xsl:when> 
    408              <xsl:when test="/bedework/selectionState/selectionType = 'search'"> 
    409                <xsl:copy-of select="$bwStr-SrcB-CurrentSearch"/><xsl:text> </xsl:text><xsl:value-of select="/bedework/search"/> 
    410              </xsl:when> 
    411              <xsl:otherwise><!-- view --> 
    412                <xsl:copy-of select="$bwStr-SrcB-View"/> 
    413                <form name="selectViewForm" method="post" action="{$setSelection}"> 
    414                 <select name="viewName" onchange="submit()" > 
    415                   <xsl:if test="/bedework/page = 'eventList'"><xsl:attribute name="disabled">disabled</xsl:attribute></xsl:if> 
    416                   <xsl:for-each select="/bedework/views/view"> 
    417                     <xsl:variable name="name" select="name"/> 
    418                     <xsl:choose> 
    419                       <xsl:when test="name=/bedework/selectionState/view/name"> 
    420                         <option value="{$name}" selected="selected"><xsl:value-of select="name"/></option> 
    421                       </xsl:when> 
    422                       <xsl:otherwise> 
    423                         <option value="{$name}"><xsl:value-of select="name"/></option> 
    424                       </xsl:otherwise> 
    425                     </xsl:choose> 
    426                   </xsl:for-each> 
    427                 </select> 
    428               </form> 
    429              </xsl:otherwise> 
    430            </xsl:choose> 
    431            <span class="link"><a href="{$setSelection}"><xsl:copy-of select="$bwStr-SrcB-DefaultView"/></a> | <a href="{$fetchPublicCalendars}"><xsl:copy-of select="$bwStr-SrcB-AllCalendars"/></a></span> 
    432          </td> 
    433          <td class="rightCell"> 
    434             <xsl:if test="/bedework/page!='searchResult'"> 
    435               <form name="searchForm" id="searchForm" method="post" action="{$search}"> 
    436                 <xsl:copy-of select="$bwStr-SrcB-Search"/> 
    437                 <input type="text" name="query" size="15"> 
    438                   <xsl:attribute name="value"><xsl:value-of select="/bedework/searchResults/query"/></xsl:attribute> 
    439                 </input> 
    440                 <input type="submit" name="submit" value="{$bwStr-SrcB-Go}"/> 
    441               </form> 
    442               <xsl:text> </xsl:text> 
    443             </xsl:if> 
    444             <xsl:choose> 
    445               <xsl:when test="/bedework/periodname='Day' or /bedework/page='eventList'"> 
    446                 <span class="utilButtonOff"><xsl:copy-of select="$bwStr-Util-List"/></span> 
    447               </xsl:when> 
    448               <xsl:when test="/bedework/periodname='Year'"> 
    449                 <span class="utilButtonOff"><xsl:copy-of select="$bwStr-Util-Cal"/></span> 
    450               </xsl:when> 
    451               <xsl:when test="/bedework/periodname='Month'"> 
    452                 <xsl:choose> 
    453                   <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'"> 
    454                     <a class="utilButton" href="{$setup}&amp;setappvar=monthViewMode(cal)" title="{$bwStr-SrcB-ToggleListCalView}"> 
    455                       <xsl:copy-of select="$bwStr-Util-Cal"/> 
    456                     </a> 
    457                   </xsl:when> 
    458                   <xsl:otherwise> 
    459                     <a class="utilButton" href="{$setup}&amp;setappvar=monthViewMode(list)" title="{$bwStr-SrcB-ToggleListCalView}"> 
    460                       <xsl:copy-of select="$bwStr-Util-List"/> 
    461                     </a> 
    462                   </xsl:otherwise> 
    463                 </xsl:choose> 
    464               </xsl:when> 
    465               <xsl:otherwise> 
    466                 <xsl:choose> 
    467                   <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'"> 
    468                     <a class="utilButton" href="{$setup}&amp;setappvar=weekViewMode(cal)" title="{$bwStr-SrcB-ToggleListCalView}"> 
    469                       <xsl:copy-of select="$bwStr-Util-Cal"/> 
    470                     </a> 
    471                   </xsl:when> 
    472                   <xsl:otherwise> 
    473                     <a class="utilButton" href="{$setup}&amp;setappvar=weekViewMode(list)" title="{$bwStr-SrcB-ToggleListCalView}"> 
    474                       <xsl:copy-of select="$bwStr-Util-List"/> 
    475                     </a> 
    476                   </xsl:otherwise> 
    477                 </xsl:choose> 
    478               </xsl:otherwise> 
    479             </xsl:choose> 
    480             <xsl:choose> 
    481               <xsl:when test="/bedework/page = 'eventList'"> 
    482                 <xsl:choose> 
    483                   <xsl:when test="/bedework/appvar[key='listEventsSummaryMode']/value='details'"> 
    484                     <a class="utilButton" href="{$listEvents}&amp;setappvar=listEventsSummaryMode(summary)" title="{$bwStr-SrcB-ToggleSummDetView}"> 
    485                       <xsl:copy-of select="$bwStr-Util-Summary"/> 
    486                     </a> 
    487                   </xsl:when> 
    488                   <xsl:otherwise> 
    489                     <a class="utilButton" href="{$listEvents}&amp;setappvar=listEventsSummaryMode(details)" title="{$bwStr-SrcB-ToggleSummDetView}"> 
    490                       <xsl:copy-of select="$bwStr-Util-Details"/> 
    491                     </a> 
    492                   </xsl:otherwise> 
    493                 </xsl:choose> 
    494               </xsl:when> 
    495               <xsl:when test="/bedework/periodname='Year' or 
    496                               (/bedework/periodname='Month' and 
    497                               (/bedework/appvar[key='monthViewMode']/value='cal' or 
    498                                not(/bedework/appvar[key='monthViewMode']))) or 
    499                               (/bedework/periodname='Week' and 
    500                               (/bedework/appvar[key='weekViewMode']/value='cal' or 
    501                                not(/bedework/appvar[key='weekViewMode'])))"> 
    502                 <xsl:choose> 
    503                   <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 
    504                     <span class="utilButtonOff"><xsl:copy-of select="$bwStr-Util-Summary"/></span> 
    505                   </xsl:when> 
    506                   <xsl:otherwise> 
    507                     <span class="utilButtonOff"><xsl:copy-of select="$bwStr-Util-Details"/></span> 
    508                   </xsl:otherwise> 
    509                 </xsl:choose> 
    510               </xsl:when> 
    511               <xsl:otherwise> 
    512                 <xsl:choose> 
    513                   <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 
    514                     <a class="utilButton" href="{$setup}&amp;setappvar=summaryMode(summary)" title="{$bwStr-SrcB-ToggleSummDetView}"> 
    515                       <xsl:copy-of select="$bwStr-Util-Summary"/> 
    516                     </a> 
    517                   </xsl:when> 
    518                   <xsl:otherwise> 
    519                     <a class="utilButton" href="{$setup}&amp;setappvar=summaryMode(details)" title="{$bwStr-SrcB-ToggleSummDetView}"> 
    520                       <xsl:copy-of select="$bwStr-Util-Details"/> 
    521                     </a> 
    522                   </xsl:otherwise> 
    523                 </xsl:choose> 
    524               </xsl:otherwise> 
    525             </xsl:choose> 
    526             <!-- 
    527             <a href="{$setup}"> 
    528               <xsl:if test="/bedework/page='eventList'"> 
    529                 <xsl:attribute name="href"><xsl:value-of select="$listEvents"/></xsl:attribute> 
    530               </xsl:if> 
    531               <img src="{$resourcesRoot}/images/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/> 
    532             </a> 
    533             --> 
    534           </td> 
    535        </tr> 
    536     </table> 
    537   </xsl:template> 
    538  
    539   <!--==== LIST VIEW  (for day, week, and month) ====--> 
    540   <xsl:template name="listView"> 
    541     <table id="listTable" border="0" cellpadding="0" cellspacing="0"> 
    542       <xsl:choose> 
    543         <xsl:when test="not(/bedework/eventscalendar/year/month/week/day/event)"> 
    544           <tr> 
    545             <td class="noEventsCell"> 
    546               <xsl:copy-of select="$bwStr-LsVw-NoEventsToDisplay"/> 
    547             </td> 
    548           </tr> 
    549         </xsl:when> 
    550         <xsl:otherwise> 
    551           <xsl:for-each select="/bedework/eventscalendar/year/month/week/day[event]"> 
    552             <xsl:if test="/bedework/periodname='Week' or /bedework/periodname='Month' or /bedework/periodname=''"> 
    553               <tr> 
    554                 <td colspan="5" class="dateRow"> 
    555                    <xsl:variable name="date" select="date"/> 
    556                    <a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$date}"> 
    557                      <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/> 
    558                    </a> 
    559                 </td> 
    560               </tr> 
    561             </xsl:if> 
    562             <xsl:for-each select="event"> 
    563               <xsl:variable name="id" select="id"/> 
    564               <xsl:variable name="calPath" select="calendar/encodedPath"/> 
    565               <xsl:variable name="guid" select="guid"/> 
    566               <xsl:variable name="recurrenceId" select="recurrenceId"/> 
    567               <tr> 
    568                 <xsl:variable name="dateRangeStyle"> 
    569                   <xsl:choose> 
    570                     <xsl:when test="start/shortdate = parent::day/shortdate"> 
    571                       <xsl:choose> 
    572                         <xsl:when test="start/allday = 'true'">dateRangeCrossDay</xsl:when> 
    573                         <xsl:when test="start/hour24 &lt; 6">dateRangeEarlyMorning</xsl:when> 
    574                         <xsl:when test="start/hour24 &lt; 12">dateRangeMorning</xsl:when> 
    575                         <xsl:when test="start/hour24 &lt; 18">dateRangeAfternoon</xsl:when> 
    576                         <xsl:otherwise>dateRangeEvening</xsl:otherwise> 
    577                       </xsl:choose> 
    578                     </xsl:when> 
    579                     <xsl:otherwise>dateRangeCrossDay</xsl:otherwise> 
    580                   </xsl:choose> 
    581                 </xsl:variable> 
    582                 <xsl:choose> 
    583                   <xsl:when test="start/allday = 'true' and 
    584                                   start/shortdate = end/shortdate"> 
    585                     <td class="{$dateRangeStyle} center" colspan="3"> 
    586                       <xsl:copy-of select="$bwStr-LsVw-AllDay"/> 
    587                     </td> 
    588                   </xsl:when> 
    589                   <xsl:when test="start/shortdate = end/shortdate and 
    590                                   start/time = end/time"> 
    591                     <td class="{$dateRangeStyle} center" colspan="3"> 
    592                       <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    593                         <xsl:value-of select="start/time"/> 
    594                       </a> 
    595                     </td> 
    596                   </xsl:when> 
    597                   <xsl:otherwise> 
    598                     <td class="{$dateRangeStyle} right"> 
    599                       <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    600                       <xsl:choose> 
    601                         <xsl:when test="start/allday = 'true' and 
    602                                         parent::day/shortdate = start/shortdate"> 
    603                           <xsl:copy-of select="$bwStr-LsVw-Today"/> 
    604                         </xsl:when> 
    605                         <xsl:when test="parent::day/shortdate != start/shortdate"> 
    606                           <span class="littleArrow">&#171;</span>&#160; 
    607                           <xsl:value-of select="start/month"/>/<xsl:value-of select="start/day"/> 
    608                         </xsl:when> 
    609                         <xsl:otherwise> 
    610                           <xsl:value-of select="start/time"/> 
    611                         </xsl:otherwise> 
    612                       </xsl:choose> 
    613                       </a> 
    614                     </td> 
    615                     <td class="{$dateRangeStyle} center"> 
    616                       <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">-</a> 
    617                     </td> 
    618                     <td class="{$dateRangeStyle} left"> 
    619                       <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    620                       <xsl:choose> 
    621                         <xsl:when test="end/allday = 'true' and 
    622                                         parent::day/shortdate = end/shortdate"> 
    623                           <xsl:copy-of select="$bwStr-LsVw-Today"/> 
    624                         </xsl:when> 
    625                         <xsl:when test="parent::day/shortdate != end/shortdate"> 
    626                           <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/> 
    627                           &#160;<span class="littleArrow">&#187;</span> 
    628                         </xsl:when> 
    629                         <xsl:otherwise> 
    630                           <xsl:value-of select="end/time"/> 
    631                         </xsl:otherwise> 
    632                       </xsl:choose> 
    633                       </a> 
    634                     </td> 
    635                   </xsl:otherwise> 
    636                 </xsl:choose> 
    637                 <xsl:variable name="descriptionClass"> 
    638                   <xsl:choose> 
    639                     <xsl:when test="status='CANCELLED'">description bwStatusCancelled</xsl:when> 
    640                     <xsl:when test="status='TENTATIVE'">description bwStatusTentative</xsl:when> 
    641                     <xsl:otherwise><xsl:copy-of select="$bwStr-LsVw-Description"/></xsl:otherwise> 
    642                   </xsl:choose> 
    643                 </xsl:variable> 
    644                 <!-- Subscription styles. 
    645                      These are set in the add/modify subscription forms in the admin client; 
    646                      if present, these override the background-color set by eventClass. The 
    647                      subscription styles should not be used for canceled events (tentative is ok). --> 
    648                 <xsl:variable name="subscriptionClass"> 
    649                   <xsl:if test="status != 'CANCELLED'"> 
    650                     <xsl:apply-templates select="categories" mode="customEventColor"/> 
    651                   </xsl:if> 
    652                 </xsl:variable> 
    653                 <td class="{$descriptionClass} {$subscriptionClass}"> 
    654                   <xsl:if test="status='CANCELLED'"><strong><xsl:copy-of select="$bwStr-LsVw-Canceled"/><xsl:text> </xsl:text></strong></xsl:if> 
    655                   <xsl:choose> 
    656                     <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 
    657                       <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    658                         <strong> 
    659                           <xsl:value-of select="summary"/>: 
    660                         </strong> 
    661                         <xsl:value-of select="description"/>&#160; 
    662                         <em> 
    663                           <xsl:value-of select="location/address"/> 
    664                           <xsl:if test="location/subaddress != ''"> 
    665                             , <xsl:value-of select="location/subaddress"/> 
    666                           </xsl:if>.&#160; 
    667                           <xsl:if test="cost!=''"> 
    668                             <xsl:value-of select="cost"/>.&#160; 
    669                           </xsl:if> 
    670                           <xsl:if test="contact/name!='none'"> 
    671                             <xsl:copy-of select="$bwStr-LsVw-Contact"/><xsl:text> </xsl:text><xsl:value-of select="contact/name"/> 
    672                           </xsl:if> 
    673                         </em> 
    674                         - 
    675                         <span class="eventSubscription"> 
    676                           <xsl:if test="xproperties/X-BEDEWORK-ALIAS"> 
    677                             <xsl:for-each select="xproperties/X-BEDEWORK-ALIAS"> 
    678                               <xsl:call-template name="substring-afterLastInstanceOf"> 
    679                                 <xsl:with-param name="string" select="values/text"/> 
    680                                 <xsl:with-param name="char">/</xsl:with-param> 
    681                               </xsl:call-template> 
    682                               <xsl:if test="position()!=last()">, </xsl:if> 
    683                             </xsl:for-each> 
    684                           </xsl:if> 
    685                         </span> 
    686                       </a> 
    687                       <xsl:if test="link != ''"> 
    688                         <xsl:variable name="link" select="link"/> 
    689                         <a href="{$link}" class="moreLink"><xsl:value-of select="link"/></a> 
    690                       </xsl:if> 
    691                     </xsl:when> 
    692                     <xsl:otherwise> 
    693                       <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    694                         <xsl:value-of select="summary"/> 
    695                         <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if> 
    696                          - 
    697                         <span class="eventSubscription"> 
    698                           <xsl:if test="xproperties/X-BEDEWORK-ALIAS"> 
    699                             <xsl:for-each select="xproperties/X-BEDEWORK-ALIAS"> 
    700                               <xsl:call-template name="substring-afterLastInstanceOf"> 
    701                                 <xsl:with-param name="string" select="values/text"/> 
    702                                 <xsl:with-param name="char">/</xsl:with-param> 
    703                               </xsl:call-template> 
    704                               <xsl:if test="position()!=last()">, </xsl:if> 
    705                             </xsl:for-each> 
    706                           </xsl:if> 
    707                         </span> 
    708                       </a> 
    709                     </xsl:otherwise> 
    710                   </xsl:choose> 
    711                 </td> 
    712                 <td class="icons"> 
    713                   <a href="{$privateCal}/event/addEventRef.do?calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="{$bwStr-LsVw-AddEventToMyCalendar}" target="myCalendar"> 
    714                     <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="{$bwStr-LsVw-AddEventToMyCalendar}"/> 
    715                   </a> 
    716                   <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/> 
    717                   <a href="{$export}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;contentName={$eventIcalName}" title="{$bwStr-LsVw-DownloadEvent}"> 
    718                     <img src="{$resourcesRoot}/images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="{$bwStr-LsVw-DownloadEvent}"/> 
    719                   </a> 
    720                 </td> 
    721               </tr> 
    722             </xsl:for-each> 
    723           </xsl:for-each> 
    724         </xsl:otherwise> 
    725       </xsl:choose> 
    726     </table> 
    727   </xsl:template> 
    728  
    729   <!--==== LIST EVENTS - for listing discrete events ====--> 
    730   <xsl:template match="events" mode="eventList"> 
    731     <h2 class="bwStatusConfirmed"> 
    732       <!-- <form name="bwListEventsForm" action="{$listEvents}" method="post"> 
    733         <input type="hidden" name="setappvar"/>--> 
    734         <xsl:copy-of select="$bwStr-LsEv-Next7Days"/> 
    735         <!-- 
    736         <span id="bwListEventsFormControls"> 
    737           <select name="catuid" onchange="this.form.submit();"> 
    738             <option value="">filter by category...</option> 
    739             <xsl:for-each select="/bedework/categories/category"> 
    740               <option> 
    741                 <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> 
    742                 <xsl:value-of select="value"/> 
    743               </option> 
    744             </xsl:for-each> 
    745           </select> 
    746           <select name="days" onchange="this.form.submit();"> 
    747             <xsl:call-template name="buildListEventsDaysOptions"> 
    748               <xsl:with-param name="i">1</xsl:with-param> 
    749               <xsl:with-param name="total">31</xsl:with-param> 
    750             </xsl:call-template> 
    751           </select> 
    752         </span> 
    753       </form>--> 
    754     </h2> 
    755  
    756     <div id="listEvents"> 
    757       <ul> 
    758         <xsl:choose> 
    759           <xsl:when test="not(event)"> 
    760             <li><xsl:copy-of select="$bwStr-LsEv-NoEventsToDisplay"/></li> 
    761           </xsl:when> 
    762           <xsl:otherwise> 
    763             <xsl:for-each select="event"> 
    764               <xsl:variable name="id" select="id"/> 
    765               <xsl:variable name="calPath" select="calendar/encodedPath"/> 
    766               <xsl:variable name="guid" select="guid"/> 
    767               <xsl:variable name="recurrenceId" select="recurrenceId"/> 
    768               <li> 
    769                 <xsl:attribute name="class"> 
    770                   <xsl:choose> 
    771                     <xsl:when test="status='CANCELLED'">bwStatusCancelled</xsl:when> 
    772                     <xsl:when test="status='TENTATIVE'">bwStatusTentative</xsl:when> 
    773                   </xsl:choose> 
    774                 </xsl:attribute> 
    775  
    776                 <xsl:if test="status='CANCELLED'"><strong><xsl:copy-of select="$bwStr-LsEv-Canceled"/><xsl:text> </xsl:text></strong></xsl:if> 
    777                 <xsl:if test="status='TENTATIVE'"><em><xsl:copy-of select="$bwStr-LsEv-Tentative"/><xsl:text> </xsl:text></em></xsl:if> 
    778  
    779                 <a class="title" href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    780                   <xsl:value-of select="summary"/> 
    781                 </a><xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if> 
    782                 <xsl:if test="/bedework/appvar[key='listEventsSummaryMode']/value='details'"> 
    783                   <xsl:if test="location/subaddress != ''"> 
    784                     , <xsl:value-of select="location/subaddress"/> 
    785                   </xsl:if> 
    786                 </xsl:if> 
    787  
    788                 <xsl:text> </xsl:text> 
    789                 <a href="{$privateCal}/event/addEventRef.do?calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="{$bwStr-LsVw-AddEventToMyCalendar}" target="myCalendar"> 
    790                   <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="{$bwStr-LsVw-AddEventToMyCalendar}"/> 
    791                 </a> 
    792                 <xsl:text> </xsl:text> 
    793                 <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/> 
    794                 <a href="{$export}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;contentName={$eventIcalName}" title="{$bwStr-LsEv-DownloadEvent}"> 
    795                   <img src="{$resourcesRoot}/images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="{$bwStr-LsEv-DownloadEvent}"/> 
    796                 </a> 
    797  
    798                 <br/> 
    799  
    800                 <xsl:value-of select="substring(start/dayname,1,3)"/>, 
    801                 <xsl:value-of select="start/longdate"/> 
    802                 <xsl:text> </xsl:text> 
    803                 <xsl:if test="start/allday != 'true'"> 
    804                   <xsl:value-of select="start/time"/> 
    805                 </xsl:if> 
    806                 <xsl:choose> 
    807                   <xsl:when test="start/shortdate != end/shortdate"> 
    808                     - 
    809                     <xsl:value-of select="substring(end/dayname,1,3)"/>, 
    810                     <xsl:value-of select="end/longdate"/> 
    811                     <xsl:text> </xsl:text> 
    812                     <xsl:if test="start/allday != 'true'"> 
    813                       <xsl:value-of select="end/time"/> 
    814                     </xsl:if> 
    815                   </xsl:when> 
    816                   <xsl:otherwise> 
    817                     <xsl:if test="start/time != end/time"> 
    818                       - 
    819                       <xsl:value-of select="end/time"/> 
    820                     </xsl:if> 
    821                   </xsl:otherwise> 
    822                 </xsl:choose> 
    823  
    824                 <xsl:if test="/bedework/appvar[key='listEventsSummaryMode']/value='details'"> 
    825                   <br/> 
    826                   <xsl:value-of select="description"/> 
    827                   <xsl:if test="link != ''"> 
    828                     <br/> 
    829                     <xsl:variable name="link" select="link"/> 
    830                     <a href="{$link}" class="moreLink"><xsl:value-of select="link"/></a> 
    831                   </xsl:if> 
    832                   <xsl:if test="categories/category"> 
    833                     <br/> 
    834                     <xsl:copy-of select="$bwStr-LsEv-Categories"/> 
    835                     <xsl:for-each select="categories/category"> 
    836                       <xsl:value-of select="value"/><xsl:if test="position() != last()">, </xsl:if> 
    837                     </xsl:for-each> 
    838                   </xsl:if> 
    839                   <br/> 
    840                   <em> 
    841                     <xsl:if test="cost!=''"> 
    842                       <xsl:value-of select="cost"/>.&#160; 
    843                     </xsl:if> 
    844                     <xsl:if test="contact/name!='none'"> 
    845                       <xsl:copy-of select="$bwStr-LsEv-Contact"/><xsl:text> </xsl:text><xsl:value-of select="contact/name"/> 
    846                     </xsl:if> 
    847                   </em> 
    848                 </xsl:if> 
    849  
    850               </li> 
    851             </xsl:for-each> 
    852           </xsl:otherwise> 
    853         </xsl:choose> 
    854       </ul> 
    855     </div> 
    856   </xsl:template> 
    857  
    858   <xsl:template name="buildListEventsDaysOptions"> 
    859     <xsl:param name="i">1</xsl:param> 
    860     <xsl:param name="total">31</xsl:param> 
    861     <xsl:param name="default">7</xsl:param> 
    862     <xsl:variable name="selected"><xsl:value-of select="/bedework/appvar[key='listEventsDays']/value"/></xsl:variable> 
    863  
    864     <option onclick="this.form.setappvar.value='listEventsDay({$i})'"> 
    865       <xsl:attribute name="value"><xsl:value-of select="$i"/></xsl:attribute> 
    866       <xsl:if test="($selected != '' and $i = $selected) or ($selected = '' and $i = $default)"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> 
    867       <xsl:value-of select="$i"/> 
    868     </option> 
    869  
    870     <xsl:if test="$i &lt; $total"> 
    871       <xsl:call-template name="buildListEventsDaysOptions"> 
    872         <xsl:with-param name="i"><xsl:value-of select="$i + 1"/></xsl:with-param> 
    873         <xsl:with-param name="total"><xsl:value-of select="$total"/></xsl:with-param> 
    874         <xsl:with-param name="default"><xsl:value-of select="$default"/></xsl:with-param> 
    875       </xsl:call-template> 
    876     </xsl:if> 
    877  
    878   </xsl:template> 
    879  
    880   <!--==== WEEK CALENDAR VIEW ====--> 
    881   <xsl:template name="weekView"> 
    882     <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0"> 
    883       <tr> 
    884         <xsl:for-each select="/bedework/daynames/val"> 
    885           <th class="dayHeading"><xsl:value-of select="."/></th> 
    886         </xsl:for-each> 
    887       </tr> 
    888       <tr> 
    889         <xsl:for-each select="/bedework/eventscalendar/year/month/week/day"> 
    890           <xsl:variable name="dayPos" select="position()"/> 
    891           <xsl:if test="filler='false'"> 
    892             <td> 
    893               <xsl:if test="/bedework/now/date = date"> 
    894                 <xsl:attribute name="class">today</xsl:attribute> 
    895               </xsl:if> 
    896               <xsl:variable name="dayDate" select="date"/> 
    897               <a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$dayDate}" class="dayLink"> 
    898                 <xsl:value-of select="value"/> 
    899               </a> 
    900               <xsl:if test="event"> 
    901                 <ul> 
    902                   <xsl:apply-templates select="event" mode="calendarLayout"> 
    903                     <xsl:with-param name="dayPos" select="$dayPos"/> 
    904                   </xsl:apply-templates> 
    905                 </ul> 
    906               </xsl:if> 
    907             </td> 
    908           </xsl:if> 
    909         </xsl:for-each> 
    910       </tr> 
    911     </table> 
    912   </xsl:template> 
    913  
    914   <!--==== MONTH CALENDAR VIEW ====--> 
    915   <xsl:template name="monthView"> 
    916     <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0"> 
    917       <tr> 
    918         <xsl:for-each select="/bedework/daynames/val"> 
    919           <th class="dayHeading"><xsl:value-of select="."/></th> 
    920         </xsl:for-each> 
    921       </tr> 
    922       <xsl:for-each select="/bedework/eventscalendar/year/month/week"> 
    923         <tr> 
    924           <xsl:for-each select="day"> 
    925             <xsl:variable name="dayPos" select="position()"/> 
    926             <xsl:choose> 
    927               <xsl:when test="filler='true'"> 
    928                 <td class="filler">&#160;</td> 
    929               </xsl:when> 
    930               <xsl:otherwise> 
    931                 <td> 
    932                   <xsl:if test="/bedework/now/date = date"> 
    933                     <xsl:attribute name="class">today</xsl:attribute> 
    934                   </xsl:if> 
    935                   <xsl:variable name="dayDate" select="date"/> 
    936                   <a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$dayDate}" class="dayLink"> 
    937                     <xsl:value-of select="value"/> 
    938                   </a> 
    939                   <xsl:if test="event"> 
    940                     <ul> 
    941                       <xsl:apply-templates select="event" mode="calendarLayout"> 
    942                         <xsl:with-param name="dayPos" select="$dayPos"/> 
    943                       </xsl:apply-templates> 
    944                     </ul> 
    945                   </xsl:if> 
    946                 </td> 
    947               </xsl:otherwise> 
    948             </xsl:choose> 
    949           </xsl:for-each> 
    950         </tr> 
    951       </xsl:for-each> 
    952     </table> 
    953   </xsl:template> 
    954  
    955   <!--== EVENTS IN THE CALENDAR GRID ==--> 
    956   <xsl:template match="event" mode="calendarLayout"> 
    957     <xsl:param name="dayPos"/> 
    958     <xsl:variable name="calPath" select="calendar/encodedPath"/> 
    959     <xsl:variable name="guid" select="guid"/> 
    960     <xsl:variable name="recurrenceId" select="recurrenceId"/> 
    961     <xsl:variable name="eventClass"> 
    962       <xsl:choose> 
    963         <!-- Special styles for the month grid --> 
    964         <xsl:when test="status='CANCELLED'">eventCancelled</xsl:when> 
    965         <xsl:when test="status='TENTATIVE'">eventTentative</xsl:when> 
    966         <!-- Default alternating colors for all standard events --> 
    967         <xsl:when test="position() mod 2 = 1">eventLinkA</xsl:when> 
    968         <xsl:otherwise>eventLinkB</xsl:otherwise> 
    969       </xsl:choose> 
    970     </xsl:variable> 
    971     <!-- Subscription styles. 
    972          These are set in the add/modify subscription forms in the admin client; 
    973          if present, these override the background-color set by eventClass. The 
    974          subscription styles should not be used for canceled events (tentative is ok). --> 
    975     <xsl:variable name="subscriptionClass"> 
    976       <xsl:if test="status != 'CANCELLED'"> 
    977         <xsl:apply-templates select="categories" mode="customEventColor"/> 
    978       </xsl:if> 
    979     </xsl:variable> 
    980     <li> 
    981       <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" class="{$eventClass} {$subscriptionClass}"> 
    982         <xsl:if test="status='CANCELLED'"><xsl:copy-of select="$bwStr-EvCG-CanceledColon"/><xsl:text> </xsl:text></xsl:if> 
    983         <xsl:choose> 
    984           <xsl:when test="start/shortdate != ../shortdate"> 
    985             <xsl:copy-of select="$bwStr-EvCG-Cont"/> 
    986           </xsl:when> 
    987           <xsl:when test="start/allday = 'false'"> 
    988             <xsl:value-of select="start/time"/>: 
    989           </xsl:when> 
    990           <xsl:otherwise> 
    991             <xsl:copy-of select="$bwStr-EvCG-AllDayColon"/> 
    992           </xsl:otherwise> 
    993         </xsl:choose> 
    994         <xsl:value-of select="summary"/> 
    995         <xsl:variable name="eventTipClass"> 
    996           <xsl:choose> 
    997             <xsl:when test="$dayPos &gt; 5">eventTipReverse</xsl:when> 
    998             <xsl:otherwise>eventTip</xsl:otherwise> 
    999           </xsl:choose> 
    1000         </xsl:variable> 
    1001         <span class="{$eventTipClass}"> 
    1002           <xsl:if test="status='CANCELLED'"><span class="eventTipStatusCancelled"><xsl:copy-of select="$bwStr-EvCG-CanceledColon"/></span></xsl:if> 
    1003           <xsl:if test="status='TENTATIVE'"><span class="eventTipStatusTentative"><xsl:copy-of select="$bwStr-EvCG-Tentative"/></span></xsl:if> 
    1004           <strong><xsl:value-of select="summary"/></strong><br/> 
    1005           <xsl:copy-of select="$bwStr-EvCG-Time"/> 
    1006           <xsl:choose> 
    1007             <xsl:when test="start/allday = 'true'"> 
    1008               <xsl:copy-of select="$bwStr-EvCG-AllDay"/> 
    1009             </xsl:when> 
    1010             <xsl:otherwise> 
    1011               <xsl:if test="start/shortdate != ../shortdate"> 
    1012                 <xsl:value-of select="start/month"/>/<xsl:value-of select="start/day"/> 
    1013                 <xsl:text> </xsl:text> 
    1014               </xsl:if> 
    1015               <xsl:value-of select="start/time"/> 
    1016               <xsl:if test="(start/time != end/time) or (start/shortdate != end/shortdate)"> 
    1017                 - 
    1018                 <xsl:if test="end/shortdate != ../shortdate"> 
    1019                   <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/> 
    1020                   <xsl:text> </xsl:text> 
    1021                 </xsl:if> 
    1022                 <xsl:value-of select="end/time"/> 
    1023               </xsl:if> 
    1024             </xsl:otherwise> 
    1025           </xsl:choose><br/> 
    1026           <xsl:if test="location/address"> 
    1027             <xsl:copy-of select="$bwStr-EvCG-Location"/><xsl:text> </xsl:text><xsl:value-of select="location/address"/><br/> 
    1028           </xsl:if> 
    1029           <xsl:if test="xproperties/X-BEDEWORK-ALIAS"> 
    1030             <xsl:copy-of select="$bwStr-EvCG-TopicalArea"/> 
    1031               <xsl:for-each select="xproperties/X-BEDEWORK-ALIAS"> 
    1032                 <xsl:call-template name="substring-afterLastInstanceOf"> 
    1033                   <xsl:with-param name="string" select="values/text"/> 
    1034                   <xsl:with-param name="char">/</xsl:with-param> 
    1035                 </xsl:call-template> 
    1036                 <xsl:if test="position()!=last()">, </xsl:if> 
    1037               </xsl:for-each> 
    1038           </xsl:if> 
    1039         </span> 
    1040       </a> 
    1041     </li> 
    1042   </xsl:template> 
    1043  
    1044   <xsl:template match="categories" mode="customEventColor"> 
    1045     <!-- Set custom color schemes here. 
    1046          This template looks at the categories found in the event and 
    1047          returns a color class for use with the "subscriptionClass" variable. 
    1048          The classes suggested below come from bwColors.css found in the bedework-common directory. --> 
    1049     <xsl:choose> 
    1050        <!-- 
    1051        <xsl:when test="category/value = 'Athletics'">bwltpurple</xsl:when> 
    1052        <xsl:when test="category/value = 'Arts'">bwltsalmon</xsl:when> 
    1053        --> 
    1054        <xsl:otherwise></xsl:otherwise> <!-- do nothing --> 
    1055     </xsl:choose> 
    1056   </xsl:template> 
    1057  
    1058   <!--==== YEAR VIEW ====--> 
    1059   <xsl:template name="yearView"> 
    1060     <table id="yearCalendarTable" border="0" cellpadding="0" cellspacing="0"> 
    1061       <tr> 
    1062         <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() &lt;= 3]"/> 
    1063       </tr> 
    1064       <tr> 
    1065         <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() &gt; 3) and (position() &lt;= 6)]"/> 
    1066       </tr> 
    1067       <tr> 
    1068         <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() &gt; 6) and (position() &lt;= 9)]"/> 
    1069       </tr> 
    1070       <tr> 
    1071         <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() &gt; 9]"/> 
    1072       </tr> 
    1073     </table> 
    1074   </xsl:template> 
    1075  
    1076   <!-- year view month tables --> 
    1077   <xsl:template match="month"> 
    1078     <td> 
    1079       <table class="yearViewMonthTable" border="0" cellpadding="0" cellspacing="0"> 
    1080         <tr> 
    1081           <td colspan="8" class="monthName"> 
    1082             <xsl:variable name="firstDayOfMonth" select="week/day/date"/> 
    1083             <a href="{$setViewPeriod}&amp;viewType=monthView&amp;date={$firstDayOfMonth}"> 
    1084               <xsl:value-of select="longname"/> 
    1085             </a> 
    1086           </td> 
    1087         </tr> 
    1088         <tr> 
    1089           <th>&#160;</th> 
    1090           <xsl:for-each select="/bedework/shortdaynames/val"> 
    1091             <th><xsl:value-of select="."/></th> 
    1092           </xsl:for-each> 
    1093         </tr> 
    1094         <xsl:for-each select="week"> 
    1095           <tr> 
    1096             <td class="weekCell"> 
    1097               <xsl:variable name="firstDayOfWeek" select="day/date"/> 
    1098               <a href="{$setViewPeriod}&amp;viewType=weekView&amp;date={$firstDayOfWeek}"> 
    1099                 <xsl:value-of select="value"/> 
    1100               </a> 
    1101             </td> 
    1102             <xsl:for-each select="day"> 
    1103               <xsl:choose> 
    1104                 <xsl:when test="filler='true'"> 
    1105                   <td class="filler">&#160;</td> 
    1106                 </xsl:when> 
    1107                 <xsl:otherwise> 
    1108                   <td> 
    1109                     <xsl:if test="/bedework/now/date = date"> 
    1110                       <xsl:attribute name="class">today</xsl:attribute> 
    1111                     </xsl:if> 
    1112                     <xsl:variable name="dayDate" select="date"/> 
    1113                     <a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$dayDate}"> 
    1114                       <xsl:attribute name="class">today</xsl:attribute> 
    1115                       <xsl:value-of select="value"/> 
    1116                     </a> 
    1117                   </td> 
    1118                 </xsl:otherwise> 
    1119               </xsl:choose> 
    1120             </xsl:for-each> 
    1121           </tr> 
    1122         </xsl:for-each> 
    1123       </table> 
    1124     </td> 
    1125   </xsl:template> 
    1126  
    1127   <!--==== CALENDARS ====--> 
    1128  
    1129   <!-- list of available calendars --> 
    1130   <xsl:template match="calendars"> 
    1131     <xsl:variable name="topLevelCalCount" select="count(calendar/calendar[calType != 5 and calType != 6 and name != 'calendar'])"/> 
    1132     <table id="calPageTable" border="0" cellpadding="0" cellspacing="0"> 
    1133       <tr> 
    1134         <th colspan="2"> 
    1135           <xsl:copy-of select="$bwStr-Cals-AllCalendars"/> 
    1136         </th> 
    1137       </tr> 
    1138       <tr> 
    1139         <td colspan="2" class="infoCell"> 
    1140           <p class="info"> 
    1141             <xsl:copy-of select="$bwStr-Cals-SelectCalendar"/> 
    1142           </p> 
    1143         </td> 
    1144       </tr> 
    1145       <tr> 
    1146         <td class="leftCell"> 
    1147           <!-- adjust the following calculations to get a balanced layout between the cells --> 
    1148           <ul class="calendarTree"> 
    1149             <xsl:apply-templates select="calendar/calendar[(calType != 5 and calType != 6 and name != 'calendar') and (position() &lt;= ceiling($topLevelCalCount div 2)+2)]" mode="calTree"/> 
    1150           </ul> 
    1151         </td> 
    1152         <td> 
    1153           <ul class="calendarTree"> 
    1154             <xsl:apply-templates select="calendar/calendar[(calType != 5 and calType != 6 and name != 'calendar') and (position() &gt; ceiling($topLevelCalCount div 2)+2)]" mode="calTree"/> 
    1155           </ul> 
    1156         </td> 
    1157       </tr> 
    1158     </table> 
    1159   </xsl:template> 
    1160  
    1161   <xsl:template match="calendar" mode="calTree"> 
    1162     <xsl:variable name="itemClass"> 
    1163       <xsl:choose> 
    1164         <xsl:when test="calType = '0'"><xsl:copy-of select="$bwStr-Calr-Folder"/></xsl:when> 
    1165         <xsl:otherwise><xsl:copy-of select="$bwStr-Calr-Calendar"/></xsl:otherwise> 
    1166       </xsl:choose> 
    1167     </xsl:variable> 
    1168     <xsl:variable name="virtualPath"><xsl:call-template name="url-encode"><xsl:with-param name="str">/user<xsl:for-each select="ancestor-or-self::calendar/name">/<xsl:value-of select="."/></xsl:for-each></xsl:with-param></xsl:call-template></xsl:variable> 
    1169     <li class="{$itemClass}"> 
    1170       <xsl:variable name="calPath" select="path"/> 
    1171       <a href="{$setSelection}&amp;virtualPath={$virtualPath}&amp;setappvar=curCollection({$calPath})" title="view calendar"><xsl:value-of select="name"/></a> 
    1172       <xsl:variable name="calPath" select="path"/> 
    1173       <span class="exportCalLink"> 
    1174         <a href="{$calendar-fetchForExport}&amp;calPath={$calPath}&amp;virtualPath={$virtualPath}" title="export calendar as iCal"> 
    1175           <img src="{$resourcesRoot}/images/calIconExport-sm.gif" width="13" height="13" alt="export calendar" border="0"/> 
    1176         </a> 
    1177       </span> 
    1178       <xsl:if test="calendar"> 
    1179         <ul> 
    1180           <xsl:apply-templates select="calendar" mode="calTree"/> 
    1181         </ul> 
    1182       </xsl:if> 
    1183     </li> 
    1184   </xsl:template> 
    1185  
    1186   <!-- calendar export page --> 
    1187   <xsl:template match="currentCalendar" mode="export"> 
    1188     <h2 class="bwStatusConfirmed"><xsl:copy-of select="$bwStr-Cals-ExportCals"/></h2> 
    1189     <div id="export"> 
    1190       <p> 
    1191         <strong><xsl:copy-of select="$bwStr-Cals-CalendarToExport"/></strong> 
    1192       </p> 
    1193       <div class="indent"> 
    1194         <xsl:copy-of select="$bwStr-Cals-Name"/><xsl:text> </xsl:text><strong><em><xsl:value-of select="name"/></em></strong><br/> 
    1195         <xsl:copy-of select="$bwStr-Cals-Path"/><xsl:text> </xsl:text><xsl:value-of select="path"/> 
    1196       </div> 
    1197       <p> 
    1198         <strong><xsl:copy-of select="$bwStr-Cals-EventDateLimits"/></strong> 
    1199       </p> 
    1200       <form name="exportCalendarForm" id="exportCalendarForm" action="{$export}" method="post"> 
    1201         <input type="hidden" name="calPath"> 
    1202           <xsl:attribute name="value"><xsl:value-of select="path"/></xsl:attribute> 
    1203         </input> 
    1204         <!-- fill these on submit --> 
    1205         <input type="hidden" name="eventStartDate.year" value=""/> 
    1206         <input type="hidden" name="eventStartDate.month" value=""/> 
    1207         <input type="hidden" name="eventStartDate.day" value=""/> 
    1208         <input type="hidden" name="eventEndDate.year" value=""/> 
    1209         <input type="hidden" name="eventEndDate.month" value=""/> 
    1210         <input type="hidden" name="eventEndDate.day" value=""/> 
    1211         <!-- static fields --> 
    1212         <input type="hidden" name="nocache" value="no"/> 
    1213         <input type="hidden" name="contentName"> 
    1214           <xsl:attribute name="value"><xsl:value-of select="name"/>.ics</xsl:attribute> 
    1215         </input> 
    1216         <!-- visible fields --> 
    1217         <input type="radio" name="dateLimits" value="active" checked="checked" onclick="changeClass('exportDateRange','invisible')"/><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-Cals-TodayForward"/> 
    1218         <input type="radio" name="dateLimits" value="none" onclick="changeClass('exportDateRange','invisible')"/><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-Cals-AllDates"/> 
    1219         <input type="radio" name="dateLimits" value="limited" onclick="changeClass('exportDateRange','visible')"/><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-Cals-DateRange"/> 
    1220         <div id="exportDateRange" class="invisible"> 
    1221           <xsl:copy-of select="$bwStr-Cals-Start"/><xsl:text> </xsl:text><input type="text" name="bwExportCalendarWidgetStartDate" id="bwExportCalendarWidgetStartDate" size="10"/> 
    1222           <span id="bwExportEndField"><xsl:copy-of select="$bwStr-Cals-End"/><xsl:text> </xsl:text><input type="text" name="bwExportCalendarWidgetEndDate" id="bwExportCalendarWidgetEndDate" size="10"/></span> 
    1223         </div> 
    1224         <p><input type="submit" value="{$bwStr-Cals-Export}" class="bwWidgetSubmit" onclick="fillExportFields(this.form)"/></p> 
    1225       </form> 
    1226     </div> 
    1227   </xsl:template> 
    1228  
    1229   <!--==== SEARCH RESULT ====--> 
    1230   <xsl:template name="searchResult"> 
    1231     <h2 class="bwStatusConfirmed"> 
    1232       <div id="searchFilter"> 
    1233         <form name="searchForm" method="post" action="{$search}"> 
    1234           <xsl:copy-of select="$bwStr-Srch-Search"/> 
    1235           <input type="text" name="query" size="15"> 
    1236             <xsl:attribute name="value"><xsl:value-of select="/bedework/searchResults/query"/></xsl:attribute> 
    1237           </input> 
    1238           <input type="submit" name="submit" value="{$bwStr-Srch-Go}"/> 
    1239           <xsl:copy-of select="$bwStr-Srch-Limit"/> 
    1240           <xsl:choose> 
    1241             <xsl:when test="/bedework/searchResults/searchLimits = 'beforeToday'"> 
    1242               <input type="radio" name="searchLimits" value="fromToday"/><xsl:copy-of select="$bwStr-Srch-TodayForward"/> 
    1243               <input type="radio" name="searchLimits" value="beforeToday" checked="checked"/><xsl:copy-of select="$bwStr-Srch-PastDates"/> 
    1244               <input type="radio" name="searchLimits" value="none"/><xsl:copy-of select="$bwStr-Srch-AllDates"/> 
    1245             </xsl:when> 
    1246             <xsl:when test="/bedework/searchResults/searchLimits = 'none'"> 
    1247               <input type="radio" name="searchLimits" value="fromToday"/><xsl:copy-of select="$bwStr-Srch-TodayForward"/> 
    1248               <input type="radio" name="searchLimits" value="beforeToday"/><xsl:copy-of select="$bwStr-Srch-PastDates"/> 
    1249               <input type="radio" name="searchLimits" value="none" checked="checked"/><xsl:copy-of select="$bwStr-Srch-AllDates"/> 
    1250             </xsl:when> 
    1251             <xsl:otherwise> 
    1252               <input type="radio" name="searchLimits" value="fromToday" checked="checked"/><xsl:copy-of select="$bwStr-Srch-TodayForward"/> 
    1253               <input type="radio" name="searchLimits" value="beforeToday"/><xsl:copy-of select="$bwStr-Srch-PastDates"/> 
    1254               <input type="radio" name="searchLimits" value="none"/><xsl:copy-of select="$bwStr-Srch-AllDates"/> 
    1255             </xsl:otherwise> 
    1256           </xsl:choose> 
    1257         </form> 
    1258       </div> 
    1259       <xsl:copy-of select="$bwStr-Srch-SearchResult"/> 
    1260     </h2> 
    1261     <table id="searchTable" cellpadding="0" cellspacing="0"> 
    1262       <tr> 
    1263         <th colspan="5"> 
    1264           <xsl:if test="/bedework/searchResults/numPages &gt; 1"> 
    1265             <xsl:variable name="curPage" select="/bedework/searchResults/curPage"/> 
    1266             <div id="searchPageForm"> 
    1267               <xsl:copy-of select="$bwStr-Srch-Page"/> 
    1268               <xsl:if test="/bedework/searchResults/curPage != 1"> 
    1269                 <xsl:variable name="prevPage" select="number($curPage) - 1"/> 
    1270                 &lt;<a href="{$search-next}&amp;pageNum={$prevPage}"><xsl:copy-of select="$bwStr-Srch-Prev"/></a> 
    1271               </xsl:if> 
    1272               <xsl:text> </xsl:text> 
    1273  
    1274               <xsl:call-template name="searchResultPageNav"> 
    1275                 <xsl:with-param name="page"> 
    1276                   <xsl:choose> 
    1277                     <xsl:when test="number($curPage) - 10 &lt; 1">1</xsl:when> 
    1278                     <xsl:otherwise><xsl:value-of select="number($curPage) - 6"/></xsl:otherwise> 
    1279                   </xsl:choose> 
    1280                 </xsl:with-param> 
    1281               </xsl:call-template> 
    1282  
    1283               <xsl:text> </xsl:text> 
    1284               <xsl:choose> 
    1285                 <xsl:when test="$curPage != /bedework/searchResults/numPages"> 
    1286                   <xsl:variable name="nextPage" select="number($curPage) + 1"/> 
    1287                   <a href="{$search-next}&amp;pageNum={$nextPage}"><xsl:copy-of select="$bwStr-Srch-Next"/></a>&gt; 
    1288                 </xsl:when> 
    1289                 <xsl:otherwise> 
    1290                   <span class="hidden"><xsl:copy-of select="$bwStr-Srch-Next"/>&gt;</span><!-- occupy the space to keep the navigation from moving around --> 
    1291                 </xsl:otherwise> 
    1292               </xsl:choose> 
    1293             </div> 
    1294           </xsl:if> 
    1295           <xsl:value-of select="/bedework/searchResults/resultSize"/> 
    1296           <xsl:text> </xsl:text><xsl:copy-of select="$bwStr-Srch-ResultReturnedFor"/><xsl:text> </xsl:text><em><xsl:value-of select="/bedework/searchResults/query"/></em> 
    1297         </th> 
    1298       </tr> 
    1299       <xsl:if test="/bedework/searchResults/searchResult"> 
    1300         <tr class="fieldNames"> 
    1301           <td> 
    1302             <xsl:copy-of select="$bwStr-Srch-Relevance"/> 
    1303           </td> 
    1304           <td> 
    1305             <xsl:copy-of select="$bwStr-Srch-Summary"/> 
    1306           </td> 
    1307           <td> 
    1308             <xsl:copy-of select="$bwStr-Srch-DateAndTime"/> 
    1309           </td> 
    1310           <td> 
    1311             <xsl:copy-of select="$bwStr-Srch-Calendar"/> 
    1312           </td> 
    1313           <td> 
    1314             <xsl:copy-of select="$bwStr-Srch-Location"/> 
    1315           </td> 
    1316         </tr> 
    1317       </xsl:if> 
    1318       <xsl:for-each select="/bedework/searchResults/searchResult"> 
    1319         <xsl:variable name="calPath" select="event/calendar/encodedPath"/> 
    1320         <xsl:variable name="guid" select="event/guid"/> 
    1321         <xsl:variable name="recurrenceId" select="event/recurrenceId"/> 
    1322         <tr> 
    1323           <td class="relevance"> 
    1324             <xsl:value-of select="ceiling(number(score)*100)"/>% 
    1325             <img src="{$resourcesRoot}/images/spacer.gif" height="4" class="searchRelevance"> 
    1326               <xsl:attribute name="width"><xsl:value-of select="ceiling((number(score)*100) div 1.5)"/></xsl:attribute> 
    1327             </img> 
    1328           </td> 
    1329           <td> 
    1330             <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    1331               <xsl:value-of select="event/summary"/> 
    1332             </a> 
    1333           </td> 
    1334           <td> 
    1335             <xsl:value-of select="event/start/longdate"/> 
    1336             <xsl:text> </xsl:text> 
    1337             <xsl:value-of select="event/start/time"/> 
    1338             <xsl:choose> 
    1339               <xsl:when test="event/start/longdate != event/end/longdate"> 
    1340                 - <xsl:value-of select="event/end/longdate"/> 
    1341                 <xsl:text> </xsl:text> 
    1342                 <xsl:value-of select="event/end/time"/> 
    1343               </xsl:when> 
    1344               <xsl:when test="event/start/time != event/end/time"> 
    1345                 - <xsl:value-of select="event/end/time"/> 
    1346               </xsl:when> 
    1347             </xsl:choose> 
    1348           </td> 
    1349           <td> 
    1350             <xsl:variable name="calUrl" select="event/calendar/encodedPath"/> 
    1351             <a href="{$setSelection}&amp;calUrl={$calUrl}"> 
    1352               <xsl:value-of select="event/calendar/name"/> 
    1353             </a> 
    1354           </td> 
    1355           <td> 
    1356             <xsl:value-of select="event/location/address"/> 
    1357           </td> 
    1358         </tr> 
    1359       </xsl:for-each> 
    1360     </table> 
    1361   </xsl:template> 
    1362  
    1363   <xsl:template name="searchResultPageNav"> 
    1364     <xsl:param name="page">1</xsl:param> 
    1365     <xsl:variable name="curPage" select="/bedework/searchResults/curPage"/> 
    1366     <xsl:variable name="numPages" select="/bedework/searchResults/numPages"/> 
    1367     <xsl:variable name="endPage"> 
    1368       <xsl:choose> 
    1369         <xsl:when test="number($curPage) + 6 &gt; number($numPages)"><xsl:value-of select="$numPages"/></xsl:when> 
    1370         <xsl:otherwise><xsl:value-of select="number($curPage) + 6"/></xsl:otherwise> 
    1371       </xsl:choose> 
    1372     </xsl:variable> 
    1373     <xsl:choose> 
    1374       <xsl:when test="$page = $curPage"> 
    1375         <xsl:value-of select="$page"/> 
    1376       </xsl:when> 
    1377       <xsl:otherwise> 
    1378         <a href="{$search-next}&amp;pageNum={$page}"> 
    1379           <xsl:value-of select="$page"/> 
    1380         </a> 
    1381       </xsl:otherwise> 
    1382     </xsl:choose> 
    1383     <xsl:text> </xsl:text> 
    1384     <xsl:if test="$page &lt; $endPage"> 
    1385        <xsl:call-template name="searchResultPageNav"> 
    1386          <xsl:with-param name="page" select="number($page)+1"/> 
    1387       </xsl:call-template> 
    1388     </xsl:if> 
    1389   </xsl:template> 
    1390  
    1391   <!--+++++++++++++++ System Stats ++++++++++++++++++++--> 
    1392   <xsl:template name="stats"> 
    1393     <div id="stats"> 
    1394       <h2><xsl:copy-of select="$bwStr-Stat-SysStats"/></h2> 
    1395  
    1396       <p> 
    1397         <xsl:copy-of select="$bwStr-Stat-StatsCollection"/> 
    1398       </p> 
    1399       <ul> 
    1400         <li> 
    1401           <a href="{$stats}&amp;enable=yes"><xsl:copy-of select="$bwStr-Stat-Enable"/></a> | 
    1402           <a href="{$stats}&amp;disable=yes"><xsl:copy-of select="$bwStr-Stat-Disable"/></a> 
    1403         </li> 
    1404         <li><a href="{$stats}&amp;fetch=yes"><xsl:copy-of select="$bwStr-Stat-FetchStats"/></a></li> 
    1405         <li><a href="{$stats}&amp;dump=yes"><xsl:copy-of select="$bwStr-Stat-DumpStats"/></a></li> 
    1406       </ul> 
    1407       <table id="statsTable" cellpadding="0"> 
    1408         <xsl:for-each select="/bedework/sysStats/*"> 
    1409           <xsl:choose> 
    1410             <xsl:when test="name(.) = 'header'"> 
    1411               <tr> 
    1412                 <th colspan="2"> 
    1413                   <xsl:value-of select="."/> 
    1414                 </th> 
    1415               </tr> 
    1416             </xsl:when> 
    1417             <xsl:otherwise> 
    1418               <tr> 
    1419                 <td class="label"> 
    1420                   <xsl:value-of select="label"/> 
    1421                 </td> 
    1422                 <td class="value"> 
    1423                   <xsl:value-of select="value"/> 
    1424                 </td> 
    1425               </tr> 
    1426             </xsl:otherwise> 
    1427           </xsl:choose> 
    1428         </xsl:for-each> 
    1429       </table> 
    1430     </div> 
    1431   </xsl:template> 
    1432  
    1433   <!--==== FOOTER ====--> 
    1434  
    1435   <xsl:template name="footer"> 
    1436     <div id="footer"> 
    1437       <xsl:copy-of select="$bwStr-Foot-BasedOnThe"/><xsl:text> </xsl:text><a href="http://www.bedework.org/"><xsl:copy-of select="$bwStr-Foot-BedeworkCalendarSystem"/></a> 
    1438     </div> 
    1439     <table id="skinSelectorTable" border="0" cellpadding="0" cellspacing="0"> 
    1440       <tr> 
    1441         <td class="leftCell"> 
    1442           <a href="http://www.bedework.org/"><xsl:copy-of select="$bwStr-Foot-BedeworkWebsite"/></a> | 
    1443           <a href="http://www.bedework.org/bedework/update.do?artcenterkey=35"><xsl:copy-of select="$bwStr-Foot-ProductionExamples"/></a> | 
    1444           <a href="?noxslt=yes"><xsl:copy-of select="$bwStr-Foot-ShowXML"/></a> | 
    1445           <a href="?refreshXslt=yes"><xsl:copy-of select="$bwStr-Foot-RefreshXSLT"/></a> 
    1446         </td> 
    1447         <td class="rightCell"> 
    1448           <form name="styleSelectForm" method="get" action="{$setup}"> 
    1449             <select name="setappvar" onchange="submit()"> 
    1450               <option value=""><xsl:copy-of select="$bwStr-Foot-ExampleStyles"/>:</option> 
    1451               <option value="style(green)"><xsl:copy-of select="$bwStr-Foot-Green"/></option> 
    1452               <option value="style(red)"><xsl:copy-of select="$bwStr-Foot-Red"/></option> 
    1453               <option value="style(blue)"><xsl:copy-of select="$bwStr-Foot-Blue"/></option> 
    1454             </select> 
    1455           </form> 
    1456           <form name="skinSelectForm" method="post" action="{$setup}"> 
    1457             <input type="hidden" name="setappvar" value="summaryMode(details)"/> 
    1458             <select name="skinPicker" onchange="window.location = this.value"> 
    1459               <option value="{$setup}&amp;skinNameSticky=default"> 
    1460                 <xsl:copy-of select="$bwStr-Foot-ExampleSkins" /> 
    1461               </option> 
    1462               <option value="{$setup}&amp;skinNameSticky=bwclassic"> 
    1463                 <xsl:copy-of select="$bwStr-Foot-BwClassic" /> 
    1464               </option> 
    1465               <option value="{$setup}&amp;skinNameSticky=default"> 
    1466                 <xsl:copy-of select="$bwStr-Foot-ResetToCalendarDefault" /> 
    1467               </option> 
    1468               <option value="{$setup}&amp;browserTypeSticky=PDA"> 
    1469                 <xsl:copy-of select="$bwStr-Foot-ForMobileBrowsers" /> 
    1470               </option> 
    1471               <option value="{$feeder}/main/listEvents.do?skinName=list-rss&amp;days=3"> 
    1472                 <xsl:copy-of select="$bwStr-Foot-RSSNext3Days" /> 
    1473               </option> 
    1474               <option value="{$feeder}/main/listEvents.do?skinName=list-json&amp;days=3&amp;contentType=text/javascript&amp;contentName=bedework.js"> 
    1475                 <xsl:copy-of select="$bwStr-Foot-JavascriptNext3Days" /> 
    1476               </option> 
    1477               <option value="{$setViewPeriod}&amp;viewType=todayView&amp;skinNameSticky=videocal"> 
    1478                 <xsl:copy-of select="$bwStr-Foot-VideoFeed" /> 
    1479               </option> 
    1480             </select> 
    1481           </form> 
    1482         </td> 
    1483       </tr> 
    1484     </table> 
    1485   </xsl:template> 
    1486155</xsl:stylesheet>