v_absenUser.php
unknown
html
4 years ago
4.4 kB
12
Indexable
<!DOCTYPE html>
<html>
<head>
<?php $this->load->view("../../_partials/head.php") ?>
</head>
<body>
<div id="app">
<div id="sidebar" class="active">
<?php $this->load->view("../../_partials/sidebar.php") ?>
</div>
<div id="main">
<div class="page-content">
<section class="content">
<div class="card shadow">
<div class="card-body">
<h2 class="text-center"><b>Riwayat Absen</b></h2>
<hr>
<form action="<?php echo site_url('absen/Absen/listAbsnUser') ?>" method="post"
enctype="multipart/form-data">
<table class="table">
<tbody>
<tr>
<td width="15%">Periode</td>
<td>
<table>
<tr>
<td>
<input type="date" name="pAwal" id="tg1" class="form-control-sm" placeholder="Tanggal Awal" autocomplete="off">
-
<input type="date" name="pAkhir" id="tg1" class="form-control-sm" placeholder="Tanggal Awal" autocomplete="off">
</td>
<td>
<input type="submit" name="submit" value="Cari" class="btn btn-primary btn-sm">
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</form>
<!-- <label for="">Tanggal Kerja</label>
<input type="date" class="form-control-sm" name="tgAwal" placeholder="Tanggal Awal"> -
<input type="date" class="form-control-sm" name="tgAkhir" placeholder="Tanggal Akhir"> -->
<div class="table-wrap" style="overflow: auto">
<table class="table-active text-dark text-center table table-bordered table-hover" style="min-width: 540px;" id="alldays">
<thead>
<tr>
<th>Tanggal</th>
<th>Absen Masuk</th>
<th>Absen Pulang</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<?php
foreach ($days as $v) {
$v->jam_pulang == null ? $jp = "-" : $jp = $v->jam_pulang;
?>
<tr>
<td><?php echo date('d M Y', strtotime($v->tgl_kerja)) ?></td>
<td><?php echo $v->jam_masuk ?></td>
<td><?php echo $jp ?></td>
<?php
if($v->kondisi != 'DALAM LINGKUP UMK') {
?> <td data-bs-toggle="modal" data-id="<?php echo $v->file ?>" onclick="seeDetails(this)" data-bs-target="#exampleModalCenter"><a href="javascript:void(0)" class="btn btn-danger shadow btn-sm"><?php echo $v->kondisi ?></a></td> <?php
} else {
?> <td><a href="javascript:void(0)" class="btn btn-primary shadow btn-sm"><?php echo $v->kondisi ?></a></td> <?php
}
?>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
</section>
</div>
</div>
</div>
<?php $this->load->view("../../_partials/js.php") ?>
</body>
</html>
<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-body">
<h3 class="text-center"><b>Detail Absen</b></h3>
<hr>
<div class="row text-center">
<div id="cuoak"></div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>Editor is loading...