Project

General

Profile

1 3780 daigle
<%@ page    language="java" %>
2
<%
3
/*
4
 *  '$RCSfile$'
5
 *      Authors: Matt Jones
6
 *    Copyright: 2000 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 is an HTML document for displaying metadata catalog tools
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
<%@ include file="../../common/common-settings.jsp"%>
32
33
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
34
<html>
35
<head>
36
<title>ESA Data Repository</title>
37
<link rel="stylesheet" href="<%=SERVER_URL_WITH_CONTEXT%>/style/default.css" type="text/css">
38
  <link rel="stylesheet" type="text/css"
39
        href="<%=STYLE_SKINS_URL%>/esa/esa.css"></link>
40
  <script language="JavaScript" type="text/JavaScript"
41
          src="<%=STYLE_SKINS_URL%>/esa/esa.js"></script>
42
  <script language="JavaScript" type="text/JavaScript"
43
          src="<%=STYLE_COMMON_URL%>/branding.js"></script>
44
45
  <script language="JavaScript" type="text/javascript">
46
  function submitform(formObj) {
47
48
  if (trim(formObj.elements["loginAction"].value)!="Login") return true;
49
  //trim username & passwd:
50
  var username = trim(formObj.elements["uid"].value);
51
  var organization  = trim(formObj.elements["organization"].value);
52
  var password      = trim(formObj.elements["password"].value);
53
54
  if (username=="") {
55
    alert("You must type a username. \n"+popupMsg);
56
        formObj.elements["uid"].focus();
57
    return false;
58
  }
59
60
  if (organization=="") {
61
    alert("You must select an organization. \n"+popupMsg);
62
        formObj.elements["organization"].focus();
63
    return false;
64
  }
65
66
  if (password=="") {
67
    alert("You must type a password. \n"+popupMsg);
68
        formObj.elements["password"].focus();
69
    return false;
70
  }
71
72
  formObj.username.value="uid="+formObj.elements["uid"].value+",o="+formObj.elements["organization"].value+",dc=ecoinformatics,dc=org";
73
  return true;
74
}
75
76
function trim(stringToTrim) {
77
  return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
78
}
79
80
 </script>
81
82
</head>
83
<body>
84
      <script language="JavaScript">
85
          insertTemplateOpening("<%=SERVER_URL_WITH_CONTEXT%>");
86
          insertSearchBox("<%=SERVER_URL_WITH_CONTEXT%>");
87
      </script>
88
  <b>Login Page for Moderators</b>
89
  <br />
90
  <menu>
91
<form name="loginform" method="post" action="<%=SERVLET_URL%>"
92
  target="_top" onsubmit="return submitform(this);" id="loginform">
93
    <input type="hidden" name="action" value="login"> <input type=
94
    "hidden" name="username" value=""> <input type="hidden" name=
95
    "qformat" value="esa"> <input type="hidden" name=
96
    "enableediting" value="false">
97
98
    <table>
99
      <tr valign="middle">
100
        <td align="left" valign="middle" class="text_plain">
101
        username:</td>
102
103
        <td width="173" align="left" class="text_plain" style=
104
        "padding-top: 2px; padding-bottom: 2px;"><input name="uid"
105
        type="text" style="width: 140px;" value=""></td>
106
      </tr>
107
108
      <tr valign="middle">
109
        <td height="28" align="left" valign="middle" class=
110
        "text_plain">organization:</td>
111
112
        <td align="left" class="text_plain" style=
113
        "padding-top: 2px; padding-bottom: 2px;"><select name=
114
        "organization" style="width:140px;">
115
          <option value=""    selected>&#8212; choose one &#8212;</option>
116
          <option value="NCEAS"       >NCEAS</option>
117
          <option value="LTER"        >LTER</option>
118
          <option value="KU"          >KU</option>
119
          <option value="OBFS"        >OBFS</option>
120
          <option value="OSUSB"       >OSUSB</option>
121
          <option value="PISCO"       >PISCO</option>
122
          <option value="SDSC"        >SDSC</option>
123
          <option value="UCNRS"       >UCNRS</option>
124
          <option value="unaffiliated">unaffiliated</option>
125
        </select></td>
126
      </tr>
127
128
      <tr valign="middle">
129
        <td width="85" align="left" valign="middle" class=
130
        "text_plain">password:</td>
131
132
        <td colspan="2" align="left" class="text_plain" style=
133
        "padding-top: 2px; padding-bottom: 2px;">
134
          <table width="100%" border="0" cellpadding="0"
135
          cellspacing="0">
136
            <tr>
137
              <td width="150" align="left"><input name="password"
138
              type="password" maxlength="50" style="width:140px;"
139
              value=""></td>
140
141
              <td align="center" class="buttonBG_login">
142
              <input type="submit" name="loginAction" value="Login"
143
              class="button_login"></td>
144
145
              <td align="left">&nbsp;</td>
146
            </tr>
147
          </table>
148
        </td>
149
      </tr>
150
    </table>
151
  </form>
152
153
  </menu>
154
  </li>
155
  <p>&nbsp;</p>
156
<script language="JavaScript">
157
    insertTemplateClosing("<%=SERVER_URL_WITH_CONTEXT%>");
158
</script>
159
</body>
160
</html>