aries_

viewnya

May 30th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.04 KB | None | 0 0
  1. <?php
  2. include 'config/konek.php';
  3. $q=mysql_query('select * from plan');
  4. echo "<h1><center>Training</center></h1>";
  5. echo "<table border=1>
  6.  
  7.    <tr><th>Kode Plan</th>
  8.    <th>Kode Modul</th>
  9.    <th>LC</th>
  10.    <th>Instruktur</th>
  11.    <th>Ubis</th>
  12.    <th>Angkatan</th>
  13.    <th>Tanggal Mulai</th>
  14.    <th>Tanggal akhir</th>
  15.    <th>Anggaran</th>
  16.    <th>Peserta</th>
  17.    <th>Terlaksana</th>
  18.    <th>Catatan</th></tr>";
  19.  
  20. $i=1;
  21. echo "<form method=post name=update action=include/updplan.php>";
  22. while ($r=mysql_fetch_array($q)){
  23.  
  24.    echo " <tr><td>$r[KODE_PLAN]</td><td>$r[KODE_M]</td><td>$r[KODE_LC]</td><td>$r[KODE_INST]</td><td>$r[KODE_UBIS]</td><td>$r[ANGKATAN]</td><td>$r[TGL_MULAI]</td><td>$r[TGL_AKHIR]</td><td>$r[ANGGARAN]</td><td>$r[PST]</td><td>
  25.   <select name=\"berhasil_[$i]\"><option value=berhasil>Berhasil</option><option value=gagal>Gagal</option></select></td><td><textarea name=\"cat[$i]\" cols=5 rows=5></textarea></tr>";
  26.  
  27.  
  28.    $i++;
  29. }
  30. echo "</table><br />";
  31. echo "<input type=submit name=simpan value=simpan>";
  32.  
  33. ?>
Advertisement
Add Comment
Please, Sign In to add comment