Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Input Nilai Siswa</title>
- <link rel="stylesheet" href="style.css">
- <link rel="icon" href="1.png">
- </head>
- <body>
- <div style="background-color: brown; ">
- <h1 style="text-align: center;">Belajar Bikin Aplikasi</h1>
- <div id="header">
- <a href="index.html"><button>UTAMA</button></a>
- <a href="heading.html"><button>HEADER</button></a>
- <a href="list.html"><button>LIST</button></a>
- <a href="latihan_list.html"><button>LATIHAN LIST</button></a>
- <a href="table.html"><button>TABLE</button></a>
- <a href="form.html"><button>FORM</button></a>
- <a href="inlinecss.html"><button>Inline Css</button></a>
- <a href="internalcss.html"><button>Internal Css</button></a>
- <a href="login.html"><button>LOGIN</button></a>
- <a href="externalcss.html"><button>External CSS</button></a>
- <a href="bootstrap/"><button>Bootstrap</button></a>
- </div></div>
- <div id="isi"><center>
- <table border="1">
- <tr>
- <th rowspan="2">NO</th>
- <th rowspan="2">NAMA</th>
- <th rowspan="2">KELAS</th>
- <th rowspan="2">JENIS KELAMIN</th>
- <th rowspan="2">JURUSAN</th>
- <th colspan="3">NILAI</th>
- <th rowspan="2">KETERANGAN</th>
- </tr>
- <tr>
- <th>Angka</th>
- <th>Predikat</th>
- <th>Point</th>
- </tr>
- <tr>
- <td>1</td>
- <td><?php echo $_POST['nama'] ?></td>
- <td><?php echo $_POST['kelas'] ?></td>
- <td><?php echo $_POST['jeniskelamin'] ?></td>
- <td><?php echo $_POST['jurusan'] ?></td>
- <td><?php echo $_POST['nilai'] ?></td>
- <td><?php
- if ($_POST['nilai']>= 85 and $_POST['nilai']<=100) {
- echo "<b style='color: green;>A</b>" ;
- }
- elseif ($_POST['nilai']>=80 AND $_POST['nilai']<85) {
- echo "<b style='color: green;>A-</b>" ;
- }
- elseif ($_POST['nilai']>=75 AND $_POST['nilai']<80) {
- echo "<b style='color: green;>B+</b>" ;
- }
- elseif ($_POST['nilai']>=70 AND $_POST['nilai']<75) {
- echo "<b style='color: green;>B</b>" ;
- }
- elseif ($_POST['nilai']>=65 AND $_POST['nilai']<70) {
- echo "<b style='color: green;>B-</b>" ;
- }
- elseif ($_POST['nilai']>=60 AND $_POST['nilai']<65) {
- echo "<b style='color: green;>C+</b>" ;
- }
- elseif ($_POST['nilai']>=55 AND $_POST['nilai']<60) {
- echo "<b style='color: red;>C</b>" ;
- }
- elseif ($_POST['nilai']>=50 AND $_POST['nilai']<55) {
- echo "<b style='color: red;>C-</b>" ;
- }
- elseif ($_POST['nilai']>=40 AND $_POST['nilai']<50) {
- echo "<b style='color: red;>D</b>" ;
- }
- elseif ($_POST['nilai']>=0 AND $_POST['nilai']<40) {
- echo "<b style='color: red;>E</b>" ;
- }
- else {
- echo "Nilai tidak di Kenal";
- }
- ?>
- </td>
- <td><?php
- if ($_POST['nilai']>= 85 and $_POST['nilai']<=100) {
- echo "<b style='color: green;>4.0</b>" ;
- }
- elseif ($_POST['nilai']>=80 AND $_POST['nilai']<85) {
- echo "<b style='color: green;>3.7</b>" ;
- }
- elseif ($_POST['nilai']>=75 AND $_POST['nilai']<80) {
- echo "<b style='color: green;>3.3</b>" ;
- }
- elseif ($_POST['nilai']>=70 AND $_POST['nilai']<75) {
- echo "<b style='color: green;>3.0</b>" ;
- }
- elseif ($_POST['nilai']>=65 AND $_POST['nilai']<70) {
- echo "<b style='color: green;>2.7</b>" ;
- }
- elseif ($_POST['nilai']>=60 AND $_POST['nilai']<65) {
- echo "<b style='color: green;>2.3</b>" ;
- }
- elseif ($_POST['nilai']>=55 AND $_POST['nilai']<60) {
- echo "<b style='color: red;>2.0</b>" ;
- }
- elseif ($_POST['nilai']>=50 AND $_POST['nilai']<55) {
- echo "<b style='color: red;>1.7</b>" ;
- }
- elseif ($_POST['nilai']>=40 AND $_POST['nilai']<50) {
- echo "<b style='color: red;>1.3</b>" ;
- }
- elseif ($_POST['nilai']>=0 AND $_POST['nilai']<40) {
- echo "<b style='color: red;>1.0</b>" ;
- }
- else {
- echo "######";
- }
- ?>
- </td>
- <td><?php
- if ($_POST['nilai']>= 85 and $_POST['nilai']<=100) {
- echo "<b style='color: green;>Lulus</b>" ;
- }
- elseif ($_POST['nilai']>=80 AND $_POST['nilai']<85) {
- echo "<b style='color: green;>Lulus</b>" ;
- }
- elseif ($_POST['nilai']>=75 AND $_POST['nilai']<80) {
- echo "<b style='color: green;>Lulus</b>" ;
- }
- elseif ($_POST['nilai']>=70 AND $_POST['nilai']<75) {
- echo "<b style='color: green;>Lulus</b>" ;
- }
- elseif ($_POST['nilai']>=65 AND $_POST['nilai']<70) {
- echo "<b style='color: green;>Lulus</b>" ;
- }
- elseif ($_POST['nilai']>=60 AND $_POST['nilai']<65) {
- echo "<b style='color: green;>Lulus</b>" ;
- }
- elseif ($_POST['nilai']>=55 AND $_POST['nilai']<60) {
- echo "<b style='color: red;>Tidak Lulus</b>" ;
- }
- elseif ($_POST['nilai']>=50 AND $_POST['nilai']<55) {
- echo "<b style='color: red;>Tidak Lulus</b>" ;
- }
- elseif ($_POST['nilai']>=40 AND $_POST['nilai']<50) {
- echo "<b style='color: red;>Tidak Lulus</b>" ;
- }
- elseif ($_POST['nilai']>=0 AND $_POST['nilai']<40) {
- echo "<b style='color: red;>Tidak Lulus</b>" ;
- }
- else {
- echo "######";
- }
- ?></td>
- </tr>
- </table></center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement