[ 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_terima.php
<?php echo ! empty($message) ? '<p class="text-info">' . $message . '</p>': ''; echo ! empty($h2_title) ? '<div class="well alert alert-info"><p class="pull-left"><strong>' . $h2_title. '</strong></p></div>': ''; $flashmessage = $this->session->flashdata('message'); echo ! empty($flashmessage) ? '<p class="message">' . $flashmessage . '</p>': ''; if ($query->num_rows() > 0){ echo '<table width="100%" class="table table-bordered table-striped" style="font-size:90%">'; echo '<thead>'; echo '<tr>'; echo '<th align="center"></th>'; echo '<th align="center">No</th>'; echo '<th colspan="2" align="center">MAK</th>'; echo '<th colspan="3" align="center">Nama Kegiatan</th>'; echo '<th colspan="4" align="center">Unit Kerja</th>'; echo '</tr>'; echo '</thead>'; $no = 1; foreach($query->result() as $row){ if ($row->koderek1 == 4){ echo '<tbody>'; echo '<tr>'; echo '<th align="center"></th>'; echo '<th align="center">'.$no.'</th>'; echo '<th colspan="2" align="center">'.$row->kodemak1.' '.$row->kodemak2.' '.$row->kodemak3.' '.$row->kodemak4.'</th>'; echo '<th colspan="3" align="left">'.$row->namamak4.'</th>'; $pecah = explode('.',$row->kode); $unit = $this->Munit->get_unit_by_kode($pecah[0])->row(); echo '<th colspan="4" align="center">'.$unit->nama.'</th>'; echo '</tr>'; $rinci = $this->Makun->get_rinci_by_idkeg($row->idkeg); if ($rinci->num_rows() > 0){ echo '<tr style="display:none">'; echo '<td align="center" style="background:#FFCC00;"></td>'; echo '<td align="center" style="background:#FFCC00;"></td>'; echo '<td align="center" style="background:#FFCC00;">No</td>'; echo '<td align="center" style="background:#FFCC00;">Kode Rekening</td>'; echo '<td align="center" style="background:#FFCC00;">Nama Rekening</td>'; echo '<td align="center" style="background:#FFCC00;">Uraian</td>'; echo '<td align="center" style="background:#FFCC00;" width="10%">Anggaran</td>'; echo '<td align="center" style="background:#FFCC00;" width="10%">Realisasi</td>'; echo '<td align="center" style="background:#FFCC00;">Menu</td>'; echo '</tr>'; $nomor=1; foreach ($rinci->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;} if ($row->koderek1 == 4){ echo '<tr style="display:none">'; echo '<td align="center" style="background:#FFFF99;"></td>'; echo '<td align="center" style="background:#FFFF99;"></td>'; echo '<td align="center" style="background:#FFFF99;">'.$nomor.'</td>'; echo '<td align="left" style="background:#FFFF99;">'.$row->koderek1.$row->koderek2.$row->koderek3.$row->koderek4.$row->koderek5.$row->koderek6.'</td>'; echo '<td align="left" style="background:#FFFF99;">'.$row->namarek6.'</td>'; echo '<td align="center" style="background:#FFFF99;">'.$row->uraianrinci.'</td>'; $anggaran = $row->hargasat*$row->qty1*$setqty2*$setqty3*$setqty4; echo '<td align="right" style="background:#FFFF99;" width="10%">'.number_format($anggaran,0,",",".").'</td>'; $realisasi = $this->Makun->realisasi_by_idrek6_idrinci_pre($row->idrek6, $row->idrinci); echo '<td align="right" style="background:#FFFF99;" width="10%">'.number_format($realisasi,0,",",".").'</td>'; echo '<td align="center" width="15%" style="background:#FFFF99;">'.anchor('akuntansi/terimaunit/'.$row->idunit.'-'.$row->idkeg.'-'.$row->idrek6.'-'.$row->idrinci.'-'.$anggaran,'Kas Unit',array('onclick'=>"return confirm('Anda yakin akan menggunakan KAS UNIT?')")).' | '.anchor('akuntansi/terima/'.$row->idunit.'-'.$row->idkeg.'-'.$row->idrek6.'-'.$row->idrinci.'-'.$anggaran,'Kas Univ./ST',array('onclick'=>"return confirm('Anda yakin akan menggunakan KAS Univ./ST?')")).'</td>'; }else{ echo '<tr style="display:none;">'; echo '<td align="center" style="background:#FFFF99; color:#aaa;"></td>'; echo '<td align="center" style="background:#FFFF99; color:#aaa;"></td>'; echo '<td align="center" style="background:#FFFF99; color:#aaa;">'.$nomor.'</td>'; echo '<td align="left" style="background:#FFFF99;color:#aaa;">'.$row->koderek1.$row->koderek2.$row->koderek3.$row->koderek4.$row->koderek5.$row->koderek6.'</td>'; echo '<td align="left" style="background:#FFFF99;color:#aaa;">'.$row->namarek6.'</td>'; echo '<td align="center" style="background:#FFFF99;color:#aaa;">'.$row->uraianrinci.'</td>'; echo '<td align="right" style="background:#FFFF99;color:#aaa;" width="10%">'.number_format($row->hargasat*$row->qty1*$setqty2*$setqty3*$setqty4,0,",",".").'</td>'; echo '<td align="center" width="15%" style="background:#FFFF99;color:#aaa;" width="10%"></td>'; echo '<td align="center" width="15%" style="background:#FFFF99;color:#aaa;"></td>'; echo '</tr>'; } $nomor++; } } echo '</tbody>'; $no++; } } echo '</table>'; } ?> <script> $(document).ready(function() { var togglePlus = 'icon-plus-sign'; var toggleMinus = 'icon-minus-sign'; var $subHead = $('tbody th:first-child'); $subHead.prepend('<i class="' + togglePlus + '" alt="collapse this section" />'); $('i', $subHead).addClass('clickable').click(function() { var toggleSrc = $(this).attr('class'); if ( toggleSrc == togglePlus ) { $(this).attr('class', toggleMinus).parents('tr').siblings().fadeIn('fast'); }else{ $(this).attr('class', togglePlus).parents('tr').siblings().fadeOut('fast'); }; }); }) </script>