Files
web-sekolah/application/views/registrasi/index.php
T
2026-06-26 13:37:55 +07:00

77 lines
3.0 KiB
PHP

<?php
//open form
echo form_open(base_url('registrasi'),' class="form-horizontal"');
?>
<p>
<!-- <?php if($this->session->userdata('level')=="Administrator") { ?>
<a class="btn btn-primary" href="<?php echo base_url('registrasi/export') ?>" onclick="return confirm('Yakin ingin mengexport data registrasi 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="example10">
<thead>
<tr>
<th width="5%">NO.</th>
<th width="8%">NO. PEND</th>
<th width="20%">NAMA<span class="hide-on-export">/SEKOLAH</span></th>
<th width="20%">SEKOLAH</th>
<th width="10%">KOMP<span class="hide-on-export">/GEL</span></th>
<th width="10%">GEL</th>
<th width="10%">KETENTUAN DIBAYARKAN</th>
<th width="10%">NO. TRANSAKSI</th>
<th width="10%">TGL. SALIN</th>
<th width="10%">ANGSURAN</th>
<th width="10%">SUDAH DIBAYARKAN</th>
<th width="10%">PETUGAS</th>
<!-- <?php if($this->session->userdata('level')=="Administrator") { ?>
<th>ACTION</th>
<?php } ?> -->
</tr>
</thead>
<tbody>
<?php foreach ($registrasi as $key => $registrasi) { ?>
<tr>
<td><?php echo $key+1; ?></td>
<td><b><?php echo $registrasi->no_pendaftaran ?></b>
</td>
<td><?php echo $registrasi->nama_lengkap ?>
<br><small class="hide-on-export"><?php echo $registrasi->sekolah_asal ?></small>
</td>
<td><?php echo $registrasi->sekolah_asal ?></td>
<td><?php echo $registrasi->kd_kompetensi ?>
<br><small class="hide-on-export"><?php echo $registrasi->gelombang ?></small>
</td>
<td><?php echo $registrasi->gelombang ?></td>
<td><?php echo number_format($registrasi->ketentuan) ?></td>
<td><b><?php echo $registrasi->no_trans ?></b></td>
<td><?php echo date('d-m-Y', strtotime($registrasi->tgl_bayar)) ?></td>
<td><b><?php echo $registrasi->angsuran ?></b></td>
<td><b><?php echo number_format($registrasi->bayar) ?></b></td>
<td><small><?php echo $registrasi->operator ?></small></td>
<!-- <?php if($this->session->userdata('level')=="Administrator") { ?>
<td>
<div class="btn-group">
<a href="<?php echo base_url('registrasi/edit/'.$registrasi->no_trans) ?>" class="btn btn-success btn-sm">
<i class="fa fa-edit"></i> Edit
</a>
<a href="<?php echo base_url('registrasi/delete/'.$registrasi->no_trans) ?>" class="btn btn-danger btn-sm" onclick="return confirm('Yakin ingin menghapus data registrasi <?php echo $registrasi->no_trans ?> - <?php echo $registrasi->angsuran ?> atas nama <?php echo $registrasi->nama_lengkap ?> ?')">
<i class="fa fa-trash"></i> Hapus
</a>
</div>
</td>
<?php } ?> -->
</tr>
<?php } ?>
</tbody>
</table>