1 |
2342
|
sgarg
|
[% SWITCH stage %]
|
2 |
|
|
[% CASE 'register' %]
|
3 |
|
|
<h2>Register for the KNB!</h2>
|
4 |
|
|
<p>Fill out the form below to register for the KNB. By registering,
|
5 |
|
|
you will be assigned a user account that allows you to store your
|
6 |
|
|
own data as part of the KNB and to collaborate with other research
|
7 |
|
|
scientists through the KNB.
|
8 |
|
|
</p>
|
9 |
|
|
<p>Required fields are shown in red.</p>
|
10 |
|
|
[% fieldType = 'text' %]
|
11 |
|
|
[% CASE 'registerconfirmed' %]
|
12 |
|
|
<h2>Confirm registration information</h2>
|
13 |
|
|
<p>If you have confirmed that the accounts listed above do not
|
14 |
|
|
represent you, you can continue with the registration process
|
15 |
|
|
using the data you provided, summarized below:
|
16 |
|
|
</p>
|
17 |
|
|
[% fieldType = 'hidden' %]
|
18 |
|
|
[% END %]
|
19 |
|
|
<p class="emphasis">[% errorMessage %]<p>
|
20 |
|
|
<p>
|
21 |
|
|
<script type="text/javascript" language="JavaScript1.2">
|
22 |
|
|
<!--
|
23 |
|
|
document.loginForm.givenName.focus();
|
24 |
|
|
document.loginForm.givenName.select();
|
25 |
|
|
|
26 |
|
|
if(window.document.captureEvents != null)
|
27 |
|
|
{
|
28 |
|
|
window.document.captureEvents(Event.KEYPRESS);
|
29 |
|
|
window.document.onKeyPress = doSubmit;
|
30 |
|
|
}
|
31 |
|
|
|
32 |
|
|
function doSubmit(event)
|
33 |
|
|
{
|
34 |
|
|
var key;
|
35 |
|
|
if(document.all) // IE
|
36 |
|
|
key = String.fromCharCode(window.events.keyCode);
|
37 |
|
|
else
|
38 |
|
|
key = String.fromCharCode(event.which);
|
39 |
|
|
|
40 |
|
|
if(key == "\r" || key == "\n")
|
41 |
|
|
document.loginForm.submit();
|
42 |
|
|
}
|
43 |
|
|
// -->
|
44 |
|
|
</script>
|
45 |
|
|
|
46 |
|
|
<form name="loginForm" action="@cgiurl@" method="post">
|
47 |
|
|
<input type="hidden" name="stage" value="[% stage %]"/>
|
48 |
|
|
<input type="hidden" name="cfg" value="[% cfg %]"/>
|
49 |
|
|
<table border="0">
|
50 |
|
|
<tr>
|
51 |
|
|
<td align="left" class="required">
|
52 |
|
|
First Name:
|
53 |
|
|
</td>
|
54 |
|
|
<td align="right">
|
55 |
|
|
[% IF stage == 'registerconfirmed' %]
|
56 |
|
|
[% allParams.givenName %]
|
57 |
|
|
[% END %]
|
58 |
|
|
<input name="givenName" type="[% fieldType %]"
|
59 |
|
|
value="[% allParams.givenName %]"/>
|
60 |
|
|
</td>
|
61 |
|
|
</tr>
|
62 |
|
|
<tr>
|
63 |
|
|
<td align="left" class="required">
|
64 |
|
|
Last Name:
|
65 |
|
|
</td>
|
66 |
|
|
<td align="right">
|
67 |
|
|
[% IF stage == 'registerconfirmed' %]
|
68 |
|
|
[% allParams.sn %]
|
69 |
|
|
[% END %]
|
70 |
|
|
<input name="sn" type="[% fieldType %]" value="[% allParams.sn %]"/>
|
71 |
|
|
</td>
|
72 |
|
|
</tr>
|
73 |
|
|
<tr>
|
74 |
|
|
<td align="left" class="required">
|
75 |
|
|
Organization:
|
76 |
|
|
</td>
|
77 |
|
|
<td align="right">
|
78 |
|
|
[% IF stage == 'registerconfirmed' %]
|
79 |
|
|
[% allParams.o %]
|
80 |
|
|
<input name="o" type="[% fieldType %]"
|
81 |
|
|
value="[% allParams.o %]"/>
|
82 |
|
|
[% ELSE %]
|
83 |
|
|
<select name="o">
|
84 |
|
|
[% FOREACH org = orgList %]
|
85 |
|
|
[% IF allParams.o == org %]
|
86 |
|
|
<option value="[% org %]" selected>[% org %]</option>
|
87 |
|
|
[% ELSE %]
|
88 |
|
|
<option value="[% org %]">[% org %]</option>
|
89 |
|
|
[% END %]
|
90 |
|
|
[% END %]
|
91 |
|
|
</select>
|
92 |
|
|
[% END %]
|
93 |
|
|
</td>
|
94 |
|
|
</tr>
|
95 |
|
|
<tr>
|
96 |
|
|
<td align="left">
|
97 |
|
|
Telephone:
|
98 |
|
|
</td>
|
99 |
|
|
<td align="right">
|
100 |
|
|
[% IF stage == 'registerconfirmed' %]
|
101 |
|
|
[% allParams.telephoneNumber %]
|
102 |
|
|
[% END %]
|
103 |
|
|
<input name="telephoneNumber" type="[% fieldType %]"
|
104 |
|
|
value="[% allParams.telephoneNumber %]"/>
|
105 |
|
|
</td>
|
106 |
|
|
</tr>
|
107 |
|
|
<tr>
|
108 |
|
|
<td align="left" class="required">
|
109 |
|
|
Email:
|
110 |
|
|
</td>
|
111 |
|
|
<td align="right">
|
112 |
|
|
[% IF stage == 'registerconfirmed' %]
|
113 |
|
|
[% allParams.mail %]
|
114 |
|
|
[% END %]
|
115 |
|
|
<input name="mail" type="[% fieldType %]"
|
116 |
|
|
value="[% allParams.mail %]"/>
|
117 |
|
|
</td>
|
118 |
|
|
</tr>
|
119 |
|
|
<tr>
|
120 |
|
|
<td align="left">
|
121 |
|
|
Title:
|
122 |
|
|
</td>
|
123 |
|
|
<td align="right">
|
124 |
|
|
[% IF stage == 'registerconfirmed' %]
|
125 |
|
|
[% allParams.title %]
|
126 |
|
|
[% END %]
|
127 |
|
|
<input name="title" type="[% fieldType %]"
|
128 |
|
|
value="[% allParams.title %]"/>
|
129 |
|
|
</td>
|
130 |
|
|
</tr>
|
131 |
|
|
<tr>
|
132 |
|
|
<td align="left" class="required">
|
133 |
|
|
Username:
|
134 |
|
|
</td>
|
135 |
|
|
<td align="right">
|
136 |
|
|
[% IF stage == 'registerconfirmed' %]
|
137 |
|
|
[% allParams.uid %]
|
138 |
|
|
[% END %]
|
139 |
|
|
<input name="uid" type="[% fieldType %]"
|
140 |
|
|
value="[% allParams.uid %]"/>
|
141 |
|
|
</td>
|
142 |
|
|
</tr>
|
143 |
|
|
<tr>
|
144 |
|
|
<td align="left" class="required">
|
145 |
|
|
Password:
|
146 |
|
|
</td>
|
147 |
|
|
<td align="right">
|
148 |
|
|
[% IF stage == 'registerconfirmed' %]
|
149 |
|
|
<input name="userPassword" type="[% fieldType %]"
|
150 |
|
|
value="[% allParams.userPassword %]"/>
|
151 |
|
|
NOT DISPLAYED
|
152 |
|
|
[% ELSE %]
|
153 |
|
|
<input name="userPassword" type="password"
|
154 |
|
|
value="[% allParams.userPassword %]"/>
|
155 |
|
|
[% END %]
|
156 |
|
|
</td>
|
157 |
|
|
</tr>
|
158 |
|
|
<tr>
|
159 |
|
|
<td align="left" class="required">
|
160 |
|
|
Confirm Password:
|
161 |
|
|
</td>
|
162 |
|
|
<td align="right">
|
163 |
|
|
[% IF stage == 'registerconfirmed' %]
|
164 |
|
|
<input name="userPassword2" type="[% fieldType %]"
|
165 |
|
|
value="[% allParams.userPassword2 %]"/>
|
166 |
|
|
NOT DISPLAYED
|
167 |
|
|
[% ELSE %]
|
168 |
|
|
<input name="userPassword2" type="password"
|
169 |
|
|
value="[% allParams.userPassword2 %]"/>
|
170 |
|
|
[% END %]
|
171 |
|
|
</td>
|
172 |
|
|
</tr>
|
173 |
|
|
<tr>
|
174 |
|
|
<td>
|
175 |
|
|
</td>
|
176 |
|
|
<td align="right">
|
177 |
|
|
[% SWITCH stage %]
|
178 |
|
|
[% CASE 'register' %]
|
179 |
|
|
<input name="action" type="submit" value="Register"/>
|
180 |
|
|
[% CASE 'registerconfirmed' %]
|
181 |
|
|
<input name="action" type="submit" value="Continue"/>
|
182 |
|
|
[% END %]
|
183 |
|
|
</td>
|
184 |
|
|
</tr>
|
185 |
|
|
</table>
|
186 |
|
|
</form>
|
187 |
|
|
</p>
|