Project

General

Profile

1
<!--
2
  *  '$RCSfile$'
3
  *      Authors: Saurabh Garg
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: tyburczy $'
9
  *     '$Date: 2005-12-16 15:07:38 -0800 (Fri, 16 Dec 2005) $'
10
  * '$Revision: 2873 $'
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
<html>
29
<head>
30
<title>Data Repository Login Form</title>
31
<link rel="stylesheet" href="@html-path@/style/default.css" type="text/css">
32
  <link rel="stylesheet" type="text/css" 
33
        href="@systemidserver@@style-skins-path@/[%cfg%]/[%cfg%].css"></link>
34
  <script language="JavaScript" type="text/JavaScript"
35
          src="@systemidserver@@style-skins-path@/[%cfg%]/[%cfg%].js"></script>
36
  <script language="JavaScript" type="text/JavaScript"
37
          src="@systemidserver@@style-common-path@/branding.js"></script>
38

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

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

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

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

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

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

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

    
74
 </script>
75

    
76
</head>
77
<body>
78
      <script language="JavaScript">
79
          insertTemplateOpening();
80
          insertSearchBox();
81
      </script>
82
  <br />
83
  <menu>
84
<form method="post" action="@cgi-prefix@/register-dataset.cgi" onsubmit="return submitform(this);" >
85
    <input type="hidden" name="stage" value="login"> 
86
    <input type="hidden" name="username" value=""> 
87
    <input type="hidden" name="cfg" value="[%cfg%]"> 
88

    
89
    <table>
90
      [% IF message != '' %]
91
      	<tr valign="middle">
92
       		<td align="left" valign="middle" class="text_plain" colspan="2">
93
			<p class="redbold">[% message %]</p>
94
			</br>
95
			</td>
96
		</tr>
97
	  	[%IF cfg =='esa'%]
98
			<tr valign="middle"><td>
99
				<p><strong>Steps for registering an ESA data set</strong></p>
100
          
101
        
102
				<p><span class="greenbold">Step 1: Create an Account</span> <br>
103
		   			Create an account by registering with the <a href="http://knb.ecoinformatics.org">KNB</a>.
104

    
105
					Many scientists will already have accounts in the KNB, especially those 
106
					from institutions like NCEAS and LTER. If you already have an account 
107
					please use that existing account rather than creating a new one.</p>
108
				<p><span class="greenbold">Step 2: Login</span><br />
109
		   			Login to the ESA Registry website with the account you created. Fill out the ESA Data Registry Form. 
110
					A page titled "Success" will appear when the form has been successfully submitted.</p>
111
				<p><span class="greenbold">Step 3: Register Data</span><br />
112
					Fill out the <a href="http://data.esa.org/cgi-bin/register-dataset.cgi?cfg=esa">ESA Data Registry Form</a>
113
					A page titled "Success" will appear when the form has been successfully submitted.             </p>
114
				<p> <span class="greenbold">Step 4: Look for Feedback</span> <br />
115
					After you submit, watch for e-mail sent by the ESA moderator regarding whether your data set  has been accepted</p><br />
116
		  </td></tr>
117
		[% END %]
118
	  
119
      [% END %]
120

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

    
125
        <td width="173" align="left" class="text_plain" style=
126
        "padding-top: 2px; padding-bottom: 2px;"><input name="uid"
127
        type="text" style="width: 140px;" value=""></td>
128
      </tr>
129

    
130
      <tr valign="middle">
131
        <td height="28" align="left" valign="middle" class=
132
        "text_plain">Organization:</td>
133

    
134
        <td align="left" class="text_plain" style=
135
        "padding-top: 2px; padding-bottom: 2px;"><select name=
136
        "organization" style="width:140px;">
137
          <option value=""    selected>&#8212; choose one &#8212;</option>
138
          <option value="NCEAS"       >NCEAS</option>
139
          <option value="UCNRS"       >UCNRS</option>
140
          <option value="PISCO"       >PISCO</option>
141
          <option value="OBFS"        >OBFS</option>
142
          <option value="SDSC"        >SDSC</option>
143
          <option value="KU"          >KU</option>
144
          <option value="unaffiliated">unaffiliated</option>
145
        </select></td>
146
      </tr>
147

    
148
      <tr valign="middle">
149
        <td width="85" align="left" valign="middle" class=
150
        "text_plain">Password:</td>
151

    
152
        <td colspan="2" align="left" class="text_plain" style=
153
        "padding-top: 2px; padding-bottom: 2px;">
154
          <table width="100%" border="0" cellpadding="0"
155
          cellspacing="0">
156
            <tr>
157
              <td width="150" align="left"><input name="password"
158
              type="password" maxlength="50" style="width:140px;"
159
              value=""></td>
160

    
161
              <td align="center" class="buttonBG_login">
162
              <input type="submit" name="loginAction" value="Login"
163
              class="button_login"></td>
164

    
165
              <td align="left">&nbsp;</td>
166
            </tr>
167
          </table>
168
        </td>
169
      </tr>
170
	  <tr valign="middle">
171
	  	<td align="left">Don't have an account yet? <a href="@cgi-prefix@/ldapweb.cgi?cfg=[%cfg%]">Create a new account</a></td>
172
      </tr>
173
	  <tr valign="middle">
174
	  	<td align="left">  Forgot your password?<a href="@cgi-prefix@/ldapweb.cgi?cfg=[%cfg%]&amp;stage=resetpass">Reset your password</a></td>
175
	  </tr>
176
    </table>
177
  </form>
178
  </menu>
179
  
180
  <p>&nbsp;</p>
181
<script language="JavaScript">          
182
    insertTemplateClosing();
183
</script>
184
</body>
185
</html>
(20-20/20)