working at user login
[living-lab-site.git] / application / views / user / login_view.php
index db1b9bc..4389cdb 100644 (file)
@@ -1,20 +1,31 @@
-<table>
+
+<?php echo form_open('user/login') ?>
+<table class="form">
        <tr>
                <th><?php echo $this->lang->line('user_username_or_email'). ': ' ?></th>
                <td>
-                       <input type="text" name="username" size="32" />
+                       <input type="text" name="username" size="16" value="<?php echo set_value('username') ?>" />
                </td>
        </tr>
+       <tr>
+               <td></td>
+               <td><?php echo form_error('username') ?></td>
+       </tr>
        <tr>
                <th><?php echo $this->lang->line('user_password'). ': ' ?></th>
                <td>
-                       <input type="password" name="password" size="32" />
+                       <input type="password" name="password" size="16" value="" />
                </td>
        </tr>
+       <tr>
+               <td></td>
+               <td><?php echo form_error('password') ?></td>
+       </tr>
        <tr>
                <td></td>
                <td>
                        <input type="submit" value="<?php echo $this->lang->line('ui_nav_menu_log_in') ?>" />
                </td>
        </tr>
-</table>
\ No newline at end of file
+</table>
+</form>
\ No newline at end of file