1 |
5788
|
leinfelder
|
<%@ page language="java"%>
|
2 |
|
|
<%
|
3 |
|
|
/**
|
4 |
|
|
*
|
5 |
|
|
* '$RCSfile$'
|
6 |
|
|
* Copyright: 2008 Regents of the University of California and the
|
7 |
|
|
* National Center for Ecological Analysis and Synthesis
|
8 |
|
|
* '$Author: leinfelder $'
|
9 |
|
|
* '$Date: 2008-09-25 16:11:55 -0700 (Thu, 25 Sep 2008) $'
|
10 |
|
|
* '$Revision: 4393 $'
|
11 |
|
|
*
|
12 |
|
|
* This program is free software; you can redistribute it and/or modify
|
13 |
|
|
* it under the terms of the GNU General Public License as published by
|
14 |
|
|
* the Free Software Foundation; either version 2 of the License, or
|
15 |
|
|
* (at your option) any later version.
|
16 |
|
|
*
|
17 |
|
|
* This program is distributed in the hope that it will be useful,
|
18 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20 |
|
|
* GNU General Public License for more details.
|
21 |
|
|
|
22 |
|
|
* You should have received a copy of the GNU General Public License
|
23 |
|
|
* along with this program; if not, write to the Free Software
|
24 |
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
25 |
|
|
*/
|
26 |
|
|
%>
|
27 |
|
|
|
28 |
|
|
<%@ include file="../../common/common-settings.jsp"%>
|
29 |
|
|
<%@ include file="../../common/configure-check.jsp"%>
|
30 |
|
|
|
31 |
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
32 |
|
|
<html>
|
33 |
|
|
<head>
|
34 |
|
|
<title>Semtools Login</title>
|
35 |
|
|
<link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/semtools/semtools.css">
|
36 |
|
|
<link rel="stylesheet" type="text/css" href="<%=STYLE_COMMON_URL%>/jquery/jqueryui/css/smoothness/jquery-ui-1.8.6.custom.css">
|
37 |
|
|
|
38 |
|
|
<script language="javascript" type="text/javascript" src="<%=STYLE_COMMON_URL%>/jquery/jquery.js"></script>
|
39 |
|
|
<script language="javascript" type="text/javascript" src="<%=STYLE_COMMON_URL%>/jquery/jsTree/_lib/jquery.cookie.js"></script>
|
40 |
|
|
<script language="javascript" type="text/javascript" src="<%=STYLE_COMMON_URL%>/jquery/jsTree/jquery.jstree.js"></script>
|
41 |
|
|
<script language="javascript" type="text/javascript" src="<%=STYLE_COMMON_URL%>/jquery/jqueryui/js/jquery-ui-1.8.6.custom.min.js"></script>
|
42 |
|
|
<script language="javascript" type="text/javascript" src="<%=STYLE_COMMON_URL%>/jquery/busy/jquery.busy.js"></script>
|
43 |
|
|
|
44 |
|
|
<script language="javascript" type="text/javascript" src="<%=STYLE_SKINS_URL%>/semtools/search.js"></script>
|
45 |
|
|
<script language="javascript" type="text/javascript" src="<%=STYLE_SKINS_URL%>/semtools/semtools.js"></script>
|
46 |
|
|
<script language="javascript" type="text/javascript" src="<%=STYLE_COMMON_URL%>/branding.js"></script>
|
47 |
|
|
<script language="Javascript">
|
48 |
|
|
function submitform(formObj) {
|
49 |
|
|
|
50 |
|
|
if (trim(formObj.elements["loginAction"].value)!="Login") {
|
51 |
|
|
return true;
|
52 |
|
|
}
|
53 |
|
|
|
54 |
|
|
//trim username & passwd:
|
55 |
|
|
var username = trim(formObj.elements["uid"].value);
|
56 |
|
|
var organization = trim(formObj.elements["organization"].value);
|
57 |
|
|
var password = trim(formObj.elements["password"].value);
|
58 |
|
|
|
59 |
|
|
if (username=="") {
|
60 |
|
|
alert("You must type a username. \n");
|
61 |
|
|
formObj.elements["uid"].focus();
|
62 |
|
|
return false;
|
63 |
|
|
}
|
64 |
|
|
|
65 |
|
|
if (organization=="") {
|
66 |
|
|
alert("You must select an organization. \n");
|
67 |
|
|
formObj.elements["organization"].focus();
|
68 |
|
|
return false;
|
69 |
|
|
}
|
70 |
|
|
|
71 |
|
|
if (password=="") {
|
72 |
|
|
alert("You must type a password. \n");
|
73 |
|
|
formObj.elements["password"].focus();
|
74 |
|
|
return false;
|
75 |
|
|
}
|
76 |
|
|
|
77 |
|
|
formObj.username.value="uid="+formObj.elements["uid"].value+",o="+formObj.elements["organization"].value+",dc=ecoinformatics,dc=org";
|
78 |
|
|
return true;
|
79 |
|
|
}
|
80 |
|
|
|
81 |
|
|
function trim(stringToTrim) {
|
82 |
|
|
return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
|
83 |
|
|
}
|
84 |
|
|
</script>
|
85 |
|
|
</head>
|
86 |
|
|
<body>
|
87 |
|
|
<script language="JavaScript">
|
88 |
|
|
insertTemplateOpening("<%=CONTEXT_URL%>");
|
89 |
|
|
insertSearchBox("<%=CONTEXT_URL%>");
|
90 |
|
|
</script>
|
91 |
|
|
|
92 |
|
|
<table class="group group_border onehundred_percent" border="0" cellpadding="0">
|
93 |
|
|
<tr>
|
94 |
|
|
<th colspan="1">Login</th>
|
95 |
|
|
</tr>
|
96 |
|
|
<tr>
|
97 |
|
|
<td>
|
98 |
|
|
<p>
|
99 |
|
|
Please login by entering your username, affiliation and password. Only registered users will be able to access the data cart.
|
100 |
|
|
</p>
|
101 |
|
|
</td>
|
102 |
|
|
</tr>
|
103 |
|
|
<tr>
|
104 |
|
|
<td>
|
105 |
|
|
<form name="loginform" id="loginform" method="post"
|
106 |
|
|
action="<%=SERVLET_URL%>" target="_top"
|
107 |
|
|
onsubmit="return submitform(this);">
|
108 |
|
|
<input type="hidden" name="action" value="login" />
|
109 |
|
|
<input type="hidden" name="username" value="" />
|
110 |
|
|
<input type="hidden" name="qformat" value="semtools" />
|
111 |
|
|
|
112 |
|
|
<table>
|
113 |
|
|
<tr valign="middle">
|
114 |
|
|
<td align="left" valign="middle" class="text_plain">Username:</td>
|
115 |
|
|
|
116 |
|
|
<td width="173" align="right" class="text_plain"
|
117 |
|
|
style="padding-top: 2px; padding-bottom: 2px;">
|
118 |
|
|
<input name="uid" type="text" style="width: 140px;" value=""></td>
|
119 |
|
|
</tr>
|
120 |
|
|
|
121 |
|
|
<tr valign="middle">
|
122 |
|
|
<td height="28" align="left" valign="middle" class="text_plain">Organization:</td>
|
123 |
|
|
|
124 |
|
|
<td align="right" class="text_plain"
|
125 |
|
|
style="padding-top: 2px; padding-bottom: 2px;">
|
126 |
|
|
<select name="organization" style="width: 140px;">
|
127 |
|
|
<option value="" selected>— choose one —</option>
|
128 |
|
|
<option value="NCEAS">NCEAS</option>
|
129 |
|
|
<option value="MSU">MSU</option>
|
130 |
|
|
<option value="LTER">LTER</option>
|
131 |
|
|
<option value="UCNRS">UCNRS</option>
|
132 |
|
|
<option value="PISCO">PISCO</option>
|
133 |
|
|
<option value="OBFS">OBFS</option>
|
134 |
|
|
<option value="OSUBS">OSUBS</option>
|
135 |
|
|
<option value="SAEON">SAEON</option>
|
136 |
|
|
<option value="SANParks">SANParks</option>
|
137 |
|
|
<option value="SDSC">SDSC</option>
|
138 |
|
|
<option value="KU">KU</option>
|
139 |
|
|
<option value="unaffiliated">unaffiliated</option>
|
140 |
|
|
</select>
|
141 |
|
|
</td>
|
142 |
|
|
</tr>
|
143 |
|
|
|
144 |
|
|
<tr valign="middle">
|
145 |
|
|
<td width="85" align="left" valign="middle" class="text_plain">Password:</td>
|
146 |
|
|
|
147 |
|
|
<td width="150" align="right">
|
148 |
|
|
<input name="password" type="password" maxlength="50" style="width: 140px;" value="">
|
149 |
|
|
</td>
|
150 |
|
|
</tr>
|
151 |
|
|
<tr>
|
152 |
|
|
<td colspan="2" align=right class="buttonBG_login">
|
153 |
|
|
<input type="submit" name="loginAction" value="Login" class="button_login">
|
154 |
|
|
</td>
|
155 |
|
|
</tr>
|
156 |
|
|
</table>
|
157 |
|
|
</form>
|
158 |
|
|
</td>
|
159 |
|
|
</tr>
|
160 |
|
|
</table>
|
161 |
|
|
|
162 |
|
|
<script language="JavaScript">
|
163 |
|
|
insertTemplateClosing("<%=CONTEXT_URL%>");
|
164 |
|
|
</script>
|
165 |
|
|
</body>
|
166 |
|
|
</html>
|