Advertisement
Guest User

form_login.php

a guest
Oct 27th, 2016
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.30 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <title>Login SIMS v1.0</title>
  7. <!-- Tell the browser to be responsive to screen width -->
  8. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  9. <!-- Bootstrap 3.3.6 -->
  10. <link rel="stylesheet" href="<?php echo base_url()."assets/bootstrap/css/bootstrap.min.css" ?>">
  11. <!-- Font Awesome -->
  12. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
  13. <!-- Ionicons -->
  14. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
  15. <!-- Theme style -->
  16. <link rel="stylesheet" href="<?php echo base_url()."assets/dist/css/AdminLTE.min.css" ?>">
  17. <!-- iCheck -->
  18. <link rel="stylesheet" href="<?php echo base_url()."assets//plugins/iCheck/square/blue.css"?>">
  19.  
  20. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  21. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  22. <!--[if lt IE 9]>
  23. <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  24. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  25. <![endif]-->
  26. </head>
  27. <body class="hold-transition login-page">
  28. <div class="login-box">
  29. <div class="login-logo">
  30. <a href="../../index2.html"><b>Halaman </b>Login</a>
  31. </div>
  32. <!-- /.login-logo -->
  33. <div class="login-box-body">
  34. <p class="login-box-msg">Silahkan Login Dahulu</p>
  35. <?php
  36. if(isset($_POST['masuk'])){
  37. $u = $this->input->post('usr');
  38. $p = $this->input->post('pwd');
  39. $this->db_model->getLoginData($u,$p);
  40. }
  41. ?>
  42. <form action="" method="post">
  43. <div class="form-group has-feedback">
  44. <input type="text" class="form-control" name="usr" placeholder="Masukkan Username">
  45. <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
  46. </div>
  47. <div class="form-group has-feedback">
  48. <input type="password" class="form-control" name="pwd" placeholder="Masukkan Password">
  49. <span class="glyphicon glyphicon-lock form-control-feedback"></span>
  50. </div>
  51. <div class="row">
  52. <div class="col-xs-8">
  53. &nbsp;
  54. </div>
  55. <!-- /.col -->
  56. <div class="col-xs-4">
  57. <button type="submit" name="masuk" class="btn btn-primary btn-block btn-flat">Sign In</button>
  58. </div>
  59. <!-- /.col -->
  60. </div>
  61. </form>
  62. <p>&nbsp;</p>
  63. <center>
  64. <p>*) silahkan gunakan username dan password anda untuk mengakses halaman SIMS v1.0</p></center>
  65. </div>
  66. <!-- /.login-box-body -->
  67. </div>
  68. <!-- /.login-box -->
  69.  
  70. <!-- jQuery 2.2.3 -->
  71. <script src="<?php echo base_url()."assets/plugins/jQuery/jquery-2.2.3.min.js"?>"></script>
  72. <!-- Bootstrap 3.3.6 -->
  73. <script src="<?php echo base_url()."assets/bootstrap/js/bootstrap.min.js"?>"></script>
  74. <!-- iCheck -->
  75. <script src="<?php echo base_url()."assets/plugins/iCheck/icheck.min.js"?>"></script>
  76. <script>
  77. $(function () {
  78. $('input').iCheck({
  79. checkboxClass: 'icheckbox_square-blue',
  80. radioClass: 'iradio_square-blue',
  81. increaseArea: '20%' // optional
  82. });
  83. });
  84. </script>
  85. </body>
  86. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement