Project

General

Profile

metacat / lib / style / common / templates / ldapRegister.tmpl @ 8205

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
                [% FOREACH org = orgList %]
102
                  [% IF allParams.o == org %]
103
                    <option value="[% org %]" selected>[% org %]</option>
104
                  [% ELSE %]
105
                    <option value="[% org %]">[% org %]</option>
106
                  [% END %]
107
                [% END %]
108
               </select>
109
            [% END %]
110
          </td>
111
        </tr>
112
        <tr>
113
          <td align="left" class="label">
114
            Telephone:
115
          </td>
116
          <td align="right">
117
            [% IF stage == 'registerconfirmed' %]
118
            [% allParams.telephoneNumber %]
119
            [% END %]
120
            <input name="telephoneNumber" type="[% fieldType %]" 
121
                   value="[% allParams.telephoneNumber %]"/>
122
          </td>
123
        </tr>
124
        <tr>
125
          <td align="left" class="label">
126
            *E-mail:
127
          </td>
128
          <td align="right">
129
            [% IF stage == 'registerconfirmed' %]
130
            [% allParams.mail %]
131
            [% END %]
132
            <input name="mail" type="[% fieldType %]" 
133
                   value="[% allParams.mail %]"/>
134
          </td>
135
        </tr>
136
        <tr>
137
          <td align="left" class="label">
138
            Title:
139
          </td>
140
          <td align="right">
141
            [% IF stage == 'registerconfirmed' %]
142
            [% allParams.title %]
143
            [% END %]
144
            <input name="title" type="[% fieldType %]" 
145
                   value="[% allParams.title %]"/>
146
          </td>
147
        </tr>
148
        <tr>
149
          <td align="left" class="label">
150
            *Username:
151
          </td>
152
          <td align="right">
153
            [% IF stage == 'registerconfirmed' %]
154
            [% allParams.uid %]
155
            [% END %]
156
            <input name="uid" type="[% fieldType %]" 
157
                   value="[% allParams.uid %]"/>
158
          </td>
159
        </tr>
160
        <tr>
161
          <td align="left" class="label">
162
            *Password:
163
          </td>
164
          <td align="right">
165
            [% IF stage == 'registerconfirmed' %]
166
            <input name="userPassword" type="[% fieldType %]"
167
                   value="[% allParams.userPassword %]"/>
168
            NOT DISPLAYED
169
            [% ELSE %]
170
            <input name="userPassword" type="password"
171
                   value="[% allParams.userPassword %]"/>
172
            [% END %]
173
          </td>
174
        </tr>
175
        <tr>
176
          <td align="left" class="label">
177
            *Confirm Password:
178
          </td>
179
          <td align="right">
180
            [% IF stage == 'registerconfirmed' %]
181
            <input name="userPassword2" type="[% fieldType %]"
182
                   value="[% allParams.userPassword2 %]"/>
183
            NOT DISPLAYED
184
            [% ELSE %]
185
            <input name="userPassword2" type="password"
186
                   value="[% allParams.userPassword2 %]"/>
187
            [% END %]
188
          </td>
189
        </tr>
190
        [% IF stage == 'register' %]
191
            <tr>
192
                <td align="left" class="label">
193
                    *Verification Code:
194
                </td>
195
                <td align="right">
196
                    [% captcha %]
197
                </td>
198
            </tr>
199
        [% END %]
200
        
201
        <tr>
202
          <td>
203
          </td>
204
          <td align="right">
205
    [% SWITCH stage %]
206
    [% CASE 'register' %]
207
            <input name="action" type="submit" value="Register"/>
208
    [% CASE 'registerconfirmed' %]
209
            <input name="action" type="submit" value="Continue"/>
210
    [% END %]
211
          </td>
212
        </tr>
213
      </table>
214
    </form>
215