1 |
3032
|
perry
|
<%@ page contentType="text/html; charset=UTF-8" %>
|
2 |
|
|
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
|
3 |
|
|
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
|
4 |
|
|
<%@ taglib uri="/tags/struts-html" prefix="html" %>
|
5 |
|
|
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
|
6 |
|
|
|
7 |
|
|
<tiles:importAttribute scope="request"/>
|
8 |
|
|
|
9 |
|
|
<bean:define id="key"><tiles:getAsString name='key'/></bean:define>
|
10 |
|
|
<bean:define id="keyLabel"><tiles:getAsString name='key'/>.label</bean:define>
|
11 |
|
|
<bean:define id="keyTitle"><tiles:getAsString name='key'/>.title</bean:define>
|
12 |
|
|
<bean:define id="keyShort"><tiles:getAsString name='key'/>.short</bean:define>
|
13 |
|
|
<bean:define id="keyWords"><tiles:getAsString name='key'/>.words</bean:define>
|
14 |
|
|
<bean:define id="layer"><tiles:getAsString name='layer'/></bean:define>
|
15 |
|
|
|
16 |
3112
|
perry
|
<%@page import="org.vfny.geoserver.global.GeoServer"%>
|
17 |
|
|
<%@page import="org.vfny.geoserver.util.Requests"%>
|
18 |
3032
|
perry
|
<html:html locale="true" xhtml="true">
|
19 |
|
|
<head>
|
20 |
|
|
<title>
|
21 |
|
|
<bean:message key="geoserver.logo"/>
|
22 |
|
|
<bean:message key="<%= keyTitle %>"/>
|
23 |
|
|
</title>
|
24 |
|
|
<meta content="text/html; charset=iso-8859-1" http-equiv="content-type"/>
|
25 |
|
|
<meta content="text/css" http-equiv="content-style-type"/>
|
26 |
|
|
<meta name="description"
|
27 |
|
|
content="<bean:message key="<%= keyShort %>"/>">
|
28 |
|
|
<meta name="keywords"
|
29 |
|
|
content="(GeoServer) (GIS) (Geographic Information Systems) <bean:message key="<%= keyWords %>"/>"/>
|
30 |
|
|
<meta name="author" content="Dave Blasby, Chris Holmes, Brent Owens, Justin Deoliveira, Jody Garnett, Richard Gould, David Zwiers"/>
|
31 |
|
|
|
32 |
|
|
<script language="JavaScript">
|
33 |
|
|
<!--
|
34 |
|
|
// This is used for URL parsing to check for any spaces that will cause invalid XML
|
35 |
|
|
// Currently it is used in DataConfigDataStoresEditor.jsp
|
36 |
|
|
function checkspaces(form)
|
37 |
|
|
{
|
38 |
|
|
for(var i=0; i<form.elements.length; i++)
|
39 |
|
|
{
|
40 |
|
|
if(form.elements[i].value.match("file:"))
|
41 |
|
|
{
|
42 |
|
|
var badchar = " "; // look for the space character
|
43 |
|
|
if (form.elements[i].value.indexOf(badchar) > -1)
|
44 |
|
|
{
|
45 |
|
|
alert("Spaces are not allowed in the filename or path.");
|
46 |
|
|
form.elements[i].focus();
|
47 |
|
|
form.elements[i].select();
|
48 |
|
|
return false;
|
49 |
|
|
}
|
50 |
|
|
}
|
51 |
|
|
}// end for
|
52 |
|
|
return true;
|
53 |
|
|
}
|
54 |
|
|
-->
|
55 |
|
|
</script>
|
56 |
|
|
|
57 |
|
|
<style type="text/css">
|
58 |
|
|
<!-- @import url("<html:rewrite forward='style'/>"); -->
|
59 |
|
|
</style>
|
60 |
|
|
|
61 |
|
|
<link type="image/gif" href="<html:rewrite forward='icon'/>" rel="icon"/>
|
62 |
|
|
<link href="<html:rewrite forward='favicon'/>" rel="SHORTCUT ICON"/>
|
63 |
3112
|
perry
|
<%
|
64 |
|
|
GeoServer gs = (GeoServer) getServletContext().getAttribute(GeoServer.WEB_CONTAINER_KEY);
|
65 |
|
|
String baseUrl = Requests.getBaseJspUrl(request, gs);
|
66 |
|
|
%>
|
67 |
|
|
<base href="<%=baseUrl%>"/>
|
68 |
|
|
<!-- <html:base/> -->
|
69 |
3032
|
perry
|
</head>
|
70 |
|
|
<body>
|
71 |
|
|
|
72 |
|
|
<!-- Security Check (for non application layers -->
|
73 |
|
|
<logic:notEqual name="layer" value="application">
|
74 |
|
|
<logic:notPresent name="GEOSERVER.USER">
|
75 |
|
|
<logic:redirect forward="login" />
|
76 |
|
|
</logic:notPresent>
|
77 |
|
|
</logic:notEqual>
|
78 |
|
|
|
79 |
|
|
<table class="page">
|
80 |
|
|
<tbody>
|
81 |
|
|
<tr class="header">
|
82 |
|
|
<td class="gutter">
|
83 |
|
|
<span class="project">
|
84 |
|
|
<a href="<bean:message key="link.geoserver"/>">
|
85 |
|
|
<bean:message key="geoserver.logo"/>
|
86 |
|
|
</a>
|
87 |
|
|
</span>
|
88 |
|
|
<span class="license">
|
89 |
|
|
<a href="<bean:message key="link.license"/>">©</a>
|
90 |
|
|
</span>
|
91 |
|
|
</td>
|
92 |
|
|
<td style="width: 1em">
|
93 |
|
|
</td>
|
94 |
|
|
<td style="vertical-align: bottom; white-space: nowrap;">
|
95 |
|
|
<span class="site">
|
96 |
|
|
<logic:notEmpty name="GeoServer" property="title">
|
97 |
|
|
<bean:write name="GeoServer" property="title"/>
|
98 |
|
|
</logic:notEmpty>
|
99 |
|
|
<logic:empty name="GeoServer" property="title">
|
100 |
|
|
<bean:message key="message.noTitle"/>
|
101 |
|
|
</logic:empty>
|
102 |
|
|
</span>
|
103 |
|
|
</td>
|
104 |
|
|
<td style="vertical-align: bottom; white-space: nowrap; text-align: right;">
|
105 |
|
|
<span class="contact">
|
106 |
|
|
<a href="<bean:message key="label.credits.url"/>"><bean:message key="label.credits"/></a>
|
107 |
|
|
</span>
|
108 |
|
|
<logic:notEmpty name="GeoServer" property="contactParty">
|
109 |
|
|
<span class="contact">
|
110 |
|
|
<bean:message key="label.contact"/>:
|
111 |
|
|
<html:link forward="contact">
|
112 |
|
|
<bean:write name="GeoServer" property="contactParty"/>
|
113 |
|
|
</html:link>
|
114 |
|
|
</span>
|
115 |
|
|
</logic:notEmpty>
|
116 |
|
|
</td>
|
117 |
|
|
</tr>
|
118 |
|
|
|
119 |
|
|
<tr>
|
120 |
|
|
<td class="sidebar">
|
121 |
|
|
<tiles:insert attribute="status"/>
|
122 |
|
|
<tiles:insert attribute="configActions"/>
|
123 |
|
|
<tiles:insert attribute="actionator"/>
|
124 |
|
|
<tiles:insert attribute="messages"/>
|
125 |
|
|
</td>
|
126 |
|
|
<td style="width: 1em">
|
127 |
|
|
</td>
|
128 |
|
|
<td style="vertical-align: top;"
|
129 |
|
|
rowspan="1" colspan="2">
|
130 |
|
|
|
131 |
|
|
<table class="main">
|
132 |
|
|
<tbody>
|
133 |
|
|
<tr class="bar">
|
134 |
|
|
<td class="locator">
|
135 |
|
|
<tiles:insert attribute="locator"/>
|
136 |
|
|
</td>
|
137 |
|
|
<td class="loginStatus">
|
138 |
|
|
<span class="loginStatus">
|
139 |
|
|
<logic:present name="GEOSERVER.USER">
|
140 |
|
|
<html:link forward="logout">
|
141 |
|
|
<bean:message key="label.logout"/>
|
142 |
|
|
</html:link>
|
143 |
|
|
</logic:present>
|
144 |
|
|
<logic:notPresent name="GEOSERVER.USER">
|
145 |
|
|
<html:link forward="login">
|
146 |
|
|
<bean:message key="label.login"/>
|
147 |
|
|
</html:link>
|
148 |
|
|
</logic:notPresent>
|
149 |
|
|
</span>
|
150 |
|
|
</td>
|
151 |
|
|
</tr>
|
152 |
|
|
<tr>
|
153 |
|
|
<td class="<tiles:getAsString name='layer'/>"
|
154 |
|
|
rowspan="1" colspan="2">
|
155 |
|
|
<table class="title">
|
156 |
|
|
<tbody>
|
157 |
|
|
<tr>
|
158 |
|
|
<td class="menu">
|
159 |
|
|
<tiles:insert attribute="menuator"/>
|
160 |
|
|
</td>
|
161 |
|
|
<td class="title">
|
162 |
|
|
<h1 class="title">
|
163 |
|
|
<bean:message key="<%= keyTitle %>"/>
|
164 |
|
|
</h1>
|
165 |
|
|
<p class="abstract">
|
166 |
|
|
<bean:message key="<%= keyShort %>"/>
|
167 |
|
|
</p>
|
168 |
|
|
</td>
|
169 |
|
|
<td class="icon"></td>
|
170 |
|
|
</tr>
|
171 |
|
|
</tbody>
|
172 |
|
|
</table>
|
173 |
|
|
<tiles:insert attribute="body"/>
|
174 |
|
|
</td>
|
175 |
|
|
</tr>
|
176 |
|
|
</tbody>
|
177 |
|
|
</table>
|
178 |
|
|
</td>
|
179 |
|
|
</tr>
|
180 |
|
|
</tbody>
|
181 |
|
|
</table>
|
182 |
|
|
|
183 |
|
|
</body>
|
184 |
|
|
</html:html>
|