SHARE
TWEET

Untitled

Rofihimam Sep 25th, 2019 67 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 blue;
  5.         background: linear-gradient(to bottom, #33ccff 0%, #ff3399 100%);
  6.     }
  7.     th{
  8.         font-family: 'Bree Serif', serif;
  9.         font-size: 30px;
  10.     }
  11.     td{
  12.         font-family: 'Bree Serif', serif;
  13.         font-size: 20px;
  14.     }
  15.     td.batas{
  16.         height: 5px;
  17.         border-radius: 50px;
  18.         background-color: blue;
  19.     }
  20. </style>
  21.  
  22. <?php
  23.     $nim = $_POST['nim'];
  24.     $nama = $_POST['nama'];
  25.     $jurusan = $_POST['jurusan'];
  26.     $nilaiHarian = $_POST['nilaiHarian'];
  27.     $nilaiTugas = $_POST['nilaiTugas'];
  28.     $nilaiUts = $_POST['nilaiUts'];
  29.     $nilaiUAS = $_POST['nilaiUAS'];
  30.  
  31.     $nilaiAkhir = ($nilaiHarian * 20/100) + ($nilaiTugas * 10/100) + ($nilaiUts * 30/100) + ($nilaiUAS * 40/100);
  32. ?>
  33.  
  34. <table border="1">
  35.     <tr>
  36.         <td width="150px">NIM</td>
  37.         <td width="150px">
  38.             <?php echo $nim; ?>
  39.         </td>
  40.     </tr>
  41.     <tr>
  42.         <td>Nama Siswa</td>
  43.         <td>
  44.             <?php echo $nama; ?>
  45.         </td>
  46.     </tr>
  47.     <tr>
  48.         <td>Jurusan</td>
  49.         <td>
  50.             <?php echo $jurusan ?>
  51.         </td>
  52.     </tr>
  53.     <tr>
  54.         <td>Nilai Harian</td>
  55.         <td>
  56.             <?php echo $nilaiHarian; ?>
  57.         </td>
  58.     </tr>
  59.     <tr>
  60.         <td>Nilai Tugas</td>
  61.         <td>
  62.             <?php echo $nilaiTugas; ?>
  63.         </td>
  64.     </tr>
  65.     <tr>
  66.         <td>Nilai UTS</td>
  67.         <td>
  68.             <?php echo $nilaiUts; ?>
  69.         </td>
  70.     </tr>
  71.     <tr>
  72.         <td>Nilai UAS</td>
  73.         <td>
  74.             <?php echo $nilaiUAS; ?>
  75.         </td>
  76.     </tr>
  77.     <tr>
  78.         <td class="batas" colspan="2"></td>
  79.     </tr>
  80.     <tr>
  81.         <td>Nilai Akhir</td>
  82.         <td>
  83.             <?php echo $nilaiAkhir; ?>
  84.         </td>
  85.     </tr>
  86. </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