@@ -3,7 +3,7 @@
<?php
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bulan = $baris[1];
?>
@@ -30,7 +30,7 @@
bagian_rs,persen_kry,bagian_kry
FROM set_akte WHERE tahun='$tahun' and bulan='$bulan'";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$pendapatan_akte = $baris[0];
$persen_rs = $baris[1];
$bagian_rs = $baris[2];
@@ -65,7 +65,7 @@

$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bulan = $baris[1];

@@ -3,7 +3,7 @@
<?php
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baristh = mysql_fetch_row($hasil);
$baristh = mysqli_fetch_row($hasil);
$tahun = $baristh[0];
$bulan = $baristh[1];
?>
@@ -25,7 +25,7 @@
}else if($action == "UBAH"){
$_sql = "SELECT id,persen FROM pembagian_akte WHERE id='$id' ";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$id = $baris[0];
$persen = $baris[1];
}
@@ -41,14 +41,14 @@
if($action == "UBAH"){
$_sql2 = "SELECT id,nik,nama FROM pegawai where id='$id' ORDER BY nama";
$hasil2=bukaquery($_sql2);
while($baris2 = mysql_fetch_array($hasil2)) {
while($baris2 = mysqli_fetch_array($hasil2)) {
echo "<option id='TxtIsi1' value='$baris2[0]'>$baris2[2] $baris2[1]</option>";
}
}
if($action == "TAMBAH"){
$_sql = "SELECT id,nik,nama FROM pegawai ORDER BY nama";
$hasildep=bukaquery($_sql);
while($barisdep = mysql_fetch_array($hasildep)) {
while($barisdep = mysqli_fetch_array($hasildep)) {
echo "<option id='TxtIsi1' value='$barisdep[0]'>$barisdep[2] $barisdep[1]</option>";
}
}
@@ -70,7 +70,7 @@

$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bulan = $baris[1];

@@ -3,7 +3,7 @@
<?php
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bulan = $baris[1];
?>
@@ -21,9 +21,9 @@
bagian_rs,persen_kry,bagian_kry
FROM set_akte WHERE tahun='$tahun' and bulan='$bulan' ORDER BY pendapatan_akte";
$hasil =bukaquery($_sql);
$jumlah =mysql_num_rows($hasil);
$jumlah =mysqli_num_rows($hasil);
$total_akte=0;
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='12%'><div align='center'>Proses</div></td>
@@ -33,7 +33,7 @@
<td width='7%'><div align='center'>% Kry</div></td>
<td width='25%'><div align='center'>Bagian Kry</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
$total_akte=$baris[4];
echo "<tr class='isi'>
<td>
@@ -79,10 +79,10 @@
$_sql = "SELECT pembagian_akte.id,pegawai.nama,persen FROM pembagian_akte inner join pegawai
on pembagian_akte.id=pegawai.id where pegawai.nama like '%".$keyword."%' ORDER BY persen desc";
$hasil = bukaquery($_sql);
$jumlah = mysql_num_rows($hasil);
$jumlah = mysqli_num_rows($hasil);
$ttl=0;
$prosen=0;
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='12%'><div align='center'>Proses</div></td>
@@ -91,7 +91,7 @@
<td width='25%'><div align='center'>Bagian Karyawan</div></td>
</tr>";
$bagiankry=0;
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
$bagiankry=($baris[2]/100)*$total_akte;
$ttl=$ttl+$bagiankry;
$prosen=$prosen+$baris[2];
@@ -121,7 +121,7 @@
if ($aksi=="HAPUSPENERIMA") {
Hapus(" pembagian_akte "," id ='".$_GET['id']."'","?act=ListAkte");
}
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo("<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td><div align='left'>Data : $jumlah, Ttl Prosen : ".$prosen."%, Ttl Bagian : ".formatDuit($ttl)." | <a target=_blank href=../penggajian/pages/akte/LaporanAkte.php?&keyword=$keyword>Laporan</a> | <a target=_blank href=../penggajian/pages/akte/LaporanAkteExel.php?&keyword=$keyword>Excel</a> |</div></td>
@@ -95,9 +95,9 @@

$_sql = "SELECT * FROM set_tahun ORDER BY tahun";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);
$masuk=0;
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='17%'><div align='center'>Tahun Gaji</div></td>
@@ -107,7 +107,7 @@
<td width='17%'><div align='center'>Normal Masuk</div></td>
<td width='15%'><div align='center'>Proses</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
$masuk=$baris[4];
echo "<tr class='isi'>
<td>$baris[0]</td>
@@ -153,7 +153,7 @@
$BtnSimpan2=isset($_POST['BtnSimpan2'])?$_POST['BtnSimpan2']:NULL;
$_sql2 = "SELECT * FROM set_tahun";
$hasil2 = bukaquery($_sql2);
$baris2 = mysql_fetch_row($hasil2);
$baris2 = mysqli_fetch_row($hasil2);
$tahun2 = $baris2[0];
$bln_leng=strlen($baris2[1]);
$bulan2="0";
@@ -185,16 +185,16 @@
from set_hari_libur
where tanggal like '%".$tahun2."-".$bulan2."%' ORDER BY tanggal";
$hasil3=bukaquery($_sql3);
$jumlah3=mysql_num_rows($hasil3);
$jumlah3=mysqli_num_rows($hasil3);

if(mysql_num_rows($hasil3)!=0) {
if(mysqli_num_rows($hasil3)!=0) {
echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='70px'><div align='center'>Proses</div></td>
<td width='100px'><div align='center'>Tgl.Libur</div></td>
<td width='400px'><div align='center'>Keterangan</div></td>
</tr>";
while($baris3 = mysql_fetch_array($hasil3)) {
while($baris3 = mysqli_fetch_array($hasil3)) {
echo "<tr class='isi'>
<td width='70'>
<center>"; ?>
@@ -10,16 +10,16 @@
$keyword=$_GET['keyword'];
$_sql = "SELECT namabank FROM bank where namabank like '%".$keyword."%' ORDER BY namabank ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);
$no=1;
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<caption><h3><font color='999999'>Laporan Master Bank</font></h3></caption>
<tr class='head'>
<td width='10%'><div align='center'>No.</strong></div></td>
<td width='88%'><div align='center'>Nama Bank</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>$no</td>
<td>$baris[0] &nbsp;</td>
@@ -15,16 +15,16 @@
$keyword=$_GET['keyword'];
$_sql = "SELECT namabank FROM bank where namabank like '%".$keyword."%' ORDER BY namabank ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);
$no=1;
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='100%' border='1' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<caption><h3><font color='999999'>Laporan Master Bank</font></h3></caption>
<tr class='head'>
<td width='10%'><div align='center'>No.</strong></div></td>
<td width='88%'><div align='center'>Nama Bank</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>$no</td>
<td>$baris[0] &nbsp;</td>
@@ -17,7 +17,7 @@
}else if($action == "UBAH"){
$_sql = "SELECT * FROM bank WHERE namabank='$namabank'";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$namabank = $baris[0];
}
echo"<input type=hidden name=namabank value=$namabank><input type=hidden name=action value=$action>";
@@ -28,15 +28,15 @@
$keyword=trim(isset($_POST['keyword']))?trim($_POST['keyword']):NULL;
$_sql = "SELECT namabank FROM bank where namabank like '%".$keyword."%' ORDER BY namabank ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='12%'><div align='center'>Proses</div></td>
<td width='88%'><div align='center'>Bank</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td width='120'>
<center>";?>
@@ -61,7 +61,7 @@
?>
</div>
<?php
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo("<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td><div align='left'>Data : $jumlah | <a target=_blank href=../penggajian/pages/bank/LaporanBank.php?&keyword=$keyword>Laporan</a> | <a target=_blank href=../penggajian/pages/bank/LaporanBankExel.php?&keyword=$keyword>Excel</a> |</div></td>
@@ -10,16 +10,16 @@
$keyword=$_GET['keyword'];
$_sql = "SELECT nama FROM bidang where nama like '%".$keyword."%' ORDER BY nama ASC ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);
$no=1;
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<caption><h3><font color='999999'>Laporan Master Bidang</font></h3></caption>
<tr class='head'>
<td width='10%'><div align='center'>No.</strong></div></td>
<td width='90%'><div align='center'>Bidang</strong></div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>$no</td>
<td>$baris[0]</td>
@@ -15,16 +15,16 @@
$keyword=$_GET['keyword'];
$_sql = "SELECT nama FROM bidang where nama like '%".$keyword."%' ORDER BY nama ASC ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);
$no=1;
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='100%' border='1' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<caption><h3><font color='999999'>Laporan Master Bidang</font></h3></caption>
<tr class='head'>
<td width='10%'><div align='center'>No.</strong></div></td>
<td width='90%'><div align='center'>Bidang</strong></div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>$no</td>
<td>$baris[0]</td>
@@ -17,7 +17,7 @@
}else if($action == "UBAH"){
$_sql = "SELECT nama FROM bidang WHERE nama='$nama'";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$nama = $baris[0];
}
echo"<input type=hidden name=nama value=$nama><input type=hidden name=action value=$action>";
@@ -28,16 +28,16 @@
$keyword=trim(isset($_POST['keyword']))?trim($_POST['keyword']):NULL;
$_sql = "SELECT nama FROM bidang where nama like '%".$keyword."%' ORDER BY nama ASC ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {

echo "<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='10%'><div align='center'>Proses</strong></div></td>
<td width='90%'><div align='center'>Bidang</strong></div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>
<center>";?>
@@ -59,7 +59,7 @@
?>
</div>
<?php
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo("<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td><div align='left'>Data : $jumlah | <a target=_blank href=../penggajian/pages/bidang/LaporanBidang.php?&keyword=$keyword>Laporan</a> | <a target=_blank href=../penggajian/pages/bidang/LaporanBidangExel.php?&keyword=$keyword>Excel</a> |</div></td>
@@ -10,17 +10,17 @@
$keyword=$_GET['keyword'];
$_sql = "SELECT dep_id,nama FROM departemen where dep_id like '%".$keyword."%' or nama like '%".$keyword."%' ORDER BY dep_id ASC";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);
$no=1;
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<caption><h3><font color='999999'>Laporan Master Departemen</font></h3></caption>
<tr class='head'>
<td width='10%'><div align='center'>No.</strong></div></td>
<td width='23%'><div align='center'>Dep ID</div></td>
<td width='65%'><div align='center'>Nama Departemen</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>$no</td>
<td>$baris[0] &nbsp;</td>
@@ -15,17 +15,17 @@
$keyword=$_GET['keyword'];
$_sql = "SELECT dep_id,nama FROM departemen where dep_id like '%".$keyword."%' or nama like '%".$keyword."%' ORDER BY dep_id ASC";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);
$no=1;
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='100%' border='1' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<caption><h3><font color='999999'>Laporan Master Departemen</font></h3></caption>
<tr class='head'>
<td width='10%'><div align='center'>No.</strong></div></td>
<td width='23%'><div align='center'>Dep ID</div></td>
<td width='65%'><div align='center'>Nama Departemen</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>$no</td>
<td>$baris[0] &nbsp;</td>
@@ -18,7 +18,7 @@
}else if($action == "UBAH"){
$_sql = "SELECT * FROM departemen WHERE dep_id='$dep_id'";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$dep_id = $baris[0];
$nama = $baris[1];
}
@@ -28,16 +28,16 @@
$keyword=trim(isset($_POST['keyword']))?trim($_POST['keyword']):NULL;
$_sql = "SELECT dep_id,nama FROM departemen where dep_id like '%".$keyword."%' or nama like '%".$keyword."%' ORDER BY dep_id ASC ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='12%'><div align='center'>Proses</div></td>
<td width='23%'><div align='center'>Dep ID</div></td>
<td width='65%'><div align='center'>Nama Departemen</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td width='120'>
<center>
@@ -64,7 +64,7 @@
?>
</div>
<?php
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo("<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td><div align='left'>Data : $jumlah | <a target=_blank href=../penggajian/pages/departemen/LaporanDepartemen.php?&keyword=$keyword>Laporan</a> | <a target=_blank href=../penggajian/pages/departemen/LaporanDepartemenExel.php?&keyword=$keyword>Excel</a> |</div></td>
@@ -17,7 +17,7 @@
}else if($action == "UBAH"){
$_sql = "SELECT * FROM fungsional WHERE kode='$TxtKode'";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$TxtKode = $baris[0];
$TxtNama = $baris[1];
}
@@ -22,16 +22,16 @@
if (empty($awal)) $awal=0;
$_sql = "SELECT kode,nama FROM fungsional ORDER BY kode ASC ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='600px' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='20%'><div align='center'><font size='2' face='Verdana'><strong>Kode Jabatan</strong></font></div></td>
<td width='57%'><div align='center'><font size='2' face='Verdana'><strong>Jabatan Fungsional</strong></font></div></td>
<td width='23%'><div align='center'><font size='2' face='Verdana'><strong>Proses</strong></font></div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>$baris[0]</td>
<td>$baris[1]</td>
@@ -56,9 +56,9 @@
?>
</div>
<?php
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
$hasil1=bukaquery("SELECT kode,nama FROM fungsional");
$jumladiv=mysql_num_rows($hasil1);
$jumladiv=mysqli_num_rows($hasil1);
$i=$jumladiv/19;
$i=ceil($i);
echo("<br/>Jumlah Record : $jumlah ");

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -2,7 +2,7 @@
include '../../../conf/conf.php';
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bln_leng=strlen($baris[1]);
$bulan="0";
@@ -24,7 +24,7 @@

$_sqlthnini = "SELECT DAY(LAST_DAY('$tahun-$bulan-01')) ";
$hasilthnini = bukaquery($_sqlthnini);
$datathnini = mysql_fetch_array($hasilthnini);
$datathnini = mysqli_fetch_array($hasilthnini);
$thnini = $tahun."-".$bulan."-".$datathnini[0];
$thnlalu = ($tahun-1)."-".$bulan."-".$datathnini[0];

@@ -43,7 +43,7 @@
and pegawai.departemen=departemen.dep_id where pegawai.stts_aktif<>'KELUAR' order by pegawai.id ASC ";
$hasil6 = bukaquery($_sql);

if(mysql_num_rows($hasil6)!=0) {
if(mysqli_num_rows($hasil6)!=0) {
echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<caption><h2 class=title><font color='999999'>Laporan THR Semua Karyawan Tahun ".$tahun." Bulan ".($bulan+1)."</font></h2></caption>
<tr class='head'>
@@ -53,7 +53,7 @@
<td width='20%'><div align='center'><font size='2' face='Verdana'><strong>Departemen</strong></font></div></td>
<td width='20%'><div align='center'><font size='2' face='Verdana' color='green'><strong>THR</strong></font></div></td>
</tr>";
while($data = mysql_fetch_array($hasil6)) {
while($data = mysqli_fetch_array($hasil6)) {
$nik = $data[0];
$nama = $data[1];
$status = $data[2];
@@ -106,15 +106,15 @@

$_sql3 = "SELECT sum(jml) FROM tambahjaga where id='$id' and tgl between '$thnlalu' and '$thnini' ";
$hasil3 = bukaquery($_sql3);
$data3 = mysql_fetch_array($hasil3);
$data3 = mysqli_fetch_array($hasil3);
$tmbhn = $data3[0];
$nmasuk = $tmbhn/12;

if(($status=="FT")||($status=="T")){
$_sqlgp = "SELECT `gapok1`, `kenaikan`, `maksimal`
from pendidikan where tingkat like '%".$pendidikan."%' order by gapok1 desc limit 1 ";
$hasilgp = bukaquery($_sqlgp);
$barisgp = mysql_fetch_array($hasilgp);
$barisgp = mysqli_fetch_array($hasilgp);
$gapokgp = 0;
@$gapok1 = $barisgp["gapok1"];
@$kenaikan = $barisgp["kenaikan"];
@@ -133,7 +133,7 @@
$_sqlgp = "SELECT `gapok1`, `kenaikan`, `maksimal`
from pendidikan where tingkat like '%".$pendidikan."%' order by gapok1 desc limit 1 ";
$hasilgp = bukaquery($_sqlgp);
$barisgp = mysql_fetch_array($hasilgp);
$barisgp = mysqli_fetch_array($hasilgp);
$gapokgp = 0;
@$gapok1 = $barisgp["gapok1"];
@$kenaikan = $barisgp["kenaikan"];
@@ -2,7 +2,7 @@
include '../../../conf/conf.php';
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bln_leng=strlen($baris[1]);
$bulan="0";
@@ -24,7 +24,7 @@

$_sqlthnini = "SELECT DAY(LAST_DAY('$tahun-$bulan-01')) ";
$hasilthnini = bukaquery($_sqlthnini);
$datathnini = mysql_fetch_array($hasilthnini);
$datathnini = mysqli_fetch_array($hasilthnini);
$thnini = $tahun."-".$bulan."-".$datathnini[0];
$thnlalu = ($tahun-1)."-".$bulan."-".$datathnini[0];

@@ -43,7 +43,7 @@
and pegawai.departemen=departemen.dep_id where pegawai.stts_aktif<>'KELUAR' and pegawai.bpd<>'T' order by pegawai.id ASC ";
$hasil6 = bukaquery($_sql);

if(mysql_num_rows($hasil6)!=0) {
if(mysqli_num_rows($hasil6)!=0) {
echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<caption><h2 class=title><font color='999999'>Laporan Transfer THR Karyawan Tahun ".$tahun." Bulan ".($bulan+1)."</font></h2></caption>
<tr class='head'>
@@ -54,7 +54,7 @@
<td width='10%'><div align='center'><font size='2' face='Verdana'><strong>Rekening</strong></font></div></td>
<td width='10%'><div align='center'><font size='2' face='Verdana' color='green'><strong>THR</strong></font></div></td>
</tr>";
while($data = mysql_fetch_array($hasil6)) {
while($data = mysqli_fetch_array($hasil6)) {
$nik = $data[0];
$nama = $data[1];
$status = $data[2];
@@ -108,15 +108,15 @@

$_sql3 = "SELECT sum(jml) FROM tambahjaga where id='$id' and tgl between '$thnlalu' and '$thnini' ";
$hasil3 = bukaquery($_sql3);
$data3 = mysql_fetch_array($hasil3);
$data3 = mysqli_fetch_array($hasil3);
$tmbhn = $data3[0];
$nmasuk = $tmbhn/12;

if(($status=="FT")||($status=="T")){
$_sqlgp = "SELECT `gapok1`, `kenaikan`, `maksimal`
from pendidikan where tingkat like '%".$pendidikan."%' order by gapok1 desc limit 1 ";
$hasilgp = bukaquery($_sqlgp);
$barisgp = mysql_fetch_array($hasilgp);
$barisgp = mysqli_fetch_array($hasilgp);
$gapokgp = 0;
@$gapok1 = $barisgp["gapok1"];
@$kenaikan = $barisgp["kenaikan"];
@@ -135,7 +135,7 @@
$_sqlgp = "SELECT `gapok1`, `kenaikan`, `maksimal`
from pendidikan where tingkat like '%".$pendidikan."%' order by gapok1 desc limit 1 ";
$hasilgp = bukaquery($_sqlgp);
$barisgp = mysql_fetch_array($hasilgp);
$barisgp = mysqli_fetch_array($hasilgp);
$gapokgp = 0;
@$gapok1 = $barisgp["gapok1"];
@$kenaikan = $barisgp["kenaikan"];

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -2,7 +2,7 @@
include '../../../conf/conf.php';
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bln_leng=strlen($baris[1]);
$bulan="0";
@@ -24,7 +24,7 @@

$_sqlthnini = "SELECT DAY(LAST_DAY('$tahun-$bulan-01')) ";
$hasilthnini = bukaquery($_sqlthnini);
$datathnini = mysql_fetch_array($hasilthnini);
$datathnini = mysqli_fetch_array($hasilthnini);
$thnini = $tahun."-".$bulan."-".$datathnini[0];
$thnlalu = ($tahun-1)."-".$bulan."-".$datathnini[0];

@@ -36,7 +36,7 @@
on pegawai.stts_kerja=stts_kerja.stts
and pegawai.departemen=departemen.dep_id where id='$id' ";
$hasil = bukaquery($_sql);
$data = mysql_fetch_array($hasil);
$data = mysqli_fetch_array($hasil);
$nik = $data[0];
$nama = $data[1];
$status = $data[2];
@@ -88,15 +88,15 @@

$_sql3 = "SELECT sum(jml) FROM tambahjaga where id='$id' and tgl between '$thnlalu' and '$thnini' ";
$hasil3 = bukaquery($_sql3);
$data3 = mysql_fetch_array($hasil3);
$data3 = mysqli_fetch_array($hasil3);
$tmbhn = $data3[0];
$nmasuk = $tmbhn/12;

if(($status=="FT")||($status=="T")){
$_sqlgp = "SELECT `gapok1`, `kenaikan`, `maksimal`
from pendidikan where tingkat like '%".$pendidikan."%' order by gapok1 desc limit 1 ";
$hasilgp = bukaquery($_sqlgp);
$barisgp = mysql_fetch_array($hasilgp);
$barisgp = mysqli_fetch_array($hasilgp);
$gapokgp = 0;
@$gapok1 = $barisgp["gapok1"];
@$kenaikan = $barisgp["kenaikan"];
@@ -115,7 +115,7 @@
$_sqlgp = "SELECT `gapok1`, `kenaikan`, `maksimal`
from pendidikan where tingkat like '%".$pendidikan."%' order by gapok1 desc limit 1 ";
$hasilgp = bukaquery($_sqlgp);
$barisgp = mysql_fetch_array($hasilgp);
$barisgp = mysqli_fetch_array($hasilgp);
$gapokgp = 0;
@$gapok1 = $barisgp["gapok1"];
@$kenaikan = $barisgp["kenaikan"];
@@ -10,7 +10,7 @@
<?php
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bulan =$baris[1];

@@ -30,16 +30,16 @@
echo "<input type=hidden name=id value=$id><input type=hidden name=tgl value=$tgl><input type=hidden name=action value=$action>";
$_sql = "SELECT nik,nama FROM pegawai where id='$id'";
$hasil=bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);

$_sqlnext = "SELECT id FROM pegawai WHERE id>'$id' order by id asc limit 1";
$hasilnext = bukaquery($_sqlnext);
$barisnext = mysql_fetch_row($hasilnext);
$barisnext = mysqli_fetch_row($hasilnext);
$next = $barisnext[0];

$_sqlprev = "SELECT id FROM pegawai WHERE id<'$id' order by id desc limit 1";
$hasilprev = bukaquery($_sqlprev);
$barisprev = mysql_fetch_row($hasilprev);
$barisprev = mysqli_fetch_row($hasilprev);
$prev = $barisprev[0];

echo "<div align='center' class='link'>
@@ -99,18 +99,18 @@
from jasa_lain where id='$id'
and thn='".$tahun."' and bln='".$bulan."' ORDER BY bsr_jasa ASC ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);
$ttllembur=0;
$ttlhr=0;

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='598px' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='70px'><div align='center'><font size='2' face='Verdana'><strong>Proses</strong></font></div></td>
<td width='120px'><div align='center'><font size='2' face='Verdana'><strong>Besar Jasa</strong></font></div></td>
<td width='220px'><div align='center'><font size='2' face='Verdana'><strong>Keterangan</strong></font></div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td width='70'>
<center>"; ?>
@@ -134,11 +134,11 @@
and bln ='".$_GET['bln']."' and bsr_jasa ='".$_GET['bsr_jasa']."'","?act=InputJasaLain&action=TAMBAH&id=$id");
}

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
$hasil1=bukaquery("SELECT thn, bln, id, bsr_jasa, ktg
from jasa_lain where id='$id'
and thn='".$tahun."' and bln='".$bulan."' ORDER BY bsr_jasa ASC ");
$jumlah1=mysql_num_rows($hasil1);
$jumlah1=mysqli_num_rows($hasil1);
$i=$jumlah1/19;
$i=ceil($i);
echo("Data : $jumlah ");
@@ -10,7 +10,7 @@
<?php
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bln_leng=strlen($baris[1]);
$bulan="0";
@@ -33,16 +33,16 @@
echo "<input type=hidden name=id value=$id><input type=hidden name=tgl value=$tgl><input type=hidden name=action value=$action>";
$_sql = "SELECT nik,nama FROM pegawai where id='$id'";
$hasil=bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);

$_sqlnext = "SELECT id FROM pegawai WHERE id>'$id' order by id asc limit 1";
$hasilnext = bukaquery($_sqlnext);
$barisnext = mysql_fetch_row($hasilnext);
$barisnext = mysqli_fetch_row($hasilnext);
$next = $barisnext[0];

$_sqlprev = "SELECT id FROM pegawai WHERE id<'$id' order by id desc limit 1";
$hasilprev = bukaquery($_sqlprev);
$barisprev = mysql_fetch_row($hasilprev);
$barisprev = mysqli_fetch_row($hasilprev);
$prev = $barisprev[0];

echo "<div align='center' class='link'>
@@ -95,17 +95,17 @@
from jgmlm where id='$id'
and tgl like '%".$tahun."-".$bulan."%' ORDER BY tgl ASC ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);
$ttllembur=0;
$ttlhr=0;

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='598px' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='70px'><div align='center'><font size='2' face='Verdana'><strong>Proses</strong></font></div></td>
<td width='420px'><div align='center'><font size='2' face='Verdana'><strong>Jml.Tambahan Jaga</strong></font></div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td width='70'>
<center>"; ?>
@@ -127,11 +127,11 @@
Hapus(" jgmlm "," id ='".$_GET['id']."' and tgl ='".$_GET['tgl']."'","?act=InputJagaMalam&action=TAMBAH&id=$id");
}

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
$hasil1=bukaquery("SELECT tgl,id,jml
from jgmlm where id='$id'
and tgl like '%".$tahun."-".$bulan."%' ORDER BY tgl ASC ");
$jumlah1=mysql_num_rows($hasil1);
$jumlah1=mysqli_num_rows($hasil1);
$i=$jumlah1/19;
$i=ceil($i);
echo("Data : $jumlah <a target=_blank href=http://".host()."/penggajian/pages/presensi/laporanpresensidetail.php?&id=$id>| Laporan |</a>");
@@ -10,7 +10,7 @@
<?php
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bulan = $baris[1];
?>
@@ -26,16 +26,16 @@
echo "<input type=hidden name=id value=$id><input type=hidden name=tgl value=$tgl><input type=hidden name=action value=$action>";
$_sql = "SELECT nik,nama FROM pegawai where id='$id'";
$hasil=bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);

$_sqlnext = "SELECT id FROM pegawai WHERE id>'$id' order by id asc limit 1";
$hasilnext = bukaquery($_sqlnext);
$barisnext = mysql_fetch_row($hasilnext);
$barisnext = mysqli_fetch_row($hasilnext);
$next = $barisnext[0];

$_sqlprev = "SELECT id FROM pegawai WHERE id<'$id' order by id desc limit 1";
$hasilprev = bukaquery($_sqlprev);
$barisprev = mysql_fetch_row($hasilprev);
$barisprev = mysqli_fetch_row($hasilprev);
$prev = $barisprev[0];

echo "<div align='center' class='link'>
@@ -86,17 +86,17 @@
from jumpasien where id='$id'
and thn='$tahun' and bln='$bulan' ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);
$ttllembur=0;
$ttlhr=0;

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='598px' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='70px'><div align='center'><font size='2' face='Verdana'><strong>Proses</strong></font></div></td>
<td width='520px'><div align='center'><font size='2' face='Verdana'><strong>Jumlah Pasien</strong></font></div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td width='70'>
<center>"; ?>
@@ -49,15 +49,15 @@
<?php
$_sql = "SELECT tnj from set_hadir ORDER BY tnj ASC";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='598px' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='100px'><div align='center'><font size='2' face='Verdana'><strong>Proses</strong></font></div></td>
<td width='250px'><div align='center'><font size='2' face='Verdana'><strong>Besar Tunjangan</strong></font></div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>
<center>";?>
@@ -49,15 +49,15 @@
<?php
$_sql = "SELECT tnj from set_jgmlm ORDER BY tnj ASC";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='598px' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='100px'><div align='center'><font size='2' face='Verdana'><strong>Proses</strong></font></div></td>
<td width='250px'><div align='center'><font size='2' face='Verdana'><strong>Besar Tunjangan</strong></font></div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>
<center>";?>
@@ -49,15 +49,15 @@
<?php
$_sql = "SELECT tnj from set_lemburhb ORDER BY tnj ASC";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='598px' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='100px'><div align='center'><font size='2' face='Verdana'><strong>Proses</strong></font></div></td>
<td width='250px'><div align='center'><font size='2' face='Verdana'><strong>Besar Tunjangan</strong></font></div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>
<center>";?>
@@ -49,15 +49,15 @@
<?php
$_sql = "SELECT tnj from set_lemburhr ORDER BY tnj ASC";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='598px' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='100px'><div align='center'><font size='2' face='Verdana'><strong>Proses</strong></font></div></td>
<td width='250px'><div align='center'><font size='2' face='Verdana'><strong>Besar Tunjangan</strong></font></div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>
<center>";?>
@@ -36,7 +36,7 @@
<?php
$_sql = "SELECT tingkat FROM pendidikan ORDER BY tingkat";
$hasil=bukaquery($_sql);
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<option id='TxtIsi2' value='$baris[0]'>$baris[0]</option>";
}
?>
@@ -67,16 +67,16 @@
<?php
$_sql = "SELECT tnj,pendidikan from set_jgtambah ORDER BY tnj ASC";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='598px' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='100px'><div align='center'><font size='2' face='Verdana'><strong>Proses</strong></font></div></td>
<td width='150px'><div align='center'><font size='2' face='Verdana'><strong>Besar Tunjangan</strong></font></div></td>
<td width='350px'><div align='center'><font size='2' face='Verdana'><strong>Pendidikan</strong></font></div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>
<center>";?>
@@ -10,7 +10,7 @@
<?php
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bln_leng=strlen($baris[1]);
$bulan="0";
@@ -33,16 +33,16 @@
echo "<input type=hidden name=id value=$id><input type=hidden name=tgl value=$tgl><input type=hidden name=action value=$action>";
$_sql = "SELECT nik,nama FROM pegawai where id='$id'";
$hasil=bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);

$_sqlnext = "SELECT id FROM pegawai WHERE id>'$id' order by id asc limit 1";
$hasilnext = bukaquery($_sqlnext);
$barisnext = mysql_fetch_row($hasilnext);
$barisnext = mysqli_fetch_row($hasilnext);
$next = $barisnext[0];

$_sqlprev = "SELECT id FROM pegawai WHERE id<'$id' order by id desc limit 1";
$hasilprev = bukaquery($_sqlprev);
$barisprev = mysql_fetch_row($hasilprev);
$barisprev = mysqli_fetch_row($hasilprev);
$prev = $barisprev[0];

echo "<div align='center' class='link'>
@@ -94,17 +94,17 @@
from tambahjaga where id='$id'
and tgl like '%".$tahun."-".$bulan."%' ORDER BY tgl ASC ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);
$ttllembur=0;
$ttlhr=0;

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='598px' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='70px'><div align='center'><font size='2' face='Verdana'><strong>Proses</strong></font></div></td>
<td width='520px'><div align='center'><font size='2' face='Verdana'><strong>Jml.Tambahan Jaga</strong></font></div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td width='70'>
<center>"; ?>
@@ -126,11 +126,11 @@
Hapus(" tambahjaga "," id ='".$_GET['id']."' and tgl ='".$_GET['tgl']."'","?act=InputTambahJaga&action=TAMBAH&id=$id");
}

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
$hasil1=bukaquery("SELECT tgl,id,jml
from tambahjaga where id='$id'
and tgl like '%".$tahun."-".$bulan."%' ORDER BY tgl ASC ");
$jumlah1=mysql_num_rows($hasil1);
$jumlah1=mysqli_num_rows($hasil1);
$i=$jumlah1/19;
$i=ceil($i);
echo("Data : $jumlah <a target=_blank href=http://".host()."/penggajian/pages/presensi/laporanpresensidetail.php?&id=$id>| Laporan |</a> ");
@@ -10,7 +10,7 @@
<?php
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bln_leng=strlen($baris[1]);
$blncari=$baris[1];
@@ -36,16 +36,16 @@
echo "<input type=hidden name=id value=$id><input type=hidden name=tgl value=$tgl><input type=hidden name=action value=$action>";
$_sql = "SELECT nik,nama FROM pegawai where id='$id'";
$hasil=bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);

$_sqlnext = "SELECT id FROM pegawai WHERE id>'$id' order by id asc limit 1";
$hasilnext = bukaquery($_sqlnext);
$barisnext = mysql_fetch_row($hasilnext);
$barisnext = mysqli_fetch_row($hasilnext);
$next = $barisnext[0];

$_sqlprev = "SELECT id FROM pegawai WHERE id<'$id' order by id desc limit 1";
$hasilprev = bukaquery($_sqlprev);
$barisprev = mysql_fetch_row($hasilprev);
$barisprev = mysqli_fetch_row($hasilprev);
$prev = $barisprev[0];

echo "<div align='center' class='link'>
@@ -118,21 +118,21 @@
from ketidakhadiran where id='$id'
and tgl like '%".$tahun."-".$bulan."%' ORDER BY tgl ASC ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);
$ttls=0;
$ttla=0;
$ttlc=0;
$ttli=0;

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='598px' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='70px'><div align='center'><font size='2' face='Verdana'><strong>Proses</strong></font></div></td>
<td width='110px'><div align='center'><font size='2' face='Verdana'><strong>Jns.Tdk Hadir</strong></font></div></td>
<td width='110px'><div align='center'><font size='2' face='Verdana'><strong>Katerangan</strong></font></div></td>
<td width='110px'><div align='center'><font size='2' face='Verdana'><strong>Jumlah</strong></font></div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
if($baris[2]=='S'){
$ttls=$ttls+$baris[4];
}
@@ -169,11 +169,11 @@
Hapus(" ketidakhadiran"," id ='".$_GET['id']."' and tgl ='".$_GET['tgl']."' and jns ='".$_GET['jns']."'","?act=InputTidakHadir&action=TAMBAH&id=$id");
}

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
$hasil1=bukaquery("SELECT tgl,id,jns,ktg,jml
from ketidakhadiran where id='$id'
and tgl like '%".$tahun."-".$bulan."%' ORDER BY tgl ASC ");
$jumlah1=mysql_num_rows($hasil1);
$jumlah1=mysqli_num_rows($hasil1);
$i=$jumlah1/19;
$i=ceil($i);
echo("Data : $jumlah, A : ".$ttla." , S : ".$ttls.", C : ".$ttlc.", I : ".$ttli." ");

Large diffs are not rendered by default.

@@ -2,7 +2,7 @@
include '../../../conf/conf.php';
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bulan = $baris[1];
?>
@@ -16,18 +16,18 @@
<?php
$_sql = "SELECT pendapatan,persen,total_insentif FROM set_insentif WHERE tahun='$tahun' and bulan='$bulan' ORDER BY pendapatan";
$hasil = bukaquery($_sql);
$jumlah = mysql_num_rows($hasil);
$jumlah = mysqli_num_rows($hasil);
$total_insentif ="0";
$no = 1;
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='10%'><div align='center'>No.</strong></div></td>
<td width='34%'><div align='center'>Pendapatan</div></td>
<td width='20%'><div align='center'>Prosentase</div></td>
<td width='34%'><div align='center'>Total Insentif</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
$total_insentif=$baris[2];
echo "<tr class='isi'>
<td>$no</td>
@@ -44,11 +44,11 @@
$keyword = trim(isset($_POST['keyword']))?trim($_POST['keyword']):NULL;
$_sql = "SELECT dep_id,persen FROM indexins where dep_id like '%".$keyword."%'ORDER BY persen desc";
$hasil = bukaquery($_sql);
$jumlah = mysql_num_rows($hasil);
$jumlah = mysqli_num_rows($hasil);
$ttl = 0;
$prosen = 0;
$no = 1;
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='10%'><div align='center'>No.</strong></div></td>
@@ -57,7 +57,7 @@
<td width='38%'><div align='center'>Total Insentif</div></td>
</tr>";
$insentifindex=0;
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
$insentifindex=($baris[1]/100)*$total_insentif;
$ttl=$ttl+$insentifindex;
$prosen=$prosen+$baris[1];
@@ -7,7 +7,7 @@
include '../../../conf/conf.php';
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bulan = $baris[1];
?>
@@ -21,18 +21,18 @@
<?php
$_sql = "SELECT pendapatan,persen,total_insentif FROM set_insentif WHERE tahun='$tahun' and bulan='$bulan' ORDER BY pendapatan";
$hasil = bukaquery($_sql);
$jumlah = mysql_num_rows($hasil);
$jumlah = mysqli_num_rows($hasil);
$total_insentif ="0";
$no = 1;
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='100%' border='1' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='10%'><div align='center'>No.</strong></div></td>
<td width='34%'><div align='center'>Pendapatan</div></td>
<td width='20%'><div align='center'>Prosentase</div></td>
<td width='34%'><div align='center'>Total Insentif</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
$total_insentif=$baris[2];
echo "<tr class='isi'>
<td>$no</td>
@@ -49,11 +49,11 @@
$keyword = trim(isset($_POST['keyword']))?trim($_POST['keyword']):NULL;
$_sql = "SELECT dep_id,persen FROM indexins where dep_id like '%".$keyword."%'ORDER BY persen desc";
$hasil = bukaquery($_sql);
$jumlah = mysql_num_rows($hasil);
$jumlah = mysqli_num_rows($hasil);
$ttl = 0;
$prosen = 0;
$no = 1;
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='100%' border='1' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='10%'><div align='center'>No.</strong></div></td>
@@ -62,7 +62,7 @@
<td width='38%'><div align='center'>Total Insentif</div></td>
</tr>";
$insentifindex=0;
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
$insentifindex=($baris[1]/100)*$total_insentif;
$ttl=$ttl+$insentifindex;
$prosen=$prosen+$baris[1];
@@ -3,7 +3,7 @@
<?php
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baristh = mysql_fetch_row($hasil);
$baristh = mysqli_fetch_row($hasil);
$tahun = $baristh[0];
$bulan = $baristh[1];
?>
@@ -27,7 +27,7 @@
}else if($action == "UBAH"){
$_sql = "SELECT dep_id,persen FROM indexins WHERE dep_id='$dep_id' ";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$dep_id = $baris[0];
$persen = $baris[1];
}
@@ -43,14 +43,14 @@
if($action == "UBAH"){
$_sql2 = "SELECT dep_id,nama FROM departemen where dep_id='$dep_id' ORDER BY dep_id";
$hasil2=bukaquery($_sql2);
while($baris2 = mysql_fetch_array($hasil2)) {
while($baris2 = mysqli_fetch_array($hasil2)) {
echo "<option id='TxtIsi1' value='$baris2[0]'>$baris2[0] $baris2[1]</option>";
}
}
if($action == "TAMBAH"){
$_sql = "SELECT dep_id,nama FROM departemen ORDER BY dep_id";
$hasildep=bukaquery($_sql);
while($barisdep = mysql_fetch_array($hasildep)) {
while($barisdep = mysqli_fetch_array($hasildep)) {
echo "<option id='TxtIsi1' value='$barisdep[0]'>$barisdep[0] $barisdep[1]</option>";
}
}
@@ -72,7 +72,7 @@

$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bulan = $baris[1];

@@ -3,7 +3,7 @@
<?php
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bulan = $baris[1];
?>
@@ -26,7 +26,7 @@
}else if($action == "UBAH"){
$_sql = "SELECT pendapatan,persen FROM set_insentif WHERE tahun='$tahun' and bulan='$bulan'";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$pendapatan = $baris[0];
$persen = $baris[1];
$total_insentif=$baris[2];
@@ -53,7 +53,7 @@

$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bulan = $baris[1];

@@ -3,7 +3,7 @@
<?php
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bulan = $baris[1];
?>
@@ -19,17 +19,17 @@
<?php
$_sql = "SELECT pendapatan,persen,total_insentif FROM set_insentif WHERE tahun='$tahun' and bulan='$bulan' ORDER BY pendapatan";
$hasil =bukaquery($_sql);
$jumlah =mysql_num_rows($hasil);
$jumlah =mysqli_num_rows($hasil);
$total_insentif="0";
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='12%'><div align='center'>Proses</div></td>
<td width='34%'><div align='center'>Pendapatan</div></td>
<td width='20%'><div align='center'>Prosentase</div></td>
<td width='34%'><div align='center'>Total Insentif</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
$total_insentif=$baris[2];
echo "<tr class='isi'>
<td>
@@ -73,10 +73,10 @@
$keyword =trim(isset($_POST['keyword']))?trim($_POST['keyword']):NULL;
$_sql = "SELECT dep_id,persen FROM indexins where dep_id like '%".$keyword."%' ORDER BY persen desc";
$hasil =bukaquery($_sql);
$jumlah =mysql_num_rows($hasil);
$jumlah =mysqli_num_rows($hasil);
$ttl=0;
$prosen=0;
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='12%'><div align='center'>Proses</div></td>
@@ -85,7 +85,7 @@
<td width='38%'><div align='center'>Total Insentif</div></td>
</tr>";
$insentifindex=0;
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
$insentifindex=($baris[1]/100)*$total_insentif;
$ttl=$ttl+$insentifindex;
$prosen=$prosen+$baris[1];
@@ -116,7 +116,7 @@
if ($aksi=="HAPUSINDEX") {
Hapus(" indexins "," dep_id ='".$_GET['dep_id']."'","?act=ListInsentif");
}
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo("<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td><div align='left'>Data : $jumlah, Ttl Prosen : ".$prosen."%, Ttl Insentif : ".formatDuit($ttl)." | <a target=_blank href=../penggajian/pages/insentif/LaporanInsentif.php?&keyword=$keyword>Laporan</a> | <a target=_blank href=../penggajian/pages/insentif/LaporanInsentifExel.php?&keyword=$keyword>Excel</a> |</div></td>
@@ -20,7 +20,7 @@
<?php
$_sql = "SELECT dep_id,nama FROM departemen ORDER BY dep_id";
$hasil=bukaquery($_sql);
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<option id='TxtIsi1' value='$baris[0]'>$baris[0] $baris[1]</option>";
}
?>
@@ -160,9 +160,9 @@
jam_jaga.jam_masuk,jam_jaga.jam_pulang from jam_jaga
ORDER BY jam_jaga.dep_id ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='10%'><div align='center'>Proses</div></td>
@@ -171,7 +171,7 @@
<td width='23%'><div align='center'>Jam Datang</div></td>
<td width='23%'><div align='center'>Jam Pulang</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>
<center>";?>
@@ -196,7 +196,7 @@
Hapus(" jam_jaga "," no_id ='".$no_id."' ","?act=ListJam&action=TAMBAH");
}

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo("<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td><div align='left'>Data : $jumlah</div></td>
@@ -2,7 +2,7 @@
<?php
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bulan =$baris[1];

@@ -21,16 +21,16 @@
echo "<input type=hidden name=id value=$id><input type=hidden name=action value=$action>";
$_sql = "SELECT nik,nama FROM pegawai where id='$id'";
$hasil=bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);

$_sqlnext = "SELECT id FROM pegawai WHERE id>'$id' order by id asc limit 1";
$hasilnext = bukaquery($_sqlnext);
$barisnext = mysql_fetch_row($hasilnext);
$barisnext = mysqli_fetch_row($hasilnext);
$next = $barisnext[0];

$_sqlprev = "SELECT id FROM pegawai WHERE id<'$id' order by id desc limit 1";
$hasilprev = bukaquery($_sqlprev);
$barisprev = mysql_fetch_row($hasilprev);
$barisprev = mysqli_fetch_row($hasilprev);
$prev = $barisprev[0];

if(empty($next)){
@@ -97,18 +97,18 @@
from jasa_lain where id='$id'
and thn='".$tahun."' and bln='".$bulan."' ORDER BY bsr_jasa ASC ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);
$ttllembur=0;
$ttlhr=0;

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='10%'><div align='center'>Proses</div></td>
<td width='30%'><div align='center'>Besar Jasa</div></td>
<td width='60%'><div align='center'>Keterangan</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td width='70'>
<center>"; ?>
@@ -2,7 +2,7 @@
<?php
$_sql = "SELECT * FROM set_tahun";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$tahun = $baris[0];
$bln_leng=strlen($baris[1]);
$bulan="0";
@@ -48,9 +48,9 @@
pegawai.stts_aktif<>'KELUAR' and pegawai.departemen like '%".$keyword."%'
group by pegawai.id order by pegawai.id ASC ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);
$ttljm=0;
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='9%'><div align='center'>Proses</div></td>
@@ -59,7 +59,7 @@
<td width='15%'><div align='center'>Depart</div></td>
<td width='20%'><div align='center'>Total Jasa lain</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
$ttljm=$ttljm+$baris[4];
echo "<tr class='isi' title='$baris[1] $baris[2]'>
<td>
@@ -10,9 +10,9 @@
$keyword=$_GET['keyword'];
$_sql = "SELECT kode,nama,tnj FROM jnj_jabatan where kode like '%".$keyword."%' or nama like '%".$keyword."%' ORDER BY tnj DESC";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);
$no=1;
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<caption><h3><font color='999999'>Laporan Master Jenjang</font></h3></caption>
<tr class='head'>
@@ -21,7 +21,7 @@
<td width='43%'><div align='center'>Nama Jenjang</div></td>
<td width='20%'><div align='center'>Tunjangan Jabatan</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>$no</td>
<td>$baris[0]</td>
@@ -15,9 +15,9 @@
$keyword=$_GET['keyword'];
$_sql = "SELECT kode,nama,tnj FROM jnj_jabatan where kode like '%".$keyword."%' or nama like '%".$keyword."%' ORDER BY tnj DESC";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);
$no=1;
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<caption><h3><font color='999999'>Laporan Master Jenjang</font></h3></caption>
<tr class='head'>
@@ -26,7 +26,7 @@
<td width='43%'><div align='center'>Nama Jenjang</div></td>
<td width='20%'><div align='center'>Tunjangan Jabatan</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>$no</td>
<td>$baris[0]</td>
@@ -19,7 +19,7 @@
}else if($action == "UBAH"){
$_sql = "SELECT * FROM jnj_jabatan WHERE kode='$kode'";
$hasil = bukaquery($_sql);
$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$kode = $baris[0];
$nama = $baris[1];
$tnj = $baris[2];
@@ -28,17 +28,17 @@
$keyword=trim(isset($_POST['keyword']))?trim($_POST['keyword']):NULL;
$_sql = "SELECT kode,nama,tnj FROM jnj_jabatan where kode like '%".$keyword."%' or nama like '%".$keyword."%' ORDER BY tnj DESC ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='12%'><div align='center'>Proses</div></td>
<td width='25%'><div align='center'>Kode Jenjang</div></td>
<td width='43%'><div align='center'>Nama Jenjang</div></td>
<td width='20%'><div align='center'>Tunjangan Jabatan</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>
<center>
@@ -66,7 +66,7 @@
?>
</div>
<?php
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo("<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td><div align='left'>Data : $jumlah | <a target=_blank href=../penggajian/pages/jenjang/LaporanJenjang.php?&keyword=$keyword>Laporan</a> | <a target=_blank href=../penggajian/pages/jenjang/LaporanJenjangExel.php?&keyword=$keyword>Excel</a> |</div></td>
@@ -19,8 +19,8 @@
pegawai.stts_aktif<>'KELUAR' and keanggotaan.jamsostek like '%".$keyword."%'
order by pegawai.id ASC ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
if(mysql_num_rows($hasil)!=0) {
$jumlah=mysqli_num_rows($hasil);
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<caption><h3><font color='999999'>Laporan Keanggotaan Koperasi & Jamsostek</font></h3></caption>
<tr class='head'>
@@ -30,7 +30,7 @@
<td width='100px'><div align='center'>Anggota Jamsostek</div></td>
<td width='100px'><div align='center'>Anggota BPJS</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>$baris[1]&nbsp;</td>
<td>$baris[2]&nbsp;</td>
@@ -56,16 +56,16 @@
<?php
$_sql = "SELECT stts,biaya from bpjs ORDER BY stts ASC ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='12%'><div align='center'>Proses</div></td>
<td width='33%'><div align='center'>Status Keanggotaan</div></td>
<td width='55%'><div align='center'>Biaya BPJS</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>
<center>
@@ -89,9 +89,9 @@
Hapus(" bpjs "," stts ='".$stts."' ","?act=DetailBpjs&action=TAMBAH&stts=$stts");
}

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
$hasil1=bukaquery("SELECT stts,biaya from bpjs ORDER BY stts ");
$jumladiv=mysql_num_rows($hasil1);
$jumladiv=mysqli_num_rows($hasil1);
$i=$jumladiv/19;
$i=ceil($i);
echo("<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
@@ -56,16 +56,16 @@
<?php
$_sql = "SELECT stts,biaya from jamsostek ORDER BY stts ASC ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='12%'><div align='center'>Proses</div></td>
<td width='33%'><div align='center'>Status Keanggotaan</div></td>
<td width='55%'><div align='center'>Biaya Jamsostek</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>
<center>
@@ -89,9 +89,9 @@
Hapus(" jamsostek "," stts ='".$stts."' ","?act=DetailJamsostek&action=TAMBAH&stts=$stts");
}

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
$hasil1=bukaquery("SELECT stts,biaya from jamsostek ORDER BY stts ");
$jumladiv=mysql_num_rows($hasil1);
$jumladiv=mysqli_num_rows($hasil1);
$i=$jumladiv/19;
$i=ceil($i);
echo("<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
@@ -56,16 +56,16 @@
<?php
$_sql = "SELECT stts,wajib from koperasi ORDER BY stts ASC ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='12%'><div align='center'>Proses</div></td>
<td width='33%'><div align='center'>Status Keanggotaan</div></td>
<td width='55%'><div align='center'>Besar Simpanan Wajib</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>
<center>
@@ -89,9 +89,9 @@
Hapus(" koperasi "," stts ='".$stts."' ","?act=DetailKoperasi&action=TAMBAH&stts=$stts");
}

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
$hasil1=bukaquery("SELECT stts,wajib from koperasi ORDER BY stts ASC ");
$jumladiv=mysql_num_rows($hasil1);
$jumladiv=mysqli_num_rows($hasil1);
$i=$jumladiv/19;
$i=ceil($i);
echo("<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
@@ -9,30 +9,30 @@
$action =isset($_GET['action'])?$_GET['action']:NULL;
$_sql = "SELECT id,koperasi,jamsostek,bpjs FROM keanggotaan WHERE id='$id'";
$hasil=bukaquery($_sql);
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
$action = "UBAH";
}else if(mysql_num_rows($hasil)==0) {
}else if(mysqli_num_rows($hasil)==0) {
$action = "TAMBAH";
}

$baris = mysql_fetch_row($hasil);
$baris = mysqli_fetch_row($hasil);
$koperasi = $baris[1];
$jamsostek = $baris[2];
$bpjs = $baris[3];

$_sql2 = "SELECT nik,nama FROM pegawai where id='$id'";
$hasil2=bukaquery($_sql2);
$baris2 = mysql_fetch_row($hasil2);
$baris2 = mysqli_fetch_row($hasil2);
echo"<input type=hidden name=id value=$id><input type=hidden name=action value=$action>";

$_sqlnext = "SELECT id FROM pegawai WHERE id>'$id' order by id asc limit 1";
$hasilnext = bukaquery($_sqlnext);
$barisnext = mysql_fetch_row($hasilnext);
$barisnext = mysqli_fetch_row($hasilnext);
$next = $barisnext[0];

$_sqlprev = "SELECT id FROM pegawai WHERE id<'$id' order by id desc limit 1";
$hasilprev = bukaquery($_sqlprev);
$barisprev = mysql_fetch_row($hasilprev);
$barisprev = mysqli_fetch_row($hasilprev);
$prev = $barisprev[0];

if(empty($prev)){
@@ -68,7 +68,7 @@
$_sql = "SELECT stts,wajib FROM koperasi ORDER BY stts";
$hasil=bukaquery($_sql);
echo "<option id='TxtIsi1' value='$koperasi'>$koperasi</option>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<option id='TxtIsi1' value='$baris[0]'>$baris[0]</option>";
}
?>
@@ -85,7 +85,7 @@
$_sql = "SELECT stts,biaya FROM jamsostek ORDER BY stts";
$hasil=bukaquery($_sql);
echo "<option id='TxtIsi2' value='$jamsostek'>$jamsostek</option>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<option id='TxtIsi2' value='$baris[0]'>$baris[0]</option>";
}
?>
@@ -102,7 +102,7 @@
$_sql = "SELECT stts,biaya FROM bpjs ORDER BY stts";
$hasil=bukaquery($_sql);
echo "<option id='TxtIsi3' value='$bpjs'>$bpjs</option>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<option id='TxtIsi3' value='$baris[0]'>$baris[0]</option>";
}
?>
@@ -38,9 +38,9 @@
pegawai.stts_aktif<>'KELUAR' and keanggotaan.jamsostek like '%".$keyword."%'
order by pegawai.id ASC ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='10%'><div align='center'>Proses</div></td>
@@ -50,7 +50,7 @@
<td width='15%'><div align='center'>Anggota Jamsostek</div></td>
<td width='15%'><div align='center'>Anggota BPJS</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>
<center>
@@ -71,7 +71,7 @@
</div>
</form>
<?php
if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo("<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td><div align='left'>Data : $jumlah <a target=_blank href=../penggajian/pages/keanggotaan/LaporanKeanggotaan.php?&keyword=$keyword>| Laporan |</a></div></td>
@@ -23,7 +23,7 @@
<?php
$_sql = "SELECT id,nik,nama FROM pegawai ORDER BY nama";
$hasil=bukaquery($_sql);
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<option id='TxtIsi1' value='$baris[0]'>$baris[2] $baris[1]</option>";
}
?>
@@ -74,9 +74,9 @@
pegawai.departemen,
pegawai.bidang from kasift inner join pegawai where pegawai.id=kasift.id ORDER BY pegawai.nik ASC ";
$hasil=bukaquery($_sql);
$jumlah=mysql_num_rows($hasil);
$jumlah=mysqli_num_rows($hasil);

if(mysql_num_rows($hasil)!=0) {
if(mysqli_num_rows($hasil)!=0) {
echo "<table width='99.6%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>
<tr class='head'>
<td width='7%'><div align='center'>Proses</div></td>
@@ -89,7 +89,7 @@
<td width='11%'><div align='center'>Departemen</div></td>
<td width='9%'><div align='center'>Bidang</div></td>
</tr>";
while($baris = mysql_fetch_array($hasil)) {
while($baris = mysqli_fetch_array($hasil)) {
echo "<tr class='isi'>
<td>
<center>";?>