php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /var/www/html/img_galeri/2r1asasas/root/var/www/html/fl/content/ |
| files >> //var/www/html/img_galeri/2r1asasas/root/var/www/html/fl/content/dashboard.php |
<?php
if (empty($_SESSION['namauser']) AND empty($_SESSION['passuser'])){
header('location:../../lockscreen.php');
}
else{
echo"
<section class='content'>";
$tampil = mysql_query("SELECT * FROM staff ORDER BY nama_staff");
echo "
<div class='row'>
<div class='col-xs-12'>
<div class='box box-primary'>
<div class='box-header'>
<h3 class='box-title'>List Setoran Staff FL</h3>
</div>
<div class='box-body'>
<table class='table table-striped'>
<thead>
<tr>
<th>Nama</th>
<th>Target</th>
<th>Setoran</th>
</tr>
</thead>
<tbody>";
$no=1;
while ($r=mysql_fetch_array($tampil)){
$target_cicilan_harian = formatRupiah($r['target_cicilan_harian']);
$customer = mysql_query("SELECT * FROM customer a, list_orderan b WHERE a.id_customer = b.id_customer AND a.id_staff='$r[id_staff]'");
$jumlah_bayar = 0;
while($c = mysql_fetch_array($customer)){
$lp = mysql_fetch_array(mysql_query("SELECT SUM(jumlah_bayar) AS jumlah_bayar FROM list_pembayaran WHERE id_list_orderan='$c[id_list_orderan]' AND tanggal_pembayaran='$tgl_sekarang'"));
$jumlah_bayar = $jumlah_bayar+$lp['jumlah_bayar'];
}
$setoran = formatRupiah($jumlah_bayar);
echo"
<tr>
<td>$r[nama_staff]</td>
<td>$target_cicilan_harian</td>
<td>$setoran</td>
</tr>";
$no++;
}
echo"
</tbody>
</table>
</div>
</div>
</div>
</div>";
$tampil = mysql_query("SELECT * FROM list_orderan a, customer b, status_lo c WHERE a.id_customer=b.id_customer AND a.id_status_lo=c.id_status_lo AND a.id_status_lo='1' ORDER BY a.id_list_orderan DESC");
echo "
<div class='row'>
<div class='col-xs-12'>
<div class='box box-primary'>
<div class='box-header'>
<h3 class='box-title'>List Request Kredit</h3>
</div>
<div class='box-body'>
<table class='table table-striped'>
<thead>
<tr>
<th width='100px'>No. Order</th>
<th>Tgl</th>
<th>Toko/Bengkel</th>
<th>Pemilik</th>
<th>Staff</th>
<th>Produk</th>
<th>Sistem</th>
</tr>
</thead>
<tbody>";
$no=1;
while ($r=mysql_fetch_array($tampil)){
$tanggal = DateToIndo2($r['tanggal']);
$harga_produk = formatRupiah($r['harga_produk']);
$kredit = formatRupiah($r['cicilan']);
$sisa = formatRupiah($r['sisa']);
$s=mysql_fetch_array(mysql_query("SELECT * FROM staff a, customer b WHERE a.id_staff=b.id_staff AND b.id_customer='$r[id_customer]'"));
if($r['tenor']==1){
$sistem = "cash $harga_produk";
}
else{
$sistem = "kredit $r[tenor] x $kredit";
}
echo"
<tr>
<td><a href='view-orderan-$r[id_list_orderan]'>$r[no_order]</a></td>
<td>$tanggal</td>
<td>$r[nama_toko]</td>
<td>$r[nama_pemilik]</td>
<td>$s[nama_staff]</td>
<td>$r[nama_produk]</td>
<td>$sistem</td>
</tr>";
$no++;
}
echo"
</tbody>
</table>
</div>
</div>
</div>
</div>";
echo"
</section>";
}
?>
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`