Untitled
raw download clone
PHP
views 37
,
size 3012 b
<div class="container-fluid">
        <br /<br />         
       <h1 class="h3 mb-2 text-gray-800">Tambah Tagihan</h1>
       <br><br>
          <!-- DataTales Example -->
          <div class="card shadow mb-4">
            <div class="card-header py-3">
              
            </div>
            <div class="card-body">
              <div class="table-responsive">              
                <h1 align=center>Tambah Tagihan </h1>
      <form action = 'proses_tambah_tagihan.php' method = 'POST'>
      <table align=center cellspacing=1>
                 <tr><td>Id Tagihan</td><td><input class="form-control" type=number min=0 max=999999 size=25 name=id_tagihan></td></tr>
                 <tr><td>Id SPP (Tahun, Nominal)</td><td><select class="custom-select" name="id_spp">
                 <option value="">--Pilih Id SPP--</option>
                 <?php 
                 include "koneksi.php";
 
                 $tampil = "SELECT * FROM spp";            
                 $hasil = mysqli_query($koneksi, $tampil);              
                 while ($r=mysqli_fetch_array($hasil)){            
                   echo "<option value='$r[id_spp]'>$r[id_spp] ($r[tahun], $r[nominal])</option>";
                 }
                 ?>
                 </select></td></tr>
                 <tr><td>Nama Siswa</td><td><select class="custom-select" name="nisn">
                 <option value="">--Pilih Nama Siswa--</option>
                 <?php 
                 include "koneksi.php";
 
                 $tampil = "SELECT * FROM view_siswa";            
                 $hasil = mysqli_query($koneksi, $tampil);              
                 while ($r=mysqli_fetch_array($hasil)){            
                   echo "<option value='$r[nisn]'>$r[nama] ($r[nama_kelas])</option>";
                 }
                 ?>
                 </select></td></tr>
                 <tr><td>Bulan</td><td><select class="custom-select" name="bulan">
                 <option value="">--Pilih Bulan--</option>
                 <option value="Januari">Januari</option>
                 <option value="Februari">Februari</option>
                 <option value="Maret">Maret</option>
                 <option value="April">April</option>
                 <option value="Mei">Mei</option>
                 <option value="Juni">Juni</option>
                 <option value="Juli">Juli</option>
                 <option value="Agustus">Agustus</option>
                 <option value="September">September</option>
                 <option value="Oktober">Oktober</option>
                 <option value="November">November</option>
                 <option value="Desember">Desember</option>
                 </select></td></tr>
                 <tr><td colspan=2 align=center><input class="btn btn-outline-success" type=submit value=Tambah></td></tr>
      </table>
        
              </div>
            </div>
          </div>

        </div>
close fullscreen
Login or Register to edit or fork this paste. It's free.