Project

General

Profile

1
    [% SWITCH stage %]
2
    [% CASE 'register' %]
3
    
4
    
5
    <h3>Register for the KNB</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 for the KNB. 
11
       By registering, you will be assigned a user account that allows you to store your
12
       own data as part of the KNB and to collaborate with other research 
13
       scientists through the KNB.</td></tr>
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.</td></tr>
17
       <tr><td align="left"><span class="label">Required fields are denoted by an asterisk (*).</td></tr>
18
       
19
    </table>
20
    <p>&nbsp;</p>
21
    
22
    [% fieldType = 'text' %]
23
    [% CASE 'registerconfirmed' %]
24
    
25
    
26
      <h3>Confirm registration information</h3>
27
    
28
    <table class="intro" cellpadding="3" cellspacing="0">
29
      <tr><td align="left"><span class="regtext">If you have confirmed that the accounts listed above do not 
30
    represent you, you can continue with the registration process 
31
    using the data you provided, summarized below:   </td></tr></table>
32
    
33
    [% fieldType = 'hidden' %]
34
    [% END %]
35
    <p class="label text-error">[% errorMessage %]<p>
36
    <p>
37
    <script type="text/javascript" language="JavaScript1.2">
38
    
39
    <!--
40
      document.loginForm.givenName.focus();
41
      document.loginForm.givenName.select();
42

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

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

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

    
63
    <form name="loginForm" action="[% cgiurl %]" method="post">
64
      <input type="hidden" name="stage" value="[% stage %]"/>
65
      <input type="hidden" name="cfg" value="[% cfg %]"/>
66
      <table hspace="20" border="0">
67
        <tr>
68
          <td align="left" class="label">
69
            *First Name:
70
          </td>
71
          <td align="right">
72
            [% IF stage == 'registerconfirmed' %]
73
            [% allParams.givenName %]
74
            [% END %]
75
            <input name="givenName" type="[% fieldType %]" 
76
                   value="[% allParams.givenName %]"/>
77
          </td>
78
        </tr>
79
        <tr>
80
          <td align="left" class="label">
81
            *Last Name:
82
          </td>
83
          <td align="right">
84
            [% IF stage == 'registerconfirmed' %]
85
            [% allParams.sn %]
86
            [% END %]
87
            <input name="sn" type="[% fieldType %]" value="[% allParams.sn %]"/>
88
          </td>
89
        </tr>
90
        <tr>
91
          <td align="left" class="label">
92
            *Organization:
93
          </td>
94
          <td align="right">
95
            [% IF stage == 'registerconfirmed' %]
96
            [% allParams.o %]
97
            <input name="o" type="[% fieldType %]" 
98
                   value="[% allParams.o %]"/>
99
            [% ELSE %]
100
            <select name="o">
101
                  <option value="unaffiliated">unaffiliated</option>
102
            </select>
103
            [% END %]
104
          </td>
105
        </tr>
106
        <tr>
107
          <td align="left" class="label">
108
            Telephone:
109
          </td>
110
          <td align="right">
111
            [% IF stage == 'registerconfirmed' %]
112
            [% allParams.telephoneNumber %]
113
            [% END %]
114
            <input name="telephoneNumber" type="[% fieldType %]" 
115
                   value="[% allParams.telephoneNumber %]"/>
116
          </td>
117
        </tr>
118
        <tr>
119
          <td align="left" class="label">
120
            *E-mail:
121
          </td>
122
          <td align="right">
123
            [% IF stage == 'registerconfirmed' %]
124
            [% allParams.mail %]
125
            [% END %]
126
            <input name="mail" type="[% fieldType %]" 
127
                   value="[% allParams.mail %]"/>
128
          </td>
129
        </tr>
130
        <tr>
131
          <td align="left" class="label">
132
            Title:
133
          </td>
134
          <td align="right">
135
            [% IF stage == 'registerconfirmed' %]
136
            [% allParams.title %]
137
            [% END %]
138
            <input name="title" type="[% fieldType %]" 
139
                   value="[% allParams.title %]"/>
140
          </td>
141
        </tr>
142
        <tr>
143
          <td align="left" class="label">
144
            *Username:
145
          </td>
146
          <td align="right">
147
            [% IF stage == 'registerconfirmed' %]
148
            [% allParams.uid %]
149
            [% END %]
150
            <input name="uid" type="[% fieldType %]" 
151
                   value="[% allParams.uid %]"/>
152
          </td>
153
        </tr>
154
        <tr>
155
          <td align="left" class="label">
156
            *Password:
157
          </td>
158
          <td align="right">
159
            [% IF stage == 'registerconfirmed' %]
160
            <input name="userPassword" type="[% fieldType %]"
161
                   value="[% allParams.userPassword %]"/>
162
            NOT DISPLAYED
163
            [% ELSE %]
164
            <input name="userPassword" type="password"
165
                   value="[% allParams.userPassword %]"/>
166
            [% END %]
167
          </td>
168
        </tr>
169
        <tr>
170
          <td align="left" class="label">
171
            *Confirm Password:
172
          </td>
173
          <td align="right">
174
            [% IF stage == 'registerconfirmed' %]
175
            <input name="userPassword2" type="[% fieldType %]"
176
                   value="[% allParams.userPassword2 %]"/>
177
            NOT DISPLAYED
178
            [% ELSE %]
179
            <input name="userPassword2" type="password"
180
                   value="[% allParams.userPassword2 %]"/>
181
            [% END %]
182
          </td>
183
        </tr>
184
        [% IF stage == 'register' %]
185
            <tr>
186
                <td align="left" class="label">
187
                    *Verification Code:
188
                </td>
189
                <td align="right">
190
                    [% captcha %]
191
                </td>
192
            </tr>
193
        [% END %]
194
        
195
        <tr>
196
          <td>
197
          </td>
198
          <td align="right">
199
    [% SWITCH stage %]
200
    [% CASE 'register' %]
201
            <input name="action" type="submit" value="Register"/>
202
    [% CASE 'registerconfirmed' %]
203
            <input name="action" type="submit" value="Continue"/>
204
    [% END %]
205
          </td>
206
        </tr>
207
      </table>
208
    </form>
209

    
(15-15/26)