1 |
2492
|
jones
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2 |
|
|
|
3 |
|
|
<html>
|
4 |
|
|
<head>
|
5 |
|
|
<title>Login</title>
|
6 |
|
|
<script language="JavaScript" type="text/javascript">
|
7 |
|
|
|
8 |
|
|
function submitform(formObj) {
|
9 |
|
|
|
10 |
|
|
if (trim(formObj.elements["loginAction"].value)!="Login") return true;
|
11 |
|
|
//trim username & passwd:
|
12 |
|
|
var username = trim(formObj.elements["uid"].value);
|
13 |
|
|
var organization = trim(formObj.elements["organization"].value);
|
14 |
|
|
var password = trim(formObj.elements["password"].value);
|
15 |
|
|
|
16 |
|
|
if (username=="") {
|
17 |
|
|
alert("You must type a username. \n"+popupMsg);
|
18 |
|
|
formObj.elements["uid"].focus();
|
19 |
|
|
return false;
|
20 |
|
|
}
|
21 |
|
|
|
22 |
|
|
if (organization=="") {
|
23 |
|
|
alert("You must select an organization. \n"+popupMsg);
|
24 |
|
|
formObj.elements["organization"].focus();
|
25 |
|
|
return false;
|
26 |
|
|
}
|
27 |
|
|
|
28 |
|
|
if (password=="") {
|
29 |
|
|
alert("You must type a password. \n"+popupMsg);
|
30 |
|
|
formObj.elements["password"].focus();
|
31 |
|
|
return false;
|
32 |
|
|
}
|
33 |
|
|
|
34 |
|
|
formObj.username.value="uid="+formObj.elements["uid"].value+",o="+formObj.elements["organization"].value+",dc=ecoinformatics,dc=org";
|
35 |
|
|
return true;
|
36 |
|
|
}
|
37 |
|
|
|
38 |
|
|
function trim(stringToTrim) {
|
39 |
|
|
return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
|
40 |
|
|
}
|
41 |
|
|
|
42 |
1929
|
brooke
|
</script>
|
43 |
2492
|
jones
|
</head>
|
44 |
1929
|
brooke
|
|
45 |
2492
|
jones
|
<body>
|
46 |
|
|
<form name="loginform" method="post" action="@servlet-path@"
|
47 |
|
|
target="_top" onsubmit="return submitform(this);" id="loginform">
|
48 |
|
|
<input type="hidden" name="action" value="login"> <input type=
|
49 |
|
|
"hidden" name="username" value=""> <input type="hidden" name=
|
50 |
2587
|
sgarg
|
"qformat" value="xml"> <input type="hidden" name=
|
51 |
2492
|
jones
|
"enableediting" value="false">
|
52 |
1929
|
brooke
|
|
53 |
2492
|
jones
|
<table>
|
54 |
|
|
<tr valign="middle">
|
55 |
|
|
<td align="left" valign="middle" class="text_plain">
|
56 |
|
|
username:</td>
|
57 |
1929
|
brooke
|
|
58 |
2492
|
jones
|
<td width="173" align="left" class="text_plain" style=
|
59 |
|
|
"padding-top: 2px; padding-bottom: 2px;"><input name="uid"
|
60 |
|
|
type="text" style="width: 140px;" value=""></td>
|
61 |
|
|
</tr>
|
62 |
|
|
|
63 |
|
|
<tr valign="middle">
|
64 |
|
|
<td height="28" align="left" valign="middle" class=
|
65 |
|
|
"text_plain">organization:</td>
|
66 |
|
|
|
67 |
|
|
<td align="left" class="text_plain" style=
|
68 |
|
|
"padding-top: 2px; padding-bottom: 2px;"><select name=
|
69 |
|
|
"organization" style="width:140px;">
|
70 |
|
|
<option value="" selected>— choose one —</option>
|
71 |
|
|
<option value="NCEAS" >NCEAS</option>
|
72 |
2687
|
jones
|
<option value="LTER" >LTER</option>
|
73 |
2492
|
jones
|
<option value="UCNRS" >UCNRS</option>
|
74 |
|
|
<option value="PISCO" >PISCO</option>
|
75 |
|
|
<option value="OBFS" >OBFS</option>
|
76 |
3027
|
sgarg
|
<option value="OSUBS" >OSUBS</option>
|
77 |
2492
|
jones
|
<option value="SDSC" >SDSC</option>
|
78 |
|
|
<option value="KU" >KU</option>
|
79 |
|
|
<option value="unaffiliated">unaffiliated</option>
|
80 |
|
|
</select></td>
|
81 |
|
|
</tr>
|
82 |
|
|
|
83 |
|
|
<tr valign="middle">
|
84 |
|
|
<td width="85" align="left" valign="middle" class=
|
85 |
|
|
"text_plain">password:</td>
|
86 |
|
|
|
87 |
|
|
<td colspan="2" align="left" class="text_plain" style=
|
88 |
|
|
"padding-top: 2px; padding-bottom: 2px;">
|
89 |
|
|
<table width="100%" border="0" cellpadding="0"
|
90 |
|
|
cellspacing="0">
|
91 |
|
|
<tr>
|
92 |
|
|
<td width="150" align="left"><input name="password"
|
93 |
|
|
type="password" maxlength="50" style="width:140px;"
|
94 |
|
|
value=""></td>
|
95 |
|
|
|
96 |
|
|
<td align="center" class="buttonBG_login">
|
97 |
|
|
<input type="submit" name="loginAction" value="Login"
|
98 |
|
|
class="button_login"></td>
|
99 |
|
|
|
100 |
|
|
<td align="left"> </td>
|
101 |
|
|
</tr>
|
102 |
|
|
</table>
|
103 |
|
|
</td>
|
104 |
|
|
</tr>
|
105 |
|
|
</table>
|
106 |
|
|
</form>
|
107 |
|
|
</body>
|
108 |
|
|
</html>
|