[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
BACKUP C 19-12
/
XAMPP74
/
htdocs
/
simkeu
/
application
/
views
/
akuntansi
/
[
Home
]
File: real_agg.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>': ''; $flashmessage = $this->session->flashdata('message'); echo ! empty($flashmessage) ? '<p class="message">' . $flashmessage . '</p>': ''; ?> <form class="form-horizontal"> <div class="form-group"> <label class="col-sm-2 control-label">Pilih Unit Kerja</label> <div class="col-sm-10"> <?php echo form_dropdown('unit',$opsiunit,$selected,'class="form-control" onChange="top.location.href=this.options[this.selectedIndex].value;"'); ?> </div> </div> <?php 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">No</th>'; echo '<th align="center">No. SPM</th>'; echo '<th align="center">Unit Kerja</th>'; echo '<th align="center">MAK</th>'; echo '<th align="center">Nama Kegiatan</th>'; echo '<th align="center">Kode Rekening</th>'; echo '<th align="center">Nama Rekening</th>'; echo '<th align="center">Uraian</th>'; echo '<th align="center">Anggaran</th>'; echo '<th align="center">Realisasi</th>'; echo '<th align="center">Menu Penjurnalan</th>'; echo '</tr>'; $no = 1; foreach($query->result() as $row){ 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->no_spm.'</td>'; $pecah = explode('.',$row->kode); $unit = $this->Munit->get_unit_by_kode($pecah[0])->row(); echo '<td align="center">'.$unit->nama.'</td>'; echo '<td align="center">'.$row->kodemak1.$row->kodemak2.$row->kodemak3.$row->kodemak4.'</td>'; echo '<td align="left">'.$row->namamak4.'</td>'; echo '<td align="left">'.$row->koderek1.' '.$row->koderek2.' '.$row->koderek3.' '.$row->koderek4.' '.$row->koderek5.' '.$row->koderek6.'</td>'; echo '<td align="left">'.$row->namarek6.'</td>'; echo '<td align="left">'.$row->uraianrinci.'</td>'; $anggaran = $row->hargasat*$row->qty1*$setqty2*$setqty3*$setqty4; echo '<td align="right">'.number_format($anggaran,0,",",".").'</td>'; $realisasi = $this->Makun->realisasi_by_idrek6_idrinci($row->idrek6,$row->idrinci); echo '<td align="right">'.number_format($realisasi,0,',','.').'</td>'; echo '<td align="center" width="15%">'.anchor('akuntansi/jkunit/'.$row->id_spp.'-'.$row->id_unit.'-'.$row->idkeg.'-'.$row->idrek6.'-'.$row->ajuan.'-'.$unit->id_unit.'-'.$row->koderek1.'-'.$row->idrinci.'-'.$anggaran,'Kas Unit',array('onclick'=>"return confirm('Anda yakin akan menggunakan KAS UNIT?')")).' | '.anchor('akuntansi/jkuniv/'.$row->id_spp.'-'.$row->id_unit.'-'.$row->idkeg.'-'.$row->idrek6.'-'.$row->ajuan.'-'.$unit->id_unit.'-'.$row->koderek1.'-'.$row->idrinci.'-'.$anggaran,'Kas Univ/ST.',array('onclick'=>"return confirm('Anda yakin akan menggunakan KAS UNIVERSITAS/Sekolah Tinggi?')")).'</td>'; //$atts = array('width' => '300', 'height' => '150','scrollbars' => 'no', 'screenx' => '650', 'screeny' => '250'); //echo '<td align="center">'.anchor_popup('akuntansi/jkunit','Kas Unit',$atts).'</td>'; echo '</tr>'; $no++; } echo '</table>'; } ?>