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

70 lines
2.6 KiB
PHP

<?php
//open form
echo form_open(base_url('pengumuman_setting'),' class="form-horizontal"');
?>
<p class = "text-left">
<button type = "button" class="btn btn-info" data-toggle="modal" data-target="#modal-default">
<i class = "fa fa-plus"></i> INPUT KELULUSAN
</button>
<!--<a class = "btn btn-primary" href="<?php echo base_url('pengumuman_setting/export') ?>" onclick="return confirm('Yakin ingin mengexport rekap berkas ke excel ?')"><i class="fa fa-file-excel"></i> Export Excel</a>-->
<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 = "3%">NO.</th>
<th width = "7%">NO. PEND</th>
<th width = "20%">NAMA LENGKAP</th>
<th width = "20%">SEKOLAH ASAL</th>
<th width = "20%">PROGRAM KEAHLIAN</th>
<th width = "9%">STATUS</th>
<th width = "10%">TGL. INPUT</th>
<th>ACTION</th>
</tr>
</thead>
<tbody>
<?php foreach ($pengumuman as $key => $pengumuman) { ?>
<tr>
<td><?php echo $key+1; ?></td>
<td><b><?php echo $pengumuman->no_pendaftaran ?></b></td>
<td><?php echo $pengumuman->nama_lengkap ?></td>
<td><?php echo $pengumuman->sekolah_asal ?></td>
<td><?php echo $pengumuman->kompetensi ?></td>
<?php if($pengumuman->status == "LULUS") { ?>
<td><span class="badge badge-success"><?php echo $pengumuman->status ?></span></td>
<?php } ?>
<?php if($pengumuman->status == "BELUM LULUS") { ?>
<td><span class="badge badge-warning"><?php echo $pengumuman->status ?></span></td>
<?php } ?>
<?php if($pengumuman->status == "TIDAK LULUS") { ?>
<td><span class="badge badge-danger"><?php echo $pengumuman->status ?></span></td>
<?php } ?>
<td><?php echo date('d-m-Y H:i:s', strtotime($pengumuman->tanggal_pengumuman)) ?></td>
<td>
<div class = "btn-group">
<a href = "<?php echo base_url('pengumuman_setting/edit/'.$pengumuman->no_pendaftaran) ?>" class="btn btn-success btn-sm">
<i class = "fa fa-edit"></i>
</a>
<?php if($this->session->userdata('level')=="Administrator") { ?>
<a href = "<?php echo base_url('pengumuman_setting/delete/'.$pengumuman->no_pendaftaran) ?>" class="btn btn-danger btn-sm" onclick="return confirm('Yakin ingin menghapus data kelulusan No. Pend : <?php echo $pengumuman->no_pendaftaran ?> ?')">
<i class = "fa fa-trash"></i>
</a>
<?php } ?>
</div>
</td>
</tr>
<?php } ?>
</tbody>
</table>