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: 1083
Committed: Thu Feb 23 14:49:36 2006 UTC (14 years, 4 months ago) by ddam
Content type: application/xml
Original Path: hippo-cms/trunk/editor/src/site/workbench/transformers/top.xsl
File size: 10430 byte(s)
Error occurred while calculating annotation data.
Log Message:
- new design top frame
- added onLoad +onUnload methods for perspective (used by searchEngine at the moment)

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