HamdanNur

index

Jan 4th, 2018
2,157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. <?php
  2. session_start()
  3. ?>
  4. <!DOCTYPE html>
  5. <html lang="en">
  6. <head>
  7. <title>PMB Online System</title>
  8. <link rel="shortcut icon" href="css/icon.jpg">
  9. <meta charset="utf-8">
  10. <meta name="viewport" content="width=device-width, initial-scale=1">
  11. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  12. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  13. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  14. <style>
  15. /* Set height of the grid so .sidenav can be 100% (adjust if needed) */
  16. .row.content {height: 850px}
  17.  
  18. /* Set gray background color and 100% height */
  19. .sidenav {
  20. background-color: #f1f1f1;
  21. height: 1150px;
  22. }
  23.  
  24. /* Set black background color, white text and some padding */
  25. footer {
  26. background-color: #555;
  27. color: white;
  28. padding: 15px;
  29. }
  30.  
  31. /* On small screens, set height to 'auto' for sidenav and grid */
  32. @media screen and (max-width: 767px) {
  33. .sidenav {
  34. height: auto;
  35. padding: 15px;
  36. }
  37. .row.content {height: auto;}
  38. }
  39. </style>
  40. </head>
  41. <body>
  42.  
  43. <div class="container-fluid">
  44. <div class="row content">
  45. <div class="col-sm-3 sidenav">
  46. <h4>PMB Online System</h4>
  47. <ul class="nav nav-pills nav-stacked">
  48. <li class="active"><a href="index.php">Home</a></li>
  49.  
  50.  
  51.  
  52. <?php
  53. if(!isset($_SESSION['email']))
  54. {
  55. echo '<li><a href="index.php?hal=daftar">Registrasi PMB</a></li> <li><a href="index.php?hal=lihat_data">Lihat Data</a></li>';
  56. }
  57. else
  58. {
  59. echo '<li><a href="index.php?hal=lihat_data">Lihat Data</a></li> <li><a href="index.php?hal=ubahdata">Perubahan Data</a></li> <li class="active"><a href="index.php?hal=logout" class="glyphicon glyphicon-log-out">&nbsp;Keluar</a></li> ';
  60. }
  61. ?>
  62.  
  63.  
  64.  
  65. </ul><br>
  66. </div>
  67.  
  68. <div class="col-sm-9">
  69. <br/>
  70. <?php
  71. error_reporting(E_ALL ^ (E_NOTICE | E_WARNING));
  72. switch($_GET['hal']){
  73. default;
  74. include "beranda.php";
  75. break;
  76.  
  77. break;
  78. case "daftar";
  79. include "daftar.php";
  80.  
  81.  
  82. break;
  83. case "simpan";
  84. include "simpan.php";
  85.  
  86. break;
  87. case "berhasil";
  88. include "berhasil.php";
  89.  
  90. break;
  91. case "login";
  92. include "login.php";
  93.  
  94. break;
  95. case "logout";
  96. include "logout.php";
  97.  
  98. break;
  99. case "otentikasi";
  100. include "otentikasi.php";
  101.  
  102. break;
  103. case "ubahdata";
  104. include "ubahdata.php";
  105.  
  106. break;
  107. case "kode_ubah";
  108. include "kode_ubah.php";
  109.  
  110. break;
  111. case "lihat_data";
  112. include "lihat_data.php";
  113.  
  114.  
  115. }
  116. ?>
  117.  
  118.  
  119. </div>
  120. </div>
  121. </div>
  122.  
  123. <footer class="container-fluid">
  124. <p><b>PMB Online System</b> | <i>Sistem Basis Data 2017</i> </p>
  125. </footer>
  126.  
  127. </body>
  128. </html>
Advertisement
Add Comment
Please, Sign In to add comment