| 92 | | <!-- <xsl:call-template name="alerts"/> --> |
|---|
| 93 | | <xsl:call-template name="tabs"/> |
|---|
| 94 | | <div id="bodyBlock"> |
|---|
| 95 | | <div id="leftMenus"> |
|---|
| 96 | | test |
|---|
| 97 | | </div> |
|---|
| 98 | | <div id="bodyContent"> |
|---|
| 99 | | <xsl:choose> |
|---|
| 100 | | <xsl:when test="/bedework/page='event'"> |
|---|
| 101 | | <!-- show an event --> |
|---|
| 102 | | <xsl:apply-templates select="/bedework/event"/> |
|---|
| 103 | | </xsl:when> |
|---|
| 104 | | <xsl:when test="/bedework/page='addEvent'"> |
|---|
| 105 | | <xsl:call-template name="addEvent"/> |
|---|
| 106 | | </xsl:when> |
|---|
| 107 | | <xsl:when test="/bedework/page='editEvent'"> |
|---|
| 108 | | <!-- edit an event --> |
|---|
| 109 | | <xsl:apply-templates select="/bedework/eventform"/> |
|---|
| 110 | | </xsl:when> |
|---|
| 111 | | <xsl:when test="/bedework/page='alarmOptions'"> |
|---|
| 112 | | <xsl:call-template name="alarmOptions" /> |
|---|
| 113 | | </xsl:when> |
|---|
| 114 | | <xsl:when test="/bedework/page='upload'"> |
|---|
| 115 | | <xsl:call-template name="upload" /> |
|---|
| 116 | | </xsl:when> |
|---|
| 117 | | <xsl:when test="/bedework/page='manageLocations'"> |
|---|
| 118 | | <xsl:call-template name="manageLocations" /> |
|---|
| 119 | | </xsl:when> |
|---|
| 120 | | <xsl:when test="/bedework/page='editLocation'"> |
|---|
| 121 | | <!-- edit an event --> |
|---|
| 122 | | <xsl:apply-templates select="/bedework/locationform"/> |
|---|
| 123 | | </xsl:when> |
|---|
| 124 | | <xsl:when test="/bedework/page='calendars'"> |
|---|
| 125 | | <!-- show a list of all calendars and manage subscriptions --> |
|---|
| 126 | | <xsl:apply-templates select="/bedework/calendars"/> |
|---|
| 127 | | </xsl:when> |
|---|
| 128 | | <xsl:when test="/bedework/page='other'"> |
|---|
| 129 | | <!-- show an arbitrary page --> |
|---|
| 130 | | <xsl:call-template name="selectPage"/> |
|---|
| 131 | | </xsl:when> |
|---|
| 132 | | <xsl:otherwise> |
|---|
| 133 | | <!-- otherwise, show the eventsCalendar --> |
|---|
| 134 | | <xsl:call-template name="navigation"/> |
|---|
| 135 | | <xsl:call-template name="userBar"/> |
|---|
| 136 | | <!-- main eventCalendar content --> |
|---|
| 137 | | <xsl:choose> |
|---|
| 138 | | <xsl:when test="/bedework/periodname='Day'"> |
|---|
| 139 | | <xsl:call-template name="listView"/> |
|---|
| 140 | | </xsl:when> |
|---|
| 141 | | <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''"> |
|---|
| 142 | | <xsl:choose> |
|---|
| 143 | | <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'"> |
|---|
| 144 | | <xsl:call-template name="listView"/> |
|---|
| 145 | | </xsl:when> |
|---|
| 146 | | <xsl:otherwise> |
|---|
| 147 | | <xsl:call-template name="weekView"/> |
|---|
| 148 | | </xsl:otherwise> |
|---|
| 149 | | </xsl:choose> |
|---|
| 150 | | </xsl:when> |
|---|
| 151 | | <xsl:when test="/bedework/periodname='Month'"> |
|---|
| 152 | | <xsl:choose> |
|---|
| 153 | | <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'"> |
|---|
| 154 | | <xsl:call-template name="listView"/> |
|---|
| 155 | | </xsl:when> |
|---|
| 156 | | <xsl:otherwise> |
|---|
| 157 | | <xsl:call-template name="monthView"/> |
|---|
| 158 | | </xsl:otherwise> |
|---|
| 159 | | </xsl:choose> |
|---|
| 160 | | </xsl:when> |
|---|
| 161 | | <xsl:otherwise> |
|---|
| 162 | | <xsl:call-template name="yearView"/> |
|---|
| 163 | | </xsl:otherwise> |
|---|
| 164 | | </xsl:choose> |
|---|
| 165 | | </xsl:otherwise> |
|---|
| 166 | | </xsl:choose> |
|---|
| 167 | | </div> |
|---|
| 168 | | </div> |
|---|
| | 92 | <table id="bodyBlock" cellspacing="0"> |
|---|
| | 93 | <tr> |
|---|
| | 94 | <td id="leftMenus"> |
|---|
| | 95 | <xsl:call-template name="leftMenus"/> |
|---|
| | 96 | </td> |
|---|
| | 97 | <td id="bodyContent"> |
|---|
| | 98 | <xsl:call-template name="tabs"/> |
|---|
| | 99 | <xsl:choose> |
|---|
| | 100 | <xsl:when test="/bedework/page='event'"> |
|---|
| | 101 | <!-- show an event --> |
|---|
| | 102 | <xsl:apply-templates select="/bedework/event"/> |
|---|
| | 103 | </xsl:when> |
|---|
| | 104 | <xsl:when test="/bedework/page='addEvent'"> |
|---|
| | 105 | <xsl:call-template name="addEvent"/> |
|---|
| | 106 | </xsl:when> |
|---|
| | 107 | <xsl:when test="/bedework/page='editEvent'"> |
|---|
| | 108 | <!-- edit an event --> |
|---|
| | 109 | <xsl:apply-templates select="/bedework/eventform"/> |
|---|
| | 110 | </xsl:when> |
|---|
| | 111 | <xsl:when test="/bedework/page='alarmOptions'"> |
|---|
| | 112 | <xsl:call-template name="alarmOptions" /> |
|---|
| | 113 | </xsl:when> |
|---|
| | 114 | <xsl:when test="/bedework/page='upload'"> |
|---|
| | 115 | <xsl:call-template name="upload" /> |
|---|
| | 116 | </xsl:when> |
|---|
| | 117 | <xsl:when test="/bedework/page='manageLocations'"> |
|---|
| | 118 | <xsl:call-template name="manageLocations" /> |
|---|
| | 119 | </xsl:when> |
|---|
| | 120 | <xsl:when test="/bedework/page='editLocation'"> |
|---|
| | 121 | <!-- edit an event --> |
|---|
| | 122 | <xsl:apply-templates select="/bedework/locationform"/> |
|---|
| | 123 | </xsl:when> |
|---|
| | 124 | <xsl:when test="/bedework/page='calendars'"> |
|---|
| | 125 | <!-- show a list of all calendars and manage subscriptions --> |
|---|
| | 126 | <xsl:apply-templates select="/bedework/calendars"/> |
|---|
| | 127 | </xsl:when> |
|---|
| | 128 | <xsl:when test="/bedework/page='other'"> |
|---|
| | 129 | <!-- show an arbitrary page --> |
|---|
| | 130 | <xsl:call-template name="selectPage"/> |
|---|
| | 131 | </xsl:when> |
|---|
| | 132 | <xsl:otherwise> |
|---|
| | 133 | <!-- otherwise, show the eventsCalendar --> |
|---|
| | 134 | <xsl:call-template name="navigation"/> |
|---|
| | 135 | <xsl:call-template name="userBar"/> |
|---|
| | 136 | <!-- main eventCalendar content --> |
|---|
| | 137 | <xsl:choose> |
|---|
| | 138 | <xsl:when test="/bedework/periodname='Day'"> |
|---|
| | 139 | <xsl:call-template name="listView"/> |
|---|
| | 140 | </xsl:when> |
|---|
| | 141 | <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''"> |
|---|
| | 142 | <xsl:choose> |
|---|
| | 143 | <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'"> |
|---|
| | 144 | <xsl:call-template name="listView"/> |
|---|
| | 145 | </xsl:when> |
|---|
| | 146 | <xsl:otherwise> |
|---|
| | 147 | <xsl:call-template name="weekView"/> |
|---|
| | 148 | </xsl:otherwise> |
|---|
| | 149 | </xsl:choose> |
|---|
| | 150 | </xsl:when> |
|---|
| | 151 | <xsl:when test="/bedework/periodname='Month'"> |
|---|
| | 152 | <xsl:choose> |
|---|
| | 153 | <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'"> |
|---|
| | 154 | <xsl:call-template name="listView"/> |
|---|
| | 155 | </xsl:when> |
|---|
| | 156 | <xsl:otherwise> |
|---|
| | 157 | <xsl:call-template name="monthView"/> |
|---|
| | 158 | </xsl:otherwise> |
|---|
| | 159 | </xsl:choose> |
|---|
| | 160 | </xsl:when> |
|---|
| | 161 | <xsl:otherwise> |
|---|
| | 162 | <xsl:call-template name="yearView"/> |
|---|
| | 163 | </xsl:otherwise> |
|---|
| | 164 | </xsl:choose> |
|---|
| | 165 | </xsl:otherwise> |
|---|
| | 166 | </xsl:choose> |
|---|
| | 167 | </td> |
|---|
| | 168 | </tr> |
|---|
| | 169 | </table> |
|---|
| 288 | | <td> |
|---|
| 289 | | <xsl:choose> |
|---|
| 290 | | <xsl:when test="/bedework/periodname='Day'"> |
|---|
| 291 | | <img src="{$resourcesRoot}/images/demo/std-button-listview-off.gif" width="46" height="20" border="0" alt="toggle list/calendar view"/> |
|---|
| 292 | | </xsl:when> |
|---|
| 293 | | <xsl:when test="/bedework/periodname='Year'"> |
|---|
| 294 | | <img src="{$resourcesRoot}/images/demo/std-button-calview-off.gif" width="46" height="20" border="0" alt="toggle list/calendar view"/> |
|---|
| 295 | | </xsl:when> |
|---|
| 296 | | <xsl:when test="/bedework/periodname='Month'"> |
|---|
| 297 | | <xsl:choose> |
|---|
| 298 | | <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'"> |
|---|
| 299 | | <a href="{$setup}?setappvar=monthViewMode(cal)" title="toggle list/calendar view"> |
|---|
| 300 | | <img src="{$resourcesRoot}/images/demo/std-button-calview.gif" width="46" height="20" border="0" alt="toggle list/calendar view"/> |
|---|
| 301 | | </a> |
|---|
| 302 | | </xsl:when> |
|---|
| 303 | | <xsl:otherwise> |
|---|
| 304 | | <a href="{$setup}?setappvar=monthViewMode(list)" title="toggle list/calendar view"> |
|---|
| 305 | | <img src="{$resourcesRoot}/images/demo/std-button-listview.gif" width="46" height="20" border="0" alt="toggle list/calendar view"/> |
|---|
| 306 | | </a> |
|---|
| 307 | | </xsl:otherwise> |
|---|
| 308 | | </xsl:choose> |
|---|
| 309 | | </xsl:when> |
|---|
| 310 | | <xsl:otherwise> |
|---|
| 311 | | <xsl:choose> |
|---|
| 312 | | <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'"> |
|---|
| 313 | | <a href="{$setup}?setappvar=weekViewMode(cal)" title="toggle list/calendar view"> |
|---|
| 314 | | <img src="{$resourcesRoot}/images/demo/std-button-calview.gif" width="46" height="20" border="0" alt="toggle list/calendar view"/> |
|---|
| 315 | | </a> |
|---|
| 316 | | </xsl:when> |
|---|
| 317 | | <xsl:otherwise> |
|---|
| 318 | | <a href="{$setup}?setappvar=weekViewMode(list)" title="toggle list/calendar view"> |
|---|
| 319 | | <img src="{$resourcesRoot}/images/demo/std-button-listview.gif" width="46" height="20" border="0" alt="toggle list/calendar view"/> |
|---|
| 320 | | </a> |
|---|
| 321 | | </xsl:otherwise> |
|---|
| 322 | | </xsl:choose> |
|---|
| 323 | | </xsl:otherwise> |
|---|
| 324 | | </xsl:choose> |
|---|
| 325 | | </td> |
|---|
| | 295 | |
|---|
| 327 | | <xsl:choose> |
|---|
| 328 | | <xsl:when test="/bedework/periodname='Year' or |
|---|
| 329 | | (/bedework/periodname='Month' and |
|---|
| 330 | | (/bedework/appvar[key='monthViewMode']/value='cal' or |
|---|
| 331 | | count(/bedework/appvar[key='monthViewMode'])=0)) or |
|---|
| 332 | | (/bedework/periodname='Week' and |
|---|
| 333 | | (/bedework/appvar[key='weekViewMode']/value='cal' or |
|---|
| 334 | | count(/bedework/appvar[key='weekViewMode'])=0))"> |
|---|
| 335 | | <xsl:choose> |
|---|
| 336 | | <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> |
|---|
| 337 | | <img src="{$resourcesRoot}/images/demo/std-button-summary-off.gif" width="67" height="20" border="0" alt="only summaries of events supported in this view"/> |
|---|
| 338 | | </xsl:when> |
|---|
| 339 | | <xsl:otherwise> |
|---|
| 340 | | <img src="{$resourcesRoot}/images/demo/std-button-details-off.gif" width="67" height="20" border="0" alt="only summaries of events supported in this view"/> |
|---|
| 341 | | </xsl:otherwise> |
|---|
| 342 | | </xsl:choose> |
|---|
| 343 | | </xsl:when> |
|---|
| 344 | | <xsl:otherwise> |
|---|
| 345 | | <xsl:choose> |
|---|
| 346 | | <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> |
|---|
| 347 | | <a href="{$setup}?setappvar=summaryMode(summary)" title="toggle summary/detailed view"> |
|---|
| 348 | | <img src="{$resourcesRoot}/images/demo/std-button-summary.gif" width="67" height="20" border="0" alt="toggle summary/detailed view"/> |
|---|
| 349 | | </a> |
|---|
| 350 | | </xsl:when> |
|---|
| 351 | | <xsl:otherwise> |
|---|
| 352 | | <a href="{$setup}?setappvar=summaryMode(details)" title="toggle summary/detailed view"> |
|---|
| 353 | | <img src="{$resourcesRoot}/images/demo/std-button-details.gif" width="67" height="20" border="0" alt="toggle summary/detailed view"/> |
|---|
| 354 | | </a> |
|---|
| 355 | | </xsl:otherwise> |
|---|
| 356 | | </xsl:choose> |
|---|
| 357 | | </xsl:otherwise> |
|---|
| 358 | | </xsl:choose> |
|---|
| | 297 |   |
|---|
| 533 | | <a href="{$initEvent}">Add Event</a> | |
|---|
| | 462 | <xsl:choose> |
|---|
| | 463 | <xsl:when test="/bedework/periodname='Day'"> |
|---|
| | 464 | <img src="{$resourcesRoot}/images/demo/std-button-listview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> |
|---|
| | 465 | </xsl:when> |
|---|
| | 466 | <xsl:when test="/bedework/periodname='Year'"> |
|---|
| | 467 | <img src="{$resourcesRoot}/images/demo/std-button-calview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> |
|---|
| | 468 | </xsl:when> |
|---|
| | 469 | <xsl:when test="/bedework/periodname='Month'"> |
|---|
| | 470 | <xsl:choose> |
|---|
| | 471 | <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'"> |
|---|
| | 472 | <a href="{$setup}?setappvar=monthViewMode(cal)" title="toggle list/calendar view"> |
|---|
| | 473 | <img src="{$resourcesRoot}/images/demo/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> |
|---|
| | 474 | </a> |
|---|
| | 475 | </xsl:when> |
|---|
| | 476 | <xsl:otherwise> |
|---|
| | 477 | <a href="{$setup}?setappvar=monthViewMode(list)" title="toggle list/calendar view"> |
|---|
| | 478 | <img src="{$resourcesRoot}/images/demo/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> |
|---|
| | 479 | </a> |
|---|
| | 480 | </xsl:otherwise> |
|---|
| | 481 | </xsl:choose> |
|---|
| | 482 | </xsl:when> |
|---|
| | 483 | <xsl:otherwise> |
|---|
| | 484 | <xsl:choose> |
|---|
| | 485 | <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'"> |
|---|
| | 486 | <a href="{$setup}?setappvar=weekViewMode(cal)" title="toggle list/calendar view"> |
|---|
| | 487 | <img src="{$resourcesRoot}/images/demo/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> |
|---|
| | 488 | </a> |
|---|
| | 489 | </xsl:when> |
|---|
| | 490 | <xsl:otherwise> |
|---|
| | 491 | <a href="{$setup}?setappvar=weekViewMode(list)" title="toggle list/calendar view"> |
|---|
| | 492 | <img src="{$resourcesRoot}/images/demo/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/> |
|---|
| | 493 | </a> |
|---|
| | 494 | </xsl:otherwise> |
|---|
| | 495 | </xsl:choose> |
|---|
| | 496 | </xsl:otherwise> |
|---|
| | 497 | </xsl:choose> |
|---|
| | 498 | <xsl:choose> |
|---|
| | 499 | <xsl:when test="/bedework/periodname='Year' or |
|---|
| | 500 | (/bedework/periodname='Month' and |
|---|
| | 501 | (/bedework/appvar[key='monthViewMode']/value='cal' or |
|---|
| | 502 | count(/bedework/appvar[key='monthViewMode'])=0)) or |
|---|
| | 503 | (/bedework/periodname='Week' and |
|---|
| | 504 | (/bedework/appvar[key='weekViewMode']/value='cal' or |
|---|
| | 505 | count(/bedework/appvar[key='weekViewMode'])=0))"> |
|---|
| | 506 | <xsl:choose> |
|---|
| | 507 | <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> |
|---|
| | 508 | <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"/> |
|---|
| | 509 | </xsl:when> |
|---|
| | 510 | <xsl:otherwise> |
|---|
| | 511 | <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"/> |
|---|
| | 512 | </xsl:otherwise> |
|---|
| | 513 | </xsl:choose> |
|---|
| | 514 | </xsl:when> |
|---|
| | 515 | <xsl:otherwise> |
|---|
| | 516 | <xsl:choose> |
|---|
| | 517 | <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> |
|---|
| | 518 | <a href="{$setup}?setappvar=summaryMode(summary)" title="toggle summary/detailed view"> |
|---|
| | 519 | <img src="{$resourcesRoot}/images/demo/std-button-summary.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/> |
|---|
| | 520 | </a> |
|---|
| | 521 | </xsl:when> |
|---|
| | 522 | <xsl:otherwise> |
|---|
| | 523 | <a href="{$setup}?setappvar=summaryMode(details)" title="toggle summary/detailed view"> |
|---|
| | 524 | <img src="{$resourcesRoot}/images/demo/std-button-details.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/> |
|---|
| | 525 | </a> |
|---|
| | 526 | </xsl:otherwise> |
|---|
| | 527 | </xsl:choose> |
|---|
| | 528 | </xsl:otherwise> |
|---|
| | 529 | </xsl:choose> |
|---|
| | 530 | <a href="setup.do"><img src="{$resourcesRoot}/images/demo/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a> |
|---|
| | 531 | <!--<a href="{$initEvent}">Add Event</a> | |
|---|