[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
simaku
/
application-old
/
views
/
akuntansi
/
[
Home
]
File: lras.php
<br/> <?php echo ! empty($message) ? '<p class="text-info">' . $message . '</p>': ''; echo anchor('akuntansi/lras2','BERBASIS SIFAT vs. UNIT KERJA',array('class'=>"btn btn-warning"));echo ' '; echo anchor('akuntansi/lra','BERBASIS FUNGSI',array('class'=>"btn btn-info")); echo '<hr>'; $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 '<tr>'; echo '<th rowspan="2" align="center">No</th>'; echo '<th rowspan="2" align="center">Kode Rekening</th>'; echo '<th rowspan="2" align="center">Nama Rekening</th>'; echo '<th rowspan="2" align="center">Unit Kerja</th>'; echo '<th colspan="2" align="center">Anggaran</th>'; echo '<th colspan="2" align="center">Realisasi</th>'; echo '<th colspan="2" align="center">Selisih</th>'; echo '</tr>'; echo '<tr>'; echo '<th align="center" width="10%">Pendapatan</th>'; echo '<th align="center" width="10%">Belanja</th>'; echo '<th align="center" width="10%">Pendapatan</th>'; echo '<th align="center" width="10%">Belanja</th>'; echo '<th align="center" width="10%">Pendapatan</th>'; echo '<th align="center" width="10%">Belanja</th>'; echo '</tr>'; $no = 1; foreach($query->result() as $row){ if($row->koderek1==4 or $row->koderek1==5){ $rinci = $this->Makun->ada_rinci($row->idrinci); $real_p = $this->Makun->realisasi_pendapatan_by_idrek6_idrinci_sifat($row->idrek6); $real_b = $this->Makun->realisasi_belanja_by_idrek6_idrinci_sifat($row->idrek6); 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">'.$no.'</td>'; echo '<td align="center">'.$row->koderek1.$row->koderek2.$row->koderek3.$row->koderek4.$row->koderek5.$row->koderek6.'</td>'; echo '<td align="left">'.$row->namarek6.'</td>'; $pecah = explode('.',$row->kode); $unit = $this->Munit->get_unit_by_kode($pecah[0])->row(); echo '<td align="left">'.$row->nama.'</td>'; $angg_p = $this->Mrekap->jml_pdpt_sifat($row->idrek6); $angg_b = $this->Mrekap->jml_blj_sifat($row->idrek6); echo '<td align="right" style="background:#99FF99;">'.number_format($angg_p,0,",",".").'</td>'; echo '<td align="right">'.number_format($angg_b,0,",",".").'</td>'; echo '<td align="right" style="background:#99FF99;">'.number_format($real_p,0,',','.').'</td>'; echo '<td align="right">'.number_format($real_b,0,',','.').'</td>'; if ($angg_p > $real_p){ echo '<td align="right" style="background:#99FF99;"><font color="red">'.number_format(abs($angg_p - $real_p),0,',','.').'</font></td>'; }else{ echo '<td align="right" style="background:#99FF99;">'.number_format(abs($angg_p - $real_p),0,',','.').'</td>'; } if ($angg_b > $real_b){ echo '<td align="right" style="background:#99FF99;">'.number_format(abs($angg_b - $real_b),0,',','.').'</font></td>'; }else{ echo '<td align="right" style="background:#99FF99;"><font color="red">'.number_format(abs($angg_b - $real_b),0,',','.').'</font></td>'; } echo '</tr>'; $no++; }} echo '</table>'; } ?>