Advertisement
Guest User

Notifikasi index.php

a guest
May 27th, 2018
11,295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.41 KB | None | 0 0
  1. <?php
  2. session_start();
  3. ?>
  4.            
  5. <html>
  6. <title>Rully Studio | Notifikasi Data Tersimpan</title>
  7. <head>
  8. <link rel="stylesheet" href="style/bootstrap.min.css" />
  9. </head>
  10. <body>
  11.  
  12. <div class="container" style="margin-top:8%">
  13.     <div class="row">
  14.         <div class="col-md-8 col-md-offset-2">
  15.             <p>
  16.                 <center>
  17.                     <h2>Membuat Notifikasi Data Tersimpan</h2>
  18.                     Oleh : <a href="https://www.facebook.com.pendeta.mokong" target="_blank">Rully Studio</a>
  19.                 </center>
  20.             </p>
  21.             <div style="height:55px;">
  22.                  <?php
  23.                     if (isset($_SESSION['pesan']) && $_SESSION['pesan'] <> '') {
  24.                     echo '<div id="pesan" class="alert alert-success" style="display:none;">'.$_SESSION['pesan'].'</div>';
  25.                     }
  26.                     $_SESSION['pesan'] = '';
  27.                 ?>
  28.             </div>
  29.             <p>
  30.                 <a class="btn btn-primary" href="tambah.php">Tambah</a>
  31.             </p>
  32.             <table class="table table-bordered">
  33.                 <tr>
  34.                     <th>
  35.                         No
  36.                     </th>
  37.                     <th>
  38.                         Nama
  39.                     </th>
  40.                     <th>
  41.                         Jenis Kelamin
  42.                     </th>
  43.                     <th>
  44.                         Telepon
  45.                     </th>
  46.                     <th>
  47.                         Alamat
  48.                     </th>
  49.                     <th>
  50.                         Opsi
  51.                     </th>
  52.                 </tr>
  53.                     <?php
  54.                         include"koneksi.php";
  55.                         $no = 1;
  56.                         $data = mysqli_query ($koneksi, " select
  57.                                                                 id_mahasiswa,
  58.                                                                 nama,
  59.                                                                 jenis_kelamin,
  60.                                                                 telepon,
  61.                                                                 alamat
  62.                                                           from
  63.                                                           mahasiswa
  64.                                                           order by id_mahasiswa DESC");
  65.                         while ($row = mysqli_fetch_array ($data))
  66.                         {
  67.                     ?>
  68.                 <tr>
  69.                     <td>
  70.                         <?php echo $no++; ?>
  71.                     </td>
  72.                     <td>
  73.                         <?php echo $row['nama']; ?>
  74.                     </td>
  75.                     <td>
  76.                         <?php echo $row['jenis_kelamin']; ?>
  77.                     </td>
  78.                     <td>
  79.                         <?php echo $row['telepon']; ?>
  80.                     </td>
  81.                     <td>
  82.                         <?php echo $row['alamat']; ?>
  83.                     </td>
  84.                     <td>
  85.                         <a href="hapus.php?id=<?php echo $row['id_mahasiswa']; ?>">Hapus</a>
  86.                     </td>
  87.                 </tr>
  88.                 <?php
  89.                     }
  90.                 ?>
  91.             </table>
  92.         </div>
  93.     </div>
  94.     <p>
  95.     <center>Copyright @ 2018 by : <a href="https://www.facebook.com.pendeta.mokong" target="_blank">Rully Studio</a> All rights reserved.</center>
  96.     </p>
  97. </div>
  98.         <script src="style/jquery.min.js"></script>
  99.         <script>
  100.             $(document).ready(function(){setTimeout(function(){$("#pesan").fadeIn('slow');}, 500);});
  101.             setTimeout(function(){$("#pesan").fadeOut('slow');}, 3000);
  102.         </script>
  103. </body>
  104. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement