[Bedework-commit] r641 - in branches/REL-3.1rc4: .
calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default
calendar3/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default
calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default
calendar3/deployment/webuser/uportal2/resources/demoskins/default/default
calendar3/deployment/webuser/webapp/resources/demoskins/default/default
calendar3/docs calendar3/webclient/war/docs
svnadmin at bedework.org
svnadmin at bedework.org
Thu Jun 22 17:17:09 EDT 2006
Author: johnsa
Date: 2006-06-22 17:17:07 -0400 (Thu, 22 Jun 2006)
New Revision: 641
Added:
branches/REL-3.1rc4/calendar3/
branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/default.xsl
branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl
branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl
branches/REL-3.1rc4/calendar3/deployment/webuser/uportal2/resources/demoskins/default/default/default.xsl
branches/REL-3.1rc4/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
branches/REL-3.1rc4/calendar3/docs/BedeworkDeploymentManual.odt
branches/REL-3.1rc4/calendar3/docs/BedeworkDesignGuide.odt
branches/REL-3.1rc4/calendar3/webclient/war/docs/header.jsp
Removed:
branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/blue.css
branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/cleanXml.xsl
branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/common.css
branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/default.xsl
branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/green.css
branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/jsToday.xsl
branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/print.css
branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/red.css
branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/soe.xsl
branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/videocal.css
branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/videocal.xsl
branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl
branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/soe.css
branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/soe.xsl
branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/blue.css
branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/cleanXml.xsl
branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/common.css
branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl
branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/green.css
branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/jsToday.xsl
branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/print.css
branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/red.css
branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/soe.xsl
branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/videocal.css
branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/videocal.xsl
branches/REL-3.1rc4/calendar3/deployment/webuser/uportal2/resources/demoskins/default/default/default.xsl
branches/REL-3.1rc4/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
branches/REL-3.1rc4/calendar3/docs/BedeworkDeploymentManual.odt
branches/REL-3.1rc4/calendar3/docs/BedeworkDesignGuide.odt
branches/REL-3.1rc4/calendar3/webclient/war/docs/header.jsp
Log:
adding updated rc4 branch with final modifications prior to release
Copied: branches/REL-3.1rc4/calendar3 (from rev 628, trunk/calendar3)
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/blue.css
===================================================================
--- trunk/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/blue.css 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/blue.css 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,845 +0,0 @@
-body {
- font-family : Arial, Helvetica, sans-serif;
- font-size: 100%; /* needed for IE */
- background-color : white;
- color : black;
- padding: 0.75em 1em 0em 1em;
- min-width: 700px;
-}
-#logoTable {
- padding: 0em;
- margin: 0em;
-}
-#logoTable img {
- display: inline;
- padding: 0 0 1px 5px;
-}
-#logoTable #logoCell {
- white-space: nowrap;
- font-weight: bold;
- font-size: 2em;
-}
-#logoTable #schoolLinksCell {
- vertical-align: bottom;
- text-align: right;
- font-size: 0.8em;
- white-space : nowrap;
- padding: 0 2px 2px 0;
-}
-#logoTable #schoolLinksCell h2 {
- margin: 0 0 2px 0;
- padding: 0;
- font-size: 2em;
- color: #444;
- background-color: transparent;
- border: none;
-}
-#logoTable #schoolLinksCell a:link,
-#logoTable #schoolLinksCell a:visited,
-#logoTable #schoolLinksCell a:active {
- background-color: transparent;
- color: #999;
- text-decoration: none;
-}
-#logoTable #schoolLinksCell a:hover {
- background-color: #eee;
- color: #333;
- text-decoration: none;
-}
-#curDateRangeTable {
- width: 100%;
- height: 26px;
- background: #2c5f89 url(../../images/curDateRangeBlue.gif) repeat-x bottom;
- color : #eee;
- margin: 0em;
- font-weight : bold;
- text-align : center;
- vertical-align: middle;
- white-space: nowrap;
-}
-#curDateRangeTable td {
- padding-top: 5px;
- padding-bottom: 1px;
- padding-left: 0.5em;
- padding-right: 0.5em;
-}
-#curDateRangeTable td.sideBarOpenCloseIcon {
- background: url(../../images/curDateRangeBlue-left.gif) no-repeat top left;
- color: inherit;
- width: 200px;
-}
-#curDateRangeTable td.date {
- font-weight : bold;
- text-align : center;
- white-space: nowrap;
-}
-#curDateRangeTable td.rssPrint {
- background: url(../../images/curDateRangeBlue-right.gif) no-repeat top right;
- color: inherit;
- width: 200px;
- font-weight : bold;
- text-align : right;
- white-space: nowrap;
-}
-#curDateRangeTable td.rssPrint img {
- position: relative;
- top: 3px;
-}
-#curDateRangeTable td.rssPrint a:link,
-#curDateRangeTable td.rssPrint a:active,
-#curDateRangeTable td.rssPrint a:visited {
- font-size: 10px;
- color: #eee;
- background-color: transparent;
- font-family: Arial, Helvetica, sans-serif;
- padding: 0;
- text-decoration: none;
- margin-right: 0.5em;
- position: relative;
- top: -3px;
-}
-#curDateRangeTable td.rssPrint a:hover {
- color: #663;
- background-color: #fff;
-}
-#curDateRangeTable td.rssPrint a.rss:link,
-#curDateRangeTable td.rssPrint a.rss:active,
-#curDateRangeTable td.rssPrint a.rss:visited {
- font-size: 10px;
- font-weight: bold;
- color: #444;
- background-color: #ddd;
- font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
- padding: 0px 1px 0px 1px;
- text-decoration: none;
- margin-right: 0.5em;
- margin-left: 2px;
- position: relative;
- top: -3px;
- border: solid 1px #666;
-}
-#curDateRangeTable td.rssPrint a.rss:hover {
- color: #900;
- background-color: #fff;
-}
-#searchBarTable {
- margin: 0px;
- padding: 0em;
- background-color : #eee;
- color: black;
- font-size: 0.9em;
-}
-#searchBarTable .leftCell {
- margin: 0px;
- padding: 0em;
- border-left: 3px solid #aaa;
- padding: 0.1em 0 0 0.5em;
- white-space: nowrap;
-}
-#searchBarTable .leftCell .link {
- font-size: 0.8em;
- padding-left: 1em;
- color: #999;
- background-color: transparent;
-}
-#searchBarTable .leftCell a {
- color: #888;
- background-color: transparent;
-}
-#searchBarTable .leftCell a:hover {
- color: #b00;
- background-color: transparent;
-}
-#searchBarTable .rightCell {
- margin: 0px;
- padding: 0em;
- text-align: right;
- border-right: 3px solid #aaa;
- padding: 0.1em 0.1em 0em 0em;
- white-space: nowrap;
-}
-#searchBarTable form {
- display: inline;
- margin: 0px 0px 1px 0px;
- padding: 0em;
-}
-#tabsTable {
- margin: 0em;
- padding: 4px 0px 0px 0px;
- text-align: center;
- background-color: #333;
- color: #eee;
-}
-#tabsTable .centerCell a {
- text-decoration: none;
- color: #eee;
-}
-#tabsTable .centerCell img {
- margin-right: 1px;
-}
-#tabsTable .rightCell {
- background : url(../../images/demo/std-tab-space.gif);
- padding-right: 0.5em;
-}
-#navigationBarTable {
- font-size: 0.8em;
- margin: 0em;
- padding: 0em;
- vertical-align: top;
- border-left : 2px solid #aaa;
- border-right : 2px solid #aaa;
- border-bottom: 1px solid Gray;
-}
-#navigationBarTable a {
- text-decoration: none;
- white-space: nowrap;
-}
-#navigationBarTable td {
- vertical-align: top;
-}
-#navigationBarTable form {
- display: inline;
- margin-bottom: 0em;
-}
-#navigationBarTable table {
- display: inline;
- margin-bottom: 0em;
-}
-#navigationBarTable td.todayButton {
- padding: 1em 1em 0 1em;
-}
-#navigationBarTable td.gotoForm {
- padding: 1em 0.5em 0 0;
-}
-#navigationBarTable td.leftCell {
- text-align: left;
- white-space: nowrap;
- padding-left: 0.5em;
- font-size: 1.3em;
- font-weight: bold;
- padding: 0.75em 0em 0.75em 1em;
- width: 100%;
- vertical-align: middle;
-}
-#navigationBarTable td.leftCell .prevImg {
- margin: 0 0.2em 0 0;
- vertical-align: top;
-}
-#navigationBarTable td.leftCell .nextImg {
- margin: 0 0.75em 0 0;
- vertical-align: top;
-}
-#navigationBarTable td.rightCell {
- text-align: right;
- padding: 1em 0.5em 0em 0em;
-}
-#navigationBarTable td.rightCell select {
- padding-right: 0em;
- margin: 0em;
- width: 10em;
-}
-#searchBarTable .calLinks {
- white-space: nowrap;
-}
-#eventTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-#eventTable td.fieldname {
- margin: 0em;
- vertical-align: top;
- padding: 0.5em 0.5em 0.2em 0.5em;
- background-color: #eee;
- /*background-color: #EDF5F9;*/
- color: black;
-}
-#eventTable td.fieldval {
- margin: 0em;
- vertical-align: top;
- padding: 0.5em 0.5em 0.2em 1em;
-}
-#eventTable th.icalIcon {
- margin: 0em;
- vertical-align: middle;
- text-align: right;
- padding: 0.5em 1em 0.2em 0.5em;
- white-space: nowrap;
- font-size: 0.9em;
- font-weight: normal;
-}
-#eventTable th.icalIcon a {
- text-decoration: none;
-}
-#eventTable th.icalIcon img {
- vertical-align: middle;
- padding-left: 1em;
-}
-#eventTable th.fieldname {
- text-align: left;
- padding: 1em 0.5em 1em 0.5em;
- background-color: #eee;
- /*background-color: #EDF5F9;*/
- color: black;
-}
-#eventTable th.fieldval {
- text-align: left;
- padding: 1em 0.5em 0.5em 1em;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#calPageTable {
- width: 100%;
- font-size: 100%;
- margin: 0px;
- padding: 0px;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-#calPageTable td {
- width: 50%;
- vertical-align: top;
- padding: 0.5em 2em 1em 3em;
-}
-#calPageTable th {
- font-size: 1.2em;
- background-color: #ccc;
- color: black;
- font-weight: bold;
-}
-#calPageTable td.leftCell {
- border-right : thin dashed #999;
-}
-#calPageTable h2 {
- font-size: 1.2em;
-}
-#calPageTable td.infoCell {
- background-color: #eee;
- color: black;
- text-align: center;
-}
-#dayCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-#dayCalendarTable td {
- padding: 0.4em;
- margin: 0em;
-}
-#dayCalendarTable .dateRange {
- text-align: left;
- background-color: #D3E4F0;
- color: black;
- white-space: nowrap;
-}
-#dayCalendarTable .description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#dayCalendarTable .more {
- text-align: center;
- background-color: #eee;
- color: black;
- font-size: 0.8em;
-}
-#weekCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-#weekCalendarTable td {
- padding: 0.4em;
- margin: 0em;
-}
-#weekCalendarTable .dateRange {
- text-align: left;
- background-color: #D3E4F0;
- color: black;
- white-space: nowrap;
-}
-#weekCalendarTable .description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#weekCalendarTable .more {
- text-align: center;
- background-color: #eee;
- color: black;
- font-size: 0.8em;
-}
-#monthCalendarTable {
- width: 100%;
- font-size: 0.8em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-#monthCalendarTable th.dayHeading {
- width: 14%;
- text-align: center;
- vertical-align: middle;
- background-color: #2c5f89;
- color: #eee;
- border: 1px solid black;
-}
-#monthCalendarTable td {
- width: 14%;
- height: 60px;
- vertical-align: top;
- text-align: left;
- padding: 0em;
- border: 1px solid #aaa;
- background-color: white;
- color: black;
-}
-#monthCalendarTable td.filler {
- border: none;
- background-color: #eee;
- color: black;
- /*border: 1px solid #aaa;*/
-}
-/*#monthCalendarTable ul {
- font-size: 0.8em;
- list-style : disc;
- margin: 0em 0em 0em 1em;
- padding-left: 0.75em;
- padding-right: 0.1em;
- color: #999;
-}*/
-#monthCalendarTable ul {
- font-size: 0.8em;
- list-style : none;
- margin: 0em;
- padding: 0.3em 0em 0em 0em;
-}
-#monthCalendarTable ul li {
- margin: 0em;
- padding: 0em;
- display: inline;
-}
-#monthCalendarTable a.eventLinkA:link,
-#monthCalendarTable a.eventLinkA:visited,
-#monthCalendarTable a.eventLinkA:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #A3C8D9;
- color: black;
-}
-#monthCalendarTable a.eventLinkB:link,
-#monthCalendarTable a.eventLinkB:visited,
-#monthCalendarTable a.eventLinkB:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #DEECF2;
- color: black;
-}
-#monthCalendarTable a.eventCancelled:link,
-#monthCalendarTable a.eventCancelled:visited,
-#monthCalendarTable a.eventCancelled:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #ccc;
- color: black;
-}
-#monthCalendarTable a.eventTentative:link,
-#monthCalendarTable a.eventTentative:visited,
-#monthCalendarTable a.eventTentative:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- border-bottom: 1px solid #ccc;
- border-top: 1px solid #ccc;
- background: #eee url('../../images/tentativeLines.gif') top;
- color: black;
-}
-#monthCalendarTable a.holiday:link,
-#monthCalendarTable a.holiday:visited,
-#monthCalendarTable a.holiday:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #fff;
- color: black;
- /*border-top: 1px solid black;
- border-bottom: 1px solid black;*/
-}
-#monthCalendarTable a.eventLinkA:hover,
-#monthCalendarTable a.eventLinkB:hover,
-#monthCalendarTable a.eventCancelled:hover,
-#monthCalendarTable a.eventTentative:hover,
-#monthCalendarTable a.holiday:hover {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- color: black;
- background-color: #ddd;
-}
-#monthCalendarTable a.dayLink {
- text-decoration: none;
- color: black;
- background-color: transparent;
-}
-#monthCalendarTable a:hover.dayLink {
- text-decoration: none;
- color: #eee;
- background-color: black;
-}
-#monthCalendarTable a:hover {
- /* required for eventTip to hover correctly;
- apply only to the hover pseudo class, or
- the other anchors nearby will cover the eventTip in IE */
- position: relative;
-}
-#monthCalendarTable a span.eventTip,
-#monthCalendarTable a span.eventTipReverse {
- display: none;
-}
-#monthCalendarTable a:hover span.eventTip {
- display: block;
- position: absolute;
- width: 20em;
- top: 1em;
- left: 12em;
- background-color: #ffe;
- color: black;
- padding: 4px;
- border: 1px solid #333;
-}
-#monthCalendarTable a:hover span.eventTipReverse {
- display: block;
- position: absolute;
- width: 20em;
- top: 1em;
- left: -21em;
- background-color: #ffe;
- color: black;
- padding: 4px;
- border: 1px solid #333;
-}
-#monthCalendarTable a:hover span.eventTipStatusCancelled {
- display: block;
- color: white;
- background-color: #333;
- padding: 2px;
- margin-bottom: 6px;
- text-align: center;
-}
-#monthCalendarTable a:hover span.eventTipStatusTentative {
- display: block;
- color: black;
- background: #eee url('../../images/tentativeLines.gif') top;
- padding: 2px;
- margin-bottom: 6px;
- border: 1px solid #ccc;
- text-align: center;
-}
-a.gridAdd {
- display: block;
- float: right;
- font-size: 0.8em;
- text-decoration: none;
- margin-right: 2px;
-}
-#yearCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0em;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-#yearCalendarTable td {
- padding: 1em 0em 0em 0em;
- margin: 0em;
- vertical-align: top;
- text-align: center;
- width: 33%;
-}
-#yearCalendarTable table.yearViewMonthTable {
- margin: 0em 1em 0.5em 1em;
- border: 1px solid #ddd;
-}
-#yearCalendarTable table.yearViewMonthTable td {
- text-align: center;
- padding: 0.2em;
- width: 12.5%;
-}
-#yearCalendarTable table.yearViewMonthTable th {
- font-weight: bold;
- background-color: #f5f5f5;
- color: black;
- padding: 0.2em;
-}
-#yearCalendarTable table.yearViewMonthTable td.monthName {
- font-weight: bold;
- text-align: center;
- background-color: #EDF5F9;
- color: black;
- white-space: nowrap;
- border-bottom: 1px solid #999;
-}
-#yearCalendarTable table.yearViewMonthTable td.weekCell {
- font-weight: bold;
- font-size: 0.8em;
- background-color: #f5f5f5;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td.weekCell a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td.monthName a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td a:hover {
- text-decoration: none;
- background-color: #FFC;
- color: black;
- border: 1px solid black;
- padding: 0;
-}
-#listTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-#listTable td {
- padding: 0.5em;
- margin: 0em;
- border-bottom: 1px solid #bbb;
-}
-#listTable td a {
- background-color: transparent;
- color: black;
- text-decoration: none;
-}
-#listTable td.dateRangeCrossDay {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #eee;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeEarlyMorning {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #C0D4DD;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeMorning {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #F0F9FF;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeAfternoon {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #DEECF2;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeEvening {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #A3C8D9;
- color: black;
- white-space: nowrap;
-}
-#listTable span.littleArrow {
- font-size: 1.4em;
-}
-#listTable td.description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#listTable td.description {
- text-align: left;
- background-color: white;
- color: black;
- width: 100%;
-}
-#listTable td.bwStatusCancelled {
- background-color: #ddd;
- color: black;
-}
-#listTable td.bwStatusTentative {
- background: white url('../../images/tentativeLines.gif') top;
- color: black;
-}
-#listTable td.description a {
- display: block;
- background-color: transparent;
- color: black;
- text-decoration: none;
-}
-#listTable td.description a.moreLink {
- display: inline;
- background-color: transparent;
- color: #009;
- text-decoration: underline;
-}
-#listTable td.description:hover {
- background-color: #f5f5f5;
- color: black;
-}
-#listTable td.dateRow {
- text-align: left;
- background-color: #B1D4E3;
- color: #333;
- font-size: 0.8em;
- padding: 0.2em 0.5em 0.2em 0.5em;
- margin: 0em;
-}
-#listTable td.dateRow a {
- display: block;
- color: #333;
- background-color: transparent;
- font-weight: bold;
- text-decoration : none;
-}
-#listTable td.icons {
- color: black;
- background-color: #ddd;
- white-space: nowrap;
-}
-#listTable td.icons img.addref {
- margin-right: 0.5em;
-}
-#calPageTable ul.calendarTree li {
- font-weight: bold;
-}
-#calPageTable ul.calendarTree li ul li {
- font-weight: normal;
-}
-#calPageTable ul.calendarTree li.folder {
- list-style-image: url(../../images/demo/catIcon.gif);
- padding-top: 0.25em;
- padding-bottom: 0.25em;
-}
-#calPageTable ul.calendarTree li.calendar {
- list-style-image: url(../../images/demo/calIcon-sm.gif);
-}
-.noEventsCell {
- padding: 1em;
-}
-#footer {
- font-size: 0.75em;
- text-align : center;
- margin-top: 0em;
- padding: 1em;
- color: #333;
- background-color: #eee;
- border-bottom: 2px solid #999;
- border-left: 2px solid #999;
- border-right: 2px solid #999;
- white-space: nowrap;
-}
-#footer a {
- color: #333;
- background-color: transparent;
- text-decoration: underline;
-}
-#skinSelectorTable {
- width: 100%;
- padding-top: 0.5em;
- font-size: 0.7em;
- color: #333;
- background-color: inherit;
-}
-#skinSelectorTable td {
- vertical-align: top;
-}
-#skinSelectorTable td.rightCell {
- text-align: right;
-}
-#skinSelectorTable td.leftCell {
- text-align: left;
- color: #999;
- background-color: inherit;
-}
-#skinSelectorTable td.leftCell a {
- color: #999;
- background-color: inherit;
-}
-#skinSelectorTable td.rightCell form {
- display: inline;
- margin: 0em;
- padding: 0em;
-}
-#skinSelectorTable td.rightCell select {
- font-size: 0.9em;
- color: #333;
- background-color: #eee;
-}
-#featureHighlight {
- color: #dd0;
- font-style: italic;
-}
-/* LINKS */
-a:link, a:active, a:visited {
- color: #2c5f89;
- background-color: transparent;
-}
-a:hover {
- color: #b00;
- background-color: transparent;
-}
-.center {
- text-align: center;
-}
-.left {
- text-align: left;
-}
-.right {
- text-align: right;
-}
\ No newline at end of file
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/cleanXml.xsl
===================================================================
--- trunk/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/cleanXml.xsl 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/cleanXml.xsl 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:output
- method="xml"
- indent="yes"
- omit-xml-declaration="no"
- media-type="text/xml"
- standalone="yes"
-/>
-
-<!-- =========================================================
-
- DEMONSTRATION CALENDAR STYLESHEET
-
- a simple stylesheet to provide a proper xml declaration
- and clean xml for use on other systems. This is slightly
- more expensive than simply turning off the transform with
- noxslt=yes, but it may play better with some systems.
-
-=============================================================== -->
-
- <xsl:template match="/">
- <xsl:copy-of select="."/>
- </xsl:template>
-</xsl:stylesheet>
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/common.css
===================================================================
--- trunk/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/common.css 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/common.css 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,66 +0,0 @@
-/* Generic selectors*/
-h2 {
- margin: 0em;
- padding: 0.2em 0.2em 0.2em 0.5em;
- font-size: 1.3em;
- border-bottom: 1px solid #ccc;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-h2 a:link,
-h2 a:active,
-h2 a:visited,
-h2 a:hover {
- color: black;
- background-color: inherit;
- text-decoration: none;
-}
-h2.bwStatusConfirmed {
- background-color: #eee;
- color: black;
-}
-h2.bwStatusCancelled {
- background-color: #eee;
- color: black;
-}
-h2.bwStatusTentative {
- background: #eee url('../../images/tentativeLines.gif') top;
- color: black;
-}
-/* Header IDs and classes */
-#errors {
- margin: 0;
- padding: 1em;
- background-color: #333;
- color: #ff9;
- font-weight: bold;
-}
-#tabsTable .centerCell {
- text-align: left;
- background : url(../../images/demo/std-tab-space.gif);
- font-size: 0.8em;
- white-space: nowrap;
- width: 100%;
- padding: 0 1em;
-}
-#stats {
- font-size: 0.9em;
- margin: 0px;
- padding: 1em;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-#statsTable {
- margin: 1em 0 0 4em;
- width: 300px;
-}
-#statsTable th {
- padding: 0.5em;
- background-color: #eee;
- color: black;
-}
-#statsTable td.label {
- text-align: right;
- padding-right: 2em;
-}
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/default.xsl
===================================================================
--- trunk/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/default.xsl 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/default.xsl 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,1187 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:output
- method="html"
- indent="yes"
- media-type="text/html"
- doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
- doctype-system="http://www.w3.org/TR/html4/loose.dtd"
- standalone="yes"
-/>
-
-<!-- =========================================================
-
- DEMONSTRATION CALENDAR STYLESHEET
-
- This stylesheet is devoid of school branding. It is a good
- starting point for development of a customized calendar.
-
- For detailed instructions on how to work with the XSLT
- stylesheets included with this distribution, please see the
- Bedework Design Guide at
- http://www.bedework.org/bedework/update.do?artcenterkey=24
-
-=============================================================== -->
-<!-- **********************************************************************
- Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved.
-
- Redistribution and use of this distribution in source and binary forms,
- with or without modification, are permitted provided that:
- The above copyright notice and this permission notice appear in all
- copies and supporting documentation;
-
- The name, identifiers, and trademarks of Rensselaer Polytechnic
- Institute are not used in advertising or publicity without the
- express prior written permission of Rensselaer Polytechnic Institute;
-
- DISCLAIMER: The software is distributed" AS IS" without any express or
- implied warranty, including but not limited to, any implied warranties
- of merchantability or fitness for a particular purpose or any warrant)'
- of non-infringement of any current or pending patent rights. The authors
- of the software make no representations about the suitability of this
- software for any particular purpose. The entire risk as to the quality
- and performance of the software is with the user. Should the software
- prove defective, the user assumes the cost of all necessary servicing,
- repair or correction. In particular, neither Rensselaer Polytechnic
- Institute, nor the authors of the software are liable for any indirect,
- special, consequential, or incidental damages related to the software,
- to the maximum extent the law permits. -->
-
- <!-- ================================= -->
- <!-- DEMO PUBLIC CALENDAR STYLESHEET -->
- <!-- ================================= -->
-
- <!-- DEFINE INCLUDES -->
- <xsl:include href="errors.xsl"/>
-
- <!-- DEFINE GLOBAL CONSTANTS -->
-
- <!-- URL of the XSL template directory -->
- <!-- The approot is an appropriate place to put
- included stylesheets and xml fragments. These are generally
- referenced relatively (like errors.xsl and messages.xsl above);
- this variable is here for your convenience if you choose to
- reference it explicitly. It is not used in this stylesheet, however,
- and can be safely removed if you so choose. -->
- <xsl:variable name="appRoot" select="/bedework/approot"/>
-
- <!-- URL of html resources (images, css, other html); by default this is
- set to the application root -->
- <xsl:variable name="resourcesRoot" select="/bedework/approot"/>
-
- <!-- Properly encoded prefixes to the application actions; use these to build
- urls; allows the application to be used without cookies or within a portal. -->
- <xsl:variable name="setup" select="/bedework/urlPrefixes/setup"/>
- <xsl:variable name="setSelection" select="/bedework/urlPrefixes/setSelection"/>
- <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/fetchPublicCalendars"/>
- <xsl:variable name="setViewPeriod" select="/bedework/urlPrefixes/setViewPeriod"/>
- <xsl:variable name="eventView" select="/bedework/urlPrefixes/eventView"/>
- <xsl:variable name="addEventRef" select="/bedework/urlPrefixes/addEventRef"/>
- <xsl:variable name="export" select="/bedework/urlPrefixes/export"/>
- <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mailEvent"/>
- <xsl:variable name="showPage" select="/bedework/urlPrefixes/showPage"/>
- <xsl:variable name="stats" select="/bedework/urlPrefixes/stats"/>
-
- <!-- Other generally useful global variables -->
- <xsl:variable name="privateCal">/ucal</xsl:variable>
- <xsl:variable name="prevdate" select="/bedework/previousdate"/>
- <xsl:variable name="nextdate" select="/bedework/nextdate"/>
- <xsl:variable name="curdate" select="/bedework/currentdate/date"/>
-
-
- <!-- MAIN TEMPLATE -->
- <xsl:template match="/">
- <html lang="en">
- <head>
- <title>Bedework Events Calendar</title>
- <link rel="stylesheet" type="text/css" href="{$resourcesRoot}/default/default/common.css" />
- <link rel="stylesheet" type="text/css" media="print" href="{$resourcesRoot}/default/default/print.css" />
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='style']/value='red'">
- <link rel="stylesheet" href="{$resourcesRoot}/default/default/red.css"/>
- </xsl:when>
- <xsl:when test="/bedework/appvar[key='style']/value='green'">
- <link rel="stylesheet" href="{$resourcesRoot}/default/default/green.css"/>
- </xsl:when>
- <xsl:otherwise>
- <link rel="stylesheet" href="{$resourcesRoot}/default/default/blue.css"/>
- </xsl:otherwise>
- </xsl:choose>
- <link rel="icon" type="image/ico" href="{$resourcesRoot}/images/bedework.ico" />
- </head>
- <body>
- <xsl:call-template name="headBar"/>
- <xsl:if test="/bedework/error">
- <div id="errors">
- <xsl:apply-templates select="/bedework/error"/>
- </div>
- </xsl:if>
- <xsl:call-template name="tabs"/>
- <xsl:call-template name="navigation"/>
- <xsl:choose>
- <xsl:when test="/bedework/page='event'">
- <!-- show an event -->
- <xsl:apply-templates select="/bedework/event"/>
- </xsl:when>
- <xsl:when test="/bedework/page='showSysStats'">
- <!-- show system stats -->
- <xsl:call-template name="stats"/>
- </xsl:when>
- <xsl:when test="/bedework/page='calendarList'">
- <!-- show a list of all calendars -->
- <xsl:apply-templates select="/bedework/calendars"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- otherwise, show the eventsCalendar -->
- <xsl:if test="/bedework/periodname!='Year'">
- <xsl:call-template name="searchBar"/>
- </xsl:if>
- <!-- main eventCalendar content -->
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <xsl:call-template name="listView"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'">
- <xsl:call-template name="listView"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="weekView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
- <xsl:call-template name="listView"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="monthView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="yearView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <!-- footer -->
- <xsl:call-template name="footer"/>
- </body>
- </html>
- </xsl:template>
-
- <!--==== HEADER TEMPLATES and NAVIGATION ====-->
- <!-- these templates are separated out for convenience and to simplify the default template -->
-
- <xsl:template name="headBar">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" id="logoTable">
- <tr>
- <td colspan="3" id="logoCell"><a href="http://www.bedework.org/"><img src="{$resourcesRoot}/images/bedeworkLogo.gif" width="292" height="75" border="0" alt="Bedework"/></a></td>
- <td colspan="2" id="schoolLinksCell">
- <h2>Public Calendar</h2>
- <a href="{$privateCal}">Personal Calendar</a> |
- <a href="http://www.yourschoolhere.edu">School Home</a> |
- <a href="http://www.bedework.org/">Other Link</a> |
- <a href="http://helpdesk.rpi.edu/update.do?catcenterkey=51">
- Example Calendar Help
- </a>
- </td>
- </tr>
- </table>
- <table id="curDateRangeTable" cellspacing="0">
- <td class="sideBarOpenCloseIcon">
-  
- <!--
- we may choose to implement calendar selection in the public calendar
- using a sidebar; leave this comment here for now.
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='sidebar']/value='closed'">
- <a href="?setappvar=sidebar(opened)">
- <img alt="open sidebar" src="{$resourcesRoot}/resources/sideBarArrowOpen.gif" width="21" height="16" border="0" align="left"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="?setappvar=sidebar(closed)">
- <img alt="close sidebar" src="{$resourcesRoot}/resources/sideBarArrowClose.gif" width="21" height="16" border="0" align="left"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>-->
- </td>
- <td class="date">
- <xsl:choose>
- <xsl:when test="/bedework/page='event'">
- Event Information
- </xsl:when>
- <xsl:when test="/bedework/page='showSysStats' or
- /bedework/page='calendars'">
-  
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/firstday/longdate"/>
- <xsl:if test="/bedework/periodname!='Day'">
- -
- <xsl:value-of select="/bedework/lastday/longdate"/>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="rssPrint">
- <a href="javascript:window.print()" title="print this view">
- <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
- </a>
- <a class="rss" href="{$setSelection}?setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
- </td>
- </table>
- </xsl:template>
-
- <xsl:template name="tabs">
- <xsl:choose>
- <xsl:when test="/bedework/page='eventscalendar'">
- <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
- <tr>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <a href="{$setViewPeriod}?viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-on.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}?viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
- <a href="{$setViewPeriod}?viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-on.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}?viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Month'">
- <a href="{$setViewPeriod}?viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-on.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}?viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year'">
- <a href="{$setViewPeriod}?viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-on.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}?viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="centerCell">
-  <!--<img src="{$resourcesRoot}/images/std-button-today.gif" width="46" height="17" border="0" alt="TODAY"/>-->
- </td>
- <td class="rightCell">
-  
- </td>
- </tr>
- </table>
- </xsl:when>
- <xsl:otherwise>
- <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
- <tr>
- <td>
- <a href="{$setViewPeriod}?viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}?viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}?viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}?viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </td>
- <td class="centerCell">
-  <!--<img src="{$resourcesRoot}/images/std-button-today.gif" width="46" height="17" border="0" alt="TODAY"/>-->
- </td>
- <td class="rightCell">
-  
- </td>
- </tr>
- </table>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="navigation">
- <table border="0" cellpadding="0" cellspacing="0" id="navigationBarTable">
- <tr>
- <td class="leftCell">
- <a id="prevViewPeriod" href="{$setViewPeriod}?date={$prevdate}"><img src="{$resourcesRoot}/images/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a>
- <a id="nextViewPeriod" href="{$setViewPeriod}?date={$nextdate}"><img src="{$resourcesRoot}/images/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year'">
- <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:value-of select="/bedework/firstday/monthname"/>, <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Week'">
- Week of <xsl:value-of select="substring-after(/bedework/firstday/longdate,', ')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/firstday/longdate"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="todayButton">
- <a href="{$setViewPeriod}?viewType=todayView&date={$curdate}">
- <img src="{$resourcesRoot}/images/std-button-today-off.gif" width="54" height="22" border="0" alt="Go to Today" align="left"/>
- </a>
- </td>
- <td align="right" class="gotoForm">
- <form name="calForm" method="get" action="{$setViewPeriod}">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:if test="/bedework/periodname!='Year'">
- <td>
- <select name="viewStartDate.month">
- <xsl:for-each select="/bedework/monthvalues/val">
- <xsl:variable name="temp" select="."/>
- <xsl:variable name="pos" select="position()"/>
- <xsl:choose>
- <xsl:when test="/bedework/monthvalues[start=$temp]">
- <option value="{$temp}" selected="selected">
- <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
- </option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$temp}">
- <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
- </option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </td>
- <xsl:if test="/bedework/periodname!='Month'">
- <td>
- <select name="viewStartDate.day">
- <xsl:for-each select="/bedework/dayvalues/val">
- <xsl:variable name="temp" select="."/>
- <xsl:variable name="pos" select="position()"/>
- <xsl:choose>
- <xsl:when test="/bedework/dayvalues[start=$temp]">
- <option value="{$temp}" selected="selected">
- <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
- </option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$temp}">
- <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
- </option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </td>
- </xsl:if>
- </xsl:if>
- <td>
- <xsl:variable name="temp" select="/bedework/yearvalues/start"/>
- <input type="text" name="viewStartDate.year" maxlength="4" size="4" value="{$temp}"/>
- </td>
- <td>
- <input name="submit" type="submit" value="go"/>
- </td>
- </tr>
- </table>
- </form>
- </td>
- <td class="rightCell">
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template name="searchBar">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" id="searchBarTable">
- <tr>
- <td class="leftCell">
- <xsl:choose>
- <xsl:when test="/bedework/selectionState/selectionType = 'calendar'">
- Calendar: <xsl:value-of select="/bedework/selectionState/subscriptions/subscription/calendar/name"/>
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:when test="/bedework/selectionState/selectionType = 'search'">
- Current search: <xsl:value-of select="/bedework/search"/>
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:when test="/bedework/selectionState/selectionType = 'subscription'">
- Subscription: (not implemented yet)
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:when test="/bedework/selectionState/selectionType = 'filter'">
- Filter: (not implemented yet)
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:otherwise><!-- view -->
- View:
- <form name="selectViewForm" method="get" action="{$setSelection}">
- <select name="viewName" onChange="submit()" >
- <xsl:for-each select="/bedework/views/view">
- <xsl:variable name="name" select="name"/>
- <xsl:choose>
- <xsl:when test="name=/bedework/selectionState/view/name">
- <option value="{$name}" selected="selected"><xsl:value-of select="name"/></option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$name}"><xsl:value-of select="name"/></option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </form>
- <span class="calLinks"><a href="{$setSelection}">default view</a> | <a href="{$fetchPublicCalendars}">available calendars</a></span>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="rightCell">
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <img src="{$resourcesRoot}/images/std-button-listview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Year'">
- <img src="{$resourcesRoot}/images/std-button-calview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
- <a href="{$setup}?setappvar=monthViewMode(cal)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}?setappvar=monthViewMode(list)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'">
- <a href="{$setup}?setappvar=weekViewMode(cal)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}?setappvar=weekViewMode(list)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year' or
- (/bedework/periodname='Month' and
- (/bedework/appvar[key='monthViewMode']/value='cal' or
- not(/bedework/appvar[key='monthViewMode']))) or
- (/bedework/periodname='Week' and
- (/bedework/appvar[key='weekViewMode']/value='cal' or
- not(/bedework/appvar[key='weekViewMode'])))">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <img src="{$resourcesRoot}/images/std-button-summary-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
- </xsl:when>
- <xsl:otherwise>
- <img src="{$resourcesRoot}/images/std-button-details-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <a href="{$setup}?setappvar=summaryMode(summary)" title="toggle summary/detailed view">
- <img src="{$resourcesRoot}/images/std-button-summary.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}?setappvar=summaryMode(details)" title="toggle summary/detailed view">
- <img src="{$resourcesRoot}/images/std-button-details.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <a href="setup.do"><img src="{$resourcesRoot}/images/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== SINGLE EVENT ====-->
- <xsl:template match="event">
- <xsl:variable name="statusClass">
- <xsl:choose>
- <xsl:when test="status='CANCELLED'">bwStatusCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">bwStatusTentative</xsl:when>
- <xsl:otherwise>bwStatusConfirmed</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <h2 class="{$statusClass}">
- <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
- <xsl:choose>
- <xsl:when test="link != ''">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}">
- <xsl:value-of select="summary"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="summary"/>
- </xsl:otherwise>
- </xsl:choose>
- </h2>
- <table id="eventTable" cellpadding="0" cellspacing="0">
- <tr>
- <td class="fieldname">When:</td>
- <td class="fieldval">
- <xsl:value-of select="start/dayname"/>, <xsl:value-of select="start/longdate"/><xsl:text> </xsl:text>
- <xsl:if test="start/allday = 'false'">
- <span class="time"><xsl:value-of select="start/time"/></span>
- </xsl:if>
- <xsl:if test="(end/longdate != start/longdate) or
- ((end/longdate = start/longdate) and (end/time != start/time))"> - </xsl:if>
- <xsl:if test="end/longdate != start/longdate">
- <xsl:value-of select="substring(end/dayname,1,3)"/>, <xsl:value-of select="end/longdate"/><xsl:text> </xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="start/allday = 'true'">
- <span class="time"><em>(all day)</em></span>
- </xsl:when>
- <xsl:when test="end/longdate != start/longdate">
- <span class="time"><xsl:value-of select="end/time"/></span>
- </xsl:when>
- <xsl:when test="end/time != start/time">
- <span class="time"><xsl:value-of select="end/time"/></span>
- </xsl:when>
- </xsl:choose>
- </td>
- <th class="icalIcon" rowspan="2">
- <div id="eventIcons">
- <xsl:variable name="id" select="id"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
- <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon.gif" width="20" height="26" border="0" alt="Add event to MyCalendar"/>
- add to my calendar</a>
- <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
- <a href="{$export}?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
- <img src="{$resourcesRoot}/images/std-ical_icon.gif" width="20" height="26" border="0" alt="Download this event"/>
- download</a>
- </div>
- </th>
- </tr>
- <tr>
- <td class="fieldname">Where:</td>
- <td class="fieldval">
- <xsl:choose>
- <xsl:when test="location/link=''">
- <xsl:value-of select="location/address"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="locationLink" select="location/link"/>
- <a href="{$locationLink}">
- <xsl:value-of select="location/address"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="location/subaddress!=''">
- <br/><xsl:value-of select="location/subaddress"/>
- </xsl:if>
- </td>
- </tr>
- <tr>
- <td class="fieldname">Description:</td>
- <td colspan="2" class="fieldval description">
- <xsl:call-template name="replace">
- <xsl:with-param name="string" select="description"/>
- <xsl:with-param name="pattern" select="'
'"/>
- <xsl:with-param name="replacement"><br/></xsl:with-param>
- </xsl:call-template>
- </td>
- </tr>
- <xsl:if test="status !='' and status != 'CONFIRMED'">
- <tr>
- <td class="fieldname">Status:</td>
- <td class="fieldval">
- <xsl:value-of select="status"/>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="cost!=''">
- <tr>
- <td class="fieldname">Cost:</td>
- <td colspan="2" class="fieldval"><xsl:value-of select="cost"/></td>
- </tr>
- </xsl:if>
- <xsl:if test="link != ''">
- <tr>
- <td class="fieldname">See:</td>
- <td colspan="2" class="fieldval">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}"><xsl:value-of select="link"/></a>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="sponsor/name!='none'">
- <tr>
- <td class="fieldname">Contact:</td>
- <td colspan="2" class="fieldval">
- <xsl:choose>
- <xsl:when test="sponsor/link=''">
- <xsl:value-of select="sponsor/name"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="sponsorLink" select="sponsor/link"/>
- <a href="{$sponsorLink}">
- <xsl:value-of select="sponsor/name"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="sponsor/phone!=''">
- <br /><xsl:value-of select="sponsor/phone"/>
- </xsl:if>
- <!-- If you want to display email addresses, uncomment the
- following 8 lines. -->
- <!-- <xsl:if test="sponsor/email!=''">
- <br />
- <xsl:variable name="email" select="sponsor/email"/>
- <xsl:variable name="subject" select="summary"/>
- <a href="mailto:{$email}?subject={$subject}">
- <xsl:value-of select="sponsor/email"/>
- </a>
- </xsl:if> -->
- </td>
- </tr>
- </xsl:if>
- <tr>
- <td class="fieldname">Calendar:</td>
- <td class="fieldval">
- <xsl:variable name="calUrl" select="calendar/path"/>
- <a href="{$setSelection}?calUrl={$calUrl}">
- <xsl:value-of select="calendar/name"/>
- </a>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== LIST VIEW (for day, week, and month) ====-->
- <xsl:template name="listView">
- <table id="listTable" border="0" cellpadding="0" cellspacing="0">
- <xsl:choose>
- <xsl:when test="not(/bedework/eventscalendar/year/month/week/day/event)">
- <tr>
- <td class="noEventsCell">
- No events to display.
- </td>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week/day[event]">
- <xsl:if test="/bedework/periodname='Week' or /bedework/periodname='Month' or /bedework/periodname=''">
- <tr>
- <td colspan="5" class="dateRow">
- <xsl:variable name="date" select="date"/>
- <a href="{$setViewPeriod}?viewType=dayView&date={$date}">
- <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/>
- </a>
- </td>
- </tr>
- </xsl:if>
- <xsl:for-each select="event">
- <xsl:variable name="id" select="id"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <tr>
- <xsl:variable name="dateRangeStyle">
- <xsl:choose>
- <xsl:when test="start/shortdate = parent::day/shortdate">
- <xsl:choose>
- <xsl:when test="start/allday = 'true'">dateRangeCrossDay</xsl:when>
- <xsl:when test="start/hour24 < 6">dateRangeEarlyMorning</xsl:when>
- <xsl:when test="start/hour24 < 12">dateRangeMorning</xsl:when>
- <xsl:when test="start/hour24 < 18">dateRangeAfternoon</xsl:when>
- <xsl:otherwise>dateRangeEvening</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>dateRangeCrossDay</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="start/allday = 'true' and
- start/shortdate = end/shortdate">
- <td class="{$dateRangeStyle} center" colspan="3">
- all day
- </td>
- </xsl:when>
- <xsl:when test="start/shortdate = end/shortdate and
- start/time = end/time">
- <td class="{$dateRangeStyle} center" colspan="3">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:value-of select="start/time"/>
- </a>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td class="{$dateRangeStyle} right">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:choose>
- <xsl:when test="start/allday = 'true' and
- parent::day/shortdate = start/shortdate">
- today
- </xsl:when>
- <xsl:when test="parent::day/shortdate != start/shortdate">
- <span class="littleArrow">«</span> 
- <xsl:value-of select="start/month"/>/<xsl:value-of select="start/day"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="start/time"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </td>
- <td class="{$dateRangeStyle} center">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">-</a>
- </td>
- <td class="{$dateRangeStyle} left">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:choose>
- <xsl:when test="end/allday = 'true' and
- parent::day/shortdate = end/shortdate">
- today
- </xsl:when>
- <xsl:when test="parent::day/shortdate != end/shortdate">
- <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/>
-  <span class="littleArrow">»</span>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="end/time"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:variable name="descriptionClass">
- <xsl:choose>
- <xsl:when test="status='CANCELLED'">description bwStatusCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">description bwStatusTentative</xsl:when>
- <xsl:otherwise>description</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <td class="{$descriptionClass}">
- <xsl:if test="status='CANCELLED'"><strong>CANCELLED: </strong></xsl:if>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <strong>
- <xsl:value-of select="summary"/>:
- </strong>
- <xsl:value-of select="description"/> 
- <em>
- <xsl:value-of select="location/address"/>
- <xsl:if test="location/subaddress != ''">
- , <xsl:value-of select="location/subaddress"/>
- </xsl:if>. 
- <xsl:if test="cost!=''">
- <xsl:value-of select="cost"/>. 
- </xsl:if>
- <xsl:if test="sponsor/name!='none'">
- Contact: <xsl:value-of select="sponsor/name"/>
- </xsl:if>
- </em>
- </a>
- <xsl:if test="link != ''">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}" class="moreLink"><xsl:value-of select="link"/></a>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:value-of select="summary"/>
- <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="icons">
- <variable name="confId" select="/bedework/confirmationid"/>
- <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
- <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/>
- </a>
- <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
- <a href="{$export}?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
- <img src="{$resourcesRoot}/images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/>
- </a>
- </td>
- </tr>
- </xsl:for-each>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </table>
- </xsl:template>
-
- <!--==== WEEK CALENDAR VIEW ====-->
- <xsl:template name="weekView">
- <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:for-each select="/bedework/daynames/val">
- <th class="dayHeading"><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <tr>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week/day">
- <xsl:variable name="dayPos" select="position()"/>
- <xsl:if test="filler='false'">
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}?viewType=dayView&date={$dayDate}" class="dayLink">
- <xsl:value-of select="value"/>
- </a>
- <ul>
- <xsl:apply-templates select="event" mode="calendarLayout">
- <xsl:with-param name="dayPos" select="$dayPos"/>
- </xsl:apply-templates>
- </ul>
- </td>
- </xsl:if>
- </xsl:for-each>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== MONTH CALENDAR VIEW ====-->
- <xsl:template name="monthView">
- <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:for-each select="/bedework/daynames/val">
- <th class="dayHeading"><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week">
- <tr>
- <xsl:for-each select="day">
- <xsl:variable name="dayPos" select="position()"/>
- <xsl:choose>
- <xsl:when test="filler='true'">
- <td class="filler"> </td>
- </xsl:when>
- <xsl:otherwise>
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}?viewType=dayView&date={$dayDate}" class="dayLink">
- <xsl:value-of select="value"/>
- </a>
- <ul>
- <xsl:apply-templates select="event" mode="calendarLayout">
- <xsl:with-param name="dayPos" select="$dayPos"/>
- </xsl:apply-templates>
- </ul>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </tr>
- </xsl:for-each>
- </table>
- </xsl:template>
-
- <xsl:template match="event" mode="calendarLayout">
- <xsl:param name="dayPos"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <xsl:variable name="eventClass">
- <xsl:choose>
- <!-- Special styles for the month grid -->
- <xsl:when test="status='CANCELLED'">eventCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">eventTentative</xsl:when>
- <xsl:when test="calendar/name='Holidays'">holiday</xsl:when>
- <!-- Alternating colors for all standard events -->
- <xsl:when test="position() mod 2 = 1">eventLinkA</xsl:when>
- <xsl:otherwise>eventLinkB</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <li>
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" class="{$eventClass}">
- <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
- <xsl:value-of select="summary"/>
- <xsl:variable name="eventTipClass">
- <xsl:choose>
- <xsl:when test="$dayPos > 5">eventTipReverse</xsl:when>
- <xsl:otherwise>eventTip</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <span class="{$eventTipClass}">
- <xsl:if test="status='CANCELLED'"><span class="eventTipStatusCancelled">CANCELLED</span></xsl:if>
- <xsl:if test="status='TENTATIVE'"><span class="eventTipStatusTentative">TENTATIVE</span></xsl:if>
- <strong><xsl:value-of select="summary"/></strong><br/>
- Time:
- <xsl:choose>
- <xsl:when test="start/allday = 'false'">
- <xsl:value-of select="start/time"/>
- <xsl:if test="start/time != end/time">
- - <xsl:value-of select="end/time"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- all day
- </xsl:otherwise>
- </xsl:choose><br/>
- <xsl:if test="location/address">
- Location: <xsl:value-of select="location/address"/><br/>
- </xsl:if>
- Calendar: <xsl:value-of select="calendar/name"/>
- </span>
- </a>
- </li>
- </xsl:template>
-
- <!--==== YEAR VIEW ====-->
- <xsl:template name="yearView">
- <table id="yearCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() <= 3]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 3) and (position() <= 6)]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 6) and (position() <= 9)]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() > 9]"/>
- </tr>
- </table>
- </xsl:template>
-
- <!-- year view month tables -->
- <xsl:template match="month">
- <td>
- <table class="yearViewMonthTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="8" class="monthName">
- <xsl:variable name="firstDayOfMonth" select="week/day/date"/>
- <a href="{$setViewPeriod}?viewType=monthView&date={$firstDayOfMonth}">
- <xsl:value-of select="longname"/>
- </a>
- </td>
- </tr>
- <tr>
- <th> </th>
- <xsl:for-each select="/bedework/shortdaynames/val">
- <th><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <xsl:for-each select="week">
- <tr>
- <td class="weekCell">
- <xsl:variable name="firstDayOfWeek" select="day/date"/>
- <a href="{$setViewPeriod}?viewType=weekView&date={$firstDayOfWeek}">
- <xsl:value-of select="value"/>
- </a>
- </td>
- <xsl:for-each select="day">
- <xsl:choose>
- <xsl:when test="filler='true'">
- <td class="filler"> </td>
- </xsl:when>
- <xsl:otherwise>
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}?viewType=dayView&date={$dayDate}">
- <xsl:value-of select="value"/>
- </a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </tr>
- </xsl:for-each>
- </table>
- </td>
- </xsl:template>
-
- <!--==== CALENDARS PAGE ====-->
- <xsl:template match="calendars">
- <xsl:variable name="topLevelCalCount" select="count(calendar/calendar)"/>
- <table id="calPageTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <th colspan="2">
- All Calendars
- </th>
- </tr>
- <tr>
- <td colspan="2" class="infoCell">
- Select a calendar from the list below to see only that calendar's events.
- </td>
- </tr>
- <tr>
- <td class="leftCell">
- <ul class="calendarTree">
- <xsl:apply-templates select="calendar/calendar[position() <= ceiling($topLevelCalCount div 2)]" mode="calTree"/>
- </ul>
- </td>
- <td>
- <ul class="calendarTree">
- <xsl:apply-templates select="calendar/calendar[position() > ceiling($topLevelCalCount div 2)]" mode="calTree"/>
- </ul>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template match="calendar" mode="calTree">
- <xsl:variable name="itemClass">
- <xsl:choose>
- <xsl:when test="calendarCollection='false'">folder</xsl:when>
- <xsl:otherwise>calendar</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="url" select="path"/>
- <li class="{$itemClass}">
- <a href="{$setSelection}?calUrl={$url}"><xsl:value-of select="name"/></a>
- <xsl:if test="calendar">
- <ul>
- <xsl:apply-templates select="calendar" mode="calTree"/>
- </ul>
- </xsl:if>
- </li>
- </xsl:template>
-
- <!--+++++++++++++++ System Stats ++++++++++++++++++++-->
- <xsl:template name="stats">
- <div id="stats">
- <h2>System Statistics</h2>
-
- <p>
- Stats collection:
- </p>
- <ul>
- <li>
- <a href="{$stats}&enable=yes">enable</a> |
- <a href="{$stats}&disable=yes">disable</a>
- </li>
- <li><a href="{$stats}&fetch=yes">fetch statistics</a></li>
- <li><a href="{$stats}&dump=yes">dump stats to log</a></li>
- </ul>
- <table id="statsTable" cellpadding="0">
- <xsl:for-each select="/bedework/sysStats/*">
- <xsl:choose>
- <xsl:when test="name(.) = 'header'">
- <tr>
- <th colspan="2">
- <xsl:value-of select="."/>
- </th>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <tr>
- <td class="label">
- <xsl:value-of select="label"/>
- </td>
- <td class="value">
- <xsl:value-of select="value"/>
- </td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </table>
- </div>
- </xsl:template>
-
- <!--==== UTILITY TEMPLATES ====-->
-
- <!-- search and replace template taken from
- http://www.biglist.com/lists/xsl-list/archives/200211/msg00337.html -->
- <xsl:template name="replace">
- <xsl:param name="string" select="''"/>
- <xsl:param name="pattern" select="''"/>
- <xsl:param name="replacement" select="''"/>
- <xsl:choose>
- <xsl:when test="$pattern != '' and $string != '' and contains($string, $pattern)">
- <xsl:value-of select="substring-before($string, $pattern)"/>
- <xsl:copy-of select="$replacement"/>
- <xsl:call-template name="replace">
- <xsl:with-param name="string" select="substring-after($string, $pattern)"/>
- <xsl:with-param name="pattern" select="$pattern"/>
- <xsl:with-param name="replacement" select="$replacement"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$string"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <!--==== FOOTER ====-->
-
- <xsl:template name="footer">
- <div id="footer">
- Demonstration calendar; place footer information here.
- </div>
- <table id="skinSelectorTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td class="leftCell">
- Based on the <a href="http://www.bedework.org/">Bedework Calendar</a> |
- <a href="?noxslt=yes">show XML</a> |
- <a href="?refreshXslt=yes">refresh XSLT</a>
- </td>
- <td class="rightCell">
- <form name="styleSelectForm" method="get" action="{$setup}">
- <select name="setappvar" onChange="submit()">
- <option>example styles:</option>
- <option value="style(green)">green</option>
- <option value="style(red)">red</option>
- <option value="style(blue)">blue</option>
- </select>
- </form>
- <form name="skinSelectForm" method="get" action="{$setup}">
- <input type="hidden" name="setappvar" value="summaryMode(details)"/>
- <select name="skinPicker" onchange="window.location = this.value">
- <option>example skins:</option>
- <option value="{$setViewPeriod}?viewType=weekView&skinName=rss&setappvar=summaryMode(details)">rss feed</option>
- <option value="{$setViewPeriod}?viewType=todayView&skinName=jsToday&contentType=text/javascript&contentName=bedework.js">javascript feed</option>
- <option value="{$setViewPeriod}?viewType=todayView&skinName=videocal">video feed</option>
- <option value="{$setup}?skinName=default">reset to calendar default</option>
- </select>
- </form>
- <form name="skinSelectForm" method="get" action="">
- <select name="sitePicker" onchange="window.location = this.value">
- <option>production examples:</option>
- <option value="http://events.dal.ca/">Dalhousie</option>
- <option value="http://events.rpi.edu">Rensselaer</option>
- <option value="http://myuw.washington.edu/cal/">Washington</option>
- </select>
- </form>
- </td>
- </tr>
- </table>
- </xsl:template>
-</xsl:stylesheet>
Copied: branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/default.xsl (from rev 637, trunk/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/default.xsl)
===================================================================
--- branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/default.xsl (rev 0)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/default.xsl 2006-06-22 21:17:07 UTC (rev 641)
@@ -0,0 +1,1161 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:output
+ method="html"
+ indent="yes"
+ media-type="text/html"
+ doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
+ doctype-system="http://www.w3.org/TR/html4/loose.dtd"
+ standalone="yes"
+/>
+
+<!-- =========================================================
+
+ DEMONSTRATION "DEPARTMENTAL" CALENDAR STYLESHEET
+
+ This stylesheet is for the "soe" (School of Engineering)
+ calendar suite; it is an example of a departmental skin.
+
+ This skin, along with the preferences for the Calendar
+ Suite owner differ from the main public skin (default.xsl) in the
+ following ways:
+ - different header, title, and footer
+ - default view = Month
+ - default layout = list view (rather than calendar grid)
+ - different color scheme
+
+ Otherwise, for the sake of demonstration, we've left most of the
+ functionality of the public client in place.
+
+ For detailed instructions on how to work with the XSLT
+ stylesheets included with this distribution, please see the
+ Bedework Design Guide at
+ http://www.bedework.org/bedework/update.do?artcenterkey=24
+
+=============================================================== -->
+
+<!-- **********************************************************************
+ Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved.
+
+ Redistribution and use of this distribution in source and binary forms,
+ with or without modification, are permitted provided that:
+ The above copyright notice and this permission notice appear in all
+ copies and supporting documentation;
+
+ The name, identifiers, and trademarks of Rensselaer Polytechnic
+ Institute are not used in advertising or publicity without the
+ express prior written permission of Rensselaer Polytechnic Institute;
+
+ DISCLAIMER: The software is distributed" AS IS" without any express or
+ implied warranty, including but not limited to, any implied warranties
+ of merchantability or fitness for a particular purpose or any warrant)'
+ of non-infringement of any current or pending patent rights. The authors
+ of the software make no representations about the suitability of this
+ software for any particular purpose. The entire risk as to the quality
+ and performance of the software is with the user. Should the software
+ prove defective, the user assumes the cost of all necessary servicing,
+ repair or correction. In particular, neither Rensselaer Polytechnic
+ Institute, nor the authors of the software are liable for any indirect,
+ special, consequential, or incidental damages related to the software,
+ to the maximum extent the law permits. -->
+
+ <!-- ================================= -->
+ <!-- DEMO PUBLIC CALENDAR STYLESHEET -->
+ <!-- ================================= -->
+
+ <!-- DEFINE INCLUDES -->
+ <xsl:include href="errors.xsl"/>
+
+ <!-- DEFINE GLOBAL CONSTANTS -->
+
+ <!-- URL of the XSL template directory -->
+ <!-- The approot is an appropriate place to put
+ included stylesheets and xml fragments. These are generally
+ referenced relatively (like errors.xsl and messages.xsl above);
+ this variable is here for your convenience if you choose to
+ reference it explicitly. It is not used in this stylesheet, however,
+ and can be safely removed if you so choose. -->
+ <xsl:variable name="appRoot" select="/bedework/approot"/>
+
+ <!-- URL of html resources (images, css, other html); by default this is
+ set to the application root -->
+ <xsl:variable name="resourcesRoot" select="/bedework/approot"/>
+
+ <!-- Properly encoded prefixes to the application actions; use these to build
+ urls; allows the application to be used without cookies or within a portal. -->
+ <xsl:variable name="setup" select="/bedework/urlPrefixes/setup"/>
+ <xsl:variable name="setSelection" select="/bedework/urlPrefixes/setSelection"/>
+ <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/fetchPublicCalendars"/>
+ <xsl:variable name="setViewPeriod" select="/bedework/urlPrefixes/setViewPeriod"/>
+ <xsl:variable name="eventView" select="/bedework/urlPrefixes/eventView"/>
+ <xsl:variable name="addEventRef" select="/bedework/urlPrefixes/addEventRef"/>
+ <xsl:variable name="export" select="/bedework/urlPrefixes/export"/>
+ <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mailEvent"/>
+ <xsl:variable name="showPage" select="/bedework/urlPrefixes/showPage"/>
+ <xsl:variable name="stats" select="/bedework/urlPrefixes/stats"/>
+
+ <!-- Other generally useful global variables -->
+ <xsl:variable name="privateCal">/ucal</xsl:variable>
+ <xsl:variable name="prevdate" select="/bedework/previousdate"/>
+ <xsl:variable name="nextdate" select="/bedework/nextdate"/>
+ <xsl:variable name="curdate" select="/bedework/currentdate/date"/>
+ <xsl:variable name="skin">default</xsl:variable>
+
+
+ <!-- MAIN TEMPLATE -->
+ <xsl:template match="/">
+ <html lang="en">
+ <head>
+ <title>School of Engineering: Example Bedework Departmental Calendar Suite</title>
+ <link rel="stylesheet" type="text/css" href="{$resourcesRoot}/default/default/soe.css" />
+ <link rel="icon" type="image/ico" href="{$resourcesRoot}/images/bedework.ico" />
+ </head>
+ <body>
+ <xsl:call-template name="headBar"/>
+ <xsl:if test="/bedework/error">
+ <div id="errors">
+ <xsl:apply-templates select="/bedework/error"/>
+ </div>
+ </xsl:if>
+ <xsl:call-template name="tabs"/>
+ <xsl:call-template name="navigation"/>
+ <xsl:choose>
+ <xsl:when test="/bedework/page='event'">
+ <!-- show an event -->
+ <xsl:apply-templates select="/bedework/event"/>
+ </xsl:when>
+ <xsl:when test="/bedework/page='showSysStats'">
+ <!-- show system stats -->
+ <xsl:call-template name="stats"/>
+ </xsl:when>
+ <xsl:when test="/bedework/page='calendarList'">
+ <!-- show a list of all calendars -->
+ <xsl:apply-templates select="/bedework/calendars"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- otherwise, show the eventsCalendar -->
+ <xsl:if test="/bedework/periodname!='Year'">
+ <xsl:call-template name="searchBar"/>
+ </xsl:if>
+ <!-- main eventCalendar content -->
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Day'">
+ <xsl:call-template name="listView"/>
+ </xsl:when>
+ <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='weekViewMode']/value='cal'">
+ <xsl:call-template name="weekView"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="listView"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="/bedework/periodname='Month'">
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
+ <xsl:call-template name="listView"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="monthView"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="yearView"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <!-- footer -->
+ <xsl:call-template name="footer"/>
+ </body>
+ </html>
+ </xsl:template>
+
+ <!--==== HEADER TEMPLATES and NAVIGATION ====-->
+ <!-- these templates are separated out for convenience and to simplify the default template -->
+
+ <xsl:template name="headBar">
+ <div id="headBar">
+ <div id="bedeworkLogo">
+ <a href="http://www.bedework.org/">
+ <img src="{$resourcesRoot}/images/soecal/soeBedeworkLogo.gif" width="296" height="69" border="0" alt="Bedework" align="right"/>
+ </a>
+ </div>
+ <h1>Example Departmental Calendar Suite</h1>
+ <!--<ul id="schoolLinks">
+ <li><a href="{$privateCal}">Personal Calendar</a></li>
+ <li><a href="http://www.yourschoolhere.edu">School Home</a></li>
+ <li><a href="http://www.bedework.org/">Other Link</a></li>
+ <li>
+ <a href="http://helpdesk.rpi.edu/update.do?catcenterkey=51">
+ Example Calendar Help
+ </a>
+ </li>
+ </ul> -->
+ </div>
+ <!-- Turn off the date range table for this departmental view -->
+ <!--<table id="curDateRangeTable" cellspacing="0">
+ <td class="sideBarOpenCloseIcon">
+   -->
+ <!--
+ we may choose to implement calendar selection in the public calendar
+ using a sidebar; leave this comment here for now.
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='sidebar']/value='closed'">
+ <a href="?setappvar=sidebar(opened)">
+ <img alt="open sidebar" src="{$resourcesRoot}/resources/sideBarArrowOpen.gif" width="21" height="16" border="0" align="left"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="?setappvar=sidebar(closed)">
+ <img alt="close sidebar" src="{$resourcesRoot}/resources/sideBarArrowClose.gif" width="21" height="16" border="0" align="left"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>-->
+ <!-- </td>
+ <td class="date">
+ <xsl:choose>
+ <xsl:when test="/bedework/page='event'">
+ Event Information
+ </xsl:when>
+ <xsl:when test="/bedework/page='showSysStats' or
+ /bedework/page='calendars'">
+  
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="/bedework/firstday/longdate"/>
+ <xsl:if test="/bedework/periodname!='Day'">
+ -
+ <xsl:value-of select="/bedework/lastday/longdate"/>
+ </xsl:if>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td class="rssPrint">
+ <a href="javascript:window.print()" title="print this view">
+ <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
+ </a>
+ <a class="rss" href="{$setSelection}&setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
+ </td>
+ </table>-->
+ </xsl:template>
+
+ <xsl:template name="tabs">
+ <xsl:choose>
+ <xsl:when test="/bedework/page='eventscalendar'">
+ <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
+ <tr>
+ <td>
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Day'">
+ <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-on.gif" width="91" height="20" border="0" alt="DAY"/></a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
+ <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-on.gif" width="92" height="20" border="0" alt="WEEK"/></a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Month'">
+ <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-on.gif" width="90" height="20" border="0" alt="MONTH"/></a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Year'">
+ <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-on.gif" width="92" height="20" border="0" alt="YEAR"/></a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td class="rssPrint">
+ <a href="javascript:window.print()" title="print this view">
+ <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
+ </a>
+ <a class="rss" href="{$setSelection}&setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
+ </td>
+ </tr>
+ </table>
+ </xsl:when>
+ <xsl:otherwise>
+ <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
+ <tr>
+ <td>
+ <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
+ </td>
+ <td>
+ <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
+ </td>
+ <td>
+ <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
+ </td>
+ <td>
+ <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
+ </td>
+ <td class="rssPrint">
+ <a href="javascript:window.print()" title="print this view">
+ <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
+ </a>
+ <a class="rss" href="{$setSelection}&setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
+ </td>
+ </tr>
+ </table>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="navigation">
+ <table border="0" cellpadding="0" cellspacing="0" id="navigationBarTable">
+ <tr>
+ <td class="leftCell">
+ <a id="prevViewPeriod" href="{$setViewPeriod}&date={$prevdate}"><img src="{$resourcesRoot}/images/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a>
+ <a id="nextViewPeriod" href="{$setViewPeriod}&date={$nextdate}"><img src="{$resourcesRoot}/images/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a>
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Year'">
+ <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
+ </xsl:when>
+ <xsl:when test="/bedework/periodname='Month'">
+ <xsl:value-of select="/bedework/firstday/monthname"/>, <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
+ </xsl:when>
+ <xsl:when test="/bedework/periodname='Week'">
+ Week of <xsl:value-of select="substring-after(/bedework/firstday/longdate,', ')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="/bedework/firstday/longdate"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td class="todayButton">
+ <a href="{$setViewPeriod}&viewType=todayView&date={$curdate}">
+ <img src="{$resourcesRoot}/images/std-button-today-off.gif" width="54" height="22" border="0" alt="Go to Today" align="left"/>
+ </a>
+ </td>
+ <td align="right" class="gotoForm">
+ <form name="calForm" method="get" action="{$setViewPeriod}">
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <xsl:if test="/bedework/periodname!='Year'">
+ <td>
+ <select name="viewStartDate.month">
+ <xsl:for-each select="/bedework/monthvalues/val">
+ <xsl:variable name="temp" select="."/>
+ <xsl:variable name="pos" select="position()"/>
+ <xsl:choose>
+ <xsl:when test="/bedework/monthvalues[start=$temp]">
+ <option value="{$temp}" selected="selected">
+ <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
+ </option>
+ </xsl:when>
+ <xsl:otherwise>
+ <option value="{$temp}">
+ <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
+ </option>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </select>
+ </td>
+ <xsl:if test="/bedework/periodname!='Month'">
+ <td>
+ <select name="viewStartDate.day">
+ <xsl:for-each select="/bedework/dayvalues/val">
+ <xsl:variable name="temp" select="."/>
+ <xsl:variable name="pos" select="position()"/>
+ <xsl:choose>
+ <xsl:when test="/bedework/dayvalues[start=$temp]">
+ <option value="{$temp}" selected="selected">
+ <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
+ </option>
+ </xsl:when>
+ <xsl:otherwise>
+ <option value="{$temp}">
+ <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
+ </option>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </select>
+ </td>
+ </xsl:if>
+ </xsl:if>
+ <td>
+ <xsl:variable name="temp" select="/bedework/yearvalues/start"/>
+ <input type="text" name="viewStartDate.year" maxlength="4" size="4" value="{$temp}"/>
+ </td>
+ <td>
+ <input name="submit" type="submit" value="go"/>
+ </td>
+ </tr>
+ </table>
+ </form>
+ </td>
+ <td class="rightCell">
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <xsl:template name="searchBar">
+ <table width="100%" border="0" cellpadding="0" cellspacing="0" id="searchBarTable">
+ <tr>
+ <td class="leftCell">
+ <xsl:choose>
+ <xsl:when test="/bedework/selectionState/selectionType = 'calendar'">
+ Calendar: <xsl:value-of select="/bedework/selectionState/subscriptions/subscription/calendar/name"/>
+ <span class="link">[<a href="{$setSelection}">default view</a>]</span>
+ </xsl:when>
+ <xsl:when test="/bedework/selectionState/selectionType = 'search'">
+ Current search: <xsl:value-of select="/bedework/search"/>
+ <span class="link">[<a href="{$setSelection}">default view</a>]</span>
+ </xsl:when>
+ <xsl:when test="/bedework/selectionState/selectionType = 'subscription'">
+ Subscription: (not implemented yet)
+ <span class="link">[<a href="{$setSelection}">default view</a>]</span>
+ </xsl:when>
+ <xsl:when test="/bedework/selectionState/selectionType = 'filter'">
+ Filter: (not implemented yet)
+ <span class="link">[<a href="{$setSelection}">default view</a>]</span>
+ </xsl:when>
+ <xsl:otherwise><!-- view -->
+ View:
+ <form name="selectViewForm" method="get" action="{$setSelection}">
+ <select name="viewName" onChange="submit()" >
+ <xsl:for-each select="/bedework/views/view">
+ <xsl:variable name="name" select="name"/>
+ <xsl:choose>
+ <xsl:when test="name=/bedework/selectionState/view/name">
+ <option value="{$name}" selected="selected"><xsl:value-of select="name"/></option>
+ </xsl:when>
+ <xsl:otherwise>
+ <option value="{$name}"><xsl:value-of select="name"/></option>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </select>
+ </form>
+ <span class="calLinks"><a href="{$setSelection}">default view</a> | <a href="{$fetchPublicCalendars}">available calendars</a></span>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td class="rightCell">
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Day'">
+ <img src="{$resourcesRoot}/images/std-button-listview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
+ </xsl:when>
+ <xsl:when test="/bedework/periodname='Year'">
+ <img src="{$resourcesRoot}/images/std-button-calview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
+ </xsl:when>
+ <xsl:when test="/bedework/periodname='Month'">
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
+ <a href="{$setup}&setappvar=monthViewMode(cal)" title="toggle list/calendar view">
+ <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setup}&setappvar=monthViewMode(list)" title="toggle list/calendar view">
+ <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='weekViewMode']/value='cal'">
+ <a href="{$setup}&setappvar=weekViewMode(list)" title="toggle list/calendar view">
+ <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setup}&setappvar=weekViewMode(cal)" title="toggle list/calendar view">
+ <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Year' or
+ (/bedework/periodname='Month' and
+ (/bedework/appvar[key='monthViewMode']/value='cal' or
+ not(/bedework/appvar[key='monthViewMode']))) or
+ (/bedework/periodname='Week' and
+ (/bedework/appvar[key='weekViewMode']/value='cal' or
+ not(/bedework/appvar[key='weekViewMode'])))">
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
+ <img src="{$resourcesRoot}/images/std-button-summary-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <img src="{$resourcesRoot}/images/std-button-details-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
+ <a href="{$setup}&setappvar=summaryMode(summary)" title="toggle summary/detailed view">
+ <img src="{$resourcesRoot}/images/std-button-summary.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setup}&setappvar=summaryMode(details)" title="toggle summary/detailed view">
+ <img src="{$resourcesRoot}/images/std-button-details.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <a href="setup.do"><img src="{$resourcesRoot}/images/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a>
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <!--==== SINGLE EVENT ====-->
+ <xsl:template match="event">
+ <xsl:variable name="statusClass">
+ <xsl:choose>
+ <xsl:when test="status='CANCELLED'">bwStatusCancelled</xsl:when>
+ <xsl:when test="status='TENTATIVE'">bwStatusTentative</xsl:when>
+ <xsl:otherwise>bwStatusConfirmed</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <h2 class="{$statusClass}">
+ <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
+ <xsl:choose>
+ <xsl:when test="link != ''">
+ <xsl:variable name="link" select="link"/>
+ <a href="{$link}">
+ <xsl:value-of select="summary"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="summary"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </h2>
+ <table id="eventTable" cellpadding="0" cellspacing="0">
+ <tr>
+ <td class="fieldname">When:</td>
+ <td class="fieldval">
+ <xsl:value-of select="start/dayname"/>, <xsl:value-of select="start/longdate"/><xsl:text> </xsl:text>
+ <xsl:if test="start/allday = 'false'">
+ <span class="time"><xsl:value-of select="start/time"/></span>
+ </xsl:if>
+ <xsl:if test="(end/longdate != start/longdate) or
+ ((end/longdate = start/longdate) and (end/time != start/time))"> - </xsl:if>
+ <xsl:if test="end/longdate != start/longdate">
+ <xsl:value-of select="substring(end/dayname,1,3)"/>, <xsl:value-of select="end/longdate"/><xsl:text> </xsl:text>
+ </xsl:if>
+ <xsl:choose>
+ <xsl:when test="start/allday = 'true'">
+ <span class="time"><em>(all day)</em></span>
+ </xsl:when>
+ <xsl:when test="end/longdate != start/longdate">
+ <span class="time"><xsl:value-of select="end/time"/></span>
+ </xsl:when>
+ <xsl:when test="end/time != start/time">
+ <span class="time"><xsl:value-of select="end/time"/></span>
+ </xsl:when>
+ </xsl:choose>
+ </td>
+ <th class="icalIcon" rowspan="2">
+ <div id="eventIcons">
+ <xsl:variable name="id" select="id"/>
+ <xsl:variable name="subscriptionId" select="subscription/id"/>
+ <xsl:variable name="calPath" select="calendar/encodedPath"/>
+ <xsl:variable name="guid" select="guid"/>
+ <xsl:variable name="recurrenceId" select="recurrenceId"/>
+ <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
+ <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon.gif" width="20" height="26" border="0" alt="Add event to MyCalendar"/>
+ add to my calendar</a>
+ <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
+ <a href="{$export}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
+ <img src="{$resourcesRoot}/images/std-ical_icon.gif" width="20" height="26" border="0" alt="Download this event"/>
+ download</a>
+ </div>
+ </th>
+ </tr>
+ <tr>
+ <td class="fieldname">Where:</td>
+ <td class="fieldval">
+ <xsl:choose>
+ <xsl:when test="location/link=''">
+ <xsl:value-of select="location/address"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable name="locationLink" select="location/link"/>
+ <a href="{$locationLink}">
+ <xsl:value-of select="location/address"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:if test="location/subaddress!=''">
+ <br/><xsl:value-of select="location/subaddress"/>
+ </xsl:if>
+ </td>
+ </tr>
+ <tr>
+ <td class="fieldname">Description:</td>
+ <td colspan="2" class="fieldval description">
+ <xsl:call-template name="replace">
+ <xsl:with-param name="string" select="description"/>
+ <xsl:with-param name="pattern" select="'
'"/>
+ <xsl:with-param name="replacement"><br/></xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ <xsl:if test="status !='' and status != 'CONFIRMED'">
+ <tr>
+ <td class="fieldname">Status:</td>
+ <td class="fieldval">
+ <xsl:value-of select="status"/>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="cost!=''">
+ <tr>
+ <td class="fieldname">Cost:</td>
+ <td colspan="2" class="fieldval"><xsl:value-of select="cost"/></td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="link != ''">
+ <tr>
+ <td class="fieldname">See:</td>
+ <td colspan="2" class="fieldval">
+ <xsl:variable name="link" select="link"/>
+ <a href="{$link}"><xsl:value-of select="link"/></a>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="sponsor/name!='none'">
+ <tr>
+ <td class="fieldname">Contact:</td>
+ <td colspan="2" class="fieldval">
+ <xsl:choose>
+ <xsl:when test="sponsor/link=''">
+ <xsl:value-of select="sponsor/name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable name="sponsorLink" select="sponsor/link"/>
+ <a href="{$sponsorLink}">
+ <xsl:value-of select="sponsor/name"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:if test="sponsor/phone!=''">
+ <br /><xsl:value-of select="sponsor/phone"/>
+ </xsl:if>
+ <!-- If you want to display email addresses, uncomment the
+ following 8 lines. -->
+ <!-- <xsl:if test="sponsor/email!=''">
+ <br />
+ <xsl:variable name="email" select="sponsor/email"/>
+ <xsl:variable name="subject" select="summary"/>
+ <a href="mailto:{$email}&subject={$subject}">
+ <xsl:value-of select="sponsor/email"/>
+ </a>
+ </xsl:if> -->
+ </td>
+ </tr>
+ </xsl:if>
+ <tr>
+ <td class="fieldname">Calendar:</td>
+ <td class="fieldval">
+ <xsl:variable name="calUrl" select="calendar/path"/>
+ <a href="{$setSelection}&calUrl={$calUrl}">
+ <xsl:value-of select="calendar/name"/>
+ </a>
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <!--==== LIST VIEW (for day, week, and month) ====-->
+ <xsl:template name="listView">
+ <table id="listTable" border="0" cellpadding="0" cellspacing="0">
+ <xsl:choose>
+ <xsl:when test="not(/bedework/eventscalendar/year/month/week/day/event)">
+ <tr>
+ <td class="noEventsCell">
+ No events to display.
+ </td>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:for-each select="/bedework/eventscalendar/year/month/week/day[event]">
+ <xsl:if test="/bedework/periodname='Week' or /bedework/periodname='Month' or /bedework/periodname=''">
+ <tr>
+ <td colspan="5" class="dateRow">
+ <xsl:variable name="date" select="date"/>
+ <a href="{$setViewPeriod}&viewType=dayView&date={$date}">
+ <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:for-each select="event">
+ <xsl:variable name="id" select="id"/>
+ <xsl:variable name="subscriptionId" select="subscription/id"/>
+ <xsl:variable name="calPath" select="calendar/encodedPath"/>
+ <xsl:variable name="guid" select="guid"/>
+ <xsl:variable name="recurrenceId" select="recurrenceId"/>
+ <tr>
+ <xsl:variable name="dateRangeStyle">
+ <xsl:choose>
+ <xsl:when test="start/shortdate = parent::day/shortdate">
+ <xsl:choose>
+ <xsl:when test="start/allday = 'true'">dateRangeCrossDay</xsl:when>
+ <xsl:when test="start/hour24 < 6">dateRangeEarlyMorning</xsl:when>
+ <xsl:when test="start/hour24 < 12">dateRangeMorning</xsl:when>
+ <xsl:when test="start/hour24 < 18">dateRangeAfternoon</xsl:when>
+ <xsl:otherwise>dateRangeEvening</xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>dateRangeCrossDay</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="start/allday = 'true' and
+ start/shortdate = end/shortdate">
+ <td class="{$dateRangeStyle} center" colspan="3">
+ all day
+ </td>
+ </xsl:when>
+ <xsl:when test="start/shortdate = end/shortdate and
+ start/time = end/time">
+ <td class="{$dateRangeStyle} center" colspan="3">
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
+ <xsl:value-of select="start/time"/>
+ </a>
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td class="{$dateRangeStyle} right">
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
+ <xsl:choose>
+ <xsl:when test="start/allday = 'true' and
+ parent::day/shortdate = start/shortdate">
+ today
+ </xsl:when>
+ <xsl:when test="parent::day/shortdate != start/shortdate">
+ <span class="littleArrow">«</span> 
+ <xsl:value-of select="start/month"/>/<xsl:value-of select="start/day"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="start/time"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </a>
+ </td>
+ <td class="{$dateRangeStyle} center">
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">-</a>
+ </td>
+ <td class="{$dateRangeStyle} left">
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
+ <xsl:choose>
+ <xsl:when test="end/allday = 'true' and
+ parent::day/shortdate = end/shortdate">
+ today
+ </xsl:when>
+ <xsl:when test="parent::day/shortdate != end/shortdate">
+ <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/>
+  <span class="littleArrow">»</span>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="end/time"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </a>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:variable name="descriptionClass">
+ <xsl:choose>
+ <xsl:when test="status='CANCELLED'">description bwStatusCancelled</xsl:when>
+ <xsl:when test="status='TENTATIVE'">description bwStatusTentative</xsl:when>
+ <xsl:otherwise>description</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <td class="{$descriptionClass}">
+ <xsl:if test="status='CANCELLED'"><strong>CANCELLED: </strong></xsl:if>
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
+ <strong>
+ <xsl:value-of select="summary"/>:
+ </strong>
+ <xsl:value-of select="description"/> 
+ <em>
+ <xsl:value-of select="location/address"/>
+ <xsl:if test="location/subaddress != ''">
+ , <xsl:value-of select="location/subaddress"/>
+ </xsl:if>. 
+ <xsl:if test="cost!=''">
+ <xsl:value-of select="cost"/>. 
+ </xsl:if>
+ <xsl:if test="sponsor/name!='none'">
+ Contact: <xsl:value-of select="sponsor/name"/>
+ </xsl:if>
+ </em>
+ </a>
+ <xsl:if test="link != ''">
+ <xsl:variable name="link" select="link"/>
+ <a href="{$link}" class="moreLink"><xsl:value-of select="link"/></a>
+ </xsl:if>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
+ <xsl:value-of select="summary"/>
+ <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td class="icons">
+ <variable name="confId" select="/bedework/confirmationid"/>
+ <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
+ <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/>
+ </a>
+ <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
+ <a href="{$export}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
+ <img src="{$resourcesRoot}/images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </xsl:for-each>
+ </xsl:otherwise>
+ </xsl:choose>
+ </table>
+ </xsl:template>
+
+ <!--==== WEEK CALENDAR VIEW ====-->
+ <xsl:template name="weekView">
+ <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <xsl:for-each select="/bedework/daynames/val">
+ <th class="dayHeading"><xsl:value-of select="."/></th>
+ </xsl:for-each>
+ </tr>
+ <tr>
+ <xsl:for-each select="/bedework/eventscalendar/year/month/week/day">
+ <xsl:variable name="dayPos" select="position()"/>
+ <xsl:if test="filler='false'">
+ <td>
+ <xsl:variable name="dayDate" select="date"/>
+ <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}" class="dayLink">
+ <xsl:value-of select="value"/>
+ </a>
+ <ul>
+ <xsl:apply-templates select="event" mode="calendarLayout">
+ <xsl:with-param name="dayPos" select="$dayPos"/>
+ </xsl:apply-templates>
+ </ul>
+ </td>
+ </xsl:if>
+ </xsl:for-each>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <!--==== MONTH CALENDAR VIEW ====-->
+ <xsl:template name="monthView">
+ <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <xsl:for-each select="/bedework/daynames/val">
+ <th class="dayHeading"><xsl:value-of select="."/></th>
+ </xsl:for-each>
+ </tr>
+ <xsl:for-each select="/bedework/eventscalendar/year/month/week">
+ <tr>
+ <xsl:for-each select="day">
+ <xsl:variable name="dayPos" select="position()"/>
+ <xsl:choose>
+ <xsl:when test="filler='true'">
+ <td class="filler"> </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td>
+ <xsl:variable name="dayDate" select="date"/>
+ <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}" class="dayLink">
+ <xsl:value-of select="value"/>
+ </a>
+ <ul>
+ <xsl:apply-templates select="event" mode="calendarLayout">
+ <xsl:with-param name="dayPos" select="$dayPos"/>
+ </xsl:apply-templates>
+ </ul>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </xsl:template>
+
+ <xsl:template match="event" mode="calendarLayout">
+ <xsl:param name="dayPos"/>
+ <xsl:variable name="subscriptionId" select="subscription/id"/>
+ <xsl:variable name="calPath" select="calendar/encodedPath"/>
+ <xsl:variable name="guid" select="guid"/>
+ <xsl:variable name="recurrenceId" select="recurrenceId"/>
+ <xsl:variable name="eventClass">
+ <xsl:choose>
+ <!-- Special styles for the month grid -->
+ <xsl:when test="status='CANCELLED'">eventCancelled</xsl:when>
+ <xsl:when test="status='TENTATIVE'">eventTentative</xsl:when>
+ <xsl:when test="calendar/name='Holidays'">holiday</xsl:when>
+ <!-- Alternating colors for all standard events -->
+ <xsl:when test="position() mod 2 = 1">eventLinkA</xsl:when>
+ <xsl:otherwise>eventLinkB</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <li>
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" class="{$eventClass}">
+ <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
+ <xsl:value-of select="summary"/>
+ <xsl:variable name="eventTipClass">
+ <xsl:choose>
+ <xsl:when test="$dayPos > 5">eventTipReverse</xsl:when>
+ <xsl:otherwise>eventTip</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <span class="{$eventTipClass}">
+ <xsl:if test="status='CANCELLED'"><span class="eventTipStatusCancelled">CANCELLED</span></xsl:if>
+ <xsl:if test="status='TENTATIVE'"><span class="eventTipStatusTentative">TENTATIVE</span></xsl:if>
+ <strong><xsl:value-of select="summary"/></strong><br/>
+ Time:
+ <xsl:choose>
+ <xsl:when test="start/allday = 'false'">
+ <xsl:value-of select="start/time"/>
+ <xsl:if test="start/time != end/time">
+ - <xsl:value-of select="end/time"/>
+ </xsl:if>
+ </xsl:when>
+ <xsl:otherwise>
+ all day
+ </xsl:otherwise>
+ </xsl:choose><br/>
+ <xsl:if test="location/address">
+ Location: <xsl:value-of select="location/address"/><br/>
+ </xsl:if>
+ Calendar: <xsl:value-of select="calendar/name"/>
+ </span>
+ </a>
+ </li>
+ </xsl:template>
+
+ <!--==== YEAR VIEW ====-->
+ <xsl:template name="yearView">
+ <table id="yearCalendarTable" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() <= 3]"/>
+ </tr>
+ <tr>
+ <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 3) and (position() <= 6)]"/>
+ </tr>
+ <tr>
+ <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 6) and (position() <= 9)]"/>
+ </tr>
+ <tr>
+ <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() > 9]"/>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <!-- year view month tables -->
+ <xsl:template match="month">
+ <td>
+ <table class="yearViewMonthTable" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td colspan="8" class="monthName">
+ <xsl:variable name="firstDayOfMonth" select="week/day/date"/>
+ <a href="{$setViewPeriod}&viewType=monthView&date={$firstDayOfMonth}">
+ <xsl:value-of select="longname"/>
+ </a>
+ </td>
+ </tr>
+ <tr>
+ <th> </th>
+ <xsl:for-each select="/bedework/shortdaynames/val">
+ <th><xsl:value-of select="."/></th>
+ </xsl:for-each>
+ </tr>
+ <xsl:for-each select="week">
+ <tr>
+ <td class="weekCell">
+ <xsl:variable name="firstDayOfWeek" select="day/date"/>
+ <a href="{$setViewPeriod}&viewType=weekView&date={$firstDayOfWeek}">
+ <xsl:value-of select="value"/>
+ </a>
+ </td>
+ <xsl:for-each select="day">
+ <xsl:choose>
+ <xsl:when test="filler='true'">
+ <td class="filler"> </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td>
+ <xsl:variable name="dayDate" select="date"/>
+ <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}">
+ <xsl:value-of select="value"/>
+ </a>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </td>
+ </xsl:template>
+
+ <!--==== CALENDARS PAGE ====-->
+ <xsl:template match="calendars">
+ <xsl:variable name="topLevelCalCount" select="count(calendar/calendar)"/>
+ <table id="calPageTable" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <th colspan="2">
+ All Calendars
+ </th>
+ </tr>
+ <tr>
+ <td colspan="2" class="infoCell">
+ Select a calendar from the list below to see only that calendar's events.
+ </td>
+ </tr>
+ <tr>
+ <td class="leftCell">
+ <ul class="calendarTree">
+ <xsl:apply-templates select="calendar/calendar[position() <= ceiling($topLevelCalCount div 2)]" mode="calTree"/>
+ </ul>
+ </td>
+ <td>
+ <ul class="calendarTree">
+ <xsl:apply-templates select="calendar/calendar[position() > ceiling($topLevelCalCount div 2)]" mode="calTree"/>
+ </ul>
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <xsl:template match="calendar" mode="calTree">
+ <xsl:variable name="itemClass">
+ <xsl:choose>
+ <xsl:when test="calendarCollection='false'">folder</xsl:when>
+ <xsl:otherwise>calendar</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="url" select="path"/>
+ <li class="{$itemClass}">
+ <a href="{$setSelection}&calUrl={$url}"><xsl:value-of select="name"/></a>
+ <xsl:if test="calendar">
+ <ul>
+ <xsl:apply-templates select="calendar" mode="calTree"/>
+ </ul>
+ </xsl:if>
+ </li>
+ </xsl:template>
+
+ <!--+++++++++++++++ System Stats ++++++++++++++++++++-->
+ <xsl:template name="stats">
+ <div id="stats">
+ <h2>System Statistics</h2>
+
+ <p>
+ Stats collection:
+ </p>
+ <ul>
+ <li>
+ <a href="{$stats}&enable=yes">enable</a> |
+ <a href="{$stats}&disable=yes">disable</a>
+ </li>
+ <li><a href="{$stats}&fetch=yes">fetch statistics</a></li>
+ <li><a href="{$stats}&dump=yes">dump stats to log</a></li>
+ </ul>
+ <table id="statsTable" cellpadding="0">
+ <xsl:for-each select="/bedework/sysStats/*">
+ <xsl:choose>
+ <xsl:when test="name(.) = 'header'">
+ <tr>
+ <th colspan="2">
+ <xsl:value-of select="."/>
+ </th>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr>
+ <td class="label">
+ <xsl:value-of select="label"/>
+ </td>
+ <td class="value">
+ <xsl:value-of select="value"/>
+ </td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </table>
+ </div>
+ </xsl:template>
+
+ <!--==== UTILITY TEMPLATES ====-->
+
+ <!-- search and replace template taken from
+ http://www.biglist.com/lists/xsl-list/archives/200211/msg00337.html -->
+ <xsl:template name="replace">
+ <xsl:param name="string" select="''"/>
+ <xsl:param name="pattern" select="''"/>
+ <xsl:param name="replacement" select="''"/>
+ <xsl:choose>
+ <xsl:when test="$pattern != '' and $string != '' and contains($string, $pattern)">
+ <xsl:value-of select="substring-before($string, $pattern)"/>
+ <xsl:copy-of select="$replacement"/>
+ <xsl:call-template name="replace">
+ <xsl:with-param name="string" select="substring-after($string, $pattern)"/>
+ <xsl:with-param name="pattern" select="$pattern"/>
+ <xsl:with-param name="replacement" select="$replacement"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$string"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!--==== FOOTER ====-->
+
+ <xsl:template name="footer">
+ <div id="footer">
+ Demonstration calendar; place footer information here.
+ </div>
+ <div id="subFoot">
+ Based on the <a href="http://www.bedework.org/">Bedework Calendar</a> |
+ <a href="?noxslt=yes">show XML</a> |
+ <a href="?refreshXslt=yes">refresh XSLT</a>
+ </div>
+ </xsl:template>
+</xsl:stylesheet>
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/green.css
===================================================================
--- trunk/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/green.css 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/green.css 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,845 +0,0 @@
-body {
- font-family : Arial, Helvetica, sans-serif;
- font-size: 100%; /* needed for IE */
- background-color : white;
- color : black;
- padding: 0.75em 1em 0em 1em;
- min-width: 700px;
-}
-/* Generic selector (overides to common.css) */
-h2 {
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-/* end generic selectors */
-#logoTable {
- padding: 0em;
- margin: 0em;
-}
-#logoTable img {
- display: inline;
- padding: 0 0 1px 5px;
-}
-#logoTable #logoCell {
- white-space: nowrap;
- font-weight: bold;
- font-size: 2em;
-}
-#logoTable #schoolLinksCell {
- vertical-align: bottom;
- text-align: right;
- font-size: 0.8em;
- white-space : nowrap;
- padding: 0 2px 2px 0;
-}
-#logoTable #schoolLinksCell h2 {
- margin: 0 0 2px 0;
- padding: 0;
- font-size: 2em;
- color: #444;
- background-color: transparent;
- border: none;
-}
-#logoTable #schoolLinksCell a:link,
-#logoTable #schoolLinksCell a:visited,
-#logoTable #schoolLinksCell a:active {
- background-color: transparent;
- color: #999;
- text-decoration: none;
-}
-#logoTable #schoolLinksCell a:hover {
- background-color: #eee;
- color: #333;
- text-decoration: none;
-}
-#titleBar {
- display: none;
-}
-#curDateRangeTable {
- width: 100%;
- height: 26px;
- background: #2c5f89 url(../../images/curDateRangeGreen.gif) repeat-x bottom;
- color : #eee;
- margin: 0em;
- font-weight : bold;
- text-align : center;
- vertical-align: middle;
- white-space: nowrap;
-}
-#curDateRangeTable td {
- padding-top: 5px;
- padding-bottom: 1px;
- padding-left: 0.5em;
- padding-right: 0.5em;
-}
-#curDateRangeTable td.sideBarOpenCloseIcon {
- background: url(../../images/curDateRangeGreen-left.gif) no-repeat top left;
- color: inherit;
- width: 200px;
-}
-#curDateRangeTable td.date {
- font-weight : bold;
- text-align : center;
- white-space: nowrap;
-}
-#curDateRangeTable td.rssPrint {
- background: url(../../images/curDateRangeGreen-right.gif) no-repeat top right;
- color: inherit;
- width: 200px;
- font-weight : bold;
- text-align : right;
- white-space: nowrap;
-}
-#curDateRangeTable td.rssPrint img {
- position: relative;
- top: 3px;
-}
-#curDateRangeTable td.rssPrint a:link,
-#curDateRangeTable td.rssPrint a:active,
-#curDateRangeTable td.rssPrint a:visited {
- font-size: 10px;
- color: #eee;
- background-color: transparent;
- font-family: Arial, Helvetica, sans-serif;
- padding: 0;
- text-decoration: none;
- margin-right: 0.5em;
- position: relative;
- top: -3px;
-}
-#curDateRangeTable td.rssPrint a:hover {
- color: #663;
- background-color: #fff;
-}
-#curDateRangeTable td.rssPrint a.rss:link,
-#curDateRangeTable td.rssPrint a.rss:active,
-#curDateRangeTable td.rssPrint a.rss:visited {
- font-size: 10px;
- font-weight: bold;
- color: #444;
- background-color: #ddd;
- font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
- padding: 0px 1px 0px 1px;
- text-decoration: none;
- margin-right: 0.5em;
- margin-left: 2px;
- position: relative;
- top: -3px;
- border: solid 1px #666;
-}
-#curDateRangeTable td.rssPrint a.rss:hover {
- color: #900;
- background-color: #fff;
-}
-#searchBarTable {
- margin: 0px;
- padding: 0em;
- background-color : #eee;
- color: black;
- font-size: 0.9em;
-}
-#searchBarTable .leftCell {
- margin: 0px;
- padding: 0em;
- border-left: 3px solid #333;
- padding: 0.1em 0 0 0.5em;
- white-space: nowrap;
-}
-#searchBarTable .leftCell .link {
- font-size: 0.8em;
- padding-left: 1em;
- color: #999;
- background-color: transparent;
-}
-#searchBarTable .leftCell a {
- color: #888;
- background-color: transparent;
-}
-#searchBarTable .leftCell a:hover {
- color: #b00;
- background-color: transparent;
-}
-#searchBarTable .rightCell {
- margin: 0px;
- padding: 0em;
- text-align: right;
- border-right: 3px solid #333;
- padding: 0.1em 0.1em 0em 0em;
- white-space: nowrap;
-}
-#searchBarTable form {
- display: inline;
- margin: 0px 0px 1px 0px;
- padding: 0em;
-}
-#tabsTable {
- margin: 0em;
- padding: 4px 0px 0px 0px;
- text-align: center;
- background-color: #333;
- color: #eee;
-}
-#tabsTable .centerCell a {
- text-decoration: none;
- color: #eee;
-}
-#tabsTable .centerCell img {
- margin-right: 1px;
-}
-#tabsTable .rightCell {
- background : url(../../images/demo/std-tab-space.gif);
- padding-right: 0.5em;
-}
-#navigationBarTable {
- font-size: 0.8em;
- margin: 0em;
- padding: 0em;
- vertical-align: top;
- border-left : 2px solid #333;
- border-right : 2px solid #333;
- border-bottom: 1px solid Gray;
-}
-#navigationBarTable a {
- text-decoration: none;
- white-space: nowrap;
-}
-#navigationBarTable td {
- vertical-align: top;
-}
-#navigationBarTable form {
- display: inline;
- margin-bottom: 0em;
-}
-#navigationBarTable table {
- display: inline;
- margin-bottom: 0em;
-}
-#navigationBarTable td.todayButton {
- padding: 1em 1em 0 1em;
-}
-#navigationBarTable td.gotoForm {
- padding: 1em 0.5em 0 0;
-}
-#navigationBarTable td.leftCell {
- text-align: left;
- white-space: nowrap;
- padding-left: 0.5em;
- font-size: 1.3em;
- font-weight: bold;
- padding: 0.75em 0em 0.75em 1em;
- width: 100%;
- vertical-align: middle;
-}
-#navigationBarTable td.leftCell .prevImg {
- margin: 0 0.2em 0 0;
- vertical-align: top;
-}
-#navigationBarTable td.leftCell .nextImg {
- margin: 0 0.75em 0 0;
- vertical-align: top;
-}
-#navigationBarTable td.rightCell {
- text-align: right;
- padding: 1em 0.5em 0em 0em;
-}
-#navigationBarTable td.rightCell select {
- padding-right: 0em;
- margin: 0em;
- width: 10em;
-}
-#searchBarTable .calLinks {
- white-space: nowrap;
-}
-#eventTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#eventTable td.fieldval {
- margin: 0em;
- vertical-align: top;
- padding: 0.5em 0.5em 0.2em 1em;
-}
-#eventTable td.fieldname {
- margin: 0em;
- vertical-align: top;
- padding: 0.5em 0.5em 0.2em 0.5em;
- color: black;
- background-color: #eee;
-}
-#eventTable th.fieldval {
- text-align: left;
- padding: 1em 0.5em 0.5em 1em;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#eventTable th.fieldname {
- text-align: left;
- padding: 1em 0.5em 0.5em 0.5em;
- background-color: #eee;
- color: black;
-}
-#eventTable th.icalIcon {
- margin: 0em;
- vertical-align: middle;
- text-align: right;
- padding: 0.5em 1em 0.2em 0.5em;
- white-space: nowrap;
- font-size: 0.9em;
- font-weight: normal;
-}
-#eventTable th.icalIcon a {
- text-decoration: none;
-}
-#eventTable th.icalIcon img {
- vertical-align: middle;
- padding-left: 1em;
-}
-#calPageTable {
- width: 100%;
- font-size: 100%;
- margin: 0px;
- padding: 0px;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#calPageTable td {
- width: 50%;
- vertical-align: top;
- padding: 0.5em 2em 1em 3em;
-}
-#calPageTable th {
- font-size: 1.2em;
- background-color: #ccc;
- color: black;
- font-weight: bold;
-}
-#calPageTable td.leftCell {
- border-right : thin dashed #999;
-}
-#calPageTable h2 {
- font-size: 1.2em;
-}
-#calPageTable td.infoCell {
- background-color: #eee;
- color: black;
- text-align: center;
-}
-#dayCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#dayCalendarTable td {
- padding: 0.4em;
- margin: 0em;
-}
-#dayCalendarTable .dateRange {
- text-align: left;
- background-color: #dadfaf;
- color: black;
- white-space: nowrap;
-}
-#dayCalendarTable .description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#dayCalendarTable .more {
- text-align: center;
- background-color: #eee;
- color: black;
- font-size: 0.8em;
-}
-#weekCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#weekCalendarTable td {
- padding: 0.4em;
- margin: 0em;
-}
-#weekCalendarTable .dateRange {
- text-align: left;
- background-color: #dfd;
- color: black;
- white-space: nowrap;
-}
-#weekCalendarTable .description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#weekCalendarTable .more {
- text-align: center;
- background-color: #eee;
- color: black;
- font-size: 0.8em;
-}
-#monthCalendarTable {
- width: 100%;
- font-size: 0.8em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#monthCalendarTable th.dayHeading {
- width: 14%;
- text-align: center;
- vertical-align: middle;
- background-color: #363;
- color: #eee;
- border: 1px solid black;
-}
-#monthCalendarTable td {
- width: 14%;
- height: 60px;
- vertical-align: top;
- text-align: left;
- padding: 0em;
- border: 1px solid #aaa;
- background-color: white;
- color: black;
-}
-#monthCalendarTable td.filler {
- border: none;
- background-color: #eee;
- color: black;
-}
-#monthCalendarTable ul {
- font-size: 0.8em;
- list-style : none;
- margin: 0em;
- padding: 0.3em 0em 0em 0em;
-}
-#monthCalendarTable ul li {
- margin: 0em;
- padding: 0em;
- display: inline;
-}
-#monthCalendarTable a.eventLinkA:link,
-#monthCalendarTable a.eventLinkA:visited,
-#monthCalendarTable a.eventLinkA:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #dadfaf;
- color: black;
-}
-#monthCalendarTable a.eventLinkB:link,
-#monthCalendarTable a.eventLinkB:visited,
-#monthCalendarTable a.eventLinkB:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #edf2bd;
- color: black;
-}
-#monthCalendarTable a.eventCancelled:link,
-#monthCalendarTable a.eventCancelled:visited,
-#monthCalendarTable a.eventCancelled:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #ccc;
- color: black;
-}
-#monthCalendarTable a.eventTentative:link,
-#monthCalendarTable a.eventTentative:visited,
-#monthCalendarTable a.eventTentative:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- border-bottom: 1px solid #ccc;
- border-top: 1px solid #ccc;
- background: #eee url('../../images/tentativeLines.gif') top;
- color: black;
-}
-#monthCalendarTable a.holiday:link,
-#monthCalendarTable a.holiday:visited,
-#monthCalendarTable a.holiday:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #fff;
- color: black;
- /*border-top: 1px solid black;
- border-bottom: 1px solid black;*/
-}
-#monthCalendarTable a.eventLinkA:hover,
-#monthCalendarTable a.eventLinkB:hover,
-#monthCalendarTable a.eventCancelled:hover,
-#monthCalendarTable a.eventTentative:hover,
-#monthCalendarTable a.holiday:hover {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- color: black;
- background-color: #ffc;
-}
-#monthCalendarTable a.dayLink {
- text-decoration: none;
- color: black;
- background-color: transparent;
-}
-#monthCalendarTable a:hover.dayLink {
- text-decoration: none;
- color: #eee;
- background-color: black;
-}
-#monthCalendarTable a:hover {
- /* required for eventTip to hover correctly;
- apply only to the hover pseudo class, or
- the other anchors nearby will cover the eventTip in IE */
- position: relative;
-}
-#monthCalendarTable a span.eventTip,
-#monthCalendarTable a span.eventTipReverse {
- display: none;
-}
-#monthCalendarTable a:hover span.eventTip {
- display: block;
- position: absolute;
- width: 20em;
- top: 1em;
- left: 12em;
- background-color: #ffe;
- color: black;
- padding: 4px;
- border: 1px solid #333;
- /*opacity: .80;
- filter: alpha(opacity=80);*/
-}
-#monthCalendarTable a:hover span.eventTipReverse {
- display: block;
- position: absolute;
- width: 20em;
- top: 1em;
- left: -21em;
- background-color: #ffe;
- color: black;
- padding: 4px;
- border: 1px solid #333;
- /*opacity: .80;
- filter: alpha(opacity=80);*/
-}
-#monthCalendarTable a:hover span.eventTipStatusCancelled {
- display: block;
- color: white;
- background-color: #333;
- padding: 2px;
- margin-bottom: 6px;
- text-align: center;
-}
-#monthCalendarTable a:hover span.eventTipStatusTentative {
- display: block;
- color: black;
- background: #eee url('../../images/tentativeLines.gif') top;
- padding: 2px;
- margin-bottom: 6px;
- border: 1px solid #ccc;
- text-align: center;
-}
-a.gridAdd {
- display: block;
- float: right;
- font-size: 0.8em;
- text-decoration: none;
- margin-right: 2px;
-}
-#yearCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0em;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#yearCalendarTable td {
- padding: 1em 0em 0em 0em;
- margin: 0em;
- vertical-align: top;
- text-align: center;
- width: 33%;
-}
-#yearCalendarTable table.yearViewMonthTable {
- margin: 0em 1em 0.5em 1em;
- border: 1px solid #666;
-}
-#yearCalendarTable table.yearViewMonthTable td {
- text-align: center;
- padding: 0.2em;
- width: 12.5%;
-}
-#yearCalendarTable table.yearViewMonthTable th {
- font-weight: bold;
- background-color: #f5f5f5;
- color: black;
- padding: 0.2em;
-}
-#yearCalendarTable table.yearViewMonthTable td.monthName {
- font-weight: bold;
- text-align: center;
- background-color: #666;
- color: #eee;
- white-space: nowrap;
- border-bottom: 1px solid #999;
-}
-#yearCalendarTable table.yearViewMonthTable td.weekCell {
- font-weight: bold;
- font-size: 0.8em;
- background-color: #f5f5f5;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td.weekCell a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td.monthName a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: #eee;
-}
-#yearCalendarTable table.yearViewMonthTable td a:hover {
- text-decoration: none;
- background-color: #ffc;
- color: black;
- border: 1px solid black;
- padding: 0;
-}
-#listTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#listTable td {
- padding: 0.5em;
- margin: 0em;
- border-bottom: 1px solid #bbb;
-}
-#listTable td a {
- background-color: transparent;
- color: black;
- text-decoration: none;
-}
-#listTable td.dateRangeCrossDay {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #ddd;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeEarlyMorning {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #d4d5c9;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeMorning {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #edf2bd;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeAfternoon {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #dadfaf;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeEvening {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #cacf9f;
- color: black;
- white-space: nowrap;
-}
-#listTable span.littleArrow {
- font-size: 1.4em;
-}
-#listTable td.description {
- text-align: left;
- background-color: white;
- color: black;
- width: 100%;
-}
-#listTable td.bwStatusCancelled {
- background-color: #ddd;
- color: black;
-}
-#listTable td.bwStatusTentative {
- background: white url('../../images/tentativeLines.gif') top;
- color: black;
-}
-#listTable td.description a {
- display: block;
- background-color: transparent;
- color: black;
- text-decoration: none;
-}
-#listTable td.description a.moreLink {
- display: inline;
- background-color: transparent;
- color: #900;
- text-decoration: underline;
-}
-#listTable td.description:hover {
- background-color: #eee;
- color: black;
- text-decoration: none;
-}
-#listTable td.dateRow {
- text-align: left;
- background-color: #888;
- color: #eee;
- font-size: 0.8em;
- padding: 0.2em 0.5em 0.2em 0.5em;
- margin: 0em;
-}
-#listTable td.dateRow a {
- display: block;
- color: #fff;
- background-color: transparent;
- font-weight: bold;
- text-decoration : none;
-}
-#listTable td.icons {
- color: black;
- background-color: #ddd;
- white-space: nowrap;
-}
-#listTable td.icons img.addref {
- margin-right: 0.5em;
-}
-#calPageTable ul.calendarTree li {
- font-weight: bold;
-}
-#calPageTable ul.calendarTree li ul li {
- font-weight: normal;
-}
-#calPageTable ul.calendarTree li.folder {
- list-style-image: url(../../images/demo/catIcon.gif);
- padding-top: 0.25em;
- padding-bottom: 0.25em;
-}
-#calPageTable ul.calendarTree li.calendar {
- list-style-image: url(../../images/demo/calIcon-sm.gif);
-}
-.noEventsCell {
- padding: 1em;
-}
-#footer {
- font-size: 0.75em;
- text-align : center;
- margin-top: 0em;
- padding: 1em;
- color: #333;
- background-color: #eee;
- border-bottom: 2px solid #333;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
- white-space: nowrap;
-}
-#footer a {
- color: #333;
- background-color: transparent;
- text-decoration: underline;
-}
-#skinSelectorTable {
- width: 100%;
- padding-top: 0.5em;
- font-size: 0.7em;
- color: #333;
- background-color: inherit;
-}
-#skinSelectorTable td {
- vertical-align: top;
-}
-#skinSelectorTable td.rightCell {
- text-align: right;
-}
-#skinSelectorTable td.leftCell {
- text-align: left;
- color: #999;
- background-color: inherit;
-}
-#skinSelectorTable td.leftCell a {
- color: #999;
- background-color: inherit;
-}
-#skinSelectorTable td.rightCell form {
- display: inline;
- margin: 0em;
- padding: 0em;
-}
-#skinSelectorTable td.rightCell select {
- font-size: 0.9em;
- color: #333;
- background-color: #eee;
-}
-/* LINKS */
-a:link, a:active, a:visited {
- color: #060;
- background-color: transparent;
-}
-a:hover {
- color: #b00;
- background-color: transparent;
-}
-span.time {
- text-transform : lowercase;
-}
-#featureHighlight {
- color: #dd0;
- font-style: italic;
-}
-.center {
- text-align: center;
-}
-.left {
- text-align: left;
-}
-.right {
- text-align: right;
-}
\ No newline at end of file
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/jsToday.xsl
===================================================================
--- trunk/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/jsToday.xsl 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/jsToday.xsl 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="html" omit-xml-declaration="yes" indent="no" media-type="text/javascript" standalone="yes"/>
-
- <!-- usage: call the javascript feed from an html file by embedding the
- following script tag:
- <script src="http://yourservername/cal/setViewPeriod.do?viewType=todayView&skinName=jsToday&contentType=text/javascript&contentName=bedework.js" type="text/javascript"></script>
-
- e.g.
- <script src="http://localhost:8080/cal/setViewPeriod.do?viewType=todayView&skinName=jsToday&contentType=text/javascript&contentName=bedework.js" type="text/javascript"></script>
-
- You should uncomment the code below that reads "Today's Events" and throw
- away the following line. You should modify this stylesheet if you intend
- to display more than a single day's events.
- -->
-
- <!-- **********************************************************************
- Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved.
-
- Redistribution and use of this distribution in source and binary forms,
- with or without modification, are permitted provided that:
- The above copyright notice and this permission notice appear in all
- copies and supporting documentation;
-
- The name, identifiers, and trademarks of Rensselaer Polytechnic
- Institute are not used in advertising or publicity without the
- express prior written permission of Rensselaer Polytechnic Institute;
-
- DISCLAIMER: The software is distributed" AS IS" without any express or
- implied warranty, including but not limited to, any implied warranties
- of merchantability or fitness for a particular purpose or any warrant)'
- of non-infringement of any current or pending patent rights. The authors
- of the software make no representations about the suitability of this
- software for any particular purpose. The entire risk as to the quality
- and performance of the software is with the user. Should the software
- prove defective, the user assumes the cost of all necessary servicing,
- repair or correction. In particular, neither Rensselaer Polytechnic
- Institute, nor the authors of the software are liable for any indirect,
- special, consequential, or incidental damages related to the software,
- to the maximum extent the law permits. -->
-
- <xsl:variable name="urlprefix" select="/bedework/urlprefix"/>
- <xsl:template match="/">
- <xsl:text disable-output-escaping="yes">document.writeln('<h3>');</xsl:text>
- <!--<xsl:text disable-output-escaping="yes">document.writeln("Today's Events");</xsl:text>-->
- <xsl:text disable-output-escaping="yes">document.writeln("This Period's Events");</xsl:text>
- <xsl:text disable-output-escaping="yes">document.writeln('</h3>');</xsl:text>
- <xsl:text disable-output-escaping="yes">document.writeln('<ul class="eventFeed">');</xsl:text>
- <xsl:choose>
- <xsl:when test="/bedework/eventscalendar/year/month/week/day/event">
- <xsl:apply-templates select="/bedework/eventscalendar/year/month/week/day/event"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text disable-output-escaping="yes">document.writeln('<li>');</xsl:text>
- <xsl:text disable-output-escaping="yes">document.writeln('There are no events posted today');</xsl:text>
- <xsl:text disable-output-escaping="yes">document.writeln('</li>');</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text disable-output-escaping="yes">document.writeln('</ul>');</xsl:text>
- </xsl:template>
- <xsl:template match="event">
- <xsl:variable name="aposStrippedSummary">
- <xsl:call-template name="replace">
- <xsl:with-param name="string" select="summary"/>
- <xsl:with-param name="pattern" select='"'"'/>
- <xsl:with-param name="replacement" select='"\'"'/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="strippedSummary" select='translate($aposStrippedSummary,"
"," ")'/>
- <xsl:text disable-output-escaping="yes">document.writeln('<li>');</xsl:text>
- <xsl:text disable-output-escaping="yes">document.writeln(' <a href="</xsl:text><xsl:value-of select="$urlprefix"/><xsl:text disable-output-escaping="yes">/eventView.do?subid=</xsl:text><xsl:value-of select="subscription/id"/><xsl:text disable-output-escaping="yes">&guid=</xsl:text><xsl:value-of select="guid"/><xsl:text disable-output-escaping="yes">&recurrenceId=</xsl:text><xsl:value-of select="recurrenceId"/><xsl:text disable-output-escaping="yes">&calPath=</xsl:text><xsl:value-of select="calendar/encodedPath"/><xsl:text disable-output-escaping="yes">&skinName=default" target="_top"></xsl:text><xsl:value-of select="$strippedSummary" disable-output-escaping="yes"/><xsl:text disable-output-escaping="yes"></a>');</xsl:text>
- <xsl:text disable-output-escaping="yes">document.writeln('</li>');</xsl:text>
- </xsl:template>
- <xsl:template name="replace">
- <xsl:param name="string" select="''"/>
- <xsl:param name="pattern" select="''"/>
- <xsl:param name="replacement" select="''"/>
- <xsl:choose>
- <xsl:when test="$pattern != '' and $string != '' and contains($string, $pattern)">
- <xsl:value-of select="substring-before($string, $pattern)"/>
- <xsl:copy-of select="$replacement"/>
- <xsl:call-template name="replace">
- <xsl:with-param name="string" select="substring-after($string, $pattern)"/>
- <xsl:with-param name="pattern" select="$pattern"/>
- <xsl:with-param name="replacement" select="$replacement"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$string"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-</xsl:stylesheet>
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/print.css
===================================================================
--- trunk/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/print.css 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/print.css 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,401 +0,0 @@
-body {
- font-family : Arial, Helvetica, sans-serif;
- background-color : white;
- color : black;
- padding: 0.75em 1em 0em 1em;
- margin: 0in;
- font-size: 10pt;
-}
-tr {
- page-break-inside: avoid;
-}
-td {
- page-break-inside: avoid;
-}
-#logoTable {
- display: none;
-}
-#titleBar {
- background-color: #eee;
- color: black;
- display: block;
- text-align: center;
- font-size: 0.7em;
- margin: 0em;
- padding: 0em;
- letter-spacing : 0.1em;
-}
-#dateBarTable td {
- background-color: #eee;
- color : black;
- padding-top: 2px;
- padding-bottom: 1em;
- padding-left: 0.5em;
- padding-right: 0.5em;
- border-bottom: 1px solid #333;
- margin: 0em;
- font-weight : bold;
- text-align : center;
- white-space: nowrap;
-}
-#dateBarTable td.imgCell {
- display: none;
-}
-#searchBarTable {
- display: none;
-}
-#tabsTable {
- display: none;
-}
-#navigationBarTable {
- display: none;
-}
-#eventTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #333;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#eventTable td {
- margin: 0em;
- vertical-align: top;
- padding: 0.5em 0.5em 0.2em 0.5em;
-}
-#eventTable td.icalIcon {
- display: none;
-}
-#eventTable th {
- text-align: left;
- padding: 1em 0.5em 1em 0.5em;
- background-color: #666;
- color: #eee;
-}
-#eventTable th.fieldval {
- width: 100%;
-}
-#calPageTable {
- width: 100%;
- font-size: 100%;
- margin: 0px;
- padding: 0px;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#calPageTable td {
- width: 50%;
- vertical-align: top;
- padding: 0.5em 2em 1em 3em;
-}
-#calPageTable th {
- font-size: 1.2em;
- background-color: #ccc;
- color: black;
- font-weight: bold;
-}
-#calPageTable td.leftCell {
- border-right : thin dashed #999;
-}
-#calPageTable h2 {
- font-size: 1.2em;
-}
-#calPageTable td.infoCell {
- background-color: #eee;
- color: black;
- text-align: center;
-}
-#dayCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#dayCalendarTable td {
- padding: 0.4em;
- margin: 0em;
-}
-#dayCalendarTable .dateRange {
- text-align: left;
- background-color: #fee;
- color: black;
- white-space: nowrap;
-}
-#dayCalendarTable .description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#dayCalendarTable .more {
- text-align: center;
- background-color: #eee;
- color: black;
- font-size: 0.8em;
-}
-#weekCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#weekCalendarTable td {
- padding: 0.4em;
- margin: 0em;
-}
-#weekCalendarTable .dateRange {
- text-align: left;
- background-color: #fdd;
- color: black;
- white-space: nowrap;
-}
-#weekCalendarTable .description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#weekCalendarTable .more {
- text-align: center;
- background-color: #eee;
- color: black;
- font-size: 0.8em;
-}
-#monthCalendarTable {
- width: 100%;
- font-size: 0.8em;
- margin: 0px;
- padding: 0px;
- /*border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;*/
-}
-#monthCalendarTable th.dayHeading {
- width: 14%;
- text-align: center;
- vertical-align: middle;
- background-color: #666;
- color: #eee;
- border: 1px solid black;
-}
-#monthCalendarTable td {
- width: 14%;
- height: 60px;
- vertical-align: top;
- text-align: left;
- padding: 0em;
- border: 1px solid #333;
- background-color: white;
- color: black;
-}
-#monthCalendarTable td.filler {
- border: none;
- background-color: #eee;
- color: black;
- /*border: 1px solid #aaa;*/
-}
-#monthCalendarTable ul {
- font-size: 0.8em;
- list-style : none;
- margin: 0em;
- padding: 0.3em 0em 0em 0em;
-}
-#monthCalendarTable ul li {
- margin: 0em;
- padding: 0em;
- display: block;
- border-top: 1px solid #666;
-}
-#monthCalendarTable ul li:first-child {
- border-top: none;
-}
-
-#monthCalendarTable span.eventLinkA {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #fcc;
- color: black;
- border-bottom: 1px solid #666;
-}
-#monthCalendarTable span.eventLinkB {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #fee;
- color: black;
-}
-#yearCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0em;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#yearCalendarTable td {
- padding: 1em 0em 0em 0em;
- margin: 0em;
- vertical-align: top;
- text-align: center;
- width: 33%;
-}
-#yearCalendarTable table.yearViewMonthTable {
- margin: 0em 1em 0.5em 1em;
- border: 1px solid #666;
-}
-#yearCalendarTable table.yearViewMonthTable td {
- text-align: center;
- padding: 0.2em;
- width: 12.5%;
-}
-#yearCalendarTable table.yearViewMonthTable th {
- font-weight: bold;
- background-color: #f5f5f5;
- color: black;
- padding: 0.2em;
-}
-#yearCalendarTable table.yearViewMonthTable td.monthName {
- font-weight: bold;
- text-align: center;
- background-color: #666;
- color: #eee;
- white-space: nowrap;
- border-bottom: 1px solid #999;
-}
-#yearCalendarTable table.yearViewMonthTable td.weekCell {
- font-weight: bold;
- font-size: 0.8em;
- background-color: #f5f5f5;
- color: black;
-}
-#listTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#listTable td {
- padding: 0.5em;
- margin: 0em;
- border-bottom: 1px solid #bbb;
-}
-#listTable td.dateRangeCrossDay {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #ddd;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeEarlyMorning {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #dcc3c3;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeMorning {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #fee;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeAfternoon {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #fdd;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeEvening {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #fcc;
- color: black;
- white-space: nowrap;
-}
-#listTable span.littleArrow {
- font-size: 1.4em;
-}
-#listTable td.description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#listTable td.dateRow {
- text-align: left;
- background-color: #888;
- color: #eee;
- font-size: 0.8em;
- padding: 0.2em 0.5em 0.2em 0.5em;
- margin: 0em;
-}
-#listTable td.icons {
- display: none;
-}
-.noEventsCell {
- padding: 1em;
-}
-#footer {
- font-size: 0.8em;
- text-align : center;
- margin-top: 0em;
- padding: 1em;
- color: #333;
- background-color: #eee;
- border-bottom: 2px solid #333;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#skinSelectorTable {
- display: none;
- width: 100%;
- padding-top: 0.5em;
- font-size: 0.7em;
- color: #333;
- background-color: inherit;
-}
-#skinSelectorTable td {
- vertical-align: top;
-}
-#skinSelectorTable td.rightCell {
- text-align: right;
-}
-#skinSelectorTable td.leftCell {
- text-align: left;
- color: #999;
- background-color: inherit;
-}
-#skinSelectorTable td.rightCell form {
- display: inline;
- margin: 0em;
- padding: 0em;
-}
-#skinSelectorTable td.rightCell select {
- font-size: 0.9em;
- color: #333;
- background-color: #eee;
-}
-a.submitPublicEvent {
- display: none;
-}
\ No newline at end of file
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/red.css
===================================================================
--- trunk/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/red.css 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/red.css 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,850 +0,0 @@
-body {
- font-family : Arial, Helvetica, sans-serif;
- font-size: 100%; /* needed for IE */
- background-color : white;
- color : black;
- padding: 0.75em 1em 0em 1em;
- min-width: 700px;
-}
-/* Generic selector (overides to common.css) */
-h2 {
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-/* end generic selectors */
-#logoTable {
- padding: 0em;
- margin: 0em;
-}
-#logoTable img {
- display: inline;
- padding: 0 0 1px 5px;
-}
-#logoTable #logoCell {
- white-space: nowrap;
- font-weight: bold;
- font-size: 2em;
-}
-#logoTable #schoolLinksCell {
- vertical-align: bottom;
- text-align: right;
- font-size: 0.8em;
- white-space : nowrap;
- padding: 0 2px 2px 0;
-}
-#logoTable #schoolLinksCell h2 {
- margin: 0 0 2px 0;
- padding: 0;
- font-size: 2em;
- color: #444;
- background-color: transparent;
- border: none;
-}
-#logoTable #schoolLinksCell a:link,
-#logoTable #schoolLinksCell a:visited,
-#logoTable #schoolLinksCell a:active {
- background-color: transparent;
- color: #999;
- text-decoration: none;
-}
-#logoTable #schoolLinksCell a:hover {
- background-color: #eee;
- color: #333;
- text-decoration: none;
-}
-#titleBar {
- display: none;
-}
-#curDateRangeTable {
- width: 100%;
- height: 26px;
- background: #2c5f89 url(../../images/curDateRangeRed.gif) repeat-x bottom;
- color : #eee;
- margin: 0em;
- font-weight : bold;
- text-align : center;
- vertical-align: middle;
- white-space: nowrap;
-}
-#curDateRangeTable td {
- padding-top: 5px;
- padding-bottom: 1px;
- padding-left: 0.5em;
- padding-right: 0.5em;
-}
-#curDateRangeTable td.sideBarOpenCloseIcon {
- background: url(../../images/curDateRangeRed-left.gif) no-repeat top left;
- color: inherit;
- width: 200px;
-}
-#curDateRangeTable td.date {
- font-weight : bold;
- text-align : center;
- white-space: nowrap;
-}
-#curDateRangeTable td.rssPrint {
- background: url(../../images/curDateRangeRed-right.gif) no-repeat top right;
- color: inherit;
- width: 200px;
- font-weight : bold;
- text-align : right;
- white-space: nowrap;
-}
-#curDateRangeTable td.rssPrint img {
- position: relative;
- top: 3px;
-}
-#curDateRangeTable td.rssPrint a:link,
-#curDateRangeTable td.rssPrint a:active,
-#curDateRangeTable td.rssPrint a:visited {
- font-size: 10px;
- color: #eee;
- background-color: transparent;
- font-family: Arial, Helvetica, sans-serif;
- padding: 0;
- text-decoration: none;
- margin-right: 0.5em;
- position: relative;
- top: -3px;
-}
-#curDateRangeTable td.rssPrint a:hover {
- color: #663;
- background-color: #fff;
-}
-#curDateRangeTable td.rssPrint a.rss:link,
-#curDateRangeTable td.rssPrint a.rss:active,
-#curDateRangeTable td.rssPrint a.rss:visited {
- font-size: 10px;
- font-weight: bold;
- color: #444;
- background-color: #ddd;
- font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
- padding: 0px 1px 0px 1px;
- text-decoration: none;
- margin-right: 0.5em;
- margin-left: 2px;
- position: relative;
- top: -3px;
- border: solid 1px #666;
-}
-#curDateRangeTable td.rssPrint a.rss:hover {
- color: #900;
- background-color: #fff;
-}
-#searchBarTable {
- margin: 0px;
- padding: 0em;
- background-color : #eee;
- color: black;
- font-size: 0.9em;
-}
-#searchBarTable .leftCell {
- margin: 0px;
- padding: 0em;
- border-left: 3px solid #333;
- padding: 0.1em 0 0 0.5em;
- white-space: nowrap;
-}
-#searchBarTable .leftCell .link {
- font-size: 0.8em;
- padding-left: 1em;
- color: #999;
- background-color: transparent;
-}
-#searchBarTable .leftCell a {
- color: #888;
- background-color: transparent;
-}
-#searchBarTable .leftCell a:hover {
- color: #b00;
- background-color: transparent;
-}
-#searchBarTable .rightCell {
- margin: 0px;
- padding: 0em;
- text-align: right;
- border-right: 3px solid #333;
- padding: 0.1em 0.1em 0em 0em;
- white-space: nowrap;
-}
-#searchBarTable form {
- display: inline;
- margin: 0px 0px 1px 0px;
- padding: 0em;
-}
-#tabsTable {
- margin: 0em;
- padding: 4px 0px 0px 0px;
- text-align: center;
- background-color: #333;
- color: #eee;
-}
-#tabsTable .centerCell a {
- text-decoration: none;
- color: #eee;
-}
-#tabsTable .centerCell img {
- margin-right: 1px;
-}
-#tabsTable .rightCell {
- background : url(../../images/demo/std-tab-space.gif);
- padding-right: 0.5em;
-}
-#navigationBarTable {
- font-size: 0.8em;
- margin: 0em;
- padding: 0em;
- vertical-align: top;
- border-left : 2px solid #333;
- border-right : 2px solid #333;
- border-bottom: 1px solid Gray;
-}
-#navigationBarTable a {
- text-decoration: none;
- white-space: nowrap;
-}
-#navigationBarTable td {
- vertical-align: top;
-}
-#navigationBarTable form {
- display: inline;
- margin-bottom: 0em;
-}
-#navigationBarTable table {
- display: inline;
- margin-bottom: 0em;
-}
-#navigationBarTable td.todayButton {
- padding: 1em 1em 0 1em;
-}
-#navigationBarTable td.gotoForm {
- padding: 1em 0.5em 0 0;
-}
-#navigationBarTable td.leftCell {
- text-align: left;
- white-space: nowrap;
- padding-left: 0.5em;
- font-size: 1.3em;
- font-weight: bold;
- padding: 0.75em 0em 0.75em 1em;
- width: 100%;
- vertical-align: middle;
-}
-#navigationBarTable td.leftCell .prevImg {
- margin: 0;
- vertical-align: top;
-}
-#navigationBarTable td.leftCell .prevImg {
- margin: 0 0.2em 0 0;
- vertical-align: top;
-}
-#navigationBarTable td.leftCell .nextImg {
- margin: 0 0.75em 0 0;
- vertical-align: top;
-}
-#navigationBarTable td.rightCell select {
- padding-right: 0em;
- margin: 0em;
- width: 10em;
-}
-#searchBarTable .calLinks {
- white-space: nowrap;
-}
-#eventTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#eventTable td.fieldval {
- margin: 0em;
- vertical-align: top;
- padding: 0.5em 0.5em 0.2em 1em;
-}
-#eventTable td.fieldname {
- margin: 0em;
- vertical-align: top;
- padding: 0.5em 0.5em 0.2em 0.5em;
- color: black;
- background-color: #eee;
-}
-#eventTable th.fieldval {
- text-align: left;
- padding: 1em 0.5em 0.5em 1em;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#eventTable th.fieldname {
- text-align: left;
- padding: 1em 0.5em 0.5em 0.5em;
- background-color: #eee;
- color: black;
-}
-#eventTable th.icalIcon {
- margin: 0em;
- vertical-align: middle;
- text-align: right;
- padding: 0.5em 1em 0.2em 0.5em;
- white-space: nowrap;
- font-size: 0.9em;
- font-weight: normal;
-}
-#eventTable th.icalIcon a {
- text-decoration: none;
-}
-#eventTable th.icalIcon img {
- vertical-align: middle;
- padding-left: 1em;
-}
-#calPageTable {
- width: 100%;
- font-size: 100%;
- margin: 0px;
- padding: 0px;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#calPageTable td {
- width: 50%;
- vertical-align: top;
- padding: 0.5em 2em 1em 3em;
-}
-#calPageTable th {
- font-size: 1.2em;
- background-color: #ccc;
- color: black;
- font-weight: bold;
-}
-#calPageTable td.leftCell {
- border-right : thin dashed #999;
-}
-#calPageTable h2 {
- font-size: 1.2em;
-}
-#calPageTable td.infoCell {
- background-color: #eee;
- color: black;
- text-align: center;
-}
-#dayCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#dayCalendarTable td {
- padding: 0.4em;
- margin: 0em;
-}
-#dayCalendarTable .dateRange {
- text-align: left;
- background-color: #fee;
- color: black;
- white-space: nowrap;
-}
-#dayCalendarTable .description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#dayCalendarTable .more {
- text-align: center;
- background-color: #eee;
- color: black;
- font-size: 0.8em;
-}
-#weekCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#weekCalendarTable td {
- padding: 0.4em;
- margin: 0em;
-}
-#weekCalendarTable .dateRange {
- text-align: left;
- background-color: #fdd;
- color: black;
- white-space: nowrap;
-}
-#weekCalendarTable .description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#weekCalendarTable .more {
- text-align: center;
- background-color: #eee;
- color: black;
- font-size: 0.8em;
-}
-#monthCalendarTable {
- width: 100%;
- font-size: 0.8em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#monthCalendarTable th.dayHeading {
- width: 14%;
- text-align: center;
- vertical-align: middle;
- background-color: #900;
- color: #eee;
- border: 1px solid black;
-}
-#monthCalendarTable td {
- width: 14%;
- height: 60px;
- vertical-align: top;
- text-align: left;
- padding: 0em;
- border: 1px solid #aaa;
- background-color: white;
- color: black;
-}
-#monthCalendarTable td.filler {
- border: none;
- background-color: #eee;
- color: black;
-}
-#monthCalendarTable ul {
- font-size: 0.8em;
- list-style : none;
- margin: 0em;
- padding: 0.3em 0em 0em 0em;
-}
-#monthCalendarTable ul li {
- margin: 0em;
- padding: 0em;
- display: inline;
-}
-#monthCalendarTable a.eventLinkA:link,
-#monthCalendarTable a.eventLinkA:visited,
-#monthCalendarTable a.eventLinkA:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #fcc;
- color: black;
-}
-#monthCalendarTable a.eventLinkB:link,
-#monthCalendarTable a.eventLinkB:visited,
-#monthCalendarTable a.eventLinkB:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #fee;
- color: black;
-}
-#monthCalendarTable a.eventCancelled:link,
-#monthCalendarTable a.eventCancelled:visited,
-#monthCalendarTable a.eventCancelled:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #ccc;
- color: black;
-}
-#monthCalendarTable a.eventTentative:link,
-#monthCalendarTable a.eventTentative:visited,
-#monthCalendarTable a.eventTentative:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- border-bottom: 1px solid #ccc;
- border-top: 1px solid #ccc;
- background: #eee url('../../images/tentativeLines.gif') top;
- color: black;
-}
-#monthCalendarTable a.holiday:link,
-#monthCalendarTable a.holiday:visited,
-#monthCalendarTable a.holiday:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #fff;
- color: black;
- /*border-top: 1px solid black;
- border-bottom: 1px solid black;*/
-}
-#monthCalendarTable a.eventLinkA:hover,
-#monthCalendarTable a.eventLinkB:hover,
-#monthCalendarTable a.eventCancelled:hover,
-#monthCalendarTable a.eventTentative:hover,
-#monthCalendarTable a.holiday:hover {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- color: black;
- background-color: #ffe;
-}
-#monthCalendarTable a.dayLink {
- text-decoration: none;
- color: black;
- background-color: transparent;
-}
-#monthCalendarTable a:hover.dayLink {
- text-decoration: none;
- color: #eee;
- background-color: black;
-}
-#monthCalendarTable a:hover {
- /* required for eventTip to hover correctly;
- apply only to the hover pseudo class, or
- the other anchors nearby will cover the eventTip in IE */
- position: relative;
-}
-#monthCalendarTable a span.eventTip,
-#monthCalendarTable a span.eventTipReverse {
- display: none;
-}
-#monthCalendarTable a:hover span.eventTip {
- display: block;
- position: absolute;
- width: 20em;
- top: 1em;
- left: 12em;
- background-color: #ffe;
- color: black;
- padding: 4px;
- border: 1px solid #333;
- /*opacity: .80;
- filter: alpha(opacity=80);*/
-}
-#monthCalendarTable a:hover span.eventTipReverse {
- display: block;
- position: absolute;
- width: 20em;
- top: 1em;
- left: -21em;
- background-color: #ffe;
- color: black;
- padding: 4px;
- border: 1px solid #333;
- /*opacity: .80;
- filter: alpha(opacity=80);*/
-}
-
-#monthCalendarTable a:hover span.eventTipStatusCancelled {
- display: block;
- color: white;
- background-color: #333;
- padding: 2px;
- margin-bottom: 6px;
- text-align: center;
-}
-#monthCalendarTable a:hover span.eventTipStatusTentative {
- display: block;
- color: black;
- background: #eee url('../../images/tentativeLines.gif') top;
- padding: 2px;
- margin-bottom: 6px;
- border: 1px solid #ccc;
- text-align: center;
-}
-a.gridAdd {
- display: block;
- float: right;
- font-size: 0.8em;
- text-decoration: none;
- margin-right: 2px;
-}
-#yearCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0em;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#yearCalendarTable td {
- padding: 1em 0em 0em 0em;
- margin: 0em;
- vertical-align: top;
- text-align: center;
- width: 33%;
-}
-#yearCalendarTable table.yearViewMonthTable {
- margin: 0em 1em 0.5em 1em;
- border: 1px solid #666;
-}
-#yearCalendarTable table.yearViewMonthTable td {
- text-align: center;
- padding: 0.2em;
- width: 12.5%;
-}
-#yearCalendarTable table.yearViewMonthTable th {
- font-weight: bold;
- background-color: #f5f5f5;
- color: black;
- padding: 0.2em;
-}
-#yearCalendarTable table.yearViewMonthTable td.monthName {
- font-weight: bold;
- text-align: center;
- background-color: #666;
- color: #eee;
- white-space: nowrap;
- border-bottom: 1px solid #999;
-}
-#yearCalendarTable table.yearViewMonthTable td.weekCell {
- font-weight: bold;
- font-size: 0.8em;
- background-color: #f5f5f5;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td.weekCell a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td.monthName a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: #eee;
-}
-#yearCalendarTable table.yearViewMonthTable td a:hover {
- text-decoration: none;
- background-color: #FFC;
- color: black;
- border: 1px solid black;
- padding: 0;
-}
-#listTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#listTable td {
- padding: 0.5em;
- margin: 0em;
- border-bottom: 1px solid #bbb;
-}
-#listTable td a {
- background-color: transparent;
- color: black;
- text-decoration: none;
-}
-#listTable td.dateRangeCrossDay {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #ddd;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeEarlyMorning {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #dcc3c3;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeMorning {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #fee;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeAfternoon {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #fdd;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeEvening {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #fcc;
- color: black;
- white-space: nowrap;
-}
-#listTable span.littleArrow {
- font-size: 1.4em;
-}
-#listTable td.description {
- text-align: left;
- background-color: white;
- color: black;
- width: 100%;
-}
-#listTable td.bwStatusCancelled {
- background-color: #ddd;
- color: black;
-}
-#listTable td.bwStatusTentative {
- background: white url('../../images/tentativeLines.gif') top;
- color: black;
-}
-#listTable td.description a {
- display: block;
- background-color: transparent;
- color: black;
- text-decoration: none;
-}
-#listTable td.description a.moreLink {
- display: inline;
- background-color: transparent;
- color: #900;
- text-decoration: underline;
-}
-#listTable td.description:hover {
- background-color: #eee;
- color: black;
- text-decoration: none;
-}
-#listTable td.dateRow {
- text-align: left;
- background-color: #888;
- color: #eee;
- font-size: 0.8em;
- padding: 0.2em 0.5em 0.2em 0.5em;
- margin: 0em;
-}
-#listTable td.dateRow a {
- display: block;
- color: #fff;
- background-color: transparent;
- font-weight: bold;
- text-decoration : none;
-}
-#listTable td.icons {
- color: black;
- background-color: #ddd;
- white-space: nowrap;
-}
-#listTable td.icons img.addref {
- margin-right: 0.5em;
-}
-#calPageTable ul.calendarTree li {
- font-weight: bold;
-}
-#calPageTable ul.calendarTree li ul li {
- font-weight: normal;
-}
-#calPageTable ul.calendarTree li.folder {
- list-style-image: url(../../images/demo/catIcon.gif);
- padding-top: 0.25em;
- padding-bottom: 0.25em;
-}
-#calPageTable ul.calendarTree li.calendar {
- list-style-image: url(../../images/demo/calIcon-sm.gif);
-}
-.noEventsCell {
- padding: 1em;
-}
-#footer {
- font-size: 0.75em;
- text-align : center;
- margin-top: 0em;
- padding: 1em;
- color: #333;
- background-color: #eee;
- border-bottom: 2px solid #333;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
- white-space: nowrap;
-}
-#footer a {
- color: #333;
- background-color: transparent;
- text-decoration: underline;
-}
-#skinSelectorTable {
- width: 100%;
- padding-top: 0.5em;
- font-size: 0.7em;
- color: #333;
- background-color: inherit;
-}
-#skinSelectorTable td {
- vertical-align: top;
-}
-#skinSelectorTable td.rightCell {
- text-align: right;
-}
-#skinSelectorTable td.leftCell {
- text-align: left;
- color: #999;
- background-color: inherit;
-}
-#skinSelectorTable td.leftCell a {
- color: #999;
- background-color: inherit;
-}
-#skinSelectorTable td.rightCell form {
- display: inline;
- margin: 0em;
- padding: 0em;
-}
-#skinSelectorTable td.rightCell select {
- font-size: 0.9em;
- color: #333;
- background-color: #eee;
-}
-/* LINKS */
-a:link, a:active {
- color: #900;
- background-color: transparent;
-}
-a:visited {
- color: #600;
- background-color: transparent;
-}
-a:hover {
- color: #b33;
- background-color: transparent;
-}
-span.time {
- text-transform : lowercase;
-}
-#featureHighlight {
- color: #dd0;
- font-style: italic;
-}
-.center {
- text-align: center;
-}
-.left {
- text-align: left;
-}
-.right {
- text-align: right;
-}
\ No newline at end of file
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/soe.xsl
===================================================================
--- trunk/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/soe.xsl 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/soe.xsl 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,1161 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:output
- method="html"
- indent="yes"
- media-type="text/html"
- doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
- doctype-system="http://www.w3.org/TR/html4/loose.dtd"
- standalone="yes"
-/>
-
-<!-- =========================================================
-
- DEMONSTRATION "DEPARTMENTAL" CALENDAR STYLESHEET
-
- This stylesheet is for the "soe" (School of Engineering)
- calendar suite; it is an example of a departmental skin.
-
- This skin, along with the preferences for the Calendar
- Suite owner differ from the main public skin (default.xsl) in the
- following ways:
- - different header, title, and footer
- - default view = Month
- - default layout = list view (rather than calendar grid)
- - different color scheme
-
- Otherwise, for the sake of demonstration, we've left most of the
- functionality of the public client in place.
-
- For detailed instructions on how to work with the XSLT
- stylesheets included with this distribution, please see the
- Bedework Design Guide at
- http://www.bedework.org/bedework/update.do?artcenterkey=24
-
-=============================================================== -->
-
-<!-- **********************************************************************
- Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved.
-
- Redistribution and use of this distribution in source and binary forms,
- with or without modification, are permitted provided that:
- The above copyright notice and this permission notice appear in all
- copies and supporting documentation;
-
- The name, identifiers, and trademarks of Rensselaer Polytechnic
- Institute are not used in advertising or publicity without the
- express prior written permission of Rensselaer Polytechnic Institute;
-
- DISCLAIMER: The software is distributed" AS IS" without any express or
- implied warranty, including but not limited to, any implied warranties
- of merchantability or fitness for a particular purpose or any warrant)'
- of non-infringement of any current or pending patent rights. The authors
- of the software make no representations about the suitability of this
- software for any particular purpose. The entire risk as to the quality
- and performance of the software is with the user. Should the software
- prove defective, the user assumes the cost of all necessary servicing,
- repair or correction. In particular, neither Rensselaer Polytechnic
- Institute, nor the authors of the software are liable for any indirect,
- special, consequential, or incidental damages related to the software,
- to the maximum extent the law permits. -->
-
- <!-- ================================= -->
- <!-- DEMO PUBLIC CALENDAR STYLESHEET -->
- <!-- ================================= -->
-
- <!-- DEFINE INCLUDES -->
- <xsl:include href="errors.xsl"/>
-
- <!-- DEFINE GLOBAL CONSTANTS -->
-
- <!-- URL of the XSL template directory -->
- <!-- The approot is an appropriate place to put
- included stylesheets and xml fragments. These are generally
- referenced relatively (like errors.xsl and messages.xsl above);
- this variable is here for your convenience if you choose to
- reference it explicitly. It is not used in this stylesheet, however,
- and can be safely removed if you so choose. -->
- <xsl:variable name="appRoot" select="/bedework/approot"/>
-
- <!-- URL of html resources (images, css, other html); by default this is
- set to the application root -->
- <xsl:variable name="resourcesRoot" select="/bedework/approot"/>
-
- <!-- Properly encoded prefixes to the application actions; use these to build
- urls; allows the application to be used without cookies or within a portal. -->
- <xsl:variable name="setup" select="/bedework/urlPrefixes/setup"/>
- <xsl:variable name="setSelection" select="/bedework/urlPrefixes/setSelection"/>
- <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/fetchPublicCalendars"/>
- <xsl:variable name="setViewPeriod" select="/bedework/urlPrefixes/setViewPeriod"/>
- <xsl:variable name="eventView" select="/bedework/urlPrefixes/eventView"/>
- <xsl:variable name="addEventRef" select="/bedework/urlPrefixes/addEventRef"/>
- <xsl:variable name="export" select="/bedework/urlPrefixes/export"/>
- <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mailEvent"/>
- <xsl:variable name="showPage" select="/bedework/urlPrefixes/showPage"/>
- <xsl:variable name="stats" select="/bedework/urlPrefixes/stats"/>
-
- <!-- Other generally useful global variables -->
- <xsl:variable name="privateCal">/ucal</xsl:variable>
- <xsl:variable name="prevdate" select="/bedework/previousdate"/>
- <xsl:variable name="nextdate" select="/bedework/nextdate"/>
- <xsl:variable name="curdate" select="/bedework/currentdate/date"/>
- <xsl:variable name="skin">default</xsl:variable>
-
-
- <!-- MAIN TEMPLATE -->
- <xsl:template match="/">
- <html lang="en">
- <head>
- <title>School of Engineering: Example Bedework Departmental Calendar Suite</title>
- <link rel="stylesheet" type="text/css" href="{$resourcesRoot}/default/default/soe.css" />
- <link rel="icon" type="image/ico" href="{$resourcesRoot}/images/bedework.ico" />
- </head>
- <body>
- <xsl:call-template name="headBar"/>
- <xsl:if test="/bedework/error">
- <div id="errors">
- <xsl:apply-templates select="/bedework/error"/>
- </div>
- </xsl:if>
- <xsl:call-template name="tabs"/>
- <xsl:call-template name="navigation"/>
- <xsl:choose>
- <xsl:when test="/bedework/page='event'">
- <!-- show an event -->
- <xsl:apply-templates select="/bedework/event"/>
- </xsl:when>
- <xsl:when test="/bedework/page='showSysStats'">
- <!-- show system stats -->
- <xsl:call-template name="stats"/>
- </xsl:when>
- <xsl:when test="/bedework/page='calendarList'">
- <!-- show a list of all calendars -->
- <xsl:apply-templates select="/bedework/calendars"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- otherwise, show the eventsCalendar -->
- <xsl:if test="/bedework/periodname!='Year'">
- <xsl:call-template name="searchBar"/>
- </xsl:if>
- <!-- main eventCalendar content -->
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <xsl:call-template name="listView"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='weekViewMode']/value='cal'">
- <xsl:call-template name="weekView"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="listView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
- <xsl:call-template name="listView"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="monthView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="yearView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <!-- footer -->
- <xsl:call-template name="footer"/>
- </body>
- </html>
- </xsl:template>
-
- <!--==== HEADER TEMPLATES and NAVIGATION ====-->
- <!-- these templates are separated out for convenience and to simplify the default template -->
-
- <xsl:template name="headBar">
- <div id="headBar">
- <div id="bedeworkLogo">
- <a href="http://www.bedework.org/">
- <img src="{$resourcesRoot}/images/soecal/soeBedeworkLogo.gif" width="296" height="69" border="0" alt="Bedework" align="right"/>
- </a>
- </div>
- <h1>Example Departmental Calendar Suite</h1>
- <!--<ul id="schoolLinks">
- <li><a href="{$privateCal}">Personal Calendar</a></li>
- <li><a href="http://www.yourschoolhere.edu">School Home</a></li>
- <li><a href="http://www.bedework.org/">Other Link</a></li>
- <li>
- <a href="http://helpdesk.rpi.edu/update.do?catcenterkey=51">
- Example Calendar Help
- </a>
- </li>
- </ul> -->
- </div>
- <!-- Turn off the date range table for this departmental view -->
- <!--<table id="curDateRangeTable" cellspacing="0">
- <td class="sideBarOpenCloseIcon">
-   -->
- <!--
- we may choose to implement calendar selection in the public calendar
- using a sidebar; leave this comment here for now.
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='sidebar']/value='closed'">
- <a href="?setappvar=sidebar(opened)">
- <img alt="open sidebar" src="{$resourcesRoot}/resources/sideBarArrowOpen.gif" width="21" height="16" border="0" align="left"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="?setappvar=sidebar(closed)">
- <img alt="close sidebar" src="{$resourcesRoot}/resources/sideBarArrowClose.gif" width="21" height="16" border="0" align="left"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>-->
- <!-- </td>
- <td class="date">
- <xsl:choose>
- <xsl:when test="/bedework/page='event'">
- Event Information
- </xsl:when>
- <xsl:when test="/bedework/page='showSysStats' or
- /bedework/page='calendars'">
-  
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/firstday/longdate"/>
- <xsl:if test="/bedework/periodname!='Day'">
- -
- <xsl:value-of select="/bedework/lastday/longdate"/>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="rssPrint">
- <a href="javascript:window.print()" title="print this view">
- <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
- </a>
- <a class="rss" href="{$setSelection}&setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
- </td>
- </table>-->
- </xsl:template>
-
- <xsl:template name="tabs">
- <xsl:choose>
- <xsl:when test="/bedework/page='eventscalendar'">
- <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
- <tr>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-on.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
- <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-on.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Month'">
- <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-on.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year'">
- <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-on.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="rssPrint">
- <a href="javascript:window.print()" title="print this view">
- <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
- </a>
- <a class="rss" href="{$setSelection}&setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
- </td>
- </tr>
- </table>
- </xsl:when>
- <xsl:otherwise>
- <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
- <tr>
- <td>
- <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </td>
- <td class="rssPrint">
- <a href="javascript:window.print()" title="print this view">
- <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
- </a>
- <a class="rss" href="{$setSelection}&setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
- </td>
- </tr>
- </table>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="navigation">
- <table border="0" cellpadding="0" cellspacing="0" id="navigationBarTable">
- <tr>
- <td class="leftCell">
- <a id="prevViewPeriod" href="{$setViewPeriod}&date={$prevdate}"><img src="{$resourcesRoot}/images/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a>
- <a id="nextViewPeriod" href="{$setViewPeriod}&date={$nextdate}"><img src="{$resourcesRoot}/images/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year'">
- <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:value-of select="/bedework/firstday/monthname"/>, <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Week'">
- Week of <xsl:value-of select="substring-after(/bedework/firstday/longdate,', ')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/firstday/longdate"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="todayButton">
- <a href="{$setViewPeriod}&viewType=todayView&date={$curdate}">
- <img src="{$resourcesRoot}/images/std-button-today-off.gif" width="54" height="22" border="0" alt="Go to Today" align="left"/>
- </a>
- </td>
- <td align="right" class="gotoForm">
- <form name="calForm" method="get" action="{$setViewPeriod}">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:if test="/bedework/periodname!='Year'">
- <td>
- <select name="viewStartDate.month">
- <xsl:for-each select="/bedework/monthvalues/val">
- <xsl:variable name="temp" select="."/>
- <xsl:variable name="pos" select="position()"/>
- <xsl:choose>
- <xsl:when test="/bedework/monthvalues[start=$temp]">
- <option value="{$temp}" selected="selected">
- <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
- </option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$temp}">
- <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
- </option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </td>
- <xsl:if test="/bedework/periodname!='Month'">
- <td>
- <select name="viewStartDate.day">
- <xsl:for-each select="/bedework/dayvalues/val">
- <xsl:variable name="temp" select="."/>
- <xsl:variable name="pos" select="position()"/>
- <xsl:choose>
- <xsl:when test="/bedework/dayvalues[start=$temp]">
- <option value="{$temp}" selected="selected">
- <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
- </option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$temp}">
- <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
- </option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </td>
- </xsl:if>
- </xsl:if>
- <td>
- <xsl:variable name="temp" select="/bedework/yearvalues/start"/>
- <input type="text" name="viewStartDate.year" maxlength="4" size="4" value="{$temp}"/>
- </td>
- <td>
- <input name="submit" type="submit" value="go"/>
- </td>
- </tr>
- </table>
- </form>
- </td>
- <td class="rightCell">
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template name="searchBar">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" id="searchBarTable">
- <tr>
- <td class="leftCell">
- <xsl:choose>
- <xsl:when test="/bedework/selectionState/selectionType = 'calendar'">
- Calendar: <xsl:value-of select="/bedework/selectionState/subscriptions/subscription/calendar/name"/>
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:when test="/bedework/selectionState/selectionType = 'search'">
- Current search: <xsl:value-of select="/bedework/search"/>
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:when test="/bedework/selectionState/selectionType = 'subscription'">
- Subscription: (not implemented yet)
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:when test="/bedework/selectionState/selectionType = 'filter'">
- Filter: (not implemented yet)
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:otherwise><!-- view -->
- View:
- <form name="selectViewForm" method="get" action="{$setSelection}">
- <select name="viewName" onChange="submit()" >
- <xsl:for-each select="/bedework/views/view">
- <xsl:variable name="name" select="name"/>
- <xsl:choose>
- <xsl:when test="name=/bedework/selectionState/view/name">
- <option value="{$name}" selected="selected"><xsl:value-of select="name"/></option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$name}"><xsl:value-of select="name"/></option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </form>
- <span class="calLinks"><a href="{$setSelection}">default view</a> | <a href="{$fetchPublicCalendars}">available calendars</a></span>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="rightCell">
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <img src="{$resourcesRoot}/images/std-button-listview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Year'">
- <img src="{$resourcesRoot}/images/std-button-calview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
- <a href="{$setup}&setappvar=monthViewMode(cal)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}&setappvar=monthViewMode(list)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='weekViewMode']/value='cal'">
- <a href="{$setup}&setappvar=weekViewMode(list)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}&setappvar=weekViewMode(cal)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year' or
- (/bedework/periodname='Month' and
- (/bedework/appvar[key='monthViewMode']/value='cal' or
- not(/bedework/appvar[key='monthViewMode']))) or
- (/bedework/periodname='Week' and
- (/bedework/appvar[key='weekViewMode']/value='cal' or
- not(/bedework/appvar[key='weekViewMode'])))">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <img src="{$resourcesRoot}/images/std-button-summary-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
- </xsl:when>
- <xsl:otherwise>
- <img src="{$resourcesRoot}/images/std-button-details-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <a href="{$setup}&setappvar=summaryMode(summary)" title="toggle summary/detailed view">
- <img src="{$resourcesRoot}/images/std-button-summary.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}&setappvar=summaryMode(details)" title="toggle summary/detailed view">
- <img src="{$resourcesRoot}/images/std-button-details.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <a href="setup.do"><img src="{$resourcesRoot}/images/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== SINGLE EVENT ====-->
- <xsl:template match="event">
- <xsl:variable name="statusClass">
- <xsl:choose>
- <xsl:when test="status='CANCELLED'">bwStatusCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">bwStatusTentative</xsl:when>
- <xsl:otherwise>bwStatusConfirmed</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <h2 class="{$statusClass}">
- <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
- <xsl:choose>
- <xsl:when test="link != ''">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}">
- <xsl:value-of select="summary"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="summary"/>
- </xsl:otherwise>
- </xsl:choose>
- </h2>
- <table id="eventTable" cellpadding="0" cellspacing="0">
- <tr>
- <td class="fieldname">When:</td>
- <td class="fieldval">
- <xsl:value-of select="start/dayname"/>, <xsl:value-of select="start/longdate"/><xsl:text> </xsl:text>
- <xsl:if test="start/allday = 'false'">
- <span class="time"><xsl:value-of select="start/time"/></span>
- </xsl:if>
- <xsl:if test="(end/longdate != start/longdate) or
- ((end/longdate = start/longdate) and (end/time != start/time))"> - </xsl:if>
- <xsl:if test="end/longdate != start/longdate">
- <xsl:value-of select="substring(end/dayname,1,3)"/>, <xsl:value-of select="end/longdate"/><xsl:text> </xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="start/allday = 'true'">
- <span class="time"><em>(all day)</em></span>
- </xsl:when>
- <xsl:when test="end/longdate != start/longdate">
- <span class="time"><xsl:value-of select="end/time"/></span>
- </xsl:when>
- <xsl:when test="end/time != start/time">
- <span class="time"><xsl:value-of select="end/time"/></span>
- </xsl:when>
- </xsl:choose>
- </td>
- <th class="icalIcon" rowspan="2">
- <div id="eventIcons">
- <xsl:variable name="id" select="id"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
- <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon.gif" width="20" height="26" border="0" alt="Add event to MyCalendar"/>
- add to my calendar</a>
- <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
- <a href="{$export}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
- <img src="{$resourcesRoot}/images/std-ical_icon.gif" width="20" height="26" border="0" alt="Download this event"/>
- download</a>
- </div>
- </th>
- </tr>
- <tr>
- <td class="fieldname">Where:</td>
- <td class="fieldval">
- <xsl:choose>
- <xsl:when test="location/link=''">
- <xsl:value-of select="location/address"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="locationLink" select="location/link"/>
- <a href="{$locationLink}">
- <xsl:value-of select="location/address"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="location/subaddress!=''">
- <br/><xsl:value-of select="location/subaddress"/>
- </xsl:if>
- </td>
- </tr>
- <tr>
- <td class="fieldname">Description:</td>
- <td colspan="2" class="fieldval description">
- <xsl:call-template name="replace">
- <xsl:with-param name="string" select="description"/>
- <xsl:with-param name="pattern" select="'
'"/>
- <xsl:with-param name="replacement"><br/></xsl:with-param>
- </xsl:call-template>
- </td>
- </tr>
- <xsl:if test="status !='' and status != 'CONFIRMED'">
- <tr>
- <td class="fieldname">Status:</td>
- <td class="fieldval">
- <xsl:value-of select="status"/>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="cost!=''">
- <tr>
- <td class="fieldname">Cost:</td>
- <td colspan="2" class="fieldval"><xsl:value-of select="cost"/></td>
- </tr>
- </xsl:if>
- <xsl:if test="link != ''">
- <tr>
- <td class="fieldname">See:</td>
- <td colspan="2" class="fieldval">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}"><xsl:value-of select="link"/></a>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="sponsor/name!='none'">
- <tr>
- <td class="fieldname">Contact:</td>
- <td colspan="2" class="fieldval">
- <xsl:choose>
- <xsl:when test="sponsor/link=''">
- <xsl:value-of select="sponsor/name"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="sponsorLink" select="sponsor/link"/>
- <a href="{$sponsorLink}">
- <xsl:value-of select="sponsor/name"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="sponsor/phone!=''">
- <br /><xsl:value-of select="sponsor/phone"/>
- </xsl:if>
- <!-- If you want to display email addresses, uncomment the
- following 8 lines. -->
- <!-- <xsl:if test="sponsor/email!=''">
- <br />
- <xsl:variable name="email" select="sponsor/email"/>
- <xsl:variable name="subject" select="summary"/>
- <a href="mailto:{$email}&subject={$subject}">
- <xsl:value-of select="sponsor/email"/>
- </a>
- </xsl:if> -->
- </td>
- </tr>
- </xsl:if>
- <tr>
- <td class="fieldname">Calendar:</td>
- <td class="fieldval">
- <xsl:variable name="calUrl" select="calendar/path"/>
- <a href="{$setSelection}&calUrl={$calUrl}">
- <xsl:value-of select="calendar/name"/>
- </a>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== LIST VIEW (for day, week, and month) ====-->
- <xsl:template name="listView">
- <table id="listTable" border="0" cellpadding="0" cellspacing="0">
- <xsl:choose>
- <xsl:when test="not(/bedework/eventscalendar/year/month/week/day/event)">
- <tr>
- <td class="noEventsCell">
- No events to display.
- </td>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week/day[event]">
- <xsl:if test="/bedework/periodname='Week' or /bedework/periodname='Month' or /bedework/periodname=''">
- <tr>
- <td colspan="5" class="dateRow">
- <xsl:variable name="date" select="date"/>
- <a href="{$setViewPeriod}&viewType=dayView&date={$date}">
- <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/>
- </a>
- </td>
- </tr>
- </xsl:if>
- <xsl:for-each select="event">
- <xsl:variable name="id" select="id"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <tr>
- <xsl:variable name="dateRangeStyle">
- <xsl:choose>
- <xsl:when test="start/shortdate = parent::day/shortdate">
- <xsl:choose>
- <xsl:when test="start/allday = 'true'">dateRangeCrossDay</xsl:when>
- <xsl:when test="start/hour24 < 6">dateRangeEarlyMorning</xsl:when>
- <xsl:when test="start/hour24 < 12">dateRangeMorning</xsl:when>
- <xsl:when test="start/hour24 < 18">dateRangeAfternoon</xsl:when>
- <xsl:otherwise>dateRangeEvening</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>dateRangeCrossDay</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="start/allday = 'true' and
- start/shortdate = end/shortdate">
- <td class="{$dateRangeStyle} center" colspan="3">
- all day
- </td>
- </xsl:when>
- <xsl:when test="start/shortdate = end/shortdate and
- start/time = end/time">
- <td class="{$dateRangeStyle} center" colspan="3">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:value-of select="start/time"/>
- </a>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td class="{$dateRangeStyle} right">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:choose>
- <xsl:when test="start/allday = 'true' and
- parent::day/shortdate = start/shortdate">
- today
- </xsl:when>
- <xsl:when test="parent::day/shortdate != start/shortdate">
- <span class="littleArrow">«</span> 
- <xsl:value-of select="start/month"/>/<xsl:value-of select="start/day"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="start/time"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </td>
- <td class="{$dateRangeStyle} center">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">-</a>
- </td>
- <td class="{$dateRangeStyle} left">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:choose>
- <xsl:when test="end/allday = 'true' and
- parent::day/shortdate = end/shortdate">
- today
- </xsl:when>
- <xsl:when test="parent::day/shortdate != end/shortdate">
- <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/>
-  <span class="littleArrow">»</span>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="end/time"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:variable name="descriptionClass">
- <xsl:choose>
- <xsl:when test="status='CANCELLED'">description bwStatusCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">description bwStatusTentative</xsl:when>
- <xsl:otherwise>description</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <td class="{$descriptionClass}">
- <xsl:if test="status='CANCELLED'"><strong>CANCELLED: </strong></xsl:if>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <strong>
- <xsl:value-of select="summary"/>:
- </strong>
- <xsl:value-of select="description"/> 
- <em>
- <xsl:value-of select="location/address"/>
- <xsl:if test="location/subaddress != ''">
- , <xsl:value-of select="location/subaddress"/>
- </xsl:if>. 
- <xsl:if test="cost!=''">
- <xsl:value-of select="cost"/>. 
- </xsl:if>
- <xsl:if test="sponsor/name!='none'">
- Contact: <xsl:value-of select="sponsor/name"/>
- </xsl:if>
- </em>
- </a>
- <xsl:if test="link != ''">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}" class="moreLink"><xsl:value-of select="link"/></a>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:value-of select="summary"/>
- <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="icons">
- <variable name="confId" select="/bedework/confirmationid"/>
- <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
- <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/>
- </a>
- <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
- <a href="{$export}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
- <img src="{$resourcesRoot}/images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/>
- </a>
- </td>
- </tr>
- </xsl:for-each>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </table>
- </xsl:template>
-
- <!--==== WEEK CALENDAR VIEW ====-->
- <xsl:template name="weekView">
- <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:for-each select="/bedework/daynames/val">
- <th class="dayHeading"><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <tr>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week/day">
- <xsl:variable name="dayPos" select="position()"/>
- <xsl:if test="filler='false'">
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}" class="dayLink">
- <xsl:value-of select="value"/>
- </a>
- <ul>
- <xsl:apply-templates select="event" mode="calendarLayout">
- <xsl:with-param name="dayPos" select="$dayPos"/>
- </xsl:apply-templates>
- </ul>
- </td>
- </xsl:if>
- </xsl:for-each>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== MONTH CALENDAR VIEW ====-->
- <xsl:template name="monthView">
- <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:for-each select="/bedework/daynames/val">
- <th class="dayHeading"><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week">
- <tr>
- <xsl:for-each select="day">
- <xsl:variable name="dayPos" select="position()"/>
- <xsl:choose>
- <xsl:when test="filler='true'">
- <td class="filler"> </td>
- </xsl:when>
- <xsl:otherwise>
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}" class="dayLink">
- <xsl:value-of select="value"/>
- </a>
- <ul>
- <xsl:apply-templates select="event" mode="calendarLayout">
- <xsl:with-param name="dayPos" select="$dayPos"/>
- </xsl:apply-templates>
- </ul>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </tr>
- </xsl:for-each>
- </table>
- </xsl:template>
-
- <xsl:template match="event" mode="calendarLayout">
- <xsl:param name="dayPos"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <xsl:variable name="eventClass">
- <xsl:choose>
- <!-- Special styles for the month grid -->
- <xsl:when test="status='CANCELLED'">eventCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">eventTentative</xsl:when>
- <xsl:when test="calendar/name='Holidays'">holiday</xsl:when>
- <!-- Alternating colors for all standard events -->
- <xsl:when test="position() mod 2 = 1">eventLinkA</xsl:when>
- <xsl:otherwise>eventLinkB</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <li>
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" class="{$eventClass}">
- <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
- <xsl:value-of select="summary"/>
- <xsl:variable name="eventTipClass">
- <xsl:choose>
- <xsl:when test="$dayPos > 5">eventTipReverse</xsl:when>
- <xsl:otherwise>eventTip</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <span class="{$eventTipClass}">
- <xsl:if test="status='CANCELLED'"><span class="eventTipStatusCancelled">CANCELLED</span></xsl:if>
- <xsl:if test="status='TENTATIVE'"><span class="eventTipStatusTentative">TENTATIVE</span></xsl:if>
- <strong><xsl:value-of select="summary"/></strong><br/>
- Time:
- <xsl:choose>
- <xsl:when test="start/allday = 'false'">
- <xsl:value-of select="start/time"/>
- <xsl:if test="start/time != end/time">
- - <xsl:value-of select="end/time"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- all day
- </xsl:otherwise>
- </xsl:choose><br/>
- <xsl:if test="location/address">
- Location: <xsl:value-of select="location/address"/><br/>
- </xsl:if>
- Calendar: <xsl:value-of select="calendar/name"/>
- </span>
- </a>
- </li>
- </xsl:template>
-
- <!--==== YEAR VIEW ====-->
- <xsl:template name="yearView">
- <table id="yearCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() <= 3]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 3) and (position() <= 6)]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 6) and (position() <= 9)]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() > 9]"/>
- </tr>
- </table>
- </xsl:template>
-
- <!-- year view month tables -->
- <xsl:template match="month">
- <td>
- <table class="yearViewMonthTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="8" class="monthName">
- <xsl:variable name="firstDayOfMonth" select="week/day/date"/>
- <a href="{$setViewPeriod}&viewType=monthView&date={$firstDayOfMonth}">
- <xsl:value-of select="longname"/>
- </a>
- </td>
- </tr>
- <tr>
- <th> </th>
- <xsl:for-each select="/bedework/shortdaynames/val">
- <th><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <xsl:for-each select="week">
- <tr>
- <td class="weekCell">
- <xsl:variable name="firstDayOfWeek" select="day/date"/>
- <a href="{$setViewPeriod}&viewType=weekView&date={$firstDayOfWeek}">
- <xsl:value-of select="value"/>
- </a>
- </td>
- <xsl:for-each select="day">
- <xsl:choose>
- <xsl:when test="filler='true'">
- <td class="filler"> </td>
- </xsl:when>
- <xsl:otherwise>
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}">
- <xsl:value-of select="value"/>
- </a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </tr>
- </xsl:for-each>
- </table>
- </td>
- </xsl:template>
-
- <!--==== CALENDARS PAGE ====-->
- <xsl:template match="calendars">
- <xsl:variable name="topLevelCalCount" select="count(calendar/calendar)"/>
- <table id="calPageTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <th colspan="2">
- All Calendars
- </th>
- </tr>
- <tr>
- <td colspan="2" class="infoCell">
- Select a calendar from the list below to see only that calendar's events.
- </td>
- </tr>
- <tr>
- <td class="leftCell">
- <ul class="calendarTree">
- <xsl:apply-templates select="calendar/calendar[position() <= ceiling($topLevelCalCount div 2)]" mode="calTree"/>
- </ul>
- </td>
- <td>
- <ul class="calendarTree">
- <xsl:apply-templates select="calendar/calendar[position() > ceiling($topLevelCalCount div 2)]" mode="calTree"/>
- </ul>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template match="calendar" mode="calTree">
- <xsl:variable name="itemClass">
- <xsl:choose>
- <xsl:when test="calendarCollection='false'">folder</xsl:when>
- <xsl:otherwise>calendar</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="url" select="path"/>
- <li class="{$itemClass}">
- <a href="{$setSelection}&calUrl={$url}"><xsl:value-of select="name"/></a>
- <xsl:if test="calendar">
- <ul>
- <xsl:apply-templates select="calendar" mode="calTree"/>
- </ul>
- </xsl:if>
- </li>
- </xsl:template>
-
- <!--+++++++++++++++ System Stats ++++++++++++++++++++-->
- <xsl:template name="stats">
- <div id="stats">
- <h2>System Statistics</h2>
-
- <p>
- Stats collection:
- </p>
- <ul>
- <li>
- <a href="{$stats}&enable=yes">enable</a> |
- <a href="{$stats}&disable=yes">disable</a>
- </li>
- <li><a href="{$stats}&fetch=yes">fetch statistics</a></li>
- <li><a href="{$stats}&dump=yes">dump stats to log</a></li>
- </ul>
- <table id="statsTable" cellpadding="0">
- <xsl:for-each select="/bedework/sysStats/*">
- <xsl:choose>
- <xsl:when test="name(.) = 'header'">
- <tr>
- <th colspan="2">
- <xsl:value-of select="."/>
- </th>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <tr>
- <td class="label">
- <xsl:value-of select="label"/>
- </td>
- <td class="value">
- <xsl:value-of select="value"/>
- </td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </table>
- </div>
- </xsl:template>
-
- <!--==== UTILITY TEMPLATES ====-->
-
- <!-- search and replace template taken from
- http://www.biglist.com/lists/xsl-list/archives/200211/msg00337.html -->
- <xsl:template name="replace">
- <xsl:param name="string" select="''"/>
- <xsl:param name="pattern" select="''"/>
- <xsl:param name="replacement" select="''"/>
- <xsl:choose>
- <xsl:when test="$pattern != '' and $string != '' and contains($string, $pattern)">
- <xsl:value-of select="substring-before($string, $pattern)"/>
- <xsl:copy-of select="$replacement"/>
- <xsl:call-template name="replace">
- <xsl:with-param name="string" select="substring-after($string, $pattern)"/>
- <xsl:with-param name="pattern" select="$pattern"/>
- <xsl:with-param name="replacement" select="$replacement"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$string"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <!--==== FOOTER ====-->
-
- <xsl:template name="footer">
- <div id="footer">
- Demonstration calendar; place footer information here.
- </div>
- <div id="subFoot">
- Based on the <a href="http://www.bedework.org/">Bedework Calendar</a> |
- <a href="?noxslt=yes">show XML</a> |
- <a href="?refreshXslt=yes">refresh XSLT</a>
- </div>
- </xsl:template>
-</xsl:stylesheet>
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/videocal.css
===================================================================
--- trunk/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/videocal.css 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/videocal.css 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,102 +0,0 @@
-/* Font sizes are set in pixels because the screen resolution is 800x600
- Two overscan modes were viewed when creating the styles: this sheet
- accomodates a larger overscan mode. videocal.css is for a
- smaller overscan mode.*/
-
-body {
- margin: 0;
- padding: 0;
- font-family: Arial, Helvetica, sans-serif;
- color: #eee;
- background : #116 url(../../images/videocal/calBackground1.jpg) no-repeat;
-}
-h1 {
- font-size: 38px; /* 38 was optimal */
- color: #ee3;
- background-color: transparent;
- margin: 0;
- padding-top: 0.5em;
- padding-left: 60px;
- padding-bottom: 0;
- padding-right: 50px;
-}
-h2#calTitle {
- width: 100%;
- background-color: black;
- color: #666;
- margin: 0;
- height: 28px;
- padding: 20px 0 0 0; /* 20px top */
- font-size: 20px;
- text-align: center;
-}
-h2#dayTitle {
- width: 100%;
- background-color: #004;
- color: #ccc;
- margin: 0;
- padding: 0.2em 0 0.2em 0;
- font-size: 28px; /* 28 px */
- text-align: center;
-}
-#time {
- color: #eee;
- background-color: transparent;
- margin: 0;
- padding-top: 0.5em;
- padding-left: 90px;
- padding-bottom: 0;
- padding-right: 90px;
- font-size: 28px;
- font-weight: bold;
-}
-#location {
- color: #e99;
- background-color: transparent;
- margin: 0;
- padding: 0 90px 0 90px;
- font-size: 24px;
- font-weight: bold;
-}
-#description {
- color: #aaa;
- background-color: transparent;
- margin: 0;
- padding-top: 1em;
- padding-left: 60px;
- padding-bottom: 0;
- padding-right: 55px;
- font-size: 25px;
- font-weight: bold;
-}
-#calPlug {
- text-align: center;
- vertical-align: middle;
- font-weight: bold;
-}
-#calPlug h1 {
- margin-top: 120px;
- font-size: 52px;
- color: #eee;
- background-color : transparent;
-}
-#calPlug h2 {
- font-size: 42px;
- color: #ee3;
- background-color : transparent;
-}
-#getBack {
- text-align: center;
- color: #eee;
- background-color : transparent;
-}
-#getBack a {
- color: #eee;
- background-color : transparent;
-}
-#info {
- width: 400px;
- margin: 1em auto;
- color: #eee;
- background-color : transparent;
-}
\ No newline at end of file
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/videocal.xsl
===================================================================
--- trunk/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/videocal.xsl 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/uportal2/resources/demoskins/SoEDepartmental/default/default/videocal.xsl 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,210 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="html" indent="yes" media-type="text/html" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd" standalone="yes"/>
- <!-- ======================= -->
- <!-- VIDEO FEED STYLESHEET -->
- <!-- ======================= -->
-
- <!-- Run your browser full screen at 800 x 600 and feed this to video.
- There are better approaches to this, but it's an interesting example. -->
-
-
- <!-- **********************************************************************
- Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved.
-
- Redistribution and use of this distribution in source and binary forms,
- with or without modification, are permitted provided that:
- The above copyright notice and this permission notice appear in all
- copies and supporting documentation;
-
- The name, identifiers, and trademarks of Rensselaer Polytechnic
- Institute are not used in advertising or publicity without the
- express prior written permission of Rensselaer Polytechnic Institute;
-
- DISCLAIMER: The software is distributed" AS IS" without any express or
- implied warranty, including but not limited to, any implied warranties
- of merchantability or fitness for a particular purpose or any warrant)'
- of non-infringement of any current or pending patent rights. The authors
- of the software make no representations about the suitability of this
- software for any particular purpose. The entire risk as to the quality
- and performance of the software is with the user. Should the software
- prove defective, the user assumes the cost of all necessary servicing,
- repair or correction. In particular, neither Rensselaer Polytechnic
- Institute, nor the authors of the software are liable for any indirect,
- special, consequential, or incidental damages related to the software,
- to the maximum extent the law permits. -->
-
- <!-- DEFINE GLOBAL CONSTANTS -->
- <xsl:variable name="appRoot" select="/bedework/approot"/>
- <xsl:variable name="urlPrefix" select="/bedework/urlprefix"/>
- <xsl:variable name="prevDate" select="/bedework/previousdate"/>
- <xsl:variable name="nextDate" select="/bedework/nextdate"/>
- <xsl:variable name="curDate" select="/bedework/currentdate/date"/>
-
- <!-- Duration of each slide in seconds; set this to your preference -->
- <xsl:variable name="slideDuration">10</xsl:variable>
-
- <!-- Number of consecutive days to iterate over; set this to your preference -->
- <xsl:variable name="dayCount">5</xsl:variable>
-
- <!-- Skin name -->
- <xsl:variable name="skinName">videocal</xsl:variable>
-
- <!-- Position of the current day to be displayed -->
- <xsl:variable name="day">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='day']">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='day']/value > $dayCount">1</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/appvar[key='day']/value"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <!-- Position of the next day (add 1)-->
- <xsl:variable name="nextDay" select="number($day)+1"/>
-
- <!-- Event count for the current day -->
- <xsl:variable name="eventCount" select="count(/bedework/eventscalendar/year/month/week/day[date=$curDate]/event)"/>
-
- <!-- Position of the current event being displayed -->
- <xsl:variable name="event">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='event']">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='event']/value > $eventCount">1</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/appvar[key='event']/value"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <!-- Position of the next event (add 1)-->
- <xsl:variable name="nextEvent" select="number($event)+1"/>
-
- <!-- MAIN TEMPLATE -->
- <xsl:template match="/">
- <html lang="en">
- <head>
- <title>Event Calendar Video Feed</title>
- <link rel="stylesheet" href="{$appRoot}/default/default/videocal.css"/>
- <meta name="robots" content="noindex,nofollow"/>
- <script language="JavaScript">
- function today() {
- var now = new Date();
- var today;
- today = now.getFullYear().toString();
- if (now.getMonth() < 9) {
- today += "0";
- }
- today += (now.getMonth() + 1).toString();
- today += now.getDate().toString();
- return today;
- }
- </script>
- <xsl:choose>
- <xsl:when test="/bedework/periodname!='Day'">
- <!-- we're starting up on the wrong view; go to today and begin with the first event;
- the title slide will display during this switch. -->
- <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setViewPeriod.do?viewType=todayView&setappvar=event(1)&setappvar=day(1)&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/>
- </xsl:when>
- <xsl:when test="($nextDay > $dayCount) and ($nextEvent > $eventCount)">
- <!-- passed the last day, and all events have been displayed,
- so start over: go to today, set day=1 and *event=0* to allow
- for the title slide "calPlug" -->
- <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setViewPeriod.do?viewType=todayView&setappvar=event(0)&setappvar=day(1)&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/>
- </xsl:when>
- <xsl:when test="$nextEvent > $eventCount">
- <!-- passed the last event for the day; go to the next day and set event=1 -->
- <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setViewPeriod.do?date={$nextDate}&viewType=dayView&setappvar=event(1)&setappvar=day({$nextDay})&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- otherwise, go to the next event on the same day -->
- <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setup.do?viewType=dayView&setappvar=event({$nextEvent})&setappvar=day({$day})&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/>
- </xsl:otherwise>
- </xsl:choose>
- </head>
- <body>
- <xsl:choose>
- <xsl:when test="($eventCount = 0) or ($event = 0) or (/bedework/periodname!='Day')">
- <div id="calPlug">
- <h1>
- Bedework Calendar of Events
- Video Feed
- </h1>
- <h2>http://www.bedework.org</h2>
- </div>
- </xsl:when>
- <xsl:otherwise>
- <h2 id="calTitle">
- BEDEWORK CALENDAR OF EVENTS
- </h2>
- <h2 id="dayTitle">
- <xsl:value-of select="/bedework/firstday/longdate"/><!--
- <br/>Events: <xsl:value-of select="$event"/> of <xsl:value-of select="$eventCount"/>
- <br/>Days: <xsl:value-of select="$day"/> of <xsl:value-of select="$dayCount"/> -->
- </h2>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month/week/day[date=$curDate]/event[position()=$event]"/>
- </xsl:otherwise>
- </xsl:choose>
- <!-- remove the following two divs if used for video -->
- <div id="getBack">
- (<a href="setup.do?skinNameSticky=default">restore normal calendar</a>)
- </div>
- <div id="info">
- This stylesheet will rotate through five days of events at ten
- second intervals. It is intended as a video feed running full screen
- at 800x600px. It's settings
- can be set from the top of
- the videocal.xsl stylesheet.
- </div>
- </body>
- </html>
- </xsl:template>
-
- <!--==== SINGLE EVENT ====-->
- <xsl:template match="event">
- <h1>
- <xsl:value-of select="summary"/>
- </h1>
- <xsl:if test="(start/allday = 'false')">
- <div id="time">
- <!-- this logic needs to be updated for new event model -->
- <xsl:choose>
- <xsl:when test="start/time=''">
- <xsl:value-of select="start/shortdate"/>
- </xsl:when>
- <xsl:when test="start/date != /bedework/firstday">
- <xsl:value-of select="start/shortdate"/>
- <xsl:value-of select="start/time"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="start/time"/>
- </xsl:otherwise>
- </xsl:choose>
- -
- <xsl:if test="end/longdate != start/longdate">
- <xsl:value-of select="end/shortdate"/>
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:value-of select="end/time"/>
- </div>
- </xsl:if>
- <xsl:if test="location/address!='Campus-wide'">
- <div id="location">
- <xsl:value-of select="location/address"/>
- </div>
- </xsl:if>
- <div id="description">
- <xsl:value-of select="description"/>
- </div>
- </xsl:template>
-
-</xsl:stylesheet>
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl
===================================================================
--- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,1187 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:output
- method="html"
- indent="yes"
- media-type="text/html"
- doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
- doctype-system="http://www.w3.org/TR/html4/loose.dtd"
- standalone="yes"
-/>
-
-<!-- =========================================================
-
- DEMONSTRATION CALENDAR STYLESHEET
-
- This stylesheet is devoid of school branding. It is a good
- starting point for development of a customized calendar.
-
- For detailed instructions on how to work with the XSLT
- stylesheets included with this distribution, please see the
- Bedework Design Guide at
- http://www.bedework.org/bedework/update.do?artcenterkey=24
-
-=============================================================== -->
-<!-- **********************************************************************
- Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved.
-
- Redistribution and use of this distribution in source and binary forms,
- with or without modification, are permitted provided that:
- The above copyright notice and this permission notice appear in all
- copies and supporting documentation;
-
- The name, identifiers, and trademarks of Rensselaer Polytechnic
- Institute are not used in advertising or publicity without the
- express prior written permission of Rensselaer Polytechnic Institute;
-
- DISCLAIMER: The software is distributed" AS IS" without any express or
- implied warranty, including but not limited to, any implied warranties
- of merchantability or fitness for a particular purpose or any warrant)'
- of non-infringement of any current or pending patent rights. The authors
- of the software make no representations about the suitability of this
- software for any particular purpose. The entire risk as to the quality
- and performance of the software is with the user. Should the software
- prove defective, the user assumes the cost of all necessary servicing,
- repair or correction. In particular, neither Rensselaer Polytechnic
- Institute, nor the authors of the software are liable for any indirect,
- special, consequential, or incidental damages related to the software,
- to the maximum extent the law permits. -->
-
- <!-- ================================= -->
- <!-- DEMO PUBLIC CALENDAR STYLESHEET -->
- <!-- ================================= -->
-
- <!-- DEFINE INCLUDES -->
- <xsl:include href="errors.xsl"/>
-
- <!-- DEFINE GLOBAL CONSTANTS -->
-
- <!-- URL of the XSL template directory -->
- <!-- The approot is an appropriate place to put
- included stylesheets and xml fragments. These are generally
- referenced relatively (like errors.xsl and messages.xsl above);
- this variable is here for your convenience if you choose to
- reference it explicitly. It is not used in this stylesheet, however,
- and can be safely removed if you so choose. -->
- <xsl:variable name="appRoot" select="/bedework/approot"/>
-
- <!-- URL of html resources (images, css, other html); by default this is
- set to the application root -->
- <xsl:variable name="resourcesRoot" select="/bedework/approot"/>
-
- <!-- Properly encoded prefixes to the application actions; use these to build
- urls; allows the application to be used without cookies or within a portal. -->
- <xsl:variable name="setup" select="/bedework/urlPrefixes/setup"/>
- <xsl:variable name="setSelection" select="/bedework/urlPrefixes/setSelection"/>
- <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/fetchPublicCalendars"/>
- <xsl:variable name="setViewPeriod" select="/bedework/urlPrefixes/setViewPeriod"/>
- <xsl:variable name="eventView" select="/bedework/urlPrefixes/eventView"/>
- <xsl:variable name="addEventRef" select="/bedework/urlPrefixes/addEventRef"/>
- <xsl:variable name="export" select="/bedework/urlPrefixes/export"/>
- <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mailEvent"/>
- <xsl:variable name="showPage" select="/bedework/urlPrefixes/showPage"/>
- <xsl:variable name="stats" select="/bedework/urlPrefixes/stats"/>
-
- <!-- Other generally useful global variables -->
- <xsl:variable name="privateCal">/ucal</xsl:variable>
- <xsl:variable name="prevdate" select="/bedework/previousdate"/>
- <xsl:variable name="nextdate" select="/bedework/nextdate"/>
- <xsl:variable name="curdate" select="/bedework/currentdate/date"/>
-
-
- <!-- MAIN TEMPLATE -->
- <xsl:template match="/">
- <html lang="en">
- <head>
- <title>Bedework Events Calendar</title>
- <link rel="stylesheet" type="text/css" href="{$resourcesRoot}/default/default/common.css" />
- <link rel="stylesheet" type="text/css" media="print" href="{$resourcesRoot}/default/default/print.css" />
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='style']/value='red'">
- <link rel="stylesheet" href="{$resourcesRoot}/default/default/red.css"/>
- </xsl:when>
- <xsl:when test="/bedework/appvar[key='style']/value='green'">
- <link rel="stylesheet" href="{$resourcesRoot}/default/default/green.css"/>
- </xsl:when>
- <xsl:otherwise>
- <link rel="stylesheet" href="{$resourcesRoot}/default/default/blue.css"/>
- </xsl:otherwise>
- </xsl:choose>
- <link rel="icon" type="image/ico" href="{$resourcesRoot}/images/bedework.ico" />
- </head>
- <body>
- <xsl:call-template name="headBar"/>
- <xsl:if test="/bedework/error">
- <div id="errors">
- <xsl:apply-templates select="/bedework/error"/>
- </div>
- </xsl:if>
- <xsl:call-template name="tabs"/>
- <xsl:call-template name="navigation"/>
- <xsl:choose>
- <xsl:when test="/bedework/page='event'">
- <!-- show an event -->
- <xsl:apply-templates select="/bedework/event"/>
- </xsl:when>
- <xsl:when test="/bedework/page='showSysStats'">
- <!-- show system stats -->
- <xsl:call-template name="stats"/>
- </xsl:when>
- <xsl:when test="/bedework/page='calendarList'">
- <!-- show a list of all calendars -->
- <xsl:apply-templates select="/bedework/calendars"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- otherwise, show the eventsCalendar -->
- <xsl:if test="/bedework/periodname!='Year'">
- <xsl:call-template name="searchBar"/>
- </xsl:if>
- <!-- main eventCalendar content -->
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <xsl:call-template name="listView"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'">
- <xsl:call-template name="listView"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="weekView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
- <xsl:call-template name="listView"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="monthView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="yearView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <!-- footer -->
- <xsl:call-template name="footer"/>
- </body>
- </html>
- </xsl:template>
-
- <!--==== HEADER TEMPLATES and NAVIGATION ====-->
- <!-- these templates are separated out for convenience and to simplify the default template -->
-
- <xsl:template name="headBar">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" id="logoTable">
- <tr>
- <td colspan="3" id="logoCell"><a href="http://www.bedework.org/"><img src="{$resourcesRoot}/images/bedeworkLogo.gif" width="292" height="75" border="0" alt="Bedework"/></a></td>
- <td colspan="2" id="schoolLinksCell">
- <h2>Public Calendar</h2>
- <a href="{$privateCal}">Personal Calendar</a> |
- <a href="http://www.yourschoolhere.edu">School Home</a> |
- <a href="http://www.bedework.org/">Other Link</a> |
- <a href="http://helpdesk.rpi.edu/update.do?catcenterkey=51">
- Example Calendar Help
- </a>
- </td>
- </tr>
- </table>
- <table id="curDateRangeTable" cellspacing="0">
- <td class="sideBarOpenCloseIcon">
-  
- <!--
- we may choose to implement calendar selection in the public calendar
- using a sidebar; leave this comment here for now.
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='sidebar']/value='closed'">
- <a href="?setappvar=sidebar(opened)">
- <img alt="open sidebar" src="{$resourcesRoot}/resources/sideBarArrowOpen.gif" width="21" height="16" border="0" align="left"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="?setappvar=sidebar(closed)">
- <img alt="close sidebar" src="{$resourcesRoot}/resources/sideBarArrowClose.gif" width="21" height="16" border="0" align="left"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>-->
- </td>
- <td class="date">
- <xsl:choose>
- <xsl:when test="/bedework/page='event'">
- Event Information
- </xsl:when>
- <xsl:when test="/bedework/page='showSysStats' or
- /bedework/page='calendars'">
-  
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/firstday/longdate"/>
- <xsl:if test="/bedework/periodname!='Day'">
- -
- <xsl:value-of select="/bedework/lastday/longdate"/>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="rssPrint">
- <a href="javascript:window.print()" title="print this view">
- <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
- </a>
- <a class="rss" href="{$setSelection}&setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
- </td>
- </table>
- </xsl:template>
-
- <xsl:template name="tabs">
- <xsl:choose>
- <xsl:when test="/bedework/page='eventscalendar'">
- <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
- <tr>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-on.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
- <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-on.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Month'">
- <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-on.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year'">
- <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-on.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="centerCell">
-  <!--<img src="{$resourcesRoot}/images/std-button-today.gif" width="46" height="17" border="0" alt="TODAY"/>-->
- </td>
- <td class="rightCell">
-  
- </td>
- </tr>
- </table>
- </xsl:when>
- <xsl:otherwise>
- <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
- <tr>
- <td>
- <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </td>
- <td class="centerCell">
-  <!--<img src="{$resourcesRoot}/images/std-button-today.gif" width="46" height="17" border="0" alt="TODAY"/>-->
- </td>
- <td class="rightCell">
-  
- </td>
- </tr>
- </table>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="navigation">
- <table border="0" cellpadding="0" cellspacing="0" id="navigationBarTable">
- <tr>
- <td class="leftCell">
- <a id="prevViewPeriod" href="{$setViewPeriod}&date={$prevdate}"><img src="{$resourcesRoot}/images/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a>
- <a id="nextViewPeriod" href="{$setViewPeriod}&date={$nextdate}"><img src="{$resourcesRoot}/images/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year'">
- <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:value-of select="/bedework/firstday/monthname"/>, <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Week'">
- Week of <xsl:value-of select="substring-after(/bedework/firstday/longdate,', ')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/firstday/longdate"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="todayButton">
- <a href="{$setViewPeriod}&viewType=todayView&date={$curdate}">
- <img src="{$resourcesRoot}/images/std-button-today-off.gif" width="54" height="22" border="0" alt="Go to Today" align="left"/>
- </a>
- </td>
- <td align="right" class="gotoForm">
- <form name="calForm" method="get" action="{$setViewPeriod}">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:if test="/bedework/periodname!='Year'">
- <td>
- <select name="viewStartDate.month">
- <xsl:for-each select="/bedework/monthvalues/val">
- <xsl:variable name="temp" select="."/>
- <xsl:variable name="pos" select="position()"/>
- <xsl:choose>
- <xsl:when test="/bedework/monthvalues[start=$temp]">
- <option value="{$temp}" selected="selected">
- <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
- </option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$temp}">
- <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
- </option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </td>
- <xsl:if test="/bedework/periodname!='Month'">
- <td>
- <select name="viewStartDate.day">
- <xsl:for-each select="/bedework/dayvalues/val">
- <xsl:variable name="temp" select="."/>
- <xsl:variable name="pos" select="position()"/>
- <xsl:choose>
- <xsl:when test="/bedework/dayvalues[start=$temp]">
- <option value="{$temp}" selected="selected">
- <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
- </option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$temp}">
- <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
- </option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </td>
- </xsl:if>
- </xsl:if>
- <td>
- <xsl:variable name="temp" select="/bedework/yearvalues/start"/>
- <input type="text" name="viewStartDate.year" maxlength="4" size="4" value="{$temp}"/>
- </td>
- <td>
- <input name="submit" type="submit" value="go"/>
- </td>
- </tr>
- </table>
- </form>
- </td>
- <td class="rightCell">
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template name="searchBar">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" id="searchBarTable">
- <tr>
- <td class="leftCell">
- <xsl:choose>
- <xsl:when test="/bedework/selectionState/selectionType = 'calendar'">
- Calendar: <xsl:value-of select="/bedework/selectionState/subscriptions/subscription/calendar/name"/>
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:when test="/bedework/selectionState/selectionType = 'search'">
- Current search: <xsl:value-of select="/bedework/search"/>
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:when test="/bedework/selectionState/selectionType = 'subscription'">
- Subscription: (not implemented yet)
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:when test="/bedework/selectionState/selectionType = 'filter'">
- Filter: (not implemented yet)
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:otherwise><!-- view -->
- View:
- <form name="selectViewForm" method="get" action="{$setSelection}">
- <select name="viewName" onChange="submit()" >
- <xsl:for-each select="/bedework/views/view">
- <xsl:variable name="name" select="name"/>
- <xsl:choose>
- <xsl:when test="name=/bedework/selectionState/view/name">
- <option value="{$name}" selected="selected"><xsl:value-of select="name"/></option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$name}"><xsl:value-of select="name"/></option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </form>
- <span class="calLinks"><a href="{$setSelection}">default view</a> | <a href="{$fetchPublicCalendars}">available calendars</a></span>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="rightCell">
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <img src="{$resourcesRoot}/images/std-button-listview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Year'">
- <img src="{$resourcesRoot}/images/std-button-calview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
- <a href="{$setup}&setappvar=monthViewMode(cal)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}&setappvar=monthViewMode(list)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'">
- <a href="{$setup}&setappvar=weekViewMode(cal)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}&setappvar=weekViewMode(list)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year' or
- (/bedework/periodname='Month' and
- (/bedework/appvar[key='monthViewMode']/value='cal' or
- not(/bedework/appvar[key='monthViewMode']))) or
- (/bedework/periodname='Week' and
- (/bedework/appvar[key='weekViewMode']/value='cal' or
- not(/bedework/appvar[key='weekViewMode'])))">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <img src="{$resourcesRoot}/images/std-button-summary-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
- </xsl:when>
- <xsl:otherwise>
- <img src="{$resourcesRoot}/images/std-button-details-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <a href="{$setup}&setappvar=summaryMode(summary)" title="toggle summary/detailed view">
- <img src="{$resourcesRoot}/images/std-button-summary.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}&setappvar=summaryMode(details)" title="toggle summary/detailed view">
- <img src="{$resourcesRoot}/images/std-button-details.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <a href="setup.do"><img src="{$resourcesRoot}/images/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== SINGLE EVENT ====-->
- <xsl:template match="event">
- <xsl:variable name="statusClass">
- <xsl:choose>
- <xsl:when test="status='CANCELLED'">bwStatusCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">bwStatusTentative</xsl:when>
- <xsl:otherwise>bwStatusConfirmed</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <h2 class="{$statusClass}">
- <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
- <xsl:choose>
- <xsl:when test="link != ''">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}">
- <xsl:value-of select="summary"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="summary"/>
- </xsl:otherwise>
- </xsl:choose>
- </h2>
- <table id="eventTable" cellpadding="0" cellspacing="0">
- <tr>
- <td class="fieldname">When:</td>
- <td class="fieldval">
- <xsl:value-of select="start/dayname"/>, <xsl:value-of select="start/longdate"/><xsl:text> </xsl:text>
- <xsl:if test="start/allday = 'false'">
- <span class="time"><xsl:value-of select="start/time"/></span>
- </xsl:if>
- <xsl:if test="(end/longdate != start/longdate) or
- ((end/longdate = start/longdate) and (end/time != start/time))"> - </xsl:if>
- <xsl:if test="end/longdate != start/longdate">
- <xsl:value-of select="substring(end/dayname,1,3)"/>, <xsl:value-of select="end/longdate"/><xsl:text> </xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="start/allday = 'true'">
- <span class="time"><em>(all day)</em></span>
- </xsl:when>
- <xsl:when test="end/longdate != start/longdate">
- <span class="time"><xsl:value-of select="end/time"/></span>
- </xsl:when>
- <xsl:when test="end/time != start/time">
- <span class="time"><xsl:value-of select="end/time"/></span>
- </xsl:when>
- </xsl:choose>
- </td>
- <th class="icalIcon" rowspan="2">
- <div id="eventIcons">
- <xsl:variable name="id" select="id"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
- <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon.gif" width="20" height="26" border="0" alt="Add event to MyCalendar"/>
- add to my calendar</a>
- <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
- <a href="{$export}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
- <img src="{$resourcesRoot}/images/std-ical_icon.gif" width="20" height="26" border="0" alt="Download this event"/>
- download</a>
- </div>
- </th>
- </tr>
- <tr>
- <td class="fieldname">Where:</td>
- <td class="fieldval">
- <xsl:choose>
- <xsl:when test="location/link=''">
- <xsl:value-of select="location/address"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="locationLink" select="location/link"/>
- <a href="{$locationLink}">
- <xsl:value-of select="location/address"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="location/subaddress!=''">
- <br/><xsl:value-of select="location/subaddress"/>
- </xsl:if>
- </td>
- </tr>
- <tr>
- <td class="fieldname">Description:</td>
- <td colspan="2" class="fieldval description">
- <xsl:call-template name="replace">
- <xsl:with-param name="string" select="description"/>
- <xsl:with-param name="pattern" select="'
'"/>
- <xsl:with-param name="replacement"><br/></xsl:with-param>
- </xsl:call-template>
- </td>
- </tr>
- <xsl:if test="status !='' and status != 'CONFIRMED'">
- <tr>
- <td class="fieldname">Status:</td>
- <td class="fieldval">
- <xsl:value-of select="status"/>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="cost!=''">
- <tr>
- <td class="fieldname">Cost:</td>
- <td colspan="2" class="fieldval"><xsl:value-of select="cost"/></td>
- </tr>
- </xsl:if>
- <xsl:if test="link != ''">
- <tr>
- <td class="fieldname">See:</td>
- <td colspan="2" class="fieldval">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}"><xsl:value-of select="link"/></a>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="sponsor/name!='none'">
- <tr>
- <td class="fieldname">Contact:</td>
- <td colspan="2" class="fieldval">
- <xsl:choose>
- <xsl:when test="sponsor/link=''">
- <xsl:value-of select="sponsor/name"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="sponsorLink" select="sponsor/link"/>
- <a href="{$sponsorLink}">
- <xsl:value-of select="sponsor/name"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="sponsor/phone!=''">
- <br /><xsl:value-of select="sponsor/phone"/>
- </xsl:if>
- <!-- If you want to display email addresses, uncomment the
- following 8 lines. -->
- <!-- <xsl:if test="sponsor/email!=''">
- <br />
- <xsl:variable name="email" select="sponsor/email"/>
- <xsl:variable name="subject" select="summary"/>
- <a href="mailto:{$email}&subject={$subject}">
- <xsl:value-of select="sponsor/email"/>
- </a>
- </xsl:if> -->
- </td>
- </tr>
- </xsl:if>
- <tr>
- <td class="fieldname">Calendar:</td>
- <td class="fieldval">
- <xsl:variable name="calUrl" select="calendar/path"/>
- <a href="{$setSelection}&calUrl={$calUrl}">
- <xsl:value-of select="calendar/name"/>
- </a>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== LIST VIEW (for day, week, and month) ====-->
- <xsl:template name="listView">
- <table id="listTable" border="0" cellpadding="0" cellspacing="0">
- <xsl:choose>
- <xsl:when test="not(/bedework/eventscalendar/year/month/week/day/event)">
- <tr>
- <td class="noEventsCell">
- No events to display.
- </td>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week/day[event]">
- <xsl:if test="/bedework/periodname='Week' or /bedework/periodname='Month' or /bedework/periodname=''">
- <tr>
- <td colspan="5" class="dateRow">
- <xsl:variable name="date" select="date"/>
- <a href="{$setViewPeriod}&viewType=dayView&date={$date}">
- <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/>
- </a>
- </td>
- </tr>
- </xsl:if>
- <xsl:for-each select="event">
- <xsl:variable name="id" select="id"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <tr>
- <xsl:variable name="dateRangeStyle">
- <xsl:choose>
- <xsl:when test="start/shortdate = parent::day/shortdate">
- <xsl:choose>
- <xsl:when test="start/allday = 'true'">dateRangeCrossDay</xsl:when>
- <xsl:when test="start/hour24 < 6">dateRangeEarlyMorning</xsl:when>
- <xsl:when test="start/hour24 < 12">dateRangeMorning</xsl:when>
- <xsl:when test="start/hour24 < 18">dateRangeAfternoon</xsl:when>
- <xsl:otherwise>dateRangeEvening</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>dateRangeCrossDay</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="start/allday = 'true' and
- start/shortdate = end/shortdate">
- <td class="{$dateRangeStyle} center" colspan="3">
- all day
- </td>
- </xsl:when>
- <xsl:when test="start/shortdate = end/shortdate and
- start/time = end/time">
- <td class="{$dateRangeStyle} center" colspan="3">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:value-of select="start/time"/>
- </a>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td class="{$dateRangeStyle} right">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:choose>
- <xsl:when test="start/allday = 'true' and
- parent::day/shortdate = start/shortdate">
- today
- </xsl:when>
- <xsl:when test="parent::day/shortdate != start/shortdate">
- <span class="littleArrow">«</span> 
- <xsl:value-of select="start/month"/>/<xsl:value-of select="start/day"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="start/time"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </td>
- <td class="{$dateRangeStyle} center">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">-</a>
- </td>
- <td class="{$dateRangeStyle} left">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:choose>
- <xsl:when test="end/allday = 'true' and
- parent::day/shortdate = end/shortdate">
- today
- </xsl:when>
- <xsl:when test="parent::day/shortdate != end/shortdate">
- <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/>
-  <span class="littleArrow">»</span>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="end/time"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:variable name="descriptionClass">
- <xsl:choose>
- <xsl:when test="status='CANCELLED'">description bwStatusCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">description bwStatusTentative</xsl:when>
- <xsl:otherwise>description</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <td class="{$descriptionClass}">
- <xsl:if test="status='CANCELLED'"><strong>CANCELLED: </strong></xsl:if>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <strong>
- <xsl:value-of select="summary"/>:
- </strong>
- <xsl:value-of select="description"/> 
- <em>
- <xsl:value-of select="location/address"/>
- <xsl:if test="location/subaddress != ''">
- , <xsl:value-of select="location/subaddress"/>
- </xsl:if>. 
- <xsl:if test="cost!=''">
- <xsl:value-of select="cost"/>. 
- </xsl:if>
- <xsl:if test="sponsor/name!='none'">
- Contact: <xsl:value-of select="sponsor/name"/>
- </xsl:if>
- </em>
- </a>
- <xsl:if test="link != ''">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}" class="moreLink"><xsl:value-of select="link"/></a>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:value-of select="summary"/>
- <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="icons">
- <variable name="confId" select="/bedework/confirmationid"/>
- <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
- <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/>
- </a>
- <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
- <a href="{$export}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
- <img src="{$resourcesRoot}/images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/>
- </a>
- </td>
- </tr>
- </xsl:for-each>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </table>
- </xsl:template>
-
- <!--==== WEEK CALENDAR VIEW ====-->
- <xsl:template name="weekView">
- <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:for-each select="/bedework/daynames/val">
- <th class="dayHeading"><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <tr>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week/day">
- <xsl:variable name="dayPos" select="position()"/>
- <xsl:if test="filler='false'">
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}" class="dayLink">
- <xsl:value-of select="value"/>
- </a>
- <ul>
- <xsl:apply-templates select="event" mode="calendarLayout">
- <xsl:with-param name="dayPos" select="$dayPos"/>
- </xsl:apply-templates>
- </ul>
- </td>
- </xsl:if>
- </xsl:for-each>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== MONTH CALENDAR VIEW ====-->
- <xsl:template name="monthView">
- <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:for-each select="/bedework/daynames/val">
- <th class="dayHeading"><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week">
- <tr>
- <xsl:for-each select="day">
- <xsl:variable name="dayPos" select="position()"/>
- <xsl:choose>
- <xsl:when test="filler='true'">
- <td class="filler"> </td>
- </xsl:when>
- <xsl:otherwise>
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}" class="dayLink">
- <xsl:value-of select="value"/>
- </a>
- <ul>
- <xsl:apply-templates select="event" mode="calendarLayout">
- <xsl:with-param name="dayPos" select="$dayPos"/>
- </xsl:apply-templates>
- </ul>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </tr>
- </xsl:for-each>
- </table>
- </xsl:template>
-
- <xsl:template match="event" mode="calendarLayout">
- <xsl:param name="dayPos"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <xsl:variable name="eventClass">
- <xsl:choose>
- <!-- Special styles for the month grid -->
- <xsl:when test="status='CANCELLED'">eventCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">eventTentative</xsl:when>
- <xsl:when test="calendar/name='Holidays'">holiday</xsl:when>
- <!-- Alternating colors for all standard events -->
- <xsl:when test="position() mod 2 = 1">eventLinkA</xsl:when>
- <xsl:otherwise>eventLinkB</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <li>
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" class="{$eventClass}">
- <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
- <xsl:value-of select="summary"/>
- <xsl:variable name="eventTipClass">
- <xsl:choose>
- <xsl:when test="$dayPos > 5">eventTipReverse</xsl:when>
- <xsl:otherwise>eventTip</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <span class="{$eventTipClass}">
- <xsl:if test="status='CANCELLED'"><span class="eventTipStatusCancelled">CANCELLED</span></xsl:if>
- <xsl:if test="status='TENTATIVE'"><span class="eventTipStatusTentative">TENTATIVE</span></xsl:if>
- <strong><xsl:value-of select="summary"/></strong><br/>
- Time:
- <xsl:choose>
- <xsl:when test="start/allday = 'false'">
- <xsl:value-of select="start/time"/>
- <xsl:if test="start/time != end/time">
- - <xsl:value-of select="end/time"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- all day
- </xsl:otherwise>
- </xsl:choose><br/>
- <xsl:if test="location/address">
- Location: <xsl:value-of select="location/address"/><br/>
- </xsl:if>
- Calendar: <xsl:value-of select="calendar/name"/>
- </span>
- </a>
- </li>
- </xsl:template>
-
- <!--==== YEAR VIEW ====-->
- <xsl:template name="yearView">
- <table id="yearCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() <= 3]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 3) and (position() <= 6)]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 6) and (position() <= 9)]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() > 9]"/>
- </tr>
- </table>
- </xsl:template>
-
- <!-- year view month tables -->
- <xsl:template match="month">
- <td>
- <table class="yearViewMonthTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="8" class="monthName">
- <xsl:variable name="firstDayOfMonth" select="week/day/date"/>
- <a href="{$setViewPeriod}&viewType=monthView&date={$firstDayOfMonth}">
- <xsl:value-of select="longname"/>
- </a>
- </td>
- </tr>
- <tr>
- <th> </th>
- <xsl:for-each select="/bedework/shortdaynames/val">
- <th><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <xsl:for-each select="week">
- <tr>
- <td class="weekCell">
- <xsl:variable name="firstDayOfWeek" select="day/date"/>
- <a href="{$setViewPeriod}&viewType=weekView&date={$firstDayOfWeek}">
- <xsl:value-of select="value"/>
- </a>
- </td>
- <xsl:for-each select="day">
- <xsl:choose>
- <xsl:when test="filler='true'">
- <td class="filler"> </td>
- </xsl:when>
- <xsl:otherwise>
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}">
- <xsl:value-of select="value"/>
- </a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </tr>
- </xsl:for-each>
- </table>
- </td>
- </xsl:template>
-
- <!--==== CALENDARS PAGE ====-->
- <xsl:template match="calendars">
- <xsl:variable name="topLevelCalCount" select="count(calendar/calendar)"/>
- <table id="calPageTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <th colspan="2">
- All Calendars
- </th>
- </tr>
- <tr>
- <td colspan="2" class="infoCell">
- Select a calendar from the list below to see only that calendar's events.
- </td>
- </tr>
- <tr>
- <td class="leftCell">
- <ul class="calendarTree">
- <xsl:apply-templates select="calendar/calendar[position() <= ceiling($topLevelCalCount div 2)]" mode="calTree"/>
- </ul>
- </td>
- <td>
- <ul class="calendarTree">
- <xsl:apply-templates select="calendar/calendar[position() > ceiling($topLevelCalCount div 2)]" mode="calTree"/>
- </ul>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template match="calendar" mode="calTree">
- <xsl:variable name="itemClass">
- <xsl:choose>
- <xsl:when test="calendarCollection='false'">folder</xsl:when>
- <xsl:otherwise>calendar</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="url" select="path"/>
- <li class="{$itemClass}">
- <a href="{$setSelection}&calUrl={$url}"><xsl:value-of select="name"/></a>
- <xsl:if test="calendar">
- <ul>
- <xsl:apply-templates select="calendar" mode="calTree"/>
- </ul>
- </xsl:if>
- </li>
- </xsl:template>
-
- <!--+++++++++++++++ System Stats ++++++++++++++++++++-->
- <xsl:template name="stats">
- <div id="stats">
- <h2>System Statistics</h2>
-
- <p>
- Stats collection:
- </p>
- <ul>
- <li>
- <a href="{$stats}&enable=yes">enable</a> |
- <a href="{$stats}&disable=yes">disable</a>
- </li>
- <li><a href="{$stats}&fetch=yes">fetch statistics</a></li>
- <li><a href="{$stats}&dump=yes">dump stats to log</a></li>
- </ul>
- <table id="statsTable" cellpadding="0">
- <xsl:for-each select="/bedework/sysStats/*">
- <xsl:choose>
- <xsl:when test="name(.) = 'header'">
- <tr>
- <th colspan="2">
- <xsl:value-of select="."/>
- </th>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <tr>
- <td class="label">
- <xsl:value-of select="label"/>
- </td>
- <td class="value">
- <xsl:value-of select="value"/>
- </td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </table>
- </div>
- </xsl:template>
-
- <!--==== UTILITY TEMPLATES ====-->
-
- <!-- search and replace template taken from
- http://www.biglist.com/lists/xsl-list/archives/200211/msg00337.html -->
- <xsl:template name="replace">
- <xsl:param name="string" select="''"/>
- <xsl:param name="pattern" select="''"/>
- <xsl:param name="replacement" select="''"/>
- <xsl:choose>
- <xsl:when test="$pattern != '' and $string != '' and contains($string, $pattern)">
- <xsl:value-of select="substring-before($string, $pattern)"/>
- <xsl:copy-of select="$replacement"/>
- <xsl:call-template name="replace">
- <xsl:with-param name="string" select="substring-after($string, $pattern)"/>
- <xsl:with-param name="pattern" select="$pattern"/>
- <xsl:with-param name="replacement" select="$replacement"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$string"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <!--==== FOOTER ====-->
-
- <xsl:template name="footer">
- <div id="footer">
- Demonstration calendar; place footer information here.
- </div>
- <table id="skinSelectorTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td class="leftCell">
- Based on the <a href="http://www.bedework.org/">Bedework Calendar</a> |
- <a href="?noxslt=yes">show XML</a> |
- <a href="?refreshXslt=yes">refresh XSLT</a>
- </td>
- <td class="rightCell">
- <form name="styleSelectForm" method="get" action="{$setup}">
- <select name="setappvar" onChange="submit()">
- <option>example styles:</option>
- <option value="style(green)">green</option>
- <option value="style(red)">red</option>
- <option value="style(blue)">blue</option>
- </select>
- </form>
- <form name="skinSelectForm" method="get" action="{$setup}">
- <input type="hidden" name="setappvar" value="summaryMode(details)"/>
- <select name="skinPicker" onchange="window.location = this.value">
- <option>example skins:</option>
- <option value="{$setViewPeriod}&viewType=weekView&skinName=rss&setappvar=summaryMode(details)">rss feed</option>
- <option value="{$setViewPeriod}&viewType=todayView&skinName=jsToday&contentType=text/javascript&contentName=bedework.js">javascript feed</option>
- <option value="{$setViewPeriod}&viewType=todayView&skinName=videocal">video feed</option>
- <option value="{$setup}&skinName=default">reset to calendar default</option>
- </select>
- </form>
- <form name="skinSelectForm" method="get" action="">
- <select name="sitePicker" onchange="window.location = this.value">
- <option>production examples:</option>
- <option value="http://events.dal.ca/">Dalhousie</option>
- <option value="http://events.rpi.edu">Rensselaer</option>
- <option value="http://myuw.washington.edu/cal/">Washington</option>
- </select>
- </form>
- </td>
- </tr>
- </table>
- </xsl:template>
-</xsl:stylesheet>
Copied: branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl (from rev 629, trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl)
===================================================================
--- branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl (rev 0)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl 2006-06-22 21:17:07 UTC (rev 641)
@@ -0,0 +1,1191 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:output
+ method="html"
+ indent="yes"
+ media-type="text/html"
+ doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
+ doctype-system="http://www.w3.org/TR/html4/loose.dtd"
+ standalone="yes"
+/>
+
+<!-- =========================================================
+
+ DEMONSTRATION CALENDAR STYLESHEET
+
+ This stylesheet is devoid of school branding. It is a good
+ starting point for development of a customized calendar.
+
+ For detailed instructions on how to work with the XSLT
+ stylesheets included with this distribution, please see the
+ Bedework Design Guide at
+ http://www.bedework.org/bedework/update.do?artcenterkey=24
+
+=============================================================== -->
+<!-- **********************************************************************
+ Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved.
+
+ Redistribution and use of this distribution in source and binary forms,
+ with or without modification, are permitted provided that:
+ The above copyright notice and this permission notice appear in all
+ copies and supporting documentation;
+
+ The name, identifiers, and trademarks of Rensselaer Polytechnic
+ Institute are not used in advertising or publicity without the
+ express prior written permission of Rensselaer Polytechnic Institute;
+
+ DISCLAIMER: The software is distributed" AS IS" without any express or
+ implied warranty, including but not limited to, any implied warranties
+ of merchantability or fitness for a particular purpose or any warrant)'
+ of non-infringement of any current or pending patent rights. The authors
+ of the software make no representations about the suitability of this
+ software for any particular purpose. The entire risk as to the quality
+ and performance of the software is with the user. Should the software
+ prove defective, the user assumes the cost of all necessary servicing,
+ repair or correction. In particular, neither Rensselaer Polytechnic
+ Institute, nor the authors of the software are liable for any indirect,
+ special, consequential, or incidental damages related to the software,
+ to the maximum extent the law permits. -->
+
+ <!-- ================================= -->
+ <!-- DEMO PUBLIC CALENDAR STYLESHEET -->
+ <!-- ================================= -->
+
+ <!-- DEFINE INCLUDES -->
+ <xsl:include href="errors.xsl"/>
+
+ <!-- DEFINE GLOBAL CONSTANTS -->
+
+ <!-- URL of the XSL template directory -->
+ <!-- The approot is an appropriate place to put
+ included stylesheets and xml fragments. These are generally
+ referenced relatively (like errors.xsl and messages.xsl above);
+ this variable is here for your convenience if you choose to
+ reference it explicitly. It is not used in this stylesheet, however,
+ and can be safely removed if you so choose. -->
+ <xsl:variable name="appRoot" select="/bedework/approot"/>
+
+ <!-- URL of html resources (images, css, other html); by default this is
+ set to the application root -->
+ <xsl:variable name="resourcesRoot" select="/bedework/approot"/>
+
+ <!-- Properly encoded prefixes to the application actions; use these to build
+ urls; allows the application to be used without cookies or within a portal.
+ These urls are rewritten in header.jsp and simply passed through for use
+ here. Every url includes a query string (either ?b=de or a real query
+ string) so that all links constructed in this stylesheet may begin the
+ query string with an ampersand. -->
+ <xsl:variable name="setup" select="/bedework/urlPrefixes/setup"/>
+ <xsl:variable name="setSelection" select="/bedework/urlPrefixes/setSelection"/>
+ <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/fetchPublicCalendars"/>
+ <xsl:variable name="setViewPeriod" select="/bedework/urlPrefixes/setViewPeriod"/>
+ <xsl:variable name="eventView" select="/bedework/urlPrefixes/eventView"/>
+ <xsl:variable name="addEventRef" select="/bedework/urlPrefixes/addEventRef"/>
+ <xsl:variable name="export" select="/bedework/urlPrefixes/export"/>
+ <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mailEvent"/>
+ <xsl:variable name="showPage" select="/bedework/urlPrefixes/showPage"/>
+ <xsl:variable name="stats" select="/bedework/urlPrefixes/stats"/>
+
+ <!-- Other generally useful global variables -->
+ <xsl:variable name="privateCal">/ucal</xsl:variable>
+ <xsl:variable name="prevdate" select="/bedework/previousdate"/>
+ <xsl:variable name="nextdate" select="/bedework/nextdate"/>
+ <xsl:variable name="curdate" select="/bedework/currentdate/date"/>
+
+
+ <!-- MAIN TEMPLATE -->
+ <xsl:template match="/">
+ <html lang="en">
+ <head>
+ <title>Bedework Events Calendar</title>
+ <link rel="stylesheet" type="text/css" href="{$resourcesRoot}/default/default/common.css" />
+ <link rel="stylesheet" type="text/css" media="print" href="{$resourcesRoot}/default/default/print.css" />
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='style']/value='red'">
+ <link rel="stylesheet" href="{$resourcesRoot}/default/default/red.css"/>
+ </xsl:when>
+ <xsl:when test="/bedework/appvar[key='style']/value='green'">
+ <link rel="stylesheet" href="{$resourcesRoot}/default/default/green.css"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <link rel="stylesheet" href="{$resourcesRoot}/default/default/blue.css"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <link rel="icon" type="image/ico" href="{$resourcesRoot}/images/bedework.ico" />
+ </head>
+ <body>
+ <xsl:call-template name="headBar"/>
+ <xsl:if test="/bedework/error">
+ <div id="errors">
+ <xsl:apply-templates select="/bedework/error"/>
+ </div>
+ </xsl:if>
+ <xsl:call-template name="tabs"/>
+ <xsl:call-template name="navigation"/>
+ <xsl:choose>
+ <xsl:when test="/bedework/page='event'">
+ <!-- show an event -->
+ <xsl:apply-templates select="/bedework/event"/>
+ </xsl:when>
+ <xsl:when test="/bedework/page='showSysStats'">
+ <!-- show system stats -->
+ <xsl:call-template name="stats"/>
+ </xsl:when>
+ <xsl:when test="/bedework/page='calendarList'">
+ <!-- show a list of all calendars -->
+ <xsl:apply-templates select="/bedework/calendars"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- otherwise, show the eventsCalendar -->
+ <xsl:if test="/bedework/periodname!='Year'">
+ <xsl:call-template name="searchBar"/>
+ </xsl:if>
+ <!-- main eventCalendar content -->
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Day'">
+ <xsl:call-template name="listView"/>
+ </xsl:when>
+ <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'">
+ <xsl:call-template name="listView"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="weekView"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="/bedework/periodname='Month'">
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
+ <xsl:call-template name="listView"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="monthView"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="yearView"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <!-- footer -->
+ <xsl:call-template name="footer"/>
+ </body>
+ </html>
+ </xsl:template>
+
+ <!--==== HEADER TEMPLATES and NAVIGATION ====-->
+ <!-- these templates are separated out for convenience and to simplify the default template -->
+
+ <xsl:template name="headBar">
+ <table width="100%" border="0" cellpadding="0" cellspacing="0" id="logoTable">
+ <tr>
+ <td colspan="3" id="logoCell"><a href="http://www.bedework.org/"><img src="{$resourcesRoot}/images/bedeworkLogo.gif" width="292" height="75" border="0" alt="Bedework"/></a></td>
+ <td colspan="2" id="schoolLinksCell">
+ <h2>Public Calendar</h2>
+ <a href="{$privateCal}">Personal Calendar</a> |
+ <a href="http://www.yourschoolhere.edu">School Home</a> |
+ <a href="http://www.bedework.org/">Other Link</a> |
+ <a href="http://helpdesk.rpi.edu/update.do?catcenterkey=51">
+ Example Calendar Help
+ </a>
+ </td>
+ </tr>
+ </table>
+ <table id="curDateRangeTable" cellspacing="0">
+ <td class="sideBarOpenCloseIcon">
+  
+ <!--
+ we may choose to implement calendar selection in the public calendar
+ using a sidebar; leave this comment here for now.
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='sidebar']/value='closed'">
+ <a href="?setappvar=sidebar(opened)">
+ <img alt="open sidebar" src="{$resourcesRoot}/resources/sideBarArrowOpen.gif" width="21" height="16" border="0" align="left"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="?setappvar=sidebar(closed)">
+ <img alt="close sidebar" src="{$resourcesRoot}/resources/sideBarArrowClose.gif" width="21" height="16" border="0" align="left"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>-->
+ </td>
+ <td class="date">
+ <xsl:choose>
+ <xsl:when test="/bedework/page='event'">
+ Event Information
+ </xsl:when>
+ <xsl:when test="/bedework/page='showSysStats' or
+ /bedework/page='calendars'">
+  
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="/bedework/firstday/longdate"/>
+ <xsl:if test="/bedework/periodname!='Day'">
+ -
+ <xsl:value-of select="/bedework/lastday/longdate"/>
+ </xsl:if>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td class="rssPrint">
+ <a href="javascript:window.print()" title="print this view">
+ <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
+ </a>
+ <a class="rss" href="{$setSelection}&setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
+ </td>
+ </table>
+ </xsl:template>
+
+ <xsl:template name="tabs">
+ <xsl:choose>
+ <xsl:when test="/bedework/page='eventscalendar'">
+ <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
+ <tr>
+ <td>
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Day'">
+ <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-on.gif" width="91" height="20" border="0" alt="DAY"/></a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
+ <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-on.gif" width="92" height="20" border="0" alt="WEEK"/></a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Month'">
+ <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-on.gif" width="90" height="20" border="0" alt="MONTH"/></a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Year'">
+ <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-on.gif" width="92" height="20" border="0" alt="YEAR"/></a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td class="centerCell">
+  <!--<img src="{$resourcesRoot}/images/std-button-today.gif" width="46" height="17" border="0" alt="TODAY"/>-->
+ </td>
+ <td class="rightCell">
+  
+ </td>
+ </tr>
+ </table>
+ </xsl:when>
+ <xsl:otherwise>
+ <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
+ <tr>
+ <td>
+ <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
+ </td>
+ <td>
+ <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
+ </td>
+ <td>
+ <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
+ </td>
+ <td>
+ <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
+ </td>
+ <td class="centerCell">
+  <!--<img src="{$resourcesRoot}/images/std-button-today.gif" width="46" height="17" border="0" alt="TODAY"/>-->
+ </td>
+ <td class="rightCell">
+  
+ </td>
+ </tr>
+ </table>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="navigation">
+ <table border="0" cellpadding="0" cellspacing="0" id="navigationBarTable">
+ <tr>
+ <td class="leftCell">
+ <a id="prevViewPeriod" href="{$setViewPeriod}&date={$prevdate}"><img src="{$resourcesRoot}/images/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a>
+ <a id="nextViewPeriod" href="{$setViewPeriod}&date={$nextdate}"><img src="{$resourcesRoot}/images/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a>
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Year'">
+ <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
+ </xsl:when>
+ <xsl:when test="/bedework/periodname='Month'">
+ <xsl:value-of select="/bedework/firstday/monthname"/>, <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
+ </xsl:when>
+ <xsl:when test="/bedework/periodname='Week'">
+ Week of <xsl:value-of select="substring-after(/bedework/firstday/longdate,', ')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="/bedework/firstday/longdate"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td class="todayButton">
+ <a href="{$setViewPeriod}&viewType=todayView&date={$curdate}">
+ <img src="{$resourcesRoot}/images/std-button-today-off.gif" width="54" height="22" border="0" alt="Go to Today" align="left"/>
+ </a>
+ </td>
+ <td align="right" class="gotoForm">
+ <form name="calForm" method="get" action="{$setViewPeriod}">
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <xsl:if test="/bedework/periodname!='Year'">
+ <td>
+ <select name="viewStartDate.month">
+ <xsl:for-each select="/bedework/monthvalues/val">
+ <xsl:variable name="temp" select="."/>
+ <xsl:variable name="pos" select="position()"/>
+ <xsl:choose>
+ <xsl:when test="/bedework/monthvalues[start=$temp]">
+ <option value="{$temp}" selected="selected">
+ <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
+ </option>
+ </xsl:when>
+ <xsl:otherwise>
+ <option value="{$temp}">
+ <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
+ </option>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </select>
+ </td>
+ <xsl:if test="/bedework/periodname!='Month'">
+ <td>
+ <select name="viewStartDate.day">
+ <xsl:for-each select="/bedework/dayvalues/val">
+ <xsl:variable name="temp" select="."/>
+ <xsl:variable name="pos" select="position()"/>
+ <xsl:choose>
+ <xsl:when test="/bedework/dayvalues[start=$temp]">
+ <option value="{$temp}" selected="selected">
+ <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
+ </option>
+ </xsl:when>
+ <xsl:otherwise>
+ <option value="{$temp}">
+ <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
+ </option>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </select>
+ </td>
+ </xsl:if>
+ </xsl:if>
+ <td>
+ <xsl:variable name="temp" select="/bedework/yearvalues/start"/>
+ <input type="text" name="viewStartDate.year" maxlength="4" size="4" value="{$temp}"/>
+ </td>
+ <td>
+ <input name="submit" type="submit" value="go"/>
+ </td>
+ </tr>
+ </table>
+ </form>
+ </td>
+ <td class="rightCell">
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <xsl:template name="searchBar">
+ <table width="100%" border="0" cellpadding="0" cellspacing="0" id="searchBarTable">
+ <tr>
+ <td class="leftCell">
+ <xsl:choose>
+ <xsl:when test="/bedework/selectionState/selectionType = 'calendar'">
+ Calendar: <xsl:value-of select="/bedework/selectionState/subscriptions/subscription/calendar/name"/>
+ <span class="link">[<a href="{$setSelection}">default view</a>]</span>
+ </xsl:when>
+ <xsl:when test="/bedework/selectionState/selectionType = 'search'">
+ Current search: <xsl:value-of select="/bedework/search"/>
+ <span class="link">[<a href="{$setSelection}">default view</a>]</span>
+ </xsl:when>
+ <xsl:when test="/bedework/selectionState/selectionType = 'subscription'">
+ Subscription: (not implemented yet)
+ <span class="link">[<a href="{$setSelection}">default view</a>]</span>
+ </xsl:when>
+ <xsl:when test="/bedework/selectionState/selectionType = 'filter'">
+ Filter: (not implemented yet)
+ <span class="link">[<a href="{$setSelection}">default view</a>]</span>
+ </xsl:when>
+ <xsl:otherwise><!-- view -->
+ View:
+ <form name="selectViewForm" method="get" action="{$setSelection}">
+ <select name="viewName" onChange="submit()" >
+ <xsl:for-each select="/bedework/views/view">
+ <xsl:variable name="name" select="name"/>
+ <xsl:choose>
+ <xsl:when test="name=/bedework/selectionState/view/name">
+ <option value="{$name}" selected="selected"><xsl:value-of select="name"/></option>
+ </xsl:when>
+ <xsl:otherwise>
+ <option value="{$name}"><xsl:value-of select="name"/></option>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </select>
+ </form>
+ <span class="calLinks"><a href="{$setSelection}">default view</a> | <a href="{$fetchPublicCalendars}">available calendars</a></span>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td class="rightCell">
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Day'">
+ <img src="{$resourcesRoot}/images/std-button-listview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
+ </xsl:when>
+ <xsl:when test="/bedework/periodname='Year'">
+ <img src="{$resourcesRoot}/images/std-button-calview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
+ </xsl:when>
+ <xsl:when test="/bedework/periodname='Month'">
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
+ <a href="{$setup}&setappvar=monthViewMode(cal)" title="toggle list/calendar view">
+ <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setup}&setappvar=monthViewMode(list)" title="toggle list/calendar view">
+ <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'">
+ <a href="{$setup}&setappvar=weekViewMode(cal)" title="toggle list/calendar view">
+ <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setup}&setappvar=weekViewMode(list)" title="toggle list/calendar view">
+ <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Year' or
+ (/bedework/periodname='Month' and
+ (/bedework/appvar[key='monthViewMode']/value='cal' or
+ not(/bedework/appvar[key='monthViewMode']))) or
+ (/bedework/periodname='Week' and
+ (/bedework/appvar[key='weekViewMode']/value='cal' or
+ not(/bedework/appvar[key='weekViewMode'])))">
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
+ <img src="{$resourcesRoot}/images/std-button-summary-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <img src="{$resourcesRoot}/images/std-button-details-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
+ <a href="{$setup}&setappvar=summaryMode(summary)" title="toggle summary/detailed view">
+ <img src="{$resourcesRoot}/images/std-button-summary.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setup}&setappvar=summaryMode(details)" title="toggle summary/detailed view">
+ <img src="{$resourcesRoot}/images/std-button-details.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <a href="setup.do"><img src="{$resourcesRoot}/images/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a>
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <!--==== SINGLE EVENT ====-->
+ <xsl:template match="event">
+ <xsl:variable name="statusClass">
+ <xsl:choose>
+ <xsl:when test="status='CANCELLED'">bwStatusCancelled</xsl:when>
+ <xsl:when test="status='TENTATIVE'">bwStatusTentative</xsl:when>
+ <xsl:otherwise>bwStatusConfirmed</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <h2 class="{$statusClass}">
+ <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
+ <xsl:choose>
+ <xsl:when test="link != ''">
+ <xsl:variable name="link" select="link"/>
+ <a href="{$link}">
+ <xsl:value-of select="summary"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="summary"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </h2>
+ <table id="eventTable" cellpadding="0" cellspacing="0">
+ <tr>
+ <td class="fieldname">When:</td>
+ <td class="fieldval">
+ <xsl:value-of select="start/dayname"/>, <xsl:value-of select="start/longdate"/><xsl:text> </xsl:text>
+ <xsl:if test="start/allday = 'false'">
+ <span class="time"><xsl:value-of select="start/time"/></span>
+ </xsl:if>
+ <xsl:if test="(end/longdate != start/longdate) or
+ ((end/longdate = start/longdate) and (end/time != start/time))"> - </xsl:if>
+ <xsl:if test="end/longdate != start/longdate">
+ <xsl:value-of select="substring(end/dayname,1,3)"/>, <xsl:value-of select="end/longdate"/><xsl:text> </xsl:text>
+ </xsl:if>
+ <xsl:choose>
+ <xsl:when test="start/allday = 'true'">
+ <span class="time"><em>(all day)</em></span>
+ </xsl:when>
+ <xsl:when test="end/longdate != start/longdate">
+ <span class="time"><xsl:value-of select="end/time"/></span>
+ </xsl:when>
+ <xsl:when test="end/time != start/time">
+ <span class="time"><xsl:value-of select="end/time"/></span>
+ </xsl:when>
+ </xsl:choose>
+ </td>
+ <th class="icalIcon" rowspan="2">
+ <div id="eventIcons">
+ <xsl:variable name="id" select="id"/>
+ <xsl:variable name="subscriptionId" select="subscription/id"/>
+ <xsl:variable name="calPath" select="calendar/encodedPath"/>
+ <xsl:variable name="guid" select="guid"/>
+ <xsl:variable name="recurrenceId" select="recurrenceId"/>
+ <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
+ <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon.gif" width="20" height="26" border="0" alt="Add event to MyCalendar"/>
+ add to my calendar</a>
+ <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
+ <a href="{$export}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
+ <img src="{$resourcesRoot}/images/std-ical_icon.gif" width="20" height="26" border="0" alt="Download this event"/>
+ download</a>
+ </div>
+ </th>
+ </tr>
+ <tr>
+ <td class="fieldname">Where:</td>
+ <td class="fieldval">
+ <xsl:choose>
+ <xsl:when test="location/link=''">
+ <xsl:value-of select="location/address"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable name="locationLink" select="location/link"/>
+ <a href="{$locationLink}">
+ <xsl:value-of select="location/address"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:if test="location/subaddress!=''">
+ <br/><xsl:value-of select="location/subaddress"/>
+ </xsl:if>
+ </td>
+ </tr>
+ <tr>
+ <td class="fieldname">Description:</td>
+ <td colspan="2" class="fieldval description">
+ <xsl:call-template name="replace">
+ <xsl:with-param name="string" select="description"/>
+ <xsl:with-param name="pattern" select="'
'"/>
+ <xsl:with-param name="replacement"><br/></xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ <xsl:if test="status !='' and status != 'CONFIRMED'">
+ <tr>
+ <td class="fieldname">Status:</td>
+ <td class="fieldval">
+ <xsl:value-of select="status"/>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="cost!=''">
+ <tr>
+ <td class="fieldname">Cost:</td>
+ <td colspan="2" class="fieldval"><xsl:value-of select="cost"/></td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="link != ''">
+ <tr>
+ <td class="fieldname">See:</td>
+ <td colspan="2" class="fieldval">
+ <xsl:variable name="link" select="link"/>
+ <a href="{$link}"><xsl:value-of select="link"/></a>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="sponsor/name!='none'">
+ <tr>
+ <td class="fieldname">Contact:</td>
+ <td colspan="2" class="fieldval">
+ <xsl:choose>
+ <xsl:when test="sponsor/link=''">
+ <xsl:value-of select="sponsor/name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable name="sponsorLink" select="sponsor/link"/>
+ <a href="{$sponsorLink}">
+ <xsl:value-of select="sponsor/name"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:if test="sponsor/phone!=''">
+ <br /><xsl:value-of select="sponsor/phone"/>
+ </xsl:if>
+ <!-- If you want to display email addresses, uncomment the
+ following 8 lines. -->
+ <!-- <xsl:if test="sponsor/email!=''">
+ <br />
+ <xsl:variable name="email" select="sponsor/email"/>
+ <xsl:variable name="subject" select="summary"/>
+ <a href="mailto:{$email}&subject={$subject}">
+ <xsl:value-of select="sponsor/email"/>
+ </a>
+ </xsl:if> -->
+ </td>
+ </tr>
+ </xsl:if>
+ <tr>
+ <td class="fieldname">Calendar:</td>
+ <td class="fieldval">
+ <xsl:variable name="calUrl" select="calendar/path"/>
+ <a href="{$setSelection}&calUrl={$calUrl}">
+ <xsl:value-of select="calendar/name"/>
+ </a>
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <!--==== LIST VIEW (for day, week, and month) ====-->
+ <xsl:template name="listView">
+ <table id="listTable" border="0" cellpadding="0" cellspacing="0">
+ <xsl:choose>
+ <xsl:when test="not(/bedework/eventscalendar/year/month/week/day/event)">
+ <tr>
+ <td class="noEventsCell">
+ No events to display.
+ </td>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:for-each select="/bedework/eventscalendar/year/month/week/day[event]">
+ <xsl:if test="/bedework/periodname='Week' or /bedework/periodname='Month' or /bedework/periodname=''">
+ <tr>
+ <td colspan="5" class="dateRow">
+ <xsl:variable name="date" select="date"/>
+ <a href="{$setViewPeriod}&viewType=dayView&date={$date}">
+ <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:for-each select="event">
+ <xsl:variable name="id" select="id"/>
+ <xsl:variable name="subscriptionId" select="subscription/id"/>
+ <xsl:variable name="calPath" select="calendar/encodedPath"/>
+ <xsl:variable name="guid" select="guid"/>
+ <xsl:variable name="recurrenceId" select="recurrenceId"/>
+ <tr>
+ <xsl:variable name="dateRangeStyle">
+ <xsl:choose>
+ <xsl:when test="start/shortdate = parent::day/shortdate">
+ <xsl:choose>
+ <xsl:when test="start/allday = 'true'">dateRangeCrossDay</xsl:when>
+ <xsl:when test="start/hour24 < 6">dateRangeEarlyMorning</xsl:when>
+ <xsl:when test="start/hour24 < 12">dateRangeMorning</xsl:when>
+ <xsl:when test="start/hour24 < 18">dateRangeAfternoon</xsl:when>
+ <xsl:otherwise>dateRangeEvening</xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>dateRangeCrossDay</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="start/allday = 'true' and
+ start/shortdate = end/shortdate">
+ <td class="{$dateRangeStyle} center" colspan="3">
+ all day
+ </td>
+ </xsl:when>
+ <xsl:when test="start/shortdate = end/shortdate and
+ start/time = end/time">
+ <td class="{$dateRangeStyle} center" colspan="3">
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
+ <xsl:value-of select="start/time"/>
+ </a>
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td class="{$dateRangeStyle} right">
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
+ <xsl:choose>
+ <xsl:when test="start/allday = 'true' and
+ parent::day/shortdate = start/shortdate">
+ today
+ </xsl:when>
+ <xsl:when test="parent::day/shortdate != start/shortdate">
+ <span class="littleArrow">«</span> 
+ <xsl:value-of select="start/month"/>/<xsl:value-of select="start/day"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="start/time"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </a>
+ </td>
+ <td class="{$dateRangeStyle} center">
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">-</a>
+ </td>
+ <td class="{$dateRangeStyle} left">
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
+ <xsl:choose>
+ <xsl:when test="end/allday = 'true' and
+ parent::day/shortdate = end/shortdate">
+ today
+ </xsl:when>
+ <xsl:when test="parent::day/shortdate != end/shortdate">
+ <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/>
+  <span class="littleArrow">»</span>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="end/time"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </a>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:variable name="descriptionClass">
+ <xsl:choose>
+ <xsl:when test="status='CANCELLED'">description bwStatusCancelled</xsl:when>
+ <xsl:when test="status='TENTATIVE'">description bwStatusTentative</xsl:when>
+ <xsl:otherwise>description</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <td class="{$descriptionClass}">
+ <xsl:if test="status='CANCELLED'"><strong>CANCELLED: </strong></xsl:if>
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
+ <strong>
+ <xsl:value-of select="summary"/>:
+ </strong>
+ <xsl:value-of select="description"/> 
+ <em>
+ <xsl:value-of select="location/address"/>
+ <xsl:if test="location/subaddress != ''">
+ , <xsl:value-of select="location/subaddress"/>
+ </xsl:if>. 
+ <xsl:if test="cost!=''">
+ <xsl:value-of select="cost"/>. 
+ </xsl:if>
+ <xsl:if test="sponsor/name!='none'">
+ Contact: <xsl:value-of select="sponsor/name"/>
+ </xsl:if>
+ </em>
+ </a>
+ <xsl:if test="link != ''">
+ <xsl:variable name="link" select="link"/>
+ <a href="{$link}" class="moreLink"><xsl:value-of select="link"/></a>
+ </xsl:if>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
+ <xsl:value-of select="summary"/>
+ <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td class="icons">
+ <variable name="confId" select="/bedework/confirmationid"/>
+ <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
+ <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/>
+ </a>
+ <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
+ <a href="{$export}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
+ <img src="{$resourcesRoot}/images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </xsl:for-each>
+ </xsl:otherwise>
+ </xsl:choose>
+ </table>
+ </xsl:template>
+
+ <!--==== WEEK CALENDAR VIEW ====-->
+ <xsl:template name="weekView">
+ <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <xsl:for-each select="/bedework/daynames/val">
+ <th class="dayHeading"><xsl:value-of select="."/></th>
+ </xsl:for-each>
+ </tr>
+ <tr>
+ <xsl:for-each select="/bedework/eventscalendar/year/month/week/day">
+ <xsl:variable name="dayPos" select="position()"/>
+ <xsl:if test="filler='false'">
+ <td>
+ <xsl:variable name="dayDate" select="date"/>
+ <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}" class="dayLink">
+ <xsl:value-of select="value"/>
+ </a>
+ <ul>
+ <xsl:apply-templates select="event" mode="calendarLayout">
+ <xsl:with-param name="dayPos" select="$dayPos"/>
+ </xsl:apply-templates>
+ </ul>
+ </td>
+ </xsl:if>
+ </xsl:for-each>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <!--==== MONTH CALENDAR VIEW ====-->
+ <xsl:template name="monthView">
+ <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <xsl:for-each select="/bedework/daynames/val">
+ <th class="dayHeading"><xsl:value-of select="."/></th>
+ </xsl:for-each>
+ </tr>
+ <xsl:for-each select="/bedework/eventscalendar/year/month/week">
+ <tr>
+ <xsl:for-each select="day">
+ <xsl:variable name="dayPos" select="position()"/>
+ <xsl:choose>
+ <xsl:when test="filler='true'">
+ <td class="filler"> </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td>
+ <xsl:variable name="dayDate" select="date"/>
+ <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}" class="dayLink">
+ <xsl:value-of select="value"/>
+ </a>
+ <ul>
+ <xsl:apply-templates select="event" mode="calendarLayout">
+ <xsl:with-param name="dayPos" select="$dayPos"/>
+ </xsl:apply-templates>
+ </ul>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </xsl:template>
+
+ <xsl:template match="event" mode="calendarLayout">
+ <xsl:param name="dayPos"/>
+ <xsl:variable name="subscriptionId" select="subscription/id"/>
+ <xsl:variable name="calPath" select="calendar/encodedPath"/>
+ <xsl:variable name="guid" select="guid"/>
+ <xsl:variable name="recurrenceId" select="recurrenceId"/>
+ <xsl:variable name="eventClass">
+ <xsl:choose>
+ <!-- Special styles for the month grid -->
+ <xsl:when test="status='CANCELLED'">eventCancelled</xsl:when>
+ <xsl:when test="status='TENTATIVE'">eventTentative</xsl:when>
+ <xsl:when test="calendar/name='Holidays'">holiday</xsl:when>
+ <!-- Alternating colors for all standard events -->
+ <xsl:when test="position() mod 2 = 1">eventLinkA</xsl:when>
+ <xsl:otherwise>eventLinkB</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <li>
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" class="{$eventClass}">
+ <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
+ <xsl:value-of select="summary"/>
+ <xsl:variable name="eventTipClass">
+ <xsl:choose>
+ <xsl:when test="$dayPos > 5">eventTipReverse</xsl:when>
+ <xsl:otherwise>eventTip</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <span class="{$eventTipClass}">
+ <xsl:if test="status='CANCELLED'"><span class="eventTipStatusCancelled">CANCELLED</span></xsl:if>
+ <xsl:if test="status='TENTATIVE'"><span class="eventTipStatusTentative">TENTATIVE</span></xsl:if>
+ <strong><xsl:value-of select="summary"/></strong><br/>
+ Time:
+ <xsl:choose>
+ <xsl:when test="start/allday = 'false'">
+ <xsl:value-of select="start/time"/>
+ <xsl:if test="start/time != end/time">
+ - <xsl:value-of select="end/time"/>
+ </xsl:if>
+ </xsl:when>
+ <xsl:otherwise>
+ all day
+ </xsl:otherwise>
+ </xsl:choose><br/>
+ <xsl:if test="location/address">
+ Location: <xsl:value-of select="location/address"/><br/>
+ </xsl:if>
+ Calendar: <xsl:value-of select="calendar/name"/>
+ </span>
+ </a>
+ </li>
+ </xsl:template>
+
+ <!--==== YEAR VIEW ====-->
+ <xsl:template name="yearView">
+ <table id="yearCalendarTable" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() <= 3]"/>
+ </tr>
+ <tr>
+ <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 3) and (position() <= 6)]"/>
+ </tr>
+ <tr>
+ <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 6) and (position() <= 9)]"/>
+ </tr>
+ <tr>
+ <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() > 9]"/>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <!-- year view month tables -->
+ <xsl:template match="month">
+ <td>
+ <table class="yearViewMonthTable" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td colspan="8" class="monthName">
+ <xsl:variable name="firstDayOfMonth" select="week/day/date"/>
+ <a href="{$setViewPeriod}&viewType=monthView&date={$firstDayOfMonth}">
+ <xsl:value-of select="longname"/>
+ </a>
+ </td>
+ </tr>
+ <tr>
+ <th> </th>
+ <xsl:for-each select="/bedework/shortdaynames/val">
+ <th><xsl:value-of select="."/></th>
+ </xsl:for-each>
+ </tr>
+ <xsl:for-each select="week">
+ <tr>
+ <td class="weekCell">
+ <xsl:variable name="firstDayOfWeek" select="day/date"/>
+ <a href="{$setViewPeriod}&viewType=weekView&date={$firstDayOfWeek}">
+ <xsl:value-of select="value"/>
+ </a>
+ </td>
+ <xsl:for-each select="day">
+ <xsl:choose>
+ <xsl:when test="filler='true'">
+ <td class="filler"> </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td>
+ <xsl:variable name="dayDate" select="date"/>
+ <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}">
+ <xsl:value-of select="value"/>
+ </a>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </td>
+ </xsl:template>
+
+ <!--==== CALENDARS PAGE ====-->
+ <xsl:template match="calendars">
+ <xsl:variable name="topLevelCalCount" select="count(calendar/calendar)"/>
+ <table id="calPageTable" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <th colspan="2">
+ All Calendars
+ </th>
+ </tr>
+ <tr>
+ <td colspan="2" class="infoCell">
+ Select a calendar from the list below to see only that calendar's events.
+ </td>
+ </tr>
+ <tr>
+ <td class="leftCell">
+ <ul class="calendarTree">
+ <xsl:apply-templates select="calendar/calendar[position() <= ceiling($topLevelCalCount div 2)]" mode="calTree"/>
+ </ul>
+ </td>
+ <td>
+ <ul class="calendarTree">
+ <xsl:apply-templates select="calendar/calendar[position() > ceiling($topLevelCalCount div 2)]" mode="calTree"/>
+ </ul>
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <xsl:template match="calendar" mode="calTree">
+ <xsl:variable name="itemClass">
+ <xsl:choose>
+ <xsl:when test="calendarCollection='false'">folder</xsl:when>
+ <xsl:otherwise>calendar</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="url" select="path"/>
+ <li class="{$itemClass}">
+ <a href="{$setSelection}&calUrl={$url}"><xsl:value-of select="name"/></a>
+ <xsl:if test="calendar">
+ <ul>
+ <xsl:apply-templates select="calendar" mode="calTree"/>
+ </ul>
+ </xsl:if>
+ </li>
+ </xsl:template>
+
+ <!--+++++++++++++++ System Stats ++++++++++++++++++++-->
+ <xsl:template name="stats">
+ <div id="stats">
+ <h2>System Statistics</h2>
+
+ <p>
+ Stats collection:
+ </p>
+ <ul>
+ <li>
+ <a href="{$stats}&enable=yes">enable</a> |
+ <a href="{$stats}&disable=yes">disable</a>
+ </li>
+ <li><a href="{$stats}&fetch=yes">fetch statistics</a></li>
+ <li><a href="{$stats}&dump=yes">dump stats to log</a></li>
+ </ul>
+ <table id="statsTable" cellpadding="0">
+ <xsl:for-each select="/bedework/sysStats/*">
+ <xsl:choose>
+ <xsl:when test="name(.) = 'header'">
+ <tr>
+ <th colspan="2">
+ <xsl:value-of select="."/>
+ </th>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr>
+ <td class="label">
+ <xsl:value-of select="label"/>
+ </td>
+ <td class="value">
+ <xsl:value-of select="value"/>
+ </td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </table>
+ </div>
+ </xsl:template>
+
+ <!--==== UTILITY TEMPLATES ====-->
+
+ <!-- search and replace template taken from
+ http://www.biglist.com/lists/xsl-list/archives/200211/msg00337.html -->
+ <xsl:template name="replace">
+ <xsl:param name="string" select="''"/>
+ <xsl:param name="pattern" select="''"/>
+ <xsl:param name="replacement" select="''"/>
+ <xsl:choose>
+ <xsl:when test="$pattern != '' and $string != '' and contains($string, $pattern)">
+ <xsl:value-of select="substring-before($string, $pattern)"/>
+ <xsl:copy-of select="$replacement"/>
+ <xsl:call-template name="replace">
+ <xsl:with-param name="string" select="substring-after($string, $pattern)"/>
+ <xsl:with-param name="pattern" select="$pattern"/>
+ <xsl:with-param name="replacement" select="$replacement"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$string"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!--==== FOOTER ====-->
+
+ <xsl:template name="footer">
+ <div id="footer">
+ Demonstration calendar; place footer information here.
+ </div>
+ <table id="skinSelectorTable" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td class="leftCell">
+ Based on the <a href="http://www.bedework.org/">Bedework Calendar</a> |
+ <a href="?noxslt=yes">show XML</a> |
+ <a href="?refreshXslt=yes">refresh XSLT</a>
+ </td>
+ <td class="rightCell">
+ <form name="styleSelectForm" method="get" action="{$setup}">
+ <select name="setappvar" onChange="submit()">
+ <option>example styles:</option>
+ <option value="style(green)">green</option>
+ <option value="style(red)">red</option>
+ <option value="style(blue)">blue</option>
+ </select>
+ </form>
+ <form name="skinSelectForm" method="get" action="{$setup}">
+ <input type="hidden" name="setappvar" value="summaryMode(details)"/>
+ <select name="skinPicker" onchange="window.location = this.value">
+ <option>example skins:</option>
+ <option value="{$setViewPeriod}&viewType=weekView&skinName=rss&setappvar=summaryMode(details)">rss feed</option>
+ <option value="{$setViewPeriod}&viewType=todayView&skinName=jsToday&contentType=text/javascript&contentName=bedework.js">javascript feed</option>
+ <option value="{$setViewPeriod}&viewType=todayView&skinName=videocal">video feed</option>
+ <option value="{$setup}&skinName=default">reset to calendar default</option>
+ </select>
+ </form>
+ <form name="skinSelectForm" method="get" action="">
+ <select name="sitePicker" onchange="window.location = this.value">
+ <option>production examples:</option>
+ <option value="http://events.dal.ca/">Dalhousie</option>
+ <option value="http://events.rpi.edu">Rensselaer</option>
+ <option value="http://myuw.washington.edu/cal/">Washington</option>
+ </select>
+ </form>
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
+</xsl:stylesheet>
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/soe.css
===================================================================
--- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/soe.css 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/soe.css 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,904 +0,0 @@
-body {
- font-family : Arial, Helvetica, sans-serif;
- font-size: 100%; /* needed for IE */
- background-color : #666;
- color : black;
- padding: 0 1em 0em 1em;
- margin: 0;
-}
-#headBar {
- position: relative;
- background: #663 url(../../images/soecal/soeTitleBg.jpg);
- color: #eee;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
- height: 106px;
- padding: 12px;
- margin: 0;
- text-align: right;
-}
-#headBar img {
- display: inline;
- padding: 0 10px 20px 0;
-}
-#headBar h1 {
- margin: 0;
- padding: 84px 0 0 0;
- font-size: 1em;
- letter-spacing: 1px;
- font-weight: normal;
- color: #eee;
- background-color: transparent;
-}
-#headBar #bedeworkLogo {
- position: absolute;
- top: 18px;
- right: 0;
-}
-#headBar #schoolLinks {
- font-size: 0.8em;
- white-space : nowrap;
- padding: 110px 0 0 0;
- margin: 0;
-}
-#headBar #schoolLinks li {
- display: inline;
- list-style: none;
- padding: 0 0 0 1.5em;
-}
-#headBar #schoolLinks a:link,
-#headBar #schoolLinks a:visited,
-#headBar #schoolLinks a:active {
- background-color: transparent;
- color: #ddd;
- text-decoration: none;
-}
-#headBar #schoolLinks a:hover {
- background-color: transparent;
- color: #fff;
- text-decoration: none;
-}
-#curDateRangeTable {
- width: 100%;
- height: 26px;
- background: #663;
- color : #eee;
- margin: 0em;
- font-weight : bold;
- text-align : center;
- vertical-align: middle;
- white-space: nowrap;
-}
-#curDateRangeTable td {
- padding-top: 5px;
- padding-bottom: 1px;
- padding-left: 0.5em;
- padding-right: 0.5em;
-}
-#curDateRangeTable td.sideBarOpenCloseIcon {
- width: 200px;
-}
-#curDateRangeTable td.date {
- font-weight : bold;
- text-align : center;
- white-space: nowrap;
-}
-#searchBarTable {
- margin: 0px;
- padding: 0em;
- background-color : #eee;
- color: black;
- font-size: 0.9em;
-}
-#searchBarTable .leftCell {
- margin: 0px;
- padding: 0em;
- border-left: 2px solid #333;
- padding: 0.1em 0 0 0.5em;
- white-space: nowrap;
-}
-#searchBarTable .leftCell .link {
- font-size: 0.8em;
- padding-left: 1em;
- color: #999;
- background-color: transparent;
-}
-#searchBarTable .leftCell a {
- color: #888;
- background-color: transparent;
-}
-#searchBarTable .leftCell a:hover {
- color: #b00;
- background-color: transparent;
-}
-#searchBarTable .rightCell {
- margin: 0px;
- padding: 0em;
- text-align: right;
- border-right: 2px solid #333;
- padding: 0.1em 0.1em 0em 0em;
- white-space: nowrap;
-}
-#searchBarTable form {
- display: inline;
- margin: 0px 0px 1px 0px;
- padding: 0em;
-}
-#tabsTable {
- margin: 0em;
- padding: 4px 0px 0px 0px;
- text-align: center;
- background-color: #333;
- color: #eee;
- border-left: 1px solid #333;
-}
-#tabsTable td.rssPrint {
- background : url(../../images/demo/std-tab-space.gif);
- padding-right: 0.5em;
- width: 100%;
- font-weight : bold;
- text-align : right;
- white-space: nowrap;
-}
-#tabsTable td.rssPrint img {
- position: relative;
- top: 3px;
-}
-#tabsTable td.rssPrint a:link,
-#tabsTable td.rssPrint a:active,
-#tabsTable td.rssPrint a:visited {
- font-size: 10px;
- color: #eee;
- background-color: transparent;
- font-family: Arial, Helvetica, sans-serif;
- padding: 0;
- text-decoration: none;
- margin-right: 0.5em;
- position: relative;
- top: -3px;
-}
-#tabsTable td.rssPrint a:hover {
- color: #663;
- background-color: #fff;
-}
-#tabsTable td.rssPrint a.rss:link,
-#tabsTable td.rssPrint a.rss:active,
-#tabsTable td.rssPrint a.rss:visited {
- font-size: 10px;
- font-weight: bold;
- color: #444;
- background-color: #ddd;
- font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
- padding: 0px 1px 0px 1px;
- text-decoration: none;
- margin-right: 0.5em;
- margin-left: 2px;
- position: relative;
- top: -3px;
- border: solid 1px #666;
-}
-#tabsTable td.rssPrint a.rss:hover {
- color: #900;
- background-color: #fff;
-}
-#navigationBarTable {
- font-size: 0.8em;
- margin: 0em;
- padding: 0em;
- vertical-align: top;
- color: black;
- background: white;
- border-left : 2px solid #333;
- border-right : 2px solid #333;
- border-bottom: 1px solid Gray;
-}
-#navigationBarTable a {
- text-decoration: none;
- white-space: nowrap;
-}
-#navigationBarTable td {
- vertical-align: top;
-}
-#navigationBarTable form {
- display: inline;
- margin-bottom: 0em;
-}
-#navigationBarTable table {
- display: inline;
- margin-bottom: 0em;
-}
-#navigationBarTable td.todayButton {
- padding: 1em 1em 0 1em;
-}
-#navigationBarTable td.gotoForm {
- padding: 1em 0.5em 0 0;
-}
-#navigationBarTable td.leftCell {
- text-align: left;
- white-space: nowrap;
- padding-left: 0.5em;
- font-size: 1.3em;
- font-weight: bold;
- padding: 0.75em 0em 0.75em 1em;
- width: 100%;
- vertical-align: middle;
-}
-#navigationBarTable td.leftCell .prevImg {
- margin: 0 0.2em 0 0;
- vertical-align: top;
-}
-#navigationBarTable td.leftCell .nextImg {
- margin: 0 0.75em 0 0;
- vertical-align: top;
-}
-#navigationBarTable td.rightCell {
- text-align: right;
- padding: 1em 0.5em 0em 0em;
-}
-#navigationBarTable td.rightCell select {
- padding-right: 0em;
- margin: 0em;
- width: 10em;
-}
-#searchBarTable .calLinks {
- white-space: nowrap;
-}
-#eventTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
- color: black;
- background: white;
-}
-#eventTable td.fieldname {
- margin: 0em;
- vertical-align: top;
- padding: 0.5em 0.5em 0.2em 0.5em;
- background-color: #eee;
- /*background-color: #EDF5F9;*/
- color: black;
-}
-#eventTable td.fieldval {
- margin: 0em;
- vertical-align: top;
- padding: 0.5em 0.5em 0.2em 1em;
-}
-#eventTable th.fieldval {
- text-align: left;
- padding: 1em 0.5em 0.5em 1em;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#eventTable th.icalIcon {
- margin: 0em;
- vertical-align: middle;
- text-align: right;
- padding: 0.5em 1em 0.2em 0.5em;
- white-space: nowrap;
- font-size: 0.9em;
- font-weight: normal;
-}
-#eventTable th.icalIcon a {
- text-decoration: none;
-}
-#eventTable th.icalIcon img {
- vertical-align: middle;
- padding-left: 1em;
-}
-#eventTable th.fieldname {
- text-align: left;
- padding: 1em 0.5em 1em 0.5em;
- background-color: #eee;
- /*background-color: #EDF5F9;*/
- color: black;
-}
-#eventTable th.fieldval {
- text-align: left;
- padding: 1em 0.5em 0.5em 1em;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#calPageTable {
- width: 100%;
- font-size: 100%;
- margin: 0px;
- padding: 0px;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#calPageTable td {
- width: 50%;
- vertical-align: top;
- padding: 0.5em 2em 1em 3em;
-}
-#calPageTable th {
- font-size: 1.2em;
- background-color: #ccc;
- color: black;
- font-weight: bold;
-}
-#calPageTable td.leftCell {
- border-right : thin dashed #999;
-}
-#calPageTable h2 {
- font-size: 1.2em;
-}
-#calPageTable td.infoCell {
- background-color: #ddd;
- color: black;
- text-align: center;
-}
-#dayCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#dayCalendarTable td {
- padding: 0.4em;
- margin: 0em;
-}
-#dayCalendarTable .dateRange {
- text-align: left;
- background-color: #f0eee5;
- color: black;
- white-space: nowrap;
-}
-#dayCalendarTable .description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#dayCalendarTable .more {
- text-align: center;
- background-color: #eee;
- color: black;
- font-size: 0.8em;
-}
-#weekCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#weekCalendarTable td {
- padding: 0.4em;
- margin: 0em;
-}
-#weekCalendarTable .dateRange {
- text-align: left;
- background-color: #e2decc;
- color: black;
- white-space: nowrap;
-}
-#weekCalendarTable .description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#weekCalendarTable .more {
- text-align: center;
- background-color: #eee;
- color: black;
- font-size: 0.8em;
-}
-#monthCalendarTable {
- width: 100%;
- font-size: 0.8em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#monthCalendarTable th.dayHeading {
- width: 14%;
- text-align: center;
- vertical-align: middle;
- background-color: #663;
- color: #eee;
- border: 1px solid black;
-}
-#monthCalendarTable td {
- width: 14%;
- height: 60px;
- vertical-align: top;
- text-align: left;
- padding: 0em;
- border: 1px solid #aaa;
- background-color: white;
- color: black;
-}
-#monthCalendarTable td.filler {
- border: none;
- background-color: #eee;
- color: black;
-}
-#monthCalendarTable ul {
- font-size: 0.8em;
- list-style : none;
- margin: 0em;
- padding: 0.3em 0em 0em 0em;
-}
-#monthCalendarTable ul li {
- margin: 0em;
- padding: 0em;
- display: inline;
-}
-#monthCalendarTable a.eventLinkA:link,
-#monthCalendarTable a.eventLinkA:visited,
-#monthCalendarTable a.eventLinkA:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #d1cbb3;
- color: black;
-}
-#monthCalendarTable a.eventLinkB:link,
-#monthCalendarTable a.eventLinkB:visited,
-#monthCalendarTable a.eventLinkB:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #f0eee5;
- color: black;
-}
-#monthCalendarTable a.eventCancelled:link,
-#monthCalendarTable a.eventCancelled:visited,
-#monthCalendarTable a.eventCancelled:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #ccc;
- color: black;
-}
-#monthCalendarTable a.eventTentative:link,
-#monthCalendarTable a.eventTentative:visited,
-#monthCalendarTable a.eventTentative:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- border-bottom: 1px solid #ccc;
- border-top: 1px solid #ccc;
- background: #f0eee5 url('../../images/tentativeLines.gif') top;
- color: black;
-}
-#monthCalendarTable a.holiday:link,
-#monthCalendarTable a.holiday:visited,
-#monthCalendarTable a.holiday:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #fff;
- color: black;
- /*border-top: 1px solid black;
- border-bottom: 1px solid black;*/
-}
-#monthCalendarTable a.eventLinkA:hover,
-#monthCalendarTable a.eventLinkB:hover,
-#monthCalendarTable a.eventCancelled:hover,
-#monthCalendarTable a.eventTentative:hover,
-#monthCalendarTable a.holiday:hover {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- color: black;
- background-color: #ffe;
-}
-#monthCalendarTable a.dayLink {
- text-decoration: none;
- color: black;
- background-color: transparent;
-}
-#monthCalendarTable a:hover.dayLink {
- text-decoration: none;
- color: #eee;
- background-color: black;
-}
-#monthCalendarTable a:hover {
- /* required for eventTip to hover correctly;
- apply only to the hover pseudo class, or
- the other anchors nearby will cover the eventTip in IE */
- position: relative;
-}
-#monthCalendarTable a span.eventTip,
-#monthCalendarTable a span.eventTipReverse {
- display: none;
-}
-#monthCalendarTable a:hover span.eventTip {
- display: block;
- position: absolute;
- width: 20em;
- top: 1em;
- left: 12em;
- background-color: #ffe;
- color: black;
- padding: 4px;
- border: 1px solid #333;
-}
-#monthCalendarTable a:hover span.eventTipReverse {
- display: block;
- position: absolute;
- width: 20em;
- top: 1em;
- left: -21em;
- background-color: #ffe;
- color: black;
- padding: 4px;
- border: 1px solid #333;
-}
-#monthCalendarTable a:hover span.eventTipStatusCancelled {
- display: block;
- color: white;
- background-color: #333;
- padding: 2px;
- margin-bottom: 6px;
- text-align: center;
-}
-#monthCalendarTable a:hover span.eventTipStatusTentative {
- display: block;
- color: black;
- background: #eee url('../../images/tentativeLines.gif') top;
- padding: 2px;
- margin-bottom: 6px;
- border: 1px solid #ccc;
- text-align: center;
-}
-a.gridAdd {
- display: block;
- float: right;
- font-size: 0.8em;
- text-decoration: none;
- margin-right: 2px;
-}
-#yearCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0em;
- color: black;
- background: white;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#yearCalendarTable td {
- padding: 1em 0em 0em 0em;
- margin: 0em;
- vertical-align: top;
- text-align: center;
- width: 33%;
-}
-#yearCalendarTable table.yearViewMonthTable {
- margin: 0em 1em 0.5em 1em;
- border: 1px solid #666;
-}
-#yearCalendarTable table.yearViewMonthTable td {
- text-align: center;
- padding: 0.2em;
- width: 12.5%;
-}
-#yearCalendarTable table.yearViewMonthTable th {
- font-weight: bold;
- background-color: #f5f5f5;
- color: black;
- padding: 0.2em;
-}
-#yearCalendarTable table.yearViewMonthTable td.monthName {
- font-weight: bold;
- text-align: center;
- background-color: #d1cbb3;
- color: #eee;
- white-space: nowrap;
- border-bottom: 1px solid #999;
-}
-#yearCalendarTable table.yearViewMonthTable td.weekCell {
- font-weight: bold;
- font-size: 0.8em;
- background-color: #f5f5f5;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td a {
- text-decoration: none;
- background-color: inherit;
- border: 1px solid #dlcbb3;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td.weekCell a {
- text-decoration: none;
- background-color: inherit;
- border: 1px solid #f5f5f5;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td.monthName a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td a:hover {
- text-decoration: none;
- background-color: #FFC;
- color: black;
- border: 1px solid black;
- padding: 0;
-}
-#listTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
- color: black;
- background: white;
-}
-#listTable td {
- padding: 0.5em;
- margin: 0em;
- border-bottom: 1px solid #bbb;
-}
-#listTable td a {
- background-color: transparent;
- color: black;
- text-decoration: none;
-}
-#listTable td.dateRangeCrossDay {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #ddd;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeEarlyMorning {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #cbd1de;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeMorning {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #f0eee5;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeAfternoon {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #e2decc;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeEvening {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #d1cbb3;
- color: black;
- white-space: nowrap;
-}
-#listTable span.littleArrow {
- font-size: 1.4em;
-}
-#listTable td.description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#listTable td.bwStatusCancelled {
- background-color: #ddd;
- color: black;
-}
-#listTable td.bwStatusTentative {
- background: white url('../../images/tentativeLines.gif') top;
- color: black;
-}
-#listTable td.description a {
- display: block;
- background-color: transparent;
- color: black;
- text-decoration: none;
-}
-#listTable td.description a.moreLink {
- display: inline;
- background-color: transparent;
- color: #663;
- text-decoration: underline;
-}
-#listTable td.description:hover {
- background-color: #eee;
- color: black;
- text-decoration: none;
-}
-#listTable td.dateRow {
- text-align: left;
- background-color: #888;
- color: #eee;
- font-size: 0.8em;
- padding: 0.2em 0.5em 0.2em 0.5em;
- margin: 0em;
-}
-#listTable td.dateRow a {
- display: block;
- color: #fff;
- background-color: transparent;
- font-weight: bold;
- text-decoration : none;
-}
-#listTable td.icons {
- color: black;
- background-color: #ddd;
- white-space: nowrap;
-}
-#listTable td.icons img.addref {
- margin-right: 0.5em;
-}
-#calPageTable {
- background: white;
- color: black;
-}
-#calPageTable ul.calendarTree li {
- font-weight: bold;
-}
-#calPageTable ul.calendarTree li ul li {
- font-weight: normal;
-}
-#calPageTable ul.calendarTree li.folder {
- list-style-image: url(../../images/demo/catIcon.gif);
- padding-top: 0.25em;
- padding-bottom: 0.25em;
-}
-#calPageTable ul.calendarTree li.calendar {
- list-style-image: url(../../images/demo/calIcon-sm.gif);
-}
-.noEventsCell {
- padding: 1em;
-}
-#footer {
- font-size: 0.75em;
- text-align : center;
- margin-top: 0em;
- padding: 1em;
- color: #333;
- background-color: #eee;
- border-bottom: 2px solid #333;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
- white-space: nowrap;
-}
-#footer a {
- color: #333;
- background-color: transparent;
- text-decoration: underline;
-}
-#subFoot {
- width: 100%;
- padding-top: 0.5em;
- font-size: 0.7em;
- color: #bbb;
- background-color: inherit;
-}
-#subFoot a {
- color: #bbb;
- background-color: transparent;
- text-decoration: underline;
-}
-#subFoot a:hover {
- color: #eee;
- background-color: transparent;
- text-decoration: underline;
-}
-#featureHighlight {
- color: #dd0;
- font-style: italic;
-}
-/* LINKS */
-a:link, a:active {
- color: #552;
- background-color: transparent;
-}
-a:visited {
- color: #600;
- background-color: transparent;
-}
-a:hover {
- color: red;
- background-color: transparent;
-}
-/* Generic selectors*/
-.center {
- text-align: center;
-}
-.left {
- text-align: left;
-}
-.right {
- text-align: right;
-}
-h2 {
- margin: 0em;
- padding: 0.2em 0.2em 0.2em 0.5em;
- font-size: 1.3em;
- border-bottom: 1px solid #ccc;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-h2 a:link,
-h2 a:active,
-h2 a:visited,
-h2 a:hover {
- color: black;
- background-color: inherit;
- text-decoration: none;
-}
-h2.bwStatusConfirmed {
- background-color: #eee;
- color: black;
-}
-h2.bwStatusCancelled {
- background-color: #eee;
- color: black;
-}
-h2.bwStatusTentative {
- background: #eee url('../../images/tentativeLines.gif') top;
-}
-/* Header IDs and classes */
-#errors {
- margin: 0;
- padding: 1em;
- background-color: #333;
- color: #ff9;
- font-weight: bold;
-}
-#tabsTable .centerCell {
- text-align: left;
- background : url(../../images/demo/std-tab-space.gif);
- font-size: 0.8em;
- white-space: nowrap;
- width: 100%;
- padding: 0 1em;
-}
-#stats {
- font-size: 0.9em;
- margin: 0px;
- padding: 1em;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-#statsTable {
- margin: 1em 0 0 4em;
- width: 300px;
-}
-#statsTable th {
- padding: 0.5em;
- background-color: #eee;
- color: black;
-}
-#statsTable td.label {
- text-align: right;
- padding-right: 2em;
-}
\ No newline at end of file
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/soe.xsl
===================================================================
--- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/soe.xsl 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/soe.xsl 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,1161 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:output
- method="html"
- indent="yes"
- media-type="text/html"
- doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
- doctype-system="http://www.w3.org/TR/html4/loose.dtd"
- standalone="yes"
-/>
-
-<!-- =========================================================
-
- DEMONSTRATION "DEPARTMENTAL" CALENDAR STYLESHEET
-
- This stylesheet is for the "soe" (School of Engineering)
- calendar suite; it is an example of a departmental skin.
-
- This skin, along with the preferences for the Calendar
- Suite owner differ from the main public skin (default.xsl) in the
- following ways:
- - different header, title, and footer
- - default view = Month
- - default layout = list view (rather than calendar grid)
- - different color scheme
-
- Otherwise, for the sake of demonstration, we've left most of the
- functionality of the public client in place.
-
- For detailed instructions on how to work with the XSLT
- stylesheets included with this distribution, please see the
- Bedework Design Guide at
- http://www.bedework.org/bedework/update.do?artcenterkey=24
-
-=============================================================== -->
-
-<!-- **********************************************************************
- Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved.
-
- Redistribution and use of this distribution in source and binary forms,
- with or without modification, are permitted provided that:
- The above copyright notice and this permission notice appear in all
- copies and supporting documentation;
-
- The name, identifiers, and trademarks of Rensselaer Polytechnic
- Institute are not used in advertising or publicity without the
- express prior written permission of Rensselaer Polytechnic Institute;
-
- DISCLAIMER: The software is distributed" AS IS" without any express or
- implied warranty, including but not limited to, any implied warranties
- of merchantability or fitness for a particular purpose or any warrant)'
- of non-infringement of any current or pending patent rights. The authors
- of the software make no representations about the suitability of this
- software for any particular purpose. The entire risk as to the quality
- and performance of the software is with the user. Should the software
- prove defective, the user assumes the cost of all necessary servicing,
- repair or correction. In particular, neither Rensselaer Polytechnic
- Institute, nor the authors of the software are liable for any indirect,
- special, consequential, or incidental damages related to the software,
- to the maximum extent the law permits. -->
-
- <!-- ================================= -->
- <!-- DEMO PUBLIC CALENDAR STYLESHEET -->
- <!-- ================================= -->
-
- <!-- DEFINE INCLUDES -->
- <xsl:include href="errors.xsl"/>
-
- <!-- DEFINE GLOBAL CONSTANTS -->
-
- <!-- URL of the XSL template directory -->
- <!-- The approot is an appropriate place to put
- included stylesheets and xml fragments. These are generally
- referenced relatively (like errors.xsl and messages.xsl above);
- this variable is here for your convenience if you choose to
- reference it explicitly. It is not used in this stylesheet, however,
- and can be safely removed if you so choose. -->
- <xsl:variable name="appRoot" select="/bedework/approot"/>
-
- <!-- URL of html resources (images, css, other html); by default this is
- set to the application root -->
- <xsl:variable name="resourcesRoot" select="/bedework/approot"/>
-
- <!-- Properly encoded prefixes to the application actions; use these to build
- urls; allows the application to be used without cookies or within a portal. -->
- <xsl:variable name="setup" select="/bedework/urlPrefixes/setup"/>
- <xsl:variable name="setSelection" select="/bedework/urlPrefixes/setSelection"/>
- <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/fetchPublicCalendars"/>
- <xsl:variable name="setViewPeriod" select="/bedework/urlPrefixes/setViewPeriod"/>
- <xsl:variable name="eventView" select="/bedework/urlPrefixes/eventView"/>
- <xsl:variable name="addEventRef" select="/bedework/urlPrefixes/addEventRef"/>
- <xsl:variable name="export" select="/bedework/urlPrefixes/export"/>
- <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mailEvent"/>
- <xsl:variable name="showPage" select="/bedework/urlPrefixes/showPage"/>
- <xsl:variable name="stats" select="/bedework/urlPrefixes/stats"/>
-
- <!-- Other generally useful global variables -->
- <xsl:variable name="privateCal">/ucal</xsl:variable>
- <xsl:variable name="prevdate" select="/bedework/previousdate"/>
- <xsl:variable name="nextdate" select="/bedework/nextdate"/>
- <xsl:variable name="curdate" select="/bedework/currentdate/date"/>
- <xsl:variable name="skin">default</xsl:variable>
-
-
- <!-- MAIN TEMPLATE -->
- <xsl:template match="/">
- <html lang="en">
- <head>
- <title>School of Engineering: Example Bedework Departmental Calendar Suite</title>
- <link rel="stylesheet" type="text/css" href="{$resourcesRoot}/default/default/soe.css" />
- <link rel="icon" type="image/ico" href="{$resourcesRoot}/images/bedework.ico" />
- </head>
- <body>
- <xsl:call-template name="headBar"/>
- <xsl:if test="/bedework/error">
- <div id="errors">
- <xsl:apply-templates select="/bedework/error"/>
- </div>
- </xsl:if>
- <xsl:call-template name="tabs"/>
- <xsl:call-template name="navigation"/>
- <xsl:choose>
- <xsl:when test="/bedework/page='event'">
- <!-- show an event -->
- <xsl:apply-templates select="/bedework/event"/>
- </xsl:when>
- <xsl:when test="/bedework/page='showSysStats'">
- <!-- show system stats -->
- <xsl:call-template name="stats"/>
- </xsl:when>
- <xsl:when test="/bedework/page='calendarList'">
- <!-- show a list of all calendars -->
- <xsl:apply-templates select="/bedework/calendars"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- otherwise, show the eventsCalendar -->
- <xsl:if test="/bedework/periodname!='Year'">
- <xsl:call-template name="searchBar"/>
- </xsl:if>
- <!-- main eventCalendar content -->
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <xsl:call-template name="listView"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='weekViewMode']/value='cal'">
- <xsl:call-template name="weekView"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="listView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
- <xsl:call-template name="listView"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="monthView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="yearView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <!-- footer -->
- <xsl:call-template name="footer"/>
- </body>
- </html>
- </xsl:template>
-
- <!--==== HEADER TEMPLATES and NAVIGATION ====-->
- <!-- these templates are separated out for convenience and to simplify the default template -->
-
- <xsl:template name="headBar">
- <div id="headBar">
- <div id="bedeworkLogo">
- <a href="http://www.bedework.org/">
- <img src="{$resourcesRoot}/images/soecal/soeBedeworkLogo.gif" width="296" height="69" border="0" alt="Bedework" align="right"/>
- </a>
- </div>
- <h1>Example Departmental Calendar Suite</h1>
- <!--<ul id="schoolLinks">
- <li><a href="{$privateCal}">Personal Calendar</a></li>
- <li><a href="http://www.yourschoolhere.edu">School Home</a></li>
- <li><a href="http://www.bedework.org/">Other Link</a></li>
- <li>
- <a href="http://helpdesk.rpi.edu/update.do?catcenterkey=51">
- Example Calendar Help
- </a>
- </li>
- </ul> -->
- </div>
- <!-- Turn off the date range table for this departmental view -->
- <!--<table id="curDateRangeTable" cellspacing="0">
- <td class="sideBarOpenCloseIcon">
-   -->
- <!--
- we may choose to implement calendar selection in the public calendar
- using a sidebar; leave this comment here for now.
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='sidebar']/value='closed'">
- <a href="?setappvar=sidebar(opened)">
- <img alt="open sidebar" src="{$resourcesRoot}/resources/sideBarArrowOpen.gif" width="21" height="16" border="0" align="left"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="?setappvar=sidebar(closed)">
- <img alt="close sidebar" src="{$resourcesRoot}/resources/sideBarArrowClose.gif" width="21" height="16" border="0" align="left"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>-->
- <!-- </td>
- <td class="date">
- <xsl:choose>
- <xsl:when test="/bedework/page='event'">
- Event Information
- </xsl:when>
- <xsl:when test="/bedework/page='showSysStats' or
- /bedework/page='calendars'">
-  
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/firstday/longdate"/>
- <xsl:if test="/bedework/periodname!='Day'">
- -
- <xsl:value-of select="/bedework/lastday/longdate"/>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="rssPrint">
- <a href="javascript:window.print()" title="print this view">
- <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
- </a>
- <a class="rss" href="{$setSelection}?setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
- </td>
- </table>-->
- </xsl:template>
-
- <xsl:template name="tabs">
- <xsl:choose>
- <xsl:when test="/bedework/page='eventscalendar'">
- <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
- <tr>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <a href="{$setViewPeriod}?viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-on.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}?viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
- <a href="{$setViewPeriod}?viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-on.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}?viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Month'">
- <a href="{$setViewPeriod}?viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-on.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}?viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year'">
- <a href="{$setViewPeriod}?viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-on.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}?viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="rssPrint">
- <a href="javascript:window.print()" title="print this view">
- <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
- </a>
- <a class="rss" href="{$setSelection}?setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
- </td>
- </tr>
- </table>
- </xsl:when>
- <xsl:otherwise>
- <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
- <tr>
- <td>
- <a href="{$setViewPeriod}?viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}?viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}?viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}?viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </td>
- <td class="rssPrint">
- <a href="javascript:window.print()" title="print this view">
- <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
- </a>
- <a class="rss" href="{$setSelection}?setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
- </td>
- </tr>
- </table>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="navigation">
- <table border="0" cellpadding="0" cellspacing="0" id="navigationBarTable">
- <tr>
- <td class="leftCell">
- <a id="prevViewPeriod" href="{$setViewPeriod}?date={$prevdate}"><img src="{$resourcesRoot}/images/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a>
- <a id="nextViewPeriod" href="{$setViewPeriod}?date={$nextdate}"><img src="{$resourcesRoot}/images/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year'">
- <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:value-of select="/bedework/firstday/monthname"/>, <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Week'">
- Week of <xsl:value-of select="substring-after(/bedework/firstday/longdate,', ')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/firstday/longdate"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="todayButton">
- <a href="{$setViewPeriod}?viewType=todayView&date={$curdate}">
- <img src="{$resourcesRoot}/images/std-button-today-off.gif" width="54" height="22" border="0" alt="Go to Today" align="left"/>
- </a>
- </td>
- <td align="right" class="gotoForm">
- <form name="calForm" method="get" action="{$setViewPeriod}">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:if test="/bedework/periodname!='Year'">
- <td>
- <select name="viewStartDate.month">
- <xsl:for-each select="/bedework/monthvalues/val">
- <xsl:variable name="temp" select="."/>
- <xsl:variable name="pos" select="position()"/>
- <xsl:choose>
- <xsl:when test="/bedework/monthvalues[start=$temp]">
- <option value="{$temp}" selected="selected">
- <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
- </option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$temp}">
- <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
- </option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </td>
- <xsl:if test="/bedework/periodname!='Month'">
- <td>
- <select name="viewStartDate.day">
- <xsl:for-each select="/bedework/dayvalues/val">
- <xsl:variable name="temp" select="."/>
- <xsl:variable name="pos" select="position()"/>
- <xsl:choose>
- <xsl:when test="/bedework/dayvalues[start=$temp]">
- <option value="{$temp}" selected="selected">
- <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
- </option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$temp}">
- <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
- </option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </td>
- </xsl:if>
- </xsl:if>
- <td>
- <xsl:variable name="temp" select="/bedework/yearvalues/start"/>
- <input type="text" name="viewStartDate.year" maxlength="4" size="4" value="{$temp}"/>
- </td>
- <td>
- <input name="submit" type="submit" value="go"/>
- </td>
- </tr>
- </table>
- </form>
- </td>
- <td class="rightCell">
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template name="searchBar">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" id="searchBarTable">
- <tr>
- <td class="leftCell">
- <xsl:choose>
- <xsl:when test="/bedework/selectionState/selectionType = 'calendar'">
- Calendar: <xsl:value-of select="/bedework/selectionState/subscriptions/subscription/calendar/name"/>
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:when test="/bedework/selectionState/selectionType = 'search'">
- Current search: <xsl:value-of select="/bedework/search"/>
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:when test="/bedework/selectionState/selectionType = 'subscription'">
- Subscription: (not implemented yet)
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:when test="/bedework/selectionState/selectionType = 'filter'">
- Filter: (not implemented yet)
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:otherwise><!-- view -->
- View:
- <form name="selectViewForm" method="get" action="{$setSelection}">
- <select name="viewName" onChange="submit()" >
- <xsl:for-each select="/bedework/views/view">
- <xsl:variable name="name" select="name"/>
- <xsl:choose>
- <xsl:when test="name=/bedework/selectionState/view/name">
- <option value="{$name}" selected="selected"><xsl:value-of select="name"/></option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$name}"><xsl:value-of select="name"/></option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </form>
- <span class="calLinks"><a href="{$setSelection}">default view</a> | <a href="{$fetchPublicCalendars}">available calendars</a></span>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="rightCell">
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <img src="{$resourcesRoot}/images/std-button-listview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Year'">
- <img src="{$resourcesRoot}/images/std-button-calview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
- <a href="{$setup}?setappvar=monthViewMode(cal)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}?setappvar=monthViewMode(list)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='weekViewMode']/value='cal'">
- <a href="{$setup}?setappvar=weekViewMode(list)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}?setappvar=weekViewMode(cal)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year' or
- (/bedework/periodname='Month' and
- (/bedework/appvar[key='monthViewMode']/value='cal' or
- not(/bedework/appvar[key='monthViewMode']))) or
- (/bedework/periodname='Week' and
- (/bedework/appvar[key='weekViewMode']/value='cal' or
- not(/bedework/appvar[key='weekViewMode'])))">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <img src="{$resourcesRoot}/images/std-button-summary-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
- </xsl:when>
- <xsl:otherwise>
- <img src="{$resourcesRoot}/images/std-button-details-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <a href="{$setup}?setappvar=summaryMode(summary)" title="toggle summary/detailed view">
- <img src="{$resourcesRoot}/images/std-button-summary.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}?setappvar=summaryMode(details)" title="toggle summary/detailed view">
- <img src="{$resourcesRoot}/images/std-button-details.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <a href="setup.do"><img src="{$resourcesRoot}/images/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== SINGLE EVENT ====-->
- <xsl:template match="event">
- <xsl:variable name="statusClass">
- <xsl:choose>
- <xsl:when test="status='CANCELLED'">bwStatusCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">bwStatusTentative</xsl:when>
- <xsl:otherwise>bwStatusConfirmed</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <h2 class="{$statusClass}">
- <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
- <xsl:choose>
- <xsl:when test="link != ''">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}">
- <xsl:value-of select="summary"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="summary"/>
- </xsl:otherwise>
- </xsl:choose>
- </h2>
- <table id="eventTable" cellpadding="0" cellspacing="0">
- <tr>
- <td class="fieldname">When:</td>
- <td class="fieldval">
- <xsl:value-of select="start/dayname"/>, <xsl:value-of select="start/longdate"/><xsl:text> </xsl:text>
- <xsl:if test="start/allday = 'false'">
- <span class="time"><xsl:value-of select="start/time"/></span>
- </xsl:if>
- <xsl:if test="(end/longdate != start/longdate) or
- ((end/longdate = start/longdate) and (end/time != start/time))"> - </xsl:if>
- <xsl:if test="end/longdate != start/longdate">
- <xsl:value-of select="substring(end/dayname,1,3)"/>, <xsl:value-of select="end/longdate"/><xsl:text> </xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="start/allday = 'true'">
- <span class="time"><em>(all day)</em></span>
- </xsl:when>
- <xsl:when test="end/longdate != start/longdate">
- <span class="time"><xsl:value-of select="end/time"/></span>
- </xsl:when>
- <xsl:when test="end/time != start/time">
- <span class="time"><xsl:value-of select="end/time"/></span>
- </xsl:when>
- </xsl:choose>
- </td>
- <th class="icalIcon" rowspan="2">
- <div id="eventIcons">
- <xsl:variable name="id" select="id"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
- <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon.gif" width="20" height="26" border="0" alt="Add event to MyCalendar"/>
- add to my calendar</a>
- <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
- <a href="{$export}?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
- <img src="{$resourcesRoot}/images/std-ical_icon.gif" width="20" height="26" border="0" alt="Download this event"/>
- download</a>
- </div>
- </th>
- </tr>
- <tr>
- <td class="fieldname">Where:</td>
- <td class="fieldval">
- <xsl:choose>
- <xsl:when test="location/link=''">
- <xsl:value-of select="location/address"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="locationLink" select="location/link"/>
- <a href="{$locationLink}">
- <xsl:value-of select="location/address"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="location/subaddress!=''">
- <br/><xsl:value-of select="location/subaddress"/>
- </xsl:if>
- </td>
- </tr>
- <tr>
- <td class="fieldname">Description:</td>
- <td colspan="2" class="fieldval description">
- <xsl:call-template name="replace">
- <xsl:with-param name="string" select="description"/>
- <xsl:with-param name="pattern" select="'
'"/>
- <xsl:with-param name="replacement"><br/></xsl:with-param>
- </xsl:call-template>
- </td>
- </tr>
- <xsl:if test="status !='' and status != 'CONFIRMED'">
- <tr>
- <td class="fieldname">Status:</td>
- <td class="fieldval">
- <xsl:value-of select="status"/>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="cost!=''">
- <tr>
- <td class="fieldname">Cost:</td>
- <td colspan="2" class="fieldval"><xsl:value-of select="cost"/></td>
- </tr>
- </xsl:if>
- <xsl:if test="link != ''">
- <tr>
- <td class="fieldname">See:</td>
- <td colspan="2" class="fieldval">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}"><xsl:value-of select="link"/></a>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="sponsor/name!='none'">
- <tr>
- <td class="fieldname">Contact:</td>
- <td colspan="2" class="fieldval">
- <xsl:choose>
- <xsl:when test="sponsor/link=''">
- <xsl:value-of select="sponsor/name"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="sponsorLink" select="sponsor/link"/>
- <a href="{$sponsorLink}">
- <xsl:value-of select="sponsor/name"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="sponsor/phone!=''">
- <br /><xsl:value-of select="sponsor/phone"/>
- </xsl:if>
- <!-- If you want to display email addresses, uncomment the
- following 8 lines. -->
- <!-- <xsl:if test="sponsor/email!=''">
- <br />
- <xsl:variable name="email" select="sponsor/email"/>
- <xsl:variable name="subject" select="summary"/>
- <a href="mailto:{$email}?subject={$subject}">
- <xsl:value-of select="sponsor/email"/>
- </a>
- </xsl:if> -->
- </td>
- </tr>
- </xsl:if>
- <tr>
- <td class="fieldname">Calendar:</td>
- <td class="fieldval">
- <xsl:variable name="calUrl" select="calendar/path"/>
- <a href="{$setSelection}?calUrl={$calUrl}">
- <xsl:value-of select="calendar/name"/>
- </a>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== LIST VIEW (for day, week, and month) ====-->
- <xsl:template name="listView">
- <table id="listTable" border="0" cellpadding="0" cellspacing="0">
- <xsl:choose>
- <xsl:when test="not(/bedework/eventscalendar/year/month/week/day/event)">
- <tr>
- <td class="noEventsCell">
- No events to display.
- </td>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week/day[event]">
- <xsl:if test="/bedework/periodname='Week' or /bedework/periodname='Month' or /bedework/periodname=''">
- <tr>
- <td colspan="5" class="dateRow">
- <xsl:variable name="date" select="date"/>
- <a href="{$setViewPeriod}?viewType=dayView&date={$date}">
- <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/>
- </a>
- </td>
- </tr>
- </xsl:if>
- <xsl:for-each select="event">
- <xsl:variable name="id" select="id"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <tr>
- <xsl:variable name="dateRangeStyle">
- <xsl:choose>
- <xsl:when test="start/shortdate = parent::day/shortdate">
- <xsl:choose>
- <xsl:when test="start/allday = 'true'">dateRangeCrossDay</xsl:when>
- <xsl:when test="start/hour24 < 6">dateRangeEarlyMorning</xsl:when>
- <xsl:when test="start/hour24 < 12">dateRangeMorning</xsl:when>
- <xsl:when test="start/hour24 < 18">dateRangeAfternoon</xsl:when>
- <xsl:otherwise>dateRangeEvening</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>dateRangeCrossDay</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="start/allday = 'true' and
- start/shortdate = end/shortdate">
- <td class="{$dateRangeStyle} center" colspan="3">
- all day
- </td>
- </xsl:when>
- <xsl:when test="start/shortdate = end/shortdate and
- start/time = end/time">
- <td class="{$dateRangeStyle} center" colspan="3">
- <a href="{$eventView}?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:value-of select="start/time"/>
- </a>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td class="{$dateRangeStyle} right">
- <a href="{$eventView}?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:choose>
- <xsl:when test="start/allday = 'true' and
- parent::day/shortdate = start/shortdate">
- today
- </xsl:when>
- <xsl:when test="parent::day/shortdate != start/shortdate">
- <span class="littleArrow">«</span> 
- <xsl:value-of select="start/month"/>/<xsl:value-of select="start/day"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="start/time"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </td>
- <td class="{$dateRangeStyle} center">
- <a href="{$eventView}?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">-</a>
- </td>
- <td class="{$dateRangeStyle} left">
- <a href="{$eventView}?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:choose>
- <xsl:when test="end/allday = 'true' and
- parent::day/shortdate = end/shortdate">
- today
- </xsl:when>
- <xsl:when test="parent::day/shortdate != end/shortdate">
- <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/>
-  <span class="littleArrow">»</span>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="end/time"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:variable name="descriptionClass">
- <xsl:choose>
- <xsl:when test="status='CANCELLED'">description bwStatusCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">description bwStatusTentative</xsl:when>
- <xsl:otherwise>description</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <td class="{$descriptionClass}">
- <xsl:if test="status='CANCELLED'"><strong>CANCELLED: </strong></xsl:if>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <a href="{$eventView}?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <strong>
- <xsl:value-of select="summary"/>:
- </strong>
- <xsl:value-of select="description"/> 
- <em>
- <xsl:value-of select="location/address"/>
- <xsl:if test="location/subaddress != ''">
- , <xsl:value-of select="location/subaddress"/>
- </xsl:if>. 
- <xsl:if test="cost!=''">
- <xsl:value-of select="cost"/>. 
- </xsl:if>
- <xsl:if test="sponsor/name!='none'">
- Contact: <xsl:value-of select="sponsor/name"/>
- </xsl:if>
- </em>
- </a>
- <xsl:if test="link != ''">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}" class="moreLink"><xsl:value-of select="link"/></a>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$eventView}?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:value-of select="summary"/>
- <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="icons">
- <variable name="confId" select="/bedework/confirmationid"/>
- <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
- <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/>
- </a>
- <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
- <a href="{$export}?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
- <img src="{$resourcesRoot}/images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/>
- </a>
- </td>
- </tr>
- </xsl:for-each>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </table>
- </xsl:template>
-
- <!--==== WEEK CALENDAR VIEW ====-->
- <xsl:template name="weekView">
- <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:for-each select="/bedework/daynames/val">
- <th class="dayHeading"><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <tr>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week/day">
- <xsl:variable name="dayPos" select="position()"/>
- <xsl:if test="filler='false'">
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}?viewType=dayView&date={$dayDate}" class="dayLink">
- <xsl:value-of select="value"/>
- </a>
- <ul>
- <xsl:apply-templates select="event" mode="calendarLayout">
- <xsl:with-param name="dayPos" select="$dayPos"/>
- </xsl:apply-templates>
- </ul>
- </td>
- </xsl:if>
- </xsl:for-each>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== MONTH CALENDAR VIEW ====-->
- <xsl:template name="monthView">
- <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:for-each select="/bedework/daynames/val">
- <th class="dayHeading"><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week">
- <tr>
- <xsl:for-each select="day">
- <xsl:variable name="dayPos" select="position()"/>
- <xsl:choose>
- <xsl:when test="filler='true'">
- <td class="filler"> </td>
- </xsl:when>
- <xsl:otherwise>
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}?viewType=dayView&date={$dayDate}" class="dayLink">
- <xsl:value-of select="value"/>
- </a>
- <ul>
- <xsl:apply-templates select="event" mode="calendarLayout">
- <xsl:with-param name="dayPos" select="$dayPos"/>
- </xsl:apply-templates>
- </ul>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </tr>
- </xsl:for-each>
- </table>
- </xsl:template>
-
- <xsl:template match="event" mode="calendarLayout">
- <xsl:param name="dayPos"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <xsl:variable name="eventClass">
- <xsl:choose>
- <!-- Special styles for the month grid -->
- <xsl:when test="status='CANCELLED'">eventCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">eventTentative</xsl:when>
- <xsl:when test="calendar/name='Holidays'">holiday</xsl:when>
- <!-- Alternating colors for all standard events -->
- <xsl:when test="position() mod 2 = 1">eventLinkA</xsl:when>
- <xsl:otherwise>eventLinkB</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <li>
- <a href="{$eventView}?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" class="{$eventClass}">
- <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
- <xsl:value-of select="summary"/>
- <xsl:variable name="eventTipClass">
- <xsl:choose>
- <xsl:when test="$dayPos > 5">eventTipReverse</xsl:when>
- <xsl:otherwise>eventTip</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <span class="{$eventTipClass}">
- <xsl:if test="status='CANCELLED'"><span class="eventTipStatusCancelled">CANCELLED</span></xsl:if>
- <xsl:if test="status='TENTATIVE'"><span class="eventTipStatusTentative">TENTATIVE</span></xsl:if>
- <strong><xsl:value-of select="summary"/></strong><br/>
- Time:
- <xsl:choose>
- <xsl:when test="start/allday = 'false'">
- <xsl:value-of select="start/time"/>
- <xsl:if test="start/time != end/time">
- - <xsl:value-of select="end/time"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- all day
- </xsl:otherwise>
- </xsl:choose><br/>
- <xsl:if test="location/address">
- Location: <xsl:value-of select="location/address"/><br/>
- </xsl:if>
- Calendar: <xsl:value-of select="calendar/name"/>
- </span>
- </a>
- </li>
- </xsl:template>
-
- <!--==== YEAR VIEW ====-->
- <xsl:template name="yearView">
- <table id="yearCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() <= 3]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 3) and (position() <= 6)]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 6) and (position() <= 9)]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() > 9]"/>
- </tr>
- </table>
- </xsl:template>
-
- <!-- year view month tables -->
- <xsl:template match="month">
- <td>
- <table class="yearViewMonthTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="8" class="monthName">
- <xsl:variable name="firstDayOfMonth" select="week/day/date"/>
- <a href="{$setViewPeriod}?viewType=monthView&date={$firstDayOfMonth}">
- <xsl:value-of select="longname"/>
- </a>
- </td>
- </tr>
- <tr>
- <th> </th>
- <xsl:for-each select="/bedework/shortdaynames/val">
- <th><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <xsl:for-each select="week">
- <tr>
- <td class="weekCell">
- <xsl:variable name="firstDayOfWeek" select="day/date"/>
- <a href="{$setViewPeriod}?viewType=weekView&date={$firstDayOfWeek}">
- <xsl:value-of select="value"/>
- </a>
- </td>
- <xsl:for-each select="day">
- <xsl:choose>
- <xsl:when test="filler='true'">
- <td class="filler"> </td>
- </xsl:when>
- <xsl:otherwise>
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}?viewType=dayView&date={$dayDate}">
- <xsl:value-of select="value"/>
- </a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </tr>
- </xsl:for-each>
- </table>
- </td>
- </xsl:template>
-
- <!--==== CALENDARS PAGE ====-->
- <xsl:template match="calendars">
- <xsl:variable name="topLevelCalCount" select="count(calendar/calendar)"/>
- <table id="calPageTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <th colspan="2">
- All Calendars
- </th>
- </tr>
- <tr>
- <td colspan="2" class="infoCell">
- Select a calendar from the list below to see only that calendar's events.
- </td>
- </tr>
- <tr>
- <td class="leftCell">
- <ul class="calendarTree">
- <xsl:apply-templates select="calendar/calendar[position() <= ceiling($topLevelCalCount div 2)]" mode="calTree"/>
- </ul>
- </td>
- <td>
- <ul class="calendarTree">
- <xsl:apply-templates select="calendar/calendar[position() > ceiling($topLevelCalCount div 2)]" mode="calTree"/>
- </ul>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template match="calendar" mode="calTree">
- <xsl:variable name="itemClass">
- <xsl:choose>
- <xsl:when test="calendarCollection='false'">folder</xsl:when>
- <xsl:otherwise>calendar</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="url" select="path"/>
- <li class="{$itemClass}">
- <a href="{$setSelection}?calUrl={$url}"><xsl:value-of select="name"/></a>
- <xsl:if test="calendar">
- <ul>
- <xsl:apply-templates select="calendar" mode="calTree"/>
- </ul>
- </xsl:if>
- </li>
- </xsl:template>
-
- <!--+++++++++++++++ System Stats ++++++++++++++++++++-->
- <xsl:template name="stats">
- <div id="stats">
- <h2>System Statistics</h2>
-
- <p>
- Stats collection:
- </p>
- <ul>
- <li>
- <a href="{$stats}&enable=yes">enable</a> |
- <a href="{$stats}&disable=yes">disable</a>
- </li>
- <li><a href="{$stats}&fetch=yes">fetch statistics</a></li>
- <li><a href="{$stats}&dump=yes">dump stats to log</a></li>
- </ul>
- <table id="statsTable" cellpadding="0">
- <xsl:for-each select="/bedework/sysStats/*">
- <xsl:choose>
- <xsl:when test="name(.) = 'header'">
- <tr>
- <th colspan="2">
- <xsl:value-of select="."/>
- </th>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <tr>
- <td class="label">
- <xsl:value-of select="label"/>
- </td>
- <td class="value">
- <xsl:value-of select="value"/>
- </td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </table>
- </div>
- </xsl:template>
-
- <!--==== UTILITY TEMPLATES ====-->
-
- <!-- search and replace template taken from
- http://www.biglist.com/lists/xsl-list/archives/200211/msg00337.html -->
- <xsl:template name="replace">
- <xsl:param name="string" select="''"/>
- <xsl:param name="pattern" select="''"/>
- <xsl:param name="replacement" select="''"/>
- <xsl:choose>
- <xsl:when test="$pattern != '' and $string != '' and contains($string, $pattern)">
- <xsl:value-of select="substring-before($string, $pattern)"/>
- <xsl:copy-of select="$replacement"/>
- <xsl:call-template name="replace">
- <xsl:with-param name="string" select="substring-after($string, $pattern)"/>
- <xsl:with-param name="pattern" select="$pattern"/>
- <xsl:with-param name="replacement" select="$replacement"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$string"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <!--==== FOOTER ====-->
-
- <xsl:template name="footer">
- <div id="footer">
- Demonstration calendar; place footer information here.
- </div>
- <div id="subFoot">
- Based on the <a href="http://www.bedework.org/">Bedework Calendar</a> |
- <a href="?noxslt=yes">show XML</a> |
- <a href="?refreshXslt=yes">refresh XSLT</a>
- </div>
- </xsl:template>
-</xsl:stylesheet>
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/blue.css
===================================================================
--- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/blue.css 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/blue.css 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,845 +0,0 @@
-body {
- font-family : Arial, Helvetica, sans-serif;
- font-size: 100%; /* needed for IE */
- background-color : white;
- color : black;
- padding: 0.75em 1em 0em 1em;
- min-width: 700px;
-}
-#logoTable {
- padding: 0em;
- margin: 0em;
-}
-#logoTable img {
- display: inline;
- padding: 0 0 1px 5px;
-}
-#logoTable #logoCell {
- white-space: nowrap;
- font-weight: bold;
- font-size: 2em;
-}
-#logoTable #schoolLinksCell {
- vertical-align: bottom;
- text-align: right;
- font-size: 0.8em;
- white-space : nowrap;
- padding: 0 2px 2px 0;
-}
-#logoTable #schoolLinksCell h2 {
- margin: 0 0 2px 0;
- padding: 0;
- font-size: 2em;
- color: #444;
- background-color: transparent;
- border: none;
-}
-#logoTable #schoolLinksCell a:link,
-#logoTable #schoolLinksCell a:visited,
-#logoTable #schoolLinksCell a:active {
- background-color: transparent;
- color: #999;
- text-decoration: none;
-}
-#logoTable #schoolLinksCell a:hover {
- background-color: #eee;
- color: #333;
- text-decoration: none;
-}
-#curDateRangeTable {
- width: 100%;
- height: 26px;
- background: #2c5f89 url(../../images/curDateRangeBlue.gif) repeat-x bottom;
- color : #eee;
- margin: 0em;
- font-weight : bold;
- text-align : center;
- vertical-align: middle;
- white-space: nowrap;
-}
-#curDateRangeTable td {
- padding-top: 5px;
- padding-bottom: 1px;
- padding-left: 0.5em;
- padding-right: 0.5em;
-}
-#curDateRangeTable td.sideBarOpenCloseIcon {
- background: url(../../images/curDateRangeBlue-left.gif) no-repeat top left;
- color: inherit;
- width: 200px;
-}
-#curDateRangeTable td.date {
- font-weight : bold;
- text-align : center;
- white-space: nowrap;
-}
-#curDateRangeTable td.rssPrint {
- background: url(../../images/curDateRangeBlue-right.gif) no-repeat top right;
- color: inherit;
- width: 200px;
- font-weight : bold;
- text-align : right;
- white-space: nowrap;
-}
-#curDateRangeTable td.rssPrint img {
- position: relative;
- top: 3px;
-}
-#curDateRangeTable td.rssPrint a:link,
-#curDateRangeTable td.rssPrint a:active,
-#curDateRangeTable td.rssPrint a:visited {
- font-size: 10px;
- color: #eee;
- background-color: transparent;
- font-family: Arial, Helvetica, sans-serif;
- padding: 0;
- text-decoration: none;
- margin-right: 0.5em;
- position: relative;
- top: -3px;
-}
-#curDateRangeTable td.rssPrint a:hover {
- color: #663;
- background-color: #fff;
-}
-#curDateRangeTable td.rssPrint a.rss:link,
-#curDateRangeTable td.rssPrint a.rss:active,
-#curDateRangeTable td.rssPrint a.rss:visited {
- font-size: 10px;
- font-weight: bold;
- color: #444;
- background-color: #ddd;
- font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
- padding: 0px 1px 0px 1px;
- text-decoration: none;
- margin-right: 0.5em;
- margin-left: 2px;
- position: relative;
- top: -3px;
- border: solid 1px #666;
-}
-#curDateRangeTable td.rssPrint a.rss:hover {
- color: #900;
- background-color: #fff;
-}
-#searchBarTable {
- margin: 0px;
- padding: 0em;
- background-color : #eee;
- color: black;
- font-size: 0.9em;
-}
-#searchBarTable .leftCell {
- margin: 0px;
- padding: 0em;
- border-left: 3px solid #aaa;
- padding: 0.1em 0 0 0.5em;
- white-space: nowrap;
-}
-#searchBarTable .leftCell .link {
- font-size: 0.8em;
- padding-left: 1em;
- color: #999;
- background-color: transparent;
-}
-#searchBarTable .leftCell a {
- color: #888;
- background-color: transparent;
-}
-#searchBarTable .leftCell a:hover {
- color: #b00;
- background-color: transparent;
-}
-#searchBarTable .rightCell {
- margin: 0px;
- padding: 0em;
- text-align: right;
- border-right: 3px solid #aaa;
- padding: 0.1em 0.1em 0em 0em;
- white-space: nowrap;
-}
-#searchBarTable form {
- display: inline;
- margin: 0px 0px 1px 0px;
- padding: 0em;
-}
-#tabsTable {
- margin: 0em;
- padding: 4px 0px 0px 0px;
- text-align: center;
- background-color: #333;
- color: #eee;
-}
-#tabsTable .centerCell a {
- text-decoration: none;
- color: #eee;
-}
-#tabsTable .centerCell img {
- margin-right: 1px;
-}
-#tabsTable .rightCell {
- background : url(../../images/demo/std-tab-space.gif);
- padding-right: 0.5em;
-}
-#navigationBarTable {
- font-size: 0.8em;
- margin: 0em;
- padding: 0em;
- vertical-align: top;
- border-left : 2px solid #aaa;
- border-right : 2px solid #aaa;
- border-bottom: 1px solid Gray;
-}
-#navigationBarTable a {
- text-decoration: none;
- white-space: nowrap;
-}
-#navigationBarTable td {
- vertical-align: top;
-}
-#navigationBarTable form {
- display: inline;
- margin-bottom: 0em;
-}
-#navigationBarTable table {
- display: inline;
- margin-bottom: 0em;
-}
-#navigationBarTable td.todayButton {
- padding: 1em 1em 0 1em;
-}
-#navigationBarTable td.gotoForm {
- padding: 1em 0.5em 0 0;
-}
-#navigationBarTable td.leftCell {
- text-align: left;
- white-space: nowrap;
- padding-left: 0.5em;
- font-size: 1.3em;
- font-weight: bold;
- padding: 0.75em 0em 0.75em 1em;
- width: 100%;
- vertical-align: middle;
-}
-#navigationBarTable td.leftCell .prevImg {
- margin: 0 0.2em 0 0;
- vertical-align: top;
-}
-#navigationBarTable td.leftCell .nextImg {
- margin: 0 0.75em 0 0;
- vertical-align: top;
-}
-#navigationBarTable td.rightCell {
- text-align: right;
- padding: 1em 0.5em 0em 0em;
-}
-#navigationBarTable td.rightCell select {
- padding-right: 0em;
- margin: 0em;
- width: 10em;
-}
-#searchBarTable .calLinks {
- white-space: nowrap;
-}
-#eventTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-#eventTable td.fieldname {
- margin: 0em;
- vertical-align: top;
- padding: 0.5em 0.5em 0.2em 0.5em;
- background-color: #eee;
- /*background-color: #EDF5F9;*/
- color: black;
-}
-#eventTable td.fieldval {
- margin: 0em;
- vertical-align: top;
- padding: 0.5em 0.5em 0.2em 1em;
-}
-#eventTable th.icalIcon {
- margin: 0em;
- vertical-align: middle;
- text-align: right;
- padding: 0.5em 1em 0.2em 0.5em;
- white-space: nowrap;
- font-size: 0.9em;
- font-weight: normal;
-}
-#eventTable th.icalIcon a {
- text-decoration: none;
-}
-#eventTable th.icalIcon img {
- vertical-align: middle;
- padding-left: 1em;
-}
-#eventTable th.fieldname {
- text-align: left;
- padding: 1em 0.5em 1em 0.5em;
- background-color: #eee;
- /*background-color: #EDF5F9;*/
- color: black;
-}
-#eventTable th.fieldval {
- text-align: left;
- padding: 1em 0.5em 0.5em 1em;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#calPageTable {
- width: 100%;
- font-size: 100%;
- margin: 0px;
- padding: 0px;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-#calPageTable td {
- width: 50%;
- vertical-align: top;
- padding: 0.5em 2em 1em 3em;
-}
-#calPageTable th {
- font-size: 1.2em;
- background-color: #ccc;
- color: black;
- font-weight: bold;
-}
-#calPageTable td.leftCell {
- border-right : thin dashed #999;
-}
-#calPageTable h2 {
- font-size: 1.2em;
-}
-#calPageTable td.infoCell {
- background-color: #eee;
- color: black;
- text-align: center;
-}
-#dayCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-#dayCalendarTable td {
- padding: 0.4em;
- margin: 0em;
-}
-#dayCalendarTable .dateRange {
- text-align: left;
- background-color: #D3E4F0;
- color: black;
- white-space: nowrap;
-}
-#dayCalendarTable .description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#dayCalendarTable .more {
- text-align: center;
- background-color: #eee;
- color: black;
- font-size: 0.8em;
-}
-#weekCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-#weekCalendarTable td {
- padding: 0.4em;
- margin: 0em;
-}
-#weekCalendarTable .dateRange {
- text-align: left;
- background-color: #D3E4F0;
- color: black;
- white-space: nowrap;
-}
-#weekCalendarTable .description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#weekCalendarTable .more {
- text-align: center;
- background-color: #eee;
- color: black;
- font-size: 0.8em;
-}
-#monthCalendarTable {
- width: 100%;
- font-size: 0.8em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-#monthCalendarTable th.dayHeading {
- width: 14%;
- text-align: center;
- vertical-align: middle;
- background-color: #2c5f89;
- color: #eee;
- border: 1px solid black;
-}
-#monthCalendarTable td {
- width: 14%;
- height: 60px;
- vertical-align: top;
- text-align: left;
- padding: 0em;
- border: 1px solid #aaa;
- background-color: white;
- color: black;
-}
-#monthCalendarTable td.filler {
- border: none;
- background-color: #eee;
- color: black;
- /*border: 1px solid #aaa;*/
-}
-/*#monthCalendarTable ul {
- font-size: 0.8em;
- list-style : disc;
- margin: 0em 0em 0em 1em;
- padding-left: 0.75em;
- padding-right: 0.1em;
- color: #999;
-}*/
-#monthCalendarTable ul {
- font-size: 0.8em;
- list-style : none;
- margin: 0em;
- padding: 0.3em 0em 0em 0em;
-}
-#monthCalendarTable ul li {
- margin: 0em;
- padding: 0em;
- display: inline;
-}
-#monthCalendarTable a.eventLinkA:link,
-#monthCalendarTable a.eventLinkA:visited,
-#monthCalendarTable a.eventLinkA:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #A3C8D9;
- color: black;
-}
-#monthCalendarTable a.eventLinkB:link,
-#monthCalendarTable a.eventLinkB:visited,
-#monthCalendarTable a.eventLinkB:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #DEECF2;
- color: black;
-}
-#monthCalendarTable a.eventCancelled:link,
-#monthCalendarTable a.eventCancelled:visited,
-#monthCalendarTable a.eventCancelled:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #ccc;
- color: black;
-}
-#monthCalendarTable a.eventTentative:link,
-#monthCalendarTable a.eventTentative:visited,
-#monthCalendarTable a.eventTentative:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- border-bottom: 1px solid #ccc;
- border-top: 1px solid #ccc;
- background: #eee url('../../images/tentativeLines.gif') top;
- color: black;
-}
-#monthCalendarTable a.holiday:link,
-#monthCalendarTable a.holiday:visited,
-#monthCalendarTable a.holiday:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #fff;
- color: black;
- /*border-top: 1px solid black;
- border-bottom: 1px solid black;*/
-}
-#monthCalendarTable a.eventLinkA:hover,
-#monthCalendarTable a.eventLinkB:hover,
-#monthCalendarTable a.eventCancelled:hover,
-#monthCalendarTable a.eventTentative:hover,
-#monthCalendarTable a.holiday:hover {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- color: black;
- background-color: #ddd;
-}
-#monthCalendarTable a.dayLink {
- text-decoration: none;
- color: black;
- background-color: transparent;
-}
-#monthCalendarTable a:hover.dayLink {
- text-decoration: none;
- color: #eee;
- background-color: black;
-}
-#monthCalendarTable a:hover {
- /* required for eventTip to hover correctly;
- apply only to the hover pseudo class, or
- the other anchors nearby will cover the eventTip in IE */
- position: relative;
-}
-#monthCalendarTable a span.eventTip,
-#monthCalendarTable a span.eventTipReverse {
- display: none;
-}
-#monthCalendarTable a:hover span.eventTip {
- display: block;
- position: absolute;
- width: 20em;
- top: 1em;
- left: 12em;
- background-color: #ffe;
- color: black;
- padding: 4px;
- border: 1px solid #333;
-}
-#monthCalendarTable a:hover span.eventTipReverse {
- display: block;
- position: absolute;
- width: 20em;
- top: 1em;
- left: -21em;
- background-color: #ffe;
- color: black;
- padding: 4px;
- border: 1px solid #333;
-}
-#monthCalendarTable a:hover span.eventTipStatusCancelled {
- display: block;
- color: white;
- background-color: #333;
- padding: 2px;
- margin-bottom: 6px;
- text-align: center;
-}
-#monthCalendarTable a:hover span.eventTipStatusTentative {
- display: block;
- color: black;
- background: #eee url('../../images/tentativeLines.gif') top;
- padding: 2px;
- margin-bottom: 6px;
- border: 1px solid #ccc;
- text-align: center;
-}
-a.gridAdd {
- display: block;
- float: right;
- font-size: 0.8em;
- text-decoration: none;
- margin-right: 2px;
-}
-#yearCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0em;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-#yearCalendarTable td {
- padding: 1em 0em 0em 0em;
- margin: 0em;
- vertical-align: top;
- text-align: center;
- width: 33%;
-}
-#yearCalendarTable table.yearViewMonthTable {
- margin: 0em 1em 0.5em 1em;
- border: 1px solid #ddd;
-}
-#yearCalendarTable table.yearViewMonthTable td {
- text-align: center;
- padding: 0.2em;
- width: 12.5%;
-}
-#yearCalendarTable table.yearViewMonthTable th {
- font-weight: bold;
- background-color: #f5f5f5;
- color: black;
- padding: 0.2em;
-}
-#yearCalendarTable table.yearViewMonthTable td.monthName {
- font-weight: bold;
- text-align: center;
- background-color: #EDF5F9;
- color: black;
- white-space: nowrap;
- border-bottom: 1px solid #999;
-}
-#yearCalendarTable table.yearViewMonthTable td.weekCell {
- font-weight: bold;
- font-size: 0.8em;
- background-color: #f5f5f5;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td.weekCell a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td.monthName a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td a:hover {
- text-decoration: none;
- background-color: #FFC;
- color: black;
- border: 1px solid black;
- padding: 0;
-}
-#listTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-#listTable td {
- padding: 0.5em;
- margin: 0em;
- border-bottom: 1px solid #bbb;
-}
-#listTable td a {
- background-color: transparent;
- color: black;
- text-decoration: none;
-}
-#listTable td.dateRangeCrossDay {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #eee;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeEarlyMorning {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #C0D4DD;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeMorning {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #F0F9FF;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeAfternoon {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #DEECF2;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeEvening {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #A3C8D9;
- color: black;
- white-space: nowrap;
-}
-#listTable span.littleArrow {
- font-size: 1.4em;
-}
-#listTable td.description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#listTable td.description {
- text-align: left;
- background-color: white;
- color: black;
- width: 100%;
-}
-#listTable td.bwStatusCancelled {
- background-color: #ddd;
- color: black;
-}
-#listTable td.bwStatusTentative {
- background: white url('../../images/tentativeLines.gif') top;
- color: black;
-}
-#listTable td.description a {
- display: block;
- background-color: transparent;
- color: black;
- text-decoration: none;
-}
-#listTable td.description a.moreLink {
- display: inline;
- background-color: transparent;
- color: #009;
- text-decoration: underline;
-}
-#listTable td.description:hover {
- background-color: #f5f5f5;
- color: black;
-}
-#listTable td.dateRow {
- text-align: left;
- background-color: #B1D4E3;
- color: #333;
- font-size: 0.8em;
- padding: 0.2em 0.5em 0.2em 0.5em;
- margin: 0em;
-}
-#listTable td.dateRow a {
- display: block;
- color: #333;
- background-color: transparent;
- font-weight: bold;
- text-decoration : none;
-}
-#listTable td.icons {
- color: black;
- background-color: #ddd;
- white-space: nowrap;
-}
-#listTable td.icons img.addref {
- margin-right: 0.5em;
-}
-#calPageTable ul.calendarTree li {
- font-weight: bold;
-}
-#calPageTable ul.calendarTree li ul li {
- font-weight: normal;
-}
-#calPageTable ul.calendarTree li.folder {
- list-style-image: url(../../images/demo/catIcon.gif);
- padding-top: 0.25em;
- padding-bottom: 0.25em;
-}
-#calPageTable ul.calendarTree li.calendar {
- list-style-image: url(../../images/demo/calIcon-sm.gif);
-}
-.noEventsCell {
- padding: 1em;
-}
-#footer {
- font-size: 0.75em;
- text-align : center;
- margin-top: 0em;
- padding: 1em;
- color: #333;
- background-color: #eee;
- border-bottom: 2px solid #999;
- border-left: 2px solid #999;
- border-right: 2px solid #999;
- white-space: nowrap;
-}
-#footer a {
- color: #333;
- background-color: transparent;
- text-decoration: underline;
-}
-#skinSelectorTable {
- width: 100%;
- padding-top: 0.5em;
- font-size: 0.7em;
- color: #333;
- background-color: inherit;
-}
-#skinSelectorTable td {
- vertical-align: top;
-}
-#skinSelectorTable td.rightCell {
- text-align: right;
-}
-#skinSelectorTable td.leftCell {
- text-align: left;
- color: #999;
- background-color: inherit;
-}
-#skinSelectorTable td.leftCell a {
- color: #999;
- background-color: inherit;
-}
-#skinSelectorTable td.rightCell form {
- display: inline;
- margin: 0em;
- padding: 0em;
-}
-#skinSelectorTable td.rightCell select {
- font-size: 0.9em;
- color: #333;
- background-color: #eee;
-}
-#featureHighlight {
- color: #dd0;
- font-style: italic;
-}
-/* LINKS */
-a:link, a:active, a:visited {
- color: #2c5f89;
- background-color: transparent;
-}
-a:hover {
- color: #b00;
- background-color: transparent;
-}
-.center {
- text-align: center;
-}
-.left {
- text-align: left;
-}
-.right {
- text-align: right;
-}
\ No newline at end of file
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/cleanXml.xsl
===================================================================
--- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/cleanXml.xsl 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/cleanXml.xsl 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:output
- method="xml"
- indent="yes"
- omit-xml-declaration="no"
- media-type="text/xml"
- standalone="yes"
-/>
-
-<!-- =========================================================
-
- DEMONSTRATION CALENDAR STYLESHEET
-
- a simple stylesheet to provide a proper xml declaration
- and clean xml for use on other systems. This is slightly
- more expensive than simply turning off the transform with
- noxslt=yes, but it may play better with some systems.
-
-=============================================================== -->
-
- <xsl:template match="/">
- <xsl:copy-of select="."/>
- </xsl:template>
-</xsl:stylesheet>
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/common.css
===================================================================
--- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/common.css 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/common.css 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,66 +0,0 @@
-/* Generic selectors*/
-h2 {
- margin: 0em;
- padding: 0.2em 0.2em 0.2em 0.5em;
- font-size: 1.3em;
- border-bottom: 1px solid #ccc;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-h2 a:link,
-h2 a:active,
-h2 a:visited,
-h2 a:hover {
- color: black;
- background-color: inherit;
- text-decoration: none;
-}
-h2.bwStatusConfirmed {
- background-color: #eee;
- color: black;
-}
-h2.bwStatusCancelled {
- background-color: #eee;
- color: black;
-}
-h2.bwStatusTentative {
- background: #eee url('../../images/tentativeLines.gif') top;
- color: black;
-}
-/* Header IDs and classes */
-#errors {
- margin: 0;
- padding: 1em;
- background-color: #333;
- color: #ff9;
- font-weight: bold;
-}
-#tabsTable .centerCell {
- text-align: left;
- background : url(../../images/demo/std-tab-space.gif);
- font-size: 0.8em;
- white-space: nowrap;
- width: 100%;
- padding: 0 1em;
-}
-#stats {
- font-size: 0.9em;
- margin: 0px;
- padding: 1em;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #aaa;
- border-right: 2px solid #aaa;
-}
-#statsTable {
- margin: 1em 0 0 4em;
- width: 300px;
-}
-#statsTable th {
- padding: 0.5em;
- background-color: #eee;
- color: black;
-}
-#statsTable td.label {
- text-align: right;
- padding-right: 2em;
-}
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl
===================================================================
--- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,1187 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:output
- method="html"
- indent="yes"
- media-type="text/html"
- doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
- doctype-system="http://www.w3.org/TR/html4/loose.dtd"
- standalone="yes"
-/>
-
-<!-- =========================================================
-
- DEMONSTRATION CALENDAR STYLESHEET
-
- This stylesheet is devoid of school branding. It is a good
- starting point for development of a customized calendar.
-
- For detailed instructions on how to work with the XSLT
- stylesheets included with this distribution, please see the
- Bedework Design Guide at
- http://www.bedework.org/bedework/update.do?artcenterkey=24
-
-=============================================================== -->
-<!-- **********************************************************************
- Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved.
-
- Redistribution and use of this distribution in source and binary forms,
- with or without modification, are permitted provided that:
- The above copyright notice and this permission notice appear in all
- copies and supporting documentation;
-
- The name, identifiers, and trademarks of Rensselaer Polytechnic
- Institute are not used in advertising or publicity without the
- express prior written permission of Rensselaer Polytechnic Institute;
-
- DISCLAIMER: The software is distributed" AS IS" without any express or
- implied warranty, including but not limited to, any implied warranties
- of merchantability or fitness for a particular purpose or any warrant)'
- of non-infringement of any current or pending patent rights. The authors
- of the software make no representations about the suitability of this
- software for any particular purpose. The entire risk as to the quality
- and performance of the software is with the user. Should the software
- prove defective, the user assumes the cost of all necessary servicing,
- repair or correction. In particular, neither Rensselaer Polytechnic
- Institute, nor the authors of the software are liable for any indirect,
- special, consequential, or incidental damages related to the software,
- to the maximum extent the law permits. -->
-
- <!-- ================================= -->
- <!-- DEMO PUBLIC CALENDAR STYLESHEET -->
- <!-- ================================= -->
-
- <!-- DEFINE INCLUDES -->
- <xsl:include href="errors.xsl"/>
-
- <!-- DEFINE GLOBAL CONSTANTS -->
-
- <!-- URL of the XSL template directory -->
- <!-- The approot is an appropriate place to put
- included stylesheets and xml fragments. These are generally
- referenced relatively (like errors.xsl and messages.xsl above);
- this variable is here for your convenience if you choose to
- reference it explicitly. It is not used in this stylesheet, however,
- and can be safely removed if you so choose. -->
- <xsl:variable name="appRoot" select="/bedework/approot"/>
-
- <!-- URL of html resources (images, css, other html); by default this is
- set to the application root -->
- <xsl:variable name="resourcesRoot" select="/bedework/approot"/>
-
- <!-- Properly encoded prefixes to the application actions; use these to build
- urls; allows the application to be used without cookies or within a portal. -->
- <xsl:variable name="setup" select="/bedework/urlPrefixes/setup"/>
- <xsl:variable name="setSelection" select="/bedework/urlPrefixes/setSelection"/>
- <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/fetchPublicCalendars"/>
- <xsl:variable name="setViewPeriod" select="/bedework/urlPrefixes/setViewPeriod"/>
- <xsl:variable name="eventView" select="/bedework/urlPrefixes/eventView"/>
- <xsl:variable name="addEventRef" select="/bedework/urlPrefixes/addEventRef"/>
- <xsl:variable name="export" select="/bedework/urlPrefixes/export"/>
- <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mailEvent"/>
- <xsl:variable name="showPage" select="/bedework/urlPrefixes/showPage"/>
- <xsl:variable name="stats" select="/bedework/urlPrefixes/stats"/>
-
- <!-- Other generally useful global variables -->
- <xsl:variable name="privateCal">/ucal</xsl:variable>
- <xsl:variable name="prevdate" select="/bedework/previousdate"/>
- <xsl:variable name="nextdate" select="/bedework/nextdate"/>
- <xsl:variable name="curdate" select="/bedework/currentdate/date"/>
-
-
- <!-- MAIN TEMPLATE -->
- <xsl:template match="/">
- <html lang="en">
- <head>
- <title>Bedework Events Calendar</title>
- <link rel="stylesheet" type="text/css" href="{$resourcesRoot}/default/default/common.css" />
- <link rel="stylesheet" type="text/css" media="print" href="{$resourcesRoot}/default/default/print.css" />
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='style']/value='red'">
- <link rel="stylesheet" href="{$resourcesRoot}/default/default/red.css"/>
- </xsl:when>
- <xsl:when test="/bedework/appvar[key='style']/value='green'">
- <link rel="stylesheet" href="{$resourcesRoot}/default/default/green.css"/>
- </xsl:when>
- <xsl:otherwise>
- <link rel="stylesheet" href="{$resourcesRoot}/default/default/blue.css"/>
- </xsl:otherwise>
- </xsl:choose>
- <link rel="icon" type="image/ico" href="{$resourcesRoot}/images/bedework.ico" />
- </head>
- <body>
- <xsl:call-template name="headBar"/>
- <xsl:if test="/bedework/error">
- <div id="errors">
- <xsl:apply-templates select="/bedework/error"/>
- </div>
- </xsl:if>
- <xsl:call-template name="tabs"/>
- <xsl:call-template name="navigation"/>
- <xsl:choose>
- <xsl:when test="/bedework/page='event'">
- <!-- show an event -->
- <xsl:apply-templates select="/bedework/event"/>
- </xsl:when>
- <xsl:when test="/bedework/page='showSysStats'">
- <!-- show system stats -->
- <xsl:call-template name="stats"/>
- </xsl:when>
- <xsl:when test="/bedework/page='calendarList'">
- <!-- show a list of all calendars -->
- <xsl:apply-templates select="/bedework/calendars"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- otherwise, show the eventsCalendar -->
- <xsl:if test="/bedework/periodname!='Year'">
- <xsl:call-template name="searchBar"/>
- </xsl:if>
- <!-- main eventCalendar content -->
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <xsl:call-template name="listView"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'">
- <xsl:call-template name="listView"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="weekView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
- <xsl:call-template name="listView"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="monthView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="yearView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <!-- footer -->
- <xsl:call-template name="footer"/>
- </body>
- </html>
- </xsl:template>
-
- <!--==== HEADER TEMPLATES and NAVIGATION ====-->
- <!-- these templates are separated out for convenience and to simplify the default template -->
-
- <xsl:template name="headBar">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" id="logoTable">
- <tr>
- <td colspan="3" id="logoCell"><a href="http://www.bedework.org/"><img src="{$resourcesRoot}/images/bedeworkLogo.gif" width="292" height="75" border="0" alt="Bedework"/></a></td>
- <td colspan="2" id="schoolLinksCell">
- <h2>Public Calendar</h2>
- <a href="{$privateCal}">Personal Calendar</a> |
- <a href="http://www.yourschoolhere.edu">School Home</a> |
- <a href="http://www.bedework.org/">Other Link</a> |
- <a href="http://helpdesk.rpi.edu/update.do?catcenterkey=51">
- Example Calendar Help
- </a>
- </td>
- </tr>
- </table>
- <table id="curDateRangeTable" cellspacing="0">
- <td class="sideBarOpenCloseIcon">
-  
- <!--
- we may choose to implement calendar selection in the public calendar
- using a sidebar; leave this comment here for now.
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='sidebar']/value='closed'">
- <a href="?setappvar=sidebar(opened)">
- <img alt="open sidebar" src="{$resourcesRoot}/resources/sideBarArrowOpen.gif" width="21" height="16" border="0" align="left"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="?setappvar=sidebar(closed)">
- <img alt="close sidebar" src="{$resourcesRoot}/resources/sideBarArrowClose.gif" width="21" height="16" border="0" align="left"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>-->
- </td>
- <td class="date">
- <xsl:choose>
- <xsl:when test="/bedework/page='event'">
- Event Information
- </xsl:when>
- <xsl:when test="/bedework/page='showSysStats' or
- /bedework/page='calendars'">
-  
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/firstday/longdate"/>
- <xsl:if test="/bedework/periodname!='Day'">
- -
- <xsl:value-of select="/bedework/lastday/longdate"/>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="rssPrint">
- <a href="javascript:window.print()" title="print this view">
- <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
- </a>
- <a class="rss" href="{$setSelection}?setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
- </td>
- </table>
- </xsl:template>
-
- <xsl:template name="tabs">
- <xsl:choose>
- <xsl:when test="/bedework/page='eventscalendar'">
- <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
- <tr>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <a href="{$setViewPeriod}?viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-on.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}?viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
- <a href="{$setViewPeriod}?viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-on.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}?viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Month'">
- <a href="{$setViewPeriod}?viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-on.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}?viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year'">
- <a href="{$setViewPeriod}?viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-on.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}?viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="centerCell">
-  <!--<img src="{$resourcesRoot}/images/std-button-today.gif" width="46" height="17" border="0" alt="TODAY"/>-->
- </td>
- <td class="rightCell">
-  
- </td>
- </tr>
- </table>
- </xsl:when>
- <xsl:otherwise>
- <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
- <tr>
- <td>
- <a href="{$setViewPeriod}?viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}?viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}?viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}?viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </td>
- <td class="centerCell">
-  <!--<img src="{$resourcesRoot}/images/std-button-today.gif" width="46" height="17" border="0" alt="TODAY"/>-->
- </td>
- <td class="rightCell">
-  
- </td>
- </tr>
- </table>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="navigation">
- <table border="0" cellpadding="0" cellspacing="0" id="navigationBarTable">
- <tr>
- <td class="leftCell">
- <a id="prevViewPeriod" href="{$setViewPeriod}?date={$prevdate}"><img src="{$resourcesRoot}/images/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a>
- <a id="nextViewPeriod" href="{$setViewPeriod}?date={$nextdate}"><img src="{$resourcesRoot}/images/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year'">
- <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:value-of select="/bedework/firstday/monthname"/>, <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Week'">
- Week of <xsl:value-of select="substring-after(/bedework/firstday/longdate,', ')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/firstday/longdate"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="todayButton">
- <a href="{$setViewPeriod}?viewType=todayView&date={$curdate}">
- <img src="{$resourcesRoot}/images/std-button-today-off.gif" width="54" height="22" border="0" alt="Go to Today" align="left"/>
- </a>
- </td>
- <td align="right" class="gotoForm">
- <form name="calForm" method="get" action="{$setViewPeriod}">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:if test="/bedework/periodname!='Year'">
- <td>
- <select name="viewStartDate.month">
- <xsl:for-each select="/bedework/monthvalues/val">
- <xsl:variable name="temp" select="."/>
- <xsl:variable name="pos" select="position()"/>
- <xsl:choose>
- <xsl:when test="/bedework/monthvalues[start=$temp]">
- <option value="{$temp}" selected="selected">
- <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
- </option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$temp}">
- <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
- </option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </td>
- <xsl:if test="/bedework/periodname!='Month'">
- <td>
- <select name="viewStartDate.day">
- <xsl:for-each select="/bedework/dayvalues/val">
- <xsl:variable name="temp" select="."/>
- <xsl:variable name="pos" select="position()"/>
- <xsl:choose>
- <xsl:when test="/bedework/dayvalues[start=$temp]">
- <option value="{$temp}" selected="selected">
- <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
- </option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$temp}">
- <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
- </option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </td>
- </xsl:if>
- </xsl:if>
- <td>
- <xsl:variable name="temp" select="/bedework/yearvalues/start"/>
- <input type="text" name="viewStartDate.year" maxlength="4" size="4" value="{$temp}"/>
- </td>
- <td>
- <input name="submit" type="submit" value="go"/>
- </td>
- </tr>
- </table>
- </form>
- </td>
- <td class="rightCell">
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template name="searchBar">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" id="searchBarTable">
- <tr>
- <td class="leftCell">
- <xsl:choose>
- <xsl:when test="/bedework/selectionState/selectionType = 'calendar'">
- Calendar: <xsl:value-of select="/bedework/selectionState/subscriptions/subscription/calendar/name"/>
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:when test="/bedework/selectionState/selectionType = 'search'">
- Current search: <xsl:value-of select="/bedework/search"/>
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:when test="/bedework/selectionState/selectionType = 'subscription'">
- Subscription: (not implemented yet)
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:when test="/bedework/selectionState/selectionType = 'filter'">
- Filter: (not implemented yet)
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:otherwise><!-- view -->
- View:
- <form name="selectViewForm" method="get" action="{$setSelection}">
- <select name="viewName" onChange="submit()" >
- <xsl:for-each select="/bedework/views/view">
- <xsl:variable name="name" select="name"/>
- <xsl:choose>
- <xsl:when test="name=/bedework/selectionState/view/name">
- <option value="{$name}" selected="selected"><xsl:value-of select="name"/></option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$name}"><xsl:value-of select="name"/></option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </form>
- <span class="calLinks"><a href="{$setSelection}">default view</a> | <a href="{$fetchPublicCalendars}">available calendars</a></span>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="rightCell">
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <img src="{$resourcesRoot}/images/std-button-listview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Year'">
- <img src="{$resourcesRoot}/images/std-button-calview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
- <a href="{$setup}?setappvar=monthViewMode(cal)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}?setappvar=monthViewMode(list)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'">
- <a href="{$setup}?setappvar=weekViewMode(cal)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}?setappvar=weekViewMode(list)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year' or
- (/bedework/periodname='Month' and
- (/bedework/appvar[key='monthViewMode']/value='cal' or
- not(/bedework/appvar[key='monthViewMode']))) or
- (/bedework/periodname='Week' and
- (/bedework/appvar[key='weekViewMode']/value='cal' or
- not(/bedework/appvar[key='weekViewMode'])))">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <img src="{$resourcesRoot}/images/std-button-summary-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
- </xsl:when>
- <xsl:otherwise>
- <img src="{$resourcesRoot}/images/std-button-details-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <a href="{$setup}?setappvar=summaryMode(summary)" title="toggle summary/detailed view">
- <img src="{$resourcesRoot}/images/std-button-summary.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}?setappvar=summaryMode(details)" title="toggle summary/detailed view">
- <img src="{$resourcesRoot}/images/std-button-details.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <a href="setup.do"><img src="{$resourcesRoot}/images/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== SINGLE EVENT ====-->
- <xsl:template match="event">
- <xsl:variable name="statusClass">
- <xsl:choose>
- <xsl:when test="status='CANCELLED'">bwStatusCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">bwStatusTentative</xsl:when>
- <xsl:otherwise>bwStatusConfirmed</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <h2 class="{$statusClass}">
- <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
- <xsl:choose>
- <xsl:when test="link != ''">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}">
- <xsl:value-of select="summary"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="summary"/>
- </xsl:otherwise>
- </xsl:choose>
- </h2>
- <table id="eventTable" cellpadding="0" cellspacing="0">
- <tr>
- <td class="fieldname">When:</td>
- <td class="fieldval">
- <xsl:value-of select="start/dayname"/>, <xsl:value-of select="start/longdate"/><xsl:text> </xsl:text>
- <xsl:if test="start/allday = 'false'">
- <span class="time"><xsl:value-of select="start/time"/></span>
- </xsl:if>
- <xsl:if test="(end/longdate != start/longdate) or
- ((end/longdate = start/longdate) and (end/time != start/time))"> - </xsl:if>
- <xsl:if test="end/longdate != start/longdate">
- <xsl:value-of select="substring(end/dayname,1,3)"/>, <xsl:value-of select="end/longdate"/><xsl:text> </xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="start/allday = 'true'">
- <span class="time"><em>(all day)</em></span>
- </xsl:when>
- <xsl:when test="end/longdate != start/longdate">
- <span class="time"><xsl:value-of select="end/time"/></span>
- </xsl:when>
- <xsl:when test="end/time != start/time">
- <span class="time"><xsl:value-of select="end/time"/></span>
- </xsl:when>
- </xsl:choose>
- </td>
- <th class="icalIcon" rowspan="2">
- <div id="eventIcons">
- <xsl:variable name="id" select="id"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
- <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon.gif" width="20" height="26" border="0" alt="Add event to MyCalendar"/>
- add to my calendar</a>
- <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
- <a href="{$export}?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
- <img src="{$resourcesRoot}/images/std-ical_icon.gif" width="20" height="26" border="0" alt="Download this event"/>
- download</a>
- </div>
- </th>
- </tr>
- <tr>
- <td class="fieldname">Where:</td>
- <td class="fieldval">
- <xsl:choose>
- <xsl:when test="location/link=''">
- <xsl:value-of select="location/address"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="locationLink" select="location/link"/>
- <a href="{$locationLink}">
- <xsl:value-of select="location/address"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="location/subaddress!=''">
- <br/><xsl:value-of select="location/subaddress"/>
- </xsl:if>
- </td>
- </tr>
- <tr>
- <td class="fieldname">Description:</td>
- <td colspan="2" class="fieldval description">
- <xsl:call-template name="replace">
- <xsl:with-param name="string" select="description"/>
- <xsl:with-param name="pattern" select="'
'"/>
- <xsl:with-param name="replacement"><br/></xsl:with-param>
- </xsl:call-template>
- </td>
- </tr>
- <xsl:if test="status !='' and status != 'CONFIRMED'">
- <tr>
- <td class="fieldname">Status:</td>
- <td class="fieldval">
- <xsl:value-of select="status"/>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="cost!=''">
- <tr>
- <td class="fieldname">Cost:</td>
- <td colspan="2" class="fieldval"><xsl:value-of select="cost"/></td>
- </tr>
- </xsl:if>
- <xsl:if test="link != ''">
- <tr>
- <td class="fieldname">See:</td>
- <td colspan="2" class="fieldval">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}"><xsl:value-of select="link"/></a>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="sponsor/name!='none'">
- <tr>
- <td class="fieldname">Contact:</td>
- <td colspan="2" class="fieldval">
- <xsl:choose>
- <xsl:when test="sponsor/link=''">
- <xsl:value-of select="sponsor/name"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="sponsorLink" select="sponsor/link"/>
- <a href="{$sponsorLink}">
- <xsl:value-of select="sponsor/name"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="sponsor/phone!=''">
- <br /><xsl:value-of select="sponsor/phone"/>
- </xsl:if>
- <!-- If you want to display email addresses, uncomment the
- following 8 lines. -->
- <!-- <xsl:if test="sponsor/email!=''">
- <br />
- <xsl:variable name="email" select="sponsor/email"/>
- <xsl:variable name="subject" select="summary"/>
- <a href="mailto:{$email}?subject={$subject}">
- <xsl:value-of select="sponsor/email"/>
- </a>
- </xsl:if> -->
- </td>
- </tr>
- </xsl:if>
- <tr>
- <td class="fieldname">Calendar:</td>
- <td class="fieldval">
- <xsl:variable name="calUrl" select="calendar/path"/>
- <a href="{$setSelection}?calUrl={$calUrl}">
- <xsl:value-of select="calendar/name"/>
- </a>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== LIST VIEW (for day, week, and month) ====-->
- <xsl:template name="listView">
- <table id="listTable" border="0" cellpadding="0" cellspacing="0">
- <xsl:choose>
- <xsl:when test="not(/bedework/eventscalendar/year/month/week/day/event)">
- <tr>
- <td class="noEventsCell">
- No events to display.
- </td>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week/day[event]">
- <xsl:if test="/bedework/periodname='Week' or /bedework/periodname='Month' or /bedework/periodname=''">
- <tr>
- <td colspan="5" class="dateRow">
- <xsl:variable name="date" select="date"/>
- <a href="{$setViewPeriod}?viewType=dayView&date={$date}">
- <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/>
- </a>
- </td>
- </tr>
- </xsl:if>
- <xsl:for-each select="event">
- <xsl:variable name="id" select="id"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <tr>
- <xsl:variable name="dateRangeStyle">
- <xsl:choose>
- <xsl:when test="start/shortdate = parent::day/shortdate">
- <xsl:choose>
- <xsl:when test="start/allday = 'true'">dateRangeCrossDay</xsl:when>
- <xsl:when test="start/hour24 < 6">dateRangeEarlyMorning</xsl:when>
- <xsl:when test="start/hour24 < 12">dateRangeMorning</xsl:when>
- <xsl:when test="start/hour24 < 18">dateRangeAfternoon</xsl:when>
- <xsl:otherwise>dateRangeEvening</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>dateRangeCrossDay</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="start/allday = 'true' and
- start/shortdate = end/shortdate">
- <td class="{$dateRangeStyle} center" colspan="3">
- all day
- </td>
- </xsl:when>
- <xsl:when test="start/shortdate = end/shortdate and
- start/time = end/time">
- <td class="{$dateRangeStyle} center" colspan="3">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:value-of select="start/time"/>
- </a>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td class="{$dateRangeStyle} right">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:choose>
- <xsl:when test="start/allday = 'true' and
- parent::day/shortdate = start/shortdate">
- today
- </xsl:when>
- <xsl:when test="parent::day/shortdate != start/shortdate">
- <span class="littleArrow">«</span> 
- <xsl:value-of select="start/month"/>/<xsl:value-of select="start/day"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="start/time"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </td>
- <td class="{$dateRangeStyle} center">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">-</a>
- </td>
- <td class="{$dateRangeStyle} left">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:choose>
- <xsl:when test="end/allday = 'true' and
- parent::day/shortdate = end/shortdate">
- today
- </xsl:when>
- <xsl:when test="parent::day/shortdate != end/shortdate">
- <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/>
-  <span class="littleArrow">»</span>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="end/time"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:variable name="descriptionClass">
- <xsl:choose>
- <xsl:when test="status='CANCELLED'">description bwStatusCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">description bwStatusTentative</xsl:when>
- <xsl:otherwise>description</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <td class="{$descriptionClass}">
- <xsl:if test="status='CANCELLED'"><strong>CANCELLED: </strong></xsl:if>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <strong>
- <xsl:value-of select="summary"/>:
- </strong>
- <xsl:value-of select="description"/> 
- <em>
- <xsl:value-of select="location/address"/>
- <xsl:if test="location/subaddress != ''">
- , <xsl:value-of select="location/subaddress"/>
- </xsl:if>. 
- <xsl:if test="cost!=''">
- <xsl:value-of select="cost"/>. 
- </xsl:if>
- <xsl:if test="sponsor/name!='none'">
- Contact: <xsl:value-of select="sponsor/name"/>
- </xsl:if>
- </em>
- </a>
- <xsl:if test="link != ''">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}" class="moreLink"><xsl:value-of select="link"/></a>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:value-of select="summary"/>
- <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="icons">
- <variable name="confId" select="/bedework/confirmationid"/>
- <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
- <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/>
- </a>
- <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
- <a href="{$export}?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
- <img src="{$resourcesRoot}/images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/>
- </a>
- </td>
- </tr>
- </xsl:for-each>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </table>
- </xsl:template>
-
- <!--==== WEEK CALENDAR VIEW ====-->
- <xsl:template name="weekView">
- <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:for-each select="/bedework/daynames/val">
- <th class="dayHeading"><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <tr>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week/day">
- <xsl:variable name="dayPos" select="position()"/>
- <xsl:if test="filler='false'">
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}?viewType=dayView&date={$dayDate}" class="dayLink">
- <xsl:value-of select="value"/>
- </a>
- <ul>
- <xsl:apply-templates select="event" mode="calendarLayout">
- <xsl:with-param name="dayPos" select="$dayPos"/>
- </xsl:apply-templates>
- </ul>
- </td>
- </xsl:if>
- </xsl:for-each>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== MONTH CALENDAR VIEW ====-->
- <xsl:template name="monthView">
- <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:for-each select="/bedework/daynames/val">
- <th class="dayHeading"><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week">
- <tr>
- <xsl:for-each select="day">
- <xsl:variable name="dayPos" select="position()"/>
- <xsl:choose>
- <xsl:when test="filler='true'">
- <td class="filler"> </td>
- </xsl:when>
- <xsl:otherwise>
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}?viewType=dayView&date={$dayDate}" class="dayLink">
- <xsl:value-of select="value"/>
- </a>
- <ul>
- <xsl:apply-templates select="event" mode="calendarLayout">
- <xsl:with-param name="dayPos" select="$dayPos"/>
- </xsl:apply-templates>
- </ul>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </tr>
- </xsl:for-each>
- </table>
- </xsl:template>
-
- <xsl:template match="event" mode="calendarLayout">
- <xsl:param name="dayPos"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <xsl:variable name="eventClass">
- <xsl:choose>
- <!-- Special styles for the month grid -->
- <xsl:when test="status='CANCELLED'">eventCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">eventTentative</xsl:when>
- <xsl:when test="calendar/name='Holidays'">holiday</xsl:when>
- <!-- Alternating colors for all standard events -->
- <xsl:when test="position() mod 2 = 1">eventLinkA</xsl:when>
- <xsl:otherwise>eventLinkB</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <li>
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" class="{$eventClass}">
- <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
- <xsl:value-of select="summary"/>
- <xsl:variable name="eventTipClass">
- <xsl:choose>
- <xsl:when test="$dayPos > 5">eventTipReverse</xsl:when>
- <xsl:otherwise>eventTip</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <span class="{$eventTipClass}">
- <xsl:if test="status='CANCELLED'"><span class="eventTipStatusCancelled">CANCELLED</span></xsl:if>
- <xsl:if test="status='TENTATIVE'"><span class="eventTipStatusTentative">TENTATIVE</span></xsl:if>
- <strong><xsl:value-of select="summary"/></strong><br/>
- Time:
- <xsl:choose>
- <xsl:when test="start/allday = 'false'">
- <xsl:value-of select="start/time"/>
- <xsl:if test="start/time != end/time">
- - <xsl:value-of select="end/time"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- all day
- </xsl:otherwise>
- </xsl:choose><br/>
- <xsl:if test="location/address">
- Location: <xsl:value-of select="location/address"/><br/>
- </xsl:if>
- Calendar: <xsl:value-of select="calendar/name"/>
- </span>
- </a>
- </li>
- </xsl:template>
-
- <!--==== YEAR VIEW ====-->
- <xsl:template name="yearView">
- <table id="yearCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() <= 3]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 3) and (position() <= 6)]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 6) and (position() <= 9)]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() > 9]"/>
- </tr>
- </table>
- </xsl:template>
-
- <!-- year view month tables -->
- <xsl:template match="month">
- <td>
- <table class="yearViewMonthTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="8" class="monthName">
- <xsl:variable name="firstDayOfMonth" select="week/day/date"/>
- <a href="{$setViewPeriod}?viewType=monthView&date={$firstDayOfMonth}">
- <xsl:value-of select="longname"/>
- </a>
- </td>
- </tr>
- <tr>
- <th> </th>
- <xsl:for-each select="/bedework/shortdaynames/val">
- <th><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <xsl:for-each select="week">
- <tr>
- <td class="weekCell">
- <xsl:variable name="firstDayOfWeek" select="day/date"/>
- <a href="{$setViewPeriod}?viewType=weekView&date={$firstDayOfWeek}">
- <xsl:value-of select="value"/>
- </a>
- </td>
- <xsl:for-each select="day">
- <xsl:choose>
- <xsl:when test="filler='true'">
- <td class="filler"> </td>
- </xsl:when>
- <xsl:otherwise>
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}?viewType=dayView&date={$dayDate}">
- <xsl:value-of select="value"/>
- </a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </tr>
- </xsl:for-each>
- </table>
- </td>
- </xsl:template>
-
- <!--==== CALENDARS PAGE ====-->
- <xsl:template match="calendars">
- <xsl:variable name="topLevelCalCount" select="count(calendar/calendar)"/>
- <table id="calPageTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <th colspan="2">
- All Calendars
- </th>
- </tr>
- <tr>
- <td colspan="2" class="infoCell">
- Select a calendar from the list below to see only that calendar's events.
- </td>
- </tr>
- <tr>
- <td class="leftCell">
- <ul class="calendarTree">
- <xsl:apply-templates select="calendar/calendar[position() <= ceiling($topLevelCalCount div 2)]" mode="calTree"/>
- </ul>
- </td>
- <td>
- <ul class="calendarTree">
- <xsl:apply-templates select="calendar/calendar[position() > ceiling($topLevelCalCount div 2)]" mode="calTree"/>
- </ul>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template match="calendar" mode="calTree">
- <xsl:variable name="itemClass">
- <xsl:choose>
- <xsl:when test="calendarCollection='false'">folder</xsl:when>
- <xsl:otherwise>calendar</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="url" select="path"/>
- <li class="{$itemClass}">
- <a href="{$setSelection}?calUrl={$url}"><xsl:value-of select="name"/></a>
- <xsl:if test="calendar">
- <ul>
- <xsl:apply-templates select="calendar" mode="calTree"/>
- </ul>
- </xsl:if>
- </li>
- </xsl:template>
-
- <!--+++++++++++++++ System Stats ++++++++++++++++++++-->
- <xsl:template name="stats">
- <div id="stats">
- <h2>System Statistics</h2>
-
- <p>
- Stats collection:
- </p>
- <ul>
- <li>
- <a href="{$stats}&enable=yes">enable</a> |
- <a href="{$stats}&disable=yes">disable</a>
- </li>
- <li><a href="{$stats}&fetch=yes">fetch statistics</a></li>
- <li><a href="{$stats}&dump=yes">dump stats to log</a></li>
- </ul>
- <table id="statsTable" cellpadding="0">
- <xsl:for-each select="/bedework/sysStats/*">
- <xsl:choose>
- <xsl:when test="name(.) = 'header'">
- <tr>
- <th colspan="2">
- <xsl:value-of select="."/>
- </th>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <tr>
- <td class="label">
- <xsl:value-of select="label"/>
- </td>
- <td class="value">
- <xsl:value-of select="value"/>
- </td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </table>
- </div>
- </xsl:template>
-
- <!--==== UTILITY TEMPLATES ====-->
-
- <!-- search and replace template taken from
- http://www.biglist.com/lists/xsl-list/archives/200211/msg00337.html -->
- <xsl:template name="replace">
- <xsl:param name="string" select="''"/>
- <xsl:param name="pattern" select="''"/>
- <xsl:param name="replacement" select="''"/>
- <xsl:choose>
- <xsl:when test="$pattern != '' and $string != '' and contains($string, $pattern)">
- <xsl:value-of select="substring-before($string, $pattern)"/>
- <xsl:copy-of select="$replacement"/>
- <xsl:call-template name="replace">
- <xsl:with-param name="string" select="substring-after($string, $pattern)"/>
- <xsl:with-param name="pattern" select="$pattern"/>
- <xsl:with-param name="replacement" select="$replacement"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$string"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <!--==== FOOTER ====-->
-
- <xsl:template name="footer">
- <div id="footer">
- Demonstration calendar; place footer information here.
- </div>
- <table id="skinSelectorTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td class="leftCell">
- Based on the <a href="http://www.bedework.org/">Bedework Calendar</a> |
- <a href="?noxslt=yes">show XML</a> |
- <a href="?refreshXslt=yes">refresh XSLT</a>
- </td>
- <td class="rightCell">
- <form name="styleSelectForm" method="get" action="{$setup}">
- <select name="setappvar" onChange="submit()">
- <option>example styles:</option>
- <option value="style(green)">green</option>
- <option value="style(red)">red</option>
- <option value="style(blue)">blue</option>
- </select>
- </form>
- <form name="skinSelectForm" method="get" action="{$setup}">
- <input type="hidden" name="setappvar" value="summaryMode(details)"/>
- <select name="skinPicker" onchange="window.location = this.value">
- <option>example skins:</option>
- <option value="{$setViewPeriod}?viewType=weekView&skinName=rss&setappvar=summaryMode(details)">rss feed</option>
- <option value="{$setViewPeriod}?viewType=todayView&skinName=jsToday&contentType=text/javascript&contentName=bedework.js">javascript feed</option>
- <option value="{$setViewPeriod}?viewType=todayView&skinName=videocal">video feed</option>
- <option value="{$setup}?skinName=default">reset to calendar default</option>
- </select>
- </form>
- <form name="skinSelectForm" method="get" action="">
- <select name="sitePicker" onchange="window.location = this.value">
- <option>production examples:</option>
- <option value="http://events.dal.ca/">Dalhousie</option>
- <option value="http://events.rpi.edu">Rensselaer</option>
- <option value="http://myuw.washington.edu/cal/">Washington</option>
- </select>
- </form>
- </td>
- </tr>
- </table>
- </xsl:template>
-</xsl:stylesheet>
Copied: branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl (from rev 636, trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl)
===================================================================
--- branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl (rev 0)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl 2006-06-22 21:17:07 UTC (rev 641)
@@ -0,0 +1,1164 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:output
+ method="html"
+ indent="yes"
+ media-type="text/html"
+ doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
+ doctype-system="http://www.w3.org/TR/html4/loose.dtd"
+ standalone="yes"
+/>
+
+<!-- =========================================================
+
+ DEMONSTRATION "DEPARTMENTAL" CALENDAR STYLESHEET
+
+ This stylesheet is for the "soe" (School of Engineering)
+ calendar suite; it is an example of a departmental skin.
+
+ This skin, along with the preferences for the Calendar
+ Suite owner, differs from the main public skin (default.xsl) in the
+ following ways:
+ - different header, title, and footer
+ - default layout = list view (rather than calendar grid)
+ - different color scheme
+
+ Otherwise, for the sake of demonstration, we've left most of the
+ functionality of the public client in place.
+
+ For detailed instructions on how to work with the XSLT
+ stylesheets included with this distribution, please see the
+ Bedework Design Guide at
+ http://www.bedework.org/bedework/update.do?artcenterkey=24
+
+=============================================================== -->
+
+<!-- **********************************************************************
+ Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved.
+
+ Redistribution and use of this distribution in source and binary forms,
+ with or without modification, are permitted provided that:
+ The above copyright notice and this permission notice appear in all
+ copies and supporting documentation;
+
+ The name, identifiers, and trademarks of Rensselaer Polytechnic
+ Institute are not used in advertising or publicity without the
+ express prior written permission of Rensselaer Polytechnic Institute;
+
+ DISCLAIMER: The software is distributed" AS IS" without any express or
+ implied warranty, including but not limited to, any implied warranties
+ of merchantability or fitness for a particular purpose or any warrant)'
+ of non-infringement of any current or pending patent rights. The authors
+ of the software make no representations about the suitability of this
+ software for any particular purpose. The entire risk as to the quality
+ and performance of the software is with the user. Should the software
+ prove defective, the user assumes the cost of all necessary servicing,
+ repair or correction. In particular, neither Rensselaer Polytechnic
+ Institute, nor the authors of the software are liable for any indirect,
+ special, consequential, or incidental damages related to the software,
+ to the maximum extent the law permits. -->
+
+ <!-- ================================= -->
+ <!-- DEMO PUBLIC CALENDAR STYLESHEET -->
+ <!-- ================================= -->
+
+ <!-- DEFINE INCLUDES -->
+ <xsl:include href="errors.xsl"/>
+
+ <!-- DEFINE GLOBAL CONSTANTS -->
+
+ <!-- URL of the XSL template directory -->
+ <!-- The approot is an appropriate place to put
+ included stylesheets and xml fragments. These are generally
+ referenced relatively (like errors.xsl and messages.xsl above);
+ this variable is here for your convenience if you choose to
+ reference it explicitly. It is not used in this stylesheet, however,
+ and can be safely removed if you so choose. -->
+ <xsl:variable name="appRoot" select="/bedework/approot"/>
+
+ <!-- URL of html resources (images, css, other html); by default this is
+ set to the application root -->
+ <xsl:variable name="resourcesRoot" select="/bedework/approot"/>
+
+ <!-- Properly encoded prefixes to the application actions; use these to build
+ urls; allows the application to be used without cookies or within a portal.
+ These urls are rewritten in header.jsp and simply passed through for use
+ here. Every url includes a query string (either ?b=de or a real query
+ string) so that all links constructed in this stylesheet may begin the
+ query string with an ampersand. -->
+ <xsl:variable name="setup" select="/bedework/urlPrefixes/setup"/>
+ <xsl:variable name="setSelection" select="/bedework/urlPrefixes/setSelection"/>
+ <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/fetchPublicCalendars"/>
+ <xsl:variable name="setViewPeriod" select="/bedework/urlPrefixes/setViewPeriod"/>
+ <xsl:variable name="eventView" select="/bedework/urlPrefixes/eventView"/>
+ <xsl:variable name="addEventRef" select="/bedework/urlPrefixes/addEventRef"/>
+ <xsl:variable name="export" select="/bedework/urlPrefixes/export"/>
+ <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mailEvent"/>
+ <xsl:variable name="showPage" select="/bedework/urlPrefixes/showPage"/>
+ <xsl:variable name="stats" select="/bedework/urlPrefixes/stats"/>
+
+ <!-- Other generally useful global variables -->
+ <xsl:variable name="privateCal">/ucal</xsl:variable>
+ <xsl:variable name="prevdate" select="/bedework/previousdate"/>
+ <xsl:variable name="nextdate" select="/bedework/nextdate"/>
+ <xsl:variable name="curdate" select="/bedework/currentdate/date"/>
+ <xsl:variable name="skin">default</xsl:variable>
+
+
+ <!-- MAIN TEMPLATE -->
+ <xsl:template match="/">
+ <html lang="en">
+ <head>
+ <title>School of Engineering: Example Bedework Departmental Calendar Suite</title>
+ <link rel="stylesheet" type="text/css" href="{$resourcesRoot}/default/default/soe.css" />
+ <link rel="icon" type="image/ico" href="{$resourcesRoot}/images/bedework.ico" />
+ </head>
+ <body>
+ <xsl:call-template name="headBar"/>
+ <xsl:if test="/bedework/error">
+ <div id="errors">
+ <xsl:apply-templates select="/bedework/error"/>
+ </div>
+ </xsl:if>
+ <xsl:call-template name="tabs"/>
+ <xsl:call-template name="navigation"/>
+ <xsl:choose>
+ <xsl:when test="/bedework/page='event'">
+ <!-- show an event -->
+ <xsl:apply-templates select="/bedework/event"/>
+ </xsl:when>
+ <xsl:when test="/bedework/page='showSysStats'">
+ <!-- show system stats -->
+ <xsl:call-template name="stats"/>
+ </xsl:when>
+ <xsl:when test="/bedework/page='calendarList'">
+ <!-- show a list of all calendars -->
+ <xsl:apply-templates select="/bedework/calendars"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- otherwise, show the eventsCalendar -->
+ <xsl:if test="/bedework/periodname!='Year'">
+ <xsl:call-template name="searchBar"/>
+ </xsl:if>
+ <!-- main eventCalendar content -->
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Day'">
+ <xsl:call-template name="listView"/>
+ </xsl:when>
+ <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='weekViewMode']/value='cal'">
+ <xsl:call-template name="weekView"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="listView"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="/bedework/periodname='Month'">
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
+ <xsl:call-template name="listView"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="monthView"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="yearView"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <!-- footer -->
+ <xsl:call-template name="footer"/>
+ </body>
+ </html>
+ </xsl:template>
+
+ <!--==== HEADER TEMPLATES and NAVIGATION ====-->
+ <!-- these templates are separated out for convenience and to simplify the default template -->
+
+ <xsl:template name="headBar">
+ <div id="headBar">
+ <div id="bedeworkLogo">
+ <a href="http://www.bedework.org/">
+ <img src="{$resourcesRoot}/images/soecal/soeBedeworkLogo.gif" width="296" height="69" border="0" alt="Bedework" align="right"/>
+ </a>
+ </div>
+ <h1>Example Departmental Calendar Suite</h1>
+ <!--<ul id="schoolLinks">
+ <li><a href="{$privateCal}">Personal Calendar</a></li>
+ <li><a href="http://www.yourschoolhere.edu">School Home</a></li>
+ <li><a href="http://www.bedework.org/">Other Link</a></li>
+ <li>
+ <a href="http://helpdesk.rpi.edu/update.do?catcenterkey=51">
+ Example Calendar Help
+ </a>
+ </li>
+ </ul> -->
+ </div>
+ <!-- Turn off the date range table for this departmental view -->
+ <!--<table id="curDateRangeTable" cellspacing="0">
+ <td class="sideBarOpenCloseIcon">
+   -->
+ <!--
+ we may choose to implement calendar selection in the public calendar
+ using a sidebar; leave this comment here for now.
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='sidebar']/value='closed'">
+ <a href="?setappvar=sidebar(opened)">
+ <img alt="open sidebar" src="{$resourcesRoot}/resources/sideBarArrowOpen.gif" width="21" height="16" border="0" align="left"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="?setappvar=sidebar(closed)">
+ <img alt="close sidebar" src="{$resourcesRoot}/resources/sideBarArrowClose.gif" width="21" height="16" border="0" align="left"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>-->
+ <!-- </td>
+ <td class="date">
+ <xsl:choose>
+ <xsl:when test="/bedework/page='event'">
+ Event Information
+ </xsl:when>
+ <xsl:when test="/bedework/page='showSysStats' or
+ /bedework/page='calendars'">
+  
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="/bedework/firstday/longdate"/>
+ <xsl:if test="/bedework/periodname!='Day'">
+ -
+ <xsl:value-of select="/bedework/lastday/longdate"/>
+ </xsl:if>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td class="rssPrint">
+ <a href="javascript:window.print()" title="print this view">
+ <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
+ </a>
+ <a class="rss" href="{$setSelection}&setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
+ </td>
+ </table>-->
+ </xsl:template>
+
+ <xsl:template name="tabs">
+ <xsl:choose>
+ <xsl:when test="/bedework/page='eventscalendar'">
+ <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
+ <tr>
+ <td>
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Day'">
+ <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-on.gif" width="91" height="20" border="0" alt="DAY"/></a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
+ <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-on.gif" width="92" height="20" border="0" alt="WEEK"/></a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Month'">
+ <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-on.gif" width="90" height="20" border="0" alt="MONTH"/></a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Year'">
+ <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-on.gif" width="92" height="20" border="0" alt="YEAR"/></a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td class="rssPrint">
+ <a href="javascript:window.print()" title="print this view">
+ <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
+ </a>
+ <a class="rss" href="{$setSelection}&setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
+ </td>
+ </tr>
+ </table>
+ </xsl:when>
+ <xsl:otherwise>
+ <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
+ <tr>
+ <td>
+ <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
+ </td>
+ <td>
+ <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
+ </td>
+ <td>
+ <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
+ </td>
+ <td>
+ <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
+ </td>
+ <td class="rssPrint">
+ <a href="javascript:window.print()" title="print this view">
+ <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
+ </a>
+ <a class="rss" href="{$setSelection}&setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
+ </td>
+ </tr>
+ </table>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="navigation">
+ <table border="0" cellpadding="0" cellspacing="0" id="navigationBarTable">
+ <tr>
+ <td class="leftCell">
+ <a id="prevViewPeriod" href="{$setViewPeriod}&date={$prevdate}"><img src="{$resourcesRoot}/images/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a>
+ <a id="nextViewPeriod" href="{$setViewPeriod}&date={$nextdate}"><img src="{$resourcesRoot}/images/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a>
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Year'">
+ <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
+ </xsl:when>
+ <xsl:when test="/bedework/periodname='Month'">
+ <xsl:value-of select="/bedework/firstday/monthname"/>, <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
+ </xsl:when>
+ <xsl:when test="/bedework/periodname='Week'">
+ Week of <xsl:value-of select="substring-after(/bedework/firstday/longdate,', ')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="/bedework/firstday/longdate"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td class="todayButton">
+ <a href="{$setViewPeriod}&viewType=todayView&date={$curdate}">
+ <img src="{$resourcesRoot}/images/std-button-today-off.gif" width="54" height="22" border="0" alt="Go to Today" align="left"/>
+ </a>
+ </td>
+ <td align="right" class="gotoForm">
+ <form name="calForm" method="get" action="{$setViewPeriod}">
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <xsl:if test="/bedework/periodname!='Year'">
+ <td>
+ <select name="viewStartDate.month">
+ <xsl:for-each select="/bedework/monthvalues/val">
+ <xsl:variable name="temp" select="."/>
+ <xsl:variable name="pos" select="position()"/>
+ <xsl:choose>
+ <xsl:when test="/bedework/monthvalues[start=$temp]">
+ <option value="{$temp}" selected="selected">
+ <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
+ </option>
+ </xsl:when>
+ <xsl:otherwise>
+ <option value="{$temp}">
+ <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
+ </option>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </select>
+ </td>
+ <xsl:if test="/bedework/periodname!='Month'">
+ <td>
+ <select name="viewStartDate.day">
+ <xsl:for-each select="/bedework/dayvalues/val">
+ <xsl:variable name="temp" select="."/>
+ <xsl:variable name="pos" select="position()"/>
+ <xsl:choose>
+ <xsl:when test="/bedework/dayvalues[start=$temp]">
+ <option value="{$temp}" selected="selected">
+ <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
+ </option>
+ </xsl:when>
+ <xsl:otherwise>
+ <option value="{$temp}">
+ <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
+ </option>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </select>
+ </td>
+ </xsl:if>
+ </xsl:if>
+ <td>
+ <xsl:variable name="temp" select="/bedework/yearvalues/start"/>
+ <input type="text" name="viewStartDate.year" maxlength="4" size="4" value="{$temp}"/>
+ </td>
+ <td>
+ <input name="submit" type="submit" value="go"/>
+ </td>
+ </tr>
+ </table>
+ </form>
+ </td>
+ <td class="rightCell">
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <xsl:template name="searchBar">
+ <table width="100%" border="0" cellpadding="0" cellspacing="0" id="searchBarTable">
+ <tr>
+ <td class="leftCell">
+ <xsl:choose>
+ <xsl:when test="/bedework/selectionState/selectionType = 'calendar'">
+ Calendar: <xsl:value-of select="/bedework/selectionState/subscriptions/subscription/calendar/name"/>
+ <span class="link">[<a href="{$setSelection}">default view</a>]</span>
+ </xsl:when>
+ <xsl:when test="/bedework/selectionState/selectionType = 'search'">
+ Current search: <xsl:value-of select="/bedework/search"/>
+ <span class="link">[<a href="{$setSelection}">default view</a>]</span>
+ </xsl:when>
+ <xsl:when test="/bedework/selectionState/selectionType = 'subscription'">
+ Subscription: (not implemented yet)
+ <span class="link">[<a href="{$setSelection}">default view</a>]</span>
+ </xsl:when>
+ <xsl:when test="/bedework/selectionState/selectionType = 'filter'">
+ Filter: (not implemented yet)
+ <span class="link">[<a href="{$setSelection}">default view</a>]</span>
+ </xsl:when>
+ <xsl:otherwise><!-- view -->
+ View:
+ <form name="selectViewForm" method="get" action="{$setSelection}">
+ <select name="viewName" onChange="submit()" >
+ <xsl:for-each select="/bedework/views/view">
+ <xsl:variable name="name" select="name"/>
+ <xsl:choose>
+ <xsl:when test="name=/bedework/selectionState/view/name">
+ <option value="{$name}" selected="selected"><xsl:value-of select="name"/></option>
+ </xsl:when>
+ <xsl:otherwise>
+ <option value="{$name}"><xsl:value-of select="name"/></option>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </select>
+ </form>
+ <span class="calLinks"><a href="{$setSelection}">default view</a> | <a href="{$fetchPublicCalendars}">available calendars</a></span>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td class="rightCell">
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Day'">
+ <img src="{$resourcesRoot}/images/std-button-listview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
+ </xsl:when>
+ <xsl:when test="/bedework/periodname='Year'">
+ <img src="{$resourcesRoot}/images/std-button-calview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
+ </xsl:when>
+ <xsl:when test="/bedework/periodname='Month'">
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
+ <a href="{$setup}&setappvar=monthViewMode(cal)" title="toggle list/calendar view">
+ <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setup}&setappvar=monthViewMode(list)" title="toggle list/calendar view">
+ <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='weekViewMode']/value='cal'">
+ <a href="{$setup}&setappvar=weekViewMode(list)" title="toggle list/calendar view">
+ <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setup}&setappvar=weekViewMode(cal)" title="toggle list/calendar view">
+ <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="/bedework/periodname='Year' or
+ (/bedework/periodname='Month' and
+ (/bedework/appvar[key='monthViewMode']/value='cal' or
+ not(/bedework/appvar[key='monthViewMode']))) or
+ (/bedework/periodname='Week' and
+ (/bedework/appvar[key='weekViewMode']/value='cal' or
+ not(/bedework/appvar[key='weekViewMode'])))">
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
+ <img src="{$resourcesRoot}/images/std-button-summary-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <img src="{$resourcesRoot}/images/std-button-details-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
+ <a href="{$setup}&setappvar=summaryMode(summary)" title="toggle summary/detailed view">
+ <img src="{$resourcesRoot}/images/std-button-summary.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$setup}&setappvar=summaryMode(details)" title="toggle summary/detailed view">
+ <img src="{$resourcesRoot}/images/std-button-details.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <a href="setup.do"><img src="{$resourcesRoot}/images/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a>
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <!--==== SINGLE EVENT ====-->
+ <xsl:template match="event">
+ <xsl:variable name="statusClass">
+ <xsl:choose>
+ <xsl:when test="status='CANCELLED'">bwStatusCancelled</xsl:when>
+ <xsl:when test="status='TENTATIVE'">bwStatusTentative</xsl:when>
+ <xsl:otherwise>bwStatusConfirmed</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <h2 class="{$statusClass}">
+ <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
+ <xsl:choose>
+ <xsl:when test="link != ''">
+ <xsl:variable name="link" select="link"/>
+ <a href="{$link}">
+ <xsl:value-of select="summary"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="summary"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </h2>
+ <table id="eventTable" cellpadding="0" cellspacing="0">
+ <tr>
+ <td class="fieldname">When:</td>
+ <td class="fieldval">
+ <xsl:value-of select="start/dayname"/>, <xsl:value-of select="start/longdate"/><xsl:text> </xsl:text>
+ <xsl:if test="start/allday = 'false'">
+ <span class="time"><xsl:value-of select="start/time"/></span>
+ </xsl:if>
+ <xsl:if test="(end/longdate != start/longdate) or
+ ((end/longdate = start/longdate) and (end/time != start/time))"> - </xsl:if>
+ <xsl:if test="end/longdate != start/longdate">
+ <xsl:value-of select="substring(end/dayname,1,3)"/>, <xsl:value-of select="end/longdate"/><xsl:text> </xsl:text>
+ </xsl:if>
+ <xsl:choose>
+ <xsl:when test="start/allday = 'true'">
+ <span class="time"><em>(all day)</em></span>
+ </xsl:when>
+ <xsl:when test="end/longdate != start/longdate">
+ <span class="time"><xsl:value-of select="end/time"/></span>
+ </xsl:when>
+ <xsl:when test="end/time != start/time">
+ <span class="time"><xsl:value-of select="end/time"/></span>
+ </xsl:when>
+ </xsl:choose>
+ </td>
+ <th class="icalIcon" rowspan="2">
+ <div id="eventIcons">
+ <xsl:variable name="id" select="id"/>
+ <xsl:variable name="subscriptionId" select="subscription/id"/>
+ <xsl:variable name="calPath" select="calendar/encodedPath"/>
+ <xsl:variable name="guid" select="guid"/>
+ <xsl:variable name="recurrenceId" select="recurrenceId"/>
+ <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
+ <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon.gif" width="20" height="26" border="0" alt="Add event to MyCalendar"/>
+ add to my calendar</a>
+ <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
+ <a href="{$export}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
+ <img src="{$resourcesRoot}/images/std-ical_icon.gif" width="20" height="26" border="0" alt="Download this event"/>
+ download</a>
+ </div>
+ </th>
+ </tr>
+ <tr>
+ <td class="fieldname">Where:</td>
+ <td class="fieldval">
+ <xsl:choose>
+ <xsl:when test="location/link=''">
+ <xsl:value-of select="location/address"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable name="locationLink" select="location/link"/>
+ <a href="{$locationLink}">
+ <xsl:value-of select="location/address"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:if test="location/subaddress!=''">
+ <br/><xsl:value-of select="location/subaddress"/>
+ </xsl:if>
+ </td>
+ </tr>
+ <tr>
+ <td class="fieldname">Description:</td>
+ <td colspan="2" class="fieldval description">
+ <xsl:call-template name="replace">
+ <xsl:with-param name="string" select="description"/>
+ <xsl:with-param name="pattern" select="'
'"/>
+ <xsl:with-param name="replacement"><br/></xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ <xsl:if test="status !='' and status != 'CONFIRMED'">
+ <tr>
+ <td class="fieldname">Status:</td>
+ <td class="fieldval">
+ <xsl:value-of select="status"/>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="cost!=''">
+ <tr>
+ <td class="fieldname">Cost:</td>
+ <td colspan="2" class="fieldval"><xsl:value-of select="cost"/></td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="link != ''">
+ <tr>
+ <td class="fieldname">See:</td>
+ <td colspan="2" class="fieldval">
+ <xsl:variable name="link" select="link"/>
+ <a href="{$link}"><xsl:value-of select="link"/></a>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="sponsor/name!='none'">
+ <tr>
+ <td class="fieldname">Contact:</td>
+ <td colspan="2" class="fieldval">
+ <xsl:choose>
+ <xsl:when test="sponsor/link=''">
+ <xsl:value-of select="sponsor/name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable name="sponsorLink" select="sponsor/link"/>
+ <a href="{$sponsorLink}">
+ <xsl:value-of select="sponsor/name"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:if test="sponsor/phone!=''">
+ <br /><xsl:value-of select="sponsor/phone"/>
+ </xsl:if>
+ <!-- If you want to display email addresses, uncomment the
+ following 8 lines. -->
+ <!-- <xsl:if test="sponsor/email!=''">
+ <br />
+ <xsl:variable name="email" select="sponsor/email"/>
+ <xsl:variable name="subject" select="summary"/>
+ <a href="mailto:{$email}&subject={$subject}">
+ <xsl:value-of select="sponsor/email"/>
+ </a>
+ </xsl:if> -->
+ </td>
+ </tr>
+ </xsl:if>
+ <tr>
+ <td class="fieldname">Calendar:</td>
+ <td class="fieldval">
+ <xsl:variable name="calUrl" select="calendar/path"/>
+ <a href="{$setSelection}&calUrl={$calUrl}">
+ <xsl:value-of select="calendar/name"/>
+ </a>
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <!--==== LIST VIEW (for day, week, and month) ====-->
+ <xsl:template name="listView">
+ <table id="listTable" border="0" cellpadding="0" cellspacing="0">
+ <xsl:choose>
+ <xsl:when test="not(/bedework/eventscalendar/year/month/week/day/event)">
+ <tr>
+ <td class="noEventsCell">
+ No events to display.
+ </td>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:for-each select="/bedework/eventscalendar/year/month/week/day[event]">
+ <xsl:if test="/bedework/periodname='Week' or /bedework/periodname='Month' or /bedework/periodname=''">
+ <tr>
+ <td colspan="5" class="dateRow">
+ <xsl:variable name="date" select="date"/>
+ <a href="{$setViewPeriod}&viewType=dayView&date={$date}">
+ <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:for-each select="event">
+ <xsl:variable name="id" select="id"/>
+ <xsl:variable name="subscriptionId" select="subscription/id"/>
+ <xsl:variable name="calPath" select="calendar/encodedPath"/>
+ <xsl:variable name="guid" select="guid"/>
+ <xsl:variable name="recurrenceId" select="recurrenceId"/>
+ <tr>
+ <xsl:variable name="dateRangeStyle">
+ <xsl:choose>
+ <xsl:when test="start/shortdate = parent::day/shortdate">
+ <xsl:choose>
+ <xsl:when test="start/allday = 'true'">dateRangeCrossDay</xsl:when>
+ <xsl:when test="start/hour24 < 6">dateRangeEarlyMorning</xsl:when>
+ <xsl:when test="start/hour24 < 12">dateRangeMorning</xsl:when>
+ <xsl:when test="start/hour24 < 18">dateRangeAfternoon</xsl:when>
+ <xsl:otherwise>dateRangeEvening</xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>dateRangeCrossDay</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="start/allday = 'true' and
+ start/shortdate = end/shortdate">
+ <td class="{$dateRangeStyle} center" colspan="3">
+ all day
+ </td>
+ </xsl:when>
+ <xsl:when test="start/shortdate = end/shortdate and
+ start/time = end/time">
+ <td class="{$dateRangeStyle} center" colspan="3">
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
+ <xsl:value-of select="start/time"/>
+ </a>
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td class="{$dateRangeStyle} right">
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
+ <xsl:choose>
+ <xsl:when test="start/allday = 'true' and
+ parent::day/shortdate = start/shortdate">
+ today
+ </xsl:when>
+ <xsl:when test="parent::day/shortdate != start/shortdate">
+ <span class="littleArrow">«</span> 
+ <xsl:value-of select="start/month"/>/<xsl:value-of select="start/day"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="start/time"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </a>
+ </td>
+ <td class="{$dateRangeStyle} center">
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">-</a>
+ </td>
+ <td class="{$dateRangeStyle} left">
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
+ <xsl:choose>
+ <xsl:when test="end/allday = 'true' and
+ parent::day/shortdate = end/shortdate">
+ today
+ </xsl:when>
+ <xsl:when test="parent::day/shortdate != end/shortdate">
+ <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/>
+  <span class="littleArrow">»</span>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="end/time"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </a>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:variable name="descriptionClass">
+ <xsl:choose>
+ <xsl:when test="status='CANCELLED'">description bwStatusCancelled</xsl:when>
+ <xsl:when test="status='TENTATIVE'">description bwStatusTentative</xsl:when>
+ <xsl:otherwise>description</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <td class="{$descriptionClass}">
+ <xsl:if test="status='CANCELLED'"><strong>CANCELLED: </strong></xsl:if>
+ <xsl:choose>
+ <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
+ <strong>
+ <xsl:value-of select="summary"/>:
+ </strong>
+ <xsl:value-of select="description"/> 
+ <em>
+ <xsl:value-of select="location/address"/>
+ <xsl:if test="location/subaddress != ''">
+ , <xsl:value-of select="location/subaddress"/>
+ </xsl:if>. 
+ <xsl:if test="cost!=''">
+ <xsl:value-of select="cost"/>. 
+ </xsl:if>
+ <xsl:if test="sponsor/name!='none'">
+ Contact: <xsl:value-of select="sponsor/name"/>
+ </xsl:if>
+ </em>
+ </a>
+ <xsl:if test="link != ''">
+ <xsl:variable name="link" select="link"/>
+ <a href="{$link}" class="moreLink"><xsl:value-of select="link"/></a>
+ </xsl:if>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
+ <xsl:value-of select="summary"/>
+ <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td class="icons">
+ <variable name="confId" select="/bedework/confirmationid"/>
+ <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
+ <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/>
+ </a>
+ <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
+ <a href="{$export}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
+ <img src="{$resourcesRoot}/images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </xsl:for-each>
+ </xsl:otherwise>
+ </xsl:choose>
+ </table>
+ </xsl:template>
+
+ <!--==== WEEK CALENDAR VIEW ====-->
+ <xsl:template name="weekView">
+ <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <xsl:for-each select="/bedework/daynames/val">
+ <th class="dayHeading"><xsl:value-of select="."/></th>
+ </xsl:for-each>
+ </tr>
+ <tr>
+ <xsl:for-each select="/bedework/eventscalendar/year/month/week/day">
+ <xsl:variable name="dayPos" select="position()"/>
+ <xsl:if test="filler='false'">
+ <td>
+ <xsl:variable name="dayDate" select="date"/>
+ <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}" class="dayLink">
+ <xsl:value-of select="value"/>
+ </a>
+ <ul>
+ <xsl:apply-templates select="event" mode="calendarLayout">
+ <xsl:with-param name="dayPos" select="$dayPos"/>
+ </xsl:apply-templates>
+ </ul>
+ </td>
+ </xsl:if>
+ </xsl:for-each>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <!--==== MONTH CALENDAR VIEW ====-->
+ <xsl:template name="monthView">
+ <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <xsl:for-each select="/bedework/daynames/val">
+ <th class="dayHeading"><xsl:value-of select="."/></th>
+ </xsl:for-each>
+ </tr>
+ <xsl:for-each select="/bedework/eventscalendar/year/month/week">
+ <tr>
+ <xsl:for-each select="day">
+ <xsl:variable name="dayPos" select="position()"/>
+ <xsl:choose>
+ <xsl:when test="filler='true'">
+ <td class="filler"> </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td>
+ <xsl:variable name="dayDate" select="date"/>
+ <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}" class="dayLink">
+ <xsl:value-of select="value"/>
+ </a>
+ <ul>
+ <xsl:apply-templates select="event" mode="calendarLayout">
+ <xsl:with-param name="dayPos" select="$dayPos"/>
+ </xsl:apply-templates>
+ </ul>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </xsl:template>
+
+ <xsl:template match="event" mode="calendarLayout">
+ <xsl:param name="dayPos"/>
+ <xsl:variable name="subscriptionId" select="subscription/id"/>
+ <xsl:variable name="calPath" select="calendar/encodedPath"/>
+ <xsl:variable name="guid" select="guid"/>
+ <xsl:variable name="recurrenceId" select="recurrenceId"/>
+ <xsl:variable name="eventClass">
+ <xsl:choose>
+ <!-- Special styles for the month grid -->
+ <xsl:when test="status='CANCELLED'">eventCancelled</xsl:when>
+ <xsl:when test="status='TENTATIVE'">eventTentative</xsl:when>
+ <xsl:when test="calendar/name='Holidays'">holiday</xsl:when>
+ <!-- Alternating colors for all standard events -->
+ <xsl:when test="position() mod 2 = 1">eventLinkA</xsl:when>
+ <xsl:otherwise>eventLinkB</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <li>
+ <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" class="{$eventClass}">
+ <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
+ <xsl:value-of select="summary"/>
+ <xsl:variable name="eventTipClass">
+ <xsl:choose>
+ <xsl:when test="$dayPos > 5">eventTipReverse</xsl:when>
+ <xsl:otherwise>eventTip</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <span class="{$eventTipClass}">
+ <xsl:if test="status='CANCELLED'"><span class="eventTipStatusCancelled">CANCELLED</span></xsl:if>
+ <xsl:if test="status='TENTATIVE'"><span class="eventTipStatusTentative">TENTATIVE</span></xsl:if>
+ <strong><xsl:value-of select="summary"/></strong><br/>
+ Time:
+ <xsl:choose>
+ <xsl:when test="start/allday = 'false'">
+ <xsl:value-of select="start/time"/>
+ <xsl:if test="start/time != end/time">
+ - <xsl:value-of select="end/time"/>
+ </xsl:if>
+ </xsl:when>
+ <xsl:otherwise>
+ all day
+ </xsl:otherwise>
+ </xsl:choose><br/>
+ <xsl:if test="location/address">
+ Location: <xsl:value-of select="location/address"/><br/>
+ </xsl:if>
+ Calendar: <xsl:value-of select="calendar/name"/>
+ </span>
+ </a>
+ </li>
+ </xsl:template>
+
+ <!--==== YEAR VIEW ====-->
+ <xsl:template name="yearView">
+ <table id="yearCalendarTable" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() <= 3]"/>
+ </tr>
+ <tr>
+ <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 3) and (position() <= 6)]"/>
+ </tr>
+ <tr>
+ <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 6) and (position() <= 9)]"/>
+ </tr>
+ <tr>
+ <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() > 9]"/>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <!-- year view month tables -->
+ <xsl:template match="month">
+ <td>
+ <table class="yearViewMonthTable" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td colspan="8" class="monthName">
+ <xsl:variable name="firstDayOfMonth" select="week/day/date"/>
+ <a href="{$setViewPeriod}&viewType=monthView&date={$firstDayOfMonth}">
+ <xsl:value-of select="longname"/>
+ </a>
+ </td>
+ </tr>
+ <tr>
+ <th> </th>
+ <xsl:for-each select="/bedework/shortdaynames/val">
+ <th><xsl:value-of select="."/></th>
+ </xsl:for-each>
+ </tr>
+ <xsl:for-each select="week">
+ <tr>
+ <td class="weekCell">
+ <xsl:variable name="firstDayOfWeek" select="day/date"/>
+ <a href="{$setViewPeriod}&viewType=weekView&date={$firstDayOfWeek}">
+ <xsl:value-of select="value"/>
+ </a>
+ </td>
+ <xsl:for-each select="day">
+ <xsl:choose>
+ <xsl:when test="filler='true'">
+ <td class="filler"> </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td>
+ <xsl:variable name="dayDate" select="date"/>
+ <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}">
+ <xsl:value-of select="value"/>
+ </a>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </td>
+ </xsl:template>
+
+ <!--==== CALENDARS PAGE ====-->
+ <xsl:template match="calendars">
+ <xsl:variable name="topLevelCalCount" select="count(calendar/calendar)"/>
+ <table id="calPageTable" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <th colspan="2">
+ All Calendars
+ </th>
+ </tr>
+ <tr>
+ <td colspan="2" class="infoCell">
+ Select a calendar from the list below to see only that calendar's events.
+ </td>
+ </tr>
+ <tr>
+ <td class="leftCell">
+ <ul class="calendarTree">
+ <xsl:apply-templates select="calendar/calendar[position() <= ceiling($topLevelCalCount div 2)]" mode="calTree"/>
+ </ul>
+ </td>
+ <td>
+ <ul class="calendarTree">
+ <xsl:apply-templates select="calendar/calendar[position() > ceiling($topLevelCalCount div 2)]" mode="calTree"/>
+ </ul>
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <xsl:template match="calendar" mode="calTree">
+ <xsl:variable name="itemClass">
+ <xsl:choose>
+ <xsl:when test="calendarCollection='false'">folder</xsl:when>
+ <xsl:otherwise>calendar</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="url" select="path"/>
+ <li class="{$itemClass}">
+ <a href="{$setSelection}&calUrl={$url}"><xsl:value-of select="name"/></a>
+ <xsl:if test="calendar">
+ <ul>
+ <xsl:apply-templates select="calendar" mode="calTree"/>
+ </ul>
+ </xsl:if>
+ </li>
+ </xsl:template>
+
+ <!--+++++++++++++++ System Stats ++++++++++++++++++++-->
+ <xsl:template name="stats">
+ <div id="stats">
+ <h2>System Statistics</h2>
+
+ <p>
+ Stats collection:
+ </p>
+ <ul>
+ <li>
+ <a href="{$stats}&enable=yes">enable</a> |
+ <a href="{$stats}&disable=yes">disable</a>
+ </li>
+ <li><a href="{$stats}&fetch=yes">fetch statistics</a></li>
+ <li><a href="{$stats}&dump=yes">dump stats to log</a></li>
+ </ul>
+ <table id="statsTable" cellpadding="0">
+ <xsl:for-each select="/bedework/sysStats/*">
+ <xsl:choose>
+ <xsl:when test="name(.) = 'header'">
+ <tr>
+ <th colspan="2">
+ <xsl:value-of select="."/>
+ </th>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr>
+ <td class="label">
+ <xsl:value-of select="label"/>
+ </td>
+ <td class="value">
+ <xsl:value-of select="value"/>
+ </td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </table>
+ </div>
+ </xsl:template>
+
+ <!--==== UTILITY TEMPLATES ====-->
+
+ <!-- search and replace template taken from
+ http://www.biglist.com/lists/xsl-list/archives/200211/msg00337.html -->
+ <xsl:template name="replace">
+ <xsl:param name="string" select="''"/>
+ <xsl:param name="pattern" select="''"/>
+ <xsl:param name="replacement" select="''"/>
+ <xsl:choose>
+ <xsl:when test="$pattern != '' and $string != '' and contains($string, $pattern)">
+ <xsl:value-of select="substring-before($string, $pattern)"/>
+ <xsl:copy-of select="$replacement"/>
+ <xsl:call-template name="replace">
+ <xsl:with-param name="string" select="substring-after($string, $pattern)"/>
+ <xsl:with-param name="pattern" select="$pattern"/>
+ <xsl:with-param name="replacement" select="$replacement"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$string"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!--==== FOOTER ====-->
+
+ <xsl:template name="footer">
+ <div id="footer">
+ Demonstration calendar; place footer information here.
+ </div>
+ <div id="subFoot">
+ Based on the <a href="http://www.bedework.org/">Bedework Calendar</a> |
+ <a href="?noxslt=yes">show XML</a> |
+ <a href="?refreshXslt=yes">refresh XSLT</a>
+ </div>
+ </xsl:template>
+</xsl:stylesheet>
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/green.css
===================================================================
--- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/green.css 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/green.css 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,845 +0,0 @@
-body {
- font-family : Arial, Helvetica, sans-serif;
- font-size: 100%; /* needed for IE */
- background-color : white;
- color : black;
- padding: 0.75em 1em 0em 1em;
- min-width: 700px;
-}
-/* Generic selector (overides to common.css) */
-h2 {
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-/* end generic selectors */
-#logoTable {
- padding: 0em;
- margin: 0em;
-}
-#logoTable img {
- display: inline;
- padding: 0 0 1px 5px;
-}
-#logoTable #logoCell {
- white-space: nowrap;
- font-weight: bold;
- font-size: 2em;
-}
-#logoTable #schoolLinksCell {
- vertical-align: bottom;
- text-align: right;
- font-size: 0.8em;
- white-space : nowrap;
- padding: 0 2px 2px 0;
-}
-#logoTable #schoolLinksCell h2 {
- margin: 0 0 2px 0;
- padding: 0;
- font-size: 2em;
- color: #444;
- background-color: transparent;
- border: none;
-}
-#logoTable #schoolLinksCell a:link,
-#logoTable #schoolLinksCell a:visited,
-#logoTable #schoolLinksCell a:active {
- background-color: transparent;
- color: #999;
- text-decoration: none;
-}
-#logoTable #schoolLinksCell a:hover {
- background-color: #eee;
- color: #333;
- text-decoration: none;
-}
-#titleBar {
- display: none;
-}
-#curDateRangeTable {
- width: 100%;
- height: 26px;
- background: #2c5f89 url(../../images/curDateRangeGreen.gif) repeat-x bottom;
- color : #eee;
- margin: 0em;
- font-weight : bold;
- text-align : center;
- vertical-align: middle;
- white-space: nowrap;
-}
-#curDateRangeTable td {
- padding-top: 5px;
- padding-bottom: 1px;
- padding-left: 0.5em;
- padding-right: 0.5em;
-}
-#curDateRangeTable td.sideBarOpenCloseIcon {
- background: url(../../images/curDateRangeGreen-left.gif) no-repeat top left;
- color: inherit;
- width: 200px;
-}
-#curDateRangeTable td.date {
- font-weight : bold;
- text-align : center;
- white-space: nowrap;
-}
-#curDateRangeTable td.rssPrint {
- background: url(../../images/curDateRangeGreen-right.gif) no-repeat top right;
- color: inherit;
- width: 200px;
- font-weight : bold;
- text-align : right;
- white-space: nowrap;
-}
-#curDateRangeTable td.rssPrint img {
- position: relative;
- top: 3px;
-}
-#curDateRangeTable td.rssPrint a:link,
-#curDateRangeTable td.rssPrint a:active,
-#curDateRangeTable td.rssPrint a:visited {
- font-size: 10px;
- color: #eee;
- background-color: transparent;
- font-family: Arial, Helvetica, sans-serif;
- padding: 0;
- text-decoration: none;
- margin-right: 0.5em;
- position: relative;
- top: -3px;
-}
-#curDateRangeTable td.rssPrint a:hover {
- color: #663;
- background-color: #fff;
-}
-#curDateRangeTable td.rssPrint a.rss:link,
-#curDateRangeTable td.rssPrint a.rss:active,
-#curDateRangeTable td.rssPrint a.rss:visited {
- font-size: 10px;
- font-weight: bold;
- color: #444;
- background-color: #ddd;
- font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
- padding: 0px 1px 0px 1px;
- text-decoration: none;
- margin-right: 0.5em;
- margin-left: 2px;
- position: relative;
- top: -3px;
- border: solid 1px #666;
-}
-#curDateRangeTable td.rssPrint a.rss:hover {
- color: #900;
- background-color: #fff;
-}
-#searchBarTable {
- margin: 0px;
- padding: 0em;
- background-color : #eee;
- color: black;
- font-size: 0.9em;
-}
-#searchBarTable .leftCell {
- margin: 0px;
- padding: 0em;
- border-left: 3px solid #333;
- padding: 0.1em 0 0 0.5em;
- white-space: nowrap;
-}
-#searchBarTable .leftCell .link {
- font-size: 0.8em;
- padding-left: 1em;
- color: #999;
- background-color: transparent;
-}
-#searchBarTable .leftCell a {
- color: #888;
- background-color: transparent;
-}
-#searchBarTable .leftCell a:hover {
- color: #b00;
- background-color: transparent;
-}
-#searchBarTable .rightCell {
- margin: 0px;
- padding: 0em;
- text-align: right;
- border-right: 3px solid #333;
- padding: 0.1em 0.1em 0em 0em;
- white-space: nowrap;
-}
-#searchBarTable form {
- display: inline;
- margin: 0px 0px 1px 0px;
- padding: 0em;
-}
-#tabsTable {
- margin: 0em;
- padding: 4px 0px 0px 0px;
- text-align: center;
- background-color: #333;
- color: #eee;
-}
-#tabsTable .centerCell a {
- text-decoration: none;
- color: #eee;
-}
-#tabsTable .centerCell img {
- margin-right: 1px;
-}
-#tabsTable .rightCell {
- background : url(../../images/demo/std-tab-space.gif);
- padding-right: 0.5em;
-}
-#navigationBarTable {
- font-size: 0.8em;
- margin: 0em;
- padding: 0em;
- vertical-align: top;
- border-left : 2px solid #333;
- border-right : 2px solid #333;
- border-bottom: 1px solid Gray;
-}
-#navigationBarTable a {
- text-decoration: none;
- white-space: nowrap;
-}
-#navigationBarTable td {
- vertical-align: top;
-}
-#navigationBarTable form {
- display: inline;
- margin-bottom: 0em;
-}
-#navigationBarTable table {
- display: inline;
- margin-bottom: 0em;
-}
-#navigationBarTable td.todayButton {
- padding: 1em 1em 0 1em;
-}
-#navigationBarTable td.gotoForm {
- padding: 1em 0.5em 0 0;
-}
-#navigationBarTable td.leftCell {
- text-align: left;
- white-space: nowrap;
- padding-left: 0.5em;
- font-size: 1.3em;
- font-weight: bold;
- padding: 0.75em 0em 0.75em 1em;
- width: 100%;
- vertical-align: middle;
-}
-#navigationBarTable td.leftCell .prevImg {
- margin: 0 0.2em 0 0;
- vertical-align: top;
-}
-#navigationBarTable td.leftCell .nextImg {
- margin: 0 0.75em 0 0;
- vertical-align: top;
-}
-#navigationBarTable td.rightCell {
- text-align: right;
- padding: 1em 0.5em 0em 0em;
-}
-#navigationBarTable td.rightCell select {
- padding-right: 0em;
- margin: 0em;
- width: 10em;
-}
-#searchBarTable .calLinks {
- white-space: nowrap;
-}
-#eventTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#eventTable td.fieldval {
- margin: 0em;
- vertical-align: top;
- padding: 0.5em 0.5em 0.2em 1em;
-}
-#eventTable td.fieldname {
- margin: 0em;
- vertical-align: top;
- padding: 0.5em 0.5em 0.2em 0.5em;
- color: black;
- background-color: #eee;
-}
-#eventTable th.fieldval {
- text-align: left;
- padding: 1em 0.5em 0.5em 1em;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#eventTable th.fieldname {
- text-align: left;
- padding: 1em 0.5em 0.5em 0.5em;
- background-color: #eee;
- color: black;
-}
-#eventTable th.icalIcon {
- margin: 0em;
- vertical-align: middle;
- text-align: right;
- padding: 0.5em 1em 0.2em 0.5em;
- white-space: nowrap;
- font-size: 0.9em;
- font-weight: normal;
-}
-#eventTable th.icalIcon a {
- text-decoration: none;
-}
-#eventTable th.icalIcon img {
- vertical-align: middle;
- padding-left: 1em;
-}
-#calPageTable {
- width: 100%;
- font-size: 100%;
- margin: 0px;
- padding: 0px;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#calPageTable td {
- width: 50%;
- vertical-align: top;
- padding: 0.5em 2em 1em 3em;
-}
-#calPageTable th {
- font-size: 1.2em;
- background-color: #ccc;
- color: black;
- font-weight: bold;
-}
-#calPageTable td.leftCell {
- border-right : thin dashed #999;
-}
-#calPageTable h2 {
- font-size: 1.2em;
-}
-#calPageTable td.infoCell {
- background-color: #eee;
- color: black;
- text-align: center;
-}
-#dayCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#dayCalendarTable td {
- padding: 0.4em;
- margin: 0em;
-}
-#dayCalendarTable .dateRange {
- text-align: left;
- background-color: #dadfaf;
- color: black;
- white-space: nowrap;
-}
-#dayCalendarTable .description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#dayCalendarTable .more {
- text-align: center;
- background-color: #eee;
- color: black;
- font-size: 0.8em;
-}
-#weekCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#weekCalendarTable td {
- padding: 0.4em;
- margin: 0em;
-}
-#weekCalendarTable .dateRange {
- text-align: left;
- background-color: #dfd;
- color: black;
- white-space: nowrap;
-}
-#weekCalendarTable .description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#weekCalendarTable .more {
- text-align: center;
- background-color: #eee;
- color: black;
- font-size: 0.8em;
-}
-#monthCalendarTable {
- width: 100%;
- font-size: 0.8em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#monthCalendarTable th.dayHeading {
- width: 14%;
- text-align: center;
- vertical-align: middle;
- background-color: #363;
- color: #eee;
- border: 1px solid black;
-}
-#monthCalendarTable td {
- width: 14%;
- height: 60px;
- vertical-align: top;
- text-align: left;
- padding: 0em;
- border: 1px solid #aaa;
- background-color: white;
- color: black;
-}
-#monthCalendarTable td.filler {
- border: none;
- background-color: #eee;
- color: black;
-}
-#monthCalendarTable ul {
- font-size: 0.8em;
- list-style : none;
- margin: 0em;
- padding: 0.3em 0em 0em 0em;
-}
-#monthCalendarTable ul li {
- margin: 0em;
- padding: 0em;
- display: inline;
-}
-#monthCalendarTable a.eventLinkA:link,
-#monthCalendarTable a.eventLinkA:visited,
-#monthCalendarTable a.eventLinkA:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #dadfaf;
- color: black;
-}
-#monthCalendarTable a.eventLinkB:link,
-#monthCalendarTable a.eventLinkB:visited,
-#monthCalendarTable a.eventLinkB:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #edf2bd;
- color: black;
-}
-#monthCalendarTable a.eventCancelled:link,
-#monthCalendarTable a.eventCancelled:visited,
-#monthCalendarTable a.eventCancelled:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #ccc;
- color: black;
-}
-#monthCalendarTable a.eventTentative:link,
-#monthCalendarTable a.eventTentative:visited,
-#monthCalendarTable a.eventTentative:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- border-bottom: 1px solid #ccc;
- border-top: 1px solid #ccc;
- background: #eee url('../../images/tentativeLines.gif') top;
- color: black;
-}
-#monthCalendarTable a.holiday:link,
-#monthCalendarTable a.holiday:visited,
-#monthCalendarTable a.holiday:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #fff;
- color: black;
- /*border-top: 1px solid black;
- border-bottom: 1px solid black;*/
-}
-#monthCalendarTable a.eventLinkA:hover,
-#monthCalendarTable a.eventLinkB:hover,
-#monthCalendarTable a.eventCancelled:hover,
-#monthCalendarTable a.eventTentative:hover,
-#monthCalendarTable a.holiday:hover {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- color: black;
- background-color: #ffc;
-}
-#monthCalendarTable a.dayLink {
- text-decoration: none;
- color: black;
- background-color: transparent;
-}
-#monthCalendarTable a:hover.dayLink {
- text-decoration: none;
- color: #eee;
- background-color: black;
-}
-#monthCalendarTable a:hover {
- /* required for eventTip to hover correctly;
- apply only to the hover pseudo class, or
- the other anchors nearby will cover the eventTip in IE */
- position: relative;
-}
-#monthCalendarTable a span.eventTip,
-#monthCalendarTable a span.eventTipReverse {
- display: none;
-}
-#monthCalendarTable a:hover span.eventTip {
- display: block;
- position: absolute;
- width: 20em;
- top: 1em;
- left: 12em;
- background-color: #ffe;
- color: black;
- padding: 4px;
- border: 1px solid #333;
- /*opacity: .80;
- filter: alpha(opacity=80);*/
-}
-#monthCalendarTable a:hover span.eventTipReverse {
- display: block;
- position: absolute;
- width: 20em;
- top: 1em;
- left: -21em;
- background-color: #ffe;
- color: black;
- padding: 4px;
- border: 1px solid #333;
- /*opacity: .80;
- filter: alpha(opacity=80);*/
-}
-#monthCalendarTable a:hover span.eventTipStatusCancelled {
- display: block;
- color: white;
- background-color: #333;
- padding: 2px;
- margin-bottom: 6px;
- text-align: center;
-}
-#monthCalendarTable a:hover span.eventTipStatusTentative {
- display: block;
- color: black;
- background: #eee url('../../images/tentativeLines.gif') top;
- padding: 2px;
- margin-bottom: 6px;
- border: 1px solid #ccc;
- text-align: center;
-}
-a.gridAdd {
- display: block;
- float: right;
- font-size: 0.8em;
- text-decoration: none;
- margin-right: 2px;
-}
-#yearCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0em;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#yearCalendarTable td {
- padding: 1em 0em 0em 0em;
- margin: 0em;
- vertical-align: top;
- text-align: center;
- width: 33%;
-}
-#yearCalendarTable table.yearViewMonthTable {
- margin: 0em 1em 0.5em 1em;
- border: 1px solid #666;
-}
-#yearCalendarTable table.yearViewMonthTable td {
- text-align: center;
- padding: 0.2em;
- width: 12.5%;
-}
-#yearCalendarTable table.yearViewMonthTable th {
- font-weight: bold;
- background-color: #f5f5f5;
- color: black;
- padding: 0.2em;
-}
-#yearCalendarTable table.yearViewMonthTable td.monthName {
- font-weight: bold;
- text-align: center;
- background-color: #666;
- color: #eee;
- white-space: nowrap;
- border-bottom: 1px solid #999;
-}
-#yearCalendarTable table.yearViewMonthTable td.weekCell {
- font-weight: bold;
- font-size: 0.8em;
- background-color: #f5f5f5;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td.weekCell a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td.monthName a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: #eee;
-}
-#yearCalendarTable table.yearViewMonthTable td a:hover {
- text-decoration: none;
- background-color: #ffc;
- color: black;
- border: 1px solid black;
- padding: 0;
-}
-#listTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#listTable td {
- padding: 0.5em;
- margin: 0em;
- border-bottom: 1px solid #bbb;
-}
-#listTable td a {
- background-color: transparent;
- color: black;
- text-decoration: none;
-}
-#listTable td.dateRangeCrossDay {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #ddd;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeEarlyMorning {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #d4d5c9;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeMorning {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #edf2bd;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeAfternoon {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #dadfaf;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeEvening {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #cacf9f;
- color: black;
- white-space: nowrap;
-}
-#listTable span.littleArrow {
- font-size: 1.4em;
-}
-#listTable td.description {
- text-align: left;
- background-color: white;
- color: black;
- width: 100%;
-}
-#listTable td.bwStatusCancelled {
- background-color: #ddd;
- color: black;
-}
-#listTable td.bwStatusTentative {
- background: white url('../../images/tentativeLines.gif') top;
- color: black;
-}
-#listTable td.description a {
- display: block;
- background-color: transparent;
- color: black;
- text-decoration: none;
-}
-#listTable td.description a.moreLink {
- display: inline;
- background-color: transparent;
- color: #900;
- text-decoration: underline;
-}
-#listTable td.description:hover {
- background-color: #eee;
- color: black;
- text-decoration: none;
-}
-#listTable td.dateRow {
- text-align: left;
- background-color: #888;
- color: #eee;
- font-size: 0.8em;
- padding: 0.2em 0.5em 0.2em 0.5em;
- margin: 0em;
-}
-#listTable td.dateRow a {
- display: block;
- color: #fff;
- background-color: transparent;
- font-weight: bold;
- text-decoration : none;
-}
-#listTable td.icons {
- color: black;
- background-color: #ddd;
- white-space: nowrap;
-}
-#listTable td.icons img.addref {
- margin-right: 0.5em;
-}
-#calPageTable ul.calendarTree li {
- font-weight: bold;
-}
-#calPageTable ul.calendarTree li ul li {
- font-weight: normal;
-}
-#calPageTable ul.calendarTree li.folder {
- list-style-image: url(../../images/demo/catIcon.gif);
- padding-top: 0.25em;
- padding-bottom: 0.25em;
-}
-#calPageTable ul.calendarTree li.calendar {
- list-style-image: url(../../images/demo/calIcon-sm.gif);
-}
-.noEventsCell {
- padding: 1em;
-}
-#footer {
- font-size: 0.75em;
- text-align : center;
- margin-top: 0em;
- padding: 1em;
- color: #333;
- background-color: #eee;
- border-bottom: 2px solid #333;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
- white-space: nowrap;
-}
-#footer a {
- color: #333;
- background-color: transparent;
- text-decoration: underline;
-}
-#skinSelectorTable {
- width: 100%;
- padding-top: 0.5em;
- font-size: 0.7em;
- color: #333;
- background-color: inherit;
-}
-#skinSelectorTable td {
- vertical-align: top;
-}
-#skinSelectorTable td.rightCell {
- text-align: right;
-}
-#skinSelectorTable td.leftCell {
- text-align: left;
- color: #999;
- background-color: inherit;
-}
-#skinSelectorTable td.leftCell a {
- color: #999;
- background-color: inherit;
-}
-#skinSelectorTable td.rightCell form {
- display: inline;
- margin: 0em;
- padding: 0em;
-}
-#skinSelectorTable td.rightCell select {
- font-size: 0.9em;
- color: #333;
- background-color: #eee;
-}
-/* LINKS */
-a:link, a:active, a:visited {
- color: #060;
- background-color: transparent;
-}
-a:hover {
- color: #b00;
- background-color: transparent;
-}
-span.time {
- text-transform : lowercase;
-}
-#featureHighlight {
- color: #dd0;
- font-style: italic;
-}
-.center {
- text-align: center;
-}
-.left {
- text-align: left;
-}
-.right {
- text-align: right;
-}
\ No newline at end of file
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/jsToday.xsl
===================================================================
--- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/jsToday.xsl 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/jsToday.xsl 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="html" omit-xml-declaration="yes" indent="no" media-type="text/javascript" standalone="yes"/>
-
- <!-- usage: call the javascript feed from an html file by embedding the
- following script tag:
- <script src="http://yourservername/cal/setViewPeriod.do?viewType=todayView&skinName=jsToday&contentType=text/javascript&contentName=bedework.js" type="text/javascript"></script>
-
- e.g.
- <script src="http://localhost:8080/cal/setViewPeriod.do?viewType=todayView&skinName=jsToday&contentType=text/javascript&contentName=bedework.js" type="text/javascript"></script>
-
- You should uncomment the code below that reads "Today's Events" and throw
- away the following line. You should modify this stylesheet if you intend
- to display more than a single day's events.
- -->
-
- <!-- **********************************************************************
- Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved.
-
- Redistribution and use of this distribution in source and binary forms,
- with or without modification, are permitted provided that:
- The above copyright notice and this permission notice appear in all
- copies and supporting documentation;
-
- The name, identifiers, and trademarks of Rensselaer Polytechnic
- Institute are not used in advertising or publicity without the
- express prior written permission of Rensselaer Polytechnic Institute;
-
- DISCLAIMER: The software is distributed" AS IS" without any express or
- implied warranty, including but not limited to, any implied warranties
- of merchantability or fitness for a particular purpose or any warrant)'
- of non-infringement of any current or pending patent rights. The authors
- of the software make no representations about the suitability of this
- software for any particular purpose. The entire risk as to the quality
- and performance of the software is with the user. Should the software
- prove defective, the user assumes the cost of all necessary servicing,
- repair or correction. In particular, neither Rensselaer Polytechnic
- Institute, nor the authors of the software are liable for any indirect,
- special, consequential, or incidental damages related to the software,
- to the maximum extent the law permits. -->
-
- <xsl:variable name="urlprefix" select="/bedework/urlprefix"/>
- <xsl:template match="/">
- <xsl:text disable-output-escaping="yes">document.writeln('<h3>');</xsl:text>
- <!--<xsl:text disable-output-escaping="yes">document.writeln("Today's Events");</xsl:text>-->
- <xsl:text disable-output-escaping="yes">document.writeln("This Period's Events");</xsl:text>
- <xsl:text disable-output-escaping="yes">document.writeln('</h3>');</xsl:text>
- <xsl:text disable-output-escaping="yes">document.writeln('<ul class="eventFeed">');</xsl:text>
- <xsl:choose>
- <xsl:when test="/bedework/eventscalendar/year/month/week/day/event">
- <xsl:apply-templates select="/bedework/eventscalendar/year/month/week/day/event"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text disable-output-escaping="yes">document.writeln('<li>');</xsl:text>
- <xsl:text disable-output-escaping="yes">document.writeln('There are no events posted today');</xsl:text>
- <xsl:text disable-output-escaping="yes">document.writeln('</li>');</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text disable-output-escaping="yes">document.writeln('</ul>');</xsl:text>
- </xsl:template>
- <xsl:template match="event">
- <xsl:variable name="aposStrippedSummary">
- <xsl:call-template name="replace">
- <xsl:with-param name="string" select="summary"/>
- <xsl:with-param name="pattern" select='"'"'/>
- <xsl:with-param name="replacement" select='"\'"'/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="strippedSummary" select='translate($aposStrippedSummary,"
"," ")'/>
- <xsl:text disable-output-escaping="yes">document.writeln('<li>');</xsl:text>
- <xsl:text disable-output-escaping="yes">document.writeln(' <a href="</xsl:text><xsl:value-of select="$urlprefix"/><xsl:text disable-output-escaping="yes">/eventView.do?subid=</xsl:text><xsl:value-of select="subscription/id"/><xsl:text disable-output-escaping="yes">&guid=</xsl:text><xsl:value-of select="guid"/><xsl:text disable-output-escaping="yes">&recurrenceId=</xsl:text><xsl:value-of select="recurrenceId"/><xsl:text disable-output-escaping="yes">&calPath=</xsl:text><xsl:value-of select="calendar/encodedPath"/><xsl:text disable-output-escaping="yes">&skinName=default" target="_top"></xsl:text><xsl:value-of select="$strippedSummary" disable-output-escaping="yes"/><xsl:text disable-output-escaping="yes"></a>');</xsl:text>
- <xsl:text disable-output-escaping="yes">document.writeln('</li>');</xsl:text>
- </xsl:template>
- <xsl:template name="replace">
- <xsl:param name="string" select="''"/>
- <xsl:param name="pattern" select="''"/>
- <xsl:param name="replacement" select="''"/>
- <xsl:choose>
- <xsl:when test="$pattern != '' and $string != '' and contains($string, $pattern)">
- <xsl:value-of select="substring-before($string, $pattern)"/>
- <xsl:copy-of select="$replacement"/>
- <xsl:call-template name="replace">
- <xsl:with-param name="string" select="substring-after($string, $pattern)"/>
- <xsl:with-param name="pattern" select="$pattern"/>
- <xsl:with-param name="replacement" select="$replacement"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$string"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-</xsl:stylesheet>
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/print.css
===================================================================
--- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/print.css 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/print.css 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,401 +0,0 @@
-body {
- font-family : Arial, Helvetica, sans-serif;
- background-color : white;
- color : black;
- padding: 0.75em 1em 0em 1em;
- margin: 0in;
- font-size: 10pt;
-}
-tr {
- page-break-inside: avoid;
-}
-td {
- page-break-inside: avoid;
-}
-#logoTable {
- display: none;
-}
-#titleBar {
- background-color: #eee;
- color: black;
- display: block;
- text-align: center;
- font-size: 0.7em;
- margin: 0em;
- padding: 0em;
- letter-spacing : 0.1em;
-}
-#dateBarTable td {
- background-color: #eee;
- color : black;
- padding-top: 2px;
- padding-bottom: 1em;
- padding-left: 0.5em;
- padding-right: 0.5em;
- border-bottom: 1px solid #333;
- margin: 0em;
- font-weight : bold;
- text-align : center;
- white-space: nowrap;
-}
-#dateBarTable td.imgCell {
- display: none;
-}
-#searchBarTable {
- display: none;
-}
-#tabsTable {
- display: none;
-}
-#navigationBarTable {
- display: none;
-}
-#eventTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #333;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#eventTable td {
- margin: 0em;
- vertical-align: top;
- padding: 0.5em 0.5em 0.2em 0.5em;
-}
-#eventTable td.icalIcon {
- display: none;
-}
-#eventTable th {
- text-align: left;
- padding: 1em 0.5em 1em 0.5em;
- background-color: #666;
- color: #eee;
-}
-#eventTable th.fieldval {
- width: 100%;
-}
-#calPageTable {
- width: 100%;
- font-size: 100%;
- margin: 0px;
- padding: 0px;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#calPageTable td {
- width: 50%;
- vertical-align: top;
- padding: 0.5em 2em 1em 3em;
-}
-#calPageTable th {
- font-size: 1.2em;
- background-color: #ccc;
- color: black;
- font-weight: bold;
-}
-#calPageTable td.leftCell {
- border-right : thin dashed #999;
-}
-#calPageTable h2 {
- font-size: 1.2em;
-}
-#calPageTable td.infoCell {
- background-color: #eee;
- color: black;
- text-align: center;
-}
-#dayCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#dayCalendarTable td {
- padding: 0.4em;
- margin: 0em;
-}
-#dayCalendarTable .dateRange {
- text-align: left;
- background-color: #fee;
- color: black;
- white-space: nowrap;
-}
-#dayCalendarTable .description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#dayCalendarTable .more {
- text-align: center;
- background-color: #eee;
- color: black;
- font-size: 0.8em;
-}
-#weekCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#weekCalendarTable td {
- padding: 0.4em;
- margin: 0em;
-}
-#weekCalendarTable .dateRange {
- text-align: left;
- background-color: #fdd;
- color: black;
- white-space: nowrap;
-}
-#weekCalendarTable .description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#weekCalendarTable .more {
- text-align: center;
- background-color: #eee;
- color: black;
- font-size: 0.8em;
-}
-#monthCalendarTable {
- width: 100%;
- font-size: 0.8em;
- margin: 0px;
- padding: 0px;
- /*border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;*/
-}
-#monthCalendarTable th.dayHeading {
- width: 14%;
- text-align: center;
- vertical-align: middle;
- background-color: #666;
- color: #eee;
- border: 1px solid black;
-}
-#monthCalendarTable td {
- width: 14%;
- height: 60px;
- vertical-align: top;
- text-align: left;
- padding: 0em;
- border: 1px solid #333;
- background-color: white;
- color: black;
-}
-#monthCalendarTable td.filler {
- border: none;
- background-color: #eee;
- color: black;
- /*border: 1px solid #aaa;*/
-}
-#monthCalendarTable ul {
- font-size: 0.8em;
- list-style : none;
- margin: 0em;
- padding: 0.3em 0em 0em 0em;
-}
-#monthCalendarTable ul li {
- margin: 0em;
- padding: 0em;
- display: block;
- border-top: 1px solid #666;
-}
-#monthCalendarTable ul li:first-child {
- border-top: none;
-}
-
-#monthCalendarTable span.eventLinkA {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #fcc;
- color: black;
- border-bottom: 1px solid #666;
-}
-#monthCalendarTable span.eventLinkB {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #fee;
- color: black;
-}
-#yearCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0em;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#yearCalendarTable td {
- padding: 1em 0em 0em 0em;
- margin: 0em;
- vertical-align: top;
- text-align: center;
- width: 33%;
-}
-#yearCalendarTable table.yearViewMonthTable {
- margin: 0em 1em 0.5em 1em;
- border: 1px solid #666;
-}
-#yearCalendarTable table.yearViewMonthTable td {
- text-align: center;
- padding: 0.2em;
- width: 12.5%;
-}
-#yearCalendarTable table.yearViewMonthTable th {
- font-weight: bold;
- background-color: #f5f5f5;
- color: black;
- padding: 0.2em;
-}
-#yearCalendarTable table.yearViewMonthTable td.monthName {
- font-weight: bold;
- text-align: center;
- background-color: #666;
- color: #eee;
- white-space: nowrap;
- border-bottom: 1px solid #999;
-}
-#yearCalendarTable table.yearViewMonthTable td.weekCell {
- font-weight: bold;
- font-size: 0.8em;
- background-color: #f5f5f5;
- color: black;
-}
-#listTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#listTable td {
- padding: 0.5em;
- margin: 0em;
- border-bottom: 1px solid #bbb;
-}
-#listTable td.dateRangeCrossDay {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #ddd;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeEarlyMorning {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #dcc3c3;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeMorning {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #fee;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeAfternoon {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #fdd;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeEvening {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #fcc;
- color: black;
- white-space: nowrap;
-}
-#listTable span.littleArrow {
- font-size: 1.4em;
-}
-#listTable td.description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#listTable td.dateRow {
- text-align: left;
- background-color: #888;
- color: #eee;
- font-size: 0.8em;
- padding: 0.2em 0.5em 0.2em 0.5em;
- margin: 0em;
-}
-#listTable td.icons {
- display: none;
-}
-.noEventsCell {
- padding: 1em;
-}
-#footer {
- font-size: 0.8em;
- text-align : center;
- margin-top: 0em;
- padding: 1em;
- color: #333;
- background-color: #eee;
- border-bottom: 2px solid #333;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#skinSelectorTable {
- display: none;
- width: 100%;
- padding-top: 0.5em;
- font-size: 0.7em;
- color: #333;
- background-color: inherit;
-}
-#skinSelectorTable td {
- vertical-align: top;
-}
-#skinSelectorTable td.rightCell {
- text-align: right;
-}
-#skinSelectorTable td.leftCell {
- text-align: left;
- color: #999;
- background-color: inherit;
-}
-#skinSelectorTable td.rightCell form {
- display: inline;
- margin: 0em;
- padding: 0em;
-}
-#skinSelectorTable td.rightCell select {
- font-size: 0.9em;
- color: #333;
- background-color: #eee;
-}
-a.submitPublicEvent {
- display: none;
-}
\ No newline at end of file
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/red.css
===================================================================
--- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/red.css 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/red.css 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,850 +0,0 @@
-body {
- font-family : Arial, Helvetica, sans-serif;
- font-size: 100%; /* needed for IE */
- background-color : white;
- color : black;
- padding: 0.75em 1em 0em 1em;
- min-width: 700px;
-}
-/* Generic selector (overides to common.css) */
-h2 {
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-/* end generic selectors */
-#logoTable {
- padding: 0em;
- margin: 0em;
-}
-#logoTable img {
- display: inline;
- padding: 0 0 1px 5px;
-}
-#logoTable #logoCell {
- white-space: nowrap;
- font-weight: bold;
- font-size: 2em;
-}
-#logoTable #schoolLinksCell {
- vertical-align: bottom;
- text-align: right;
- font-size: 0.8em;
- white-space : nowrap;
- padding: 0 2px 2px 0;
-}
-#logoTable #schoolLinksCell h2 {
- margin: 0 0 2px 0;
- padding: 0;
- font-size: 2em;
- color: #444;
- background-color: transparent;
- border: none;
-}
-#logoTable #schoolLinksCell a:link,
-#logoTable #schoolLinksCell a:visited,
-#logoTable #schoolLinksCell a:active {
- background-color: transparent;
- color: #999;
- text-decoration: none;
-}
-#logoTable #schoolLinksCell a:hover {
- background-color: #eee;
- color: #333;
- text-decoration: none;
-}
-#titleBar {
- display: none;
-}
-#curDateRangeTable {
- width: 100%;
- height: 26px;
- background: #2c5f89 url(../../images/curDateRangeRed.gif) repeat-x bottom;
- color : #eee;
- margin: 0em;
- font-weight : bold;
- text-align : center;
- vertical-align: middle;
- white-space: nowrap;
-}
-#curDateRangeTable td {
- padding-top: 5px;
- padding-bottom: 1px;
- padding-left: 0.5em;
- padding-right: 0.5em;
-}
-#curDateRangeTable td.sideBarOpenCloseIcon {
- background: url(../../images/curDateRangeRed-left.gif) no-repeat top left;
- color: inherit;
- width: 200px;
-}
-#curDateRangeTable td.date {
- font-weight : bold;
- text-align : center;
- white-space: nowrap;
-}
-#curDateRangeTable td.rssPrint {
- background: url(../../images/curDateRangeRed-right.gif) no-repeat top right;
- color: inherit;
- width: 200px;
- font-weight : bold;
- text-align : right;
- white-space: nowrap;
-}
-#curDateRangeTable td.rssPrint img {
- position: relative;
- top: 3px;
-}
-#curDateRangeTable td.rssPrint a:link,
-#curDateRangeTable td.rssPrint a:active,
-#curDateRangeTable td.rssPrint a:visited {
- font-size: 10px;
- color: #eee;
- background-color: transparent;
- font-family: Arial, Helvetica, sans-serif;
- padding: 0;
- text-decoration: none;
- margin-right: 0.5em;
- position: relative;
- top: -3px;
-}
-#curDateRangeTable td.rssPrint a:hover {
- color: #663;
- background-color: #fff;
-}
-#curDateRangeTable td.rssPrint a.rss:link,
-#curDateRangeTable td.rssPrint a.rss:active,
-#curDateRangeTable td.rssPrint a.rss:visited {
- font-size: 10px;
- font-weight: bold;
- color: #444;
- background-color: #ddd;
- font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
- padding: 0px 1px 0px 1px;
- text-decoration: none;
- margin-right: 0.5em;
- margin-left: 2px;
- position: relative;
- top: -3px;
- border: solid 1px #666;
-}
-#curDateRangeTable td.rssPrint a.rss:hover {
- color: #900;
- background-color: #fff;
-}
-#searchBarTable {
- margin: 0px;
- padding: 0em;
- background-color : #eee;
- color: black;
- font-size: 0.9em;
-}
-#searchBarTable .leftCell {
- margin: 0px;
- padding: 0em;
- border-left: 3px solid #333;
- padding: 0.1em 0 0 0.5em;
- white-space: nowrap;
-}
-#searchBarTable .leftCell .link {
- font-size: 0.8em;
- padding-left: 1em;
- color: #999;
- background-color: transparent;
-}
-#searchBarTable .leftCell a {
- color: #888;
- background-color: transparent;
-}
-#searchBarTable .leftCell a:hover {
- color: #b00;
- background-color: transparent;
-}
-#searchBarTable .rightCell {
- margin: 0px;
- padding: 0em;
- text-align: right;
- border-right: 3px solid #333;
- padding: 0.1em 0.1em 0em 0em;
- white-space: nowrap;
-}
-#searchBarTable form {
- display: inline;
- margin: 0px 0px 1px 0px;
- padding: 0em;
-}
-#tabsTable {
- margin: 0em;
- padding: 4px 0px 0px 0px;
- text-align: center;
- background-color: #333;
- color: #eee;
-}
-#tabsTable .centerCell a {
- text-decoration: none;
- color: #eee;
-}
-#tabsTable .centerCell img {
- margin-right: 1px;
-}
-#tabsTable .rightCell {
- background : url(../../images/demo/std-tab-space.gif);
- padding-right: 0.5em;
-}
-#navigationBarTable {
- font-size: 0.8em;
- margin: 0em;
- padding: 0em;
- vertical-align: top;
- border-left : 2px solid #333;
- border-right : 2px solid #333;
- border-bottom: 1px solid Gray;
-}
-#navigationBarTable a {
- text-decoration: none;
- white-space: nowrap;
-}
-#navigationBarTable td {
- vertical-align: top;
-}
-#navigationBarTable form {
- display: inline;
- margin-bottom: 0em;
-}
-#navigationBarTable table {
- display: inline;
- margin-bottom: 0em;
-}
-#navigationBarTable td.todayButton {
- padding: 1em 1em 0 1em;
-}
-#navigationBarTable td.gotoForm {
- padding: 1em 0.5em 0 0;
-}
-#navigationBarTable td.leftCell {
- text-align: left;
- white-space: nowrap;
- padding-left: 0.5em;
- font-size: 1.3em;
- font-weight: bold;
- padding: 0.75em 0em 0.75em 1em;
- width: 100%;
- vertical-align: middle;
-}
-#navigationBarTable td.leftCell .prevImg {
- margin: 0;
- vertical-align: top;
-}
-#navigationBarTable td.leftCell .prevImg {
- margin: 0 0.2em 0 0;
- vertical-align: top;
-}
-#navigationBarTable td.leftCell .nextImg {
- margin: 0 0.75em 0 0;
- vertical-align: top;
-}
-#navigationBarTable td.rightCell select {
- padding-right: 0em;
- margin: 0em;
- width: 10em;
-}
-#searchBarTable .calLinks {
- white-space: nowrap;
-}
-#eventTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#eventTable td.fieldval {
- margin: 0em;
- vertical-align: top;
- padding: 0.5em 0.5em 0.2em 1em;
-}
-#eventTable td.fieldname {
- margin: 0em;
- vertical-align: top;
- padding: 0.5em 0.5em 0.2em 0.5em;
- color: black;
- background-color: #eee;
-}
-#eventTable th.fieldval {
- text-align: left;
- padding: 1em 0.5em 0.5em 1em;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#eventTable th.fieldname {
- text-align: left;
- padding: 1em 0.5em 0.5em 0.5em;
- background-color: #eee;
- color: black;
-}
-#eventTable th.icalIcon {
- margin: 0em;
- vertical-align: middle;
- text-align: right;
- padding: 0.5em 1em 0.2em 0.5em;
- white-space: nowrap;
- font-size: 0.9em;
- font-weight: normal;
-}
-#eventTable th.icalIcon a {
- text-decoration: none;
-}
-#eventTable th.icalIcon img {
- vertical-align: middle;
- padding-left: 1em;
-}
-#calPageTable {
- width: 100%;
- font-size: 100%;
- margin: 0px;
- padding: 0px;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#calPageTable td {
- width: 50%;
- vertical-align: top;
- padding: 0.5em 2em 1em 3em;
-}
-#calPageTable th {
- font-size: 1.2em;
- background-color: #ccc;
- color: black;
- font-weight: bold;
-}
-#calPageTable td.leftCell {
- border-right : thin dashed #999;
-}
-#calPageTable h2 {
- font-size: 1.2em;
-}
-#calPageTable td.infoCell {
- background-color: #eee;
- color: black;
- text-align: center;
-}
-#dayCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#dayCalendarTable td {
- padding: 0.4em;
- margin: 0em;
-}
-#dayCalendarTable .dateRange {
- text-align: left;
- background-color: #fee;
- color: black;
- white-space: nowrap;
-}
-#dayCalendarTable .description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#dayCalendarTable .more {
- text-align: center;
- background-color: #eee;
- color: black;
- font-size: 0.8em;
-}
-#weekCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#weekCalendarTable td {
- padding: 0.4em;
- margin: 0em;
-}
-#weekCalendarTable .dateRange {
- text-align: left;
- background-color: #fdd;
- color: black;
- white-space: nowrap;
-}
-#weekCalendarTable .description {
- text-align: left;
- background-color: #fff;
- color: black;
- width: 100%;
-}
-#weekCalendarTable .more {
- text-align: center;
- background-color: #eee;
- color: black;
- font-size: 0.8em;
-}
-#monthCalendarTable {
- width: 100%;
- font-size: 0.8em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#monthCalendarTable th.dayHeading {
- width: 14%;
- text-align: center;
- vertical-align: middle;
- background-color: #900;
- color: #eee;
- border: 1px solid black;
-}
-#monthCalendarTable td {
- width: 14%;
- height: 60px;
- vertical-align: top;
- text-align: left;
- padding: 0em;
- border: 1px solid #aaa;
- background-color: white;
- color: black;
-}
-#monthCalendarTable td.filler {
- border: none;
- background-color: #eee;
- color: black;
-}
-#monthCalendarTable ul {
- font-size: 0.8em;
- list-style : none;
- margin: 0em;
- padding: 0.3em 0em 0em 0em;
-}
-#monthCalendarTable ul li {
- margin: 0em;
- padding: 0em;
- display: inline;
-}
-#monthCalendarTable a.eventLinkA:link,
-#monthCalendarTable a.eventLinkA:visited,
-#monthCalendarTable a.eventLinkA:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #fcc;
- color: black;
-}
-#monthCalendarTable a.eventLinkB:link,
-#monthCalendarTable a.eventLinkB:visited,
-#monthCalendarTable a.eventLinkB:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #fee;
- color: black;
-}
-#monthCalendarTable a.eventCancelled:link,
-#monthCalendarTable a.eventCancelled:visited,
-#monthCalendarTable a.eventCancelled:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #ccc;
- color: black;
-}
-#monthCalendarTable a.eventTentative:link,
-#monthCalendarTable a.eventTentative:visited,
-#monthCalendarTable a.eventTentative:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- border-bottom: 1px solid #ccc;
- border-top: 1px solid #ccc;
- background: #eee url('../../images/tentativeLines.gif') top;
- color: black;
-}
-#monthCalendarTable a.holiday:link,
-#monthCalendarTable a.holiday:visited,
-#monthCalendarTable a.holiday:active {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- background-color: #fff;
- color: black;
- /*border-top: 1px solid black;
- border-bottom: 1px solid black;*/
-}
-#monthCalendarTable a.eventLinkA:hover,
-#monthCalendarTable a.eventLinkB:hover,
-#monthCalendarTable a.eventCancelled:hover,
-#monthCalendarTable a.eventTentative:hover,
-#monthCalendarTable a.holiday:hover {
- display: block;
- padding: 0.1em 0.2em 0.1em 0.2em;
- text-decoration: none;
- color: black;
- background-color: #ffe;
-}
-#monthCalendarTable a.dayLink {
- text-decoration: none;
- color: black;
- background-color: transparent;
-}
-#monthCalendarTable a:hover.dayLink {
- text-decoration: none;
- color: #eee;
- background-color: black;
-}
-#monthCalendarTable a:hover {
- /* required for eventTip to hover correctly;
- apply only to the hover pseudo class, or
- the other anchors nearby will cover the eventTip in IE */
- position: relative;
-}
-#monthCalendarTable a span.eventTip,
-#monthCalendarTable a span.eventTipReverse {
- display: none;
-}
-#monthCalendarTable a:hover span.eventTip {
- display: block;
- position: absolute;
- width: 20em;
- top: 1em;
- left: 12em;
- background-color: #ffe;
- color: black;
- padding: 4px;
- border: 1px solid #333;
- /*opacity: .80;
- filter: alpha(opacity=80);*/
-}
-#monthCalendarTable a:hover span.eventTipReverse {
- display: block;
- position: absolute;
- width: 20em;
- top: 1em;
- left: -21em;
- background-color: #ffe;
- color: black;
- padding: 4px;
- border: 1px solid #333;
- /*opacity: .80;
- filter: alpha(opacity=80);*/
-}
-
-#monthCalendarTable a:hover span.eventTipStatusCancelled {
- display: block;
- color: white;
- background-color: #333;
- padding: 2px;
- margin-bottom: 6px;
- text-align: center;
-}
-#monthCalendarTable a:hover span.eventTipStatusTentative {
- display: block;
- color: black;
- background: #eee url('../../images/tentativeLines.gif') top;
- padding: 2px;
- margin-bottom: 6px;
- border: 1px solid #ccc;
- text-align: center;
-}
-a.gridAdd {
- display: block;
- float: right;
- font-size: 0.8em;
- text-decoration: none;
- margin-right: 2px;
-}
-#yearCalendarTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0em;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#yearCalendarTable td {
- padding: 1em 0em 0em 0em;
- margin: 0em;
- vertical-align: top;
- text-align: center;
- width: 33%;
-}
-#yearCalendarTable table.yearViewMonthTable {
- margin: 0em 1em 0.5em 1em;
- border: 1px solid #666;
-}
-#yearCalendarTable table.yearViewMonthTable td {
- text-align: center;
- padding: 0.2em;
- width: 12.5%;
-}
-#yearCalendarTable table.yearViewMonthTable th {
- font-weight: bold;
- background-color: #f5f5f5;
- color: black;
- padding: 0.2em;
-}
-#yearCalendarTable table.yearViewMonthTable td.monthName {
- font-weight: bold;
- text-align: center;
- background-color: #666;
- color: #eee;
- white-space: nowrap;
- border-bottom: 1px solid #999;
-}
-#yearCalendarTable table.yearViewMonthTable td.weekCell {
- font-weight: bold;
- font-size: 0.8em;
- background-color: #f5f5f5;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td.weekCell a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: black;
-}
-#yearCalendarTable table.yearViewMonthTable td.monthName a {
- text-decoration: none;
- background-color: inherit;
- padding: 1px;
- color: #eee;
-}
-#yearCalendarTable table.yearViewMonthTable td a:hover {
- text-decoration: none;
- background-color: #FFC;
- color: black;
- border: 1px solid black;
- padding: 0;
-}
-#listTable {
- width: 100%;
- font-size: 0.9em;
- margin: 0px;
- padding: 0px;
- border-top: 1px solid #666;
- border-bottom: 2px solid #aaa;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
-}
-#listTable td {
- padding: 0.5em;
- margin: 0em;
- border-bottom: 1px solid #bbb;
-}
-#listTable td a {
- background-color: transparent;
- color: black;
- text-decoration: none;
-}
-#listTable td.dateRangeCrossDay {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #ddd;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeEarlyMorning {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #dcc3c3;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeMorning {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #fee;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeAfternoon {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #fdd;
- color: black;
- white-space: nowrap;
-}
-#listTable td.dateRangeEvening {
- font-size: 0.9em;
- text-transform: lowercase;
- background-color: #fcc;
- color: black;
- white-space: nowrap;
-}
-#listTable span.littleArrow {
- font-size: 1.4em;
-}
-#listTable td.description {
- text-align: left;
- background-color: white;
- color: black;
- width: 100%;
-}
-#listTable td.bwStatusCancelled {
- background-color: #ddd;
- color: black;
-}
-#listTable td.bwStatusTentative {
- background: white url('../../images/tentativeLines.gif') top;
- color: black;
-}
-#listTable td.description a {
- display: block;
- background-color: transparent;
- color: black;
- text-decoration: none;
-}
-#listTable td.description a.moreLink {
- display: inline;
- background-color: transparent;
- color: #900;
- text-decoration: underline;
-}
-#listTable td.description:hover {
- background-color: #eee;
- color: black;
- text-decoration: none;
-}
-#listTable td.dateRow {
- text-align: left;
- background-color: #888;
- color: #eee;
- font-size: 0.8em;
- padding: 0.2em 0.5em 0.2em 0.5em;
- margin: 0em;
-}
-#listTable td.dateRow a {
- display: block;
- color: #fff;
- background-color: transparent;
- font-weight: bold;
- text-decoration : none;
-}
-#listTable td.icons {
- color: black;
- background-color: #ddd;
- white-space: nowrap;
-}
-#listTable td.icons img.addref {
- margin-right: 0.5em;
-}
-#calPageTable ul.calendarTree li {
- font-weight: bold;
-}
-#calPageTable ul.calendarTree li ul li {
- font-weight: normal;
-}
-#calPageTable ul.calendarTree li.folder {
- list-style-image: url(../../images/demo/catIcon.gif);
- padding-top: 0.25em;
- padding-bottom: 0.25em;
-}
-#calPageTable ul.calendarTree li.calendar {
- list-style-image: url(../../images/demo/calIcon-sm.gif);
-}
-.noEventsCell {
- padding: 1em;
-}
-#footer {
- font-size: 0.75em;
- text-align : center;
- margin-top: 0em;
- padding: 1em;
- color: #333;
- background-color: #eee;
- border-bottom: 2px solid #333;
- border-left: 2px solid #333;
- border-right: 2px solid #333;
- white-space: nowrap;
-}
-#footer a {
- color: #333;
- background-color: transparent;
- text-decoration: underline;
-}
-#skinSelectorTable {
- width: 100%;
- padding-top: 0.5em;
- font-size: 0.7em;
- color: #333;
- background-color: inherit;
-}
-#skinSelectorTable td {
- vertical-align: top;
-}
-#skinSelectorTable td.rightCell {
- text-align: right;
-}
-#skinSelectorTable td.leftCell {
- text-align: left;
- color: #999;
- background-color: inherit;
-}
-#skinSelectorTable td.leftCell a {
- color: #999;
- background-color: inherit;
-}
-#skinSelectorTable td.rightCell form {
- display: inline;
- margin: 0em;
- padding: 0em;
-}
-#skinSelectorTable td.rightCell select {
- font-size: 0.9em;
- color: #333;
- background-color: #eee;
-}
-/* LINKS */
-a:link, a:active {
- color: #900;
- background-color: transparent;
-}
-a:visited {
- color: #600;
- background-color: transparent;
-}
-a:hover {
- color: #b33;
- background-color: transparent;
-}
-span.time {
- text-transform : lowercase;
-}
-#featureHighlight {
- color: #dd0;
- font-style: italic;
-}
-.center {
- text-align: center;
-}
-.left {
- text-align: left;
-}
-.right {
- text-align: right;
-}
\ No newline at end of file
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/soe.xsl
===================================================================
--- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/soe.xsl 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/soe.xsl 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,1160 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:output
- method="html"
- indent="yes"
- media-type="text/html"
- doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
- doctype-system="http://www.w3.org/TR/html4/loose.dtd"
- standalone="yes"
-/>
-
-<!-- =========================================================
-
- DEMONSTRATION "DEPARTMENTAL" CALENDAR STYLESHEET
-
- This stylesheet is for the "soe" (School of Engineering)
- calendar suite; it is an example of a departmental skin.
-
- This skin, along with the preferences for the Calendar
- Suite owner, differs from the main public skin (default.xsl) in the
- following ways:
- - different header, title, and footer
- - default layout = list view (rather than calendar grid)
- - different color scheme
-
- Otherwise, for the sake of demonstration, we've left most of the
- functionality of the public client in place.
-
- For detailed instructions on how to work with the XSLT
- stylesheets included with this distribution, please see the
- Bedework Design Guide at
- http://www.bedework.org/bedework/update.do?artcenterkey=24
-
-=============================================================== -->
-
-<!-- **********************************************************************
- Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved.
-
- Redistribution and use of this distribution in source and binary forms,
- with or without modification, are permitted provided that:
- The above copyright notice and this permission notice appear in all
- copies and supporting documentation;
-
- The name, identifiers, and trademarks of Rensselaer Polytechnic
- Institute are not used in advertising or publicity without the
- express prior written permission of Rensselaer Polytechnic Institute;
-
- DISCLAIMER: The software is distributed" AS IS" without any express or
- implied warranty, including but not limited to, any implied warranties
- of merchantability or fitness for a particular purpose or any warrant)'
- of non-infringement of any current or pending patent rights. The authors
- of the software make no representations about the suitability of this
- software for any particular purpose. The entire risk as to the quality
- and performance of the software is with the user. Should the software
- prove defective, the user assumes the cost of all necessary servicing,
- repair or correction. In particular, neither Rensselaer Polytechnic
- Institute, nor the authors of the software are liable for any indirect,
- special, consequential, or incidental damages related to the software,
- to the maximum extent the law permits. -->
-
- <!-- ================================= -->
- <!-- DEMO PUBLIC CALENDAR STYLESHEET -->
- <!-- ================================= -->
-
- <!-- DEFINE INCLUDES -->
- <xsl:include href="errors.xsl"/>
-
- <!-- DEFINE GLOBAL CONSTANTS -->
-
- <!-- URL of the XSL template directory -->
- <!-- The approot is an appropriate place to put
- included stylesheets and xml fragments. These are generally
- referenced relatively (like errors.xsl and messages.xsl above);
- this variable is here for your convenience if you choose to
- reference it explicitly. It is not used in this stylesheet, however,
- and can be safely removed if you so choose. -->
- <xsl:variable name="appRoot" select="/bedework/approot"/>
-
- <!-- URL of html resources (images, css, other html); by default this is
- set to the application root -->
- <xsl:variable name="resourcesRoot" select="/bedework/approot"/>
-
- <!-- Properly encoded prefixes to the application actions; use these to build
- urls; allows the application to be used without cookies or within a portal. -->
- <xsl:variable name="setup" select="/bedework/urlPrefixes/setup"/>
- <xsl:variable name="setSelection" select="/bedework/urlPrefixes/setSelection"/>
- <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/fetchPublicCalendars"/>
- <xsl:variable name="setViewPeriod" select="/bedework/urlPrefixes/setViewPeriod"/>
- <xsl:variable name="eventView" select="/bedework/urlPrefixes/eventView"/>
- <xsl:variable name="addEventRef" select="/bedework/urlPrefixes/addEventRef"/>
- <xsl:variable name="export" select="/bedework/urlPrefixes/export"/>
- <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mailEvent"/>
- <xsl:variable name="showPage" select="/bedework/urlPrefixes/showPage"/>
- <xsl:variable name="stats" select="/bedework/urlPrefixes/stats"/>
-
- <!-- Other generally useful global variables -->
- <xsl:variable name="privateCal">/ucal</xsl:variable>
- <xsl:variable name="prevdate" select="/bedework/previousdate"/>
- <xsl:variable name="nextdate" select="/bedework/nextdate"/>
- <xsl:variable name="curdate" select="/bedework/currentdate/date"/>
- <xsl:variable name="skin">default</xsl:variable>
-
-
- <!-- MAIN TEMPLATE -->
- <xsl:template match="/">
- <html lang="en">
- <head>
- <title>School of Engineering: Example Bedework Departmental Calendar Suite</title>
- <link rel="stylesheet" type="text/css" href="{$resourcesRoot}/default/default/soe.css" />
- <link rel="icon" type="image/ico" href="{$resourcesRoot}/images/bedework.ico" />
- </head>
- <body>
- <xsl:call-template name="headBar"/>
- <xsl:if test="/bedework/error">
- <div id="errors">
- <xsl:apply-templates select="/bedework/error"/>
- </div>
- </xsl:if>
- <xsl:call-template name="tabs"/>
- <xsl:call-template name="navigation"/>
- <xsl:choose>
- <xsl:when test="/bedework/page='event'">
- <!-- show an event -->
- <xsl:apply-templates select="/bedework/event"/>
- </xsl:when>
- <xsl:when test="/bedework/page='showSysStats'">
- <!-- show system stats -->
- <xsl:call-template name="stats"/>
- </xsl:when>
- <xsl:when test="/bedework/page='calendarList'">
- <!-- show a list of all calendars -->
- <xsl:apply-templates select="/bedework/calendars"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- otherwise, show the eventsCalendar -->
- <xsl:if test="/bedework/periodname!='Year'">
- <xsl:call-template name="searchBar"/>
- </xsl:if>
- <!-- main eventCalendar content -->
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <xsl:call-template name="listView"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='weekViewMode']/value='cal'">
- <xsl:call-template name="weekView"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="listView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
- <xsl:call-template name="listView"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="monthView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="yearView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <!-- footer -->
- <xsl:call-template name="footer"/>
- </body>
- </html>
- </xsl:template>
-
- <!--==== HEADER TEMPLATES and NAVIGATION ====-->
- <!-- these templates are separated out for convenience and to simplify the default template -->
-
- <xsl:template name="headBar">
- <div id="headBar">
- <div id="bedeworkLogo">
- <a href="http://www.bedework.org/">
- <img src="{$resourcesRoot}/images/soecal/soeBedeworkLogo.gif" width="296" height="69" border="0" alt="Bedework" align="right"/>
- </a>
- </div>
- <h1>Example Departmental Calendar Suite</h1>
- <!--<ul id="schoolLinks">
- <li><a href="{$privateCal}">Personal Calendar</a></li>
- <li><a href="http://www.yourschoolhere.edu">School Home</a></li>
- <li><a href="http://www.bedework.org/">Other Link</a></li>
- <li>
- <a href="http://helpdesk.rpi.edu/update.do?catcenterkey=51">
- Example Calendar Help
- </a>
- </li>
- </ul> -->
- </div>
- <!-- Turn off the date range table for this departmental view -->
- <!--<table id="curDateRangeTable" cellspacing="0">
- <td class="sideBarOpenCloseIcon">
-   -->
- <!--
- we may choose to implement calendar selection in the public calendar
- using a sidebar; leave this comment here for now.
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='sidebar']/value='closed'">
- <a href="?setappvar=sidebar(opened)">
- <img alt="open sidebar" src="{$resourcesRoot}/resources/sideBarArrowOpen.gif" width="21" height="16" border="0" align="left"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="?setappvar=sidebar(closed)">
- <img alt="close sidebar" src="{$resourcesRoot}/resources/sideBarArrowClose.gif" width="21" height="16" border="0" align="left"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>-->
- <!-- </td>
- <td class="date">
- <xsl:choose>
- <xsl:when test="/bedework/page='event'">
- Event Information
- </xsl:when>
- <xsl:when test="/bedework/page='showSysStats' or
- /bedework/page='calendars'">
-  
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/firstday/longdate"/>
- <xsl:if test="/bedework/periodname!='Day'">
- -
- <xsl:value-of select="/bedework/lastday/longdate"/>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="rssPrint">
- <a href="javascript:window.print()" title="print this view">
- <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
- </a>
- <a class="rss" href="{$setSelection}&setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
- </td>
- </table>-->
- </xsl:template>
-
- <xsl:template name="tabs">
- <xsl:choose>
- <xsl:when test="/bedework/page='eventscalendar'">
- <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
- <tr>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-on.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
- <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-on.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Month'">
- <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-on.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year'">
- <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-on.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="rssPrint">
- <a href="javascript:window.print()" title="print this view">
- <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
- </a>
- <a class="rss" href="{$setSelection}&setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
- </td>
- </tr>
- </table>
- </xsl:when>
- <xsl:otherwise>
- <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
- <tr>
- <td>
- <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </td>
- <td class="rssPrint">
- <a href="javascript:window.print()" title="print this view">
- <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
- </a>
- <a class="rss" href="{$setSelection}&setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
- </td>
- </tr>
- </table>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="navigation">
- <table border="0" cellpadding="0" cellspacing="0" id="navigationBarTable">
- <tr>
- <td class="leftCell">
- <a id="prevViewPeriod" href="{$setViewPeriod}&date={$prevdate}"><img src="{$resourcesRoot}/images/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a>
- <a id="nextViewPeriod" href="{$setViewPeriod}&date={$nextdate}"><img src="{$resourcesRoot}/images/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year'">
- <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:value-of select="/bedework/firstday/monthname"/>, <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Week'">
- Week of <xsl:value-of select="substring-after(/bedework/firstday/longdate,', ')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/firstday/longdate"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="todayButton">
- <a href="{$setViewPeriod}&viewType=todayView&date={$curdate}">
- <img src="{$resourcesRoot}/images/std-button-today-off.gif" width="54" height="22" border="0" alt="Go to Today" align="left"/>
- </a>
- </td>
- <td align="right" class="gotoForm">
- <form name="calForm" method="get" action="{$setViewPeriod}">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:if test="/bedework/periodname!='Year'">
- <td>
- <select name="viewStartDate.month">
- <xsl:for-each select="/bedework/monthvalues/val">
- <xsl:variable name="temp" select="."/>
- <xsl:variable name="pos" select="position()"/>
- <xsl:choose>
- <xsl:when test="/bedework/monthvalues[start=$temp]">
- <option value="{$temp}" selected="selected">
- <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
- </option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$temp}">
- <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
- </option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </td>
- <xsl:if test="/bedework/periodname!='Month'">
- <td>
- <select name="viewStartDate.day">
- <xsl:for-each select="/bedework/dayvalues/val">
- <xsl:variable name="temp" select="."/>
- <xsl:variable name="pos" select="position()"/>
- <xsl:choose>
- <xsl:when test="/bedework/dayvalues[start=$temp]">
- <option value="{$temp}" selected="selected">
- <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
- </option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$temp}">
- <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
- </option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </td>
- </xsl:if>
- </xsl:if>
- <td>
- <xsl:variable name="temp" select="/bedework/yearvalues/start"/>
- <input type="text" name="viewStartDate.year" maxlength="4" size="4" value="{$temp}"/>
- </td>
- <td>
- <input name="submit" type="submit" value="go"/>
- </td>
- </tr>
- </table>
- </form>
- </td>
- <td class="rightCell">
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template name="searchBar">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" id="searchBarTable">
- <tr>
- <td class="leftCell">
- <xsl:choose>
- <xsl:when test="/bedework/selectionState/selectionType = 'calendar'">
- Calendar: <xsl:value-of select="/bedework/selectionState/subscriptions/subscription/calendar/name"/>
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:when test="/bedework/selectionState/selectionType = 'search'">
- Current search: <xsl:value-of select="/bedework/search"/>
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:when test="/bedework/selectionState/selectionType = 'subscription'">
- Subscription: (not implemented yet)
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:when test="/bedework/selectionState/selectionType = 'filter'">
- Filter: (not implemented yet)
- <span class="link">[<a href="{$setSelection}">default view</a>]</span>
- </xsl:when>
- <xsl:otherwise><!-- view -->
- View:
- <form name="selectViewForm" method="get" action="{$setSelection}">
- <select name="viewName" onChange="submit()" >
- <xsl:for-each select="/bedework/views/view">
- <xsl:variable name="name" select="name"/>
- <xsl:choose>
- <xsl:when test="name=/bedework/selectionState/view/name">
- <option value="{$name}" selected="selected"><xsl:value-of select="name"/></option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$name}"><xsl:value-of select="name"/></option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </form>
- <span class="calLinks"><a href="{$setSelection}">default view</a> | <a href="{$fetchPublicCalendars}">available calendars</a></span>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="rightCell">
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <img src="{$resourcesRoot}/images/std-button-listview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Year'">
- <img src="{$resourcesRoot}/images/std-button-calview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
- <a href="{$setup}&setappvar=monthViewMode(cal)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}&setappvar=monthViewMode(list)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='weekViewMode']/value='cal'">
- <a href="{$setup}&setappvar=weekViewMode(list)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}&setappvar=weekViewMode(cal)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year' or
- (/bedework/periodname='Month' and
- (/bedework/appvar[key='monthViewMode']/value='cal' or
- not(/bedework/appvar[key='monthViewMode']))) or
- (/bedework/periodname='Week' and
- (/bedework/appvar[key='weekViewMode']/value='cal' or
- not(/bedework/appvar[key='weekViewMode'])))">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <img src="{$resourcesRoot}/images/std-button-summary-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
- </xsl:when>
- <xsl:otherwise>
- <img src="{$resourcesRoot}/images/std-button-details-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <a href="{$setup}&setappvar=summaryMode(summary)" title="toggle summary/detailed view">
- <img src="{$resourcesRoot}/images/std-button-summary.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}&setappvar=summaryMode(details)" title="toggle summary/detailed view">
- <img src="{$resourcesRoot}/images/std-button-details.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <a href="setup.do"><img src="{$resourcesRoot}/images/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== SINGLE EVENT ====-->
- <xsl:template match="event">
- <xsl:variable name="statusClass">
- <xsl:choose>
- <xsl:when test="status='CANCELLED'">bwStatusCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">bwStatusTentative</xsl:when>
- <xsl:otherwise>bwStatusConfirmed</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <h2 class="{$statusClass}">
- <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
- <xsl:choose>
- <xsl:when test="link != ''">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}">
- <xsl:value-of select="summary"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="summary"/>
- </xsl:otherwise>
- </xsl:choose>
- </h2>
- <table id="eventTable" cellpadding="0" cellspacing="0">
- <tr>
- <td class="fieldname">When:</td>
- <td class="fieldval">
- <xsl:value-of select="start/dayname"/>, <xsl:value-of select="start/longdate"/><xsl:text> </xsl:text>
- <xsl:if test="start/allday = 'false'">
- <span class="time"><xsl:value-of select="start/time"/></span>
- </xsl:if>
- <xsl:if test="(end/longdate != start/longdate) or
- ((end/longdate = start/longdate) and (end/time != start/time))"> - </xsl:if>
- <xsl:if test="end/longdate != start/longdate">
- <xsl:value-of select="substring(end/dayname,1,3)"/>, <xsl:value-of select="end/longdate"/><xsl:text> </xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="start/allday = 'true'">
- <span class="time"><em>(all day)</em></span>
- </xsl:when>
- <xsl:when test="end/longdate != start/longdate">
- <span class="time"><xsl:value-of select="end/time"/></span>
- </xsl:when>
- <xsl:when test="end/time != start/time">
- <span class="time"><xsl:value-of select="end/time"/></span>
- </xsl:when>
- </xsl:choose>
- </td>
- <th class="icalIcon" rowspan="2">
- <div id="eventIcons">
- <xsl:variable name="id" select="id"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
- <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon.gif" width="20" height="26" border="0" alt="Add event to MyCalendar"/>
- add to my calendar</a>
- <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
- <a href="{$export}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
- <img src="{$resourcesRoot}/images/std-ical_icon.gif" width="20" height="26" border="0" alt="Download this event"/>
- download</a>
- </div>
- </th>
- </tr>
- <tr>
- <td class="fieldname">Where:</td>
- <td class="fieldval">
- <xsl:choose>
- <xsl:when test="location/link=''">
- <xsl:value-of select="location/address"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="locationLink" select="location/link"/>
- <a href="{$locationLink}">
- <xsl:value-of select="location/address"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="location/subaddress!=''">
- <br/><xsl:value-of select="location/subaddress"/>
- </xsl:if>
- </td>
- </tr>
- <tr>
- <td class="fieldname">Description:</td>
- <td colspan="2" class="fieldval description">
- <xsl:call-template name="replace">
- <xsl:with-param name="string" select="description"/>
- <xsl:with-param name="pattern" select="'
'"/>
- <xsl:with-param name="replacement"><br/></xsl:with-param>
- </xsl:call-template>
- </td>
- </tr>
- <xsl:if test="status !='' and status != 'CONFIRMED'">
- <tr>
- <td class="fieldname">Status:</td>
- <td class="fieldval">
- <xsl:value-of select="status"/>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="cost!=''">
- <tr>
- <td class="fieldname">Cost:</td>
- <td colspan="2" class="fieldval"><xsl:value-of select="cost"/></td>
- </tr>
- </xsl:if>
- <xsl:if test="link != ''">
- <tr>
- <td class="fieldname">See:</td>
- <td colspan="2" class="fieldval">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}"><xsl:value-of select="link"/></a>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="sponsor/name!='none'">
- <tr>
- <td class="fieldname">Contact:</td>
- <td colspan="2" class="fieldval">
- <xsl:choose>
- <xsl:when test="sponsor/link=''">
- <xsl:value-of select="sponsor/name"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="sponsorLink" select="sponsor/link"/>
- <a href="{$sponsorLink}">
- <xsl:value-of select="sponsor/name"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="sponsor/phone!=''">
- <br /><xsl:value-of select="sponsor/phone"/>
- </xsl:if>
- <!-- If you want to display email addresses, uncomment the
- following 8 lines. -->
- <!-- <xsl:if test="sponsor/email!=''">
- <br />
- <xsl:variable name="email" select="sponsor/email"/>
- <xsl:variable name="subject" select="summary"/>
- <a href="mailto:{$email}&subject={$subject}">
- <xsl:value-of select="sponsor/email"/>
- </a>
- </xsl:if> -->
- </td>
- </tr>
- </xsl:if>
- <tr>
- <td class="fieldname">Calendar:</td>
- <td class="fieldval">
- <xsl:variable name="calUrl" select="calendar/path"/>
- <a href="{$setSelection}&calUrl={$calUrl}">
- <xsl:value-of select="calendar/name"/>
- </a>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== LIST VIEW (for day, week, and month) ====-->
- <xsl:template name="listView">
- <table id="listTable" border="0" cellpadding="0" cellspacing="0">
- <xsl:choose>
- <xsl:when test="not(/bedework/eventscalendar/year/month/week/day/event)">
- <tr>
- <td class="noEventsCell">
- No events to display.
- </td>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week/day[event]">
- <xsl:if test="/bedework/periodname='Week' or /bedework/periodname='Month' or /bedework/periodname=''">
- <tr>
- <td colspan="5" class="dateRow">
- <xsl:variable name="date" select="date"/>
- <a href="{$setViewPeriod}&viewType=dayView&date={$date}">
- <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/>
- </a>
- </td>
- </tr>
- </xsl:if>
- <xsl:for-each select="event">
- <xsl:variable name="id" select="id"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <tr>
- <xsl:variable name="dateRangeStyle">
- <xsl:choose>
- <xsl:when test="start/shortdate = parent::day/shortdate">
- <xsl:choose>
- <xsl:when test="start/allday = 'true'">dateRangeCrossDay</xsl:when>
- <xsl:when test="start/hour24 < 6">dateRangeEarlyMorning</xsl:when>
- <xsl:when test="start/hour24 < 12">dateRangeMorning</xsl:when>
- <xsl:when test="start/hour24 < 18">dateRangeAfternoon</xsl:when>
- <xsl:otherwise>dateRangeEvening</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>dateRangeCrossDay</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="start/allday = 'true' and
- start/shortdate = end/shortdate">
- <td class="{$dateRangeStyle} center" colspan="3">
- all day
- </td>
- </xsl:when>
- <xsl:when test="start/shortdate = end/shortdate and
- start/time = end/time">
- <td class="{$dateRangeStyle} center" colspan="3">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:value-of select="start/time"/>
- </a>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td class="{$dateRangeStyle} right">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:choose>
- <xsl:when test="start/allday = 'true' and
- parent::day/shortdate = start/shortdate">
- today
- </xsl:when>
- <xsl:when test="parent::day/shortdate != start/shortdate">
- <span class="littleArrow">«</span> 
- <xsl:value-of select="start/month"/>/<xsl:value-of select="start/day"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="start/time"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </td>
- <td class="{$dateRangeStyle} center">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">-</a>
- </td>
- <td class="{$dateRangeStyle} left">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:choose>
- <xsl:when test="end/allday = 'true' and
- parent::day/shortdate = end/shortdate">
- today
- </xsl:when>
- <xsl:when test="parent::day/shortdate != end/shortdate">
- <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/>
-  <span class="littleArrow">»</span>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="end/time"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:variable name="descriptionClass">
- <xsl:choose>
- <xsl:when test="status='CANCELLED'">description bwStatusCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">description bwStatusTentative</xsl:when>
- <xsl:otherwise>description</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <td class="{$descriptionClass}">
- <xsl:if test="status='CANCELLED'"><strong>CANCELLED: </strong></xsl:if>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <strong>
- <xsl:value-of select="summary"/>:
- </strong>
- <xsl:value-of select="description"/> 
- <em>
- <xsl:value-of select="location/address"/>
- <xsl:if test="location/subaddress != ''">
- , <xsl:value-of select="location/subaddress"/>
- </xsl:if>. 
- <xsl:if test="cost!=''">
- <xsl:value-of select="cost"/>. 
- </xsl:if>
- <xsl:if test="sponsor/name!='none'">
- Contact: <xsl:value-of select="sponsor/name"/>
- </xsl:if>
- </em>
- </a>
- <xsl:if test="link != ''">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}" class="moreLink"><xsl:value-of select="link"/></a>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:value-of select="summary"/>
- <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="icons">
- <variable name="confId" select="/bedework/confirmationid"/>
- <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
- <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/>
- </a>
- <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
- <a href="{$export}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
- <img src="{$resourcesRoot}/images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/>
- </a>
- </td>
- </tr>
- </xsl:for-each>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </table>
- </xsl:template>
-
- <!--==== WEEK CALENDAR VIEW ====-->
- <xsl:template name="weekView">
- <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:for-each select="/bedework/daynames/val">
- <th class="dayHeading"><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <tr>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week/day">
- <xsl:variable name="dayPos" select="position()"/>
- <xsl:if test="filler='false'">
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}" class="dayLink">
- <xsl:value-of select="value"/>
- </a>
- <ul>
- <xsl:apply-templates select="event" mode="calendarLayout">
- <xsl:with-param name="dayPos" select="$dayPos"/>
- </xsl:apply-templates>
- </ul>
- </td>
- </xsl:if>
- </xsl:for-each>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== MONTH CALENDAR VIEW ====-->
- <xsl:template name="monthView">
- <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:for-each select="/bedework/daynames/val">
- <th class="dayHeading"><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week">
- <tr>
- <xsl:for-each select="day">
- <xsl:variable name="dayPos" select="position()"/>
- <xsl:choose>
- <xsl:when test="filler='true'">
- <td class="filler"> </td>
- </xsl:when>
- <xsl:otherwise>
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}" class="dayLink">
- <xsl:value-of select="value"/>
- </a>
- <ul>
- <xsl:apply-templates select="event" mode="calendarLayout">
- <xsl:with-param name="dayPos" select="$dayPos"/>
- </xsl:apply-templates>
- </ul>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </tr>
- </xsl:for-each>
- </table>
- </xsl:template>
-
- <xsl:template match="event" mode="calendarLayout">
- <xsl:param name="dayPos"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <xsl:variable name="eventClass">
- <xsl:choose>
- <!-- Special styles for the month grid -->
- <xsl:when test="status='CANCELLED'">eventCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">eventTentative</xsl:when>
- <xsl:when test="calendar/name='Holidays'">holiday</xsl:when>
- <!-- Alternating colors for all standard events -->
- <xsl:when test="position() mod 2 = 1">eventLinkA</xsl:when>
- <xsl:otherwise>eventLinkB</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <li>
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" class="{$eventClass}">
- <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
- <xsl:value-of select="summary"/>
- <xsl:variable name="eventTipClass">
- <xsl:choose>
- <xsl:when test="$dayPos > 5">eventTipReverse</xsl:when>
- <xsl:otherwise>eventTip</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <span class="{$eventTipClass}">
- <xsl:if test="status='CANCELLED'"><span class="eventTipStatusCancelled">CANCELLED</span></xsl:if>
- <xsl:if test="status='TENTATIVE'"><span class="eventTipStatusTentative">TENTATIVE</span></xsl:if>
- <strong><xsl:value-of select="summary"/></strong><br/>
- Time:
- <xsl:choose>
- <xsl:when test="start/allday = 'false'">
- <xsl:value-of select="start/time"/>
- <xsl:if test="start/time != end/time">
- - <xsl:value-of select="end/time"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- all day
- </xsl:otherwise>
- </xsl:choose><br/>
- <xsl:if test="location/address">
- Location: <xsl:value-of select="location/address"/><br/>
- </xsl:if>
- Calendar: <xsl:value-of select="calendar/name"/>
- </span>
- </a>
- </li>
- </xsl:template>
-
- <!--==== YEAR VIEW ====-->
- <xsl:template name="yearView">
- <table id="yearCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() <= 3]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 3) and (position() <= 6)]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 6) and (position() <= 9)]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() > 9]"/>
- </tr>
- </table>
- </xsl:template>
-
- <!-- year view month tables -->
- <xsl:template match="month">
- <td>
- <table class="yearViewMonthTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="8" class="monthName">
- <xsl:variable name="firstDayOfMonth" select="week/day/date"/>
- <a href="{$setViewPeriod}&viewType=monthView&date={$firstDayOfMonth}">
- <xsl:value-of select="longname"/>
- </a>
- </td>
- </tr>
- <tr>
- <th> </th>
- <xsl:for-each select="/bedework/shortdaynames/val">
- <th><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <xsl:for-each select="week">
- <tr>
- <td class="weekCell">
- <xsl:variable name="firstDayOfWeek" select="day/date"/>
- <a href="{$setViewPeriod}&viewType=weekView&date={$firstDayOfWeek}">
- <xsl:value-of select="value"/>
- </a>
- </td>
- <xsl:for-each select="day">
- <xsl:choose>
- <xsl:when test="filler='true'">
- <td class="filler"> </td>
- </xsl:when>
- <xsl:otherwise>
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}">
- <xsl:value-of select="value"/>
- </a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </tr>
- </xsl:for-each>
- </table>
- </td>
- </xsl:template>
-
- <!--==== CALENDARS PAGE ====-->
- <xsl:template match="calendars">
- <xsl:variable name="topLevelCalCount" select="count(calendar/calendar)"/>
- <table id="calPageTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <th colspan="2">
- All Calendars
- </th>
- </tr>
- <tr>
- <td colspan="2" class="infoCell">
- Select a calendar from the list below to see only that calendar's events.
- </td>
- </tr>
- <tr>
- <td class="leftCell">
- <ul class="calendarTree">
- <xsl:apply-templates select="calendar/calendar[position() <= ceiling($topLevelCalCount div 2)]" mode="calTree"/>
- </ul>
- </td>
- <td>
- <ul class="calendarTree">
- <xsl:apply-templates select="calendar/calendar[position() > ceiling($topLevelCalCount div 2)]" mode="calTree"/>
- </ul>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template match="calendar" mode="calTree">
- <xsl:variable name="itemClass">
- <xsl:choose>
- <xsl:when test="calendarCollection='false'">folder</xsl:when>
- <xsl:otherwise>calendar</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="url" select="path"/>
- <li class="{$itemClass}">
- <a href="{$setSelection}&calUrl={$url}"><xsl:value-of select="name"/></a>
- <xsl:if test="calendar">
- <ul>
- <xsl:apply-templates select="calendar" mode="calTree"/>
- </ul>
- </xsl:if>
- </li>
- </xsl:template>
-
- <!--+++++++++++++++ System Stats ++++++++++++++++++++-->
- <xsl:template name="stats">
- <div id="stats">
- <h2>System Statistics</h2>
-
- <p>
- Stats collection:
- </p>
- <ul>
- <li>
- <a href="{$stats}&enable=yes">enable</a> |
- <a href="{$stats}&disable=yes">disable</a>
- </li>
- <li><a href="{$stats}&fetch=yes">fetch statistics</a></li>
- <li><a href="{$stats}&dump=yes">dump stats to log</a></li>
- </ul>
- <table id="statsTable" cellpadding="0">
- <xsl:for-each select="/bedework/sysStats/*">
- <xsl:choose>
- <xsl:when test="name(.) = 'header'">
- <tr>
- <th colspan="2">
- <xsl:value-of select="."/>
- </th>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <tr>
- <td class="label">
- <xsl:value-of select="label"/>
- </td>
- <td class="value">
- <xsl:value-of select="value"/>
- </td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </table>
- </div>
- </xsl:template>
-
- <!--==== UTILITY TEMPLATES ====-->
-
- <!-- search and replace template taken from
- http://www.biglist.com/lists/xsl-list/archives/200211/msg00337.html -->
- <xsl:template name="replace">
- <xsl:param name="string" select="''"/>
- <xsl:param name="pattern" select="''"/>
- <xsl:param name="replacement" select="''"/>
- <xsl:choose>
- <xsl:when test="$pattern != '' and $string != '' and contains($string, $pattern)">
- <xsl:value-of select="substring-before($string, $pattern)"/>
- <xsl:copy-of select="$replacement"/>
- <xsl:call-template name="replace">
- <xsl:with-param name="string" select="substring-after($string, $pattern)"/>
- <xsl:with-param name="pattern" select="$pattern"/>
- <xsl:with-param name="replacement" select="$replacement"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$string"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <!--==== FOOTER ====-->
-
- <xsl:template name="footer">
- <div id="footer">
- Demonstration calendar; place footer information here.
- </div>
- <div id="subFoot">
- Based on the <a href="http://www.bedework.org/">Bedework Calendar</a> |
- <a href="?noxslt=yes">show XML</a> |
- <a href="?refreshXslt=yes">refresh XSLT</a>
- </div>
- </xsl:template>
-</xsl:stylesheet>
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/videocal.css
===================================================================
--- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/videocal.css 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/videocal.css 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,102 +0,0 @@
-/* Font sizes are set in pixels because the screen resolution is 800x600
- Two overscan modes were viewed when creating the styles: this sheet
- accomodates a larger overscan mode. videocal.css is for a
- smaller overscan mode.*/
-
-body {
- margin: 0;
- padding: 0;
- font-family: Arial, Helvetica, sans-serif;
- color: #eee;
- background : #116 url(../../images/videocal/calBackground1.jpg) no-repeat;
-}
-h1 {
- font-size: 38px; /* 38 was optimal */
- color: #ee3;
- background-color: transparent;
- margin: 0;
- padding-top: 0.5em;
- padding-left: 60px;
- padding-bottom: 0;
- padding-right: 50px;
-}
-h2#calTitle {
- width: 100%;
- background-color: black;
- color: #666;
- margin: 0;
- height: 28px;
- padding: 20px 0 0 0; /* 20px top */
- font-size: 20px;
- text-align: center;
-}
-h2#dayTitle {
- width: 100%;
- background-color: #004;
- color: #ccc;
- margin: 0;
- padding: 0.2em 0 0.2em 0;
- font-size: 28px; /* 28 px */
- text-align: center;
-}
-#time {
- color: #eee;
- background-color: transparent;
- margin: 0;
- padding-top: 0.5em;
- padding-left: 90px;
- padding-bottom: 0;
- padding-right: 90px;
- font-size: 28px;
- font-weight: bold;
-}
-#location {
- color: #e99;
- background-color: transparent;
- margin: 0;
- padding: 0 90px 0 90px;
- font-size: 24px;
- font-weight: bold;
-}
-#description {
- color: #aaa;
- background-color: transparent;
- margin: 0;
- padding-top: 1em;
- padding-left: 60px;
- padding-bottom: 0;
- padding-right: 55px;
- font-size: 25px;
- font-weight: bold;
-}
-#calPlug {
- text-align: center;
- vertical-align: middle;
- font-weight: bold;
-}
-#calPlug h1 {
- margin-top: 120px;
- font-size: 52px;
- color: #eee;
- background-color : transparent;
-}
-#calPlug h2 {
- font-size: 42px;
- color: #ee3;
- background-color : transparent;
-}
-#getBack {
- text-align: center;
- color: #eee;
- background-color : transparent;
-}
-#getBack a {
- color: #eee;
- background-color : transparent;
-}
-#info {
- width: 400px;
- margin: 1em auto;
- color: #eee;
- background-color : transparent;
-}
\ No newline at end of file
Deleted: branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/videocal.xsl
===================================================================
--- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/videocal.xsl 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/videocal.xsl 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,210 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="html" indent="yes" media-type="text/html" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd" standalone="yes"/>
- <!-- ======================= -->
- <!-- VIDEO FEED STYLESHEET -->
- <!-- ======================= -->
-
- <!-- Run your browser full screen at 800 x 600 and feed this to video.
- There are better approaches to this, but it's an interesting example. -->
-
-
- <!-- **********************************************************************
- Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved.
-
- Redistribution and use of this distribution in source and binary forms,
- with or without modification, are permitted provided that:
- The above copyright notice and this permission notice appear in all
- copies and supporting documentation;
-
- The name, identifiers, and trademarks of Rensselaer Polytechnic
- Institute are not used in advertising or publicity without the
- express prior written permission of Rensselaer Polytechnic Institute;
-
- DISCLAIMER: The software is distributed" AS IS" without any express or
- implied warranty, including but not limited to, any implied warranties
- of merchantability or fitness for a particular purpose or any warrant)'
- of non-infringement of any current or pending patent rights. The authors
- of the software make no representations about the suitability of this
- software for any particular purpose. The entire risk as to the quality
- and performance of the software is with the user. Should the software
- prove defective, the user assumes the cost of all necessary servicing,
- repair or correction. In particular, neither Rensselaer Polytechnic
- Institute, nor the authors of the software are liable for any indirect,
- special, consequential, or incidental damages related to the software,
- to the maximum extent the law permits. -->
-
- <!-- DEFINE GLOBAL CONSTANTS -->
- <xsl:variable name="appRoot" select="/bedework/approot"/>
- <xsl:variable name="urlPrefix" select="/bedework/urlprefix"/>
- <xsl:variable name="prevDate" select="/bedework/previousdate"/>
- <xsl:variable name="nextDate" select="/bedework/nextdate"/>
- <xsl:variable name="curDate" select="/bedework/currentdate/date"/>
-
- <!-- Duration of each slide in seconds; set this to your preference -->
- <xsl:variable name="slideDuration">10</xsl:variable>
-
- <!-- Number of consecutive days to iterate over; set this to your preference -->
- <xsl:variable name="dayCount">5</xsl:variable>
-
- <!-- Skin name -->
- <xsl:variable name="skinName">videocal</xsl:variable>
-
- <!-- Position of the current day to be displayed -->
- <xsl:variable name="day">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='day']">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='day']/value > $dayCount">1</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/appvar[key='day']/value"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <!-- Position of the next day (add 1)-->
- <xsl:variable name="nextDay" select="number($day)+1"/>
-
- <!-- Event count for the current day -->
- <xsl:variable name="eventCount" select="count(/bedework/eventscalendar/year/month/week/day[date=$curDate]/event)"/>
-
- <!-- Position of the current event being displayed -->
- <xsl:variable name="event">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='event']">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='event']/value > $eventCount">1</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/appvar[key='event']/value"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <!-- Position of the next event (add 1)-->
- <xsl:variable name="nextEvent" select="number($event)+1"/>
-
- <!-- MAIN TEMPLATE -->
- <xsl:template match="/">
- <html lang="en">
- <head>
- <title>Event Calendar Video Feed</title>
- <link rel="stylesheet" href="{$appRoot}/default/default/videocal.css"/>
- <meta name="robots" content="noindex,nofollow"/>
- <script language="JavaScript">
- function today() {
- var now = new Date();
- var today;
- today = now.getFullYear().toString();
- if (now.getMonth() < 9) {
- today += "0";
- }
- today += (now.getMonth() + 1).toString();
- today += now.getDate().toString();
- return today;
- }
- </script>
- <xsl:choose>
- <xsl:when test="/bedework/periodname!='Day'">
- <!-- we're starting up on the wrong view; go to today and begin with the first event;
- the title slide will display during this switch. -->
- <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setViewPeriod.do?viewType=todayView&setappvar=event(1)&setappvar=day(1)&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/>
- </xsl:when>
- <xsl:when test="($nextDay > $dayCount) and ($nextEvent > $eventCount)">
- <!-- passed the last day, and all events have been displayed,
- so start over: go to today, set day=1 and *event=0* to allow
- for the title slide "calPlug" -->
- <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setViewPeriod.do?viewType=todayView&setappvar=event(0)&setappvar=day(1)&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/>
- </xsl:when>
- <xsl:when test="$nextEvent > $eventCount">
- <!-- passed the last event for the day; go to the next day and set event=1 -->
- <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setViewPeriod.do?date={$nextDate}&viewType=dayView&setappvar=event(1)&setappvar=day({$nextDay})&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- otherwise, go to the next event on the same day -->
- <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setup.do?viewType=dayView&setappvar=event({$nextEvent})&setappvar=day({$day})&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/>
- </xsl:otherwise>
- </xsl:choose>
- </head>
- <body>
- <xsl:choose>
- <xsl:when test="($eventCount = 0) or ($event = 0) or (/bedework/periodname!='Day')">
- <div id="calPlug">
- <h1>
- Bedework Calendar of Events
- Video Feed
- </h1>
- <h2>http://www.bedework.org</h2>
- </div>
- </xsl:when>
- <xsl:otherwise>
- <h2 id="calTitle">
- BEDEWORK CALENDAR OF EVENTS
- </h2>
- <h2 id="dayTitle">
- <xsl:value-of select="/bedework/firstday/longdate"/><!--
- <br/>Events: <xsl:value-of select="$event"/> of <xsl:value-of select="$eventCount"/>
- <br/>Days: <xsl:value-of select="$day"/> of <xsl:value-of select="$dayCount"/> -->
- </h2>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month/week/day[date=$curDate]/event[position()=$event]"/>
- </xsl:otherwise>
- </xsl:choose>
- <!-- remove the following two divs if used for video -->
- <div id="getBack">
- (<a href="setup.do?skinNameSticky=default">restore normal calendar</a>)
- </div>
- <div id="info">
- This stylesheet will rotate through five days of events at ten
- second intervals. It is intended as a video feed running full screen
- at 800x600px. It's settings
- can be set from the top of
- the videocal.xsl stylesheet.
- </div>
- </body>
- </html>
- </xsl:template>
-
- <!--==== SINGLE EVENT ====-->
- <xsl:template match="event">
- <h1>
- <xsl:value-of select="summary"/>
- </h1>
- <xsl:if test="(start/allday = 'false')">
- <div id="time">
- <!-- this logic needs to be updated for new event model -->
- <xsl:choose>
- <xsl:when test="start/time=''">
- <xsl:value-of select="start/shortdate"/>
- </xsl:when>
- <xsl:when test="start/date != /bedework/firstday">
- <xsl:value-of select="start/shortdate"/>
- <xsl:value-of select="start/time"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="start/time"/>
- </xsl:otherwise>
- </xsl:choose>
- -
- <xsl:if test="end/longdate != start/longdate">
- <xsl:value-of select="end/shortdate"/>
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:value-of select="end/time"/>
- </div>
- </xsl:if>
- <xsl:if test="location/address!='Campus-wide'">
- <div id="location">
- <xsl:value-of select="location/address"/>
- </div>
- </xsl:if>
- <div id="description">
- <xsl:value-of select="description"/>
- </div>
- </xsl:template>
-
-</xsl:stylesheet>
Deleted: branches/REL-3.1rc4/calendar3/deployment/webuser/uportal2/resources/demoskins/default/default/default.xsl
===================================================================
--- trunk/calendar3/deployment/webuser/uportal2/resources/demoskins/default/default/default.xsl 2006-06-22 16:23:21 UTC (rev 628)
+++ branches/REL-3.1rc4/calendar3/deployment/webuser/uportal2/resources/demoskins/default/default/default.xsl 2006-06-22 21:17:07 UTC (rev 641)
@@ -1,4072 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:output
- method="html"
- indent="yes"
- media-type="text/html"
- doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
- doctype-system="http://www.w3.org/TR/html4/loose.dtd"
- standalone="yes"
-/>
- <!-- ========================================= -->
- <!-- PERSONAL CALENDAR STYLESHEET -->
- <!-- ========================================= -->
-
- <!-- **********************************************************************
- Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved.
-
- Redistribution and use of this distribution in source and binary forms,
- with or without modification, are permitted provided that:
- The above copyright notice and this permission notice appear in all
- copies and supporting documentation;
-
- The name, identifiers, and trademarks of Rensselaer Polytechnic
- Institute are not used in advertising or publicity without the
- express prior written permission of Rensselaer Polytechnic Institute;
-
- DISCLAIMER: The software is distributed" AS IS" without any express or
- implied warranty, including but not limited to, any implied warranties
- of merchantability or fitness for a particular purpose or any warrant)'
- of non-infringement of any current or pending patent rights. The authors
- of the software make no representations about the suitability of this
- software for any particular purpose. The entire risk as to the quality
- and performance of the software is with the user. Should the software
- prove defective, the user assumes the cost of all necessary servicing,
- repair or correction. In particular, neither Rensselaer Polytechnic
- Institute, nor the authors of the software are liable for any indirect,
- special, consequential, or incidental damages related to the software,
- to the maximum extent the law permits. -->
-
- <!-- DEFINE INCLUDES -->
- <xsl:include href="errors.xsl"/>
- <xsl:include href="messages.xsl"/>
-
- <!-- DEFINE GLOBAL CONSTANTS -->
- <!-- URL of html resources (images, css, other html); by default this is
- set to the application root, but for the personal calendar
- this should be changed to point to a
- web server over https to avoid mixed content errors, e.g.,
- <xsl:variable name="resourcesRoot">https://mywebserver.edu/myresourcesdir</xsl:variable>
- -->
- <xsl:variable name="resourcesRoot" select="/bedework/approot"/>
-
- <!-- URL of the XSL template directory -->
- <!-- The approot is an appropriate place to put
- included stylesheets and xml fragments. These are generally
- referenced relatively (like errors.xsl and messages.xsl above);
- this variable is here for your convenience if you choose to
- reference it explicitly. It is not used in this stylesheet, however,
- and can be safely removed if you so choose. -->
- <xsl:variable name="appRoot" select="/bedework/approot"/>
-
- <!-- Properly encoded prefixes to the application actions; use these to build
- urls; allows the application to be used without cookies or within a portal. -->
- <xsl:variable name="setup" select="/bedework/urlPrefixes/setup"/>
- <xsl:variable name="setSelection" select="/bedework/urlPrefixes/setSelection"/>
- <xsl:variable name="setViewPeriod" select="/bedework/urlPrefixes/setViewPeriod"/>
- <xsl:variable name="eventView" select="/bedework/urlPrefixes/eventView"/>
- <xsl:variable name="initEvent" select="/bedework/urlPrefixes/initEvent"/>
- <xsl:variable name="addEvent" select="/bedework/urlPrefixes/addEvent"/>
- <xsl:variable name="addEventUsingPage" select="/bedework/urlPrefixes/addEventUsingPage"/>
- <xsl:variable name="event-addEventRefComplete" select="/bedework/urlPrefixes/event/addEventRefComplete/a/@href"/>
- <xsl:variable name="event-setAccess" select="/bedework/urlPrefixes/event/setAccess/a/@href"/>
- <xsl:variable name="event-selectCalForEvent" select="/bedework/urlPrefixes/event/selectCalForEvent/a/@href"/>
- <xsl:variable name="editEvent" select="/bedework/urlPrefixes/editEvent"/>
- <xsl:variable name="delEvent" select="/bedework/urlPrefixes/delEvent"/>
- <xsl:variable name="addEventRef" select="/bedework/urlPrefixes/addEventRef"/>
- <xsl:variable name="export" select="/bedework/urlPrefixes/export"/>
- <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mailEvent"/>
- <xsl:variable name="showPage" select="/bedework/urlPrefixes/showPage"/>
- <xsl:variable name="manageLocations" select="/bedework/urlPrefixes/manageLocations"/>
- <xsl:variable name="addLocation" select="/bedework/urlPrefixes/addLocation"/>
- <xsl:variable name="editLocation" select="/bedework/urlPrefixes/editLocation"/>
- <xsl:variable name="delLocation" select="/bedework/urlPrefixes/delLocation"/>
- <xsl:variable name="initEventAlarm" select="/bedework/urlPrefixes/initEventAlarm"/>
- <xsl:variable name="setAlarm" select="/bedework/urlPrefixes/setAlarm"/>
- <xsl:variable name="initUpload" select="/bedework/urlPrefixes/initUpload"/>
- <xsl:variable name="upload" select="/bedework/urlPrefixes/upload"/>
- <xsl:variable name="freeBusy-fetch" select="/bedework/urlPrefixes/freeBusy/fetch/a/@href"/>
- <xsl:variable name="freeBusy-setAccess" select="/bedework/urlPrefixes/freeBusy/setAccess/a/@href"/>
- <!-- calendars -->
- <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/fetchPublicCalendars"/>
- <xsl:variable name="calendar-fetch" select="/bedework/urlPrefixes/calendar/fetch/a/@href"/><!-- used -->
- <xsl:variable name="calendar-fetchDescriptions" select="/bedework/urlPrefixes/calendar/fetchDescriptions/a/@href"/><!-- used -->
- <xsl:variable name="calendar-initAdd" select="/bedework/urlPrefixes/calendar/initAdd/a/@href"/><!-- used -->
- <xsl:variable name="calendar-delete" select="/bedework/urlPrefixes/calendar/delete/a/@href"/>
- <xsl:variable name="calendar-fetchForDisplay" select="/bedework/urlPrefixes/calendar/fetchForDisplay/a/@href"/>
- <xsl:variable name="calendar-fetchForUpdate" select="/bedework/urlPrefixes/calendar/fetchForUpdate/a/@href"/><!-- used -->
- <xsl:variable name="calendar-update" select="/bedework/urlPrefixes/calendar/update/a/@href"/><!-- used -->
- <xsl:variable name="calendar-setAccess" select="/bedework/urlPrefixes/calendar/setAccess/a/@href"/>
- <!-- subscriptions -->
- <xsl:variable name="subscriptions-fetch" select="/bedework/urlPrefixes/subscriptions/fetch/a/@href"/>
- <xsl:variable name="subscriptions-fetchForUpdate" select="/bedework/urlPrefixes/subscriptions/fetchForUpdate/a/@href"/>
- <xsl:variable name="subscriptions-addSubByUri" select="/bedework/urlPrefixes/subscriptions/addSubByUri/a/@href"/>
- <xsl:variable name="subscriptions-subscribeByUri" select="/bedework/urlPrefixes/subscriptions/subscribeByUri/a/@href"/>
- <xsl:variable name="subscriptions-initAdd" select="/bedework/urlPrefixes/subscriptions/initAdd/a/@href"/>
- <xsl:variable name="subscriptions-subscribe" select="/bedework/urlPrefixes/subscriptions/subscribe/a/@href"/>
- <!-- preferences -->
- <xsl:variable name="prefs-fetchForUpdate" select="/bedework/urlPrefixes/prefs/fetchForUpdate/a/@href"/>
- <xsl:variable name="prefs-update" select="/bedework/urlPrefixes/prefs/update/a/@href"/>
-
- <!-- URL of the web application - includes web context
- <xsl:variable name="urlPrefix" select="/bedework/urlprefix"/> -->
-
- <!-- Other generally useful global variables -->
- <xsl:variable name="confId" select="/bedework/confirmationid"/>
- <xsl:variable name="prevdate" select="/bedework/previousdate"/>
- <xsl:variable name="nextdate" select="/bedework/nextdate"/>
- <xsl:variable name="curdate" select="/bedework/currentdate/date"/>
- <xsl:variable name="skin">default</xsl:variable>
- <xsl:variable name="publicCal">/cal</xsl:variable>
-
- <!-- BEGIN MAIN TEMPLATE -->
- <xsl:template match="/">
- <html lang="en">
- <head>
- <xsl:call-template name="headSection"/>
- </head>
- <body>
- <xsl:choose>
- <xsl:when test="/bedework/page='selectCalForEvent'">
- <xsl:call-template name="selectCalForEvent"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="headBar"/>
- <xsl:if test="/bedework/message">
- <div id="messages">
- <xsl:apply-templates select="/bedework/message"/>
- </div>
- </xsl:if>
- <xsl:if test="/bedework/error">
- <div id="errors">
- <xsl:apply-templates select="/bedework/error"/>
- </div>
- </xsl:if>
- <table id="bodyBlock" cellspacing="0">
- <tr>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='sidebar']/value='closed'">
- <td id="sideBarClosed">
- <img src="{$resourcesRoot}/resources/spacer.gif" width="1" height="1" border="0" alt="*"/>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td id="sideBar">
- <xsl:call-template name="sideBar"/>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- <td id="bodyContent">
- <xsl:call-template name="tabs"/>
- <xsl:call-template name="navigation"/>
- <xsl:choose>
- <xsl:when test="/bedework/page='event'">
- <!-- show an event -->
- <xsl:apply-templates select="/bedework/event"/>
- </xsl:when>
- <xsl:when test="/bedework/page='addEvent'">
- <xsl:call-template name="addEvent"/>
- </xsl:when>
- <xsl:when test="/bedework/page='addEventRef'">
- <xsl:apply-templates select="/bedework/event" mode="addEventRef"/>
- </xsl:when>
- <xsl:when test="/bedework/page='editEvent'">
- <!-- edit an event -->
- <xsl:apply-templates select="/bedework/formElements" mode="editEvent"/>
- </xsl:when>
- <xsl:when test="/bedework/page='alarmOptions'">
- <xsl:call-template name="alarmOptions" />
- </xsl:when>
- <xsl:when test="/bedework/page='upload'">
- <xsl:call-template name="upload" />
- </xsl:when>
- <xsl:when test="/bedework/page='manageLocations'">
- <xsl:call-template name="manageLocations" />
- </xsl:when>
- <xsl:when test="/bedework/page='editLocation'">
- <xsl:apply-templates select="/bedework/formElements" mode="editLocation"/>
- </xsl:when>
- <xsl:when test="/bedework/page='subscriptions' or
- /bedework/page='modSubscription' or
- /bedework/page='addSubByUri'">
- <xsl:apply-templates select="/bedework/subscriptions"/>
- </xsl:when>
- <xsl:when test="/bedework/page='calendarList' or
- /bedework/page='calendarDescriptions' or
- /bedework/page='displayCalendar' or
- /bedework/page='modCalendar' or
- /bedework/page='deleteCalendarConfirm' or
- /bedework/page='calendarReferenced'">
- <xsl:apply-templates select="/bedework/calendars"/>
- </xsl:when>
- <xsl:when test="/bedework/page='freeBusy'">
- <xsl:call-template name="utilBar"/>
- <xsl:apply-templates select="/bedework/freebusy"/>
- </xsl:when>
- <xsl:when test="/bedework/page='modPrefs'">
- <xsl:apply-templates select="/bedework/prefs"/>
- </xsl:when>
- <xsl:when test="/bedework/page='other'">
- <!-- show an arbitrary page -->
- <xsl:call-template name="selectPage"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- otherwise, show the eventsCalendar -->
- <xsl:call-template name="utilBar"/>
- <!-- main eventCalendar content -->
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <xsl:call-template name="listView"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'">
- <xsl:call-template name="listView"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="weekView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
- <xsl:call-template name="listView"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="monthView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="yearView"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
- </table>
- <!-- footer -->
- <xsl:call-template name="footer"/>
- </xsl:otherwise>
- </xsl:choose>
- </body>
- </html>
- </xsl:template>
-
- <!--==== HEAD SECTION ====-->
-
- <xsl:template name="headSection">
- <title>Bedework: Personal Calendar Client</title>
- <meta name="robots" content="noindex,nofollow"/>
- <link rel="stylesheet" href="{$resourcesRoot}/default/default/default.css"/>
- <link rel="stylesheet" href="{$resourcesRoot}/default/default/subColors.css"/>
- <link rel="stylesheet" type="text/css" media="print" href="{$resourcesRoot}/default/default/print.css" />
- <link rel="icon" type="image/ico" href="{$resourcesRoot}/resources/bedework.ico" />
- <xsl:if test="/bedework/page='addEvent' or
- /bedework/page='addEventRef' or
- /bedework/page='editEvent' or
- /bedework/page='selectCalForEvent' or
- /bedework/page='upload' or
- /bedework/page='addSubByUri' or
- /bedework/page='modPrefs'">
- <script type="text/javascript" src="{$resourcesRoot}/resources/includes.js"></script>
- </xsl:if>
- <xsl:if test="/bedework/page='addEvent' or
- /bedework/page='editEvent'">
- <script type="text/javascript" src="{$resourcesRoot}/resources/bwClock.js"></script>
- <link rel="stylesheet" href="{$resourcesRoot}/resources/bwClock.css"/>
- <script type="text/javascript" src="{$resourcesRoot}/resources/dynCalendarWidget.js"></script>
- <link rel="stylesheet" href="{$resourcesRoot}/resources/dynCalendarWidget.css"/>
- <script type="text/javascript" src="{$resourcesRoot}/resources/browserSniffer.js"></script>
- </xsl:if>
- </xsl:template>
-
- <!--==== HEADER TEMPLATES and NAVIGATION ====-->
-
- <xsl:template name="headBar">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" id="logoTable">
- <tr>
- <td colspan="3" id="logoCell"><a href="http://www.bedework.org/"><img src="{$resourcesRoot}/resources/bedeworkLogo.gif" width="292" height="75" border="0" alt="Bedework"/></a></td>
- <td colspan="2" id="schoolLinksCell">
- <h2>Personal Calendar</h2>
- <a href="{$publicCal}">Public Calendar</a> |
- <a href="http://www.yourschoolhere.edu">School Home</a> |
- <a href="http://www.bedework.org/">Other Link</a> |
- <a href="http://helpdesk.rpi.edu/update.do?catcenterkey=51">
- Example Calendar Help
- </a>
- </td>
- </tr>
- </table>
- <table id="curDateRangeTable" cellspacing="0">
- <td class="sideBarOpenCloseIcon">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='sidebar']/value='closed'">
- <a href="?setappvar=sidebar(opened)">
- <img alt="open sidebar" src="{$resourcesRoot}/resources/sideBarArrowOpen.gif" width="21" height="16" border="0" align="left"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="?setappvar=sidebar(closed)">
- <img alt="close sidebar" src="{$resourcesRoot}/resources/sideBarArrowClose.gif" width="21" height="16" border="0" align="left"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="date">
- <xsl:value-of select="/bedework/firstday/longdate"/>
- <xsl:if test="/bedework/periodname!='Day'">
- -
- <xsl:value-of select="/bedework/lastday/longdate"/>
- </xsl:if>
- </td>
- <td class="rssPrint">
- <a href="javascript:window.print()" title="print this view">
- <img alt="print this view" src="{$resourcesRoot}/resources/std-print-icon.gif" width="20" height="14" border="0"/> print
- </a>
- <a class="rss" href="{$setSelection}&setappvar=summaryMode(details)&skinName=rss" title="RSS feed">RSS</a>
- </td>
- </table>
- </xsl:template>
-
- <xsl:template name="sideBar">
- <h3>
- <!--<img alt="manage views" src="{$resourcesRoot}/resources/glassFill-icon-menuButton.gif" width="12" height="11" border="0"/>-->
- views
- </h3>
- <ul id="myViews">
- <xsl:choose>
- <xsl:when test="/bedework/views/view">
- <xsl:for-each select="/bedework/views/view">
- <xsl:variable name="viewName" select="name"/>
- <xsl:choose>
- <xsl:when test="/bedework/selectionState/selectionType = 'view'
- and name=/bedework/selectionState/view/name">
- <li class="selected"><a href="{$setSelection}&viewName={$viewName}"><xsl:value-of select="name"/></a></li>
- </xsl:when>
- <xsl:otherwise>
- <li><a href="{$setSelection}&viewName={$viewName}"><xsl:value-of select="name"/></a></li>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <li class="none">no views</li>
- </xsl:otherwise>
- </xsl:choose>
- </ul>
-
- <h3>
- <a href="{$calendar-fetch}">
- <img alt="manage calendars" src="{$resourcesRoot}/resources/glassFill-icon-menuButton.gif" width="12" height="11" border="0"/> calendars
- </a>
- </h3>
- <ul class="calendarTree">
- <xsl:apply-templates select="/bedework/myCalendars/calendars/calendar" mode="myCalendars"/>
- </ul>
-
- <h3>
- <a href="{$subscriptions-fetch}" title="manage subscriptions">
- <img alt="manage subscriptions" src="{$resourcesRoot}/resources/glassFill-icon-menuButton.gif" width="12" height="11" border="0"/>
- subscriptions
- </a>
- </h3>
- <ul class="calendarTree">
- <xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/></xsl:variable>
- <xsl:choose>
- <xsl:when test="/bedework/mySubscriptions/subscription[not(contains(uri,$userPath))]">
- <xsl:apply-templates select="/bedework/mySubscriptions/subscription[not(contains(uri,$userPath))]" mode="mySubscriptions"/>
- </xsl:when>
- <xsl:otherwise>
- <li class="none">no subscriptions</li>
- </xsl:otherwise>
- </xsl:choose>
- </ul>
-
- <h3>options</h3>
- <ul id="sideBarMenu">
- <li><a href="{$manageLocations}">Manage Locations</a></li>
- <li><a href="{$prefs-fetchForUpdate}">Preferences</a></li>
- </ul>
- </xsl:template>
-
- <xsl:template name="tabs">
- <xsl:choose>
- <xsl:when test="/bedework/page='eventscalendar' or /bedework/page='freeBusy'">
- <xsl:variable name="navAction">
- <xsl:choose>
- <xsl:when test="/bedework/page='freeBusy'"><xsl:value-of select="$freeBusy-fetch"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="$setViewPeriod"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
- <tr>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <a href="{$navAction}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-day-on.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$navAction}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
- <a href="{$navAction}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-week-on.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$navAction}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Month'">
- <a href="{$navAction}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-month-on.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$navAction}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <!-- don't allow switching to year for free busy view, so only use setViewPeriod action -->
- <xsl:when test="/bedework/periodname='Year'">
- <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-year-on.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="rightCell">
- logged in as
- <xsl:text> </xsl:text>
- <strong><xsl:value-of select="/bedework/userid"/></strong>
- <xsl:text> </xsl:text>
- <span class="logout"><a href="{$setup}&logout=true">logout</a></span>
- </td>
- </tr>
- </table>
- </xsl:when>
- <xsl:otherwise>
- <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
- <tr>
- <td>
- <a href="{$setViewPeriod}&viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}&viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}&viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
- </td>
- <td>
- <a href="{$setViewPeriod}&viewType=yearView&date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
- </td>
- <td class="rightCell">
- logged in as
- <xsl:text> </xsl:text>
- <strong><xsl:value-of select="/bedework/userid"/></strong>
- <xsl:text> </xsl:text>
- <span class="logout"><a href="{$setup}&logout=true">logout</a></span>
- </td>
- </tr>
- </table>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="navigation">
- <xsl:variable name="navAction">
- <xsl:choose>
- <xsl:when test="/bedework/page='freeBusy'"><xsl:value-of select="$freeBusy-fetch"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="$setViewPeriod"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <table border="0" cellpadding="0" cellspacing="0" id="navigationBarTable">
- <tr>
- <td class="leftCell">
- <a href="{$navAction}&date={$prevdate}"><img src="{$resourcesRoot}/resources/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a>
- <a href="{$navAction}&date={$nextdate}"><img src="{$resourcesRoot}/resources/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a>
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year'">
- <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:value-of select="/bedework/firstday/monthname"/>, <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Week'">
- Week of <xsl:value-of select="substring-after(/bedework/firstday/longdate,', ')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/firstday/longdate"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="todayButton">
- <a href="{$navAction}&viewType=todayView&date={$curdate}">
- <img src="{$resourcesRoot}/resources/std-button-today-off.gif" width="54" height="22" border="0" alt="Go to Today" align="left"/>
- </a>
- </td>
- <td align="right" class="gotoForm">
- <form name="calForm" method="get" action="{$navAction}">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:if test="/bedework/periodname!='Year'">
- <td>
- <select name="viewStartDate.month">
- <xsl:for-each select="/bedework/monthvalues/val">
- <xsl:variable name="temp" select="."/>
- <xsl:variable name="pos" select="position()"/>
- <xsl:choose>
- <xsl:when test="/bedework/monthvalues[start=$temp]">
- <option value="{$temp}" selected="selected">
- <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
- </option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$temp}">
- <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
- </option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </td>
- <xsl:if test="/bedework/periodname!='Month'">
- <td>
- <select name="viewStartDate.day">
- <xsl:for-each select="/bedework/dayvalues/val">
- <xsl:variable name="temp" select="."/>
- <xsl:variable name="pos" select="position()"/>
- <xsl:choose>
- <xsl:when test="/bedework/dayvalues[start=$temp]">
- <option value="{$temp}" selected="selected">
- <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
- </option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$temp}">
- <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
- </option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </select>
- </td>
- </xsl:if>
- </xsl:if>
- <td>
- <xsl:variable name="temp" select="/bedework/yearvalues/start"/>
- <input type="text" name="viewStartDate.year" maxlength="4" size="4" value="{$temp}"/>
- </td>
- <td>
- <input name="submit" type="submit" value="go"/>
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template name="utilBar">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" id="utilBarTable">
- <tr>
- <td class="leftCell">
- <xsl:choose>
- <xsl:when test="/bedework/periodname = 'day'">
- <xsl:variable name="date" select="/bedework/firstday/date"/>
- <a href="{$initEvent}&startdate={$date}" title="add event">
- <img src="{$resourcesRoot}/resources/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="add event"/>
- add event
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$initEvent}" title="add event">
- <img src="{$resourcesRoot}/resources/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="add event"/>
- add event
- </a>
- </xsl:otherwise>
- </xsl:choose>
- <a href="{$initUpload}" title="upload event">
- <img src="{$resourcesRoot}/resources/std-icalUpload-icon-small.gif" width="12" height="16" border="0" alt="upload event"/>
- upload
- </a>
- </td>
- <td class="rightCell">
-
- <!-- show free / busy -->
- <xsl:choose>
- <xsl:when test="/bedework/periodname!='Year'">
- <xsl:choose>
- <xsl:when test="/bedework/page='freeBusy'">
- <a href="{$setViewPeriod}&date={$curdate}"><img src="{$resourcesRoot}/resources/std-button-events.gif" width="70" height="21" border="0" alt="show events"/></a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$freeBusy-fetch}&date={$curdate}"><img src="{$resourcesRoot}/resources/std-button-freebusy.gif" width="70" height="21" border="0" alt="show free/busy"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <img src="{$resourcesRoot}/resources/std-button-freebusy-off.gif" width="70" height="21" border="0" alt="show free/busy"/>
- </xsl:otherwise>
- </xsl:choose>
-
- <!-- toggle list / calendar view -->
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Day'">
- <img src="{$resourcesRoot}/resources/std-button-listview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Year'">
- <img src="{$resourcesRoot}/resources/std-button-calview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </xsl:when>
- <xsl:when test="/bedework/periodname='Month'">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
- <a href="{$setup}&setappvar=monthViewMode(cal)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/resources/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}&setappvar=monthViewMode(list)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/resources/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'">
- <a href="{$setup}&setappvar=weekViewMode(cal)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/resources/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}&setappvar=weekViewMode(list)" title="toggle list/calendar view">
- <img src="{$resourcesRoot}/resources/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
-
- <!-- summary / detailed mode toggle -->
- <xsl:choose>
- <xsl:when test="/bedework/periodname='Year' or
- (/bedework/periodname='Month' and
- (/bedework/appvar[key='monthViewMode']/value='cal' or
- not(/bedework/appvar[key='monthViewMode']))) or
- (/bedework/periodname='Week' and
- (/bedework/appvar[key='weekViewMode']/value='cal' or
- not(/bedework/appvar[key='weekViewMode'])))">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <img src="{$resourcesRoot}/resources/std-button-summary-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
- </xsl:when>
- <xsl:otherwise>
- <img src="{$resourcesRoot}/resources/std-button-details-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <a href="{$setup}&setappvar=summaryMode(summary)" title="toggle summary/detailed view">
- <img src="{$resourcesRoot}/resources/std-button-summary.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$setup}&setappvar=summaryMode(details)" title="toggle summary/detailed view">
- <img src="{$resourcesRoot}/resources/std-button-details.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
-
- <!-- refresh button -->
- <a href="{$setup}"><img src="{$resourcesRoot}/resources/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== LIST VIEW (for day, week, and month) ====-->
- <xsl:template name="listView">
- <table id="listTable" border="0" cellpadding="0" cellspacing="0">
- <xsl:choose>
- <xsl:when test="not(/bedework/eventscalendar/year/month/week/day/event)">
- <tr>
- <td class="noEventsCell">
- No events to display.
- </td>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week/day[event]">
- <xsl:if test="/bedework/periodname='Week' or /bedework/periodname='Month' or /bedework/periodname=''">
- <tr>
- <td colspan="6" class="dateRow">
- <xsl:variable name="date" select="date"/>
- <a href="{$initEvent}&startdate={$date}" class="listAdd">
- add event
- </a>
- <a href="{$setViewPeriod}&viewType=dayView&date={$date}">
- <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/>
- </a>
- </td>
- </tr>
- </xsl:if>
- <xsl:for-each select="event">
- <xsl:variable name="id" select="id"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <tr>
- <xsl:variable name="dateRangeStyle">
- <xsl:choose>
- <xsl:when test="start/shortdate = parent::day/shortdate">
- <xsl:choose>
- <xsl:when test="start/allday = 'true'">dateRangeCrossDay</xsl:when>
- <xsl:when test="start/hour24 < 6">dateRangeEarlyMorning</xsl:when>
- <xsl:when test="start/hour24 < 12">dateRangeMorning</xsl:when>
- <xsl:when test="start/hour24 < 18">dateRangeAfternoon</xsl:when>
- <xsl:otherwise>dateRangeEvening</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>dateRangeCrossDay</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="start/allday = 'true' and
- start/shortdate = end/shortdate">
- <td class="{$dateRangeStyle} center" colspan="3">
- all day
- </td>
- </xsl:when>
- <xsl:when test="start/shortdate = end/shortdate and
- start/time = end/time">
- <td class="{$dateRangeStyle} center" colspan="3">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:value-of select="start/time"/>
- </a>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td class="{$dateRangeStyle} right">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:choose>
- <xsl:when test="start/allday = 'true' and
- parent::day/shortdate = start/shortdate">
- today
- </xsl:when>
- <xsl:when test="parent::day/shortdate != start/shortdate">
- <span class="littleArrow">«</span> 
- <xsl:value-of select="start/month"/>/<xsl:value-of select="start/day"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="start/time"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </td>
- <td class="{$dateRangeStyle} center">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">-</a>
- </td>
- <td class="{$dateRangeStyle} left">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:choose>
- <xsl:when test="end/allday = 'true' and
- parent::day/shortdate = end/shortdate">
- today
- </xsl:when>
- <xsl:when test="parent::day/shortdate != end/shortdate">
- <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/>
-  <span class="littleArrow">»</span>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="end/time"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:variable name="descriptionClass">
- <xsl:choose>
- <xsl:when test="status='CANCELLED'">description bwStatusCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">description bwStatusTentative</xsl:when>
- <xsl:otherwise>description</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="subStyle" select="subscription/style"/>
- <td class="{$descriptionClass} {$subStyle}">
- <xsl:if test="status='CANCELLED'"><strong>CANCELLED: </strong></xsl:if>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <strong>
- <xsl:value-of select="summary"/>:
- </strong>
- <xsl:value-of select="description"/> 
- <em>
- <xsl:value-of select="location/address"/>
- <xsl:if test="location/subaddress != ''">
- , <xsl:value-of select="location/subaddress"/>
- </xsl:if>. 
- <xsl:if test="cost!=''">
- <xsl:value-of select="cost"/>. 
- </xsl:if>
- <xsl:if test="sponsor/name!='none'">
- Contact: <xsl:value-of select="sponsor/name"/>
- </xsl:if>
- </em>
- </a>
- <xsl:if test="link != ''">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}" class="moreLink"><xsl:value-of select="link"/></a>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">
- <xsl:value-of select="summary"/>
- <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td class="eventLinks">
- <xsl:call-template name="eventLinks"/>
- </td>
- <td class="smallIcon">
- <xsl:variable name="eventIcalName" select="concat($guid,'.ics')"/>
- <a href="{$export}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
- <img src="{$resourcesRoot}/resources/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/>
- </a>
- </td>
- </tr>
- </xsl:for-each>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </table>
- </xsl:template>
-
- <xsl:template name="eventLinks">
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <xsl:choose>
- <xsl:when test="isAnnotation">
- <xsl:choose>
- <xsl:when test="recurring=true">
- <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&confirmationid={$confId}">Remove All</a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&confirmationid={$confId}">Remove</a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="calendar/owner = /bedework/userid">
- <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">Edit</a> |
- <xsl:choose>
- <xsl:when test="recurring=true">
- <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&confirmationid={$confId}">Delete All</a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&confirmationid={$confId}">Delete</a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$subscriptions-fetch}">Subscription</a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <!--==== WEEK CALENDAR VIEW ====-->
- <xsl:template name="weekView">
- <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:for-each select="/bedework/daynames/val">
- <th class="dayHeading"><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <tr>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week/day">
- <xsl:variable name="dayPos" select="position()"/>
- <xsl:if test="filler='false'">
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$initEvent}&startdate={$dayDate}" class="gridAdd" title="add event">
- <img src="{$resourcesRoot}/resources/addEvent-forGrid-icon.gif" width="9" height="10" border="0" alt="add event"/>
- </a>
- <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}" class="dayLink" title="go to day">
- <xsl:value-of select="value"/>
- </a>
- <ul>
- <xsl:apply-templates select="event" mode="calendarLayout">
- <xsl:with-param name="dayPos" select="$dayPos"/>
- </xsl:apply-templates>
- </ul>
- </td>
- </xsl:if>
- </xsl:for-each>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== MONTH CALENDAR VIEW ====-->
- <xsl:template name="monthView">
- <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:for-each select="/bedework/daynames/val">
- <th class="dayHeading"><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <xsl:for-each select="/bedework/eventscalendar/year/month/week">
- <tr>
- <xsl:for-each select="day">
- <xsl:variable name="dayPos" select="position()"/>
- <xsl:choose>
- <xsl:when test="filler='true'">
- <td class="filler"> </td>
- </xsl:when>
- <xsl:otherwise>
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$initEvent}&startdate={$dayDate}" class="gridAdd" title="add event">
- <img src="{$resourcesRoot}/resources/addEvent-forGrid-icon.gif" width="10" height="10" border="0" alt="add event"/>
- </a>
- <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}" class="dayLink" title="go to day">
- <xsl:value-of select="value"/>
- </a>
- <ul>
- <xsl:apply-templates select="event" mode="calendarLayout">
- <xsl:with-param name="dayPos" select="$dayPos"/>
- </xsl:apply-templates>
- </ul>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </tr>
- </xsl:for-each>
- </table>
- </xsl:template>
-
- <xsl:template match="event" mode="calendarLayout">
- <xsl:param name="dayPos"/>
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <xsl:variable name="eventRootClass">
- <xsl:choose>
- <!-- Otherwise: Alternating colors for all standard events -->
- <xsl:when test="position() = 1">event firstEvent</xsl:when>
- <xsl:otherwise>event</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="eventClass">
- <xsl:choose>
- <!-- Special styles for the month grid -->
- <xsl:when test="status='CANCELLED'">eventCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">eventTentative</xsl:when>
- <!-- Otherwise: Alternating colors for all standard events -->
- <xsl:when test="position() mod 2 = 1">eventLinkA</xsl:when>
- <xsl:otherwise>eventLinkB</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- User defined subscription styles.
- These are set in the add/modify subscription forms which
- rely (in this stylesheet) on subColors.css; if present, these
- override the background-color set by eventClass. User styles should
- not be used for cancelled events (tentative is ok). -->
- <xsl:variable name="subColor">
- <xsl:choose>
- <xsl:when test="status != 'CANCELLED' and
- subscription/style != '' and
- subscription/style != 'default'"><xsl:value-of select="subscription/style"/></xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <li>
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"
- class="{$eventRootClass} {$eventClass} {$subColor}">
- <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
- <xsl:value-of select="summary"/>
- <xsl:variable name="eventTipClass">
- <xsl:choose>
- <xsl:when test="$dayPos > 5">eventTipReverse</xsl:when>
- <xsl:otherwise>eventTip</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <span class="{$eventTipClass}">
- <xsl:if test="status='CANCELLED'"><span class="eventTipStatusCancelled">CANCELLED</span></xsl:if>
- <xsl:if test="status='TENTATIVE'"><span class="eventTipStatusTentative">TENTATIVE</span></xsl:if>
- <strong><xsl:value-of select="summary"/></strong><br/>
- Time:
- <xsl:choose>
- <xsl:when test="start/allday = 'false'">
- <xsl:value-of select="start/time"/>
- <xsl:if test="start/time != end/time">
- - <xsl:value-of select="end/time"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- all day
- </xsl:otherwise>
- </xsl:choose><br/>
- <xsl:if test="location/address">
- Location: <xsl:value-of select="location/address"/><br/>
- </xsl:if>
- Calendar:
- <xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/>/</xsl:variable>
- <xsl:choose>
- <xsl:when test="contains(calendar/path,$userPath)">
- <xsl:value-of select="substring-after(calendar/path,$userPath)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="calendar/path"/>
- </xsl:otherwise>
- </xsl:choose><br/>
- Type:
- <xsl:choose>
- <xsl:when test="isAnnotation">
- public event
- </xsl:when>
- <xsl:when test="calendar/owner = /bedework/userid">
- personal event, editable
- </xsl:when>
- <xsl:otherwise>
- subscription
- </xsl:otherwise>
- </xsl:choose>
- </span>
- </a>
- </li>
- </xsl:template>
-
- <!--==== YEAR VIEW ====-->
- <xsl:template name="yearView">
- <table id="yearCalendarTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() <= 3]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 3) and (position() <= 6)]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 6) and (position() <= 9)]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() > 9]"/>
- </tr>
- </table>
- </xsl:template>
-
- <!-- year view month tables -->
- <xsl:template match="month">
- <td>
- <table class="yearViewMonthTable" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="8" class="monthName">
- <xsl:variable name="firstDayOfMonth" select="week/day/date"/>
- <a href="{$setViewPeriod}&viewType=monthView&date={$firstDayOfMonth}">
- <xsl:value-of select="longname"/>
- </a>
- </td>
- </tr>
- <tr>
- <th> </th>
- <xsl:for-each select="/bedework/shortdaynames/val">
- <th><xsl:value-of select="."/></th>
- </xsl:for-each>
- </tr>
- <xsl:for-each select="week">
- <tr>
- <td class="weekCell">
- <xsl:variable name="firstDayOfWeek" select="day/date"/>
- <a href="{$setViewPeriod}&viewType=weekView&date={$firstDayOfWeek}">
- <xsl:value-of select="value"/>
- </a>
- </td>
- <xsl:for-each select="day">
- <xsl:choose>
- <xsl:when test="filler='true'">
- <td class="filler"> </td>
- </xsl:when>
- <xsl:otherwise>
- <td>
- <xsl:variable name="dayDate" select="date"/>
- <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}">
- <xsl:value-of select="value"/>
- </a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </tr>
- </xsl:for-each>
- </table>
- </td>
- </xsl:template>
-
- <!--==== SINGLE EVENT ====-->
- <xsl:template match="event">
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/encodedPath"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <xsl:variable name="statusClass">
- <xsl:choose>
- <xsl:when test="status='CANCELLED'">bwStatusCancelled</xsl:when>
- <xsl:when test="status='TENTATIVE'">bwStatusTentative</xsl:when>
- <xsl:otherwise>bwStatusConfirmed</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <h2 class="{$statusClass}">
- <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
- <xsl:choose>
- <xsl:when test="link != ''">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}">
- <xsl:value-of select="summary"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="summary"/>
- </xsl:otherwise>
- </xsl:choose>
- </h2>
- <table class="common" cellspacing="0">
- <tr>
- <th colspan="2" class="commonHeader">
- <div id="eventActions">
- <xsl:variable name="eventIcalName" select="concat($guid,'.ics')"/>
- <a href="{$export}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
- <img src="{$resourcesRoot}/resources/std-icalDownload-icon-small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/>
- Download
- </a> |
- <xsl:choose>
- <xsl:when test="isAnnotation">
- <xsl:choose>
- <xsl:when test="recurring=true">
- <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&confirmationid={$confId}">
- <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/>
- Remove All (recurring)
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&confirmationid={$confId}">
- <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/>
- Remove
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="currentAccess/current-user-privilege-set/privilege/write-content">
- <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&confirmationid={$confId}">
- <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit"/>
- Edit
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$subscriptions-fetch}">
- <img src="{$resourcesRoot}/resources/std-ical_iconSubsDkGray.gif" width="12" height="16" border="0" alt="edit"/>
- Manage Subscriptions
- </a>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="currentAccess/current-user-privilege-set/privilege/unbind and not(isAnnotation)">
- |
- <xsl:choose>
- <xsl:when test="recurring=true">
- <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&confirmationid={$confId}">
- <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/>
- Delete All (recurring)
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&confirmationid={$confId}">
- <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/>
- Delete
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </div>
- <xsl:choose>
- <xsl:when test="calendar/owner = /bedework/userid">
- Personal Event
- </xsl:when>
- <xsl:when test="starts-with(calendar/path,'/user/')">
- User Event (<xsl:value-of select="calendar/owner"/>)
- </xsl:when>
- <xsl:when test="isAnnotation">
- Public Event
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="starts-with(calendar/path,'/public/')">
- Public Event from Subscription
- </xsl:when>
- <xsl:otherwise>
- Event from Subscription
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </th>
- </tr>
- <tr>
- <td class="fieldname">When:</td>
- <td class="fieldval">
- <xsl:value-of select="start/dayname"/>, <xsl:value-of select="start/longdate"/><xsl:text> </xsl:text>
- <xsl:if test="start/allday = 'false'">
- <span class="time"><xsl:value-of select="start/time"/></span>
- </xsl:if>
- <xsl:if test="(end/longdate != start/longdate) or
- ((end/longdate = start/longdate) and (end/time != start/time))"> - </xsl:if>
- <xsl:if test="end/longdate != start/longdate">
- <xsl:value-of select="substring(end/dayname,1,3)"/>, <xsl:value-of select="end/longdate"/><xsl:text> </xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="start/allday = 'true'">
- <span class="time"><em>(all day)</em></span>
- </xsl:when>
- <xsl:when test="end/longdate != start/longdate">
- <span class="time"><xsl:value-of select="end/time"/></span>
- </xsl:when>
- <xsl:when test="end/time != start/time">
- <span class="time"><xsl:value-of select="end/time"/></span>
- </xsl:when>
- </xsl:choose>
- </td>
- <!--<th class="icon" rowspan="2">
- <xsl:variable name="eventIcalName" select="concat($guid,'.ics')"/>
- <a href="{$export}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
- <img src="{$resourcesRoot}/resources/std-ical-icon.gif" width="20" height="26" border="0" align="left" alt="Download this event"/>
- </a>
- </th>-->
- </tr>
- <tr>
- <td class="fieldname">Where:</td>
- <td class="fieldval">
- <xsl:choose>
- <xsl:when test="location/link=''">
- <xsl:value-of select="location/address"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="locationLink" select="location/link"/>
- <a href="{$locationLink}">
- <xsl:value-of select="location/address"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="location/subaddress!=''">
- <br/><xsl:value-of select="location/subaddress"/>
- </xsl:if>
- </td>
- </tr>
- <tr>
- <td class="fieldname">Description:</td>
- <td class="fieldval">
- <xsl:call-template name="replace">
- <xsl:with-param name="string" select="description"/>
- <xsl:with-param name="pattern" select="'
'"/>
- <xsl:with-param name="replacement"><br/></xsl:with-param>
- </xsl:call-template>
- </td>
- </tr>
- <xsl:if test="status !='' and status != 'CONFIRMED'">
- <tr>
- <td class="fieldname">Status:</td>
- <td class="fieldval">
- <xsl:value-of select="status"/>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="organizer">
- <tr>
- <td class="fieldname">Organizer:</td>
- <xsl:variable name="organizerUri" select="organizer/organizerUri"/>
- <td class="fieldval">
- <strong>
- <a href="{$organizerUri}">
- <xsl:value-of select="organizer/cn"/>
- </a>
- </strong>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="attendee">
- <tr>
- <td class="fieldname">Attendees:</td>
- <td class="fieldval">
- <table id="attendees" cellspacing="0">
- <tr>
- <th>role</th>
- <th>status</th>
- <th>attendee</th>
- </tr>
- <xsl:for-each select="attendee">
- <xsl:sort select="cn" order="ascending" case-order="upper-first"/>
- <tr>
- <td class="role">
- <xsl:value-of select="role"/>
- </td>
- <td class="status">
- <xsl:value-of select="partstat"/>
- </td>
- <td>
- <xsl:variable name="attendeeUri" select="attendeeUri"/>
- <a href="{$attendeeUri}"><xsl:value-of select="cn"/></a>
- </td>
- </tr>
- </xsl:for-each>
- </table>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="cost!=''">
- <tr>
- <td class="fieldname">Cost:</td>
- <td class="fieldval"><xsl:value-of select="cost"/></td>
- </tr>
- </xsl:if>
- <xsl:if test="link != ''">
- <tr>
- <td class="fieldname">See:</td>
- <td class="fieldval">
- <xsl:variable name="link" select="link"/>
- <a href="{$link}"><xsl:value-of select="link"/></a>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="sponsor/name!='none'">
- <tr>
- <td class="fieldname">Contact:</td>
- <td class="fieldval">
- <xsl:choose>
- <xsl:when test="sponsor/link=''">
- <xsl:value-of select="sponsor/name"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="sponsorLink" select="sponsor/link"/>
- <a href="{$sponsorLink}">
- <xsl:value-of select="sponsor/name"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="sponsor/phone!=''">
- <br /><xsl:value-of select="sponsor/phone"/>
- </xsl:if>
- <xsl:if test="sponsor/email!=''">
- <br />
- <xsl:variable name="email" select="sponsor/email"/>
- <xsl:variable name="subject" select="summary"/>
- <a href="mailto:{$email}&subject={$subject}">
- <xsl:value-of select="sponsor/email"/>
- </a>
- </xsl:if>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="calendar/path!=''">
- <tr>
- <td class="fieldname">Calendar:</td>
- <td class="fieldval">
- <xsl:variable name="calUrl" select="calendar/encodedPath"/>
- <xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/>/</xsl:variable>
- <a href="{$setSelection}&calUrl={$calUrl}">
- <xsl:choose>
- <xsl:when test="contains(calendar/path,$userPath)">
- <xsl:value-of select="substring-after(calendar/path,$userPath)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="calendar/path"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </td>
- </tr>
- </xsl:if>
- <tr>
- <td class="fieldname filler"> </td>
- <td class="fieldval"> </td>
- </tr>
- </table>
- </xsl:template>
-
- <!--==== ADD EVENT ====-->
- <xsl:template name="addEvent">
- <!-- The name "eventForm" is referenced by several javascript functions. Do not
- change it without modifying includes.js -->
- <form name="eventForm" method="post" action="{$addEventUsingPage}" id="standardForm">
- <input type="hidden" name="confirmationid" value="{$confId}"/>
- <input type="hidden" name="endType" value="date"/>
- <h2>Add Event</h2>
- <table class="common" cellspacing="0">
- <tr>
- <td class="fieldname">
- Title:
- </td>
- <td class="fieldval">
- <xsl:variable name="title" select="/bedework/formElements/form/title/input/@value"/>
- <input type="text" name="newEvent.summary" size="80" value="{$title}"/>
- </td>
- </tr>
- <tr>
- <td class="fieldname">
- Calendar:
- </td>
- <td class="fieldval">
- <xsl:variable name="newCalPath" select="/bedework/formElements/form/calendar/path"/>
- <input type="hidden" name="newCalPath" value="{$newCalPath}"/>
- <xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/>/</xsl:variable>
- <span id="bwEventCalDisplay">
- <xsl:choose>
- <xsl:when test="contains(/bedework/formElements/form/calendar/path,$userPath)">
- <xsl:value-of select="substring-after(/bedework/formElements/form/calendar/path,$userPath)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/formElements/form/calendar/path"/>
- </xsl:otherwise>
- </xsl:choose>
- </span>
- <a href="javascript:launchCalSelectWindow('{$event-selectCalForEvent}')" class="small">[change]</a>
- </td>
- </tr>
- <tr>
- <td class="fieldname">
- Date & Time:
- </td>
- <td class="fieldval">
- <!-- Set the timefields class for the first load of the page;
- subsequent changes will take place using javascript without a
- page reload. -->
- <xsl:variable name="timeFieldsClass">
- <xsl:choose>
- <xsl:when test="/bedework/formElements/form/allDay/input/@checked='checked'">invisible</xsl:when>
- <xsl:otherwise>timeFields</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="/bedework/formElements/form/allDay/input/@checked='checked'">
- <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="on" checked="checked"/>
- <input type="hidden" name="eventStartDate.dateOnly" value="on" id="allDayStartDateField"/>
- <input type="hidden" name="eventEndDate.dateOnly" value="on" id="allDayEndDateField"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="off"/>
- <input type="hidden" name="eventStartDate.dateOnly" value="off" id="allDayStartDateField"/>
- <input type="hidden" name="eventEndDate.dateOnly" value="off" id="allDayEndDateField"/>
- </xsl:otherwise>
- </xsl:choose>
- all day event<br/>
- <div class="dateStartEndBox">
- <strong>Start:</strong>
- <div class="dateFields">
- <span class="startDateLabel">Date </span>
- <xsl:copy-of select="/bedework/formElements/form/start/month/*"/>
- <xsl:copy-of select="/bedework/formElements/form/start/day/*"/>
- <xsl:choose>
- <xsl:when test="/bedework/creating = 'true'">
- <xsl:copy-of select="/bedework/formElements/form/start/year/*"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="/bedework/formElements/form/start/yearText/*"/>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- <script language="JavaScript" type="text/javascript">
- <xsl:comment>
- startDateDynCalWidget = new dynCalendar('startDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'startDateCalWidgetCallback');
- </xsl:comment>
- </script>
- <!--<img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>-->
- <div class="{$timeFieldsClass}" id="startTimeFields">
- <span id="calWidgetStartTimeHider" class="show">
- <xsl:copy-of select="/bedework/formElements/form/start/hour/*"/>
- <xsl:copy-of select="/bedework/formElements/form/start/minute/*"/>
- <xsl:if test="/bedework/formElements/form/start/ampm">
- <xsl:copy-of select="/bedework/formElements/form/start/ampm/*"/>
- </xsl:if>
- <xsl:text> </xsl:text>
- <a href="javascript:bwClockLaunch('eventStartDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a>
- </span>
- </div>
- </div>
- <div class="dateStartEndBox">
- <strong>End:</strong>
- <xsl:choose>
- <xsl:when test="/bedework/formElements/form/end/type='E'">
- <input type="radio" name="eventEndType" value="E" checked="checked" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="radio" name="eventEndType" value="E" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/>
- </xsl:otherwise>
- </xsl:choose>
- Date
- <xsl:variable name="endDateTimeClass">
- <xsl:choose>
- <xsl:when test="/bedework/formElements/form/end/type='E'">shown</xsl:when>
- <xsl:otherwise>invisible</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <div class="{$endDateTimeClass}" id="endDateTime">
- <div class="dateFields">
- <xsl:copy-of select="/bedework/formElements/form/end/dateTime/month/*"/>
- <xsl:copy-of select="/bedework/formElements/form/end/dateTime/day/*"/>
- <xsl:choose>
- <xsl:when test="/bedework/creating = 'true'">
- <xsl:copy-of select="/bedework/formElements/form/end/dateTime/year/*"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="/bedework/formElements/form/end/dateTime/yearText/*"/>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- <script language="JavaScript" type="text/javascript">
- <xsl:comment>
- endDateDynCalWidget = new dynCalendar('endDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'endDateCalWidgetCallback');
- </xsl:comment>
- </script>
- <!--<img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>-->
- <div class="{$timeFieldsClass}" id="endTimeFields">
- <span id="calWidgetEndTimeHider" class="show">
- <xsl:copy-of select="/bedework/formElements/form/end/dateTime/hour/*"/>
- <xsl:copy-of select="/bedework/formElements/form/end/dateTime/minute/*"/>
- <xsl:if test="/bedework/formElements/form/end/dateTime/ampm">
- <xsl:copy-of select="/bedework/formElements/form/end/dateTime/ampm/*"/>
- </xsl:if>
- <xsl:text> </xsl:text>
- <a href="javascript:bwClockLaunch('eventEndDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a>
- </span>
- </div>
- </div><br/>
- <div id="clock" class="invisible">
- <xsl:call-template name="clock"/>
- </div>
- <div class="dateFields">
- <xsl:choose>
- <xsl:when test="/bedework/formElements/form/end/type='D'">
- <input type="radio" name="eventEndType" value="D" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="radio" name="eventEndType" value="D" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/>
- </xsl:otherwise>
- </xsl:choose>
- Duration
- <xsl:variable name="endDurationClass">
- <xsl:choose>
- <xsl:when test="/bedework/formElements/form/end/type='D'">shown</xsl:when>
- <xsl:otherwise>invisible</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="durationHrMinClass">
- <xsl:choose>
- <xsl:when test="/bedework/formElements/form/allDay/input/@checked='checked'">invisible</xsl:when>
- <xsl:otherwise>shown</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <div class="{$endDurationClass}" id="endDuration">
- <xsl:choose>
- <xsl:when test="/bedework/formElements/form/end/duration/weeks/input/@value = '0'">
- <!-- we are using day, hour, minute format -->
- <!-- must send either no week value or week value of 0 (zero) -->
- <div class="durationBox">
- <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')" checked="checked"/>
- <xsl:variable name="daysStr" select="/bedework/formElements/form/end/duration/days/input/@value"/>
- <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays"/>days
- <span id="durationHrMin" class="{$durationHrMinClass}">
- <xsl:variable name="hoursStr" select="/bedework/formElements/form/end/duration/hours/input/@value"/>
- <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours"/>hours
- <xsl:variable name="minutesStr" select="/bedework/formElements/form/end/duration/minutes/input/@value"/>
- <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes"/>minutes
- </span>
- </div>
- <span class="durationSpacerText">or</span>
- <div class="durationBox">
- <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')"/>
- <xsl:variable name="weeksStr" select="/bedework/formElements/form/end/duration/weeks/input/@value"/>
- <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks" disabled="true"/>weeks
- </div>
- </xsl:when>
- <xsl:otherwise>
- <!-- we are using week format -->
- <div class="durationBox">
- <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')"/>
- <xsl:variable name="daysStr" select="/bedework/formElements/form/end/duration/days/input/@value"/>
- <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays" disabled="true"/>days
- <span id="durationHrMin" class="{$durationHrMinClass}">
- <xsl:variable name="hoursStr" select="/bedework/formElements/form/end/duration/hours/input/@value"/>
- <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours" disabled="true"/>hours
- <xsl:variable name="minutesStr" select="/bedework/formElements/form/end/duration/minutes/input/@value"/>
- <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes" disabled="true"/>minutes
- </span>
- </div>
- <span class="durationSpacerText">or</span>
- <div class="durationBox">
- <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')" checked="checked"/>
- <xsl:variable name="weeksStr" select="/bedework/formElements/form/end/duration/weeks/input/@value"/>
- <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks"/>weeks
- </div>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- </div><br/>
- <div class="dateFields" id="noDuration">
- <xsl:choose>
- <xsl:when test="/bedework/formElements/form/end/type='N'">
- <input type="radio" name="eventEndType" value="N" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="radio" name="eventEndType" value="N" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/>
- </xsl:otherwise>
- </xsl:choose>
- This event has no duration / end date
- </div>
- </div>
- </td>
- </tr>
- <!-- Status -->
- <tr>
- <td class="fieldname">
- Status:
- </td>
- <td class="fieldval">
- <xsl:choose>
- <xsl:when test="/bedework/formElements/form/status = 'TENTATIVE'">
- <input type="radio" name="newEvent.status" value="CONFIRMED"/>confirmed <input type="radio" name="newEvent.status" value="TENTATIVE" checked="checked"/>tentative <input type="radio" name="newEvent.status" value="CANCELLED"/>cancelled
- </xsl:when>
- <xsl:when test="/bedework/formElements/form/status = 'CANCELLED'">
- <input type="radio" name="newEvent.status" value="CONFIRMED"/>confirmed <input type="radio" name="newEvent.status" value="TENTATIVE"/>tentative <input type="radio" name="newEvent.status" value="CANCELLED" checked="checked"/>cancelled
- </xsl:when>
- <xsl:otherwise>
- <input type="radio" name="newEvent.status" value="CONFIRMED" checked="checked"/>confirmed <input type="radio" name="newEvent.status" value="TENTATIVE"/>tentative <input type="radio" name="newEvent.status" value="CANCELLED"/>cancelled
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
- <!-- Transparency -->
- <tr>
- <td class="fieldname">
- Effects free/busy:
- </td>
- <td class="fieldval">
- <input type="radio" name="newEvent.transparency" value="OPAQUE" checked="checked"/>yes <span class="note">(opaque: event status affects your free/busy)</span><br/>
- <input type="radio" name="newEvent.transparency" value="TRANSPARENT"/>no <span class="note">(transparent: event status does not affect your free/busy)</span>
- </td>
- </tr>
- <!-- Description -->
- <tr>
- <td class="fieldname">Description:</td>
- <td class="fieldval">
- <textarea name="newEvent.description" cols="60" rows="4">
- <xsl:value-of select="/bedework/formElements/form/desc/textarea"/>
- </textarea>
- </td>
- </tr>
- <tr>
- <td class="fieldname">Location:</td>
- <td class="fieldval" align="left">
- <span class="std-text">choose: </span>
- <span id="eventFormLocationList">
- <select name="locationId">
- <option value="-1">select...</option>
- <xsl:copy-of select="/bedework/formElements/form/location/locationmenu/select/*"/>
- </select>
- </span>
- <span class="std-text"> or add new: </span>
- <input type="text" name="newLocation.address" value="" />
- </td>
- </tr>
- <tr>
- <td class="fieldname">Event Link:</td>
- <td class="fieldval">
- <xsl:variable name="link" select="/bedework/formElements/form/link/input/@value"/>
- <input type="text" name="newEvent.link" size="80" value="{$link}"/>
- </td>
- </tr>
- <tr>
- <td class="fieldname"> </td>
- <td class="fieldval">
- <input name="submit" type="submit" value="Submit Event"/> 
- <input name="cancelled" type="submit" value="Cancel"/>
- </td>
- </tr>
- </table>
- </form>
- </xsl:template>
-
- <xsl:template name="clock">
- <div id="bwClock">
- <!-- Bedework 24-Hour Clock time selection widget
- used with resources/bwClock.js and resources/bwClock.css -->
- <div id="bwClockClock">
- <img id="clockMap" src="{$resourcesRoot}/resources/clockMap.gif" width="368" height="368" border="0" alt="" usemap="#bwClockMap" />
- </div>
- <div id="bwClockCover">
- <!-- this is a special effect div used simply to cover the pixelated edge
- where the clock meets the clock box title -->
- </div>
- <div id="bwClockBox">
- <h2>
- Bedework 24-Hour Clock
- </h2>
- <div id="bwClockDateTypeIndicator">
- type
- </div>
- <div id="bwClockTime">
- select time
- </div>
- <div id="bwClockCloseText">
- close
- </div>
- <div id="bwClockCloseButton">
- <a href="javascript:bwClockClose();">X</a>
- </div>
- </div>
- <map name="bwClockMap" id="bwClockMap">
- <area shape="rect" alt="close clock" title="close clock" coords="160,167, 200,200" href="javascript:bwClockClose()"/>
- <area shape="poly" alt="minute 00:55" title="minute 00:55" coords="156,164, 169,155, 156,107, 123,128" href="javascript:bwClockUpdateDateTimeForm('minute','55')" />
- <area shape="poly" alt="minute 00:50" title="minute 00:50" coords="150,175, 156,164, 123,128, 103,161" href="javascript:bwClockUpdateDateTimeForm('minute','50')" />
- <area shape="poly" alt="minute 00:45" title="minute 00:45" coords="150,191, 150,175, 103,161, 103,206" href="javascript:bwClockUpdateDateTimeForm('minute','45')" />
- <area shape="poly" alt="minute 00:40" title="minute 00:40" coords="158,208, 150,191, 105,206, 123,237" href="javascript:bwClockUpdateDateTimeForm('minute','40')" />
- <area shape="poly" alt="minute 00:35" title="minute 00:35" coords="171,218, 158,208, 123,238, 158,261" href="javascript:bwClockUpdateDateTimeForm('minute','35')" />
- <area shape="poly" alt="minute 00:30" title="minute 00:30" coords="193,218, 172,218, 158,263, 209,263" href="javascript:bwClockUpdateDateTimeForm('minute','30')" />
- <area shape="poly" alt="minute 00:25" title="minute 00:25" coords="209,210, 193,218, 209,261, 241,240" href="javascript:bwClockUpdateDateTimeForm('minute','25')" />
- <area shape="poly" alt="minute 00:20" title="minute 00:20" coords="216,196, 209,210, 241,240, 261,206" href="javascript:bwClockUpdateDateTimeForm('minute','20')" />
- <area shape="poly" alt="minute 00:15" title="minute 00:15" coords="216,178, 216,196, 261,206, 261,159" href="javascript:bwClockUpdateDateTimeForm('minute','15')" />
- <area shape="poly" alt="minute 00:10" title="minute 00:10" coords="209,164, 216,178, 261,159, 240,126" href="javascript:bwClockUpdateDateTimeForm('minute','10')" />
- <area shape="poly" alt="minute 00:05" title="minute 00:05" coords="196,155, 209,164, 238,126, 206,107" href="javascript:bwClockUpdateDateTimeForm('minute','05')" />
- <area shape="poly" alt="minute 00:00" title="minute 00:00" coords="169,155, 196,155, 206,105, 156,105" href="javascript:bwClockUpdateDateTimeForm('minute','00')" />
- <area shape="poly" alt="11 PM, 2300 hour" title="11 PM, 2300 hour" coords="150,102, 172,96, 158,1, 114,14" href="javascript:bwClockUpdateDateTimeForm('hour','23')" />
- <area shape="poly" alt="10 PM, 2200 hour" title="10 PM, 2200 hour" coords="131,114, 150,102, 114,14, 74,36" href="javascript:bwClockUpdateDateTimeForm('hour','22')" />
- <area shape="poly" alt="9 PM, 2100 hour" title="9 PM, 2100 hour" coords="111,132, 131,114, 74,36, 40,69" href="javascript:bwClockUpdateDateTimeForm('hour','21')" />
- <area shape="poly" alt="8 PM, 2000 hour" title="8 PM, 2000 hour" coords="101,149, 111,132, 40,69, 15,113" href="javascript:bwClockUpdateDateTimeForm('hour','20')" />
- <area shape="poly" alt="7 PM, 1900 hour" title="7 PM, 1900 hour" coords="95,170, 101,149, 15,113, 1,159" href="javascript:bwClockUpdateDateTimeForm('hour','19')" />
- <area shape="poly" alt="6 PM, 1800 hour" title="6 PM, 1800 hour" coords="95,196, 95,170, 0,159, 0,204" href="javascript:bwClockUpdateDateTimeForm('hour','18')" />
- <area shape="poly" alt="5 PM, 1700 hour" title="5 PM, 1700 hour" coords="103,225, 95,196, 1,205, 16,256" href="javascript:bwClockUpdateDateTimeForm('hour','17')" />
- <area shape="poly" alt="4 PM, 1600 hour" title="4 PM, 1600 hour" coords="116,245, 103,225, 16,256, 41,298" href="javascript:bwClockUpdateDateTimeForm('hour','16')" />
- <area shape="poly" alt="3 PM, 1500 hour" title="3 PM, 1500 hour" coords="134,259, 117,245, 41,298, 76,332" href="javascript:bwClockUpdateDateTimeForm('hour','15')" />
- <area shape="poly" alt="2 PM, 1400 hour" title="2 PM, 1400 hour" coords="150,268, 134,259, 76,333, 121,355" href="javascript:bwClockUpdateDateTimeForm('hour','14')" />
- <area shape="poly" alt="1 PM, 1300 hour" title="1 PM, 1300 hour" coords="169,273, 150,268, 120,356, 165,365" href="javascript:bwClockUpdateDateTimeForm('hour','13')" />
- <area shape="poly" alt="Noon, 1200 hour" title="Noon, 1200 hour" coords="193,273, 169,273, 165,365, 210,364" href="javascript:bwClockUpdateDateTimeForm('hour','12')" />
- <area shape="poly" alt="11 AM, 1100 hour" title="11 AM, 1100 hour" coords="214,270, 193,273, 210,363, 252,352" href="javascript:bwClockUpdateDateTimeForm('hour','11')" />
- <area shape="poly" alt="10 AM, 1000 hour" title="10 AM, 1000 hour" coords="232,259, 214,270, 252,352, 291,330" href="javascript:bwClockUpdateDateTimeForm('hour','10')" />
- <area shape="poly" alt="9 AM, 0900 hour" title="9 AM, 0900 hour" coords="251,240, 232,258, 291,330, 323,301" href="javascript:bwClockUpdateDateTimeForm('hour','09')" />
- <area shape="poly" alt="8 AM, 0800 hour" title="8 AM, 0800 hour" coords="263,219, 251,239, 323,301, 349,261" href="javascript:bwClockUpdateDateTimeForm('hour','08')" />
- <area shape="poly" alt="7 AM, 0700 hour" title="7 AM, 0700 hour" coords="269,194, 263,219, 349,261, 363,212" href="javascript:bwClockUpdateDateTimeForm('hour','07')" />
- <area shape="poly" alt="6 AM, 0600 hour" title="6 AM, 0600 hour" coords="269,172, 269,193, 363,212, 363,155" href="javascript:bwClockUpdateDateTimeForm('hour','06')" />
- <area shape="poly" alt="5 AM, 0500 hour" title="5 AM, 0500 hour" coords="263,150, 269,172, 363,155, 351,109" href="javascript:bwClockUpdateDateTimeForm('hour','05')" />
- <area shape="poly" alt="4 AM, 0400 hour" title="4 AM, 0400 hour" coords="251,130, 263,150, 351,109, 325,68" href="javascript:bwClockUpdateDateTimeForm('hour','04')" />
- <area shape="poly" alt="3 AM, 0300 hour" title="3 AM, 0300 hour" coords="234,112, 251,130, 325,67, 295,37" href="javascript:bwClockUpdateDateTimeForm('hour','03')" />
- <area shape="poly" alt="2 AM, 0200 hour" title="2 AM, 0200 hour" coords="221,102, 234,112, 295,37, 247,11" href="javascript:bwClockUpdateDateTimeForm('hour','02')" />
- <area shape="poly" alt="1 AM, 0100 hour" title="1 AM, 0100 hour" coords="196,96, 221,102, 247,10, 209,-1, 201,61, 206,64, 205,74, 199,75" href="javascript:bwClockUpdateDateTimeForm('hour','01')" />
- <area shape="poly" alt="Midnight, 0000 hour" title="Midnight, 0000 hour" coords="172,96, 169,74, 161,73, 161,65, 168,63, 158,-1, 209,-1, 201,61, 200,62, 206,64, 205,74, 198,75, 196,96, 183,95" href="javascript:bwClockUpdateDateTimeForm('hour','00')" />
- </map>
- </div>
- </xsl:template>
-
- <!--==== EDIT EVENT ====-->
- <xsl:template match="formElements" mode="editEvent">
- <xsl:variable name="subscriptionId" select="subscriptionId"/>
- <xsl:variable name="calPathEncoded" select="form/calendar/encodedPath"/>
- <xsl:variable name="calPath" select="form/calendar/path"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <!-- The name "eventForm" is referenced by several javascript functions. Do not
- change it without modifying includes.js -->
- <form name="eventForm" method="post" action="{$editEvent}" id="standardForm">
- <input type="hidden" name="updateEvent" value="true"/>
- <input type="hidden" name="confirmationid" value="{$confId}"/>
- <input type="hidden" name="endType" value="date"/>
- <h2>Edit Event</h2>
- <table class="common" cellspacing="0">
- <tr>
- <th colspan="2" class="commonHeader">
- <div id="eventActions">
- <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&confirmationid={$confId}">
- <img src="{$resourcesRoot}/resources/glassFill-icon-viewGray.gif" width="13" height="13" border="0" alt="view"/>
- View
- </a>
- <xsl:if test="currentAccess/current-user-privilege-set/privilege/unbind">
- |
- <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPathEncoded}&guid={$guid}&recurrenceId={$recurrenceId}&confirmationid={$confId}">
- <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/>
- Delete
- </a>
- </xsl:if>
- </div>
- Personal Event
- </th>
- </tr>
- <tr>
- <td class="fieldname">
- Title:
- </td>
- <td class="fieldval">
- <xsl:variable name="title" select="form/title/input/@value"/>
- <input type="text" name="editEvent.summary" size="80" value="{$title}"/>
- </td>
- </tr>
- <tr>
- <td class="fieldname">
- Calendar:
- </td>
- <td class="fieldval">
- <xsl:variable name="newCalPath" select="/bedework/formElements/form/calendar/path"/>
- <input type="hidden" name="newCalPath" value="{$newCalPath}"/>
- <xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/>/</xsl:variable>
- <span id="bwEventCalDisplay">
- <xsl:choose>
- <xsl:when test="contains(/bedework/formElements/form/calendar/path,$userPath)">
- <xsl:value-of select="substring-after(/bedework/formElements/form/calendar/path,$userPath)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/bedework/formElements/form/calendar/path"/>
- </xsl:otherwise>
- </xsl:choose>
- </span>
- <a href="javascript:launchCalSelectWindow('{$event-selectCalForEvent}')" class="small">[change]</a>
- </td>
- </tr>
- <tr>
- <td class="fieldname">
- Date & Time:
- </td>
- <td class="fieldval">
- <!-- Set the timefields class for the first load of the page;
- subsequent changes will take place using javascript without a
- page reload. -->
- <xsl:variable name="timeFieldsClass">
- <xsl:choose>
- <xsl:when test="form/allDay/input/@checked='checked'">invisible</xsl:when>
- <xsl:otherwise>timeFields</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="form/allDay/input/@checked='checked'">
- <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="on" checked="checked"/>
- <input type="hidden" name="eventStartDate.dateOnly" value="on" id="allDayStartDateField"/>
- <input type="hidden" name="eventEndDate.dateOnly" value="on" id="allDayEndDateField"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="off"/>
- <input type="hidden" name="eventStartDate.dateOnly" value="off" id="allDayStartDateField"/>
- <input type="hidden" name="eventEndDate.dateOnly" value="off" id="allDayEndDateField"/>
- </xsl:otherwise>
- </xsl:choose>
- all day event<br/>
- <div class="dateStartEndBox">
- <strong>Start:</strong>
- <div class="dateFields">
- <span class="startDateLabel">Date </span>
- <xsl:copy-of select="form/start/month/*"/>
- <xsl:copy-of select="form/start/day/*"/>
- <xsl:choose>
- <xsl:when test="/bedework/creating = 'true'">
- <xsl:copy-of select="form/start/year/*"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="form/start/yearText/*"/>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- <script language="JavaScript" type="text/javascript">
- <xsl:comment>
- startDateDynCalWidget = new dynCalendar('startDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'startDateCalWidgetCallback');
- </xsl:comment>
- </script>
- <!--<img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>-->
- <div class="{$timeFieldsClass}" id="startTimeFields">
- <span id="calWidgetStartTimeHider" class="show">
- <xsl:copy-of select="form/start/hour/*"/>
- <xsl:copy-of select="form/start/minute/*"/>
- <xsl:if test="form/start/ampm">
- <xsl:copy-of select="form/start/ampm/*"/>
- </xsl:if>
- <xsl:text> </xsl:text>
- <a href="javascript:bwClockLaunch('eventStartDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a>
- </span>
- </div>
- </div>
- <div class="dateStartEndBox">
- <strong>End:</strong>
- <xsl:choose>
- <xsl:when test="form/end/type='E'">
- <input type="radio" name="eventEndType" value="E" checked="checked" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="radio" name="eventEndType" value="E" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/>
- </xsl:otherwise>
- </xsl:choose>
- Date
- <xsl:variable name="endDateTimeClass">
- <xsl:choose>
- <xsl:when test="form/end/type='E'">shown</xsl:when>
- <xsl:otherwise>invisible</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <div class="{$endDateTimeClass}" id="endDateTime">
- <div class="dateFields">
- <xsl:copy-of select="form/end/dateTime/month/*"/>
- <xsl:copy-of select="form/end/dateTime/day/*"/>
- <xsl:choose>
- <xsl:when test="/bedework/creating = 'true'">
- <xsl:copy-of select="form/end/dateTime/year/*"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="form/end/dateTime/yearText/*"/>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- <script language="JavaScript" type="text/javascript">
- <xsl:comment>
- endDateDynCalWidget = new dynCalendar('endDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'endDateCalWidgetCallback');
- </xsl:comment>
- </script>
- <!--<img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>-->
- <div class="{$timeFieldsClass}" id="endTimeFields">
- <span id="calWidgetEndTimeHider" class="show">
- <xsl:copy-of select="form/end/dateTime/hour/*"/>
- <xsl:copy-of select="form/end/dateTime/minute/*"/>
- <xsl:if test="form/end/dateTime/ampm">
- <xsl:copy-of select="form/end/dateTime/ampm/*"/>
- </xsl:if>
- <xsl:text> </xsl:text>
- <a href="javascript:bwClockLaunch('eventEndDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a>
- </span>
- </div>
- </div><br/>
- <div id="clock" class="invisible">
- <xsl:call-template name="clock"/>
- </div>
- <div class="dateFields">
- <xsl:choose>
- <xsl:when test="form/end/type='D'">
- <input type="radio" name="eventEndType" value="D" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="radio" name="eventEndType" value="D" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/>
- </xsl:otherwise>
- </xsl:choose>
- Duration
- <xsl:variable name="endDurationClass">
- <xsl:choose>
- <xsl:when test="form/end/type='D'">shown</xsl:when>
- <xsl:otherwise>invisible</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="durationHrMinClass">
- <xsl:choose>
- <xsl:when test="form/allDay/input/@checked='checked'">invisible</xsl:when>
- <xsl:otherwise>shown</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <div class="{$endDurationClass}" id="endDuration">
- <xsl:choose>
- <xsl:when test="form/end/duration/weeks/input/@value = '0'">
- <!-- we are using day, hour, minute format -->
- <!-- must send either no week value or week value of 0 (zero) -->
- <div class="durationBox">
- <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')" checked="checked"/>
- <xsl:variable name="daysStr" select="form/end/duration/days/input/@value"/>
- <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays"/>days
- <span id="durationHrMin" class="{$durationHrMinClass}">
- <xsl:variable name="hoursStr" select="form/end/duration/hours/input/@value"/>
- <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours"/>hours
- <xsl:variable name="minutesStr" select="form/end/duration/minutes/input/@value"/>
- <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes"/>minutes
- </span>
- </div>
- <span class="durationSpacerText">or</span>
- <div class="durationBox">
- <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')"/>
- <xsl:variable name="weeksStr" select="form/end/duration/weeks/input/@value"/>
- <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks" disabled="true"/>weeks
- </div>
- </xsl:when>
- <xsl:otherwise>
- <!-- we are using week format -->
- <div class="durationBox">
- <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')"/>
- <xsl:variable name="daysStr" select="form/end/duration/days/input/@value"/>
- <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays" disabled="true"/>days
- <span id="durationHrMin" class="{$durationHrMinClass}">
- <xsl:variable name="hoursStr" select="form/end/duration/hours/input/@value"/>
- <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours" disabled="true"/>hours
- <xsl:variable name="minutesStr" select="form/end/duration/minutes/input/@value"/>
- <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes" disabled="true"/>minutes
- </span>
- </div>
- <span class="durationSpacerText">or</span>
- <div class="durationBox">
- <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')" checked="checked"/>
- <xsl:variable name="weeksStr" select="form/end/duration/weeks/input/@value"/>
- <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks"/>weeks
- </div>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- </div><br/>
- <div class="dateFields" id="noDuration">
- <xsl:choose>
- <xsl:when test="form/end/type='N'">
- <input type="radio" name="eventEndType" value="N" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="radio" name="eventEndType" value="N" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/>
- </xsl:otherwise>
- </xsl:choose>
- This event has no duration / end date
- </div>
- </div>
- </td>
- </tr>
- <!-- Status -->
- <tr>
- <td class="fieldname">
- Status:
- </td>
- <td class="fieldval">
- <xsl:choose>
- <xsl:when test="form/status = 'TENTATIVE'">
- <input type="radio" name="editEvent.status" value="CONFIRMED"/>confirmed <input type="radio" name="editEvent.status" value="TENTATIVE" checked="checked"/>tentative <input type="radio" name="editEvent.status" value="CANCELLED"/>cancelled
- </xsl:when>
- <xsl:when test="form/status = 'CANCELLED'">
- <input type="radio" name="editEvent.status" value="CONFIRMED"/>confirmed <input type="radio" name="editEvent.status" value="TENTATIVE"/>tentative <input type="radio" name="editEvent.status" value="CANCELLED" checked="checked"/>cancelled
- </xsl:when>
- <xsl:otherwise>
- <input type="radio" name="editEvent.status" value="CONFIRMED" checked="checked"/>confirmed <input type="radio" name="editEvent.status" value="TENTATIVE"/>tentative <input type="radio" name="editEvent.status" value="CANCELLED"/>cancelled
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
- <!-- Transparency -->
- <tr>
- <td class="fieldname">
- Effects free/busy:
- </td>
- <td class="fieldval">
- <xsl:choose>
- <xsl:when test="form/transparency = 'TRANSPARENT'">
- <input type="radio" name="editEvent.transparency" value="OPAQUE"/>yes <span class="note">(opaque: event status affects your free/busy)</span><br/>
- <input type="radio" name="editEvent.transparency" value="TRANSPARENT" checked="checked"/>no <span class="note">(transparent: event status does not affect your free/busy)</span>
- </xsl:when>
- <xsl:otherwise>
- <input type="radio" name="editEvent.transparency" value="OPAQUE" checked="checked"/>yes <span class="note">(opaque: event status affects your free/busy)</span><br/>
- <input type="radio" name="editEvent.transparency" value="TRANSPARENT"/>no <span class="note">(transparent: event status does not affect your free/busy)</span>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
- <!-- Description -->
- <tr>
- <td class="fieldname">Description:</td>
- <td class="fieldval">
- <textarea name="editEvent.description" cols="60" rows="4">
- <xsl:value-of select="/bedework/formElements/form/desc/textarea"/>
- </textarea>
- </td>
- </tr>
- <tr>
- <td class="fieldname">Location:</td>
- <td class="fieldval" align="left">
- <span class="std-text">choose: </span>
- <span id="eventFormLocationList">
- <select name="eventLocationId">
- <option value="-1">select...</option>
- <xsl:copy-of select="/bedework/formElements/form/location/locationmenu/select/*"/>
- </select>
- </span>
- <span class="std-text"> or add new: </span>
- <input type="text" name="laddress" value="" />
- </td>
- </tr>
- <tr>
- <td class="fieldname">Event Link:</td>
- <td class="fieldval">
- <xsl:variable name="link" select="form/link/input/@value"/>
- <input type="text" name="editEvent.link" size="80" value="{$link}"/>
- </td>
- </tr>
- <tr>
- <td class="fieldname"> </td>
- <td class="fieldval">
- <input name="submit" type="submit" value="Submit Event"/> 
- <input name="cancelled" type="submit" value="Cancel"/>
- </td>
- </tr>
- </table>
- </form>
-
- <div id="sharingBox">
- <h3>Sharing</h3>
- <table class="common">
- <tr>
- <th class="commonHeader" colspan="2">Current access:</th>
- </tr>
- <tr>
- <th>Owner:</th>
- <td class="fieldval">
- <xsl:value-of select="name(/bedework/access/acl/ace[principal/property/owner]/grant/*)"/>
- </td>
- </tr>
- <xsl:if test="/bedework/access/acl/ace/principal/href">
- <tr>
- <th>Users:</th>
- <td>
- <xsl:for-each select="/bedework/access/acl/ace[principal/href]">
- <xsl:value-of select="principal/href"/> (<xsl:value-of select="name(grant/*)"/>)<br/>
- </xsl:for-each>
- </td>
- </tr>
- </xsl:if>
- </table>
- <form name="eventShareForm" action="{$event-setAccess}" id="shareForm">
- <input type="hidden" name="calPath" value="{$calPath}"/>
- <input type="hidden" name="guid" value="{$guid}"/>
- <input type="hidden" name="recurid" value="{$recurrenceId}"/>
- <p>
- Share this event with:<br/>
- <input type="text" name="who" size="20"/>
- <input type="radio" value="user" name="whoType" checked="checked"/> user
- <input type="radio" value="group" name="whoType"/> group
- </p>
- <p>
- Access rights:<br/>
- <input type="radio" value="R" name="how" checked="checked"/> read<br/>
- <input type="radio" value="Rc" name="how"/> read/write content<br/>
- <input type="radio" value="f" name="how"/> read free/busy only<br/>
- <input type="radio" value="d" name="how"/> default (reset access)
- </p>
- <input type="submit" name="submit" value="Submit"/>
- </form>
- </div>
- </xsl:template>
-
- <xsl:template match="event" mode="addEventRef">
- <!-- The name "eventForm" is referenced by several javascript functions. Do not
- change it without modifying includes.js -->
- <form name="eventForm" method="post" action="{$event-addEventRefComplete}" id="standardForm" enctype="multipart/form-data">
- <xsl:variable name="subscriptionId" select="subscription/id"/>
- <xsl:variable name="calPath" select="calendar/path"/>
- <xsl:variable name="guid" select="guid"/>
- <xsl:variable name="recurrenceId" select="recurrenceId"/>
- <input type="hidden" name="subid" value="{$subscriptionId}"/>
- <input type="hidden" name="calPath" value="{$calPath}"/>
- <input type="hidden" name="guid" value="{$guid}"/>
- <input type="hidden" name="recurrenceId" value="{$recurrenceId}"/>
- <!-- newCalPath is the path to the calendar in which the reference
- should be placed. If no value, then default calendar. -->
- <input type="hidden" name="newCalPath" value=""/>
-
- <h2>Add Event Reference</h2>
- <table class="common" cellspacing="0">
- <tr>
- <td class="fieldname">
- Event:
- </td>
- <td>
- <xsl:value-of select="summary"/>
- </td>
- </tr>
- <tr>
- <td class="fieldname">
- Into calendar:
- </td>
- <td align="left">
- <span id="bwEventCalDisplay">
- <em>default calendar</em>
- </span>
- <a href="javascript:launchCalSelectWindow('{$event-selectCalForEvent}')" class="small">[change]</a>
- </td>
- </tr>
- <tr>
- <td class="fieldname">
- Affects Free/busy:
- </td>
- <td align="left">
- <input type="radio" value="OPAQUE" name="transparency"/> yes <span class="note">(opaque: event status affects your free/busy)</span><br/>
- <input type="radio" value="TRANSPARENT" name="transparency" checked="checked"/> no <span class="note">(transparent: event status does not affect your free/busy)</span>
- </td>
- </tr>
- </table>
- <table border="0" id="submitTable">
- <tr>
- <td>
- <input name="submit" type="submit" value="Continue"/>
- <input name="cancelled" type="submit" value="Cancel"/>
- </td>
- </tr>
- </table>
- </form>
- </xsl:template>
-
- <!--+++++++++++++++ Free / Busy ++++++++++++++++++++-->
- <xsl:template match="freebusy">
- <h2>Free / Busy</h2>
- <div id="freeBusyWho">for <xsl:value-of select="day/who"/></div>
- <table id="freeBusy">
- <tr>
- <td> </td>
- <xsl:for-each select="day[position()=1]/period">
- <th>
- <xsl:choose>
- <xsl:when test="number(start) mod 200 = 0">
- <xsl:apply-templates select="start" mode="timeDisplay"/>
- </xsl:when>
- <xsl:otherwise>
-  
- </xsl:otherwise>
- </xsl:choose>
- </th>
- </xsl:for-each>
- </tr>
- <xsl:for-each select="day">
- <tr>
- <th>
- <xsl:value-of select="substring(start,1,4)"/>-<xsl:value-of select="substring(start,5,2)"/>-<xsl:value-of select="substring(start,7,2)"/>
- </th>
- <xsl:for-each select="period">
- <xsl:variable name="startTime"><xsl:apply-templates select="start" mode="timeDisplay"/></xsl:variable>
- <!-- the start date for the add event link is a concat of the day's date plus the period's time (+ seconds)-->
- <xsl:variable name="startDate"><xsl:value-of select="substring(../start,1,8)"/>T<xsl:value-of select="start"/>00</xsl:variable>
- <xsl:variable name="minutes" select="length"/>
- <xsl:variable name="fbClass">
- <xsl:choose>
- <xsl:when test="fbtype = '0'">busy</xsl:when>
- <xsl:when test="fbtype = '3'">tentative</xsl:when>
- <xsl:otherwise>free</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <td class="{$fbClass}">
- <a href="{$initEvent}&startdate={$startDate}&minutes={$minutes}" title="{$startTime}">*</a>
- </td>
- </xsl:for-each>
- </tr>
- </xsl:for-each>
- </table>
-
- <table id="freeBusyKey">
- <tr>
- <td class="free">*</td>
- <td>free</td>
- <td> </td>
- <td class="busy">*</td>
- <td>busy</td>
- <td> </td>
- <td class="tentative">*</td>
- <td>tentative</td>
- <td> </td>
- <td>
- <form name="calendarShareForm" action="{$freeBusy-fetch}">
- View user's free/busy:<br/>
- <input type="text" name="userid" size="20"/>
- <input type="submit" name="submit" value="Submit"/>
- </form>
- </td>
- </tr>
- </table>
-
- <div id="sharingBox">
- <h3>Sharing</h3>
- <table class="common">
- <tr>
- <th class="commonHeader" colspan="2">Current access:</th>
- </tr>
- <tr>
- <th>Users:</th>
- <td>
- <xsl:choose>
- <xsl:when test="/bedework/myCalendars/calendars/calendar/acl/ace/principal/href">
- <xsl:for-each select="/bedework/myCalendars/calendars/calendar/acl/ace[principal/href]">
- <xsl:value-of select="principal/href"/> (<xsl:value-of select="name(grant/*)"/>)<br/>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- free/busy not shared
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
- </table>
- <form name="calendarShareForm" action="{$freeBusy-setAccess}" id="shareForm">
- <xsl:variable name="calPath" select="/bedework/myCalendars/calendars/calendar/path"/>
- <input type="hidden" name="calPath" value="{$calPath}"/>
- <p>
- Share my free/busy with:<br/>
- <input type="text" name="who" size="20"/>
- <input type="radio" value="user" name="whoType" checked="checked"/> user
- <input type="radio" value="group" name="whoType"/> group
- </p>
- <p>
- Access rights:<br/>
- <input type="radio" value="F" name="how" checked="checked"/> view my free/busy<br/>
- <input type="radio" value="d" name="how"/> default (reset access)
- </p>
- <input type="submit" name="submit" value="Submit"/>
- </form>
- </div>
- </xsl:template>
-
- <xsl:template match="start" mode="timeDisplay">
- <xsl:choose>
- <xsl:when test="node()=0000">12am</xsl:when>
- <xsl:when test="node()=0100">1am</xsl:when>
- <xsl:when test="node()=0200">2am</xsl:when>
- <xsl:when test="node()=0300">3am</xsl:when>
- <xsl:when test="node()=0400">4am</xsl:when>
- <xsl:when test="node()=0500">5am</xsl:when>
- <xsl:when test="node()=0600">6am</xsl:when>
- <xsl:when test="node()=0700">7am</xsl:when>
- <xsl:when test="node()=0800">8am</xsl:when>
- <xsl:when test="node()=0900">9am</xsl:when>
- <xsl:when test="node()=1000">10am</xsl:when>
- <xsl:when test="node()=1100">11am</xsl:when>
- <xsl:when test="node()=1200">NOON</xsl:when>
- <xsl:when test="node()=1300">1pm</xsl:when>
- <xsl:when test="node()=1400">2pm</xsl:when>
- <xsl:when test="node()=1500">3pm</xsl:when>
- <xsl:when test="node()=1600">4pm</xsl:when>
- <xsl:when test="node()=1700">5pm</xsl:when>
- <xsl:when test="node()=1800">6pm</xsl:when>
- <xsl:when test="node()=1900">7pm</xsl:when>
- <xsl:when test="node()=2000">8pm</xsl:when>
- <xsl:when test="node()=2100">9pm</xsl:when>
- <xsl:when test="node()=2200">10pm</xsl:when>
- <xsl:when test="node()=2300">11pm</xsl:when>
- <xsl:when test="node()=2400">12am</xsl:when>
- <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <!--+++++++++++++++ Calendars ++++++++++++++++++++-->
- <xsl:template match="calendars">
- <h2>Manage Calendars</h2>
- <table id="calendarTable">
- <tr>
- <td class="cals">
- <h3>Calendars</h3>
- <ul class="calendarTree">
- <xsl:choose>
- <xsl:when test="/bedework/page='calendarDescriptions' or
- /bedework/page='displayCalendar'">
- <xsl:apply-templates select="calendar" mode="listForDisplay"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="calendar" mode="listForUpdate"/>
- </xsl:otherwise>
- </xsl:choose>
- </ul>
- </td>
- <td class="calendarContent">
- <xsl:choose>
- <xsl:when test="/bedework/page='calendarList' or
- /bedework/page='calendarReferenced'">
- <xsl:call-template name="calendarList"/>
- </xsl:when>
- <xsl:when test="/bedework/page='calendarDescriptions'">
- <xsl:call-template name="calendarDescriptions"/>
- </xsl:when>
- <xsl:when test="/bedework/page='displayCalendar'">
- <xsl:apply-templates select="/bedework/currentCalendar" mode="displayCalendar"/>
- </xsl:when>
- <xsl:when test="/bedework/page='deleteCalendarConfirm'">
- <xsl:apply-templates select="/bedework/currentCalendar" mode="deleteCalendarConfirm"/>
- </xsl:when>
- <xsl:when test="/bedework/creating='true'">
- <xsl:apply-templates select="/bedework/currentCalendar" mode="addCalendar"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="/bedework/currentCalendar" mode="modCalendar"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template match="calendar" mode="myCalendars">
- <!-- supress Inbox and Outbox for the moment -->
- <xsl:if test="(name != 'Inbox') and (name != 'Outbox') and (name != 'Deleted')">
- <xsl:variable name="id" select="id"/>
- <xsl:variable name="itemClass">
- <xsl:choose>
- <xsl:when test="/bedework/selectionState/selectionType = 'calendar'
- and path = /bedework/selectionState/subscriptions/subscription/calendar/path">selected</xsl:when>
- <xsl:when test="name='Trash'">trash</xsl:when>
- <xsl:when test="calendarCollection='false'">folder</xsl:when>
- <xsl:otherwise>calendar</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <li class="{$itemClass}">
- <xsl:variable name="calPath" select="path"/>
- <a href="{$setSelection}&calUrl={$calPath}">
- <xsl:value-of select="name"/>
- </a>
- <xsl:if test="calendar">
- <ul>
- <xsl:apply-templates select="calendar" mode="myCalendars"/>
- </ul>
- </xsl:if>
- <xsl:if test="calendarCollection='true'">
- <!-- set the start date for adding an event to the first day of the
- given period, the hour of "now", and give a duration of 60 minutes -->
- <xsl:variable name="startDate"><xsl:value-of select="/bedework/firstday/date"/>T<xsl:value-of select="substring(/bedework/now/time,1,2)"/>0000</xsl:variable>
- <!-- skip setting duration for now; this should be set in the user's prefs-->
- <!-- <a href="{$initEvent}&startdate={$startDate}&newCalPath={$calPath}&minutes=60" class="calendarAdd" title="add event"> -->
- <a href="{$initEvent}&startdate={$startDate}&newCalPath={$calPath}" class="calendarAdd" title="add event">
- <img src="{$resourcesRoot}/resources/addEvent-forCals-icon.gif" width="9" height="12" border="0" alt="add event"/>
- </a>
- </xsl:if>
- </li>
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="calendar" mode="listForUpdate">
- <xsl:if test="(name != 'Inbox') and (name != 'Outbox') and (name != 'Deleted')">
- <xsl:variable name="calPath" select="encodedPath"/>
- <xsl:variable name="itemClass">
- <xsl:choose>
- <xsl:when test="calendarCollection='false'">folder</xsl:when>
- <xsl:otherwise>calendar</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <li class="{$itemClass}">
- <a href="{$calendar-fetchForUpdate}&calPath={$calPath}" title="update">
- <xsl:value-of select="name"/>
- </a>
- <xsl:if test="calendarCollection='false'">
- <xsl:text> </xsl:text>
- <a href="{$calendar-initAdd}&calPath={$calPath}" title="add a calendar or folder">
- <img src="{$resourcesRoot}/resources/calAddIcon.gif" width="13" height="13" alt="add a calendar or folder" border="0"/>
- </a>
- </xsl:if>
- <xsl:if test="calendar">
- <ul>
- <xsl:apply-templates select="calendar" mode="listForUpdate">
- <!--<xsl:sort select="title" order="ascending" case-order="upper-first"/>-->
- </xsl:apply-templates>
- </ul>
- </xsl:if>
- </li>
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="calendar" mode="listForDisplay">
- <xsl:if test="(name != 'Inbox') and (name != 'Outbox') and (name != 'Deleted')">
- <xsl:variable name="calPath" select="encodedPath"/>
- <xsl:variable name="itemClass">
- <xsl:choose>
- <xsl:when test="calendarCollection='false'">folder</xsl:when>
- <xsl:otherwise>calendar</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <li class="{$itemClass}">
- <a href="{$calendar-fetchForDisplay}&calPath={$calPath}" title="display">
- <xsl:value-of select="name"/>
- </a>
- <xsl:if test="calendar">
- <ul>
- <xsl:apply-templates select="calendar" mode="listForDisplay">
- <!--<xsl:sort select="title" order="ascending" case-order="upper-first"/>-->
- </xsl:apply-templates>
- </ul>
- </xsl:if>
- </li>
- </xsl:if>
- </xsl:template>
-
- <!-- the selectCalForEvent listing creates a calendar tree in a pop-up window
- from myCalendars and mySubscriptions -->
- <xsl:template name="selectCalForEvent">
- <h2>Select a calendar</h2>
- <form name="toggleCals" action="{$event-selectCalForEvent}">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='showAllCalsForEvent']/value = 'true'">
- <input type="radio" name="setappvar" value="showAllCalsForEvent(false)" onclick="submit()"/>
- show only writable calendars
- <input type="radio" name="setappvar" value="showAllCalsForEvent(true)" checked="checked" onclick="submit()"/>
- show all calendars
- </xsl:when>
- <xsl:otherwise>
- <input type="radio" name="setappvar" value="showAllCalsForEvent(false)" checked="checked" onclick="submit()"/>
- show only writable calendars
- <input type="radio" name="setappvar" value="showAllCalsForEvent(true)" onclick="submit()"/>
- show all calendars
- </xsl:otherwise>
- </xsl:choose>
- </form>
- <h4>My Calendars</h4>
- <ul class="calendarTree">
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='showAllCalsForEvent']/value = 'true'">
- <xsl:apply-templates select="/bedework/myCalendars/calendars/calendar" mode="selectCalForEventCalTree"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="/bedework/myCalendars/calendars/calendar[currentAccess/current-user-privilege-set/privilege/write-content]" mode="selectCalForEventCalTree"/>
- </xsl:otherwise>
- </xsl:choose>
- </ul>
- <h4>Subscribed Calendars</h4>
- <ul class="calendarTree">
- <xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/></xsl:variable>
- <xsl:choose>
- <xsl:when test="/bedework/appvar[key='showAllCalsForEvent']/value = 'true'">
- <xsl:apply-templates select="/bedework/mySubscriptions/subscription[not(contains(uri,$userPath))]/calendars/calendar" mode="selectCalForEventCalTree"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="/bedework/mySubscriptions/subscription[not(contains(uri,$userPath))]/calendars/calendar[currentAccess/current-user-privilege-set/privilege/write-content]" mode="selectCalForEventCalTree"/>
- </xsl:otherwise>
- </xsl:choose>
- </ul>
- </xsl:template>
-
- <xsl:template match="calendar" mode="selectCalForEventCalTree">
- <!-- supress Inbox and Outbox for the moment -->
- <xsl:if test="(name != 'Inbox') and (name != 'Outbox') and (name != 'Deleted')">
- <xsl:variable name="id" select="id"/>
- <xsl:variable name="itemClass">
- <xsl:choose>
- <xsl:when test="/bedework/selectionState/selectionType = 'calendar'
- and name = /bedework/selectionState/subscriptions/subscription/calendar/name">selected</xsl:when>
- <xsl:when test="name='Trash'">trash</xsl:when>
- <xsl:when test="calendarCollection='false'">folder</xsl:when>
- <xsl:otherwise>calendar</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <li class="{$itemClass}">
- <xsl:variable name="calPath" select="path"/>
- <xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/>/</xsl:variable>
- <xsl:variable name="calDisplay">
- <xsl:choose>
- <xsl:when test="contains(path,$userPath)">
- <xsl:value-of select="substring-after(path,$userPath)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="path"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="currentAccess/current-user-privilege-set/privilege/write-content and (calendarCollection = 'true')">
- <a href="javascript:updateEventFormCalendar('{$calPath}','{$calDisplay}')">
- <strong><xsl:value-of select="name"/></strong>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="name"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="calendar">
- <ul>
- <xsl:apply-templates select="calendar" mode="selectCalForEventCalTree"/>
- </ul>
- </xsl:if>
- </li>
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="currentCalendar" mode="addCalendar">
- <h3>Add Calendar / Folder</h3>
- <form name="addCalForm" action="{$calendar-update}">
- <table class="common">
- <tr>
- <th>Name:</th>
- <td>
- <xsl:variable name="curCalName" select="name"/>
- <input name="calendar.name" value="{$curCalName}" size="40"/>
- </td>
- </tr>
- <tr>
- <th>Summary:</th>
- <td>
- <xsl:variable name="curCalSummary" select="summary"/>
- <input type="text" name="calendar.summary" value="{$curCalSummary}" size="40"/>
- </td>
- </tr>
- <tr>
- <th>Description:</th>
- <td>
- <textarea name="calendar.description" cols="40" rows="4">
- <xsl:value-of select="desc"/>
- </textarea>
- </td>
- </tr>
- <tr>
- <th>Calendar/Folder:</th>
- <td>
- <input type="radio" value="true" name="calendarCollection" checked="checked"/> Calendar
- <input type="radio" value="false" name="calendarCollection"/> Folder
- </td>
- </tr>
- </table>
-
- <table border="0" id="submitTable">
- <tr>
- <td>
- <input type="submit" name="addCalendar" value="Add Calendar/Folder"/>
- <input type="submit" name="cancelled" value="Cancel"/>
- <input type="reset" value="Clear"/>
- </td>
- </tr>
- </table>
- </form>
-
- <div id="sharingBox">
- <h3>Sharing</h3>
- Sharing may be added to a calendar once created.
- </div>
-
- </xsl:template>
-
- <xsl:template match="currentCalendar" mode="modCalendar">
- <xsl:choose>
- <xsl:when test="calendarCollection='true'">
- <h3>Modify Calendar</h3>
- </xsl:when>
- <xsl:otherwise>
- <h3>Modify Folder</h3>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:variable name="calPath" select="path"/>
- <form name="modCalForm" action="{$calendar-update}">
- <table class="common">
- <tr>
- <th class="commonHeader" colspan="2">
- <xsl:value-of select="path"/>
- </th>
- </tr>
- <tr>
- <th>Name:</th>
- <td>
- <xsl:value-of select="name"/>
- </td>
- </tr>
- <tr>
- <th>Mailing List ID:</th>
- <td>
- <xsl:value-of select="mailListId"/>
- </td>
- </tr>
- <tr>
- <th>Summary:</th>
- <td>
- <xsl:variable name="curCalSummary" select="summary"/>
- <input type="text&q