Project

General

Profile

« Previous | Next » 

Revision 3414

save point with sanparks L+F.
first pass.

View differences:

SaeonLogin.jspx
11 11
		import="edu.ucsb.nceas.metacat.clientview.ClientHtmlHelper" />
12 12

  
13 13
	<jsp:declaration>
14
        private ClientViewHelper            clientViewHelper = null;
14
        private ClientViewHelper clientViewHelper = null;
15 15
    </jsp:declaration>
16 16

  
17
<html xmlns="http://www.w3.org/1999/xhtml">
18
<head>
17 19

  
18
	<html xmlns="http://www.w3.org/1999/xhtml">
19
	<head>
20

  
21 20
	<script type="text/javascript">
22 21
                
23 22
                function allowSubmit(formObj) {
......
52 51
		}
53 52
    </script>
54 53

  
55
	<title>SANParks - Kruger National Park Data Repository</title>
54
	<title>SANParks - South African National Park Data Repository</title>
56 55
	<link href="sanparks.css" rel="stylesheet" type="text/css" />
57 56

  
58
	</head>
59
	<body>
60
	<div class="templatecontentareaclass"><jsp:useBean
61
		id="clientViewBean" scope="session"
62
		class="edu.ucsb.nceas.metacat.clientview.ClientView" /> <jsp:setProperty
63
		name="clientViewBean" property="*" /> <jsp:scriptlet>
64
                        clientViewHelper = ClientViewHelper.clientViewHelperInstance(request);
65
                        clientViewHelper.clientRequest(request, response);
66
                    </jsp:scriptlet>
57
</head>
58
	
59
<body style="background: #FFFFFF;">
60
	<div class="templatecontentareaclass">
61
		<jsp:useBean id="clientViewBean" scope="session" class="edu.ucsb.nceas.metacat.clientview.ClientView" /> 
62
		<jsp:setProperty name="clientViewBean" property="*" /> 
63
		<jsp:scriptlet>
64
			clientViewHelper = ClientViewHelper.clientViewHelperInstance(request);
65
			clientViewHelper.clientRequest(request, response);
66
        </jsp:scriptlet>
67 67

  
68
	<li>Search for SANParks Data
69
	<form name="searchform" method="post" action="../../../metacat"
70
		target="_top"><jsp:include
71
		page="SimpleSearchMetacatPostFields.html" /> <jsp:element name="input">
72
                                <jsp:attribute name="name">sessionid</jsp:attribute>
73
                                <jsp:attribute name="type">hidden</jsp:attribute>
74
                                <jsp:attribute name="value"><jsp:getProperty
75
				name="clientViewBean" property="sessionid" /></jsp:attribute>
76
                            </jsp:element> <br />
77
	<p class="regtext"><input name="anyfield" value="" type="text"
78
		size="14" /> <input name="action" value="query" type="submit" /> all
79
	fields, including author, title, abstract, keywords, and other
80
	documentation. Use a '%' symbol as a wildcard (e.g., '%biodiversity%').
68
	<table>
69
	<tr valign="top">
70
	<td>
71
	
72
	<h2>Search for SANParks Data</h2>
73
	<form name="searchform" method="post" action="../../../metacat" target="_top">
74
		<jsp:include page="SimpleSearchMetacatPostFields.html" /> 
75
		<jsp:element name="input">
76
			<jsp:attribute name="name">sessionid</jsp:attribute>
77
			<jsp:attribute name="type">hidden</jsp:attribute>
78
			<jsp:attribute name="value">
79
				<jsp:getProperty name="clientViewBean" property="sessionid" />
80
			</jsp:attribute>
81
		</jsp:element> 
82
		<p class="regtext">
83
		Search the data repository using all fields, including author, title, abstract, keywords, and other
84
		documentation. 
85
		Use a '%' symbol as a wildcard (e.g., '%herbivore%') to search more broadly.
86
		</p>
87
			<input name="anyfield" value="" type="text" size="14" /> 
88
			<input name="action" value="query" type="submit" /> 
89
		
90
	</form>
91
	<p class="regtext">
92
	-Or-
81 93
	</p>
82
	</form>
83
	<br />
84
	</li>
85

  
86
	<li>Browse SANParks data sets
87

  
88 94
	<form name="browseform" method="post" action="../../../metacat"
89
		target="_top"><jsp:include
90
		page="SimpleSearchMetacatPostFields.html" /> <input name="anyfield"
91
		type="hidden" value="%" /> <jsp:element name="input">
92
                                <jsp:attribute name="name">sessionid</jsp:attribute>
93
                                <jsp:attribute name="type">hidden</jsp:attribute>
94
                                <jsp:attribute name="value"><jsp:getProperty
95
				name="clientViewBean" property="sessionid" /></jsp:attribute>
96
                            </jsp:element> <br />
97
	<p class="regtext"><input name="action" value="query" type="submit" />
98
	Browse all existing data sets by title. This operation can be slow.</p>
95
		target="_top">
96
		<jsp:include page="SimpleSearchMetacatPostFields.html" /> 
97
		<input name="anyfield" type="hidden" value="%" /> 
98
		<jsp:element name="input">
99
			<jsp:attribute name="name">sessionid</jsp:attribute>
100
			<jsp:attribute name="type">hidden</jsp:attribute>
101
			<jsp:attribute name="value">
102
				<jsp:getProperty name="clientViewBean" property="sessionid" />
103
			</jsp:attribute>
104
		</jsp:element>
105
		<p class="regtext">
106
		Browse all existing data sets by title. This operation can be slow.
107
		</p>
108
		<input name="action" value="Browse All" type="submit" />
99 109
	</form>
100
	<br />
101
	</li>
102 110

  
111
	</td>
112
	<td>
113
	
114
	<!-- Login section -->
103 115
	<jsp:scriptlet>
104
                        if (!clientViewHelper.isLoggedIn()) {
105
                    </jsp:scriptlet>
106
	<li>Login
116
		if (!clientViewHelper.isLoggedIn()) {
117
	</jsp:scriptlet>
118
	
119
	<h3>
120
		Login
121
		<!-- TODO: Config param follows --> 
122
		<a href="HOSTNAME_HERE/cgiScripts/cgi-bin/ldapweb.cgi" target="_parent">
123
			<span class="regtext"> (request an account...)</span>
124
		</a>
125
	</h3>
107 126
	<form name="loginForm" method="post" action="SaeonLogin.jspx"
108
		onsubmit="return allowSubmit(this)"><input name="qformat"
109
		type="hidden" value="sanparks" />
127
		onsubmit="return allowSubmit(this)">
128
		<input name="qformat" type="hidden" value="sanparks" />
110 129
	<table>
111
		<tr>
112
			<td><span class="required">User name</span></td>
113
			<td><input name="username" type="text" value=""
114
				style="width: 140" /></td>
115
			<td rowspan="3" class="regtext" align="right" valign="top"
116
				style="width: 160">
117
			<div><!-- TODO: Config param follows --> <a
118
				href="http://localhost:8084/cgiScripts/cgi-bin/ldapweb.cgi"
119
				target="_parent">create a new account</a></div>
130
		<tr valign="top">
131
			<td>
132
				<span class="required">User name</span>	
120 133
			</td>
134
			<td>
135
				<input name="username" type="text" value=""
136
				style="width: 140" />
137
			</td>
121 138
		</tr>
122 139
		<tr>
123 140
			<td><span class="required">Organization</span></td>
......
134 151
				style="width: 140" maxlength="50" /></td>
135 152
		</tr>
136 153
		<tr>
137
			<td colspan="2" align="center"><input name="action"
138
				value="Login" type="submit" class="button_login" /></td>
154
			<td colspan="2" align="center">
155
				<input name="action"
156
				value="Login" type="submit" class="button_login" />
157
			</td>
139 158
		</tr>
140 159
	</table>
141 160
	</form>
161
	
142 162
	<jsp:scriptlet>
143
                            } else {
144
                        </jsp:scriptlet>
163
		} else {
164
	</jsp:scriptlet>
145 165
	<form name="logoutForm" method="post" action="SaeonLogin.jspx">
146 166
	<input name="qformat" value="sanparks" type="hidden" />
147 167
	<table>
......
149 169
			<td>
150 170
			<p class="regtext">Account: <jsp:expression>clientViewBean.getMessage(ClientView.LOGIN_MESSAGE)</jsp:expression></p>
151 171
			</td>
152
			<td rowspan="2" class="regtext" align="right" valign="top"
172
			<td rowspan="2" 
173
				class="regtext" align="right" 
174
				valign="top"
153 175
				style="width: 160">
154
			<div><!-- TODO: Config param follows --> <a
155
				href="http://localhost:8084/cgiScripts/cgi-bin/ldapweb.cgi?stage=resetpass"
156
				target="_parent">reset your password</a></div>
157
			<div><!-- TODO: Config param follows --> <a
158
				href="http://localhost:8084/cgiScripts/cgi-bin/ldapweb.cgi?stage=changepass"
159
				target="_parent">change your password</a></div>
176
				<div>
177
				<!-- TODO: Config param follows --> 
178
				<a
179
					href="HOSTNAME_HERE/cgiScripts/cgi-bin/ldapweb.cgi?stage=resetpass"
180
					target="_parent">reset your password</a>
181
				</div>
182
				<div>
183
				<!-- TODO: Config param follows --> <a
184
					href="HOSTNAME_HERE/cgiScripts/cgi-bin/ldapweb.cgi?stage=changepass"
185
					target="_parent">change your password</a>
186
				</div>
160 187
			</td>
161 188
		</tr>
162 189
		<tr>
......
166 193
	</table>
167 194
	</form>
168 195
	<jsp:scriptlet>
169
                            }
170
                        </jsp:scriptlet> <!-- File Upload Form --> <br />
196
		}
197
	</jsp:scriptlet> 
198
	
199
	</td>
200
	
201
	<!-- so the map frame doesn't overlap content -->
202
	<td width="50px"></td>
203
	
204
	</tr>
205
	
206
	<tr>
207
	<td colspan="2">
208
	
209
	<!-- File Upload Form --> 
210
	<br />
211
	<h3>Data Package Upload</h3>
212
	
171 213
	<jsp:scriptlet>
172
                            if (clientViewHelper.isLoggedIn()) {
173
                        </jsp:scriptlet>
214
		if (clientViewHelper.isLoggedIn()) {
215
	</jsp:scriptlet>
174 216
	<form action="SaeonUpload.jspx">
175
	<li>Data Package Upload <input name="action" type="submit"
176
		value="Go" class="button_login" /></li>
217
		<input name="action" type="submit" value="Go" class="button_login" />
177 218
	</form>
178 219
	<jsp:scriptlet>
179
                            } else {
180
                        </jsp:scriptlet>
181
	</li>
182
	<li>Data Package Upload <br />
183
	<p class="regtext">You must be logged into your user account before
184
	uploading a data set.</p>
185
	</li>
220
		} else {
221
	</jsp:scriptlet>
222
	
223
	<p class="regtext">
224
		You must be logged into your user account before uploading a data set.
225
	</p>
186 226
	<jsp:scriptlet>
187
                        }
188
                    </jsp:scriptlet>
227
		}
228
	</jsp:scriptlet>
229
	
230
	</td>
231
	
232
	<!-- so the map frame doesn't overlap content -->
233
	<td width="50px"></td>
234
	
235
	</tr>
236
	
237
	<!--
238
	<tr>
239
		<td colspan="3">
240
		<iframe 
241
			width="100%"
242
			height="400px"
243
			frameborder="0"
244
			scrolling="no"
245
			src="spatial/pma.html" />
246
		</td>
247
	</tr>
248
	-->
249
	</table>
250
	
189 251
	</div>
190
	</body>
191
	</html>
252
</body>
253
</html>
192 254
</jsp:root>

Also available in: Unified diff