Changeset 1165

Show
Ignore:
Timestamp:
12/17/06 02:45:41
Author:
johnsa
Message:

more work on public client calendar export

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/resources/bedework/index.html

    r952 r1165  
    8282            <a href="http://www.bedework.org">Bedework website</a> 
    8383          </li> 
     84          <li> 
     85            <a href="http://www.bedework.org/bedework/update.do?artcenterkey=36">Bedework documentation</a> 
     86          </li> 
     87          <li> 
     88            <a href="http://www.bedework.org/trac/bedework/">Bedework wiki</a> 
     89          </li> 
     90          <li> 
     91            <a href="http://www.bedework.org/bedework/update.do?artcenterkey=27">Bedework mailing lists</a> 
     92          </li> 
    8493        </ul> 
    8594      </div> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/blue.css

    r1162 r1165  
    133133  margin: 0px; 
    134134  padding: 0em; 
    135   border-left: 3px solid #aaa; 
     135  border-left: 2px solid #aaa; 
    136136  padding: 0.1em 0 0 0.5em; 
    137137  white-space: nowrap; 
     
    155155  padding: 0em; 
    156156  text-align: right; 
    157   border-right: 3px solid #aaa; 
     157  border-right: 2px solid #aaa; 
    158158  padding: 0.1em 0.1em 0em 0em; 
    159159  white-space: nowrap; 
     
    989989  visibility: hidden; 
    990990} 
     991.invisible { 
     992  display: none; 
     993} 
     994/* dojo widget overrides */ 
     995html .dojoFloatingPane { 
     996  width: 400px; 
     997  height: 200px; 
     998  text-align: left; 
     999} 
     1000html .dojoFloatingPaneTitleBar { 
     1001  color: white; 
     1002  background: #2c5f89 url(../../images/curDateRangeBlue.gif) repeat-x bottom; 
     1003} 
     1004html .dojoFloatingPaneTitleText { 
     1005  padding: 0.25em 1em; 
     1006  font-weight: bold; 
     1007  font-size: 0.8em; 
     1008} 
     1009html .dojoFloatingPaneClient { 
     1010  padding: 1em; 
     1011} 
     1012html .dojoFloatingPaneClient input.bwWidgetSubmit { 
     1013  position: absolute; 
     1014  bottom: 1em; 
     1015  right: 1em; 
     1016} 
     1017html .dojoFloatingPaneClient #exportDateRange { 
     1018  margin: 1em 0; 
     1019  text-align: center; 
     1020} 
     1021html .dojoFloatingPaneClient #bwCalendarExportWidgetCalName { 
     1022  padding-left: 1em; 
     1023} 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl

    r1163 r1165  
    104104      <head> 
    105105        <title>Bedework Events Calendar</title> 
     106        <!-- load css --> 
    106107        <xsl:choose> 
    107108          <xsl:when test="/bedework/appvar[key='style']/value='red'"> 
     
    117118        <link rel="stylesheet" href="{$resourcesRoot}/default/default/subColors.css"/> 
    118119        <link rel="stylesheet" type="text/css" media="print" href="{$resourcesRoot}/default/default/print.css" /> 
    119         <script type="text/javascript" src="{$resourcesRoot}/default/default/includes.js"/> 
     120        <!-- load javascript --> 
     121        <xsl:if test="/bedework/page='calendarList'"> 
     122          <script type="text/javascript" src="{$resourcesRoot}/resources/javascript/dojo/dojo.js"/> 
     123          <script type="text/javascript" src="{$resourcesRoot}/resources/javascript/bedework.js"/> 
     124        </xsl:if> 
     125        <!-- address bar icon --> 
    120126        <link rel="icon" type="image/ico" href="{$resourcesRoot}/images/bedework.ico" /> 
    121127      </head> 
     
    11521158        <td colspan="2" class="infoCell"> 
    11531159          Select a calendar from the list below to see only that calendar's events. 
     1160          <div dojoType="FloatingPane" id="bwCalendarExportWidget" 
     1161               title="Export Calendar as iCal" toggle="fade" toggleDuration="150" 
     1162               windowState="minimized" hasShadow="true" displayMinimizeAction="true"> 
     1163            <form name="exportCalendarForm" id="exportCalendarForm" action="{$export}" method="post"> 
     1164              <input type="hidden" name="calPath" value=""/> 
     1165              <input type="hidden" name="nocache" value="no"/> 
     1166              <input type="hidden" name="skinName" value="ical"/> 
     1167              <input type="hidden" name="contentType" value="text/calendar"/> 
     1168              <input type="hidden" name="contentName" value="calendar.ics"/> 
     1169 
     1170 
     1171              <p> 
     1172                <strong>Calendar to export:</strong> 
     1173                <span id="bwCalendarExportWidgetCalName"></span> 
     1174              </p> 
     1175              <strong>Event date limits:</strong><br/> 
     1176              <input type="radio" name="dateLimits" value="active" checked="checked" onclick="changeClass('exportDateRange','invisible')"/> today forward 
     1177              <input type="radio" name="dateLimits" value="none" onclick="changeClass('exportDateRange','invisible')"/> all dates 
     1178              <input type="radio" name="dateLimits" value="limited" onclick="changeClass('exportDateRange','visible')"/> date range 
     1179              <div id="exportDateRange" class="invisible"> 
     1180                to be implemented 
     1181              <!--  <strong>Start:</strong> 
     1182                <div class="dateFields"> 
     1183                  <xsl:copy-of select="/bedework/formElements/form/start/month/*"/> 
     1184                  <xsl:copy-of select="/bedework/formElements/form/start/day/*"/> 
     1185                  <xsl:copy-of select="/bedework/formElements/form/start/yearText/*"/> 
     1186                </div> 
     1187                <script language="JavaScript" type="text/javascript"> 
     1188                <xsl:comment> 
     1189                  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',false,'<xsl:value-of select="$resourcesRoot"/>/resources/'); 
     1190                </xsl:comment> 
     1191                </script> 
     1192                &#160;&#160; 
     1193                <strong>End:</strong> 
     1194                <div class="dateFields"> 
     1195                  <xsl:copy-of select="/bedework/formElements/form/end/month/*"/> 
     1196                  <xsl:copy-of select="/bedework/formElements/form/end/day/*"/> 
     1197                   <xsl:copy-of select="/bedework/formElements/form/end/yearText/*"/> 
     1198                </div> 
     1199                <script language="JavaScript" type="text/javascript"> 
     1200                <xsl:comment> 
     1201                  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',false,'<xsl:value-of select="$resourcesRoot"/>/resources/'); 
     1202                </xsl:comment> 
     1203                </script> 
     1204                --> 
     1205              </div> 
     1206              <p><input type="submit" value="export" class="bwWidgetSubmit" onclick="hideWidget('bwCalendarExportWidget')"/></p> 
     1207            </form> 
     1208          </div> 
    11541209        </td> 
    11551210      </tr> 
     
    11831238        <xsl:variable name="calPath" select="encodedPath"/> 
    11841239        <span class="exportCalLink"> 
    1185           <a href="{$export}&amp;calPath={$calPath}&amp;dateLimits=active&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$name}.ics" title="export calendar as iCal (excluding past events)"> 
     1240          <!--<a href="{$export}&amp;calPath={$calPath}&amp;dateLimits=active&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$name}.ics" title="export calendar as iCal (excluding past events)">--> 
     1241          <a href="javascript:launchExportWidget('exportCalendarForm','{$name}','{$calPath}')" id="{$calPath}"> 
    11861242            <img src="{$resourcesRoot}/images/calIconExport-sm.gif" width="13" height="13" alt="export calendar" border="0"/> 
    11871243          </a> 
     1244          <!--</a>--> 
    11881245          <!--export 
    11891246          <a href="{$export}&amp;calPath={$calPath}&amp;dateLimits=active&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$name}.ics" title="export calendar as iCal (excluding past events)">current</a> | 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/errors.xsl

    r1164 r1165  
    2424          No default view 
    2525      </xsl:when> 
     26      <xsl:when test="id='edu.rpi.sss.util.error.exc'"> 
     27        An exception occurred: <em><xsl:value-of select="param"/></em> 
     28      </xsl:when> 
    2629      <xsl:otherwise> 
    2730        <xsl:value-of select="id"/> 
     
    2932            = <xsl:value-of select="param"/> 
    3033        </xsl:if> 
    31       <xsl:when test="id='edu.rpi.sss.util.error.exc'"> 
    32         An exception occurred: <em><xsl:value-of select="param"/></em> 
    33       </xsl:when> 
    3434      </xsl:otherwise> 
    3535    </xsl:choose> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/green.css

    r1162 r1165  
    5959  width: 100%; 
    6060  height: 26px; 
    61   background: #2c5f89 url(../../images/curDateRangeGreen.gif) repeat-x bottom; 
     61  background: #326432 url(../../images/curDateRangeGreen.gif) repeat-x bottom; 
    6262  color : #eee; 
    6363  margin: 0em; 
     
    142142  margin: 0px; 
    143143  padding: 0em; 
    144   border-left: 3px solid #333; 
     144  border-left: 2px solid #333; 
    145145  padding: 0.1em 0 0 0.5em; 
    146146  white-space: nowrap; 
     
    164164  padding: 0em; 
    165165  text-align: right; 
    166   border-right: 3px solid #333; 
     166  border-right: 2px solid #333; 
    167167  padding: 0.1em 0.1em 0em 0em; 
    168168  white-space: nowrap; 
     
    902902  padding: 0.2em 0.2em 0.2em 0.5em; 
    903903  font-size: 1.3em; 
    904   border-bottom: 1px solid #ccc
    905   border-left: 2px solid #aaa
    906   border-right: 2px solid #aaa
     904  border-bottom: 1px solid #999
     905  border-left: 2px solid #333
     906  border-right: 2px solid #333
    907907} 
    908908h2 a:link, 
     
    917917  background-color: #eee; 
    918918  color: black; 
    919   border-top: 1px solid #bbb
     919  border-top: 1px solid #333
    920920} 
    921921h2.bwStatusCancelled { 
    922922  background-color: #eee; 
    923923  color: black; 
    924   border-top: 1px solid #bbb
     924  border-top: 1px solid #333
    925925} 
    926926h2.bwStatusTentative { 
    927927  background: #eee url('../../images/tentativeLines.gif') top; 
    928928  color: black; 
    929   border-top: 1px solid #bbb
     929  border-top: 1px solid #333
    930930} 
    931931/* Header IDs and classes */ 
     
    994994  visibility: hidden; 
    995995} 
     996.invisible { 
     997  display: none; 
     998} 
     999/* dojo widget overrides */ 
     1000html .dojoFloatingPane { 
     1001  width: 400px; 
     1002  height: 200px; 
     1003  text-align: left; 
     1004} 
     1005html .dojoFloatingPaneTitleBar { 
     1006  color: white; 
     1007  background-color: #326432; 
     1008} 
     1009html .dojoFloatingPaneTitleText { 
     1010  padding: 0.25em 1em; 
     1011  font-weight: bold; 
     1012  font-size: 0.8em; 
     1013} 
     1014html .dojoFloatingPaneClient { 
     1015  padding: 1em; 
     1016} 
     1017html .dojoFloatingPaneClient input.bwWidgetSubmit { 
     1018  position: absolute; 
     1019  bottom: 1em; 
     1020  right: 1em; 
     1021} 
     1022html .dojoFloatingPaneClient #exportDateRange, 
     1023html .dojoFloatingPaneClient #bwCalendarExportWidgetCalName { 
     1024  margin: 1em 0; 
     1025  text-align: center; 
     1026} 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/red.css

    r1162 r1165  
    5959  width: 100%; 
    6060  height: 26px; 
    61   background: #2c5f89 url(../../images/curDateRangeRed.gif) repeat-x bottom; 
     61  background: #7E0000 url(../../images/curDateRangeRed.gif) repeat-x bottom; 
    6262  color : #eee; 
    6363  margin: 0em; 
     
    8484} 
    8585#curDateRangeTable td.rssPrint { 
    86   background: url(../../images/curDateRangeRed-right.gif) no-repeat top right; 
     86  background-image: url(../../images/curDateRangeRed-right.gif) no-repeat top right; 
    8787  color: inherit; 
    8888  width: 200px; 
     
    142142  margin: 0px; 
    143143  padding: 0em; 
    144   border-left: 3px solid #333; 
     144  border-left: 2px solid #333; 
    145145  padding: 0.1em 0 0 0.5em; 
    146146  white-space: nowrap; 
     
    164164  padding: 0em; 
    165165  text-align: right; 
    166   border-right: 3px solid #333; 
     166  border-right: 2px solid #333; 
    167167  padding: 0.1em 0.1em 0em 0em; 
    168168  white-space: nowrap; 
     
    907907  padding: 0.2em 0.2em 0.2em 0.5em; 
    908908  font-size: 1.3em; 
    909   border-bottom: 1px solid #ccc
    910   border-left: 2px solid #aaa
    911   border-right: 2px solid #aaa
     909  border-bottom: 1px solid #999
     910  border-left: 2px solid #333
     911  border-right: 2px solid #333
    912912} 
    913913h2 a:link, 
     
    922922  background-color: #eee; 
    923923  color: black; 
    924   border-top: 1px solid #bbb
     924  border-top: 1px solid #333
    925925} 
    926926h2.bwStatusCancelled { 
    927927  background-color: #eee; 
    928928  color: black; 
    929   border-top: 1px solid #bbb
     929  border-top: 1px solid #333
    930930} 
    931931h2.bwStatusTentative { 
    932932  background: #eee url('../../images/tentativeLines.gif') top; 
    933933  color: black; 
    934   border-top: 1px solid #bbb
     934  border-top: 1px solid #333
    935935} 
    936936/* Header IDs and classes */ 
     
    999999  visibility: hidden; 
    10001000} 
     1001.invisible { 
     1002  display: none; 
     1003} 
     1004/* dojo widget overrides */ 
     1005html .dojoFloatingPane { 
     1006  width: 400px; 
     1007  height: 200px; 
     1008  text-align: left; 
     1009} 
     1010html .dojoFloatingPaneTitleBar { 
     1011  color: white; 
     1012  background-color: #7E0000; 
     1013} 
     1014html .dojoFloatingPaneTitleText { 
     1015  padding: 0.25em 1em; 
     1016  font-weight: bold; 
     1017  font-size: 0.8em; 
     1018} 
     1019html .dojoFloatingPaneClient { 
     1020  padding: 1em; 
     1021} 
     1022html .dojoFloatingPaneClient input.bwWidgetSubmit { 
     1023  position: absolute; 
     1024  bottom: 1em; 
     1025  right: 1em; 
     1026} 
     1027html .dojoFloatingPaneClient #exportDateRange, 
     1028html .dojoFloatingPaneClient #bwCalendarExportWidgetCalName { 
     1029  margin: 1em 0; 
     1030  text-align: center; 
     1031}