| Server IP : 216.106.184.20 / Your IP : 216.73.216.234 Web Server : LiteSpeed System : Linux asmodeus.in-hell.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64 User : sekoaid1 ( 1891) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/sekoaid1/public_html/rdmts/am/application/views/ |
Upload File : |
<div class="row col-md-12 ini_bodi">
<div class="panel panel-danger">
<div class="panel-heading"><b>DAFTAR UJIAN</b></div>
<div class="panel-body">
<div style="overflow: auto">
<table class="table table-bordered">
<thead>
<tr>
<th width="5%">No</th>
<th width="10%">Nama Ujian</th>
<th width="20%">Mapel/Guru</th>
<th width="3%">Jumlah Soal</th>
<th width="5%">Waktu</th>
<th width="10%">Status</th>
<th width="15%">Tanggal Mulai</th>
<th width="10%">Aksi</th>
</tr>
</thead>
<tbody>
<?php
if (!empty($data)) {
$no = 1;
foreach ($data as $d) {
echo '<tr>
<td class="ctr">' . $no . '</td>
<td>' . $d->nama_ujian . '</td>
<td>[' . $d->kelas . '] [' . $d->jurusan . '] - ' . $d->nmmapel . '</td>
<td class="ctr">' . $d->jumlah_soal . '</td>
<td class="ctr">' . $d->waktu . ' menit</td>
<td class="ctr">' . $d->status . '</td>
<td class="ctr">' . $d->tgl_mulai . '</td>
<td class="ctr">';
if ($d->status == "Belum Ikut") {
echo '<a href="' . base_url() . 'adm/ikut_ujian/token/' . $d->id . '" target="_self" class="btn btn-primary btn-xs"><i class="glyphicon glyphicon-pencil" style="margin-left: 0px; color: #fff"></i> Ikuti Ujian</a>';
} else if ($d->status == "Sedang Tes") {
echo '<a href="' . base_url() . 'adm/ikut_ujian/token/' . $d->id . '" target="_self" class="btn btn-success btn-xs"><i class="glyphicon glyphicon-pencil" style="margin-left: 0px; color: #fff"></i> <blink>Ujian Sdg Aktif</blink></a>';
} else if ($d->status == "Waktu Habis") {
echo '<a href="' . base_url() . 'adm/ikut_ujian/token/' . $d->id . '" target="_self" class="btn btn-warning btn-xs"><i class="glyphicon glyphicon-pencil" style="margin-left: 0px; color: #fff"></i> <blink>Waktu Habis</blink></a>';
} else {
echo '<a href="' . base_url() . 'adm/sudah_selesai_ujian/' . $d->id . '" class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-ok" style="margin-left: 0px; color: #fff"></i> Anda sudah ikut</a>';
}
echo '</td></tr>';
$no++;
}
} else {
echo '<tr><td colspan="7">Belum ada data</td></tr>';
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>