Project

General

Profile

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

    
176
</body>
177
</html:html>
(2-2/2)