[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
simkeu
/
dummy-old
/
application
/
views-old
/
admin
/
pagu
/
[
Home
]
File: aturpagu.php
<div class="alert alert-info"><strong>Daftar Pagu</strong></div> <table class="table table-bordered table-striped"> <?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>': ''; if ( ! empty($link)){ echo '<p id="bottom_link">'; foreach($link as $links){ echo $links . ' '; } echo '</p>'; } echo '<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>'; $jmlpagu = 0; foreach($query->result() as $row){ echo '<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>'; $status = $this->Mpagu->status_pagu($row->id_pagu); if ($status == TRUE){ echo '<td align="center">Sudah dianggarkan</td></tr>'; }else{ echo '<td align="center">'.anchor('adm_pagu/pilih/'.$row->id_pagu,'Anggarkan').'</td></tr>'; } $jmlpagu = $jmlpagu + $row->jumlah; $no++; } echo '<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> <th></th> </tr>';?></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></div>