Advertisement
Guest User

login.php

a guest
Oct 23rd, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <title>Login</title>
  4. <meta name="viewport" content="width=device-width, initial-scale=1">
  5. <link rel="stylesheet" href="css/w3.css">
  6. <link rel="stylesheet" href="css/font-awesome.min.css">
  7. <link rel="stylesheet" type="text/css" href="css/pace.css">
  8. <link rel="shortcut icon" href="favicon.ico" />
  9.  
  10. <style>
  11. body {
  12. background: url(images/bg4.jpg) no-repeat center center fixed;
  13. -webkit-background-size: cover;
  14. -moz-background-size: cover;
  15. -o-background-size: cover;
  16. background-size: cover;
  17. }
  18. .w3-theme {color:#fff !important;background-color:#4CAF50 !important;}
  19. .w3-btn {background-color:#4CAF50 ;margin-bottom:4px;}
  20. .w3-code{border-left:4px solid #4CAF50}
  21. @media only screen and (max-width: 601px) {.w3-top{position:static;} #main{margin-top:0px !important}}
  22. </style>
  23.  
  24. <script src="js/pace.min.js"></script>
  25. <body class='w3-grey' onload="document.login.username.focus();">
  26.  
  27. <div class="w3-top">
  28.  
  29. <div class="w3-row w3-blue-grey w3-padding">
  30. <div class="w3-half" style="margin:15px 0 2px 0;"><b class='w3-text-shadow w3-text-bold w3-opacity'>LOGIN APLIKASI PENJUALAN</b></div>
  31. <div class="w3-half w3-margin-top w3-wide w3-hide-medium w3-hide-small"><div class="w3-right"><?php
  32. date_default_timezone_set("Asia/Jakarta");
  33. echo date('d-m-Y H:i:s'); ?></div></div>
  34. </div>
  35.  
  36. <div class="w3-navbar w3-light-grey w3-small w3-card-4" style="height:10px;"></div>
  37.  
  38.  
  39. </div>
  40.  
  41. <div style="margin-top:200px;"></div>
  42.  
  43. <div class="w3-row-padding">
  44. <div class="w3-col s9">&nbsp;</div>
  45.  
  46. <div class="w3-col s3 w3-card-2 w3-light-grey">
  47. <?php
  48. include"login_check.php";
  49.  
  50. if(isset($_SESSION['login_user'])){
  51. header("location: index.php");
  52. }
  53. if(!empty($error)) :
  54. ?>
  55. <div class="w3-container w3-red">
  56. <span onclick="this.parentElement.style.display='none'" class="w3-closebtn">x</span>
  57. <p><?php echo $error; ?></p>
  58. </div>
  59. <?php endif; ?>
  60.  
  61. <div class="w3-container w3-green">
  62. <h2>Login Administrator</h2>
  63. </div>
  64.  
  65. <form id="form-login" name="login" class="w3-container" method="POST">
  66. <p>
  67. <label class="w3-label w3-text-black"><b>Username :</b></label>
  68. <input class="w3-input w3-border" type="text" name="username" placeholder="ketik username ... " required>
  69. </p>
  70.  
  71. <p>
  72. <label class="w3-label w3-text-black"><b>Password :</b></label>
  73. <input class="w3-input w3-border" type="password" name="password" placeholder="ketik password ..." required>
  74. </p>
  75.  
  76. <p><button class="w3-btn w3-blue w3-large" name="submit" value="submit">Login</button>
  77. <button class="w3-btn w3-amber w3-large" type="reset">Reset</button></p>
  78.  
  79. </form>
  80.  
  81. </div>
  82. </div>
  83.  
  84. <div class="w3-bottom">
  85. <div class="w3-navbar w3-light-grey w3-small w3-card-4" style="height:10px;"></div>
  86. </div>
  87.  
  88.  
  89. </body>
  90. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement