Changeset 291

Show
Ignore:
Timestamp:
03/17/06 15:10:28
Author:
johnsa
Message:

first round of updates to the personal client; this fixes general style and image paths, but leaves the add event form in an incomplete state.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.css

    r276 r291  
    224224#tabsTable .centerCell { 
    225225  text-align: left; 
    226   background : url(images/std-tab-space.gif); 
     226  background : url(../../resources/std-tab-space.gif); 
    227227  font-size: 0.8em; 
    228228  white-space: nowrap; 
     
    234234} 
    235235#tabsTable .rightCell { 
    236   background : url(images/std-tab-space.gif); 
     236  background : url(../../resources/std-tab-space.gif); 
    237237  padding-right: 0.5em; 
    238238} 
     
    383383  background-color: white; 
    384384} 
     385#clock { 
     386  position: relative; 
     387} 
     388.shown { 
     389  display: inline; 
     390} 
     391.invisible { 
     392  display: none; 
     393} 
     394.hidden { 
     395  visibility: hidden; 
     396} 
    385397form#subscriptions { 
    386398  margin: 0; 
     
    416428} 
    417429#calPageTable ul.calendarTree li.folder { 
    418   list-style-image: url(../../images/demo/catIcon.gif); 
     430  list-style-image: url(../../resources/catIcon.gif); 
    419431  padding-top: 0.25em; 
    420432  padding-bottom: 0.25em; 
    421433} 
    422434#calPageTable ul.calendarTree li.calendar { 
    423   list-style-image: url(../../images/demo/calIcon-sm.gif); 
     435  list-style-image: url(../../resources/calIcon-sm.gif); 
    424436} 
    425437#calPageTable td.infoCell { 
  • trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r286 r291  
    9595              <xsl:when test="/bedework/appvar[key='sidebar']/value='closed'"> 
    9696                <td id="sideBarClosed"> 
    97                   <img src="{$resourcesRoot}/images/demo/spacer.gif" width="1" height="1" border="0" alt="*"/> 
     97                  <img src="{$resourcesRoot}/resources/spacer.gif" width="1" height="1" border="0" alt="*"/> 
    9898                </td> 
    9999              </xsl:when> 
     
    187187  <xsl:template name="headSection"> 
    188188     <title>Bedework: Personal Calendar Client</title> 
     189      <meta name="robots" content="noindex,nofollow"/> 
    189190      <link rel="stylesheet" href="{$resourcesRoot}/default/default/default.css"/> 
    190       <meta name="robots" content="noindex,nofollow"/> 
    191191      <link rel="stylesheet" type="text/css" media="print" href="{$resourcesRoot}/default/default/print.css" /> 
    192       <!--<link rel="icon" type="image/ico" href="{}/favicon.ico" />--
    193       <script language="JavaScript"> 
    194         // launches new browser window with print-friendly version of page when 
    195         // print icon is clicked 
    196         function launchPrintWindow(URL) { 
    197           printWindow = window.open(URL, "printWindow", "width=640,height=500,scrollbars=yes,resizable=yes,alwaysRaised=yes,menubar=yes,toolbar=yes"); 
    198           window.printWindow.focus(); 
    199         } 
    200       </script
     192      <link rel="icon" type="image/ico" href="{$resourcesRoot}/resources/bedework.ico" /
     193      <xsl:if test="/bedework/page='addEvent' or /bedework/page='editEvent'"> 
     194        <script type="text/javascript" src="{$resourcesRoot}/resources/includes.js"></script> 
     195        <script type="text/javascript" src="{$resourcesRoot}/resources/bwClock.js"></script> 
     196        <link rel="stylesheet" href="{$resourcesRoot}/resources/bwClock.css"/> 
     197        <script type="text/javascript" src="{$resourcesRoot}/resources/dynCalendarWidget.js"></script> 
     198        <link rel="stylesheet" href="{$resourcesRoot}/resources/dynCalendarWidget.css"/> 
     199        <script type="text/javascript" src="{$resourcesRoot}/resources/browserSniffer.js"></script> 
     200      </xsl:if
    201201  </xsl:template> 
    202202 
     
    209209    <table width="100%" border="0" cellpadding="0" cellspacing="0" id="logoTable"> 
    210210      <tr> 
    211         <td colspan="3" id="logoCell"><a href="http://www.bedework.org/"><img src="{$resourcesRoot}/images/demo/bedeworkLogo.gif" width="292" height="75" border="0" alt="Bedework"/></a></td> 
     211        <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> 
    212212        <td colspan="2" id="schoolLinksCell"> 
    213213          <h2>Personal Calendar</h2> 
     
    223223    <table width="100%" border="0" cellpadding="0" cellspacing="0"> 
    224224      <tr> 
    225         <td width="50%"><img alt="" src="{$resourcesRoot}/images/demo/metacal-topBorder.gif" width="100%" height="23" border="0"/></td> 
    226         <td><img src="{$resourcesRoot}/images/demo/metacal-topTitlePersonal.gif" width="221" height="23" border="0" alt="Bedework Personal Events Calendar"/></td> 
    227         <td width="50%"><img alt="" src="{$resourcesRoot}/images/demo/metacal-topBorder.gif" width="100%" height="23" border="0"/></td> 
     225        <td width="50%"><img alt="" src="{$resourcesRoot}/resources/metacal-topBorder.gif" width="100%" height="23" border="0"/></td> 
     226        <td><img src="{$resourcesRoot}/resources/metacal-topTitlePersonal.gif" width="221" height="23" border="0" alt="Bedework Personal Events Calendar"/></td> 
     227        <td width="50%"><img alt="" src="{$resourcesRoot}/resources/metacal-topBorder.gif" width="100%" height="23" border="0"/></td> 
    228228      </tr> 
    229229    </table> 
     
    233233          <xsl:when test="/bedework/appvar[key='sidebar']/value='closed'"> 
    234234            <a href="?setappvar=sidebar(opened)"> 
    235               <img alt="open sidebar" src="{$resourcesRoot}/images/demo/std-sidebaropen-icon.gif" width="13" height="13" border="0" align="left"/> 
     235              <img alt="open sidebar" src="{$resourcesRoot}/resources/std-sidebaropen-icon.gif" width="13" height="13" border="0" align="left"/> 
    236236            </a> 
    237237          </xsl:when> 
    238238          <xsl:otherwise> 
    239239            <a href="?setappvar=sidebar(closed)"> 
    240               <img alt="close sidebar" src="{$resourcesRoot}/images/demo/std-sidebarclose-icon.gif" width="13" height="13" border="0" align="left"/> 
     240              <img alt="close sidebar" src="{$resourcesRoot}/resources/std-sidebarclose-icon.gif" width="13" height="13" border="0" align="left"/> 
    241241            </a> 
    242242          </xsl:otherwise> 
     
    275275              <xsl:choose> 
    276276                <xsl:when test="/bedework/periodname='Day'"> 
    277                   <a href="{$setViewPeriod}?viewType=dayView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-day-on.gif" width="91" height="20" border="0" alt="DAY"/></a> 
     277                  <a href="{$setViewPeriod}?viewType=dayView&amp;date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-day-on.gif" width="91" height="20" border="0" alt="DAY"/></a> 
    278278                </xsl:when> 
    279279                <xsl:otherwise> 
    280                   <a href="{$setViewPeriod}?viewType=dayView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a> 
     280                  <a href="{$setViewPeriod}?viewType=dayView&amp;date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a> 
    281281                </xsl:otherwise> 
    282282              </xsl:choose> 
     
    285285              <xsl:choose> 
    286286                <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''"> 
    287                   <a href="{$setViewPeriod}?viewType=weekView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-week-on.gif" width="92" height="20" border="0" alt="WEEK"/></a> 
     287                  <a href="{$setViewPeriod}?viewType=weekView&amp;date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-week-on.gif" width="92" height="20" border="0" alt="WEEK"/></a> 
    288288                 </xsl:when> 
    289289                <xsl:otherwise> 
    290                   <a href="{$setViewPeriod}?viewType=weekView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a> 
     290                  <a href="{$setViewPeriod}?viewType=weekView&amp;date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a> 
    291291                 </xsl:otherwise> 
    292292              </xsl:choose> 
     
    295295              <xsl:choose> 
    296296                <xsl:when test="/bedework/periodname='Month'"> 
    297                   <a href="{$setViewPeriod}?viewType=monthView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-month-on.gif" width="90" height="20" border="0" alt="MONTH"/></a> 
     297                  <a href="{$setViewPeriod}?viewType=monthView&amp;date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-month-on.gif" width="90" height="20" border="0" alt="MONTH"/></a> 
    298298                </xsl:when> 
    299299                <xsl:otherwise> 
    300                   <a href="{$setViewPeriod}?viewType=monthView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a> 
     300                  <a href="{$setViewPeriod}?viewType=monthView&amp;date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a> 
    301301                </xsl:otherwise> 
    302302              </xsl:choose> 
     
    305305              <xsl:choose> 
    306306                <xsl:when test="/bedework/periodname='Year'"> 
    307                   <a href="{$setViewPeriod}?viewType=yearView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-year-on.gif" width="92" height="20" border="0" alt="YEAR"/></a> 
     307                  <a href="{$setViewPeriod}?viewType=yearView&amp;date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-year-on.gif" width="92" height="20" border="0" alt="YEAR"/></a> 
    308308                </xsl:when> 
    309309                <xsl:otherwise> 
    310                   <a href="{$setViewPeriod}?viewType=yearView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a> 
     310                  <a href="{$setViewPeriod}?viewType=yearView&amp;date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a> 
    311311                </xsl:otherwise> 
    312312              </xsl:choose> 
     
    317317            <td class="rssPrint"> 
    318318              <a href="javascript:window.print()" title="print this view"> 
    319                 <img alt="print this view" src="{$resourcesRoot}/images/demo/std-print-icon.gif" width="20" height="14" border="0"/> print 
     319                <img alt="print this view" src="{$resourcesRoot}/resources/std-print-icon.gif" width="20" height="14" border="0"/> print 
    320320              </a> 
    321321              <a class="rss" href="{$setSelection}?calId=&amp;setappvar=summaryMode(details)&amp;skinName=rss" title="RSS feed">RSS</a> 
     
    332332          <tr> 
    333333            <td> 
    334               <a href="{$setViewPeriod}?viewType=dayView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a> 
     334              <a href="{$setViewPeriod}?viewType=dayView&amp;date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a> 
    335335            </td> 
    336336            <td> 
    337               <a href="{$setViewPeriod}?viewType=weekView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a> 
     337              <a href="{$setViewPeriod}?viewType=weekView&amp;date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a> 
    338338            </td> 
    339339            <td> 
    340               <a href="{$setViewPeriod}?viewType=monthView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a> 
     340              <a href="{$setViewPeriod}?viewType=monthView&amp;date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a> 
    341341            </td> 
    342342            <td> 
    343               <a href="{$setViewPeriod}?viewType=yearView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/demo/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a> 
     343              <a href="{$setViewPeriod}?viewType=yearView&amp;date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a> 
    344344            </td> 
    345345            <td class="centerCell"> 
     
    359359      <tr> 
    360360        <td class="leftCell"> 
    361           <a href="{$setViewPeriod}?date={$prevdate}"><img src="{$resourcesRoot}/images/demo/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a> 
    362           <a href="{$setViewPeriod}?date={$nextdate}"><img src="{$resourcesRoot}/images/demo/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a> 
     361          <a href="{$setViewPeriod}?date={$prevdate}"><img src="{$resourcesRoot}/resources/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a> 
     362          <a href="{$setViewPeriod}?date={$nextdate}"><img src="{$resourcesRoot}/resources/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a> 
    363363          <xsl:choose> 
    364364            <xsl:when test="/bedework/periodname='Day'"> 
     
    437437        <td class="todayButton"> 
    438438          <a href="{$setViewPeriod}?viewType=todayView&amp;date={$curdate}"> 
    439             <img src="{$resourcesRoot}/images/demo/std-button-today-off.gif" width="54" height="22" border="0" alt="Go to Today" align="left"/> 
     439            <img src="{$resourcesRoot}/resources/std-button-today-off.gif" width="54" height="22" border="0" alt="Go to Today" align="left"/> 
    440440          </a> 
    441441        </td> 
     
    490490           <xsl:choose> 
    491491            <xsl:when test="/bedework/periodname='Day'"> 
    492               <img src="{$resourcesRoot}/images/demo/std-button-listview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 
     492              <img src="{$resourcesRoot}/resources/std-button-listview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 
    493493            </xsl:when> 
    494494            <xsl:when test="/bedework/periodname='Year'"> 
    495               <img src="{$resourcesRoot}/images/demo/std-button-calview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 
     495              <img src="{$resourcesRoot}/resources/std-button-calview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 
    496496            </xsl:when> 
    497497            <xsl:when test="/bedework/periodname='Month'"> 
     
    499499                <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'"> 
    500500                  <a href="{$setup}?setappvar=monthViewMode(cal)" title="toggle list/calendar view"> 
    501                     <img src="{$resourcesRoot}/images/demo/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 
     501                    <img src="{$resourcesRoot}/resources/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 
    502502                  </a> 
    503503                </xsl:when> 
    504504                <xsl:otherwise> 
    505505                  <a href="{$setup}?setappvar=monthViewMode(list)" title="toggle list/calendar view"> 
    506                     <img src="{$resourcesRoot}/images/demo/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 
     506                    <img src="{$resourcesRoot}/resources/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 
    507507                  </a> 
    508508                </xsl:otherwise> 
     
    513513                <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'"> 
    514514                  <a href="{$setup}?setappvar=weekViewMode(cal)" title="toggle list/calendar view"> 
    515                     <img src="{$resourcesRoot}/images/demo/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 
     515                    <img src="{$resourcesRoot}/resources/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 
    516516                  </a> 
    517517                </xsl:when> 
    518518                <xsl:otherwise> 
    519519                  <a href="{$setup}?setappvar=weekViewMode(list)" title="toggle list/calendar view"> 
    520                     <img src="{$resourcesRoot}/images/demo/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 
     520                    <img src="{$resourcesRoot}/resources/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 
    521521                  </a> 
    522522                </xsl:otherwise> 
     
    534534                <xsl:choose> 
    535535                  <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 
    536                     <img src="{$resourcesRoot}/images/demo/std-button-summary-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/> 
     536                    <img src="{$resourcesRoot}/resources/std-button-summary-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/> 
    537537                  </xsl:when> 
    538538                  <xsl:otherwise> 
    539                     <img src="{$resourcesRoot}/images/demo/std-button-details-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/> 
     539                    <img src="{$resourcesRoot}/resources/std-button-details-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/> 
    540540                  </xsl:otherwise> 
    541541                </xsl:choose> 
     
    545545                  <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 
    546546                    <a href="{$setup}?setappvar=summaryMode(summary)" title="toggle summary/detailed view"> 
    547                       <img src="{$resourcesRoot}/images/demo/std-button-summary.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/> 
     547                      <img src="{$resourcesRoot}/resources/std-button-summary.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/> 
    548548                    </a> 
    549549                  </xsl:when> 
    550550                  <xsl:otherwise> 
    551551                    <a href="{$setup}?setappvar=summaryMode(details)" title="toggle summary/detailed view"> 
    552                       <img src="{$resourcesRoot}/images/demo/std-button-details.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/> 
     552                      <img src="{$resourcesRoot}/resources/std-button-details.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/> 
    553553                    </a> 
    554554                  </xsl:otherwise> 
     
    556556              </xsl:otherwise> 
    557557            </xsl:choose> 
    558             <a href="setup.do"><img src="{$resourcesRoot}/images/demo/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a> 
     558            <a href="setup.do"><img src="{$resourcesRoot}/resources/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a> 
    559559         </td> 
    560560       </tr> 
     
    10691069          <xsl:variable name="icalName" select="concat($guid,'.ics')"/> 
    10701070          <a href="{$eventView}?subid={$subscriptionId}&amp;&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$icalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 
    1071             <img src="{$resourcesRoot}/images/demo/std-ical-icon.gif" width="20" height="26" border="0" align="left" alt="Download this event"/> 
     1071            <img src="{$resourcesRoot}/resources/std-ical-icon.gif" width="20" height="26" border="0" align="left" alt="Download this event"/> 
    10721072          </a><!-- <br /> 
    10731073          [<a href="">help</a>] --> 
     
    11821182        </tr> 
    11831183        <tr> 
    1184           <td class="fieldName"> 
     1184          <td class="fieldname"> 
    11851185            Date &amp; Time: 
    11861186          </td> 
    1187           <td
     1187          <td class="fieldval"
    11881188            <!-- Set the timefields class for the first load of the page; 
    11891189                 subsequent changes will take place using javascript without a 
     
    11911191            <xsl:variable name="timeFieldsClass"> 
    11921192              <xsl:choose> 
    1193                 <xsl:when test="/bedeworkadmin/formElements/form/allDay/input/@checked='checked'">invisible</xsl:when> 
     1193                <xsl:when test="/bedework/formElements/form/allDay/input/@checked='checked'">invisible</xsl:when> 
    11941194                <xsl:otherwise>timeFields</xsl:otherwise> 
    11951195              </xsl:choose> 
    11961196            </xsl:variable> 
    11971197            <xsl:choose> 
    1198               <xsl:when test="/bedeworkadmin/formElements/form/allDay/input/@checked='checked'"> 
     1198              <xsl:when test="/bedework/formElements/form/allDay/input/@checked='checked'"> 
    11991199                <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="on" checked="checked"/> 
    12001200                <input type="hidden" name="eventStartDate.dateOnly" value="on" id="allDayStartDateField"/> 
     
    12121212              <div class="dateFields"> 
    12131213                <span class="startDateLabel">Date </span> 
    1214                 <xsl:copy-of select="/bedeworkadmin/formElements/form/start/month/*"/> 
    1215                 <xsl:copy-of select="/bedeworkadmin/formElements/form/start/day/*"/> 
     1214                <xsl:copy-of select="/bedework/formElements/form/start/month/*"/> 
     1215                <xsl:copy-of select="/bedework/formElements/form/start/day/*"/> 
    12161216                <xsl:choose> 
    1217                   <xsl:when test="/bedeworkadmin/creating = 'true'"> 
    1218                     <xsl:copy-of select="/bedeworkadmin/formElements/form/start/year/*"/> 
     1217                  <xsl:when test="/bedework/creating = 'true'"> 
     1218                    <xsl:copy-of select="/bedework/formElements/form/start/year/*"/> 
    12191219                  </xsl:when> 
    12201220                  <xsl:otherwise> 
    1221                     <xsl:copy-of select="/bedeworkadmin/formElements/form/start/yearText/*"/> 
     1221                    <xsl:copy-of select="/bedework/formElements/form/start/yearText/*"/> 
    12221222                  </xsl:otherwise> 
    12231223                </xsl:choose> 
     
    12311231              <div class="{$timeFieldsClass}" id="startTimeFields"> 
    12321232                <span id="calWidgetStartTimeHider" class="show"> 
    1233                   <xsl:copy-of select="/bedeworkadmin/formElements/form/start/hour/*"/> 
    1234                   <xsl:copy-of select="/bedeworkadmin/formElements/form/start/minute/*"/> 
    1235                   <xsl:if test="/bedeworkadmin/formElements/form/start/ampm"> 
    1236                     <xsl:copy-of select="/bedeworkadmin/formElements/form/start/ampm/*"/> 
     1233                  <xsl:copy-of select="/bedework/formElements/form/start/hour/*"/> 
     1234                  <xsl:copy-of select="/bedework/formElements/form/start/minute/*"/> 
     1235                  <xsl:if test="/bedework/formElements/form/start/ampm"> 
     1236                    <xsl:copy-of select="/bedework/formElements/form/start/ampm/*"/> 
    12371237                  </xsl:if> 
    12381238                  <xsl:text> </xsl:text> 
     
    12441244              <strong>End:</strong> 
    12451245              <xsl:choose> 
    1246                 <xsl:when test="/bedeworkadmin/formElements/form/end/type='E'"> 
     1246                <xsl:when test="/bedework/formElements/form/end/type='E'"> 
    12471247                  <input type="radio" name="eventEndType" value="E" checked="checked" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 
    12481248                </xsl:when> 
     
    12541254              <xsl:variable name="endDateTimeClass"> 
    12551255                <xsl:choose> 
    1256                   <xsl:when test="/bedeworkadmin/formElements/form/end/type='E'">shown</xsl:when> 
     1256                  <xsl:when test="/bedework/formElements/form/end/type='E'">shown</xsl:when> 
    12571257                  <xsl:otherwise>invisible</xsl:otherwise> 
    12581258                </xsl:choose> 
     
    12601260              <div class="{$endDateTimeClass}" id="endDateTime"> 
    12611261                <div class="dateFields"> 
    1262                   <xsl:copy-of select="/bedeworkadmin/formElements/form/end/dateTime/month/*"/> 
    1263                   <xsl:copy-of select="/bedeworkadmin/formElements/form/end/dateTime/day/*"/> 
     1262                  <xsl:copy-of select="/bedework/formElements/form/end/dateTime/month/*"/> 
     1263                  <xsl:copy-of select="/bedework/formElements/form/end/dateTime/day/*"/> 
    12641264                  <xsl:choose> 
    1265                     <xsl:when test="/bedeworkadmin/creating = 'true'"> 
    1266                       <xsl:copy-of select="/bedeworkadmin/formElements/form/end/dateTime/year/*"/> 
     1265                    <xsl:when test="/bedework/creating = 'true'"> 
     1266                      <xsl:copy-of select="/bedework/formElements/form/end/dateTime/year/*"/> 
    12671267                    </xsl:when> 
    12681268                    <xsl:otherwise> 
    1269                       <xsl:copy-of select="/bedeworkadmin/formElements/form/end/dateTime/yearText/*"/> 
     1269                      <xsl:copy-of select="/bedework/formElements/form/end/dateTime/yearText/*"/> 
    12701270                    </xsl:otherwise> 
    12711271                  </xsl:choose> 
     
    12791279                <div class="{$timeFieldsClass}" id="endTimeFields"> 
    12801280                  <span id="calWidgetEndTimeHider" class="show"> 
    1281                     <xsl:copy-of select="/bedeworkadmin/formElements/form/end/dateTime/hour/*"/> 
    1282                     <xsl:copy-of select="/bedeworkadmin/formElements/form/end/dateTime/minute/*"/> 
    1283                     <xsl:if test="/bedeworkadmin/formElements/form/end/dateTime/ampm"> 
    1284                       <xsl:copy-of select="/bedeworkadmin/formElements/form/end/dateTime/ampm/*"/> 
     1281                    <xsl:copy-of select="/bedework/formElements/form/end/dateTime/hour/*"/> 
     1282                    <xsl:copy-of select="/bedework/formElements/form/end/dateTime/minute/*"/> 
     1283                    <xsl:if test="/bedework/formElements/form/end/dateTime/ampm"> 
     1284                      <xsl:copy-of select="/bedework/formElements/form/end/dateTime/ampm/*"/> 
    12851285                    </xsl:if> 
    12861286                    <xsl:text> </xsl:text> 
     
    12941294              <div class="dateFields"> 
    12951295                <xsl:choose> 
    1296                   <xsl:when test="/bedeworkadmin/formElements/form/end/type='D'"> 
     1296                  <xsl:when test="/bedework/formElements/form/end/type='D'"> 
    12971297                    <input type="radio" name="eventEndType" value="D" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 
    12981298                  </xsl:when> 
     
    13041304                <xsl:variable name="endDurationClass"> 
    13051305                  <xsl:choose> 
    1306                     <xsl:when test="/bedeworkadmin/formElements/form/end/type='D'">shown</xsl:when> 
     1306                    <xsl:when test="/bedework/formElements/form/end/type='D'">shown</xsl:when> 
    13071307                    <xsl:otherwise>invisible</xsl:otherwise> 
    13081308                  </xsl:choose> 
     
    13101310                <xsl:variable name="durationHrMinClass"> 
    13111311                  <xsl:choose> 
    1312                     <xsl:when test="/bedeworkadmin/formElements/form/allDay/input/@checked='checked'">invisible</xsl:when> 
     1312                    <xsl:when test="/bedework/formElements/form/allDay/input/@checked='checked'">invisible</xsl:when> 
    13131313                    <xsl:otherwise>shown</xsl:otherwise> 
    13141314                  </xsl:choose> 
     
    13161316                <div class="{$endDurationClass}" id="endDuration"> 
    13171317                  <xsl:choose> 
    1318                     <xsl:when test="/bedeworkadmin/formElements/form/end/duration/weeks/input/@value = '0'"> 
     1318                    <xsl:when test="/bedework/formElements/form/end/duration/weeks/input/@value = '0'"> 
    13191319                    <!-- we are using day, hour, minute format --> 
    13201320                    <!-- must send either no week value or week value of 0 (zero) --> 
    13211321                      <div class="durationBox"> 
    13221322                        <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')" checked="checked"/> 
    1323                         <xsl:variable name="daysStr" select="/bedeworkadmin/formElements/form/end/duration/days/input/@value"/> 
     1323                        <xsl:variable name="daysStr" select="/bedework/formElements/form/end/duration/days/input/@value"/> 
    13241324                        <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays"/>days 
    13251325                        <span id="durationHrMin" class="{$durationHrMinClass}"> 
    1326                           <xsl:variable name="hoursStr" select="/bedeworkadmin/formElements/form/end/duration/hours/input/@value"/> 
     1326                          <xsl:variable name="hoursStr" select="/bedework/formElements/form/end/duration/hours/input/@value"/> 
    13271327                          <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours"/>hours 
    1328                           <xsl:variable name="minutesStr" select="/bedeworkadmin/formElements/form/end/duration/minutes/input/@value"/> 
     1328                          <xsl:variable name="minutesStr" select="/bedework/formElements/form/end/duration/minutes/input/@value"/> 
    13291329                          <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes"/>minutes 
    13301330                        </span> 
     
    13331333                      <div class="durationBox"> 
    13341334                        <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')"/> 
    1335                         <xsl:variable name="weeksStr" select="/bedeworkadmin/formElements/form/end/duration/weeks/input/@value"/> 
     1335                        <xsl:variable name="weeksStr" select="/bedework/formElements/form/end/duration/weeks/input/@value"/> 
    13361336                        <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks" disabled="true"/>weeks 
    13371337                      </div> 
     
    13411341                      <div class="durationBox"> 
    13421342                        <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')"/> 
    1343                         <xsl:variable name="daysStr" select="/bedeworkadmin/formElements/form/end/duration/days/input/@value"/> 
     1343                        <xsl:variable name="daysStr" select="/bedework/formElements/form/end/duration/days/input/@value"/> 
    13441344                        <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays" disabled="true"/>days 
    13451345                        <span id="durationHrMin" class="{$durationHrMinClass}"> 
    1346                           <xsl:variable name="hoursStr" select="/bedeworkadmin/formElements/form/end/duration/hours/input/@value"/> 
     1346                          <xsl:variable name="hoursStr" select="/bedework/formElements/form/end/duration/hours/input/@value"/> 
    13471347                          <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours" disabled="true"/>hours 
    1348                           <xsl:variable name="minutesStr" select="/bedeworkadmin/formElements/form/end/duration/minutes/input/@value"/> 
     1348                          <xsl:variable name="minutesStr" select="/bedework/formElements/form/end/duration/minutes/input/@value"/> 
    13491349                          <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes" disabled="true"/>minutes 
    13501350                        </span> 
     
    13531353                      <div class="durationBox"> 
    13541354                        <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')" checked="checked"/> 
    1355                         <xsl:variable name="weeksStr" select="/bedeworkadmin/formElements/form/end/duration/weeks/input/@value"/> 
     1355                        <xsl:variable name="weeksStr" select="/bedework/formElements/form/end/duration/weeks/input/@value"/> 
    13561356                        <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks"/>weeks 
    13571357                      </div> 
     
    13621362              <div class="dateFields" id="noDuration"> 
    13631363                <xsl:choose> 
    1364                   <xsl:when test="/bedeworkadmin/formElements/form/end/type='N'"> 
     1364                  <xsl:when test="/bedework/formElements/form/end/type='N'"> 
    13651365                    <input type="radio" name="eventEndType" value="N" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 
    13661366                  </xsl:when> 
     
    13761376        <!--  Status  --> 
    13771377        <tr> 
    1378           <td class="fieldName"> 
     1378          <td class="fieldname"> 
    13791379            Status: 
    13801380          </td> 
    1381           <td
     1381          <td class="fieldval"
    13821382            <xsl:choose> 
    1383               <xsl:when test="/bedeworkadmin/formElements/form/status = 'TENTATIVE'"> 
     1383              <xsl:when test="/bedework/formElements/form/status = 'TENTATIVE'"> 
    13841384                <input type="radio" name="event.status" value="CONFIRMED"/>confirmed <input type="radio" name="event.status" value="TENTATIVE" checked="checked"/>tentative <input type="radio" name="event.status" value="CANCELLED"/>cancelled 
    13851385              </xsl:when> 
    1386               <xsl:when test="/bedeworkadmin/formElements/form/status = 'CANCELLED'"> 
     1386              <xsl:when test="/bedework/formElements/form/status = 'CANCELLED'"> 
    13871387                <input type="radio" name="event.status" value="CONFIRMED"/>confirmed <input type="radio" name="event.status" value="TENTATIVE"/>tentative <input type="radio" name="event.status" value="CANCELLED" checked="checked"/>cancelled 
    13881388              </xsl:when> 
     
    19131913      <tr> 
    19141914        <td class="leftCell"> 
    1915           <a href="http://www.bedework.org/">Bedework Calendar</a> 
     1915          <a href="http://www.bedework.org/">Bedework Calendar</a> | 
     1916          <a href="/ucal/showMain.rdo?refreshXslt=yes">refresh XSLT</a> 
    19161917        </td> 
    19171918        <td class="rightCell"> 
  • trunk/calendar3/deployment/webuser/webapp/resources/demoskins/resources/includes.js

    r289 r291  
    4848} 
    4949 
     50// launches new browser window with print-friendly version of page when 
     51// print icon is clicked 
     52function launchPrintWindow(URL) { 
     53  printWindow = window.open(URL, "printWindow", "width=640,height=500,scrollbars=yes,resizable=yes,alwaysRaised=yes,menubar=yes,toolbar=yes"); 
     54  window.printWindow.focus(); 
     55} 
     56 
    5057function startDateCalWidgetCallback(date, month, year) { 
    5158  if (String(month).length == 1) { 
     
    5461  if (String(date).length == 1) { 
    5562      date = '0' + date; 
    56   }     
     63  } 
    5764  today = new Date(); 
    5865  if (year < today.getFullYear()) { 
     
    7077  if (String(date).length == 1) { 
    7178      date = '0' + date; 
    72   }     
     79  } 
    7380  today = new Date(); 
    7481  if (year < today.getFullYear()) {