Advertisement
Guest User

header.php

a guest
Oct 16th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. <?php
  2. session_start();
  3. ?>
  4. <!DOCTYPE html>
  5. <html>
  6. <head>
  7. <meta charset="utf-8">
  8. <meta name="description" content="">
  9. <meta name=viewport content="width=device-width, initial-scale=1">
  10.  
  11. <title></title>
  12. <style>
  13. table .w3-button { display:none;}
  14. table tr:hover .w3-button { display:inline-block;}
  15. table, th, td {
  16. width:400px;
  17. height: 65px;
  18. table-layout:fixed;
  19. overflow:hidden;
  20. word-wrap:break-word;
  21. }
  22. </style>
  23. <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
  24. <link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-black.css">
  25. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto">
  26. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  27. </head>
  28. <body>
  29. <?php
  30. if (isset($_SESSION['userId'])) {
  31. echo '<div class="w3-top">
  32. <div class="w3-bar w3-theme w3-top w3-left-align w3-large">
  33.  
  34. <a href="mylisttoday.php" class="w3-bar-item w3-button w3-hide-small w3-hover-white">My List Today</a>
  35.  
  36. <a href="addlist.php" class="w3-bar-item w3-button w3-hide-small w3-hover-white">Add List</a>
  37.  
  38. <a href="notes.php" class="w3-bar-item w3-button w3-hide-small w3-hover-white">Notes</a>
  39.  
  40. <form action="includes/logout.inc.php" method="post">
  41.  
  42. <button class="w3-button w3-black" class="w3-button w3-black" type="submit" name="logout-submit"><b><i>Logout</i></b>
  43. </button>
  44. </form>
  45. </div>
  46. </div>';
  47. }
  48. else {
  49.  
  50. echo '<div class="w3-main">
  51. <div class="w3-row w3-padding-64">
  52. <div class="w3-twothird w3-container">
  53. <h1><b>You are logged out</b></h1>
  54. <h3>Login below, or register an account</h3><br>
  55. <form action="includes/login.inc.php" method="post">
  56. <input type="email" name="mailuid" placeholder="Email">
  57.  
  58. <input type="password" name="pwd" placeholder="Password"><br>
  59.  
  60. <button class="w3-button w3-blue" type="submit" name="login-submit">Login</button>
  61. <a href="signup.php">Register</a></form>
  62. </div>
  63. </div>
  64. </div>';
  65.  
  66. }
  67. ?>
  68.  
  69. </body>
  70. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement