SHARE
TWEET

29.5

CHaNStar Oct 23rd, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.  <title>CHANDRA XI-RPL2</title>
  5. </head>
  6. <body>
  7. <?php
  8.  $action = 'tambah.php';
  9.  $kasus = '';
  10.  if (!empty($siswa)) {
  11.   $action = 'edit.php';
  12.   $kasus = 'readonly';
  13.  }
  14.  ?>
  15.  <form action="<?= $action ?>
  16. " method="post">
  17.  <table align="center">
  18. <tr>
  19.    <td align="center" colspan="2"><h1>
  20. Data</h1>
  21. </td>
  22.   </tr>
  23. <tr>
  24.    <td>NIS</td>
  25.    <td><input type="number" name="nis" value="<?= @$siswa['nis'] ?>" <?= $kasus ?>></td>
  26.   </tr>
  27. <tr>
  28.    <td>Nama Lengkap</td>
  29.    <td><input type="text" name="nama_lengkap" value="<?= @$siswa['nama_lengkap'] ?>"></td>
  30.   </tr>
  31. <tr>
  32.    <td>Jenis Kelamin</td>
  33.    <td>
  34.     <input type="radio" name="jenis_kelamin" value="L" <?= @$siswa['jenis_kelamin'] == 'L' ? 'checked' : '' ?>>Laki-Laki
  35.     <input type="radio" name="jenis_kelamin" value="P" <?= @$siswa['jenis_kelamin'] == 'P' ? 'checked' : '' ?>>Perempuan
  36.    </td>
  37.   </tr>
  38. <tr>
  39.    <td>Kelas</td>
  40.    <td><select name="kelas">
  41.     <option value="XI-RPL1" <?= @$siswa['kelas'] == 'XI-RPL1' ? 'selected' : '' ?>>XI-RPL1</option>
  42.     <option value="XI-RPL2" <?= @$siswa['kelas'] == 'XI-RPL2' ? 'selected' : '' ?>>XI-RPL2</option>
  43.     <option value="XI-RPL3" <?= @$siswa['kelas'] == 'XI-RPL3' ? 'selected' : '' ?>>XI-RPL3</option>
  44.     </select>
  45.    </td>
  46.   </tr>
  47. <tr>
  48.    <td>Jurusan</td>
  49.    <td><input type="text" name="jurusan" value="<?= @$siswa['jurusan'] ?>"></td>
  50.   </tr>
  51. <tr>
  52.    <td>Alamat</td>
  53.    <td><input type="text" name="alamat" value="<?= @$siswa['alamat'] ?>"></td>
  54.   </tr>
  55. <tr>
  56.    <td>Golongan Darah</td>
  57.    <td><select name="goldar">
  58.     <option value="O" <?= @$siswa['golongan_darah'] == 'O' ? 'selected' : '' ?>>O</option>
  59.     <option value="A" <?= @$siswa['golongan_darah'] == 'A' ? 'selected' : '' ?>>A</option>
  60.     <option value="B" <?= @$siswa['golongan_darah'] == 'B' ? 'selected' : '' ?>>B</option>
  61.     <option value="AB" <?= @$siswa['golongan_darah'] == 'AB' ? 'selected' : '' ?>>AB</option>
  62.    </select>
  63.    </td>
  64.   </tr>
  65. <tr>
  66.    <td>Nama Ibu Kandung</td>
  67.    <td><input type="text" name="namaibu" value="<?= @$siswa['nama_ibu'] ?>"></td>
  68.   </tr>
  69. <tr>
  70.    <td></td>
  71.    <td><input class="a" type="submit" name="submit" value="Simpan"></td>
  72.   </tr>
  73. </table>
  74. </form>
  75. </body>
  76. </html>
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