[ 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: buku_besar_.php
<div id="main"> <div id="tengah"> <?php echo ! empty($message) ? '<h1>' . $message . '</h1>': ''; echo ! empty($h2_title) ? '<h2>' . $h2_title. '</h2>': ''; $flashmessage = $this->session->flashdata('message'); echo ! empty($flashmessage) ? '<p class="message">' . $flashmessage . '</p>': ''; echo '</div>'; if ($query->num_rows() > 0){ echo '<form>'; echo '<p id="ket">Klik Nama Rekening untuk melihat riwayat penjurnalan</p>'; echo '<table width="50%">'; echo '<tr>'; echo '<th align="center">No</th>'; echo '<th align="center">Kode Rekening</th>'; echo '<th align="center">Nama Rekening</th>'; echo '</tr>'; $no = 1; foreach($query->result() as $row){ 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">'.anchor('akuntansi/bukubesar_/'.$row->idrek6,$row->namarek6).'</td>'; echo '</tr>'; $no++; } echo '</table></form>'; } if ($query1->num_rows() > 0){ echo '<form>'; echo anchor('akuntansi/bukubesar','Tutup'); echo '<table >'; echo '<tr>'; echo '<th align="center">No</th>'; echo '<th align="center">Tanggal Transaksi</th>'; echo '<th align="center">Uraian</th>'; echo '<th align="center">Debet</th>'; echo '<th align="center">Kredit</th>'; echo '<th align="center">SALDO</th>'; echo '</tr>'; $no = 1; $saldo=0; foreach($query1->result() as $row){ echo '<tr>'; echo '<td align="center">'.$no.'</td>'; echo '<td align="center">'.$row->tgl_trk.'</td>'; echo '<td align="left">'.$row->uraian.'</td>'; echo '<td align="right">'.number_format($row->debet,0,',','.').'</td>'; echo '<td align="right">'.number_format($row->kredit,0,',','.').'</td>'; if ($no == 1){ if ($row->koderek1 == 1 OR $row->koderek1 == 5){ $saldo = $row->debet - $row->kredit; }else{ $saldo = $row->kredit - $row->debet; } }else{ if ($row->koderek1 == 1 OR $row->koderek1 == 5){ $saldo = $saldo + ($row->debet - $row->kredit); }else{ $saldo = $saldo + ($row->kredit - $row->debet); } } echo '<td align="right">'.number_format($saldo,0,',','.').'</td>'; echo '</tr>'; $no++; } echo '</table></form>'; } ?> </br></br> </div>