Advertisement
SuperBag

tampiljurnal.php

Dec 2nd, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.17 KB | None | 0 0
  1.  <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Untitled Document</title>
  6. <script src="../jquery.min.js" type="text/javascript"></script>
  7. </head>
  8.  
  9. <body>
  10. <form action="simpanjurnal.php" id="form1" name="form1" method="post" >
  11. <h1 align="center">Buat Jurnal</h1>
  12. <table width="950" border="0" align="center">
  13.   <tbody>
  14.     <tr>
  15.       <td width="170">&nbsp;</td>
  16.       <td width="200">&nbsp;</td>
  17.       <td width="200">&nbsp;</td>
  18.       <td width="200">&nbsp;</td>
  19.       <td width="108">No. Jurnal</td>
  20.       <td width="200"><label for="nojurnal">:</label>
  21.         <input type="text" name="nojurnal" id="nojurnal"></td>
  22.     </tr>
  23.     <tr>
  24.       <td>&nbsp;</td>
  25.       <td>&nbsp;</td>
  26.       <td>&nbsp;</td>
  27.       <td>&nbsp;</td>
  28.       <td>Jenis Jurnal</td>
  29.       <td><label for="jenisjurnal">:</label>
  30.         <select name="jenisjurnal" id="jenisjurnal">
  31.           <option value="-">-</option>
  32.           <option value="JU">Jurnal Umum</option>
  33.           <option value="JPM">Jurnal Penerimaan Kas</option>
  34.           <option value="JPK">Jurnal Pengeluaran Kas</option>
  35.         </select></td>
  36.     </tr>
  37.     <tr>
  38.       <td>&nbsp;</td>
  39.       <td>&nbsp;</td>
  40.       <td>&nbsp;</td>
  41.       <td>&nbsp;</td>
  42.       <td>No. Invoice</td>
  43.       <td><label for="noinvoice">:</label>
  44.         <input type="text" name="noinvoice" id="noinvoice"></td>
  45.     </tr>
  46.     <tr>
  47.       <td>&nbsp;</td>
  48.       <td>&nbsp;</td>
  49.       <td>&nbsp;</td>
  50.       <td>&nbsp;</td>
  51.       <td>Tanggal</td>
  52.       <td><label for="tanggaljurnal">:</label>
  53.         <input type="text" name="tanggaljurnal" id="tanggaljurnal"></td>
  54.     </tr>
  55.     <tr>
  56.       <td colspan="6">&nbsp;</td>
  57.       </tr>    <tr>
  58.       <td>Keterangan</td>
  59.       <td><label for="keterangan">:</label>
  60.         <input type="text" name="keterangan" id="keterangan"></td>
  61.       <td>&nbsp;</td>
  62.       <td>&nbsp;</td>
  63.       <td>&nbsp;</td>
  64.       <td>&nbsp;</td>
  65.     </tr>
  66.   </tbody>
  67. </table>
  68. <br>
  69. <table width="950" border="0" align="center">
  70.   <tbody>
  71.     <tr align="center">
  72.       <td>No. Akun :</td>
  73.       <td>Debit :</td>
  74.       <td>Kredit :</td>
  75.       </tr>
  76.     <tr align="center">
  77.       <td><select name="akun[]" id="akun[]">
  78.         <option value="-">-</option>
  79.         <?php
  80.             include '../koneksi.php';
  81.             $ambil=mysqli_query($koneksi,'select*from dataakun');
  82.             while($a=mysqli_fetch_array($ambil)){
  83.         ?>
  84.         <option value='<?php echo $a['noakun'];?>'><?php echo $a['namaakun'];?></option>
  85.         <?php } ?>
  86.         </select>
  87.         </td>
  88.       <td><input type="number" name="saldodebit[]" id="saldodebit[]"></td>
  89.       <td><input type="number" name="saldokredit[]" id="saldokredit[]"></td>
  90.     </tr>
  91.   </tbody>
  92. </table>
  93. <br>
  94. <div id="insert-form"></div>
  95. <table width="950" border="0" align="center">
  96.   <tbody>
  97.     <tr>
  98.       <td align="center"><input type="submit" name="submit" id="submit" value="Submit">&nbsp;
  99.         <input type="button" name="btn-tambah-form" id="btn-tambah-form" value="Tambah">&nbsp;
  100.         <input type="button" name="btn-reset-form" id="btn-reset-form" value="Reset"></td>
  101.       </tr>
  102.   </tbody>
  103. </table>
  104. </form>
  105. <input type="hidden" id="jumlah-form" value="1">
  106. <script src="tambah_formjurnal.js"></script>
  107. <form>
  108. <p>&nbsp;</p>
  109. <table width="950" border="1" align="center">
  110.   <tbody>
  111.     <tr align="center">
  112.       <td width="33">No.</td>
  113.       <td width="170">No. Jurnal</td>
  114.       <td width="170">Tanggal</td>
  115.       <td>No. Invoice</td>
  116.       <td width="261">Keterangan</td>
  117.       <td width="105">&nbsp;</td>
  118.     </tr>
  119.     <?php
  120.         include "../koneksi.php";
  121.         $no=1;
  122.         $data=mysqli_query($koneksi,"select*from datajurnal");
  123.         while($d=mysqli_fetch_array($data)){
  124.     ?>
  125.     <tr>
  126.       <td><?php echo $no++;?></td>
  127.       <td>&nbsp;</td>
  128.       <td><?php echo $d['tanggal'];?></td>
  129.       <td width="171"><?php echo $d['noinvoice'];?></td>
  130.       <td><?php echo $d['namaakundebit'];?></td>
  131.       <td>&nbsp;&nbsp;&nbsp;<a href="ubahjurnal.php?kode=<?php echo $d['kodejurnal'];?>">Ubah</a>&nbsp;&nbsp;<a href="hapusjurnal.php?kode=<?php echo $d['kodejurnal'];?>">Hapus</a></td>
  132.     </tr>
  133.     <?php } ?>
  134.   </tbody>
  135. </table>
  136.  
  137. <p>&nbsp;</p>
  138. </form>
  139. </body>
  140. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement