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

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

    
(17-17/30)