Project

General

Profile

1
<!--
2
  *  '$RCSfile$'
3
  *      Authors: Matt Jones
4
  *    Copyright: 2000 Regents of the University of California and the
5
  *               National Center for Ecological Analysis and Synthesis
6
  *  For Details: http://www.nceas.ucsb.edu/
7
  *
8
  *   '$Author: sgarg $'
9
  *     '$Date: 2005-10-05 13:52:05 -0700 (Wed, 05 Oct 2005) $'
10
  * '$Revision: 2655 $'
11
  * 
12
  * This is an HTML document for displaying metadata catalog tools
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
29
<html>
30
<head>
31
<title>ESA Data Repository</title>
32
<link rel="stylesheet" href="@html-path@/style/default.css" type="text/css">
33
  <link rel="stylesheet" type="text/css" 
34
        href="@systemidserver@@style-skins-path@/esa/esa.css"></link>
35
  <script language="JavaScript" type="text/JavaScript"
36
          src="@systemidserver@@style-skins-path@/esa/esa.js"></script>
37
  <script language="JavaScript" type="text/JavaScript"
38
          src="@systemidserver@@style-common-path@/branding.js"></script>
39

    
40
  <script language="JavaScript" type="text/javascript">
41
  function submitform(formObj) {
42

    
43
  if (trim(formObj.elements["loginAction"].value)!="Login") return true;
44
  //trim username & passwd:
45
  var username = trim(formObj.elements["uid"].value);
46
  var organization  = trim(formObj.elements["organization"].value);
47
  var password      = trim(formObj.elements["password"].value);
48

    
49
  if (username=="") {
50
    alert("You must type a username. \n"+popupMsg);
51
        formObj.elements["uid"].focus();
52
    return false;
53
  }
54

    
55
  if (organization=="") {
56
    alert("You must select an organization. \n"+popupMsg);
57
        formObj.elements["organization"].focus();
58
    return false;
59
  }
60

    
61
  if (password=="") {
62
    alert("You must type a password. \n"+popupMsg);
63
        formObj.elements["password"].focus();
64
    return false;
65
  }
66

    
67
  formObj.username.value="uid="+formObj.elements["uid"].value+",o="+formObj.elements["organization"].value+",dc=ecoinformatics,dc=org";
68
  return true;
69
}
70

    
71
function trim(stringToTrim) {
72
  return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
73
}
74

    
75
 </script>
76

    
77
</head>
78
<body>
79
      <script language="JavaScript">
80
          insertTemplateOpening();
81
          insertSearchBox();
82
      </script>
83
  <b>Login Page for Moderators</b>
84
  <br />
85
  <menu>
86
<form name="loginform" method="post" action="@servlet-path@"
87
  target="_top" onsubmit="return submitform(this);" id="loginform">
88
    <input type="hidden" name="action" value="login"> <input type=
89
    "hidden" name="username" value=""> <input type="hidden" name=
90
    "qformat" value="esa"> <input type="hidden" name=
91
    "enableediting" value="false">
92

    
93
    <table>
94
      <tr valign="middle">
95
        <td align="left" valign="middle" class="text_plain">
96
        username:</td>
97

    
98
        <td width="173" align="left" class="text_plain" style=
99
        "padding-top: 2px; padding-bottom: 2px;"><input name="uid"
100
        type="text" style="width: 140px;" value=""></td>
101
      </tr>
102

    
103
      <tr valign="middle">
104
        <td height="28" align="left" valign="middle" class=
105
        "text_plain">organization:</td>
106

    
107
        <td align="left" class="text_plain" style=
108
        "padding-top: 2px; padding-bottom: 2px;"><select name=
109
        "organization" style="width:140px;">
110
          <option value=""    selected>&#8212; choose one &#8212;</option>
111
          <option value="NCEAS"       >NCEAS</option>
112
          <option value="UCNRS"       >UCNRS</option>
113
          <option value="PISCO"       >PISCO</option>
114
          <option value="OBFS"        >OBFS</option>
115
          <option value="SDSC"        >SDSC</option>
116
          <option value="KU"          >KU</option>
117
          <option value="unaffiliated">unaffiliated</option>
118
        </select></td>
119
      </tr>
120

    
121
      <tr valign="middle">
122
        <td width="85" align="left" valign="middle" class=
123
        "text_plain">password:</td>
124

    
125
        <td colspan="2" align="left" class="text_plain" style=
126
        "padding-top: 2px; padding-bottom: 2px;">
127
          <table width="100%" border="0" cellpadding="0"
128
          cellspacing="0">
129
            <tr>
130
              <td width="150" align="left"><input name="password"
131
              type="password" maxlength="50" style="width:140px;"
132
              value=""></td>
133

    
134
              <td align="center" class="buttonBG_login">
135
              <input type="submit" name="loginAction" value="Login"
136
              class="button_login"></td>
137

    
138
              <td align="left">&nbsp;</td>
139
            </tr>
140
          </table>
141
        </td>
142
      </tr>
143
    </table>
144
  </form>
145

    
146
  </menu>
147
  </li>
148
  <p>&nbsp;</p>
149
<script language="JavaScript">          
150
    insertTemplateClosing();
151
</script>
152
</body>
153
</html>
(9-9/10)