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