Project

General

Profile

1
<%@ page language="java" %> 
2
<%@ page import="edu.ucsb.nceas.metacat.util.OrganizationUtil,edu.ucsb.nceas.metacat.service.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: daigle $'
11
 *     '$Date: 2008-08-22 16:19:56 -0700 (Fri, 22 Aug 2008) $'
12
 * '$Revision: 4293 $'
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> organizationList = OrganizationUtil.getOrganizations();
32
%>
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
<script language="JavaScript" type="text/JavaScript" src="<%= request.getContextPath() %>/admin/admin.js"></script>
41

    
42
</head>
43
<body>
44
<img src="<%= request.getContextPath() %>/metacat-logo.png"
45
	width="100px" align="right" />
46
<h2>Administrator Login</h2>
47

    
48
Account login page.
49
<br class="ldap-header">
50

    
51
<%@ include file="./page-message-section.jsp"%>
52
<hr class="config-line">
53
<br>
54

    
55
<form name="loginform" method="post" action="<%= request.getContextPath() %>/admin"
56
	target="_top" onsubmit="return submitform(this);" id="loginform">
57

    
58
<table class="admin-login">
59
	<tr>
60
		<td>username:</td>
61
		<td><input class="login-input" name="username" type="text" value=""></td>
62
	</tr>
63

    
64
	<tr>
65
		<td>organization:</td>
66
		<td><select class="login-input"
67
			name="organization">
68
			<option value="" selected>&#8212; choose one &#8212;</option>
69
<%
70
			for (String orgName : organizationList) {
71
%>
72
			<option value="<%= orgName %>"
73
<%
74
			if (PropertyService.getProperty("organization.base." + orgName) == null || PropertyService.getProperty("organization.base." + orgName).equals("")) {
75
%>
76
			disabled="disabled"
77
<%
78
			}
79
%>			
80
			><%= orgName %></option>
81
<%
82
			}
83
%>
84
		</select></td>
85
	</tr>
86
	<tr>
87
		<td>password:</td>
88
		<td><input class="login-input" name="password" type="password" maxlength="50" value=""></td>
89
	</tr>
90
</table>
91

    
92
<br>
93
<hr class="config-line">
94

    
95
	<input class="left-button" input type="submit" name="loginAction" value="Login" class="button_login"></td>
96
	<input class="button" type="button" value="Cancel" onClick="forward('./knb')"> 
97

    
98

    
99
<input type="hidden" name="configureType" value="login"/>
100
<input type="hidden" name="processForm" value="true"/>
101

    
102
</form>
103

    
104
</body>
105
</html>
(1-1/13)