/
view.php
58 lines (51 loc) · 2.25 KB
/
view.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
$status=array(0=>'Lunas',1=>'Pembayaran Ke 1',2=>'Pembayaran Ke 2',3=>'Pembayaran Ke 3',4=>'Pembayaran Ke 4');
echo form_open('keuangan');
?>
<table class="table table-bordered">
<tr class="success"><td colspan="2">PERIODE LAPORAN</td></tr>
<tr><td width="150">Tanggal Mulai</td><td><?php echo inputan('text', 'tanggal1','col-sm-3','Tanggal Awal ..', 1, $tanggal1,array('id'=>'datepicker'));?></td></tr>
<tr><td>Tanggal Sampai</td><td><?php echo inputan('text', 'tanggal2','col-sm-3','Tanggal Akhir ..', 1, $tanggal2,array('id'=>'datepicker1'));?></td></tr>
<tr><td colspan="2"><input type="submit" name="submit" value="Preview" class="btn btn-danger btn-sm">
<?php echo anchor(base_url().'keuangan/laporanpembayaran/'.$tanggal1.'/'.$tanggal2.'/cetak','cetak',array('class'=>'btn btn-danger btn-sm','target'=>'_blank'))?>
<?php echo anchor(base_url().'keuangan/laporanpembayaran/'.$tanggal1.'/'.$tanggal2.'/download','Export Ke Ms.Word',array('class'=>'btn btn-danger btn-sm','target'=>'_blank'))?>
</table>
</form>
<?php
if(isset($_POST['submit']))
{
?>
<table class="table table-bordered">
<tr><th width="10">No</th><th width="90">Tanggal</th>
<th width="70">Nim</th>
<th>Nama Mahasiswa</th>
<th width="200">Program Studi</th>
<th width="220">Jenis Bayar</th>
<th width="60">Jumlah</th></tr>
<?php
$no=1;
$jumlah=0;
foreach ($transaksi as $r)
{
echo "<tr>
<td>$no</td>
<td>". tgl_indo($r->tanggal)."</td>
<td>". strtoupper($r->nim)."</td>
<td>". strtoupper($r->nama)."</td>
<td>". strtoupper($r->nama_konsentrasi)."</td>
<td>". strtoupper($r->keterangan)."</td>
<td align='right'>". rp((int)$r->jumlah)."</td>
</tr>";
$jumlah=$jumlah+$r->jumlah;
$no++;
}
?>
<tr><td colspan="6"><p align='right'>Grand Total</p></td><td align='right'><?php echo rp($jumlah);?></td></tr>
</table>
<?php } ?>
<script type="text/javascript">
function cetak(id,id2)
{
window.open('http://localhost/akademik/keuangan/cetak/','1397003076569','width=700,height=500,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=1,left=0,top=0');
}
</script>