Project

General

Profile

1 4100 daigle
<%@ page language="java" %>
2 5031 daigle
<%@ page import="edu.ucsb.nceas.metacat.util.OrganizationUtil,edu.ucsb.nceas.metacat.properties.PropertyService" %>
3 4080 daigle
<%
4
/**
5
 *  '$RCSfile$'
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$'
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 5010 daigle
	Vector<String> adminList = (Vector<String>)request.getAttribute("adminList");;
32 4080 daigle
%>
33
34
<html>
35
<head>
36
37
<title>Database Install/Upgrade Utility</title>
38
<link rel="stylesheet" type="text/css"
39
        href="<%= request.getContextPath() %>/admin/admin.css"></link>
40 4293 daigle
<script language="JavaScript" type="text/JavaScript" src="<%= request.getContextPath() %>/admin/admin.js"></script>
41 4080 daigle
42
</head>
43
<body>
44 8203 walker
<img src="<%= request.getContextPath() %>/metacat-logo-darkgray.png"
45 4080 daigle
	width="100px" align="right" />
46
<h2>Administrator Login</h2>
47
48
Account login page.
49 4585 daigle
<br class="auth-header">
50 4080 daigle
51
<%@ include file="./page-message-section.jsp"%>
52
53
<form name="loginform" method="post" action="<%= request.getContextPath() %>/admin"
54 4557 daigle
	target="_top" onsubmit="return validateAndSubmitForm(this);" id="loginform">
55 4080 daigle
56
<table class="admin-login">
57
	<tr>
58
		<td>username:</td>
59 5010 daigle
		<td>
60
			<select class="username-input" name="username">
61
<%
62
			for(String adminName : adminList) {
63
%>
64
				<option><%= adminName %></option>
65
<%
66
	}
67
%>
68
69
		  </select>
70
		</td>
71 4080 daigle
	</tr>
72
	<tr>
73 4585 daigle
	    <td></td>
74
	    <td class="textinput-description">[Fully qualified administrator username]</td>
75 4080 daigle
	</tr>
76
	<tr>
77
		<td>password:</td>
78
		<td><input class="login-input" name="password" type="password" maxlength="50" value=""></td>
79
	</tr>
80 4585 daigle
	<tr>
81
	    <td></td>
82
	    <td class="textinput-description">[Administrator password]</td>
83
	</tr>
84 4080 daigle
</table>
85
86
87 4197 daigle
	<input class="left-button" input type="submit" name="loginAction" value="Login" class="button_login"></td>
88 4759 daigle
	<input class="button" type="button" value="Cancel" onClick="forward('<%= request.getContextPath() %>')">
89 4080 daigle
90 4197 daigle
91 4080 daigle
<input type="hidden" name="configureType" value="login"/>
92
<input type="hidden" name="processForm" value="true"/>
93
94
</form>
95
96
</body>
97
</html>