$TxtJudul = trim($_POST['TxtJudul']); $TxtIsi = trim($_POST['TxtIsi']); $TxtTgl = trim($_POST['TxtTgl']); $TxtPengirim = trim($_POST['TxtPengirim']); $TxtPage = trim($_POST['TxtPage']); $TxtGambar = "upload/" . $_FILES['TxtGambar']['name']; move_uploaded_file($_FILES['TxtGambar']['tmp_name'], $TxtGambar); if (!empty($TxtJudul) && !empty($TxtIsi) && !empty($TxtTgl) && !empty($TxtPengirim) && !empty($TxtPage)) { switch ($_GET['action']) { case "TAMBAH": /*echo 'kode='.$TxtKode.',nama='.$TxtNmBrng.',sub='.$TxtSub.',merk='.$TxtMerk.',spec='.$TxtSpec.',harga='.$TxtHarga.',stok='.$TxtStok.',berat='.$TxtBerat.',file='.$TxtGambar.',tgl='.$TxtTgl;*/ Tambah(" artikel ", " '{$TxtId}','{$TxtJudul}','{$TxtIsi}','{$TxtTgl}','{$TxtPengirim}','{$TxtPage}','{$TxtGambar}'", " artikel "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=ListArtikel'></head><body></body></html>"; break; case "UBAH": Ubah(" artikel ", " judul='{$TxtJudul}',isi='{$TxtIsi}',post='{$TxtTgl}',pengirim='{$TxtPengirim}',page='{$TxtPage}',foto='{$TxtGambar}' WHERE id='" . $_GET['id'] . "' ", "artikel"); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=ListArtikel'></head><body></body></html>"; break; } } else { if (empty($TxtJudul) || empty($TxtIsi) || empty($TxtTgl) || empty($TxtPengirim) || empty($TxtPage)) { echo '<b>Semua field harus isi..!!</b> <br>'; /*echo 'id='.$TxtId.',judul='.$TxtJudul.',isi='.$TxtIsi.',tgl='.$TxtTgl.',pengirim='.$TxtPengirim.',page='.$TxtPage.',gambar='.$TxtGambar;*/ } } } ?> </form> </div> </div>
$_sql = "SELECT * FROM set_tahun"; $hasil = bukaquery($_sql); $baris = mysql_fetch_row($hasil); $tahun = $baris[0]; $bulan = $baris[1]; if (isset($BtnSimpan)) { $id = trim($_POST['id']); $persen = "-"; if (!empty($id) && !empty($persen)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" pembagian_warung ", "'{$id}','{$persen}' ", " Penerima Warung "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputPenerimaWarung&action=TAMBAH'></head><body></body></html>"; break; case "UBAH": Ubah(" pembagian_warung ", "persen='{$persen}' WHERE id='{$id}' ", " Penerima Warung "); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=ListWarung'></head><body></body></html>"; break; } } else { if (empty($id) || empty($persen)) { echo '<b>Semua field harus isi..!!</b>'; } } } ?> </form> </div> </div> </div>
</table> <div align="center"><input name=BtnSimpan type=submit class="button" value="SIMPAN"> <input name=BtnKosong type=reset class="button" value="KOSONG"></div><br> <?php $BtnSimpan = $_POST['BtnSimpan']; if (isset($BtnSimpan)) { $id = trim($_POST['id']); $nik = trim($_POST['nik']); $nama = trim($_POST['nama']); $indek = trim($_POST['indek']); $pengurang = trim($_POST['pengurang']); $cuti_diambil = trim($_POST['cuti_diambil']); if (!empty($pengurang) && !empty($indek)) { switch ($_GET['action']) { case "UBAH": Ubah(" pegawai ", " pengurang='{$pengurang}',indek='{$indek}',cuti_diambil='{$cuti_diambil}' WHERE id='" . $_GET['id'] . "' ", " Index Pegawai "); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=EditIndexPegawai&action=UBAH&id={$id}'></head><body></body></html>"; break; } } else { if (empty($indek) || empty($pengurang)) { echo '<b>Semua field harus isi..!!</b>'; /*echo " nik='$nik',nama='$nama',jk='$jk',jbtn='$jbtn',jnj_jabatan='$jnj_jabatan',departemen='$departemen', bidang='$bidang',stts_wp='$stts_wp',stts_kerja='$stts_kerja',npwp='$npwp',pendidikan='$pendidikan', gapok='$gapok',tmp_lahir='$tmp_lahir',tgl_lahir='$tgl_lahir',alamat='$alamat',kota='$kota', mulai_kerja='$mulai_kerja',ms_kerja='$ms_kerja',indek='$indek',indexins='$indexins',bpd='$bpd', rekening='$rekening' ";*/ } } } ?>
$tahun = $baris[0]; $bulan = $baris[1]; if (isset($BtnSimpan)) { $pendapatan_resume = trim($_POST['pendapatan_resume']); $persen_rs = trim($_POST['persen_rs']); $bagian_rs = $persen_rs / 100 * $pendapatan_resume; $persen_kry = trim($_POST['persen_kry']); $bagian_kry = $persen_kry / 100 * $pendapatan_resume; if (!empty($pendapatan_resume) && !empty($persen_rs) && !empty($persen_kry)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" set_resume ", "'{$tahun}','{$bulan}','{$pendapatan_resume}','{$persen_rs}','{$bagian_rs}','{$persen_kry}','{$bagian_kry}' ", " Pendapatan Resume"); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputResume&action=TAMBAH'></head><body></body></html>"; break; case "UBAH": Ubah(" set_resume ", "pendapatan_resume='{$pendapatan_resume}',persen_rs='{$persen_rs}',bagian_rs='{$bagian_rs}',persen_kry='{$persen_kry}',\r\n bagian_kry='{$bagian_kry}' WHERE tahun='{$tahun}' and bulan='{$bulan}' ", " Pendapatan Resume"); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=ListResume'></head><body></body></html>"; break; } } else { if (empty($pendapatan_resume) || empty($persen_rs) || empty($persen_kry)) { echo '<b>Semua field harus isi..!!</b>'; } } } ?> </form> </div> </div> </div>
</tr> </table> <div align="center"><input name=BtnSimpan type=submit class="button" value="SIMPAN"> <input name=BtnKosong type=reset class="button" value="KOSONG"></div><br> <?php $BtnSimpan = $_POST['BtnSimpan']; if (isset($BtnSimpan)) { $TxtKode = trim($_POST['TxtKode']); $TxtJabatan = trim($_POST['TxtJabatan']); if (!empty($TxtKode) && !empty($TxtJabatan)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" jbtn_struktural ", " '{$TxtKode}','{$TxtJabatan}' ", " Jabatan Struktural "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputStruktural&action=TAMBAH'></head><body></body></html>"; break; case "UBAH": Ubah(" jbtn_struktural ", " nama='{$TxtJabatan}' WHERE kode='" . $_GET['kode'] . "' ", "jabatan struktural"); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=ListStruktural'></head><body></body></html>"; break; } } else { if (empty($TxtKode) || empty($TxtJabatan)) { echo '<b>Semua field harus isi..!!</b>'; } } } ?> </form> </div> </div> </div>
<div align="center"><input name=BtnSimpan type=submit class="button" value="SIMPAN"> <input name=BtnKosong type=reset class="button" value="KOSONG"></div><br> <?php $BtnSimpan = $_POST['BtnSimpan']; if (isset($BtnSimpan)) { $id = trim($_POST['id']); $nama = trim($_POST['nama']); $jm = trim($_POST['jm']); $jns = trim($_POST['jns']); if (!empty($nama) && !empty($jm)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" master_tindakan ", "'','{$nama}','{$jm}','{$jns}'", " Master Tindakan "); echo "<meta http-equiv='refresh' content='1;URL=?act=DetailTindakanRj&action=TAMBAH&nama='{$nama}'>"; break; case "UBAH": Ubah(" master_tindakan ", "nama='{$nama}',jm='{$jm}',jns='{$jns}' WHERE id='{$id}' ", " Master Tindakan "); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=DetailTindakanRj&action=TAMBAH&nama='{$nama}'></head><body></body></html>"; break; } } else { if (empty($nama) || empty($jm)) { echo 'Semua field harus isi..!!!'; } } } ?> <div style="width: 598px; height: 400px; overflow: auto; padding: 5px"> <?php $awal = $_GET['awal']; if (empty($awal)) { $awal = 0;
</table> <div align="center"><input name=BtnSimpan type=submit class="button" value="SIMPAN"> <input name=BtnKosong type=reset class="button" value="KOSONG"></div><br> <?php $BtnSimpan = $_POST['BtnSimpan']; if (isset($BtnSimpan)) { $id = trim($_POST['id']); $nama = trim($_POST['nama']); $tnj = trim($_POST['tnj']); if (!empty($nama) && !empty($tnj)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" master_tunjangan_harian ", "'','{$nama}','{$tnj}'", " Master Tunjangan Harian "); echo "<meta http-equiv='refresh' content='1;URL=?act=DetailTunjanganHarian&action=TAMBAH&nama='{$nama}'>"; break; case "UBAH": Ubah(" master_tunjangan_harian ", "tnj='{$tnj}',nama='{$nama}' WHERE id='{$id}' ", " Master Tunjangan Harian "); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=DetailTunjanganHarian&action=TAMBAH&nama='{$nama}'></head><body></body></html>"; break; } } else { if (empty($nama) || empty($tnj)) { echo 'Semua field harus isi..!!!'; } } } ?> <div style="width: 598px; height: 300px; overflow: auto; padding: 5px"> <?php $awal = $_GET['awal']; if (empty($awal)) { $awal = 0;
</tr> </table> <div align="center"><input name=BtnSimpan type=submit class="button" value="SIMPAN"> <input name=BtnKosong type=reset class="button" value="KOSONG"></div><br> <?php $BtnSimpan = $_POST['BtnSimpan']; if (isset($BtnSimpan)) { $TxtKode = trim($_POST['TxtKode']); $TxtNama = trim($_POST['TxtNama']); if (!empty($TxtKode) && !empty($TxtNama)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" dosen_jurusan ", " '{$TxtKode}','{$TxtNama}' ", " Dosen Jurusan "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputUnitkerja&action=TAMBAH'></head><body></body></html>"; break; case "UBAH": Ubah(" dosen_jurusan ", " nama='{$TxtNama}' WHERE kode='" . $_GET['kode'] . "' ", " Dosen Jurusan "); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=ListUnitkerja'></head><body></body></html>"; break; } } else { if (empty($TxtKode) || empty($TxtNama)) { echo '<b>Semua field harus isi..!!</b>'; } } } ?> </form> </div> </div> </div>
$tahun = $baris[0]; $bulan = $baris[1]; if (isset($BtnSimpan)) { $pendapatan_warung = trim($_POST['pendapatan_warung']); $persen_rs = trim($_POST['persen_rs']); $bagian_rs = $persen_rs / 100 * $pendapatan_warung; $persen_kry = trim($_POST['persen_kry']); $bagian_kry = $persen_kry / 100 * $pendapatan_warung; if (!empty($pendapatan_warung) && !empty($persen_rs) && !empty($persen_kry)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" set_warung ", "'{$tahun}','{$bulan}','{$pendapatan_warung}','{$persen_rs}','{$bagian_rs}','{$persen_kry}','{$bagian_kry}' ", " Pendapatan Warung"); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputWarung&action=TAMBAH'></head><body></body></html>"; break; case "UBAH": Ubah(" set_warung ", "pendapatan_warung='{$pendapatan_warung}',persen_rs='{$persen_rs}',bagian_rs='{$bagian_rs}',persen_kry='{$persen_kry}',\r\n bagian_kry='{$bagian_kry}' WHERE tahun='{$tahun}' and bulan='{$bulan}' ", " Pendapatan Warung"); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=ListWarung'></head><body></body></html>"; break; } } else { if (empty($pendapatan_warung) || empty($persen_rs) || empty($persen_kry)) { echo '<b>Semua field harus isi..!!</b>'; } } } ?> </form> </div> </div> </div>
</tr> </table> <div align="center"><input name=BtnSimpan type=submit class="button" value="SIMPAN"> <input name=BtnKosong type=reset class="button" value="KOSONG"></div><br> <?php $BtnSimpan = $_POST['BtnSimpan']; if (isset($BtnSimpan)) { $TxtKode = trim($_POST['TxtKode']); $TxtNama = trim($_POST['TxtNama']); if (!empty($TxtKode) && !empty($TxtNama)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" fungsional ", " '{$TxtKode}','{$TxtNama}' ", " Jabatan Fungsional "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputFungsional&action=TAMBAH'></head><body></body></html>"; break; case "UBAH": Ubah(" fungsional ", " nama='{$TxtNama}' WHERE kode='" . $_GET['kode'] . "' ", "jabatan fungsional"); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=ListFungsional'></head><body></body></html>"; break; } } else { if (empty($TxtKode) || empty($TxtNama)) { echo '<b>Semua field harus isi..!!</b>'; } } } ?> </form> </div> </div> </div>
$_sql = "SELECT * FROM set_tahun"; $hasil = bukaquery($_sql); $baris = mysql_fetch_row($hasil); $tahun = $baris[0]; $bulan = $baris[1]; if (isset($BtnSimpan)) { $id = trim($_POST['id']); $persen = trim($_POST['persen']); if (!empty($id) && !empty($persen)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" pembagian_tuslah ", "'{$id}','{$persen}' ", " Porsi Tuslah "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputPenerimaTuslah&action=TAMBAH'></head><body></body></html>"; break; case "UBAH": Ubah(" pembagian_tuslah ", "persen='{$persen}' WHERE id='{$id}' ", " Porsi Tuslah "); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=ListTuslah'></head><body></body></html>"; break; } } else { if (empty($id) || empty($persen)) { echo '<b>Semua field harus isi..!!</b>'; } } } ?> </form> </div> </div> </div>
</tr> </table> <div align="center"><input name=BtnSimpan type=submit class="button" value="SIMPAN"> <input name=BtnKosong type=reset class="button" value="KOSONG"></div><br> <?php $BtnSimpan = $_POST['BtnSimpan']; if (isset($BtnSimpan)) { $TxtKode = trim($_POST['TxtKode']); $TxtNama = trim($_POST['TxtNama']); if (!empty($TxtKode) && !empty($TxtNama)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" sub_unit_kerja ", " '{$TxtKode}','{$TxtNama}' ", " sub unit kerja "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputSubunit&action=TAMBAH'></head><body></body></html>"; break; case "UBAH": Ubah(" sub_unit_kerja ", " nama='{$TxtNama}' WHERE kode='" . $_GET['kode'] . "' ", " sub unit kerja "); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=ListSubunit'></head><body></body></html>"; break; } } else { if (empty($TxtKode) || empty($TxtNama)) { echo '<b>Semua field harus isi..!!</b>'; } } } ?> </form> </div> </div> </div>
<td width="67%"><input name="keterangan" class="text" onkeydown="setDefault(this, document.getElementById('MsgIsi2'));" type=text id="TxtIsi2" class="inputbox" value="<?php echo $keterangan; ?> " size="40" maxlength="100"/> <span id="MsgIsi2" style="color:#CC0000; font-size:10px;"></span> </td> </tr> </table> <div align="center"><input name=BtnSimpan type=submit class="button" value="Simpan"/> <input name=BtnKosong type=reset class="button" value="Kosong"/></div><br/> <?php $BtnSimpan = $_POST['BtnSimpan']; if (isset($BtnSimpan)) { $id = trim($_POST['id']); $keterangan = trim($_POST['keterangan']); if (!empty($id) && !empty($keterangan)) { Ubah(" rekap_presensi ", " keterangan='{$keterangan}' WHERE id='{$id}' ", " Keterangan "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?page=TampilPulang'></head><body></body></html>"; } else { if (empty($id) || empty($keterangan)) { echo '<b>Semua field harus isi..!!</b>'; } } } ?> </form> </div> </div> </div> </div> </div>
<?php $BtnSimpan = $_POST['BtnSimpan']; if (isset($BtnSimpan)) { $tingkat = trim($_POST['tingkat']); $indek = trim($_POST['indek']); $gapok1 = trim($_POST['gapok1']); $gapok2 = trim($_POST['gapok2']); $gapok3 = trim($_POST['gapok3']); if (!empty($tingkat) && !empty($indek) && !empty($gapok1) && !empty($gapok2) && !empty($gapok3)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" pendidikan ", " '{$tingkat}','{$indek}','{$gapok1}','{$gapok2}','{$gapok3}' ", " Pendidikan "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputPendidikan&action=TAMBAH'></head><body></body></html>"; break; case "UBAH": Ubah(" pendidikan ", " tingkat='{$tingkat}',indek='{$indek}',gapok1='{$gapok1}',gapok2='{$gapok2}',\r\n gapok3='{$gapok3}' WHERE tingkat='{$tingkat}' ", "Pendidikan"); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=ListPendidikan'></head><body></body></html>"; break; } } else { if (empty($tingkat) || empty($indek) || empty($gapok1) || empty($gapok2) || empty($gapok3)) { echo '<b>Semua field harus isi..!!</b> '; //echo "1'$tingkat',2'$indek',3'$gapok1',4'$gapok2',5'$gapok3'"; } } } ?> </form> </div> </div>
$_sql = "SELECT * FROM set_tahun"; $hasil = bukaquery($_sql); $baris = mysql_fetch_row($hasil); $tahun = $baris[0]; $bulan = $baris[1]; if (isset($BtnSimpan)) { $id = trim($_POST['id']); $persen = trim($_POST['persen']); if (!empty($id) && !empty($persen)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" pembagian_resume ", "'{$id}','{$persen}' ", " Porsi Resume "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputPenerimaResume&action=TAMBAH'></head><body></body></html>"; break; case "UBAH": Ubah(" pembagian_resume ", "persen='{$persen}' WHERE id='{$id}' ", " Porsi Resume "); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=ListResume'></head><body></body></html>"; break; } } else { if (empty($id) || empty($persen)) { echo '<b>Semua field harus isi..!!</b>'; } } } ?> </form> </div> </div> </div>
</tr> </table> <div align="center"><input name=BtnSimpan type=submit class="button" value="SIMPAN"> <input name=BtnKosong type=reset class="button" value="KOSONG"></div><br> <?php $BtnSimpan = $_POST['BtnSimpan']; if (isset($BtnSimpan)) { $stts = trim($_POST['stts']); $wajib = trim($_POST['wajib']); if (!empty($stts) && !empty($wajib)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" koperasi ", " '{$stts}','{$wajib}'", " Status Keanggotaan Koperasi "); echo "<meta http-equiv='refresh' content='1;URL=?act=DetailKoperasi&action=TAMBAH&stts='{$stts}'>"; break; case "UBAH": Ubah(" koperasi ", "wajib='{$wajib}' WHERE stts='{$stts}'", " Status Keanggotaan Koperasi "); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=DetailKoperasi&action=TAMBAH&stts='{$stts}'></head><body></body></html>"; break; } } else { if (empty($stts) || empty($wajib)) { echo 'Semua field harus isi..!!!'; } } } ?> <div style="width: 598px; height: 200px; overflow: auto; padding: 5px"> <?php $awal = $_GET['awal']; if (empty($awal)) { $awal = 0;
$simwajib = trim($_POST['simwajib']); $angkop = trim($_POST['angkop']); $angla = trim($_POST['angla']); $telpri = trim($_POST['telpri']); $pajak = trim($_POST['pajak']); $pribadi = trim($_POST['pribadi']); $lain = trim($_POST['lain']); $ktg = trim($_POST['ktg']); if (!empty($id) && !empty($simwajib) && !empty($jamsostek) && !empty($simwajib) && !empty($angkop) && !empty($angla) && !empty($telpri) && !empty($pajak) && !empty($pribadi) && !empty($lain)) { switch ($action) { case "TAMBAH": Tambah(" potongan ", "'{$tahun}','{$bulan}','{$id}','{$jamsostek}','{$dansos}','{$simwajib}',\r\n\t\t\t\t\t\t '{$angkop}','{$angla}','{$telpri}','{$pajak}',\r\n\t\t\t\t\t\t '{$pribadi}','{$lain}','{$ktg}' ", " Potongan "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputPotongan&id={$id}'></head><body></body></html>"; break; case "UBAH": Ubah(" potongan ", " simwajib='{$simwajib}',jamsostek='{$jamsostek}',dansos='{$dansos}',\r\n\t\t\t\t\t\t simwajib='{$simwajib}',angkop='{$angkop}',angla='{$angla}',telpri='{$telpri}',pajak='{$pajak}',\r\n\t\t\t\t\t\t pribadi='{$pribadi}',lain='{$lain}',ktg='{$ktg}' WHERE id='{$id}' and tahun='{$tahun}' and bulan='{$bulan}' ", " Potongan "); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=InputPotongan&id={$id}'></head><body></body></html>"; break; } } else { if (empty($id) || empty($simwajib) || empty($jamsostek) || empty($simwajib) || empty($angkop) || empty($angla) || empty($telpri) || empty($pajak) || empty($pribadi) || empty($lain)) { echo '<b>Semua field harus isi..!!</b>'; /*echo " simwajib='$simwajib',jamsostek='$jamsostek',dansos='$dansos',simwajib='$simwajib', angkop='$angkop',angla='$angla',telpri='$telpri',pajak='$pajak', pribadi='$pribadi',lain='$lain',ktg='$ktg' WHERE id='$id' and tahun='$tahun' and bulan='$bulan'";*/ } } } ?> </form> </div>
</table> <div align="center"><input name=BtnSimpan type=submit class="button" value="SIMPAN"> <input name=BtnKosong type=reset class="button" value="KOSONG"></div><br> <?php $BtnSimpan = $_POST['BtnSimpan']; if (isset($BtnSimpan)) { $id = trim($_POST['id']); $nama = trim($_POST['nama']); $tnj = trim($_POST['tnj']); if (!empty($nama) && !empty($tnj)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" master_tunjangan_bulanan ", "'','{$nama}','{$tnj}'", " Master Tunjangan bulanan "); echo "<meta http-equiv='refresh' content='1;URL=?act=DetailTunjanganBulanan&action=TAMBAH&nama='{$nama}'>"; break; case "UBAH": Ubah(" master_tunjangan_bulanan ", "tnj='{$tnj}',nama='{$nama}' WHERE id='{$id}' ", " Master Tunjangan bulanan"); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=DetailTunjanganBulanan&action=TAMBAH&nama='{$nama}'></head><body></body></html>"; break; } } else { if (empty($nama) || empty($tnj)) { echo 'Semua field harus isi..!!!'; } } } ?> <div style="width: 598px; height: 300px; overflow: auto; padding: 5px"> <?php $awal = $_GET['awal']; if (empty($awal)) { $awal = 0;
</td> </tr> </table> <div align="center"><input name=BtnSimpan type=submit class="button" value="SIMPAN"> <input name=BtnKosong type=reset class="button" value="KOSONG"></div><br> <?php $BtnSimpan = $_POST['BtnSimpan']; if (isset($BtnSimpan)) { $nama = trim($_POST['nama']); if (!empty($nama)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" bidang ", " '{$nama}' ", " Bidang "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputBidang&action=TAMBAH'></head><body></body></html>"; break; case "UBAH": Ubah(" bidang ", " nama='{$nama}' WHERE nama='" . $_GET['nama'] . "' ", "bidang"); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=ListBidang'></head><body></body></html>"; break; } } else { if (empty($nama)) { echo '<b>Semua field harus isi..!!</b>'; } } } ?> </form> </div> </div> </div>
$hasil = bukaquery($_sql); $baris = mysql_fetch_array($hasil); $jm = $baris[0]; $nm_pasien = trim($_POST['nm_pasien']); $kamar = "-"; $diagnosa = trim($_POST['diagnosa']); $jmlh = trim($_POST['jmlh']); $ttljm = $jm * $jmlh; if (!empty($id) && !empty($tgl) && !empty($tnd)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" tindakan ", " '{$tgl}','{$id}','{$tnd}','{$ttljm}','{$nm_pasien}',\r\n '{$kamar}','-','{$jmlh}'", " detail tindakan "); echo "<meta http-equiv='refresh' content='1;URL=?act=InputTindakanSpesialis&action=TAMBAH&id={$id}'>"; break; case "UBAH": Ubah(" tindakan ", "jmlh='{$jmlh}',jm='{$ttljm}' WHERE id ='" . $_GET['id'] . "' and tgl ='" . $_GET['tgl'] . "' and tnd ='" . $_GET['tnd'] . "' and nm_pasien ='" . $_GET['nm_pasien'] . "' ", " detail tindakan "); echo "<meta http-equiv='refresh' content='1;URL=?act=InputTindakanSpesialis&action=TAMBAH&id={$id}'>"; break; } } else { if (empty($id) || empty($tgl) || empty($tnd)) { echo 'Semua field harus isi..!!!'; } } } ?> <div style="width: 598px; height: 500px; overflow: auto; padding: 5px"> <?php $_sql = "select tindakan.tgl,\r\n tindakan.id,\r\n tindakan.tnd,\r\n master_tindakan.nama,\r\n tindakan.jm,\r\n tindakan.nm_pasien,\r\n tindakan.kamar,\r\n tindakan.diagnosa,\r\n tindakan.jmlh\r\n from tindakan inner join master_tindakan\r\n where tindakan.tnd=master_tindakan.id and tindakan.id='{$id}'\r\n\t\t\tand tgl like '%" . $tahun . "-" . $bulan . "%' ORDER BY tindakan.nm_pasien,tindakan.tgl ASC"; $hasil = bukaquery($_sql); $jumlah = mysql_num_rows($hasil);
$hasil = bukaquery($_sql); $baris = mysql_fetch_row($hasil); $tahun = $baris[0]; $bulan = $baris[1]; if (isset($BtnSimpan)) { $pendapatan = trim($_POST['pendapatan']); $persen = trim($_POST['persen']); $total_insentif = $persen / 100 * $pendapatan; if (!empty($pendapatan) && !empty($persen)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" set_insentif ", "'{$tahun}','{$bulan}','{$pendapatan}','{$persen}','{$total_insentif}' ", " Pendapatan "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputInsentif&action=TAMBAH'></head><body></body></html>"; break; case "UBAH": Ubah(" set_insentif ", "pendapatan='{$pendapatan}',persen='{$persen}',total_insentif='{$total_insentif}' WHERE tahun='{$tahun}' and bulan='{$bulan}' ", " Pendapatan "); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=ListInsentif'></head><body></body></html>"; break; } } else { if (empty($pendapatan) || empty($persen)) { echo '<b>Semua field harus isi..!!</b>'; } } } ?> </form> </div> </div> </div>
} else { $nip = trim($_POST['nip']); } if (!empty($nip) && !empty($usere) && !empty($passwordte) && !empty($type)) { switch ($_GET['action']) { case "TAMBAH": $_sql = "SELECT * FROM user where nip='{$nip}'"; $hasil = bukaquery($_sql); $jumlah = mysql_num_rows($hasil); if (mysql_num_rows($hasil) == 0) { Tambah(" user ", " '{$nip}','{$usere}','{$passwordte}','{$type}'", " data admin "); echo "<meta http-equiv='refresh' content='1;URL=?act=InputDataAdmin&action=TAMBAH&usere={$nip}'>"; break; } else { if (mysql_num_rows($hasil) > 0) { Ubah(" user ", " usere='{$usere}',passwordte='{$passwordte}' where nip='{$nip}'", " data admin "); echo "<meta http-equiv='refresh' content='1;URL=?act=InputDataAdmin&action=TAMBAH&usere={$nip}'>"; break; } } } } else { if (empty($nip) || empty($usere) || empty($passwordte) || empty($type)) { echo 'Semua field harus isi..!!!'; } } } ?> <?php $awal = $_GET['awal']; if (empty($awal)) {
</table> <div align="center"><input name=BtnSimpan type=submit class="button" value="SIMPAN"> <input name=BtnKosong type=reset class="button" value="KOSONG"></div><br> <?php $BtnSimpan = $_POST['BtnSimpan']; if (isset($BtnSimpan)) { $kode = trim($_POST['kode']); $nama = trim($_POST['nama']); $tnj = trim($_POST['tnj']); if (!empty($kode) && !empty($nama) && !empty($tnj)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" jnj_jabatan ", " '{$kode}','{$nama}','{$tnj}' ", " Tunjangan Jabatan "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputJenjang&action=TAMBAH'></head><body></body></html>"; break; case "UBAH": Ubah(" jnj_jabatan ", " nama='{$nama}',tnj='{$tnj}' WHERE kode='{$kode}' ", " Tunjangan Jabatan "); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=ListJenjang'></head><body></body></html>"; break; } } else { if (empty($kode) || empty($nama) || empty($tnj)) { echo '<b>Semua field harus isi..!!</b>'; } } } ?> </form> </div> </div> </div>
$tahun = $baris[0]; $bulan = $baris[1]; if (isset($BtnSimpan)) { $pendapatan_tuslah = trim($_POST['pendapatan_tuslah']); $persen_rs = trim($_POST['persen_rs']); $bagian_rs = $persen_rs / 100 * $pendapatan_tuslah; $persen_kry = trim($_POST['persen_kry']); $bagian_kry = $persen_kry / 100 * $pendapatan_tuslah; if (!empty($pendapatan_tuslah)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" set_tuslah ", "'{$tahun}','{$bulan}','{$pendapatan_tuslah}','{$persen_rs}','{$bagian_rs}','{$persen_kry}','{$bagian_kry}'", " Pendapatan Tuslah"); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputTuslah&action=TAMBAH'></head><body></body></html>"; break; case "UBAH": Ubah(" set_tuslah ", "pendapatan_tuslah='{$pendapatan_tuslah}',persen_rs='{$persen_rs}',bagian_rs='{$bagian_rs}',persen_kry='{$persen_kry}',\r\n bagian_kry='{$bagian_kry}' WHERE tahun='{$tahun}' and bulan='{$bulan}' ", " Pendapatan Tuslah"); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=ListTuslah'></head><body></body></html>"; break; } } else { if (empty($pendapatan_tuslah)) { echo '<b>Semua field harus isi..!!</b>'; } } } ?> </form> </div> </div> </div>
$Thnsk = trim($_POST['Thnsk']); $tgl_sk = $Thnsk . '-' . $Blnsk . '-' . $Tglsk; $dasar_penetap = "-"; $masa_kerja = trim($_POST['masa_kerja']); $bln_kerja = trim($_POST['bln_kerja']); if (!empty($nip) && !empty($pangkat) && !empty($gapok) && !empty($tmt_berkala) && !empty($tmt_berkala_yad) && !empty($no_sk) && !empty($tgl_sk) && !empty($dasar_penetap)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" kenaikan_gaji ", " '{$nip}','{$pangkat}','{$gapok}','{$tmt_berkala}','{$tmt_berkala_yad}',\r\n '{$no_sk}','{$tgl_sk}','{$dasar_penetap}','{$masa_kerja}','{$bln_kerja}' ", " riwayat kenaikan gaji "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputNaikgaji&action=TAMBAH'></head><body></body></html>"; /*echo $tmt_pangkat; echo $tmt_pangkat_yad; echo $tgl_sk;*/ break; case "UBAH": Ubah(" kenaikan_gaji ", " gapok='{$gapok}',tmt_berkala='{$tmt_berkala}',tmt_berkala_yad='{$tmt_berkala_yad}',\r\n no_sk='{$no_sk}',tgl_sk='{$tgl_sk}',dasar_penetap='{$dasar_penetap}',masa_kerja='{$masa_kerja}',bln_kerja='{$bln_kerja}'\r\n WHERE nip='" . $_GET['nip'] . "' and pangkat='{$pangkat}' ", " riwayat kenaikan gaji "); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=ListNaikgaji'></head><body></body></html>"; break; } } else { if (empty($nip) || empty($pangkat) || empty($gapok) || empty($tmt_berkala) || empty($tmt_berkala_yad) || empty($no_sk) || empty($tgl_sk) || empty($dasar_penetap)) { echo '<b>Semua field harus isi..!!</b>'; /*echo 'Nip : '.$nip.' <br/> Pangkat : '.$pangkat.' <br/> Gapok : '.$gapok.' <br/> Berkala : '.$tmt_berkala.' <br/> Berkala Yad : '.$tmt_berkala_yad.' <br/> Pejabat : '.$pejabat.' <br/> No.SK : '.$no_sk.' <br/> Tgl SK : '.$tgl_sk.' <br/> Dasar : '.$dasar_penetap.'
$_sql = "SELECT * FROM set_tahun"; $hasil = bukaquery($_sql); $baris = mysql_fetch_row($hasil); $tahun = $baris[0]; $bulan = $baris[1]; if (isset($BtnSimpan)) { $id = trim($_POST['id']); $persen = trim($_POST['persen']); if (!empty($id) && !empty($persen)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" pembagian_akte ", "'{$id}','{$persen}' ", " Porsi Akte "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputPenerimaAkte&action=TAMBAH'></head><body></body></html>"; break; case "UBAH": Ubah(" pembagian_akte ", "persen='{$persen}' WHERE id='{$id}' ", " Porsi Akte "); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=ListAkte'></head><body></body></html>"; break; } } else { if (empty($id) || empty($persen)) { echo '<b>Semua field harus isi..!!</b>'; } } } ?> </form> </div> </div> </div>
$mulai_kerja = trim($_POST['ThnMulai']) . "-" . trim($_POST['BlnMulai']) . "-" . trim($_POST['TglMulai']); $ms_kerja = trim($_POST['ms_kerja']); $indexins = trim($_POST['indexins']); $bpd = trim($_POST['bpd']); $rekening = trim($_POST['rekening']); $stts_aktif = trim($_POST['stts_aktif']); $wajibmasuk = trim($_POST['wajibmasuk']); $mulai_kontrak = trim($_POST['ThnKontrak']) . "-" . trim($_POST['BlnKontrak']) . "-" . trim($_POST['TglKontrak']); if (!empty($nik) && !empty($nama) && !empty($jk) && !empty($jbtn) && !empty($jnj_jabatan) && !empty($departemen) && !empty($bidang) && !empty($stts_wp) && !empty($stts_kerja) && !empty($npwp) && !empty($pendidikan) && !empty($tmp_lahir) && !empty($tgl_lahir) && !empty($alamat) && !empty($kota) && !empty($mulai_kerja) && !empty($ms_kerja) && !empty($indexins) && !empty($bpd) && !empty($rekening)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" pegawai ", "'','{$nik}','{$nama}','{$jk}','{$jbtn}','{$jnj_jabatan}','{$departemen}','{$bidang}','{$stts_wp}',\r\n\t\t\t\t\t\t\t'{$stts_kerja}','{$npwp}','{$pendidikan}','0','{$tmp_lahir}','{$tgl_lahir}','{$alamat}',\r\n\t\t\t\t\t\t\t'{$kota}','{$mulai_kerja}','{$ms_kerja}','{$indexins}','{$bpd}','{$rekening}','{$stts_aktif}',\r\n '{$wajibmasuk}','0','0','{$mulai_kontrak}','0'", " pegawai "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputPegawai&action=TAMBAH'></head><body></body></html>"; break; case "UBAH": Ubah(" pegawai ", " nik='{$nik}',nama='{$nama}',jk='{$jk}',jbtn='{$jbtn}',jnj_jabatan='{$jnj_jabatan}',departemen='{$departemen}',\r\n\t\t\t\t\tbidang='{$bidang}',stts_wp='{$stts_wp}',stts_kerja='{$stts_kerja}',npwp='{$npwp}',pendidikan='{$pendidikan}',\r\n\t\t\t\t\ttmp_lahir='{$tmp_lahir}',tgl_lahir='{$tgl_lahir}',alamat='{$alamat}',kota='{$kota}',mulai_kontrak='{$mulai_kontrak}',\r\n\t\t\t\t\tmulai_kerja='{$mulai_kerja}',ms_kerja='{$ms_kerja}',indexins='{$indexins}',bpd='{$bpd}',\r\n\t\t\t\t\trekening='{$rekening}',stts_aktif='{$stts_aktif}',wajibmasuk='{$wajibmasuk}' WHERE id='{$id}' ", " pegawai "); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=InputPegawai&action=UBAH&id={$id}'></head><body></body></html>"; break; } } else { if (empty($nik) || empty($nama) || empty($jk) || empty($jbtn) || empty($jnj_jabatan) || empty($departemen) || empty($bidang) || empty($stts_wp) || empty($stts_kerja) || empty($npwp) || empty($pendidikan) || empty($tmp_lahir) || empty($tgl_lahir) || empty($alamat) || empty($kota) || empty($mulai_kerja) || empty($ms_kerja) || empty($indexins) || empty($bpd) || empty($rekening)) { echo '<b>Semua field harus isi..!!</b>'; echo $ms_kerja; /*echo " nik='$nik',nama='$nama',jk='$jk',jbtn='$jbtn',jnj_jabatan='$jnj_jabatan',departemen='$departemen', bidang='$bidang',stts_wp='$stts_wp',stts_kerja='$stts_kerja',npwp='$npwp',pendidikan='$pendidikan', gapok='$gapok',tmp_lahir='$tmp_lahir',tgl_lahir='$tgl_lahir',alamat='$alamat',kota='$kota', mulai_kerja='$mulai_kerja',ms_kerja='$ms_kerja',indek='$indek',indexins='$indexins',bpd='$bpd', rekening='$rekening' ";*/ } } }
</table> <div align="center"><input name=BtnSimpan type=submit class="button" value="SIMPAN"> <input name=BtnKosong type=reset class="button" value="KOSONG"></div><br> <?php $BtnSimpan = $_POST['BtnSimpan']; if (isset($BtnSimpan)) { $id = trim($_POST['id']); $koperasi = trim($_POST['koperasi']); $jamsostek = trim($_POST['jamsostek']); if (!empty($id) && !empty($koperasi) && !empty($jamsostek)) { switch ($action) { case "TAMBAH": Tambah(" keanggotaan ", " '{$id}','{$koperasi}','{$jamsostek}' ", " Keanggotaan "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputKeanggotaan&id={$id}'></head><body></body></html>"; break; case "UBAH": Ubah(" keanggotaan ", " koperasi='{$koperasi}',jamsostek='{$jamsostek}' WHERE id='" . $_GET['id'] . "' ", " Keanggotaan "); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=InputKeanggotaan&id={$id}'></head><body></body></html>"; break; } } else { if (empty($id) || empty($koperasi) || empty($jamsostek)) { echo '<b>Semua field harus isi..!!</b>'; echo $action; } } } ?> </form> </div> </div>
</tr> </table> <div align="center"><input name=BtnSimpan type=submit class="button" value="SIMPAN"> <input name=BtnKosong type=reset class="button" value="KOSONG"></div><br> <?php $BtnSimpan = $_POST['BtnSimpan']; if (isset($BtnSimpan)) { $stts = trim($_POST['stts']); $biaya = trim($_POST['biaya']); if (!empty($stts) && !empty($biaya)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" jamsostek ", " '{$stts}','{$biaya}'", " Status Keanggotaan Jamsostek "); echo "<meta http-equiv='refresh' content='1;URL=?act=DetailJamsostek&action=TAMBAH&stts='{$stts}'>"; break; case "UBAH": Ubah(" jamsostek ", "biaya='{$biaya}' WHERE stts='{$stts}' ", " Status Keanggotaan Jamsostek "); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=DetailJamsostek&action=TAMBAH&stts='{$stts}'></head><body></body></html>"; break; } } else { if (empty($stts) || empty($biaya)) { echo 'Semua field harus isi..!!!'; } } } ?> <div style="width: 598px; height: 200px; overflow: auto; padding: 5px"> <?php $awal = $_GET['awal']; if (empty($awal)) { $awal = 0;
</tr> </table> <div align="center"><input name=BtnSimpan type=submit class="button" value="SIMPAN"> <input name=BtnKosong type=reset class="button" value="KOSONG"></div><br> <?php $BtnSimpan = $_POST['BtnSimpan']; if (isset($BtnSimpan)) { $dep_id = trim($_POST['dep_id']); $nama = trim($_POST['nama']); if (!empty($dep_id) && !empty($nama)) { switch ($_GET['action']) { case "TAMBAH": Tambah(" departemen ", " '{$dep_id}','{$nama}' ", " Departemen "); echo "<html><head><title></title><meta http-equiv='refresh' content='1;URL=?act=InputDepartemen&action=TAMBAH'></head><body></body></html>"; break; case "UBAH": Ubah(" departemen ", " nama='{$nama}' WHERE dep_id='{$dep_id}' ", " Departemen "); echo "<html><head><title></title><meta http-equiv='refresh' content='2;URL=?act=ListDepartemen'></head><body></body></html>"; break; } } else { if (empty($dep_id) || empty($nama)) { echo '<b>Semua field harus isi..!!</b>'; } } } ?> </form> </div> </div> </div>