SHARE
TWEET

Untitled

Rofihimam Oct 9th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <link href="https://fonts.googleapis.com/css?family=Bree+Serif&display=swap" rel="stylesheet">
  2. <style type="text/css">
  3.     table{
  4.         border: 5px outset darkblue;
  5.         background: linear-gradient(to right, #0033cc 0%, #ff0066 100%);
  6.         width: 600px;
  7.     }
  8.     th{
  9.         font-family: 'Bree Serif', serif;
  10.         font-size: 20px;
  11.     }
  12.     td{
  13.         font-family: 'Bree Serif', serif;
  14.         font-size: 17px;
  15.     }
  16. </style>
  17.  
  18. <?php
  19.     $siswa = array(
  20.         array('nis' => '1314115690', 'nama' => 'Bruce Banner', 'kelas' => 'MIF 1', 'jurusan' => 'MIF'),
  21.         array('nis' => '1314115692', 'nama' => 'Stephen Strange', 'kelas' => 'MIF 2', 'jurusan' => 'MIF'),
  22.         array('nis' => '1314115693', 'nama' => 'Tony Stark', 'kelas' => 'MIF 3', 'jurusan' => 'MIF'),
  23.         array('nis' => '1314114799', 'nama' => 'Peter Parker', 'kelas' => 'MIF 1', 'jurusan' => 'MIF')
  24.     );
  25. ?>
  26.  
  27. <table border="1" cellspacing="3" cellpadding="3">
  28.     <tr>
  29.         <th>NIS</th>
  30.         <th>Nama</th>
  31.         <th>Kelas</th>
  32.         <th>Jurusan</th>
  33.     </tr>
  34.     <?php foreach ($siswa as $avengers) { ?>
  35.         <tr>
  36.             <td><?php echo $avengers['nis']; ?></td>
  37.             <td><?php echo $avengers['nama']; ?></td>
  38.             <td><?php echo $avengers['kelas']; ?></td>
  39.             <td><?php echo $avengers['jurusan']; ?></td>
  40.         </tr>
  41.     <?php } ?>
  42. </table>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top