integration of simple OpenID logging in facility almost ready
[living-lab-site.git] / application / views / user / login_view.php
1 <?php echo form_open("user/login/$redirect") ?>
2 <fieldset>
3         <legend><?php echo sprintf($this->lang->line('user_legend_login_normal'), $this->config->item('site_name')) ?></legend>
4         
5         <table class="form">
6                 <tr>
7                         <th><?php echo $this->lang->line('user_username_or_email'). ': ' ?></th>
8                         <td>
9                                 <input type="text" name="username" size="16" value="<?php echo set_value('username') ?>" />
10                         </td>
11                 </tr>
12                 <tr>
13                         <td></td>
14                         <td><?php echo form_error('username') ?></td>
15                 </tr>
16                 <tr>
17                         <th><?php echo $this->lang->line('user_password'). ': ' ?></th>
18                         <td>
19                                 <input type="password" name="password" size="16" value="" />
20                         </td>
21                 </tr>
22                 <tr>
23                         <td></td>
24                         <td><?php echo form_error('password') ?></td>
25                 </tr>
26                 <tr>
27                         <td></td>
28                         <td>
29                                 <input type="submit" value="<?php echo $this->lang->line('ui_nav_menu_log_in') ?>" />
30                         </td>
31                 </tr>
32                 <tr>
33                         <td></td>
34                         <td>
35                                 <p><a href="<?php echo site_url('user/recover_password') ?>"><?php echo $this->lang->line('user_link_password_recovery') ?></a></p>
36                         </td>
37                 </tr>
38         </table>
39 </fieldset>
40 </form>
41
42 <?php echo form_open("user/login/$redirect") ?>
43 <fieldset>
44         <legend><?php echo $this->lang->line('user_legend_login_openid') ?></legend>
45         
46         <table class="form">
47                 <tr>
48                         <th><?php echo $this->lang->line('user_openid'). ': ' ?></th>
49                         <td>
50                                 <input type="text" name="openid" size="64" value="<?php echo set_value('openid') ?>" />
51                         </td>
52                 </tr>
53                 <tr>
54                         <td></td>
55                         <td><?php echo form_error('openid') ?></td>
56                 </tr>
57                 
58                 <tr>
59                         <td></td>
60                         <td>
61                                 <input type="submit" value="<?php echo $this->lang->line('ui_nav_menu_log_in') ?>" />
62                         </td>
63                 </tr>
64         </table>
65 </fieldset>
66 </form>