[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
simkeu
/
dummy-old
/
application
/
views-old
/
akuntansi
/
[
Home
]
File: lra2.php
<br/> <!-- open hamdan --> <form class="form-inline"> <div class="form-group"> <label for="exampleInputName2">Pilih Unit Kerja</label> <?php echo form_dropdown('unit',$opsiunit,$selected,'class="form-control" onChange="top.location.href=this.options[this.selectedIndex].value;"'); ?> </div> </form> <!-- end of hamdan --> <?php echo ! empty($message) ? '<p class="text-info">' . $message . '</p>': ''; echo anchor('akuntansi/lras','BERBASIS SIFAT',array('class'=>"btn btn-warning")); $flashmessage = $this->session->flashdata('message'); echo ! empty($flashmessage) ? '<p class="message">' . $flashmessage . '</p>': ''; echo '<hr>'; 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">MAK</th>'; echo '<th rowspan="2" align="center">Nama Kegiatan</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" >Pendapatan</th>'; echo '<th align="center" >Belanja</th>'; echo '<th align="center" >Pendapatan</th>'; echo '<th align="center" >Belanja</th>'; echo '<th align="center" >Pendapatan</th>'; echo '<th align="center" >Belanja</th>'; echo '</tr>'; $no = 1; foreach($query->result() as $row){ $rinci = $this->Makun->ada_rinci($row->idrinci); $real_p = $this->Makun->realisasi_pendapatan_by_idrek6_idrinci($row->idrek6,$row->idrinci); $real_b = $this->Makun->realisasi_belanja_by_idrek6_idrinci($row->idrek6,$row->idrinci); 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->kodemak1.$row->kodemak2.$row->kodemak3.$row->kodemak4.'</td>'; echo '<td align="left">'.$row->namamak4.'</td>'; $pecah = explode('.',$row->kode); $unit = $this->Munit->get_unit_by_kode($pecah[0])->row(); echo '<td align="left">'.$unit->nama.'</td>'; //$angg_p = $this->Makun->anggaran_pendapatan_by_idkeg($row->idkeg); //$angg_b = $this->Makun->anggaran_belanja_by_idkeg($row->idkeg); $angg_p = $this->Mrekap->jml_pdptf($row->idkeg); $angg_b = $this->Mrekap->jml_bljf($row->idkeg); 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>'; } echo '<td align="right">'.number_format(abs($angg_b - $real_b),0,',','.').'</td>'; echo '</tr>'; $no++; } echo '</table>'; } ?>