[ 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
/
admin
/
pagu
/
[
Home
]
File: pilih_sumberpagu.php
<div class="alert alert-info">Pemilihan Sumber Pagu <?php echo ' '.$id->sumber;?></div><br> <?php echo ! empty($message) ? '<p class="message">' . $message . '</p>': ''; $flashmessage = $this->session->flashdata('message'); echo ! empty($flashmessage) ? '<p class="message">' . $flashmessage . '</p>': ''; if ( ! empty($link)){ echo '<p id="bottom_link">'; foreach($link as $links){ echo $links . ' '; } echo '</p>'; } if ($pagu->num_rows() > 0){ $no = 1;?> <div class="well"> <table width="100%" style="font-size: 80%" class="table table-bordered"> <tr align="center" style="font-weight:bold;"> <td>NO</td> <td width="5%">Kode Unit</td> <td>Nama Unit</td> <td width="6%">M A K</td> <td>Nama Kegiatan</td> <td width="8%">Kode Rekening</td> <td>Nama Rekening</td> <td>Besar Pendapatan</td> <td>Menu</td> </tr> <?php $totpagu=0; foreach ($pagu->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;} ?> <tr> <td><?=$no?></td> <td><?=$row->kode?></td> <td><?=$row->nama?></td> <td><?=$row->kodemak1.' '.$row->kodemak2.' '.$row->kodemak3.' '.$row->kodemak4?></td> <td><?=$row->namamak4?></td> <td><?=$row->koderek1.' '.$row->koderek2.' '.$row->koderek3.' '.$row->koderek4.' '.$row->koderek5.' '.$row->koderek6?></td> <td><?=$row->namarek6?></td> <td align="right"><?=number_format($row->hargasat*$row->qty1*$setqty2*$setqty3*$setqty4,0,',','.')?></td> <?php $this->session->set_userdata('id_pagu',$row->idsumberdana);?> <td><?=anchor('adm_pagu/hapus_pagu_keg/'.$row->idkeg,'Batal',array('class'=> 'delete','onclick'=>"return confirm('Anda yakin akan membatalkan data ini?')"))?></td> </tr> <?php $totpagu = $row->hargasat*$row->qty1*$setqty2*$setqty3*$setqty4 + $totpagu; $no++; }?> <tr> <td colspan="7" align="right">TOTAL</td> <td align="right"><?=number_format($totpagu ,0,',','.')?></td> <td></td> </tr> </table> </div> <?php }?> <form method="post" action="<?=$form_action?>"> <p> <table width="100%"> <tr> <th align="center">Pilih Unit Kerja</th><th></th> <th align="center">Pilih M A K</th><th></th> <th align="center">Pilih Kode Rekening</th> </tr> <tr> <td width="30%"> <?=form_dropdown('id_unit', $options_unit, isset($default['id_unit']) ? $default['id_unit'] : '','class="form-control"')?> </td> <td> | </td> <td width="30%"> <?=form_dropdown('idmak4', $options_mak, isset($default['idmak4']) ? $default['idmak4'] : '','class="form-control"')?> </td> <td> | </td> <td width="30%"> <?=form_dropdown('idrek6', $options_rek, isset($default['idrek6']) ? $default['idrek6'] : '','class="form-control"')?> </td> </tr> </table> </p> <table border="0" align="center"> <tr> <th align="center">Kuantitas</th> <th></th> <th align="center">Satuan</th> </tr> <tr> <th> <label for="qty1"> <input type="text" class="form-control" name="qty1" size="5" value="<?php echo set_value('qty1', isset($default['qty1']) ? $default['qty1'] : ''); ?>" /></label> <?php echo form_error('qty1', '<p class="form-control">', '</p>');?> </th> <th>x</th> <th> <label for="satuan1"> <input type="text" class="form-control" name="satuan1" size="15" value="<?php echo set_value('satuan1', isset($default['satuan1']) ? $default['satuan1'] : ''); ?>" /></label> <?php echo form_error('satuan1', '<p class="form-control">', '</p>');?> </th> </tr> <tr> <th> <label for="qty2"> <input type="text" class="form-control" name="qty2" size="5" value="<?php echo set_value('qty2', isset($default['qty2']) ? $default['qty2'] : ''); ?>" /></label> <?php echo form_error('qty2', '<p class="form-control">', '</p>');?> </th> <th>x</th> <th> <label for="satuan2"> <input type="text" class="form-control" name="satuan2" size="15" value="<?php echo set_value('satuan2', isset($default['satuan2']) ? $default['satuan2'] : ''); ?>" /></label> <?php echo form_error('satuan2', '<p class="form-control">', '</p>');?> </th> </tr> <tr> <th> <label for="qty3"> <input type="text" class="form-control" name="qty3" size="5" value="<?php echo set_value('qty3', isset($default['qty3']) ? $default['qty3'] : ''); ?>" /></label> <?php echo form_error('qty3', '<p class="form-control">', '</p>');?> </th> <th>x</th> <th> <label for="satuan3"> <input type="text" class="form-control" name="satuan3" size="15" value="<?php echo set_value('satuan3', isset($default['satuan3']) ? $default['satuan3'] : ''); ?>" /></label> <?php echo form_error('satuan3', '<p class="form-control">', '</p>');?> </th> </tr> <tr> <th> <label for="qty4"> <input type="text" class="form-control" name="qty4" size="5" value="<?php echo set_value('qty4', isset($default['qty4']) ? $default['qty4'] : ''); ?>" /></label> <?php echo form_error('qty4', '<p class="form-control">', '</p>');?> </th> <th>x</th> <th> <label for="satuan4"> <input type="text" class="form-control" name="satuan4" size="15" value="<?php echo set_value('satuan4', isset($default['satuan4']) ? $default['satuan4'] : ''); ?>" /></label> <?php echo form_error('satuan4', '<p class="form-control">', '</p>');?> </th> </tr></table> <p> <label for="hargasat">Harga Satuan : <input type="text" class="form-control" name="hargasat" size="20" value="<?php echo set_value('hargasat', isset($default['hargasat']) ? $default['hargasat'] : ''); ?>" /></label></p> <?php echo form_error('hargasat', '<p class="form-control">', '</p>');?> <input type="submit" name="submit" id="submit" value="O K" class="btn btn-primary"/></form>