lamhottt

Login.php

Aug 11th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.17 KB | None | 0 0
  1. <?php
  2. defined('sys_run_app') OR exit('403 You dont have permission to access / on this server...');
  3. ?>
  4. <!DOCTYPE html>
  5. <html>
  6. <head>
  7.     <title>Silahkan Login</title>
  8. </head>
  9.     <?= _importGF(); ?>
  10.     <?= _importJQuery(); ?>
  11.     <?= _importBootstrap(); ?>
  12. <body>
  13.    
  14.     <div class="container">
  15.         <div class="jumbotron">
  16.              <h1>Silahkan Login</h1>
  17.         </div>
  18.         <hr>
  19.         <form action="./login-user" method="post">
  20.              <?php
  21.  
  22.              if ($login=='true')
  23.              {
  24.                 echo '<div class="alert alert-success">
  25.                         <strong>Success!</strong> Login Berhasil !
  26.                       </div>';
  27.              }
  28.              else if ($login=='false')
  29.              {
  30.                 echo '<div class="alert alert-danger">
  31.                         <strong>Failed !</strong> Login Gagal ! Username atau Password Salah !
  32.                       </div>';
  33.              }
  34.  
  35.              ?>
  36.    
  37.             <input type="text" class="form-control" id="txt_username" name="txt_username">
  38.             </br>
  39.             <input type="password" class="form-control" id="txt_password" name="txt_password">
  40.             </br>
  41.             <button type="submit" name="btn_submit" class="btn btn-primary">Login</button>
  42.             <button class="btn btn-default" onclick="_refresh('daftar-user');" type="button">Register</button>
  43.         </form>
  44.     </div>
  45.  
  46. </body>
  47. </html>
Add Comment
Please, Sign In to add comment