[ 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: verifikasi.php
<?php echo ! empty($message) ? '<p class="text-info">' . $message . '</p>': ''; echo ! empty($h2_title) ? '<div class="well alert "><p class="pull-left"><strong>'.$h2_title.'</strong></p></div>': ''; $flashmessage = $this->session->flashdata('message'); echo ! empty($flashmessage) ? '<p class="message">' . $flashmessage . '</p>': ''; $oto1 = $this->Munit->cari_unit($info1->id_unit)->row(); $oto2 = $this->Munit->cari_unit($info2->id_unit)->row(); if ($data_spp->num_rows() > 0){ echo '<p class="lead">Daftar SPP</p>'; echo '<table class="table table-bordered table-striped">'; echo '<tr>'; echo '<th>No</th>'; echo '<th>No. SPP</th>'; echo '<th>Tgl. Penyajian</th>'; echo '<th>Otorisasi Pimpinan</th>'; echo '<th>Status SPP</th>'; echo '<th>Menu</th>'; echo '</tr>'; $no = 1; foreach($data_spp->result() as $row){ $pisah1 = explode('/',$row->no_spp); echo '<tr>'; echo '<td align="center">'.$no.'</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_spp.'</td>'; echo '<td align="left">'.anchor('spp/tampilkanspp/'.$pisah1[2],'Verifikasi').'</td>'; echo '</tr>'; $no++; } echo '</table>'; echo '<hr>'; } ?> <?php if ($data_spp1->num_rows() > 0){ echo '<p class="lead">Daftar SPP yang siap di-approve</p>'; echo '<table class="table table-bordered table-striped">'; echo '<tr>'; echo '<th align="center" rowspan="2">No</th>'; echo '<th align="center" rowspan="2">No. SPM</th>'; echo '<th align="center" rowspan="2">No. SPP</th>'; echo '<th align="center" rowspan="2">Tgl. Penyajian</th>'; echo '<th align="center" rowspan="2">Status SPM</th>'; echo '<th align="center" colspan="2">Status Approval</th>'; echo '<th align="center" rowspan="2">Menu</th>'; echo '</tr>'; echo '<tr>'; echo '<th align="center" >'.strtoupper($oto1->nama).'</th>'; echo '<th align="center">'.strtoupper($oto2->nama).'</th>'; echo '</tr>'; $no = 1; foreach($data_spp1->result() as $row){ $alasan = $this->Mspp->cari_alasan($row->id_spp); $pisah2 = explode('/',$row->no_spm); echo '<tr>'; echo '<td align="center">'.$no.'</td>'; echo '<td align="center">'.anchor('spp/lihatspm/'.$pisah2[0].'spm'.$pisah2[2],$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->status_spm.'</td>'; if ($row->verifikasi1=='Ditolak' ){ echo '<td align="center">'.$row->verifikasi1.' <a href="#myModal2'.$no.'" role="button" class="btn btn-mini" data-toggle="modal" title="Klik untuk melihat Alasan Pembatalan" ><i class="icon-info-sign"></i></a> <div id="myModal2'.$no.'" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 id="myModalLabel">Alasan Penolakan</h3> </div> <div class="modal-body"> <p>'.$alasan.'</p> </div> <div class="modal-footer"> <button class="btn" data-dismiss="modal" aria-hidden="true">OK</button> </div> </div></td>'; }else{ echo '<td align="center">'.$row->verifikasi1.'</td>'; } if ($row->verifikasi2=='Ditolak' ){ echo '<td align="center">'.$row->verifikasi2.' <a href="#myModal3'.$no.'" role="button" class="btn btn-mini" data-toggle="modal" title="Klik untuk melihat Alasan Pembatalan" ><i class="icon-info-sign"></i></a> <div id="myModal3'.$no.'" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 id="myModalLabel">Alasan Penolakan</h3> </div> <div class="modal-body"> <p>'.$alasan.'</p> </div> <div class="modal-footer"> <button class="btn" data-dismiss="modal" aria-hidden="true">OK</button> </div> </div></td>'; }else{ echo '<td align="center">'.$row->verifikasi2.'</td>'; } if ($row->verifikasi1=='Ditolak' ){ echo '<td align="left">'.anchor('spp/batal_verifikasi/'.$pisah2[0],'Batal',array('onclick'=>"return confirm('Anda yakin akan mem-BATAL-kan SPP ini?')")).'</td>'; }else{ echo '<td align="center"></td>'; } echo '</tr>'; $no++; } echo '</table><hr>'; } ?> <?php if ($data_spp2->num_rows() > 0){ echo '<p class="lead">Daftar SPM</p>'; echo '<table class="table table-bordered table-striped">'; echo '<tr>'; echo '<th align="center" rowspan="2">No</th>'; echo '<th align="center" rowspan="2">No. SPM</th>'; echo '<th align="center" rowspan="2">No. SPP</th>'; echo '<th align="center" rowspan="2">Unit Kerja</th>'; echo '<th align="center" rowspan="2">Tgl. Penyajian</th>'; echo '<th align="center" rowspan="2">Status SPM</th>'; echo '<th align="center" colspan="2">Status Approval</th>'; echo '<th align="center" rowspan="2">Menu</th>'; echo '</tr>'; echo '<tr>'; echo '<th align="center" >'.strtoupper($oto1->nama).'</th>'; echo '<th align="center">'.strtoupper($oto2->nama).'</th>'; echo '</tr>'; $no = 1; foreach($data_spp2->result() as $row){ $pisah3 = explode('/',$row->no_spm); $pecahunit = $pisah3[2]; $q= $this->Munit->get_idunit_by_kode($pecahunit); 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 >'.$q->row()->nama.'</td>'; echo '<td align="center">'.date('d-m-Y',strtotime($row->tgl_saji)).'</td>'; echo '<td align="center">'.$row->status_spm.'</td>'; echo '<td align="center">'.$row->verifikasi1.'</td>'; echo '<td align="center">'.$row->verifikasi2.'</td>'; echo '<td align="center">'.anchor('spp/cetak/'.$pisah3[0].'spm'.$pisah3[2],'Cetak').'</td>'; echo '</tr>'; $no++; } } ?> </table>