Project

General

Profile

1
    [% SWITCH stage %]
2
    [% CASE 'register' %]
3
    
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
    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
    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
    [% fieldType = 'text' %]
17
    [% CASE 'registerconfirmed' %]
18
    
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
    represent you, you can continue with the registration process 
24
    using the data you provided, summarized below:   </td></tr></table>
25
    
26
    [% fieldType = 'hidden' %]
27
    [% END %]
28
    <p class="label">[% errorMessage %]<p>
29
    <p>
30
    <script type="text/javascript" language="JavaScript1.2">
31
    
32
    <!--
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
      <table hspace="20" border="0">
60
        <tr>
61
          <td align="left" class="label">
62
            *First Name:
63
          </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
          <td align="left" class="label">
74
            *Last Name:
75
          </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
          <td align="left" class="label">
85
            *Organization:
86
          </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
                  <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
        <tr>
185
          <td>
186
          </td>
187
          <td align="right">
188
    [% SWITCH stage %]
189
    [% CASE 'register' %]
190
            <input name="action" type="submit" value="Register"/>
191
    [% CASE 'registerconfirmed' %]
192
            <input name="action" type="submit" value="Continue"/>
193
    [% END %]
194
          </td>
195
        </tr>
196
      </table>
197
    </form>
198

    
(12-12/19)