Advertisement
Guest User

Yevin Kan

a guest
Jul 13th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.90 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <?php
  4. if (isset($_POST['Submit'])) {
  5. # SHOULD START OUT FALSE. SET AS TRUE TO TEST
  6. $goodAccountID = True;
  7. $goodUsername = True;
  8. $goodPassword = True;
  9. /*
  10. if(isset($_POST['form-accountID']) and isset($_POST['form-username']) and isset($_POST['form-password'])) {
  11. if() {
  12. echo "<script>window.location = '/homepage.php'</script>";
  13. }
  14. else {
  15. $alert .= '<div class="alert alert-danger alert-dismissible" role="alert">
  16. <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  17. <strong>Error!</strong> Invalid credentials.</div>';
  18. }
  19. }
  20. */
  21. }
  22. ?>
  23.  
  24. <html lang="en">
  25.  
  26. <head>
  27.  
  28. <meta charset="utf-8">
  29. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  30. <meta name="viewport" content="width=device-width, initial-scale=1">
  31. <title>Planbook Login</title>
  32.  
  33. <!-- CSS -->
  34. <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:400,100,300,500">
  35. <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
  36. <link rel="stylesheet" href="assets/font-awesome/css/font-awesome.min.css">
  37. <link rel="stylesheet" href="assets/css/form-elements.css">
  38. <link rel="stylesheet" href="assets/css/style.css">
  39.  
  40. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  41. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  42. <!--[if lt IE 9]>
  43. <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  44. <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  45. <![endif]-->
  46.  
  47. <!-- Favicon and touch icons -->
  48. <link rel="shortcut icon" href="assets/ico/favicon.png">
  49. <link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/apple-touch-icon-144-precomposed.png">
  50. <link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
  51. <link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
  52. <link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
  53.  
  54. </head>
  55.  
  56. <body>
  57. <nav id="mainNav" class="navbar navbar-default navbar-fixed-top navbar-custom">
  58. <div class="container">
  59. <!-- Brand and toggle get grouped for better mobile display -->
  60. <div class="navbar-header page-scroll">
  61. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  62. <span class="sr-only">Toggle navigation</span> Menu <i class="fa fa-bars"></i>
  63. </button>
  64. <a class="navbar-brand" href="index.html">Planbook</a>
  65. </div>
  66.  
  67. <!-- Collect the nav links, forms, and other content for toggling -->
  68. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  69. <ul class="nav navbar-nav navbar-right">
  70. <li>
  71. <a href ="signin.php">Sign In/Sign up</a>
  72. </li>
  73. <li class="page-scroll">
  74. <a href="index.html#portfolio">Activities</a>
  75. </li>
  76. <li class="page-scroll">
  77. <a href="index.html#about">About</a>
  78. </li>
  79. <li class="page-scroll">
  80. <a href="index.html#contact">Contact</a>
  81. </li>
  82. </ul>
  83. </div>
  84. <!-- /.navbar-collapse -->
  85. </div>
  86. <!-- /.container-fluid -->
  87. </nav>
  88. <!-- Top content -->
  89. <div class="top-content">
  90.  
  91. <div class="inner-bg">
  92. <div class="container">
  93. <div class="row">
  94. <div class="col-sm-8 col-sm-offset-2 text">
  95. <h1>
  96. <font color="White" style="font-size: 1.5em;"><strong>Planbook</strong> Login Page</font>
  97. </h1>
  98. <div class="description">
  99. <p>
  100. <font color="White" style="font-size:1.5em;" >"To achieve <strong>big</strong> things, start small!"</font>
  101. </p>
  102. </div>
  103.  
  104. <? if (isset($alert)) //if the alert for creating list is set, then echo the alert
  105. {
  106. echo '<div>';
  107. echo $alert;
  108. echo '</div>';
  109. }
  110. ?>
  111. </div>
  112.  
  113. <div class="col-sm-6 col-sm-offset-3 form-box">
  114. <div class="form-top">
  115. <div class="form-top-left">
  116. <h3>Login to our site</h3>
  117. <p>Enter your credentials to log on:</p>
  118. </div>
  119. <div class="form-top-right">
  120. <i class="fa fa-key"></i>
  121. </div>
  122. </div>
  123. <div class="form-bottom">
  124. <form role="form" action="signin.php" method="post" class="login-form">
  125. <div class="form-group">
  126. <label class="sr-only" for="form-username">Username</label>
  127. <input type="text" name="form-username" placeholder="Username..."
  128. class="form-username form-control" id="form-username">
  129. </div>
  130. <div class="form-group">
  131. <label class="sr-only" for="form-password">Password</label>
  132. <input type="password" name="form-password" placeholder="Password..."
  133. class="form-password form-control" id="form-password">
  134. </div>
  135. <div class="form-group">
  136. <input type="checkbox" name="remember" value="yes">&nbsp;&nbsp;Remember me<br>
  137. </div>
  138. <button class = "btn" type = "submit" name="Submit">Login</button>
  139. </form>
  140. <div>
  141.  
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. <div class = "row">
  147. Don't have an account yet? <a href="signup.php">Click Here</a>
  148. </div>
  149. </div>
  150. </div>
  151.  
  152. </div>
  153.  
  154.  
  155. <!-- Javascript -->
  156. <script src="assets/js/jquery-1.11.1.min.js"></script>
  157. <script src="assets/bootstrap/js/bootstrap.min.js"></script>
  158. <script src="assets/js/jquery.backstretch.min.js"></script>
  159. <script src="assets/js/scripts.js"></script>
  160.  
  161. <!--[if lt IE 10]>
  162. <script src="assets/js/placeholder.js"></script>
  163. <![endif]-->
  164.  
  165. </body>
  166.  
  167. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement