dithph

table

Feb 14th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.03 KB | None | 0 0
  1. <form action="prosesinput.php" method="post">
  2. <table class="table table-bordered">
  3. <tbody>
  4. <tr>
  5. <td rowspan="2" style="line-height: 30px; text-align: center;">No.</td>
  6. <td rowspan="2" style="line-height: 30px; text-align: center;">Tanggal Masuk</td>
  7. <td rowspan="2" style="line-height: 30px; text-align: center;">Nama Pemohon</td>
  8. <td rowspan="2" style="line-height: 30px; text-align: center;">Nama Instansi</td>
  9. <td rowspan="2" style="line-height: 30px; text-align: center;">Data yang diminta</td>
  10. <td height="34" colspan="2" style="text-align: center;">Jumlah Data yang diminta</td>
  11. <td rowspan="2" style="line-height: 30px; text-align: center;">Periode(tahun)</td>
  12. <td rowspan="2" style="line-height: 30px; text-align: center;">Disposisi</td>
  13. <td rowspan="2" style="line-height: 30px; text-align: center;">Jenis Tarif</td>
  14. <td rowspan="2" style="line-height: 30px; text-align: center;">Harga</td>
  15. </tr>
  16. <tr>
  17. <td height="23" style="text-align: center;">Jumlah Unit</td>
  18. <td style="text-align: center;">Jumlah Waktu</td>
  19. </tr>
  20. <?php
  21. $no = 0;
  22. while ($tampil = $sql->fetch_array()) {
  23. $no++;
  24. ?>
  25. <tr>
  26. <td height="27" style="display: table-cell;"><?php echo $no; ?></td>
  27.  
  28. <td style="display: table-cell;"><input style="border: none; width: 100%; text-align: center;" type="text" name="tgl_input[<?php echo $tampil['id_transaksi']; ?>]" value="<?php echo $tampil['tgl_input'] ?>"></td>
  29.  
  30. <td style="display: table-cell;"><input style="border: none; width: 100%; text-align: center;" type="text" name="nama_pemohon[<?php echo $tampil['id_transaksi']; ?>]" value="<?php echo $tampil['nama_pemohon']; ?>"></td>
  31.  
  32. <td style="display: table-cell;"><input style="border: none; width: 100%; text-align: center;" type="text" name="nama_instansi[<?php echo $tampil['id_transaksi']; ?>]" value="<?php echo $tampil['nama_instansi']; ?>"></td>
  33.  
  34. <td style="display: table-cell;"><input style="border: none;text-align: center;" type="text" name="jenis_data[<?php echo $tampil['id_transaksi']; ?>]" value="<?php echo $tampil['jenis_data']; ?>"></td>
  35.  
  36. <td style="display: table-cell;"><input style="border: none; width: 100%; text-align: center;" type="text" name="jumlah_unit[<?php echo $tampil['id_transaksi']; ?>]" value="<?php echo $tampil['jumlah_unit']; ?>"></td>
  37.  
  38. <td style="display: table-cell;"><input style="border: none; width: 100%; text-align: center;" type="text" name="jumlah_waktu[<?php echo $tampil['id_transaksi']; ?>]" value="<?php echo $tampil['jumlah_waktu']; ?>"></td>
  39.  
  40. <td style="display: table-cell;"><input style="border: none; width: 100%; text-align: center;" type="text" name="periode[<?php echo $tampil['id_transaksi']; ?>]" value="<?php echo $tampil['periode']; ?>"></td>
  41. <td style="display: table-cell;">
  42. <select name="nama_disposisi[<?php echo $tampil['id_transaksi']; ?>]" required style="text-align: center;">
  43. <option value="" disabled selected>Pilih...</option>
  44. <option value="Antiq">Antiq</option>
  45. <option value="Herru">Herru</option>
  46. <option value="Aji">Aji</option>
  47. <option value="Irda">Irda</option>
  48. <option value="Adi">Adi</option>
  49. <option value="Join">Join</option>
  50. </select>
  51. </td>
  52. <td style="display: table-cell;"><input style="border: none; width: 100px; text-align: center;" type="text" name="jenis_tarif[<?php echo $tampil['id_transaksi']; ?>]" value="<?php echo $tampil['jenis_tarif']; ?>"></td>
  53. <td style="display: table-cell;"><input style="border: none; width: 100%; text-align: center;" type="text" name="harga_total[<?php echo $tampil['id_transaksi']; ?>]" value="<?php echo $tampil['harga_total']; ?>"></td>
  54. </tr>
  55. <?php
  56. }
  57. ?>
  58. </tbody>
  59. </table>
  60.  
  61.  
  62. </div>
  63. <input type="submit" name="" value="SUBMIT" class="btn btn-primary" style="margin-left: 650px;" />
  64. </form>
Advertisement
Add Comment
Please, Sign In to add comment