Project

General

Profile

1
<%@ 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>FIRST Assessment Metadata Repository</title>
35
<link rel="stylesheet" type="text/css"
36
	href="<%=STYLE_SKINS_URL%>/first/first.css">
37
<script language="JavaScript" type="text/JavaScript"
38
	src="<%=STYLE_SKINS_URL%>/first/first.js"></script>
39
<script language="JavaScript" type="text/JavaScript"
40
	src="<%=STYLE_SKINS_URL%>/first/search.js"></script>
41
<script language="JavaScript" type="text/JavaScript"
42
	src="<%=STYLE_COMMON_URL%>/branding.js"></script>
43
<script language="Javascript" type="text/JavaScript"
44
	src="<%=STYLE_COMMON_URL%>/prototype-1.5.1.1/prototype.js">
45
</script>
46
<script language="Javascript" type="text/JavaScript"
47
	src="<%=STYLE_COMMON_URL%>/effects.js">
48
</script>
49
<script language="Javascript">
50
function submitform(formObj) {
51

    
52
	if (trim(formObj.elements["loginAction"].value)!="Login") {
53
		return true;
54
	}
55
	
56
	//trim username & passwd:
57
	var username = trim(formObj.elements["uid"].value);
58
	var organization  = trim(formObj.elements["organization"].value);
59
	var password      = trim(formObj.elements["password"].value);
60
	
61
	if (username=="") {
62
		alert("You must type a username. \n");
63
		formObj.elements["uid"].focus();
64
		return false;
65
	}
66
	
67
	if (organization=="") {
68
		alert("You must select an organization. \n");
69
		formObj.elements["organization"].focus();
70
		return false;
71
	}
72
	
73
	if (password=="") {
74
		alert("You must type a password. \n");
75
		formObj.elements["password"].focus();
76
		return false;
77
	}
78
	
79
	formObj.username.value="uid="+formObj.elements["uid"].value+",o="+formObj.elements["organization"].value+",dc=ecoinformatics,dc=org";
80
	return true;
81
}
82

    
83
function trim(stringToTrim) {
84
	return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
85
}
86
</script>
87
</head>
88
<body>
89
<script language="JavaScript">
90
          insertTemplateOpening("<%=CONTEXT_URL%>");
91
          insertSearchBox("<%=CONTEXT_URL%>");
92
      </script>
93

    
94
<table width="100%" border="0" cellspacing="20" cellpadding="0">
95
	<tr>
96
		<th colspan="2">Login</th>
97
	</tr>
98
	<tr>
99
		<td>
100
			<form name="loginform" id="loginform" method="post"
101
				action="<%=SERVLET_URL%>" target="_top"
102
				onsubmit="return submitform(this);">
103
				<input type="hidden" name="action" value="login" />
104
				<input type="hidden" name="username" value="" /> 
105
				<input type="hidden" name="qformat" value="first" />
106
	
107
			<table>
108
				<tr valign="middle">
109
					<td align="left" valign="middle" class="text_plain">Username:</td>
110
	
111
					<td width="173" align="right" class="text_plain"
112
						style="padding-top: 2px; padding-bottom: 2px;"><input
113
						name="uid" type="text" style="width: 140px;" value=""></td>
114
				</tr>
115
	
116
				<tr valign="middle">
117
					<td height="28" align="left" valign="middle" class="text_plain">Organization:</td>
118
	
119
					<td align="right" class="text_plain"
120
						style="padding-top: 2px; padding-bottom: 2px;">
121
						<select name="organization" style="width: 140px;">
122
							<option value="" selected>&#8212; choose one &#8212;</option>
123
							<option value="NCEAS">NCEAS</option>
124
							<option value="MSU">MSU</option>
125
							<option value="LTER">LTER</option>
126
							<option value="UCNRS">UCNRS</option>
127
							<option value="PISCO">PISCO</option>
128
							<option value="OBFS">OBFS</option>
129
							<option value="OSUBS">OSUBS</option>
130
							<option value="SAEON">SAEON</option>
131
							<option value="SANParks">SANParks</option>
132
							<option value="SDSC">SDSC</option>
133
							<option value="KU">KU</option>
134
							<option value="unaffiliated">unaffiliated</option>
135
						</select>
136
					</td>
137
				</tr>
138
	
139
				<tr valign="middle">
140
					<td width="85" align="left" valign="middle" class="text_plain">Password:</td>
141
	
142
					<td width="150" align="right">
143
						<input name="password" type="password" maxlength="50" style="width: 140px;" value="">
144
					</td>
145
				</tr>
146
				<tr>
147
					<td colspan="2" align=right class="buttonBG_login">
148
						<input type="submit" name="loginAction" value="Login" class="button_login">
149
					</td>
150
				</tr>
151
			</table>
152
			</form>
153
		</td>
154
		<td>
155
			<p>
156
				Blah blah blah...register for an account.....
157
			</p>
158
		</td>
159
	</tr>
160
</table>
161

    
162
<script language="JavaScript">          
163
    insertTemplateClosing("<%=CONTEXT_URL%>");
164
</script>
165
</body>
166
</html>
(16-16/19)