Files
web-sekolah/public/application/views/gelombang/gelombang1/index.php
T

72 lines
2.5 KiB
PHP

<?php
//open form
echo form_open(base_url('gel1'),' class="form-horizontal"');
?>
<p>
<?php if($this->session->userdata('level')=="Administrator" or ($this->session->userdata('level')=="Operator")) { ?>
<!-- <a class="btn btn-primary" href="<?php echo base_url('gel1/export') ?>" onclick="return confirm('Yakin ingin mengexport rekap data pendaftar gelombang 1 ?')"><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>
<!-- <style>
td:nth-child(4), th:nth-child(4) {
display: none; /* Sembunyikan kolom ke-4 */
}
</style> -->
<?php
//panggil form tambah
//include('tambah.php');
//closing form
echo form_close();
?>
<table class="table table-bordered table-striped table-sm" id="example4">
<thead>
<tr>
<th>No</th>
<th>No. Pendaftaran <span class="hide-on-export"> / Tgl Trans </span></th>
<th>Tgl Trans</th> <!-- Kolom tambahan untuk ekspor -->
<th>Nama Lengkap <span class="hide-on-export">& Jenis Kelamin</span></th>
<th>Jenis Kelamin </th> <!-- Kolom tambahan untuk ekspor -->
<th>Tempat, Tgl Lahir</th>
<th>Agama</th>
<th>Sekolah Asal</th>
<th>Program Keahlian</th>
<th>Gelombang</th>
<th width="10%">No. HP Casis</th>
<th width="10%">No. HP Ayah</th>
<th width="10%">No. HP Ibu</th>
</tr>
</thead>
<tbody>
<?php foreach ($gel1 as $key => $gel1) { ?>
<tr>
<td><?php echo $key+1; ?></td>
<td>
<b><?php echo $gel1->no_pendaftaran ?></b>
<br><small class="hide-on-export"><?php echo date('d-m-Y', strtotime($gel1->tgl_trans)) ?></small>
</td>
<td><?php echo date('d-m-Y', strtotime($gel1->tgl_trans)) ?></td>
<td>
<?php echo $gel1->nama_lengkap ?> <br>
<small class="hide-on-export"> <?php echo $gel1->jkelamin ?></small> <!-- Jenis Kelamin diberi kelas -->
</td>
<td><?php echo $gel1->jkelamin ?></td>
<td><?php echo $gel1->tempat_lahir ?>, <?php echo date('d-m-Y', strtotime($gel1->tgl_lahir)) ?></td>
<td><?php echo $gel1->agama ?></td>
<td><?php echo $gel1->sekolah_asal ?></td>
<td><?php echo $gel1->kompetensi ?></td>
<td><?php echo $gel1->gelombang ?></td>
<td><?php echo $gel1->no_hp ?></td>
<td><?php echo $gel1->tlp_ayah ?></td>
<td><?php echo $gel1->tlp_ibu ?></td>
</tr>
<?php } ?>
</tbody>
</table>