Пример #1
0
            <th>Jenjang</th>
            <th>Kode</th>
			<th>Nama</th>
           <th>Harga</th>
            <th width="30%">Aksi</th>
        </tr>
    </thead>';
	$admin.='<tbody>';
$hasil = $koneksi_db->sql_query( "SELECT * FROM pos_produkbiaya" );
while ($data = $koneksi_db->sql_fetchrow($hasil)) { 
$jenjang=$data['jenjang'];
$kode=$data['kode'];
$nama=$data['nama'];
$jenis=$data['jenis'];
$hargajual=$data['hargajual'];
$admin.='<tr>
            <td>'.getjenis($jenis).'</td>
            <td>'.getjenjang($jenjang).'</td>
            <td>'.$kode.'</td>
            <td>'.$nama.'</td>
            <td>'.$hargajual.'</td>
            <td><a href="?pilih=bebanbiaya&amp;mod=yes&amp;aksi=del&amp;id='.$data['id'].'" onclick="return confirm(\'Apakah Anda Yakin Ingin Menghapus Data Ini ?\')"><span class="btn btn-danger">Hapus</span></a> <a href="?pilih=bebanbiaya&amp;mod=yes&amp;aksi=edit&amp;id='.$data['id'].'"><span class="btn btn-warning">Edit</span></a></td>
        </tr>';
}   
$admin.='</tbody>
</table>';
}

}
echo $admin;
?>
Пример #2
0
            <th>SKS</th>
            <th>Status</th>

            <th>Aksi</th>
        </tr>
    </thead>';
    $hasil = $koneksi_db->sql_query("SELECT * FROM akad_guru");
    while ($data = $koneksi_db->sql_fetchrow($hasil)) {
        $jenjang = $data['jenjang'];
        $tingkat = $data['tingkat'];
        $lokasi = $data['lokasi'];
        $matpel = $data['matpel'];
        $guru = $data['guru'];
        $sks = $data['sks'];
        $status = $data['status'];
        $admin .= '<tr>
<td>' . getlokasi($lokasi) . '</td>
<td>' . getjenjang($jenjang) . ' / ' . gettingkat($tingkat) . '</td>
<td>' . getdataguru("nama", $guru) . '</td>
<td>' . getdataguru("nip", $guru) . '</td>
<td>' . getmatpel($matpel) . '</td>
<td>' . $sks . '</td>
<td>' . $status . '</td>

<td><a href="?pilih=guru&amp;mod=yes&amp;aksi=del&amp;id=' . $data['id'] . '" onclick="return confirm(\'Apakah Anda Yakin Ingin Menghapus Data Ini ?\')"><span class="btn btn-danger">Hapus</span></a> <a href="?pilih=guru&amp;mod=yes&amp;aksi=edit&amp;id=' . $data['id'] . '"><span class="btn btn-warning">Edit</span></a></td>
</tr>';
    }
    $admin .= '</tbody></table>';
    /************************************/
}
echo $admin;
Пример #3
0
		<th><b>Stok</b></</td>
		<th><b>Harga</b></</th>
		<th><b>Jumlah</b></</td>
		<th><b>Discount</b></</th>
<th><b>SubDiscount</b></</th>
<th><b>Subtotal</b></</th>
		<th><b>Aksi</b></</th>
	</tr>';
foreach ($_SESSION["product_id"] as $cart_itm)
        {
		
$nilaidiscount=cekdiscount($cart_itm["subdiscount"],$cart_itm["harga"]);
$admin .= '	
	<tr>
			<td>'.$no.'</td>
		<td>'.getjenjang($cart_itm["jenjang"]).'</td>
			<td>'.$cart_itm["kode"].'</td>
		<td>'.getnamabarang($cart_itm["kode"]).'</td>
		<td>'.getstokbarang($cart_itm["kode"]).'</td>
		<td>'.$cart_itm["harga"].'</td>
		<td><input align="right" type="text" name="jumlahjual" value="'.$cart_itm["jumlah"].'"class="form-control"></td>
		<td><input align="right" type="text" name="subdiscount" value="'.$cart_itm["subdiscount"].'"class="form-control"></td>
	<td>'.$nilaidiscount.'</td>
		<td>'.$cart_itm["subtotal"].'</td>
		<td>
		
		<input type="hidden" name="kode" value="'.$cart_itm["kode"].'">
		<input type="submit" value="EDIT" name="editjumlah"class="btn btn-warning" >
		<input type="submit" value="HAPUS" name="hapusbarang"class="btn btn-danger"></td>
	</tr>';
	$total +=$cart_itm["subtotal"];
Пример #4
0
            } else {
                $wheretahun = "and (YEAR(tgl1)='{$tahun}')";
            }
        }
        $admin .= '<div class="panel panel-info">
<div class="panel-heading"><h3 class="panel-title">Daftar Kegiatan Akademik</h3></div>';
        $admin .= '<form class="form-inline" method="post" action="" enctype ="multipart/form-data" id="posts">';
        $admin .= '
<table>';
        $admin .= '<tr>
	<td><select name="lokasi" class="form-control" id="lokasi"required>';
        $hasilj = $koneksi_db->sql_query("SELECT * FROM departemen ORDER BY urut asc");
        $admin .= '<option value="">== Departemen ==</option>';
        while ($datasj = $koneksi_db->sql_fetchrow($hasilj)) {
            $pilihan = $datasj['replid'] == $lokasi ? "selected" : '';
            $admin .= '<option value="' . $datasj['replid'] . '"' . $pilihan . '>' . $datasj['nama'] . '(' . getjenjang($datasj['keterangan']) . ')</option>';
        }
        $admin .= '</select></td>';
        $admin .= '
		<td> <select name="bulan" class="form-control"required>';
        $admin .= '<option value="">== Bulan ==</option>';
        for ($i = 1; $i <= 12; $i++) {
            $pilihan = $i == $bulan ? "selected" : '';
            $admin .= '<option value="' . $i . '"' . $pilihan . '>' . $i . '</option>';
        }
        $admin .= '</select></td>';
        $admin .= '
		<td> <select name="tahun" class="form-control"required>';
        $admin .= '<option value="">== Tahun ==</option>';
        for ($i = 2010; $i <= 2050; $i++) {
            $pilihan = $i == $tahun ? "selected" : '';