[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
simaku
/
application
/
views
/
spp
/
[
Home
]
File: riwayat.php
<?php echo ! empty($message) ? '<p class="text-info">' . $message . '</p>': ''; echo ! empty($h2_title) ? '<div class="well alert "><strong>'.$h2_title.'</strong></div>': ''; $flashmessage = $this->session->flashdata('message'); echo ! empty($flashmessage) ? '<p class="message">' . $flashmessage . '</p>': ''; ?> <?php // if($kode[1] == '00'){ if ($data_spp1->num_rows() > 0){ echo '<div class="well">'; echo '<p class="lead text-info"><b>Daftar SPM</b></p>'; echo '<table width="100%" class="table table-bordered table-striped">'; echo '<tr>'; echo '<th>No</th>'; echo '<th>No. SPM</th>'; echo '<th>No. SPP</th>'; echo '<th>Tgl. Penyajian</th>'; echo '<th>Otorisasi Pimpinan</th>'; echo '<th>Status SPM</th>'; echo '<th>Menu</th>'; echo '</tr>'; $no = 1; foreach($data_spp1->result() as $row){ echo '<tr>'; echo '<td align="center">'.$no.'</td>'; echo '<td align="center">'.$row->no_spm.'</td>'; echo '<td align="center">'.$row->no_spp.'</td>'; echo '<td align="center">'.date('d-m-Y',strtotime($row->tgl_saji)).'</td>'; echo '<td align="center">'.$row->otorisasi.' di-otorisasi</td>'; echo '<td align="center">'.$row->status_spm.'</td>'; $kode = explode('/',$row->no_spm); switch ($row->otorisasi){ case 'Belum': if ($kode[1] == '00'){ echo '<td align="center">'.anchor('spp/tampilkanspp','Tampilkan').' | '.anchor('spp/otorisasi_spp_unit','Lihat rinci').' | '.anchor('spp/otorisasi','Otorisasi').'<a/></td>'; }else{ echo '<td align="center">'.anchor('spp/tampilkanspp','Tampilkan').' | '.anchor('spp/proses','Ubah').' | '.anchor('spp/hapus','hapus',array('onclick'=>"return confirm('Anda yakin akan menghapus data ini?')")).'<a/></td>'; $this->session->set_userdata('no_spp',$row->no_spp); } break; case 'Sudah': if ($kode[1] == '00'){ if ($row->verifikasi2 == 'Disetujui'){ echo '<td align="center">'.anchor('spp/cetak/'.$kode[0].'spm'.$kode[2],'Cetak SPM').'<a/></td>'; }else{ echo '<td align="center">'.anchor('spp/tampilkanspp','Tampilkan').' | '.anchor('spp/batal_otorisasi_spp_unit','Lihat rinci').' | '.anchor('spp/batal_otorisasi','Batal Otorisasi',array('onclick'=>"return confirm('SPP dibatalkan. Anda yakin?')")).'<a/></td>'; } }else{ if ($row->verifikasi2 == 'Disetujui'){ echo '<td align="center">'.anchor('spp/cetak/'.$kode[0].'spm'.$kode[2],'Cetak SPM').'<a/></td>'; }else{ echo '<td align="center">'.anchor('spp/tampilkanspp','Tampilkan').'<a/></td>'; } } break; } echo '</tr>'; $no++; }?> </table> </div> <?php } // } ?>