Project

General

Profile

1
<%@ page language="java" %> 
2
<%@ page import="edu.ucsb.nceas.metacat.util.OrganizationUtil,edu.ucsb.nceas.metacat.properties.PropertyService" %>
3
<% 
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: walker $'
11
 *     '$Date: 2013-09-18 15:37:06 -0700 (Wed, 18 Sep 2013) $'
12
 * '$Revision: 8240 $'
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
	Vector<String> adminList = (Vector<String>)request.getAttribute("adminList");;
32
%>
33

    
34
<html>
35
<head>
36

    
37
<title>Database Install/Upgrade Utility</title>
38
<%@ include file="./head-section.jsp"%>
39

    
40
</head>
41
<body>
42
<%@ include file="./header-section.jsp"%>
43
	
44
<div class="document">
45
	<h2>Administrator Login</h2>
46
	
47
	<p>Account login page.</p>
48
	
49
	<%@ include file="./page-message-section.jsp"%>
50
	
51
	<form name="loginform" method="post" action="<%= request.getContextPath() %>/admin"
52
		target="_top" onsubmit="return validateAndSubmitForm(this);" id="loginform">
53
	
54
	<table class="admin-login">
55
		<tr>
56
			<td><h4>Username</h4></td>
57
			<td>
58
				<select class="username-input" name="username">
59
	<%
60
				for(String adminName : adminList) {
61
	%>
62
					<option><%= adminName %></option>
63
	<%
64
		}
65
	%>
66
			    
67
			  </select>
68
			</td>
69
		</tr>
70
		<tr>
71
		    <td></td>
72
		    <td class="textinput-description">[Fully qualified administrator username]</td>
73
		</tr>
74
		<tr>
75
			<td><h4>Password</h4></td>
76
			<td><input class="login-input" name="password" type="password" maxlength="50" value=""></td>
77
		</tr>
78
		<tr>
79
		    <td></td>
80
		    <td class="textinput-description">[Administrator password]</td>
81
		</tr>
82
	</table>
83
	
84
	<div class="buttons-wrapper">
85
		<input class="button" input type="submit" name="loginAction" value="Login" class="button_login"></td>
86
		<input class="button" type="button" value="Cancel" onClick="forward('<%= request.getContextPath() %>')"> 
87
		<input type="hidden" name="configureType" value="login"/>
88
		<input type="hidden" name="processForm" value="true"/>
89
	</div>
90
	</form>
91
</div>
92
</body>
93
</html>
(1-1/19)