[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
BACKUP C 19-12
/
XAMPP74
/
htdocs
/
simaku
/
application
/
views
/
akuntansi
/
[
Home
]
File: laktif.php
<?php echo ! empty($message) ? '<p class="text-info">' . $message . '</p>': ''; echo ! empty($h2_title) ? '<div class="well alert alert-info"><strong>' . $h2_title. '</strong></div>': ''; echo anchor('akuntansi/laktivitas_unit','LAP. AKTIVITAS vs. UNIT',array('class'=>"btn btn-primary"));echo '<hr>'; $flashmessage = $this->session->flashdata('message'); echo ! empty($flashmessage) ? '<p class="message">' . $flashmessage . '</p>': ''; echo anchor ('adm_cetak/laktivitas/html','<span class="glyphicon glyphicon-print"></span>','class="btn btn-warning pull-right"'); if ($query->num_rows() > 0){ echo '<p class="lead">PENERIMAAN</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" width="10%">Kode Rekening</th>'; echo '<th align="center" width="69%">Nama Rekening</th>'; echo '<th align="center" width="15%">Saldo</th>'; echo '</tr>'; $no = 1;$totsaldo=0; foreach($query->result() as $row){ echo '<tr>'; echo '<td align="center" width="5%">'.$no.'</td>'; echo '<td align="center">'.$row->koderek1.' '.$row->koderek2.' '.$row->koderek3.' '.$row->koderek4.' '.$row->koderek5.'</td>'; echo '<td align="left">'.$row->namarek5.'</td>'; $saldo = $this->Makun->jml_laktif_4($row->idrek5); $totsaldo = $saldo + $totsaldo; echo '<td align="right" width="15%">'.number_format($saldo,0,',','.').'</td>'; echo '</tr>'; $no++; } echo '<tr>'; echo '<td align="right" colspan="3" align="left" style="border-top:2px solid black;"><b>TOTAL PENERIMAAN</b></td>'; echo '<td align="right" style="border-top:2px solid black;"><b>'.number_format($totsaldo,0,',','.').'</b></td>'; echo '</tr>'; echo '</table>'; } if ($query1->num_rows() > 0){ echo '<p class="lead">BELANJA</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" width="10%">Kode Rekening</th>'; echo '<th align="center" width="69%">Nama Rekening</th>'; echo '<th align="center" width="15%">Saldo</th>'; echo '</tr>'; $no1 = 1;$totsaldo1=0; foreach($query1->result() as $row){ echo '<tr>'; echo '<td align="center" >'.$no1.'</td>'; echo '<td align="center">'.$row->koderek1.' '.$row->koderek2.' '.$row->koderek3.' '.$row->koderek4.' '.$row->koderek5.'</td>'; echo '<td align="left">'.$row->namarek5.'</td>'; $saldo1 = $this->Makun->jml_laktif_5($row->idrek5); $totsaldo1 = $saldo1 + $totsaldo1; echo '<td align="right" width="15%">'.number_format($saldo1,0,',','.').'</td>'; echo '</tr>'; $no1++; } echo '<tr>'; echo '<td align="right" colspan="3" align="left"style="border-top:2px solid black;"><b>TOTAL BELANJA</b></td>'; echo '<td align="right" style="border-top:2px solid black;"><b>'.number_format($totsaldo1,0,',','.').'</b></td>'; echo '</tr>'; echo '</table>'; } ?> <table width="100%" class="table table-bordered table-striped" style="font-size:90%"> <tr> <td width="82%" align="right" style="background:#FFFF00;"> <font size="4"><b><?php if ($totsaldo > $totsaldo1){ echo 'SURPLUS'; }else{ echo 'DEFISIT'; } ?></b></font> </td> <td align="right" style="background:#FFFF00;"> <?php if ($totsaldo > $totsaldo1){ echo '<font size="4">'; }else{ echo '<font size="4" color="red">'; } ?> <b><?php echo number_format($totsaldo - $totsaldo1,0,',','.'); $array = array('tot_pdpt' => $totsaldo, 'tot_blj' => $totsaldo1); $this->session->set_userdata($array); ?></b></font> </td> </tr> </table>