Develop and Download Open Source Software

Browse CVS Repository

Contents of /pal/pal-portal/portal/files/src/webapp/decorations/layout/nextgen/header.vm

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download)
Sat Oct 14 00:03:08 2006 UTC (17 years, 4 months ago) by shinsuke
Branch: MAIN
CVS Tags: RELEASE-1_0_BETA2, RELEASE-1_0_BETA3, RELEASE-1_0_BETA4
Changes since 1.3: +1 -1 lines
fixed bug 9090 and 9092. updated j2 version

1 #*
2 Copyright 2004 The Apache Software Foundation
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 *#
16
17 #*
18 This original design comes from Open Web Design.
19 http://www.openwebdesign.org/viewdesign.phtml?id=2730&referer=%2Fbrowse.php
20 Modified by Shinsuke Sugaya <shinsuke@yahoo.co.jp>
21 *#
22
23 #* Add the current layouts configuration values to the context *#
24 #defineLayoutObjects()
25
26 #* Loads our custom macros *#
27 #parse($layoutDecoration.getResource("decorator-macros.vm"))
28
29 #* Add all template constants to the current context *#
30 #defineNavigationConstants()
31
32 #* Username *#
33 #set($username = $JS2RequestContext.request.remoteUser)
34
35 #* Login Error Code *#
36 #set($errorcode = $JS2RequestContext.getSessionAttribute("org.apache.jetspeed.login.errorcode"))
37
38 <html>
39 <head>
40 ## include header resources immdiately after head and before base is reset to the portal
41 ## web application context path root; this implies that header resources can not reliably
42 ## employ relative urls to locate content
43 #includeHeaderResource()
44
45 <base href="#BaseHref()">
46 <meta http-equiv="Content-type" content="#ContentType()" />
47 <meta http-equiv="Content-style-type" content="text/css" />
48
49 #includeJavaScriptForHead()
50 #IncludeStylesheets()
51
52 <title>#PageTitle()</title>
53
54 <meta name="version" content="#SiteVersionTag()">
55 <meta name="keywords" content="" />
56 <meta name="description" content="#PageDescription()" />
57 </head>
58
59 <body class="#PageBaseCSSClass()">
60 <div class="#PageBaseCSSClass()">
61
62 <div id="container">
63 <div id="topbar">
64 <!-- Left Navigations Menu Table Data -->
65 #set($navigationsStandardMenu = $site.getMenu("navigations"))
66
67 #if(!$navigationsStandardMenu.empty)
68 #includeLinksWithIconNavigation($navigationsStandardMenu $LEFT_TO_RIGHT)
69 #end
70 </div>
71 <div id="header">
72 <img style="filter:chroma(color=#ffffff)" src="#GetPageResource('images/logo.png')"/>
73 <div class="info">
74 #if($username)
75 <div class="action">
76 <a href="#BaseHref()portal/my-account.psml">$messages.getString("portal.loginform.change_password")</a>
77 <a href="#BaseHref()login/logout">$messages.getString("portal.loginform.logout")</a>
78 </div>
79 <div>$messages.getString("portal.loginform.username") $username</div>
80 #else
81 <div class="action">
82 <a href="#BaseHref()login/proxy?org.apache.jetspeed.login.username=&org.apache.jetspeed.login.password=">$messages.getString("portal.loginform.login")</a>
83 </div>
84 #if($errorcode) ## ERROR_INVALID_PASSWORD
85 <div>$messages.getString("portal.loginform.error.invalid_password")</div>
86 #end
87 #end
88 </div>
89 </div>
90 <div id="navbar">
91 #set($pagesStandardMenu = $site.getMenu("pages"))
92 #if(!$pagesStandardMenu.empty)
93 #includeTabsNavigation($pagesStandardMenu $LEFT_TO_RIGHT)
94 #end
95 </div>
96 <div id="core">
97 <div id="breadcrumbs">
98 #set($breadcrumbsStandardMenu = $site.getMenu("breadcrumbs"))
99 #if(!$breadcrumbsStandardMenu.empty)
100 #includeLinksNavigation($breadcrumbsStandardMenu $LEFT_TO_RIGHT "" $BREADCRUMBS_STYLE "")
101 #else
102 &nbsp;
103 #end
104 </div>
105 <div id="corecenter">
106
107 <!-- Page Action Bar -->
108 #PageActionBar()
109 <!-- END: layout/html/nextgen/decorator.vm -->

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26