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