71 lines
2.6 KiB
PHP
71 lines
2.6 KiB
PHP
<?php
|
|
//open form
|
|
echo form_open(base_url('pembayaran'),' class="form-horizontal"');
|
|
?>
|
|
|
|
<p>
|
|
<?php if($this->session->userdata('level')=="Administrator") { ?>
|
|
<a class="btn btn-primary" href="<?php echo base_url('pembayaran/export') ?>" onclick="return confirm('Yakin ingin mengexport data pembayaran Tes ke excel ?')"><i class="fa fa-file-excel"></i> Export Excel</a>
|
|
<?php } ?>
|
|
<a href="<?php echo base_url('dashboard') ?>" class="btn btn-secondary" data-dismiss="modal"><i class="fa fa-times"></i> Kembali</a>
|
|
</p>
|
|
|
|
<?php
|
|
//panggil form tambah
|
|
//include('tambah.php');
|
|
//closing form
|
|
echo form_close();
|
|
?>
|
|
<table class="table table-bordered table-striped table-sm" id="example1">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%">NO.</th>
|
|
<th width="8%">NO. PEND</th>
|
|
<th width="20%">NAMA/SEKOLAH</th>
|
|
<th width="10%">KOMP/GEL</th>
|
|
<th width="10%">TANGGAL</th>
|
|
<th width="10%">BIAYA TES</th>
|
|
<th width="10%">DISKON</th>
|
|
<th width="10%">DIBAYARKAN</th>
|
|
<th width="10%">PETUGAS</th>
|
|
<!-- <?php if($this->session->userdata('level')=="Administrator") { ?>
|
|
<th>ACTION</th>
|
|
<?php } ?> -->
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($pembayaran as $key => $pembayaran) { ?>
|
|
|
|
<tr>
|
|
<td><?php echo $key+1; ?></td>
|
|
<td><b><?php echo $pembayaran->no_pendaftaran ?></b>
|
|
</td>
|
|
<td><b><?php echo $pembayaran->nama_lengkap ?></b>
|
|
<br><small><?php echo $pembayaran->sekolah_asal ?></small>
|
|
</td>
|
|
<td><b><?php echo $pembayaran->kd_kompetensi ?></b>
|
|
<br><small><?php echo $pembayaran->gelombang ?></small>
|
|
</td>
|
|
<td><?php echo date('d-m-Y', strtotime($pembayaran->tgl_trans)) ?></td>
|
|
<td><b><?php echo number_format($pembayaran->biaya) ?></b></td>
|
|
<td><b><?php echo number_format($pembayaran->diskon) ?></b></td>
|
|
<td><b><?php echo number_format($pembayaran->bayar) ?></b></td>
|
|
<td><small><?php echo $pembayaran->operator ?></small></td>
|
|
<!-- <?php if($this->session->userdata('level')=="Administrator") { ?> -->
|
|
<!-- <td>
|
|
<div class="btn-group">
|
|
<a href="<?php echo base_url('pembayaran/edit/'.$pembayaran->no_trans) ?>" class="btn btn-success btn-sm">
|
|
<i class="fa fa-edit"></i> Edit
|
|
</a>
|
|
|
|
<a href="<?php echo base_url('pembayaran/delete/'.$pembayaran->no_trans) ?>" class="btn btn-danger btn-sm" onclick="return confirm('Yakin ingin menghapus data pembayaran Tes <?php echo $pembayaran->no_trans ?> atas nama <?php echo $pembayaran->nama_lengkap ?> ?')">
|
|
<i class="fa fa-trash"></i> Hapus
|
|
</a>
|
|
</div>
|
|
</td> -->
|
|
<?php } ?>
|
|
</tr>
|
|
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|