1 |
1929
|
brooke
|
<%@ page language="java" %>
|
2 |
|
|
<!--
|
3 |
|
|
/**
|
4 |
|
|
* '$RCSfile$'
|
5 |
|
|
* Authors: Matt Jones, CHad Berkley
|
6 |
|
|
* Copyright: 2000 Regents of the University of California and the
|
7 |
|
|
* National Center for Ecological Analysis and Synthesis
|
8 |
|
|
* For Details: http://www.nceas.ucsb.edu/
|
9 |
|
|
*
|
10 |
|
|
* '$Author$'
|
11 |
|
|
* '$Date$'
|
12 |
|
|
* '$Revision$'
|
13 |
|
|
*
|
14 |
|
|
* This program is free software; you can redistribute it and/or modify
|
15 |
|
|
* it under the terms of the GNU General Public License as published by
|
16 |
|
|
* the Free Software Foundation; either version 2 of the License, or
|
17 |
|
|
* (at your option) any later version.
|
18 |
|
|
*
|
19 |
|
|
* This program is distributed in the hope that it will be useful,
|
20 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
21 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
22 |
|
|
* GNU General Public License for more details.
|
23 |
|
|
*
|
24 |
|
|
* You should have received a copy of the GNU General Public License
|
25 |
|
|
* along with this program; if not, write to the Free Software
|
26 |
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
27 |
|
|
*
|
28 |
|
|
*/
|
29 |
|
|
-->
|
30 |
|
|
|
31 |
|
|
<%@ include file="settings.jsp"%>
|
32 |
|
|
<%@ include file="session_vars.jsp"%>
|
33 |
|
|
<!-- *********************** START LOGIN TABLE ************************* -->
|
34 |
|
|
<html>
|
35 |
|
|
<head>
|
36 |
|
|
<title</title>
|
37 |
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
38 |
|
|
<link href="<%=relativeRoot%>/default.css" rel="stylesheet" type="text/css">
|
39 |
|
|
<script language="javascript"
|
40 |
|
|
type="text/javascript" src="<%=relativeRoot%>/default.js">
|
41 |
|
|
</script>
|
42 |
|
|
<script language="javascript" type="text/javascript">
|
43 |
|
|
var popupMsg = "If you need to create a new account, \n"
|
44 |
|
|
+"click the \"create new account\" link";
|
45 |
|
|
function trim(stringToTrim) {
|
46 |
|
|
return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
|
47 |
|
|
}
|
48 |
|
|
function allowSubmit(formObj) {
|
49 |
|
|
if (trim(formObj.elements["loginAction"].value)!="Login") return true;
|
50 |
|
|
//trim username & passwd:
|
51 |
|
|
var username = trim(formObj.elements["username"].value);
|
52 |
|
|
var organization = trim(formObj.elements["organization"].value);
|
53 |
|
|
var password = trim(formObj.elements["password"].value);
|
54 |
|
|
if (username=="") {
|
55 |
|
|
alert("You must type a username. \n"+popupMsg);
|
56 |
|
|
formObj.elements["username"].focus();
|
57 |
|
|
return false;
|
58 |
|
|
}
|
59 |
|
|
if (organization=="") {
|
60 |
|
|
alert("You must select an organization.\n"+popupMsg);
|
61 |
|
|
formObj.elements["organization"].focus();
|
62 |
|
|
return false;
|
63 |
|
|
}
|
64 |
|
|
if (password=="") {
|
65 |
|
|
alert("You must type a password. \n"+popupMsg);
|
66 |
|
|
formObj.elements["password"].focus();
|
67 |
|
|
return false;
|
68 |
|
|
}
|
69 |
|
|
return true;
|
70 |
|
|
}
|
71 |
2219
|
sgarg
|
<%=(isLoggedIn)?
|
72 |
|
|
" document.cookie = \"JSESSIONID=" + sess_sessionId + ";"
|
73 |
|
|
+" path=" + CONTEXT_NAME + "\";\n"
|
74 |
|
|
:" document.cookie = \"JSESSIONID=" + sess_sessionId + ";"
|
75 |
|
|
+" path=" + CONTEXT_NAME + ";"
|
76 |
|
|
+" expires=Thu, 01-Jan-70 00:00:01 GMT\";\n"
|
77 |
|
|
%>
|
78 |
1929
|
brooke
|
</script>
|
79 |
|
|
</head>
|
80 |
|
|
|
81 |
|
|
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
|
82 |
|
|
<table width="750px" align="center" border="0" cellspacing="0" cellpadding="0">
|
83 |
|
|
<tr>
|
84 |
|
|
<td width="10">
|
85 |
|
|
<img src="./images/panelhead_bg_lcorner.gif" width="10" height="21">
|
86 |
|
|
</td>
|
87 |
|
|
<td class="sectionheader">login & registration</td>
|
88 |
|
|
<td width="10">
|
89 |
|
|
<img src="./images/panelhead_bg_rcorner.gif" width="10" height="21">
|
90 |
|
|
</td>
|
91 |
|
|
</tr>
|
92 |
|
|
<tr>
|
93 |
|
|
<td colspan="3">
|
94 |
|
|
<table width="100%" class="subpanel" border="0" cellpadding="0"
|
95 |
|
|
cellspacing="0">
|
96 |
|
|
<tr>
|
97 |
|
|
<td width="10">
|
98 |
|
|
<img src="./images/transparent1x1.gif" width="10" height="10">
|
99 |
|
|
</td>
|
100 |
|
|
<td class="text_example">
|
101 |
|
|
<a name="loginanchor"></a>
|
102 |
|
|
<p>
|
103 |
|
|
Logging into your account enables you to search any
|
104 |
|
|
additional, non-public data for which you may have access
|
105 |
|
|
priviliges:
|
106 |
|
|
</p>
|
107 |
|
|
<%= loginStatus %>
|
108 |
|
|
</td>
|
109 |
|
|
<td width="10">
|
110 |
|
|
<img src="./images/transparent1x1.gif" width="10" height="10">
|
111 |
|
|
</td>
|
112 |
|
|
</tr>
|
113 |
|
|
<tr>
|
114 |
|
|
<td width="10">
|
115 |
|
|
<img src="./images/transparent1x1.gif" width="10" height="10">
|
116 |
|
|
</td>
|
117 |
|
|
<td>
|
118 |
|
|
<form name="loginform" method="post" action="index.jsp"
|
119 |
|
|
target="_top" onSubmit="return allowSubmit(this);">
|
120 |
|
|
<input type="hidden" name="action" value="login">
|
121 |
|
|
<input type="hidden" name="ldapusername" value="">
|
122 |
|
|
<input type="hidden" name="qformat" value="default">
|
123 |
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
124 |
|
|
<tr valign="middle">
|
125 |
|
|
<td align="left" valign="middle" class="text_plain_smaller">
|
126 |
|
|
username:
|
127 |
|
|
</td>
|
128 |
|
|
<td width="173" align="left"
|
129 |
|
|
style="padding-top: 2px; padding-bottom: 2px;">
|
130 |
|
|
<input name="username" type="text" style="width: 140px;"
|
131 |
|
|
value="<%=typedUserName%>" <%=loginEnabledDisabled%>>
|
132 |
|
|
</td>
|
133 |
|
|
<td width="10px">
|
134 |
|
|
<img src="./images/transparent1x1.gif" width="10">
|
135 |
|
|
</td>
|
136 |
|
|
<td align="center" class="text_plain">
|
137 |
|
|
<a href="http://ldap.ecoinformatics.org/cgi-bin/ldapweb.cgi">
|
138 |
|
|
create a new account</a>
|
139 |
|
|
</td>
|
140 |
|
|
</tr>
|
141 |
|
|
<tr valign="middle">
|
142 |
|
|
<td height="28" align="left"
|
143 |
|
|
valign="middle" class="text_plain_smaller">
|
144 |
|
|
organization:
|
145 |
|
|
</td>
|
146 |
|
|
<td align="left"
|
147 |
|
|
style="padding-top: 2px; padding-bottom: 2px;">
|
148 |
|
|
<select name="organization" style="width:140px;"
|
149 |
|
|
<%=loginEnabledDisabled%> >
|
150 |
|
|
<option value="" <%=((posted_organization.length()<1)? "selected":"")%>>— choose one —</option>
|
151 |
|
|
<option value="NCEAS" <%=((posted_organization.equalsIgnoreCase("NCEAS"))? "selected":"")%>>NCEAS</option>
|
152 |
|
|
<option value="LTER" <%=((posted_organization.equalsIgnoreCase("LTER"))? "selected":"")%>>LTER</option>
|
153 |
|
|
<option value="NRS" <%=((posted_organization.equalsIgnoreCase("NRS"))? "selected":"")%>>NRS</option>
|
154 |
|
|
<option value="PISCO" <%=((posted_organization.equalsIgnoreCase("PISCO"))? "selected":"")%>>PISCO</option>
|
155 |
|
|
<option value="OBFS" <%=((posted_organization.equalsIgnoreCase("OBFS"))? "selected":"")%>>OBFS</option>
|
156 |
|
|
<option value="unaffiliated" <%=((posted_organization.equalsIgnoreCase("unaffiliated"))? "selected":"")%>>unaffiliated</option>
|
157 |
|
|
</select>
|
158 |
|
|
</td>
|
159 |
|
|
<td width="10px">
|
160 |
|
|
<img src="./images/transparent1x1.gif" width="10" >
|
161 |
|
|
</td>
|
162 |
|
|
<td align="center" class="text_plain">
|
163 |
|
|
<a href="http://ldap.ecoinformatics.org/cgi-bin/ldapweb.cgi?stage=resetpass">forgot your password?</a>
|
164 |
|
|
</td>
|
165 |
|
|
</tr>
|
166 |
|
|
<tr valign="middle">
|
167 |
|
|
<td width="85" align="left" valign="middle"
|
168 |
|
|
class="text_plain_smaller">
|
169 |
|
|
password:
|
170 |
|
|
</td>
|
171 |
|
|
<td>
|
172 |
|
|
<input name="password" type="password" maxlength="50"
|
173 |
|
|
style="width:140px;" value="<%=posted_password%>"
|
174 |
|
|
<%=loginEnabledDisabled%>>
|
175 |
|
|
</td>
|
176 |
|
|
<td width="10px">
|
177 |
|
|
<img src="./images/transparent1x1.gif" width="10">
|
178 |
|
|
</td>
|
179 |
|
|
<td align="center" class="text_plain">
|
180 |
|
|
<a href="http://ldap.ecoinformatics.org/cgi-bin/ldapweb.cgi?stage=changepass">change your password</a>
|
181 |
|
|
</td>
|
182 |
|
|
</tr>
|
183 |
|
|
<tr>
|
184 |
|
|
<td align="center" colspan="2" class="<%= ((isLoggedIn)? "buttonBG_logout": "buttonBG_login") %>">
|
185 |
|
|
<input type="submit" name="loginAction"
|
186 |
|
|
value="<%=loginButtonLabel%>" class="button_login" />
|
187 |
|
|
</td>
|
188 |
|
|
</td>
|
189 |
|
|
<td width="10">
|
190 |
|
|
<img src="./images/transparent1x1.gif" width="10">
|
191 |
|
|
</td>
|
192 |
|
|
<td>
|
193 |
|
|
<img src="./images/transparent1x1.gif" width="10">
|
194 |
|
|
</td>
|
195 |
|
|
</tr>
|
196 |
|
|
<tr>
|
197 |
|
|
<td colspan="4">
|
198 |
|
|
</br>
|
199 |
|
|
</td>
|
200 |
|
|
</tr>
|
201 |
|
|
</table>
|
202 |
|
|
</form>
|
203 |
|
|
</td>
|
204 |
|
|
</tr>
|
205 |
|
|
</table>
|
206 |
|
|
</td>
|
207 |
|
|
</tr>
|
208 |
|
|
</table>
|
209 |
|
|
</body>
|