PageRenderTime 47ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/app/views/users/login.php

https://bitbucket.org/sarahman/my-tiny-todo-list
PHP | 40 lines | 28 code | 12 blank | 0 comment | 0 complexity | 14e242afd6c0feebc9a5a6539801b4b5 MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>M School</title>
  6. <link href="<?php echo site_url('assets/css/login.css') ?>" rel="stylesheet" type="text/css" />
  7. </head>
  8. <body>
  9. <form id="login-form" action="<?php echo site_url('users/login') ?>" method="post">
  10. <fieldset>
  11. <legend>Log in</legend>
  12. <div class="err">
  13. <?php echo !empty($isError) ? 'Username or password is incorrect' : '' ?>
  14. </div>
  15. <label for="username">Username</label>
  16. <input type="text" id="username" name="username" />
  17. <div class="clear"></div>
  18. <label for="password">Password</label>
  19. <input type="password" id="password" name="password" />
  20. <div class="clear"></div>
  21. <label for="remember_me" style="padding: 0;">Remember me?</label>
  22. <input type="checkbox" id="remember_me" style="margin-top: 3px;" name="remember_me"/>
  23. <div class="clear"></div>
  24. <input type="submit" style="margin: 10px 0 0 287px;" class="button" name="commit" value="Log in"/>
  25. </fieldset>
  26. </form>
  27. </body>
  28. </html>