Project

General

Profile

metacat / lib / style / common / templates / loginForm.tmpl @ 5142

1
[% IF cfg == 'nceas' %]
2
  [% INCLUDE "nceasHeader.tmpl" %]
3
[% ELSIF cfg == 'parc' %]
4
  [% INCLUDE "parcHeader.tmpl" %]
5
[% ELSE %]
6
  [% INCLUDE "genericHeader.tmpl" %]
7
[% END %]
8
      <script language="JavaScript">
9
function submitform(formObj) {
10

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

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

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

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

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

    
39
function trim(stringToTrim) {
40
  return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
41
}
42
      </script>
43
  <br />
44
      [% IF message != '' %]
45
			<p class="redbold">[% message %]</p>
46
			</br>
47
		[%IF showInstructions %]
48
	  	[%IF cfg =='esa' %]
49
				<p><strong>Steps for registering an ESA data set</strong></p>
50
          
51
        
52
				<p><span class="greenbold">Step 1: Create an Account</span> <br>
53
		   			Create an account by registering with the <a href="[% cgiPrefix %]/ldapweb.cgi?cfg=[%cfg%]">KNB</a>.
54

    
55
					Many scientists will already have accounts in the KNB, especially those 
56
					from institutions like NCEAS and LTER. If you already have an account 
57
					please use that existing account rather than creating a new one.</p>
58
				<p><span class="greenbold">Step 2: Login</span><br />
59
		   			Login to the ESA Registry website with the account you created.</p>
60
				<p><span class="greenbold">Step 3: Register Data</span><br />
61
					Fill out the <a href="http://data.esa.org/cgi-bin/register-dataset.cgi?cfg=esa">ESA Data Registry Form</a>
62
					A page titled "Success" will appear when the form has been successfully submitted.             </p>
63
				<p> <span class="greenbold">Step 4: Look for Feedback</span> <br />
64
					After you submit, watch for e-mail sent by the ESA moderator regarding whether your data set has been accepted.</p>
65
				<br /><br />
66
		[% END %]
67
		[% END %]
68
	  
69
      [% END %]
70
  <menu>
71
<form method="post" action="[% cgiPrefix %]/register-dataset.cgi" onsubmit="return submitform(this);" >
72
    <input type="hidden" name="stage" value="login"> 
73
    <input type="hidden" name="username" value=""> 
74
    <input type="hidden" name="cfg" value="[%cfg%]"> 
75

    
76
    <table>
77

    
78
      <tr valign="middle">
79
        <td align="left" valign="middle" class="text_plain">
80
        Username:</td>
81

    
82
        <td width="173" align="left" class="text_plain" style=
83
        "padding-top: 2px; padding-bottom: 2px;"><input name="uid"
84
        type="text" style="width: 140px;" value=""></td>
85
      </tr>
86

    
87
      <tr valign="middle">
88
        <td height="28" align="left" valign="middle" class=
89
        "text_plain">Organization:</td>
90

    
91
        <td align="left" class="text_plain" style=
92
        "padding-top: 2px; padding-bottom: 2px;"><select name=
93
        "organization" style="width:140px;">
94
          <option value=""    selected>&#8212; choose one &#8212;</option>
95
          <option value="NCEAS"       >NCEAS</option>
96
          <option value="LTER"        >LTER</option>
97
          <option value="KU"          >KU</option>
98
          <option value="OBFS"        >OBFS</option>
99
          <option value="OSUSB"       >OSUSB</option>
100
          <option value="PISCO"       >PISCO</option>
101
          <option value="SAEON"       >SAEON</option>
102
          <option value="SANParks"    >SANParks</option>
103
          <option value="SDSC"        >SDSC</option>
104
          <option value="UCNRS"       >UCNRS</option>
105
          <option value="unaffiliated">unaffiliated</option>
106
        </select></td>
107
      </tr>
108

    
109
      <tr valign="middle">
110
        <td width="85" align="left" valign="middle" class=
111
        "text_plain">Password:</td>
112

    
113
        <td colspan="2" align="left" class="text_plain" style=
114
        "padding-top: 2px; padding-bottom: 2px;">
115
          <table width="100%" border="0" cellpadding="0"
116
          cellspacing="0">
117
            <tr>
118
              <td width="150" align="left"><input name="password"
119
              type="password" maxlength="50" style="width:140px;"
120
              value=""></td>
121

    
122
              <td align="center" class="buttonBG_login">
123
              <input type="submit" name="loginAction" value="Login"
124
              class="button_login"></td>
125

    
126
              <td align="left">&nbsp;</td>
127
            </tr>
128
          </table>
129
        </td>
130
      </tr>
131
    </table>
132
  </form>
133
  </menu>
134
  
135
  Dont have an account yet? <a href="[% cgiPrefix %]/ldapweb.cgi?cfg=[%cfg%]">Create a new account</a>
136
  <br />
137
  Forgot your password? <a href="[% cgiPrefix %]/ldapweb.cgi?cfg=[%cfg%]&amp;stage=resetpass">Reset your password</a>
138

    
139
[% IF cfg == 'nceas' %]
140
  [% INCLUDE "nceasFooter.tmpl" %]
141
[% ELSIF cfg == 'parc' %]
142
  [% INCLUDE "parcFooter.tmpl" %]
143
[% ELSE %]
144
  [% INCLUDE "genericFooter.tmpl" %]
145
[% END %]