View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-cms6/hippo-cms/branches/Branch-CMS-v6_05_xx/editor/src/site/workbench/transformers/top.xsl
Revision: 2485
Committed: Wed Jun 21 13:45:03 2006 UTC (14 years ago) by nvankampenhout
Content type: application/xml
Original Path: hippo-cms/trunk/editor/src/site/workbench/transformers/top.xsl
File size: 11000 byte(s)
Error occurred while calculating annotation data.
Log Message:
(CMS-366/partial) Replaced hardcoded label "Logout" with i18n key.

File Contents

# Content
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!--
3 Top frame
4 Loads the CMS framework javascript classes and startup script
5 Draws tab headers
6 -->
7
8 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
9 xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
10
11 <xsl:param name="username"/>
12 <xsl:param name="fullname"/>
13 <xsl:param name="editUri"/>
14 <xsl:param name="editType"/>
15 <xsl:param name="previewURL"/>
16 <xsl:param name="randomNr"/>
17
18 <xsl:template match="/">
19 <html>
20
21 <head>
22 <title>Hippo CMS Tab Menu</title>
23 <link href="/workbench/css/top_layout_browser_generic.css" rel="stylesheet" type="text/css" media="all" />
24 <link href="/workbench/css/top_style_browser_generic.css" rel="stylesheet" type="text/css" media="all" />
25
26 <!-- Class framework's -->
27 <script type="text/javascript" src="/workbench/js/cfx/Cfx.js">&#160;</script>
28 <script type="text/javascript" src="/js/scriptaculous/lib/prototype.js">&#160;</script>
29
30 <!-- Load helper functions and classes -->
31 <script type="text/javascript" src="/workbench/js/hippo/util.js">&#160;</script>
32
33 <!-- Framework classes -->
34 <script type="text/javascript" src="/workbench/js/hippo/framework/logger.js">&#160;</script>
35 <script type="text/javascript" src="/workbench/js/hippo/framework/start.js">&#160;</script>
36 <script type="text/javascript" src="/workbench/js/hippo/framework/context.js">&#160;</script>
37 <script type="text/javascript" src="/workbench/js/hippo/framework/services.js">&#160;</script>
38 <script type="text/javascript" src="/workbench/js/hippo/framework/components.js">&#160;</script>
39 <script type="text/javascript" src="/workbench/js/hippo/framework/events.js">&#160;</script>
40 <script type="text/javascript" src="/workbench/js/hippo/framework/event_util.js">&#160;</script>
41 <script type="text/javascript" src="/workbench/js/hippo/framework/remotecall.js">&#160;</script>
42 <script type="text/javascript" src="/workbench/js/hippo/framework/remotecall-ajax.js">&#160;</script>
43 <script type="text/javascript" src="/workbench/js/hippo/framework/authentication.js">&#160;</script>
44 <!-- non-standard framework source files from xml-configuration -->
45 <xsl:apply-templates select="/root/sources[@context='Framework']/*"/>
46 <!-- Load framework configuration -->
47 <script type="text/javascript" src="/workbench/js/FrameworkConfiguration.js?{$randomNr}=">&#160;</script>
48
49 <!-- Application classes -->
50 <script type="text/javascript" src="/workbench/js/hippo/cms.js">&#160;</script>
51 <script type="text/javascript" src="/workbench/js/hippo/workbench.js">&#160;</script>
52 <script type="text/javascript" src="/workbench/js/hippo/container.js">&#160;</script>
53 <script type="text/javascript" src="/workbench/js/hippo/perspectives.js">&#160;</script>
54 <script type="text/javascript" src="/workbench/js/hippo/views.js">&#160;</script>
55 <script type="text/javascript" src="/workbench/js/hippo/keyboard.js">&#160;</script>
56 <!-- non-standard application source files from xml-configuration -->
57 <xsl:apply-templates select="/root/sources[@context='Application']/*"/>
58 <!-- Load application configuration -->
59 <script type="text/javascript" src="/workbench/js/ApplicationConfiguration.js?{$randomNr}=">&#160;</script>
60
61 <script>
62
63 var documentIsOpen = "false";
64
65 function openDocument(state)
66 {
67 documentIsOpen = state;
68 }
69 var scheduledTasks = new Array();
70 <xsl:if test="string-length($editUri) &gt; 0 and string-length($editType) &gt; 0">
71 scheduledTasks[scheduledTasks.length] = {'event':'editDocument','arguments':[{key:'url',val:'<xsl:value-of select="$editUri"/>'},{key:'type',val:'<xsl:value-of select="$editType"/>'}]};
72 </xsl:if>
73
74 //temporary workaround for 6.0.3.1 ONLY!
75 var CMS_PREVIEW_URL = '<xsl:value-of select="$previewURL"/>';
76 </script>
77
78 </head>
79
80 <!-- [DD] locking not supported now -->
81 <!--body onbeforeunload="window.location.href='/login/removeLocks';"-->
82 <body>
83 <!-- start body-->
84 <div id="container_main">
85 <!-- start top-->
86 <div id="top">
87 <!-- start top left: logo & navigation-->
88 <div id="top_left_container" >
89 <xsl:if test="count(/root/application//perspectives/perspective) &gt; 5">
90 <!-- default width in css is to small to align all icons when > 5 -->
91 <xsl:attribute name="style">width:<xsl:value-of select="count(/root/application//perspectives/perspective) * 116"/>px;</xsl:attribute>
92 </xsl:if>
93 <div id="logo">
94 <img class="unselectable" unselectable="on" src="/skins/images/logo_top.gif" alt="Hippo CMS" width="170" height="27"/>
95 </div>
96 <!-- start top navigation-->
97 <div id="nav">
98 <xsl:apply-templates select="/root/application//perspectives/*"/>
99 </div>
100 <!-- end top navigation-->
101 </div>
102 <!-- end top left-->
103 <!-- start top right: user data & search field-->
104 <div id="top_right_container_top">
105 <table cellspacing="0" cellpadding="3" class="user_data">
106 <tr>
107 <td class="unselectable username" unselectable="on">
108 <div id="usernameBox">
109 <xsl:choose>
110 <xsl:when test="string-length($fullname)&gt;0">
111 <xsl:value-of select="$fullname"/>
112 </xsl:when>
113 <xsl:otherwise>
114 <xsl:value-of select="$username"/>
115 </xsl:otherwise>
116 </xsl:choose>
117
118 </div>
119 </td>
120 <td class="unselectable" unselectable="on">
121 <img src="/skins/images/user_top.gif" alt="" width="10" height="8"/>
122 </td>
123 <td class="unselectable" unselectable="on">
124 <a href="/login/logout" target="_top">
125 <i18n:text>topmenu.logoffmessage</i18n:text>
126 </a>
127 </td>
128 <td class="unselectable" unselectable="on">
129 <a href="/login/logout" target="_top" class="unselectable" unselectable="on"
130 onfocus="document.getElementById('logoffIcon').style.border='1px solid #666';"
131 onblur="document.getElementById('logoffIcon').style.border='0px';">
132 <img src="/skins/images/logout.gif" alt="log out" width="14" height="9"/>
133 </a>
134 </td>
135 </tr>
136 </table>
137 </div>
138 <div id="top_right_container_bottom">
139 <form style="padding:0px; margin:0px;">
140 <xsl:attribute name="onsubmit">
141 <xsl:text>fireCMSEvent('doSearch',[{key:'reportID',val:'adv'},{key:'simpleSearch',val:document.getElementById('topSimpleSearch').value}]); return false;</xsl:text>
142 </xsl:attribute>
143 <table cellspacing="0" cellpadding="0" class="search_top">
144 <tr>
145 <td id="waitImage" style="visibility:hidden; vertical-align: bottom;">
146 <img class="unselectable" unselectable="on" src="/skin/images/clock_05.gif" alt="" width="26" height="24"/>
147 </td>
148 <td>&#160;</td>
149 <td class="search_top_divider_L"/>
150 <td class="form">
151 <input type="text" name="topSimpleSearch" id="topSimpleSearch"/>
152 </td>
153 <td class="form">&#160;</td>
154 <td class="form">
155 <button type="button" name="search" value="search" id="topSearchBtn">
156 <xsl:attribute name="onclick">
157 <xsl:text>fireCMSEvent('doSearch',[{key:'reportID',val:'adv'},{key:'simpleSearch',val:document.getElementById('topSimpleSearch').value}])</xsl:text>
158 </xsl:attribute>
159 <i18n:text>topmenu.toolbar.search</i18n:text>
160 </button>
161 </td>
162 <td class="search_top_divider_R"/>
163 </tr>
164 </table>
165 </form>
166 </div>
167 <!-- end top right -->
168 </div>
169 <!-- end top -->
170 <!-- start horizontal gray divider & breadcrumb bar-->
171 <div id="top_divider">&#160;</div>
172 <div unselectable="on" id="top_path_bar" class="unselectable">
173 <i18n:text>topmenu.toolbar.home</i18n:text>
174 <span id="top_breadcrumb" unselectable="on" class="unselectable">&#160;</span>
175 <span id="search_result_summary" unselectable="on" class="unselectable"></span>
176 <span id="search_result_extended_summary" unselectable="on" class="unselectable"></span>
177 </div>
178 <!-- end horizontal gray divider -->
179 </div>
180 </body>
181
182 </html>
183
184 </xsl:template>
185
186 <xsl:template match="perspective">
187 <table unselectable="on" cellspacing="0" cellpadding="0" class="nav_tbl unselectable">
188 <xsl:attribute name="onclick">fireCMSEvent('setFocus',[{key:'perspectiveID',val:'<xsl:value-of select="@id"/>'}])</xsl:attribute>
189 <tr>
190 <td unselectable="on" id="{@id}_tab_top" class="tab_top_empty unselectable"></td>
191 </tr>
192 <tr>
193 <td class="unselectable" id="{@id}" unselectable="on">
194 <div class="perspectiveTab unselectable" unselectable="on">
195 <xsl:attribute name="style">
196 <xsl:text>background: url(/skins/images/icons/24x24/</xsl:text>
197 <xsl:value-of select="@icon"/>
198 <xsl:text>.gif) 4px 2px no-repeat;</xsl:text>
199 </xsl:attribute>
200 <a href="#" unselectable="on" class="unselectable">
201 <xsl:value-of select="@label"/>
202 </a>
203 </div>
204 </td>
205 </tr>
206 </table>
207 </xsl:template>
208
209 <xsl:template match="perspective" mode="top-path-bar">
210 </xsl:template>
211
212 <xsl:template match="source">
213 <xsl:if test="string-length(.)&gt;0">
214 <script type="text/javascript" src="{.}">&#160;</script>
215 </xsl:if>
216 </xsl:template>
217
218 <xsl:template match="*" />
219
220 </xsl:stylesheet>