[ 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_rinci.php
<?php //echo ! empty($message) ? '<p class="text-info">' . $message . '</p>': ''; echo ! empty($h2_title) ? '<div class="well alert "><strong>Daftar Kegiatan yang di-SPP-kan</strong><p class="pull-right">' . $h2_title. '</p></div>': ''; $flashmessage = $this->session->flashdata('message'); echo ! empty($flashmessage) ? '<p class="message">' . $flashmessage . '</p>': ''; if ( ! empty($link)){ echo '<p id="bottom_link">'; foreach($link as $links){ echo $links . ' '; } echo '</p>'; } echo '<div class="well"><p>Daftar Kegiatan yang di-SPP-kan:</p>'; echo '<table width="100%" class="table table-bordered table-striped">'; echo '<tr>'; echo '<th align="center">No</th>'; echo '<th align="center">Kode MAK</th>'; echo '<th align="center">Nama Kegiatan</th>'; echo '<th align="center">Total Anggaran</th>'; echo '<th align="center">Anggaran yang <font color="red">sudah</font> dicairkan</th>'; echo '<th align="center">Sisa Anggaran</th>'; echo '</tr>'; $no = 1; if( $kegiatan_spp->num_rows() > 0){ foreach($kegiatan_spp->result() as $row){ $blj_mak1 = $this->Mrekap->jml_bljf($row->idkeg); $ajuan = $this->Mspp->jumlah_ajuan($q1->kode,$row->idkeg); echo '<tr>'; echo '<td align="center" width="5%">'.$no.'</td>'; echo '<td width="8%"align="left">'.$row->kodemak1.' '.$row->kodemak2.' '.$row->kodemak3.' '.$row->kodemak4.'</td>'; $mak = $row->kodemak1.' '.$row->kodemak2.' '.$row->kodemak3.' '.$row->kodemak4; echo '<td width="32%" align="left" title="Klik untuk melihat rinci">'.anchor('spp/lihat_rinci_/'.$row->idkeg,$row->namamak4).'</td>'; echo '<td width="15%" align="right">'.number_format($blj_mak1,0,",",".").'</td>'; echo '<td align="right" width="15%">'; echo number_format($ajuan,0,',','.'); echo '</td>'; echo '<td width="15%" align="right">'.number_format($blj_mak1-$ajuan,0,",",".").'</td>'; echo '</tr>'; $no++; } echo '</table>'; } if( $rinci_spp->num_rows() > 0){ echo '<p>Rincian Kegiatan: <b>'.$idkeg->namamak4.'('.$idkeg->kodemak1.' '.$idkeg->kodemak2.' '.$idkeg->kodemak3.' '.$idkeg->kodemak4.')</b></p>'; echo '<table width="100%" class="table table-bordered table-striped">'; echo '<tr>'; echo '<th align="center">No</th>'; echo '<th align="center">Kode Rekening</th>'; echo '<th align="center">Nama Rekening</th>'; echo '<th align="center">Uraian</th>'; echo '<th align="center">Satuan</th>'; echo '<th align="center">Harga Satuan</th>'; echo '<th align="center">Kuantitas</th>'; echo '<th align="center">Jumlah</th>'; echo '</tr>'; $no = 1; foreach($rinci_spp->result() as $row){ if ($row->qty2 == NULL OR $row->qty2 == '0'){ $strx2 = ''; $setqty2 = 1;}else{$strx2 ='.'.$row->qty2; $setqty2 = $row->qty2;} if ($row->qty3 == NULL OR $row->qty3 == '0'){ $strx3 = ''; $setqty3 = 1;}else{$strx3 ='.'.$row->qty3; $setqty3 = $row->qty3;} if ($row->qty4 == NULL OR $row->qty4 == '0'){ $strx4 = ''; $setqty4 = 1;}else{$strx4 ='.'.$row->qty4; $setqty4 = $row->qty4;} if ($row->satuan2 == NULL){ $sat2 = '';}else{$sat2 ='.'.$row->satuan2;} if ($row->satuan3 == NULL){ $sat3 = '';}else{$sat3 ='.'.$row->satuan3;} if ($row->satuan4 == NULL){ $sat4 = '';}else{$sat4 ='.'.$row->satuan4;} echo '<tr>'; echo '<td align="center" width="5%">'.$no.'</td>'; echo '<td width="8%"align="left">'.$row->koderek1.' '.$row->koderek2.' '.$row->koderek3.' '.$row->koderek4.' '.$row->koderek5.' '.$row->koderek6.'</td>'; echo '<td width="32%" align="left">'.$row->namarek6.'</td>'; echo '<td width="32%" align="left">'.$row->uraianrinci.'</td>'; echo '<td width="32%" align="left">'.$row->satuan1.$sat2.$sat3.$sat4.'</td>'; echo '<td width="32%" align="left">'.number_format($row->hargasat,0,",",".").'</td>'; echo '<td width="32%" align="left">'.$row->qty1.$strx2.$strx3.$strx4.'</td>'; echo '<td align="center">'.number_format($row->hargasat*$row->qty1*$setqty2*$setqty3*$setqty4,0,",",".").'</td>'; echo '</tr>'; $no++; } echo '</table>';}?></form></div></br>