Changeset 410
- Timestamp:
- 04/21/06 12:36:31
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.css
r404 r410 236 236 color: black; 237 237 font-size: 0.9em; 238 border-bottom: 1px solid #999; 238 239 } 239 240 #utilBarTable .leftCell { … … 696 697 padding: 0em; 697 698 border-top: 1px solid #666; 699 border-bottom: 2px solid #aaa; 700 border-left: 2px solid #aaa; 701 border-right: 2px solid #aaa; 698 702 } 699 703 #yearCalendarTable td { … … 706 710 #yearCalendarTable table.yearViewMonthTable { 707 711 margin: 0em 1em 0.5em 1em; 708 border: 1px solid # 666;712 border: 1px solid #ddd; 709 713 } 710 714 #yearCalendarTable table.yearViewMonthTable td { … … 715 719 #yearCalendarTable table.yearViewMonthTable th { 716 720 font-weight: bold; 717 background-color: # f5f5f5;721 background-color: #eee; 718 722 color: black; 719 723 padding: 0.2em; … … 722 726 font-weight: bold; 723 727 text-align: center; 724 background-color: # d1cbb3;728 background-color: #2B4795; 725 729 color: #eee; 726 730 white-space: nowrap; … … 730 734 font-weight: bold; 731 735 font-size: 0.8em; 732 background-color: # f5f5f5;736 background-color: #eee; 733 737 color: black; 734 738 } … … 736 740 text-decoration: none; 737 741 background-color: inherit; 738 border: 1px solid #d1cbb3;742 padding: 1px; 739 743 color: black; 740 744 } … … 742 746 text-decoration: none; 743 747 background-color: inherit; 744 border: 1px solid #f5f5f5;748 padding: 1px; 745 749 color: black; 746 750 } … … 748 752 text-decoration: none; 749 753 background-color: inherit; 750 color: black; 754 padding: 1px; 755 color: #eee; 751 756 } 752 757 #yearCalendarTable table.yearViewMonthTable td a:hover { … … 755 760 color: black; 756 761 border: 1px solid black; 762 padding: 0; 757 763 } 758 764 #listTable { … … 996 1002 background-color: transparent; 997 1003 display: block; 998 padding: 10px;1004 padding: 6px 10px; 999 1005 text-decoration: none; 1000 1006 } … … 1003 1009 background-color: transparent; 1004 1010 display: block; 1005 padding: 10px;1011 padding: 6px 10px; 1006 1012 text-decoration: none; 1007 1013 } trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r405 r410 160 160 </xsl:when> 161 161 <xsl:when test="/bedework/page='freeBusy'"> 162 <xsl:call-template name="utilBar"/> 162 163 <xsl:apply-templates select="/bedework/freebusy"/> 163 164 </xsl:when> … … 337 338 <h3>options</h3> 338 339 <ul id="sideBarMenu"> 339 <li><a href="{$freeBusy-fetch}">Show Free/Busy</a></li>340 340 <li><a href="{$manageLocations}">Manage Locations</a></li> 341 341 <li>Preferences</li> … … 345 345 <xsl:template name="tabs"> 346 346 <xsl:choose> 347 <xsl:when test="/bedework/page='eventscalendar'"> 347 <xsl:when test="/bedework/page='eventscalendar' or /bedework/page='freeBusy'"> 348 <xsl:variable name="navAction"> 349 <xsl:choose> 350 <xsl:when test="/bedework/page='freeBusy'"><xsl:value-of select="$freeBusy-fetch"/></xsl:when> 351 <xsl:otherwise><xsl:value-of select="$setViewPeriod"/>?b=de</xsl:otherwise> 352 </xsl:choose> 353 </xsl:variable> 348 354 <table border="0" cellpadding="0" cellspacing="0" id="tabsTable"> 349 355 <tr> … … 351 357 <xsl:choose> 352 358 <xsl:when test="/bedework/periodname='Day'"> 353 <a href="{$ setViewPeriod}?viewType=dayView&date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-day-on.gif" width="91" height="20" border="0" alt="DAY"/></a>359 <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> 354 360 </xsl:when> 355 361 <xsl:otherwise> 356 <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>362 <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> 357 363 </xsl:otherwise> 358 364 </xsl:choose> … … 361 367 <xsl:choose> 362 368 <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''"> 363 <a href="{$ setViewPeriod}?viewType=weekView&date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-week-on.gif" width="92" height="20" border="0" alt="WEEK"/></a>369 <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> 364 370 </xsl:when> 365 371 <xsl:otherwise> 366 <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>372 <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> 367 373 </xsl:otherwise> 368 374 </xsl:choose> … … 371 377 <xsl:choose> 372 378 <xsl:when test="/bedework/periodname='Month'"> 373 <a href="{$ setViewPeriod}?viewType=monthView&date={$curdate}"><img src="{$resourcesRoot}/resources/std-tab-month-on.gif" width="90" height="20" border="0" alt="MONTH"/></a>379 <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> 374 380 </xsl:when> 375 381 <xsl:otherwise> 376 <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>382 <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> 377 383 </xsl:otherwise> 378 384 </xsl:choose> … … 380 386 <td> 381 387 <xsl:choose> 388 <!-- don't allow switching to year for free busy view, so only use setViewPeriod action --> 382 389 <xsl:when test="/bedework/periodname='Year'"> 383 390 <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> … … 389 396 </td> 390 397 <td class="rightCell"> 391 welcome398 logged in as 392 399 <xsl:text> </xsl:text> 393 400 <strong><xsl:value-of select="/bedework/userid"/></strong> … … 427 434 428 435 <xsl:template name="navigation"> 436 <xsl:variable name="navAction"> 437 <xsl:choose> 438 <xsl:when test="/bedework/page='freeBusy'"><xsl:value-of select="$freeBusy-fetch"/></xsl:when> 439 <xsl:otherwise><xsl:value-of select="$setViewPeriod"/>?b=de</xsl:otherwise> 440 </xsl:choose> 441 </xsl:variable> 429 442 <table border="0" cellpadding="0" cellspacing="0" id="navigationBarTable"> 430 443 <tr> 431 444 <td class="leftCell"> 432 <a href="{$ setViewPeriod}?date={$prevdate}"><img src="{$resourcesRoot}/resources/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a>433 <a href="{$ setViewPeriod}?date={$nextdate}"><img src="{$resourcesRoot}/resources/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a>445 <a href="{$navAction}&date={$prevdate}"><img src="{$resourcesRoot}/resources/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a> 446 <a href="{$navAction}&date={$nextdate}"><img src="{$resourcesRoot}/resources/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a> 434 447 <xsl:choose> 435 448 <xsl:when test="/bedework/periodname='Year'"> … … 448 461 </td> 449 462 <td class="todayButton"> 450 <a href="{$ setViewPeriod}?viewType=todayView&date={$curdate}">463 <a href="{$navAction}&viewType=todayView&date={$curdate}"> 451 464 <img src="{$resourcesRoot}/resources/std-button-today-off.gif" width="54" height="22" border="0" alt="Go to Today" align="left"/> 452 465 </a> 453 466 </td> 454 467 <td align="right" class="gotoForm"> 455 <form name="calForm" method="get" action="{$ setViewPeriod}">468 <form name="calForm" method="get" action="{$navAction}"> 456 469 <table border="0" cellpadding="0" cellspacing="0"> 457 470 <tr> … … 540 553 </td> 541 554 <td class="rightCell"> 555 556 <!-- show free / busy --> 542 557 <xsl:choose> 543 <xsl:when test="/bedework/periodname='Day'"> 544 <img src="{$resourcesRoot}/resources/std-button-listview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 545 </xsl:when> 546 <xsl:when test="/bedework/periodname='Year'"> 547 <img src="{$resourcesRoot}/resources/std-button-calview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 548 </xsl:when> 549 <xsl:when test="/bedework/periodname='Month'"> 550 <xsl:choose> 551 <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'"> 552 <a href="{$setup}?setappvar=monthViewMode(cal)" title="toggle list/calendar view"> 553 <img src="{$resourcesRoot}/resources/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 554 </a> 555 </xsl:when> 556 <xsl:otherwise> 557 <a href="{$setup}?setappvar=monthViewMode(list)" title="toggle list/calendar view"> 558 <img src="{$resourcesRoot}/resources/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 559 </a> 560 </xsl:otherwise> 561 </xsl:choose> 562 </xsl:when> 563 <xsl:otherwise> 564 <xsl:choose> 565 <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'"> 566 <a href="{$setup}?setappvar=weekViewMode(cal)" title="toggle list/calendar view"> 567 <img src="{$resourcesRoot}/resources/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 568 </a> 569 </xsl:when> 570 <xsl:otherwise> 571 <a href="{$setup}?setappvar=weekViewMode(list)" title="toggle list/calendar view"> 572 <img src="{$resourcesRoot}/resources/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 573 </a> 574 </xsl:otherwise> 575 </xsl:choose> 576 </xsl:otherwise> 577 </xsl:choose> 558 <xsl:when test="/bedework/periodname!='Year'"> 559 <xsl:choose> 560 <xsl:when test="/bedework/page='freeBusy'"> 561 <a href="{$setViewPeriod}?date={$curdate}"><img src="{$resourcesRoot}/resources/std-button-events.gif" width="70" height="21" border="0" alt="show events"/></a> 562 </xsl:when> 563 <xsl:otherwise> 564 <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> 565 </xsl:otherwise> 566 </xsl:choose> 567 </xsl:when> 568 <xsl:otherwise> 569 <img src="{$resourcesRoot}/resources/std-button-freebusy-off.gif" width="70" height="21" border="0" alt="show free/busy"/> 570 </xsl:otherwise> 571 </xsl:choose> 572 573 <!-- toggle list / calendar view --> 578 574 <xsl:choose> 579 <xsl:when test="/bedework/periodname='Year' or 575 <xsl:when test="/bedework/periodname='Day'"> 576 <img src="{$resourcesRoot}/resources/std-button-listview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 577 </xsl:when> 578 <xsl:when test="/bedework/periodname='Year'"> 579 <img src="{$resourcesRoot}/resources/std-button-calview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 580 </xsl:when> 581 <xsl:when test="/bedework/periodname='Month'"> 582 <xsl:choose> 583 <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'"> 584 <a href="{$setup}?setappvar=monthViewMode(cal)" title="toggle list/calendar view"> 585 <img src="{$resourcesRoot}/resources/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 586 </a> 587 </xsl:when> 588 <xsl:otherwise> 589 <a href="{$setup}?setappvar=monthViewMode(list)" title="toggle list/calendar view"> 590 <img src="{$resourcesRoot}/resources/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 591 </a> 592 </xsl:otherwise> 593 </xsl:choose> 594 </xsl:when> 595 <xsl:otherwise> 596 <xsl:choose> 597 <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'"> 598 <a href="{$setup}?setappvar=weekViewMode(cal)" title="toggle list/calendar view"> 599 <img src="{$resourcesRoot}/resources/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 600 </a> 601 </xsl:when> 602 <xsl:otherwise> 603 <a href="{$setup}?setappvar=weekViewMode(list)" title="toggle list/calendar view"> 604 <img src="{$resourcesRoot}/resources/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> 605 </a> 606 </xsl:otherwise> 607 </xsl:choose> 608 </xsl:otherwise> 609 </xsl:choose> 610 611 <!-- summary / detailed mode toggle --> 612 <xsl:choose> 613 <xsl:when test="/bedework/periodname='Year' or 580 614 (/bedework/periodname='Month' and 581 615 (/bedework/appvar[key='monthViewMode']/value='cal' or … … 584 618 (/bedework/appvar[key='weekViewMode']/value='cal' or 585 619 not(/bedework/appvar[key='weekViewMode'])))"> 586 <xsl:choose> 587 <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 588 <img src="{$resourcesRoot}/resources/std-button-summary-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/> 589 </xsl:when> 590 <xsl:otherwise> 591 <img src="{$resourcesRoot}/resources/std-button-details-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/> 592 </xsl:otherwise> 593 </xsl:choose> 594 </xsl:when> 595 <xsl:otherwise> 596 <xsl:choose> 597 <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 598 <a href="{$setup}?setappvar=summaryMode(summary)" title="toggle summary/detailed view"> 599 <img src="{$resourcesRoot}/resources/std-button-summary.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/> 600 </a> 601 </xsl:when> 602 <xsl:otherwise> 603 <a href="{$setup}?setappvar=summaryMode(details)" title="toggle summary/detailed view"> 604 <img src="{$resourcesRoot}/resources/std-button-details.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/> 605 </a> 606 </xsl:otherwise> 607 </xsl:choose> 608 </xsl:otherwise> 609 </xsl:choose> 610 <a href="setup.do"><img src="{$resourcesRoot}/resources/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a> 620 <xsl:choose> 621 <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 622 <img src="{$resourcesRoot}/resources/std-button-summary-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/> 623 </xsl:when> 624 <xsl:otherwise> 625 <img src="{$resourcesRoot}/resources/std-button-details-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/> 626 </xsl:otherwise> 627 </xsl:choose> 628 </xsl:when> 629 <xsl:otherwise> 630 <xsl:choose> 631 <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 632 <a href="{$setup}?setappvar=summaryMode(summary)" title="toggle summary/detailed view"> 633 <img src="{$resourcesRoot}/resources/std-button-summary.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/> 634 </a> 635 </xsl:when> 636 <xsl:otherwise> 637 <a href="{$setup}?setappvar=summaryMode(details)" title="toggle summary/detailed view"> 638 <img src="{$resourcesRoot}/resources/std-button-details.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/> 639 </a> 640 </xsl:otherwise> 641 </xsl:choose> 642 </xsl:otherwise> 643 </xsl:choose> 644 645 <!-- refresh button --> 646 <a href="setup.do"><img src="{$resourcesRoot}/resources/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a> 611 647 </td> 612 648 </tr> … … 1288 1324 </option> 1289 1325 <!--<xsl:copy-of select="/bedework/formElements/form/calendar/select/*"/>--> 1290 <!-- Based on subscription names, actually. the following calendar select box is temporary. Should be1326 <!-- The following calendar select box is temporary. Should be 1291 1327 replaced with the xml from the line above. --> 1292 <xsl:for-each select="/bedework/my Subscriptions/subscription">1293 <xsl:variable name=" subname" select="name"/>1294 <option value="{$ subname}"><xsl:value-of select="name"/></option>1328 <xsl:for-each select="/bedework/myCalendars//calendar[calendarCollection='true']"> 1329 <xsl:variable name="id" select="id"/> 1330 <option value="{$id}"><xsl:value-of select="name"/></option> 1295 1331 </xsl:for-each> 1296 1332 </select> … … 1663 1699 </option> 1664 1700 <!--<xsl:copy-of select="/bedework/formElements/form/calendar/select/*"/>--> 1665 <!-- Based on subscription names, actually. the following calendar select box is temporary. Should be1701 <!-- The following calendar select box is temporary. Should be 1666 1702 replaced with the xml from the line above. --> 1667 <xsl:for-each select="/bedework/my Subscriptions/subscription">1668 <xsl:variable name=" subname" select="name"/>1669 <option value="{$ subname}"><xsl:value-of select="name"/></option>1703 <xsl:for-each select="/bedework/myCalendars//calendar[calendarCollection='true']"> 1704 <xsl:variable name="id" select="id"/> 1705 <option value="{$id}"><xsl:value-of select="name"/></option> 1670 1706 </xsl:for-each> 1671 1707 </select>
