Project

General

Profile

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