本文整理汇总了PHP中Tambah函数的典型用法代码示例。如果您正苦于以下问题:PHP Tambah函数的具体用法?PHP Tambah怎么用?PHP Tambah使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Tambah函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: trim
$usere = trim($_POST['usere']);
$passwordte = trim($_POST['passwordte']);
$type = trim($_POST['type']);
if ($type == "ADMIN") {
$nip = "ADMIN";
} 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..!!!';
}
}
示例2: trim
$Tglberkalayad = trim($_POST['Tglberkalayad']);
$Blnberkalayad = trim($_POST['Blnberkalayad']);
$Thnberkalayad = trim($_POST['Thnberkalayad']);
$tmt_berkala_yad = $Thnberkalayad . '-' . $Blnberkalayad . '-' . $Tglberkalayad;
$no_sk = trim($_POST['no_sk']);
$Tglsk = trim($_POST['Tglsk']);
$Blnsk = trim($_POST['Blnsk']);
$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.'
示例3: trim
$tmp_lahir = trim($_POST['tmp_lahir']);
$tgl_lahir = trim($_POST['Thnlahir']) . "-" . trim($_POST['Blnlahir']) . "-" . trim($_POST['Tgllahir']);
$alamat = trim($_POST['alamat']);
$kota = trim($_POST['kota']);
$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',
示例4: trim
if (isset($BtnSimpan)) {
$id = trim($_POST['id']);
$jml_angsur = trim($_POST['jml_angsur']);
$pinjaman = trim($_POST['pinjaman']);
$pokok = $pinjaman / $jml_angsur;
$jasa = 0.01 * $pinjaman;
$setoran = $pokok + $jasa;
$Tgl = trim($_POST['Tgl']);
$Bln = trim($_POST['Bln']);
$Thn = trim($_POST['Thn']);
$tgl_pinjam = $Thn . '-' . $Bln . '-' . $Tgl;
$stts = 'Belum Lunas';
if (!empty($id) && !empty($jml_angsur) && !empty($pinjaman)) {
switch ($_GET['action']) {
case "TAMBAH":
Tambah(" pinjam_koperasi ", " '-','{$id}','{$jml_angsur}','{$pinjaman}','{$pokok}',\n '{$jasa}','{$setoran}','{$tgl_pinjam}','{$stts}'", " peminjaman ");
echo "<meta http-equiv='refresh' content='1;URL=?act=DetailPinjam&action=TAMBAH&id={$id}'>";
break;
}
} else {
if (empty($id) || empty($jml_angsur) || empty($pinjaman)) {
echo 'Semua field harus isi..!!!';
}
}
}
?>
<div style="width: 598px; height: 400px; overflow: auto; padding: 5px">
<?php
$awal = $_GET['awal'];
if (empty($awal)) {
$awal = 0;
示例5: trim
" size="20" maxlength="15" />
<span id="MsgIsi3" 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)) {
$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>
示例6: trim
<?php
$BtnSimpan = $_POST['BtnSimpan'];
if (isset($BtnSimpan)) {
$nop = trim($_POST['nop']);
$besar_angsuran = trim($_POST['setoran']);
$Tgl = trim($_POST['Tgl']);
$Bln = trim($_POST['Bln']);
$Thn = trim($_POST['Thn']);
$tgl_agsur = $Thn . '-' . $Bln . '-' . $Tgl;
if ($sisa_pinjam == 0 || $jml_sdh_angsur == $jml_angsur || $sdh_setor >= $pinjaman) {
echo 'Sudah lunas cooooy, masak bayar lagi......!!!';
} else {
if (!empty($nop) && !empty($besar_angsuran) && !empty($tgl_agsur)) {
switch ($_GET['action']) {
case "TAMBAH":
Tambah(" detailpinjam_koperasi ", " '-','{$nop}','{$tgl_agsur}','{$besar_angsuran}'", " angsuran ");
echo "<meta http-equiv='refresh' content='1;URL=?act=BayarPinjam&action=TAMBAH&nop={$nop}'>";
break;
}
} else {
if (empty($nop) || empty($besar_angsuran) || empty($tgl_agsur)) {
echo 'Semua field harus isi..!!!';
}
}
}
}
?>
<div style="width: 598px; height: 400px; overflow: auto; padding: 5px">
<?php
$_sql = "select no_detail, nop, tgl_agsur, besar_angsuran\n from detailpinjam_koperasi where nop='{$nop}'";
$hasil = bukaquery($_sql);
示例7: bukaquery
<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'];
$_sql = "SELECT * FROM set_tahun";
$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>
示例8: trim
echo $tnj;
?>
" size="20" maxlength="15">
<span id="MsgIsi1" 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)) {
$tnj = trim($_POST['tnj']);
if (!empty($tnj)) {
switch ($_GET['action']) {
case "TAMBAH":
Tambah(" set_lemburhr ", "'{$tnj}'", " Set lebur hari raya ");
echo "<meta http-equiv='refresh' content='1;URL=?act=InputSetLemburHR&action=TAMBAH&tnj='{$tnj}'>";
break;
}
} else {
if (empty($tnj)) {
echo 'Semua field harus isi..!!!';
}
}
}
?>
<div style="width: 598px; height: 150px; overflow: auto; padding: 5px">
<?php
$_sql = "SELECT tnj from set_lemburhr ORDER BY tnj ASC";
$hasil = bukaquery($_sql);
$jumlah = mysql_num_rows($hasil);
示例9: bukaquery
</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'];
$_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>
示例10: trim
</select>
<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']);
$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;
}
}
}
?>
示例11: trim
" size="10" maxlength="5">
<span id="MsgIsi1" 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']);
$tgl = $tahun . "-" . $bulan . "-01";
$jml = trim($_POST['jml']);
if (!empty($id) && !empty($jml)) {
switch ($_GET['action']) {
case "TAMBAH":
Tambah(" tambahjaga ", " '{$tgl}','{$id}','{$jml}'", " Tambahan Jaga ");
echo "<meta http-equiv='refresh' content='1;URL=?act=InputTambahJaga&action=TAMBAH&id={$id}'>";
break;
}
} else {
if (empty($id) || empty($jml)) {
echo 'Semua field harus isi..!!!';
}
}
}
?>
<div style="width: 598px; height: 400px; overflow: auto; padding: 5px">
<?php
$awal = $_GET['awal'];
if (empty($awal)) {
$awal = 0;
示例12: bukaquery
</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'];
$_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>
示例13: trim
" size="15" maxlength="15">
<span id="MsgIsi3" 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']);
$jmlks = trim($_POST['jmlks']);
$bsr = trim($_POST['bsr']);
if (!empty($id)) {
switch ($_GET['action']) {
case "TAMBAH":
Tambah(" kasift ", " '{$id}','{$jmlks}','{$bsr}'", " Daftar Kasift ");
echo "<meta http-equiv='refresh' content='1;URL=?act=ListKS&action=TAMBAH&id='{$id}'>";
break;
}
} else {
if (empty($id)) {
echo 'Semua field harus isi..!!!';
}
}
}
?>
<div style="width: 598px; height: 400px; overflow: auto; padding: 5px">
<?php
$awal = $_GET['awal'];
if (empty($awal)) {
$awal = 0;
示例14: bukaquery
$BtnSimpan = $_POST['BtnSimpan'];
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$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>
示例15: trim
</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']);
$thn = $tahun;
$bln = $bulan;
$bsr_jasa = trim($_POST['bsr_jasa']);
$ktg = trim($_POST['ktg']);
if (!empty($id) && !empty($bsr_jasa)) {
switch ($_GET['action']) {
case "TAMBAH":
Tambah(" jasa_lain ", " '{$thn}','{$bln}','{$id}','{$bsr_jasa}','{$ktg}'", " Tambahan Jaga ");
echo "<meta http-equiv='refresh' content='1;URL=?act=InputJasaLain&action=TAMBAH&id={$id}'>";
break;
}
} else {
if (empty($id) || empty($bsr_jasa)) {
echo 'Semua field harus isi..!!!';
}
}
}
?>
<div style="width: 598px; height: 400px; overflow: auto; padding: 5px">
<?php
$awal = $_GET['awal'];
if (empty($awal)) {
$awal = 0;