[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
simaku
/
application
/
views
/
admin
/
pagu
/
[
Home
]
File: aturpagu2.php
<div class="alert alert-info"><strong>Daftar Pagu</strong></div> <?php $no=$hal+1; echo ! empty($message) ? '<p class="message">' . $message . '</p>': ''; $flashmessage = $this->session->flashdata('message'); echo ! empty($flashmessage) ? '<p class="message">' . $flashmessage . '</p>': '';?> <p id="bottom_link"> <?php if ( ! empty($link)){ foreach($link as $links){ echo $links . ' '; } } // var_dump($this->session->userdata()); $tahunanggaran = $this->Minfo->info()->row()->th_angg; ?> </p> <table class="table table-bordered table-condensed"> <thead> <tr> <th rowspan="2">No</th> <th rowspan="2">Kode Pagu</th> <th rowspan="2">Sumber Pagu</th> <th rowspan="2">Besar Pagu</th> <th colspan="2">Penggunaan Pagu</th> <th rowspan="2">Actions</th> <th rowspan="2">Status</th> </tr> <tr> <th>%</th> <th>Nominal</th> </tr> </thead> <tbody> <?php $jmlpagu = 0; foreach($query->result() as $row){?> <tr> <td align="center"><?=$no?></td> <td align="center"><?=$row->id_pagu?></td> <td align="left"><?=$row->sumber?></td> <td align="right"><?=number_format($row->jumlah,0,",",".")?></td><td align="right">0</td> <td align="right"><?=number_format($row->jumlah,0,",",".")?></td> <td align="center"><?=anchor('adm_pagu/updatepagu/'.$row->id_pagu,'update',array('class' => 'update')).' | '.anchor('adm_pagu/deletepagu/'.$row->id_pagu,'hapus',array('class'=> 'delete','onclick'=>"return confirm('Anda yakin akan menghapus data ini?')"))?></td> <?php $status = $this->Mpagu->status_pagu($row->id_pagu); if($row->is_surplus == 1){ $is_akuntansi = $this->Msaldo->info_saldo_by_tahun($tahunanggaran - 1); if($is_akuntansi->num_rows()>0) { $is_saldo_posting = $this->Msaldo->info_saldo_posting_by_tahun($tahunanggaran - 1); if($is_saldo_posting->num_rows()>0){?> <td align="center">Sudah diakuntansikan</td> <?php }else{?> <td align="center">Sudah diproses</td> <?php } ?> <?php }else{?> <td align="center"> <a href="<?=base_url('adm_pagu/akuntansikan_pagu_surplus/'.$row->id_pagu)?>" onclick="return confirm('Anda yakin?')">Akuntansikan</a> </td> <?php } ?> <?php }else{ if ($status == TRUE){?> <td align="center">Sudah dianggarkan</td> <?php }else{?> <td align="center"><?=anchor('adm_pagu/pilih/'.$row->id_pagu,'Anggarkan')?></td> <?php }} $jmlpagu = $jmlpagu + $row->jumlah; $no++; }?> </tr> <tr> <td align="center"></td> <td align="center"></td> <td align="left">TOTAL PAGU</td> <td align="right"><?=number_format($jmlpagu,0,",",".")?></td> <td align="center"></td> <td align="center"></td> <td align="center"></td> <td></td> </tr> </tbody> </table> <br> <table class="table table-bordered table-striped"> <tr style="background:#E6EDF5;font-size: 120%;"> <th style="color:#4F76A3; ">Total Pagu </th> <td style="color:#4F76A3; " width="35%" align="right"><?php echo number_format($this->Mpagu->jumlah(),0,',','.'); ?></td> </tr> <tr> <th>Total Pendapatan </th> <td align="right" style="padding-right: 40px" ><?php echo number_format($this->Mpagu->total_pendapatan_all_unit(),0,',','.'); ?></td> </tr> <tr> <th>Total Belanja </th> <td align="right" style="padding-right: 40px" ><?php echo number_format($this->Mpagu->total_belanja_all_unit(),0,",","."); ?></td> </tr> <tr> <th>Ajuan Anggaran yang mengurangi Pagu</th> <td align="right" style="padding-right: 40px" ><?php echo number_format($this->Mpagu->ajuan_anggaran(),0,",","."); ?></td> </tr> <tr style="background:#E6EDF5;font-size: 120%;"> <th style="color:#4F76A3">Sisa Pagu </th> <td style="color:#4F76A3; " width="25%" align="right"><?php echo number_format($this->Mpagu->sisa_pagu_total(),0,",","."); ?></td> </tr> </table>