login works; working at register
[living-lab-site.git] / application / views / user / register_view.php
1 <?php echo form_open("user/register/$redirect") ?>
2 <table class="form">
3         <tr>
4                 <td class="form-header"></td>
5                 <td><span class="required"><?php echo $this->lang->line('user_note_required_fields') ?></span></td>
6         </tr>
7         
8         <tr><td></td><td>&nbsp;</td></tr>
9
10         <tr>
11                 <th><?php echo $this->lang->line('user_username'). ' <span class="required">*</span> ' ?></th>
12                 <td>
13                         <input type="text" name="username" size="16" value="<?php echo set_value('username') ?>" />
14                 </td>
15         </tr>
16         <tr><td></td><td><?php echo form_error('username') ?></td></tr>
17         
18         <tr>
19                 <th><?php echo $this->lang->line('user_password'). ' <span class="required">*</span> ' ?></th>
20                 <td>
21                         <input type="password" name="password" size="16" value="" />
22                 </td>
23         </tr>
24         <tr><td></td><td><?php echo form_error('password') ?></td></tr>
25         
26         <tr>
27                 <th><?php echo $this->lang->line('user_password_confirmation'). ' <span class="required">*</span> ' ?></th>
28                 <td>
29                         <input type="password" name="password-confirmation" size="16" value="" />
30                 </td>
31         </tr>
32         <tr><td></td><td><?php echo form_error('password-confirmation') ?></td></tr>
33         
34         <tr>
35                 <th><?php echo $this->lang->line('user_email'). ' <span class="required">*</span> ' ?></th>
36                 <td>
37                         <input type="text" name="email" size="16" value="<?php echo set_value('email') ?>" />
38                 </td>
39         </tr>
40         <tr><td></td><td><?php echo form_error('email') ?></td></tr>
41         
42         <tr><td></td><td>&nbsp;</td></tr>
43         
44         <tr>
45                 <th><?php echo $this->lang->line('user_first_name'). ' <span class="required">*</span> ' ?></th>
46                 <td>
47                         <input type="text" name="first-name" size="16" value="<?php echo set_value('first-name') ?>" />
48                 </td>
49         </tr>
50         <tr><td></td><td><?php echo form_error('first-name') ?></td></tr>
51         
52         <tr>
53                 <th><?php echo $this->lang->line('user_last_name'). ' <span class="required">*</span> ' ?></th>
54                 <td>
55                         <input type="text" name="last-name" size="16" value="<?php echo set_value('last-name') ?>" />
56                 </td>
57         </tr>
58         <tr><td></td><td><?php echo form_error('last-name') ?></td></tr>
59         
60         <tr>
61                 <th><?php echo $this->lang->line('user_birth_date'). ' &nbsp;' ?></th>
62                 <td>
63                         <input type="text" name="birth-date" id="birth-date" size="16" value="<?php echo set_value('birth-date') ?>" /> (<?php echo $this->lang->line('user_date_format_hint') ?>)
64                 </td>
65         </tr>
66         <tr><td></td><td><?php echo form_error('birth-date') ?></td></tr>
67         
68         <tr>
69                 <th><?php echo $this->lang->line('user_country'). ' <span class="required">*</span> ' ?></th>
70                 <td>
71                         <?php echo country_dropdown('country', array('RO'), set_value('country', 'RO')) ?>
72                 </td>
73         </tr>
74         <tr><td></td><td><?php echo form_error('country') ?></td></tr>
75         
76         <tr>
77                 <th><?php echo $this->lang->line('user_locality'). ' &nbsp;' ?></th>
78                 <td>
79                         <input type="text" name="locality" size="16" value="<?php echo set_value('locality') ?>" />
80                 </td>
81         </tr>
82         <tr><td></td><td><?php echo form_error('locality') ?></td></tr>
83         
84         <tr><td></td><td>&nbsp;</td></tr>
85         
86         <tr>
87                 <th><?php echo $this->lang->line('user_ui_lang'). ' &nbsp;' ?></th>
88                 <td>
89                         <?php echo available_languages_dropdown('ui-lang', set_value('ui-lang', 'en')) ?>
90                 </td>
91         </tr>
92         <tr><td></td><td><?php echo form_error('ui-lang') ?></td></tr>
93         
94         <tr>
95                 <th><?php echo $this->lang->line('user_time_zone'). ' <span class="required">*</span> ' ?></th>
96                 <td>
97                         <?php echo timezone_menu(set_value('time-zone', 'UP2')) ?>
98                 </td>
99         </tr>
100         <tr><td></td><td><?php echo form_error('time-zone') ?></td></tr>
101         
102         <tr><td></td><td>&nbsp;</td></tr>
103         
104         <tr>
105                 <td></td>
106                 <td>
107                         <input type="submit" value="<?php echo $this->lang->line('ui_nav_menu_register') ?>" />
108                 </td>
109         </tr>
110 </table>
111 </form>
112
113 <script type="text/javascript">
114         $(function() {
115                 $( "#birth-date" ).datepicker({
116                         dateFormat: "yy-mm-dd",
117                         changeMonth: true,
118                         changeYear: true,
119                         yearRange: '1910:2011',
120                         showOn: "both",
121                         buttonImage: "<?php echo site_url('img/calendar.gif') ?>",
122                         buttonImageOnly: true
123                 });
124         });
125 </script>