[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
BACKUP C 19-12
/
XAMPP74
/
htdocs
/
simaku
/
application-old
/
views
/
spp
/
[
Home
]
File: lihat_spm.php
<html> <style type="text/css"> body { margin: 0.1in; } h1, h2, h3, h4, h5, h6, li, blockquote, p, th, td { font-family: Helvetica, Arial, Verdana, sans-serif; /*Trebuchet MS,*/ } h1, h2, h3, h4 { /*color: #5E88B6;*/ font-weight: normal; } h4, h5, h6 { color: #5E88B6; } h2 { margin: 0 auto auto auto; font-size: x-large; } li, blockquote, p, th, td { font-size: 80%; } ul { list-style: url(/img/bullet.gif) none; } #footer { border-top: 1px solid #CCC; text-align: right; } P.breakhere { page-break-after: always } </style> <body> <?php if ($this->session->userdata('wewenang') == 'otorisator1' and $this->session->userdata('password') == 'otorisator1') { ?> <table> <tr> <form name="spp_form" method="post" action="<?= $form_action_verifikasi_spm ?>"> <td><input type="submit" title="Klik untuk verifikasi SPM" name="submit" id="submit" value=" SETUJU " onclick="return confirm('Anda yakin?')" /></td> </form> <!-- <form name="spp_form" method="post" action="<?= $form_action_tolak_verifikasi_spm ?>"> <td><input type="submit" title="Klik untuk TOLAK verifikasi SPM" name="submit" id="submit" value=" DITOLAK " /></td> </form> --> <form name="spp_form" method="post" action="<?= $form_action_tolak_verifikasi_spm2 ?>"> <td><input type="submit" title="Klik untuk TOLAK verifikasi SPM" name="submit" id="submit" value=" DITOLAK" onclick="return confirm('Anda yakin?')" /></td> </form> </tr> </table> <?php } if ($this->session->userdata('wewenang') == 'otorisator2' and $this->session->userdata('password') == 'otorisator2') { ?> <table> <tr> <form name="spp_form" method="post" action="<?= $form_action_otorisasi_spm ?>"> <td><input type="submit" title="Klik untuk otorisasi SPM" name="submit" id="submit" value=" SETUJU " onclick="return confirm('Anda yakin?')" /></td> </form> <!-- <form name="spp_form" method="post" action="<?= $form_action_tolak_otorisasi_spm ?>"> <td><input type="submit" title="Klik untuk TOLAK otorisasi SPM" name="submit" id="submit" value=" DITOLAK " /></td> </form> --> <form name="spp_form" method="post" action="<?= $form_action_tolak_otorisasi_spm2 ?>"> <td><input type="submit" title="Klik untuk TOLAK otorisasi SPM" name="submit" id="submit" value=" DITOLAK" onclick="return confirm('Anda yakin?')" /></td> </form> </tr> </table> <?php } echo !empty($message) ? '<h3>' . $message . '</h3>' : ''; $data_spp = $query->row(); echo '<table width="100%">'; echo '<tr>'; echo '<th scope="col"><img src="' . base_url() . 'images/logo_ueu.gif" alt="logo_supra" width="81" height="86" /></th>'; echo '<th scope="col">'; echo '<table width="354" border="1" > <tr> <td >Nomor</td> <td >Tanggal Penyajian</td> <td >Tahun Anggaran</td> <td >Unit Kerja</td> </tr> <tr> <td >' . $data_spp->no_spp . '</td> <td >' . date('d-m-Y', strtotime($data_spp->tgl_saji)) . '</td> <td >' . date("Y") . '</td> <td>' . $namaunit->nama . '</td> </tr> </table>'; echo '</th>'; echo '</tr>'; echo '</table><br>'; echo '<table width="100%" border="1px solid" cellpadding="5" >'; echo '<tr>'; echo '<th>No</th>'; echo '<th>Kode MAK</th>'; echo '<th>Nama Kegiatan</th>'; echo '<th>Anggaran</th>'; echo '<th>Anggaran yg pernah diterima</th>'; echo '<th>Anggaran yg tersedia</th>'; echo '<th>Anggaran yg diminta</th>'; echo '<th>Sisa Anggaran</th>'; echo '</tr>'; $no = 1; if ($daftarkegspp->num_rows() > 0) { $no = 1; $angg_scair = 0; $jumlah = 0; $totagg = 0; $tersedia = 0; $sisa = 0; $totalcair = 0; foreach ($daftarkegspp->result() as $row) { $blj_mak1 = $this->Mrekap->jml_bljf($row->idkeg); $angg_scair = $this->Mspp->jumlah_ajuan_before($no_spm, $q1->kode, $row->idkeg); echo '<tr>'; echo '<td>' . $no . '</td>'; echo '<td align="left">' . $row->kodemak1 . $row->kodemak2 . $row->kodemak3 . $row->kodemak4 . '</td>'; echo '<td>' . $row->namamak4 . '</td>'; echo '<td align="right">' . number_format($blj_mak1, 0, ",", ".") . '</td>'; echo '<td align="right">' . number_format($angg_scair, 0, ',', '.') . '</td>'; echo '<td align="right">' . number_format($blj_mak1 - $angg_scair, 0, ",", ".") . '</td>'; echo '<td align="right">' . number_format($row->ajuan, 0, ',', '.') . '</td>'; echo '<td align="right">' . number_format(($blj_mak1 - $angg_scair) - $row->ajuan, 0, ",", ".") . '</td>'; echo '</tr>'; $totagg = $totagg + $blj_mak1; $tersedia = $tersedia + ($blj_mak1 - $angg_scair); $totalcair = $totalcair + $angg_scair; $jumlah = $jumlah + $row->ajuan; $sisa = $sisa + (($blj_mak1 - $angg_scair) - $row->ajuan); $no++; } echo '<tr>'; echo '<td colspan="6" align="right">TOTAL</td>'; echo '<td align="right">' . number_format($jumlah, 0, ',', '.') . '</td>'; echo '<td align="right"></td>'; echo '</tr>'; } echo '</table><br>'; echo '<table width="100%" >'; echo '<tr><td width="25%" colspan="2"></td><td width="25%"></td><td align="center">' . $this->Minfo->info()->row()->alamat . ',' . date('d-m-Y', strtotime($daftarkegspp->row()->tgl_saji)) . '</td></tr>'; echo '<tr> <td width="25%" colspan="2></td><td width="25%"></td><td width="25%"></td><td align="center">' . strtoupper($namaunit->nama) . '</td></tr>'; ?> <tr> <td width="25%" colspan="2">Bismillahirrahmanirrahim. Ajuan Surat Permintaan Pembayaran (SPP) kami buat sesuai dengan dokumen perencanaan dan anggaran. Setelah dana kami terima, akan kami gunakan sesuai dengan peruntukannya dan akan kami pertanggungjawabkan tepat waktu sesuai dengan aturan yang berlaku.</td> <td width="25%"></td> <td align="center"> <!--<img src="<?= base_url() ?>images/<?= $namaunit->kode ?>.jpg" width="150" height="75"/>--> <img src="<?= base_url() ?>images/signature_spm.gif" width="150" height="75" /> </td> </tr> <?php echo '<tr><td width="25%"></td><td width="25%"></td><td width="25%"></td><td align="center">' . strtoupper($namaunit->nama_pimp) . '</td></tr>'; echo '</table>'; ?> <hr> <table width="100%"> <tr> <td rowspan="4" border="1">Surat Perintah Membayar (SPM) No: <?php echo $row->no_spm; ?><br><br>Bendahara Keuangan dimohon membayarkan uang sejumlah : Rp <?php echo number_format($jumlah, 0, ',', '.'); ?><br><br></td> <td align="center" colspan="3">Menyetujui,</td> </tr> <?php $oto1 = $this->Munit->cari_unit($info1->id_unit)->row(); $oto2 = $this->Munit->cari_unit($info2->id_unit)->row(); ?> <tr> <td align="center"><?php echo strtoupper($oto1->nama); ?><br><br><br></td> <td> <font color="white"></font> </td> <td align="center"><?php echo strtoupper($oto2->nama); ?><br><br><br></td> </tr> <tr> <td align="center"></td> <td></td> <td align="center"></td> </tr> <tr> <td align="center"><u><?php echo strtoupper($oto1->nama_pimp); ?></u></td> <td></td> <td align="center"><u><?php echo strtoupper($oto2->nama_pimp); ?></u></td> </tr> </table> </body> </html>