Changeset 572
- Timestamp:
- 06/12/06 15:45:21
- Files:
-
- trunk/calendar3/deployment/webadmin/webapp/resources/default/default/default.xsl (modified) (1 diff)
- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/default.xsl (modified) (1 diff)
- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/jsToday.xsl (modified) (2 diffs)
- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/soe.xsl (modified) (1 diff)
- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/videocal.xsl (modified) (10 diffs)
- trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/calendar3/deployment/webadmin/webapp/resources/default/default/default.xsl
r533 r572 9 9 standalone="yes" 10 10 omit-xml-declaration="yes"/> 11 <!-- ======================================== --> 11 12 <!-- ======================================== --> 12 13 <!-- BEDEWORK ADMIN CLIENT STYLESHEET --> 13 14 <!-- ========================================= --> 15 16 <!-- ********************************************************************** 17 Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved. 18 19 Redistribution and use of this distribution in source and binary forms, 20 with or without modification, are permitted provided that: 21 The above copyright notice and this permission notice appear in all 22 copies and supporting documentation; 23 24 The name, identifiers, and trademarks of Rensselaer Polytechnic 25 Institute are not used in advertising or publicity without the 26 express prior written permission of Rensselaer Polytechnic Institute; 27 28 DISCLAIMER: The software is distributed" AS IS" without any express or 29 implied warranty, including but not limited to, any implied warranties 30 of merchantability or fitness for a particular purpose or any warrant)' 31 of non-infringement of any current or pending patent rights. The authors 32 of the software make no representations about the suitability of this 33 software for any particular purpose. The entire risk as to the quality 34 and performance of the software is with the user. Should the software 35 prove defective, the user assumes the cost of all necessary servicing, 36 repair or correction. In particular, neither Rensselaer Polytechnic 37 Institute, nor the authors of the software are liable for any indirect, 38 special, consequential, or incidental damages related to the software, 39 to the maximum extent the law permits. --> 14 40 15 41 <!-- DEFINE INCLUDES --> trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/default.xsl
r548 r572 23 23 24 24 =============================================================== --> 25 <!-- ********************************************************************** 26 Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved. 27 28 Redistribution and use of this distribution in source and binary forms, 29 with or without modification, are permitted provided that: 30 The above copyright notice and this permission notice appear in all 31 copies and supporting documentation; 32 33 The name, identifiers, and trademarks of Rensselaer Polytechnic 34 Institute are not used in advertising or publicity without the 35 express prior written permission of Rensselaer Polytechnic Institute; 36 37 DISCLAIMER: The software is distributed" AS IS" without any express or 38 implied warranty, including but not limited to, any implied warranties 39 of merchantability or fitness for a particular purpose or any warrant)' 40 of non-infringement of any current or pending patent rights. The authors 41 of the software make no representations about the suitability of this 42 software for any particular purpose. The entire risk as to the quality 43 and performance of the software is with the user. Should the software 44 prove defective, the user assumes the cost of all necessary servicing, 45 repair or correction. In particular, neither Rensselaer Polytechnic 46 Institute, nor the authors of the software are liable for any indirect, 47 special, consequential, or incidental damages related to the software, 48 to the maximum extent the law permits. --> 25 49 26 50 <!-- ================================= --> trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/jsToday.xsl
r434 r572 2 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 3 <xsl:output method="html" omit-xml-declaration="yes" indent="no" media-type="text/javascript" standalone="yes"/> 4 4 5 <!-- usage: call the javascript feed from an html file by embedding the 5 6 following script tag: … … 13 14 to display more than a single day's events. 14 15 --> 16 17 <!-- ********************************************************************** 18 Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved. 19 20 Redistribution and use of this distribution in source and binary forms, 21 with or without modification, are permitted provided that: 22 The above copyright notice and this permission notice appear in all 23 copies and supporting documentation; 24 25 The name, identifiers, and trademarks of Rensselaer Polytechnic 26 Institute are not used in advertising or publicity without the 27 express prior written permission of Rensselaer Polytechnic Institute; 28 29 DISCLAIMER: The software is distributed" AS IS" without any express or 30 implied warranty, including but not limited to, any implied warranties 31 of merchantability or fitness for a particular purpose or any warrant)' 32 of non-infringement of any current or pending patent rights. The authors 33 of the software make no representations about the suitability of this 34 software for any particular purpose. The entire risk as to the quality 35 and performance of the software is with the user. Should the software 36 prove defective, the user assumes the cost of all necessary servicing, 37 repair or correction. In particular, neither Rensselaer Polytechnic 38 Institute, nor the authors of the software are liable for any indirect, 39 special, consequential, or incidental damages related to the software, 40 to the maximum extent the law permits. --> 41 15 42 <xsl:variable name="urlprefix" select="/bedework/urlprefix"/> 16 43 <xsl:template match="/"> trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/soe.xsl
r548 r572 34 34 35 35 =============================================================== --> 36 37 <!-- ********************************************************************** 38 Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved. 39 40 Redistribution and use of this distribution in source and binary forms, 41 with or without modification, are permitted provided that: 42 The above copyright notice and this permission notice appear in all 43 copies and supporting documentation; 44 45 The name, identifiers, and trademarks of Rensselaer Polytechnic 46 Institute are not used in advertising or publicity without the 47 express prior written permission of Rensselaer Polytechnic Institute; 48 49 DISCLAIMER: The software is distributed" AS IS" without any express or 50 implied warranty, including but not limited to, any implied warranties 51 of merchantability or fitness for a particular purpose or any warrant)' 52 of non-infringement of any current or pending patent rights. The authors 53 of the software make no representations about the suitability of this 54 software for any particular purpose. The entire risk as to the quality 55 and performance of the software is with the user. Should the software 56 prove defective, the user assumes the cost of all necessary servicing, 57 repair or correction. In particular, neither Rensselaer Polytechnic 58 Institute, nor the authors of the software are liable for any indirect, 59 special, consequential, or incidental damages related to the software, 60 to the maximum extent the law permits. --> 36 61 37 62 <!-- ================================= --> trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/videocal.xsl
r143 r572 5 5 <!-- VIDEO FEED STYLESHEET --> 6 6 <!-- ======================= --> 7 7 8 8 <!-- Run your browser full screen at 800 x 600 and feed this to video. 9 9 There are better approaches to this, but it's an interesting example. --> 10 10 11 12 <!-- ********************************************************************** 13 Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved. 14 15 Redistribution and use of this distribution in source and binary forms, 16 with or without modification, are permitted provided that: 17 The above copyright notice and this permission notice appear in all 18 copies and supporting documentation; 19 20 The name, identifiers, and trademarks of Rensselaer Polytechnic 21 Institute are not used in advertising or publicity without the 22 express prior written permission of Rensselaer Polytechnic Institute; 23 24 DISCLAIMER: The software is distributed" AS IS" without any express or 25 implied warranty, including but not limited to, any implied warranties 26 of merchantability or fitness for a particular purpose or any warrant)' 27 of non-infringement of any current or pending patent rights. The authors 28 of the software make no representations about the suitability of this 29 software for any particular purpose. The entire risk as to the quality 30 and performance of the software is with the user. Should the software 31 prove defective, the user assumes the cost of all necessary servicing, 32 repair or correction. In particular, neither Rensselaer Polytechnic 33 Institute, nor the authors of the software are liable for any indirect, 34 special, consequential, or incidental damages related to the software, 35 to the maximum extent the law permits. --> 36 11 37 <!-- DEFINE GLOBAL CONSTANTS --> 12 38 <xsl:variable name="appRoot" select="/bedework/approot"/> … … 15 41 <xsl:variable name="nextDate" select="/bedework/nextdate"/> 16 42 <xsl:variable name="curDate" select="/bedework/currentdate/date"/> 17 43 18 44 <!-- Duration of each slide in seconds; set this to your preference --> 19 45 <xsl:variable name="slideDuration">10</xsl:variable> 20 21 <!-- Number of consecutive days to iterate over; set this to your preference --> 46 47 <!-- Number of consecutive days to iterate over; set this to your preference --> 22 48 <xsl:variable name="dayCount">5</xsl:variable> 23 24 <!-- Skin name --> 49 50 <!-- Skin name --> 25 51 <xsl:variable name="skinName">videocal</xsl:variable> 26 52 27 53 <!-- Position of the current day to be displayed --> 28 54 <xsl:variable name="day"> 29 55 <xsl:choose> 30 <xsl:when test="/bedework/appvar[key='day']"> 56 <xsl:when test="/bedework/appvar[key='day']"> 31 57 <xsl:choose> 32 58 <xsl:when test="/bedework/appvar[key='day']/value > $dayCount">1</xsl:when> … … 39 65 </xsl:choose> 40 66 </xsl:variable> 41 67 42 68 <!-- Position of the next day (add 1)--> 43 69 <xsl:variable name="nextDay" select="number($day)+1"/> 44 70 45 71 <!-- Event count for the current day --> 46 72 <xsl:variable name="eventCount" select="count(/bedework/eventscalendar/year/month/week/day[date=$curDate]/event)"/> 47 73 48 74 <!-- Position of the current event being displayed --> 49 75 <xsl:variable name="event"> 50 76 <xsl:choose> 51 <xsl:when test="/bedework/appvar[key='event']"> 77 <xsl:when test="/bedework/appvar[key='event']"> 52 78 <xsl:choose> 53 79 <xsl:when test="/bedework/appvar[key='event']/value > $eventCount">1</xsl:when> … … 60 86 </xsl:choose> 61 87 </xsl:variable> 62 88 63 89 <!-- Position of the next event (add 1)--> 64 90 <xsl:variable name="nextEvent" select="number($event)+1"/> 65 91 66 92 <!-- MAIN TEMPLATE --> 67 93 <xsl:template match="/"> … … 78 104 if (now.getMonth() < 9) { 79 105 today += "0"; 80 } 106 } 81 107 today += (now.getMonth() + 1).toString(); 82 108 today += now.getDate().toString(); … … 92 118 <xsl:when test="($nextDay > $dayCount) and ($nextEvent > $eventCount)"> 93 119 <!-- passed the last day, and all events have been displayed, 94 so start over: go to today, set day=1 and *event=0* to allow 120 so start over: go to today, set day=1 and *event=0* to allow 95 121 for the title slide "calPlug" --> 96 <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setViewPeriod.do?viewType=todayView&setappvar=event(0)&setappvar=day(1)&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/> 122 <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setViewPeriod.do?viewType=todayView&setappvar=event(0)&setappvar=day(1)&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/> 97 123 </xsl:when> 98 124 <xsl:when test="$nextEvent > $eventCount"> … … 102 128 <xsl:otherwise> 103 129 <!-- otherwise, go to the next event on the same day --> 104 <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setup.do?viewType=dayView&setappvar=event({$nextEvent})&setappvar=day({$day})&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/> 130 <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setup.do?viewType=dayView&setappvar=event({$nextEvent})&setappvar=day({$day})&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/> 105 131 </xsl:otherwise> 106 132 </xsl:choose> … … 122 148 </h2> 123 149 <h2 id="dayTitle"> 124 <xsl:value-of select="/bedework/firstday/longdate"/><!-- 150 <xsl:value-of select="/bedework/firstday/longdate"/><!-- 125 151 <br/>Events: <xsl:value-of select="$event"/> of <xsl:value-of select="$eventCount"/> 126 152 <br/>Days: <xsl:value-of select="$day"/> of <xsl:value-of select="$dayCount"/> --> 127 </h2> 153 </h2> 128 154 <xsl:apply-templates select="/bedework/eventscalendar/year/month/week/day[date=$curDate]/event[position()=$event]"/> 129 155 </xsl:otherwise> 130 </xsl:choose> 156 </xsl:choose> 131 157 <!-- remove the following two divs if used for video --> 132 158 <div id="getBack"> … … 134 160 </div> 135 161 <div id="info"> 136 This stylesheet will rotate through five days of events at ten 162 This stylesheet will rotate through five days of events at ten 137 163 second intervals. It is intended as a video feed running full screen 138 at 800x600px. It's settings 164 at 800x600px. It's settings 139 165 can be set from the top of 140 166 the videocal.xsl stylesheet. … … 164 190 </xsl:otherwise> 165 191 </xsl:choose> 166 - 192 - 167 193 <xsl:if test="end/longdate != start/longdate"> 168 194 <xsl:value-of select="end/shortdate"/> 169 <xsl:text> </xsl:text> 195 <xsl:text> </xsl:text> 170 196 </xsl:if> 171 197 <xsl:value-of select="end/time"/> trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r570 r572 334 334 <xsl:template name="sideBar"> 335 335 <h3> 336 <img alt="manage views" src="{$resourcesRoot}/resources/glassFill-icon-menuButton.gif" width="12" height="11" border="0"/> views 336 <!--<img alt="manage views" src="{$resourcesRoot}/resources/glassFill-icon-menuButton.gif" width="12" height="11" border="0"/>--> 337 views 337 338 </h3> 338 339 <ul id="myViews"> … … 3316 3317 <xsl:variable name="itemClass"> 3317 3318 <xsl:choose> 3318 <xsl:when test="/bedework/selectionState/selectionType = ' calendar'3319 and calendars/calendar/path = /bedework/selectionState/subscriptions/subscription/calendar/path">selected</xsl:when>3319 <xsl:when test="/bedework/selectionState/selectionType = 'subscription' 3320 and /bedework/selectionState/subscriptions/subscription/name = name">selected</xsl:when> 3320 3321 <xsl:otherwise>calendar</xsl:otherwise> 3321 3322 </xsl:choose> 3322 3323 </xsl:variable> 3323 3324 <li class="{$itemClass}"> 3324 <xsl:variable name="sub Uri" select="uri"/>3325 <xsl:variable name="subName" select="name"/> 3325 3326 <xsl:if test="style != '' and style != 'default'"> 3326 3327 <!-- the spacer gif approach allows us to avoid some IE misbehavior --> … … 3328 3329 <img src="{$resourcesRoot}/resources/spacer.gif" width="6" height="6" alt="subscription style" class="subStyle {$subStyle}"/> 3329 3330 </xsl:if> 3330 <a href="{$setSelection}? calUrl={$subUri}">3331 <a href="{$setSelection}?subname={$subName}"> 3331 3332 <xsl:value-of select="name"/> 3332 3333 </a>
