Project

General

Profile

« Previous | Next » 

Revision 2492

Added by Matt Jones over 19 years ago

Ne wlogin form for dev skin that does not require the full DN.

View differences:

lib/style/skins/dev/login.html
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$'
9
  *     '$Date$'
10
  * '$Revision$'
11
  * 
12
  * This is an HTML document for login to MetaCat
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
<HTML>
29
<HEAD>
30
<TITLE>MetaCat</TITLE>
31
<link rel="stylesheet" type="text/css" href="@html-path@/style/rowcol.css">
32
<script language="JavaScript">
33
   function PutFocus(theForm) {
34
	theForm.username.focus()
35
   }
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2

  
3
<html>
4
<head>
5
  <title>Login</title>
6
<script language="JavaScript" type="text/javascript">
7

  
8
function submitform(formObj) {
9

  
10
  if (trim(formObj.elements["loginAction"].value)!="Login") return true;
11
  //trim username & passwd:
12
  var username = trim(formObj.elements["uid"].value);
13
  var organization  = trim(formObj.elements["organization"].value);
14
  var password      = trim(formObj.elements["password"].value);
15

  
16
  if (username=="") {
17
    alert("You must type a username. \n"+popupMsg);
18
        formObj.elements["uid"].focus();
19
    return false;
20
  }
21

  
22
  if (organization=="") {
23
    alert("You must select an organization. \n"+popupMsg);
24
        formObj.elements["organization"].focus();
25
    return false;
26
  }
27

  
28
  if (password=="") {
29
    alert("You must type a password. \n"+popupMsg);
30
        formObj.elements["password"].focus();
31
    return false;
32
  }
33

  
34
  formObj.username.value="uid="+formObj.elements["uid"].value+",o="+formObj.elements["organization"].value+",dc=ecoinformatics,dc=org";
35
  return true;
36
}
37

  
38
function trim(stringToTrim) {
39
  return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
40
}
41

  
36 42
</script>
37
</HEAD>
38
<BODY class="emlbody" onLoad="PutFocus(document.forms[0]);">
43
</head>
39 44

  
40
  <P>&nbsp;
45
<body>
46
  <form name="loginform" method="post" action="@servlet-path@"
47
  target="_top" onsubmit="return submitform(this);" id="loginform">
48
    <input type="hidden" name="action" value="login"> <input type=
49
    "hidden" name="username" value=""> <input type="hidden" name=
50
    "qformat" value="dev"> <input type="hidden" name=
51
    "enableediting" value="false">
41 52

  
42
  <FORM ACTION="@servlet-path@" METHOD="POST">
43
    <INPUT TYPE="hidden" NAME="action" VALUE="login">
44
    <INPUT TYPE="hidden" NAME="qformat" VALUE="html">
45
    <P>Username &nbsp;&nbsp;&nbsp;
46
    <INPUT TYPE="text" NAME="username" SIZE="15">
47
    <P>Password &nbsp;&nbsp;&nbsp;
48
    <INPUT TYPE="password" NAME="password" SIZE="15">&nbsp;&nbsp;&nbsp;
49
    <INPUT TYPE="submit" VALUE=" Login ">
50
  </FORM>
53
    <table>
54
      <tr valign="middle">
55
        <td align="left" valign="middle" class="text_plain">
56
        username:</td>
51 57

  
52
</BODY>
53
</HTML>
58
        <td width="173" align="left" class="text_plain" style=
59
        "padding-top: 2px; padding-bottom: 2px;"><input name="uid"
60
        type="text" style="width: 140px;" value=""></td>
61
      </tr>
62

  
63
      <tr valign="middle">
64
        <td height="28" align="left" valign="middle" class=
65
        "text_plain">organization:</td>
66

  
67
        <td align="left" class="text_plain" style=
68
        "padding-top: 2px; padding-bottom: 2px;"><select name=
69
        "organization" style="width:140px;">
70
          <option value=""    selected>&#8212; choose one &#8212;</option>
71
          <option value="NCEAS"       >NCEAS</option>
72
          <option value="UCNRS"       >UCNRS</option>
73
          <option value="PISCO"       >PISCO</option>
74
          <option value="OBFS"        >OBFS</option>
75
          <option value="SDSC"        >SDSC</option>
76
          <option value="KU"          >KU</option>
77
          <option value="unaffiliated">unaffiliated</option>
78
        </select></td>
79
      </tr>
80

  
81
      <tr valign="middle">
82
        <td width="85" align="left" valign="middle" class=
83
        "text_plain">password:</td>
84

  
85
        <td colspan="2" align="left" class="text_plain" style=
86
        "padding-top: 2px; padding-bottom: 2px;">
87
          <table width="100%" border="0" cellpadding="0"
88
          cellspacing="0">
89
            <tr>
90
              <td width="150" align="left"><input name="password"
91
              type="password" maxlength="50" style="width:140px;"
92
              value=""></td>
93

  
94
              <td align="center" class="buttonBG_login">
95
              <input type="submit" name="loginAction" value="Login"
96
              class="button_login"></td>
97

  
98
              <td align="left">&nbsp;</td>
99
            </tr>
100
          </table>
101
        </td>
102
      </tr>
103
    </table>
104
  </form>
105
</body>
106
</html>

Also available in: Unified diff