[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
BACKUP C 19-12
/
XAMPP74
/
htdocs
/
simaku
/
application-old
/
views
/
akuntansi
/
[
Home
]
File: laktif_html.php
<html> <head> <style type="text/css"> body { margin: 0.1in; } #kiri { width: 20%; float: left; padding: 10px; } #kanan { width: 80%; } h1, h2, h3, h4, h5, h6, li, blockquote, p, th, td { font-family: Helvetica, Arial, Verdana, sans-serif; /*Trebuchet MS,*/ } h1, h2, h3, h4 { color: #000000; font-weight: normal; } h4, h5, h6 { color: #000000; } h2 { margin: 0 auto auto auto; font-size: x-large; } li, blockquote, p, th, td { font-size: 80%; } ul { list-style: url(/img/bullet.gif) none; } #footer { border-top: 1px solid #000000; text-align: right; } table, th, td { border: 1px solid black; border-collapse: collapse; font-family: "Trebuchet MS", Arial, sans-serif; color: black; } td, th { padding: 4px; } P.breakhere {page-break-after: always} </style> </head> <body> <div id="kiri"> <img align="left" src="<?php echo base_url();?>images/logo_ueu.gif" width="75" height="75" /> </div> <?php $info = $this->Minfo->info(); ?> <div id="kanan"> <h4 align="center">LAPORAN PENGHASILAN KOMPREHENSIF</h4> <h4 align="center"><?php echo strtoupper($info->row()->namapt);?></h4> </div> </br> <?php 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>'; } ?><br><br> <table width="100%" class="table table-bordered table-striped" style="font-size:90%"> <tr> <td width="82%" align="right" > <font size="4"><b><?php if ($totsaldo > $totsaldo1){ echo 'SURPLUS'; }else{ echo 'DEFISIT'; } ?></b></font> </td> <td align="right" > <?php if ($totsaldo > $totsaldo1){ echo '<font size="4">'; }else{ echo '<font size="4" >'; } ?> <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> </body> </html>