[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
simkeu
/
application
/
views
/
akuntansi
/
[
Home
]
File: daftar_saldo_.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 '<tr>'; echo '<th align="center" width="5%">No</th>'; echo '<th align="center">Kode Rekening</th>'; echo '<th align="center">Nama Rekening</th>'; echo '<th align="center">Saldo</th>'; echo '</tr>'; $no = 1; $totdebet=0; $totkredit=0; foreach($query->result() as $row){ $debet = $this->Makun->jml_debet_rek6($row->idrek6); $kredit = $this->Makun->jml_kredit_rek6($row->idrek6); 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>'; //if ($row->idrek6 == 570){ if ($row->idrek6 == 1287){ // UM Magelang echo '<td align="left">'.$row->namarek6.' <small title="Klik untuk melihat masing-masing kas unit kerja">('.anchor('akuntansi/daftarsaldo_/','info kas unit kerja').')</small></td>'; }else{ echo '<td align="left">'.$row->namarek6.'</td>'; } if ($row->koderek1 == 1 OR $row->koderek1 == 5){ echo '<td align="right">'.number_format($debet - $kredit,0,',','.').'</td>'; }else{ echo '<td align="right">'.number_format($kredit - $debet,0,',','.').'</td>'; } echo '</tr>'; $no++; } echo '</table>'; } if ($query1->num_rows() > 0){ echo anchor('akuntansi/daftarsaldo','TUTUP'); echo '<p>Daftar SALDO masing-masing Unit Kerja</p>'; echo '<table width="100%" class="table table-bordered table-striped" style="font-size:90%">'; echo '<tr>'; echo '<th align="center" width="5%">No</th>'; echo '<th align="center">Unit Kerja</th>'; echo '<th align="center" width="15%">Saldo</th>'; echo '</tr>'; $no = 1; foreach($query1->result() as $row){ $subunit = $this->Munit->cari_unit($row->id_uk)->row()->kode; $kode = explode('.',$subunit); $namaunit = $this->Munit->get_unit_by_kode($kode[0])->row(); $jmlkas = $this->Makun->jml_kas_unit($kode[0]); echo '<tr>'; echo '<td align="center">'.$no.'</td>'; echo '<td align="left">'.$namaunit->nama.'</td>'; echo '<td align="right" width="15%">'.number_format($jmlkas,0,',','.').'</td>'; echo '</tr>'; $no++; } echo '</table>'; } ?>