86 lines
2.8 KiB
PHP
86 lines
2.8 KiB
PHP
<?php
|
|
include("core/main.php");
|
|
|
|
|
|
?>
|
|
|
|
<div align="center">
|
|
<div id="frame" style="width:80%;">
|
|
<div id="frame_title">
|
|
<h5>DETIL PENDAPATAN</h5></div>
|
|
<div align="right" style="margin:5px;">
|
|
|
|
<div id="table_search">
|
|
<table width="95%" border="0" class="tb" cellspacing="0" cellspading="0">
|
|
<tr align="center">
|
|
<th width="8%">NOMR</th>
|
|
<th width="23%">NAMA</th>
|
|
<th width="15%">BESAR UANG</th>
|
|
<!--<th width="10%">TBP</th>-->
|
|
<th width="14%">POLY</th>
|
|
<th width="30%">KET</th>
|
|
</tr>
|
|
<?php
|
|
$sql = "SELECT d.NOMR, c.NAMA, a.kodetarif,b.NAMA_JASA, d.TBP, a.TARIFRS * a.QTY AS TARIFRS, e.nama AS POLY
|
|
FROM t_billrajal a
|
|
inner join t_bayarrajal d on d.idxdaftar=a.idxdaftar and a.nobill=d.nobill and d.tglbayar='$tglbayar' and d.shift='$shift'
|
|
inner join m_tarif b on a.kodetarif=b.kode
|
|
inner join m_pasien c on a.nomr=c.nomr
|
|
inner join t_pendaftaran f on a.idxdaftar=f.idxdaftar
|
|
inner join m_ruang e on e.no=f.kdpoly ";
|
|
|
|
$pager = paginate( $sql, 15, 5, "param1=valu1¶m2=value2");
|
|
|
|
//The paginate() function returns a mysql result set
|
|
|
|
|
|
foreach($pager['list'] as $data) {?>
|
|
<tr align="center" <?php echo "class =";
|
|
$count++;
|
|
if ($count % 2) {
|
|
echo "tr1"; }
|
|
else {
|
|
echo "tr2";
|
|
}
|
|
?>>
|
|
<td><strong><?php echo $data['NOMR'];?></strong></td>
|
|
<td><?php echo $data['NAMA'];?> </td>
|
|
<td align="right"><?php echo number_format($data['TARIFRS'], 0);?> </td>
|
|
<!--<td><?php echo $data['TBP']; ?></td>-->
|
|
<td><?php echo $data['POLY']; ?></td>
|
|
<td><?php echo $data['NAMA_JASA'];?> </td>
|
|
</tr>
|
|
<?php }
|
|
|
|
//Display the full navigation in one go
|
|
echo $pager['nav'];
|
|
?>
|
|
|
|
</table>
|
|
|
|
<?php
|
|
|
|
//Display the full navigation in one go
|
|
echo $pager['nav'];
|
|
|
|
$sql_export = "SELECT d.NOMR, c.NAMA, a.kodetarif,b.NAMA_JASA, d.TBP, a.TARIFRS * a.QTY AS TARIFRS, e.nama AS POLY
|
|
FROM t_billrajal a
|
|
inner join t_bayarrajal d on d.idxdaftar=a.idxdaftar and a.nobill=d.nobill and d.tglbayar='$tglbayar' and d.shift='$shift'
|
|
inner join m_tarif b on a.kodetarif=b.kode
|
|
inner join m_pasien c on a.nomr=c.nomr
|
|
inner join t_pendaftaran f on a.idxdaftar=f.idxdaftar
|
|
inner join m_ruang e on e.no=f.kdpoly ";
|
|
|
|
|
|
?>
|
|
<form action="gudang/excelexport.php" enctype="multipart/form-data" method="post">
|
|
<input type="hidden" value="<?php echo $sql_export; ?>" name="query" />
|
|
<input type="hidden" value="<?php echo "DetilPendapatan"; ?>" name="header" />
|
|
<input type="hidden" value="<?php echo "DetilPendapatan"; ?>" name="filename" />
|
|
<input type="submit" value="Export To Excel" class="text"/>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|