SHARE
TWEET

Untitled

Rofihimam Sep 25th, 2019 87 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.     $nama = $_POST['nama'];
  24.     $nilaiIndo = $_POST['nilaiIndo'];
  25.     $nilaiMtk = $_POST['nilaiMtk'];
  26.     $nilaiInggris = $_POST['nilaiInggris'];
  27.     $nilaiKejuruan = $_POST['nilaiKejuruan'];
  28.     $nilaiAkhir = ($nilaiIndo + $nilaiMtk + $nilaiInggris + $nilaiKejuruan) / 4;
  29. ?>
  30.  
  31. <table>
  32.     <tr>
  33.         <th colspan="2">Nilai Akhir</th>
  34.     </tr>
  35.     <tr>
  36.         <td class="batas" colspan="2"></td>
  37.     </tr>
  38.     <tr>
  39.         <td width="250px">Nama</td>
  40.         <td>
  41.             <?php
  42.                 echo $nama;
  43.             ?>
  44.         </td>
  45.     </tr>
  46.     <tr>
  47.         <td>Nilai B. Indonesia</td>
  48.         <td>
  49.             <?php
  50.                 echo $nilaiIndo;
  51.             ?>
  52.         </td>
  53.     </tr>
  54.     <tr>
  55.         <td>Nilai Matematika</td>
  56.         <td>
  57.             <?php
  58.                 echo $nilaiMtk;
  59.             ?>
  60.         </td>
  61.     </tr>
  62.     <tr>
  63.         <td>Nilai B. Inggris</td>
  64.         <td>
  65.             <?php
  66.                 echo $nilaiInggris;
  67.             ?>
  68.         </td>
  69.     </tr>
  70.     <tr>
  71.         <td>Nilai Teori Kejuruan</td>
  72.         <td>
  73.             <?php
  74.                 echo $nilaiKejuruan;
  75.             ?>
  76.         </td>
  77.     </tr>
  78.     <tr>
  79.         <td>Nilai Akhir</td>
  80.         <td>
  81.             <?php
  82.                 echo $nilaiAkhir;
  83.             ?>
  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