[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
simkeu
/
dummy-old
/
application
/
views
/
akuntansi
/
[
Home
]
File: real_spm.php
<div id="main"> <div id="tengah"> <?php echo ! empty($message) ? '<h1>' . $message . '</h1>': ''; echo ! empty($h2_title) ? '<h2>' . $h2_title. '</h2>': ''; $flashmessage = $this->session->flashdata('message'); echo ! empty($flashmessage) ? '<p class="message">' . $flashmessage . '</p>': ''; echo '</div>'; if ($query->num_rows() > 0){ echo '<form>'; echo '<table width="99%">'; echo '<tr>'; echo '<th align="center">No</th>'; echo '<th align="center">No. SPM</th>'; echo '<th align="center">MAK</th>'; echo '<th align="center">Nama Kegiatan</th>'; echo '<th align="center">Realisasi SPM</th>'; echo '<th align="center">Unit Kerja</th>'; echo '<th align="center">Menu</th>'; echo '</tr>'; $no = 1; foreach($query->result() as $row){ echo '<tr>'; echo '<td align="center">'.$no.'</td>'; echo '<td align="center">'.$row->no_spm.'</td>'; echo '<td align="center">'.$row->kodemak1.$row->kodemak2.$row->kodemak3.$row->kodemak4.'</td>'; echo '<td align="left">'.$row->namamak4.'</td>'; echo '<td align="right">'.number_format($row->ajuan,0,',','.').'</td>'; $pecah = explode('.',$row->kode); $unit = $this->Munit->get_unit_by_kode($pecah[0])->row(); echo '<td align="center">'.$unit->nama.'</td>'; $kasuniv = $this->Makun->jml_kas_univ(); if ($kasuniv > $row->ajuan){ echo '<td align="center">'.anchor('akuntansi/jurnalspm/'.$row->id_spp.'-'.$row->id_unit.'-'.$row->idkeg.'-'.$row->ajuan.'-'.$unit->id_unit,'Jurnalkan',array('onclick'=>"return confirm('Anda yakin?')")).'</td>'; }else{ echo '<td align="center">'.anchor('akuntansi/real_spm','Jurnalkan',array('onclick'=>"alert('Kas di Kampus KURANG MENCUKUPI. Penjurnalan tidak bisa dilanjutkan. Mohon lakukan penjurnalan Realisasi Penerimaan')")).'</td>'; } echo '</tr>'; $no++; } echo '</table></form>'; } ?> </br></br> </div>