[ 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: aturpagu.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; ?> <a class="btn btn-warning pull-right" data-target="#myModal" data-toggle="modal">SALDO SURPLUS TAHUN LALU</a> <!-- Modal --> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel">Informasi Saldo Surplus Tahun <?=$tahunanggaran - 1?></h4> </div> <div class="modal-body"> <?php $ceksurplus = $this->Msaldo->info_saldo_by_tahun($tahunanggaran - 1); if($ceksurplus->num_rows()>0){?> <p>Saldo : Rp <?=number_format($ceksurplus->row()->nominal,2,',','.') ?><span class="pull-right">Ubah</span></p> <?php }else{?> <p class="alert alert-danger">Belum ada informasi.<a class="pull-right btn btn-success btn-sm" role="button" data-toggle="collapse" href="#collapseExample" aria-expanded="false" aria-controls="collapseExample">Input Saldo</a></p> <div class="collapse" id="collapseExample"> <div class="well"> <form class="form-horizontal" action="<?=base_url('adm_pagu/tambah_saldosurplus')?>" method="post"> <div class="form-group"> <label for="inputPassword3" class="col-sm-2 control-label">Nominal Surplus Tahun Lalu </label> <div class="col-sm-10"> <input type="text" class="form-control" id="inputPassword3" placeholder="Tulis Angka Nominal tanpa titik" name="saldo"> </div> </div> <button type="submit" class="btn btn-primary" onclick="return confirm('Anda yakin nominal tersebut sama dengan SURPLUS TAHUN YANG LALU?')">SIMPAN</button> </form> </div> </div> <?php } ?> </div> </div> </div> </div> </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){?> <td></td> <?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>