Project

General

Profile

1
    [% SWITCH stage %]
2
    [% CASE 'register' %]
3
    
4
    
5
    <h3>Account Registration</h3>
6
    
7
    <table class="intro" cellpadding="3" cellspacing="0">   
8
		<tr><td align="left">
9
			<span class="regtext">
10
			Fill out the form below to register your account. 
11
			A verification email will be sent with instructions to activate your account after you have registered.
12
		</td></tr>
13
		<!--
14
		<tr><td align="left">
15
			<strong>Note: </strong>To create an account affiliated with an organization such as OBFS, UCNRS, KU, LTER, UVM, NCEAS, OSUSB, SDSC or NAPIER contact tech support. 
16
			Emails are: tech_support@lternet.edu for LTER, infomgr@ucnrs.org for UCNRS, judithk@sanparks.org for SANParks and SAEON and knb-help@nceas.ucsb.edu for other organizations.
17
		</td></tr>
18
		-->       
19
		<tr><td align="left"><span class="label">Required fields are denoted by an asterisk (*).</td></tr>
20
    </table>
21
    <p>&nbsp;</p>
22
    
23
    [% fieldType = 'text' %]
24
    [% CASE 'registerconfirmed' %]
25
    
26
    
27
      <h3>Confirm registration information</h3>
28
    
29
    <table class="intro" cellpadding="3" cellspacing="0">
30
      <tr><td align="left"><span class="regtext">If you have confirmed that the accounts listed above do not 
31
    represent you, you can continue with the registration process 
32
    using the data you provided, summarized below:   </td></tr></table>
33
    
34
    [% fieldType = 'hidden' %]
35
    [% END %]
36
    <p class="label text-error">[% errorMessage %]<p>
37
    <p>
38
    <script type="text/javascript" language="JavaScript1.2">
39
    
40
    <!--
41
      document.loginForm.givenName.focus();
42
      document.loginForm.givenName.select();
43

    
44
      if(window.document.captureEvents != null)
45
      {
46
        window.document.captureEvents(Event.KEYPRESS);
47
        window.document.onKeyPress = doSubmit;
48
      }
49

    
50
      function doSubmit(event)
51
      {
52
        var key;
53
        if(document.all) // IE
54
          key = String.fromCharCode(window.events.keyCode);
55
        else
56
          key = String.fromCharCode(event.which);
57

    
58
        if(key == "\r" || key == "\n")
59
          document.loginForm.submit();
60
      }
61
    // -->
62
    </script>
63

    
64
    <form name="loginForm" action="[% cgiurl %]" method="post">
65
      <input type="hidden" name="stage" value="[% stage %]"/>
66
      <input type="hidden" name="cfg" value="[% cfg %]"/>
67
      <table hspace="20" border="0">
68
        <tr>
69
          <td align="left" class="label">
70
            *First Name:
71
          </td>
72
          <td align="right">
73
            [% IF stage == 'registerconfirmed' %]
74
            [% allParams.givenName %]
75
            [% END %]
76
            <input name="givenName" type="[% fieldType %]" 
77
                   value="[% allParams.givenName %]"/>
78
          </td>
79
        </tr>
80
        <tr>
81
          <td align="left" class="label">
82
            *Last Name:
83
          </td>
84
          <td align="right">
85
            [% IF stage == 'registerconfirmed' %]
86
            [% allParams.sn %]
87
            [% END %]
88
            <input name="sn" type="[% fieldType %]" value="[% allParams.sn %]"/>
89
          </td>
90
        </tr>
91
        <tr>
92
          <td align="left" class="label">
93
            *Organization:
94
          </td>
95
          <td align="right">
96
            [% IF stage == 'registerconfirmed' %]
97
            [% allParams.o %]
98
            <input name="o" type="[% fieldType %]" 
99
                   value="[% allParams.o %]"/>
100
            [% ELSE %]
101
            <select name="o">
102
                [% FOREACH org = orgList %]
103
                  [% IF allParams.o == org %]
104
                    <option value="[% org %]" selected>[% org %]</option>
105
                  [% ELSE %]
106
                    <option value="[% org %]">[% org %]</option>
107
                  [% END %]
108
                [% END %]
109
               </select>
110
            [% END %]
111
          </td>
112
        </tr>
113
        <tr>
114
          <td align="left" class="label">
115
            Telephone:
116
          </td>
117
          <td align="right">
118
            [% IF stage == 'registerconfirmed' %]
119
            [% allParams.telephoneNumber %]
120
            [% END %]
121
            <input name="telephoneNumber" type="[% fieldType %]" 
122
                   value="[% allParams.telephoneNumber %]"/>
123
          </td>
124
        </tr>
125
        <tr>
126
          <td align="left" class="label">
127
            *E-mail:
128
          </td>
129
          <td align="right">
130
            [% IF stage == 'registerconfirmed' %]
131
            [% allParams.mail %]
132
            [% END %]
133
            <input name="mail" type="[% fieldType %]" 
134
                   value="[% allParams.mail %]"/>
135
          </td>
136
        </tr>
137
        <tr>
138
          <td align="left" class="label">
139
            Title:
140
          </td>
141
          <td align="right">
142
            [% IF stage == 'registerconfirmed' %]
143
            [% allParams.title %]
144
            [% END %]
145
            <input name="title" type="[% fieldType %]" 
146
                   value="[% allParams.title %]"/>
147
          </td>
148
        </tr>
149
        <tr>
150
          <td align="left" class="label">
151
            *Username:
152
          </td>
153
          <td align="right">
154
            [% IF stage == 'registerconfirmed' %]
155
            [% allParams.uid %]
156
            [% END %]
157
            <input name="uid" type="[% fieldType %]" 
158
                   value="[% allParams.uid %]"/>
159
          </td>
160
        </tr>
161
        <tr>
162
          <td align="left" class="label">
163
            *Password:
164
          </td>
165
          <td align="right">
166
            [% IF stage == 'registerconfirmed' %]
167
            <input name="userPassword" type="[% fieldType %]"
168
                   value="[% allParams.userPassword %]"/>
169
            NOT DISPLAYED
170
            [% ELSE %]
171
            <input name="userPassword" type="password"
172
                   value="[% allParams.userPassword %]"/>
173
            [% END %]
174
          </td>
175
        </tr>
176
        <tr>
177
          <td align="left" class="label">
178
            *Confirm Password:
179
          </td>
180
          <td align="right">
181
            [% IF stage == 'registerconfirmed' %]
182
            <input name="userPassword2" type="[% fieldType %]"
183
                   value="[% allParams.userPassword2 %]"/>
184
            NOT DISPLAYED
185
            [% ELSE %]
186
            <input name="userPassword2" type="password"
187
                   value="[% allParams.userPassword2 %]"/>
188
            [% END %]
189
          </td>
190
        </tr>
191
        [% IF stage == 'register' %]
192
            <tr>
193
                <td align="left" class="label">
194
                    *Verification Code:
195
                </td>
196
                <td align="right">
197
                	<div id="captchaArea">
198
                            <a href="javascript:;" onclick="showRecaptcha('captchaArea');">Show Code</a>
199
                    </div>
200
                    <script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
201
                    <script type="text/javascript">
202
	                    function showRecaptcha(element) {
203
	                            Recaptcha.create("[% recaptchaPublicKey %]", element, {
204
	                            theme: "clean",
205
	                            callback: Recaptcha.focus_response_field});
206
	                            return false;
207
	                    }
208
                    </script>
209
                </td>
210
            </tr>
211
        [% END %]
212
        
213
        <tr>
214
          <td>
215
          </td>
216
          <td align="right">
217
    [% SWITCH stage %]
218
    [% CASE 'register' %]
219
            <input name="action" type="submit" value="Register"/>
220
    [% CASE 'registerconfirmed' %]
221
            <input name="action" type="submit" value="Continue"/>
222
    [% END %]
223
          </td>
224
        </tr>
225
      </table>
226
    </form>
227

    
(17-17/30)