Change Absen to Presensi

master
Hafidz Fachrisyah Widyarix 2021-11-22 13:56:10 +07:00
parent 5e94f90ac1
commit 5f5eac10db
26 changed files with 270 additions and 76 deletions

View File

@ -61,7 +61,7 @@
<li class="list-group-item text-dark border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item bg-primary text-white border-bottom">Absensi</li>
<li class="list-group-item bg-primary text-white border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Laporan</li>
@ -74,18 +74,18 @@
</div>
<div class="col col-md-9 col-lg-9 col-sm-12 col-12">
<div class="card">
<h5 class="card-header">Absensi</h5>
<h5 class="card-header">Presensi</h5>
<div class="card-body">
<div>
<ul class="nav nav-tabs">
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/absensi" class="nav-link active">Absen Aktif</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" class="nav-link active">Presensi Aktif</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/daftarabsen" class="nav-link">Data Absensi</a>
<a href="<?php echo base_url('index.php/')?>admin/daftarabsen" class="nav-link">Data Presensi</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/progresabsen" class="nav-link">Progres Absensi</a>
<a href="<?php echo base_url('index.php/')?>admin/progresabsen" class="nav-link">Progres Presensi</a>
</li>
</ul>
@ -94,14 +94,14 @@
<div class="card">
<div class="card-header bg-primary text-white">
Status Absensi
Status Presensi
</div>
<?php if($active_absen){?>
<div class="card-body">
<div class="row">
<div class="col col-md-9 col-lg-9 col-sm-12 col-12">
<h3>Absensi Bulan <?php echo $bulan ?> Tahun <?php echo $data_absen->tahun ?></h3>
<h3>Presensi Bulan <?php echo $bulan ?> Tahun <?php echo $data_absen->tahun ?></h3>
</div>
<div class="col text-right">
<a class="btn btn-sm btn-warning" href="<?php echo base_url('index.php/')?>admin/detailabsen?id_absen=<?php echo $data_absen->id_absen ?>">Lihat Detail</a>
@ -151,7 +151,7 @@
</div>
</div>
</div>
<label>Progres Absensi</label>
<label>Progres Presensi</label>
<div class="progress" style="height: 25px;">
<div class="progress-bar progress-bar-striped bg-success" role="progressbar" style="width: <?php echo $prosentase_signed_absensi?>%" aria-valuenow="<?php echo $signed_absensi ?>" aria-valuemin="0" aria-valuemax="<?php echo $data_absen->jumlah_umkm ?>"><?php echo $signed_absensi ?></div>
<div class="progress-bar progress-bar-striped bg-secondary" role="progressbar" style="width: <?php echo $prosentase_unsigned_absensi?>%" aria-valuenow="<?php echo $unsigned_absensi ?>" aria-valuemin="0" aria-valuemax="<?php echo $data_absen->jumlah_umkm ?>"><?php echo $unsigned_absensi ?></div>
@ -194,10 +194,10 @@
<div class="card-body text-center">
<img src="<?php echo base_url()?>assets/images/search.png" width="150" /><br>
<div class="alert alert-warning" role="alert">
Tidak ada <strong>absen aktif</strong> saat ini.
Tidak ada <strong>presensi aktif</strong> saat ini.
</div>
<div>
<a href="<?php echo base_url('index.php/')?>admin/tambahabsen" class="btn btn-lg btn-success">Buat Absensi</a>
<a href="<?php echo base_url('index.php/')?>admin/tambahabsen" class="btn btn-lg btn-success">Buat Presensi</a>
</div>
</div>
<?php } ?>

View File

@ -60,7 +60,7 @@
<li class="list-group-item text-dark border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item bg-primary text-white border-bottom">Absensi</li>
<li class="list-group-item bg-primary text-white border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Laporan</li>
@ -73,18 +73,18 @@
</div>
<div class="col col-md-9 col-lg-9 col-sm-12 col-12">
<div class="card">
<h5 class="card-header">Absensi</h5>
<h5 class="card-header">Presensi</h5>
<div class="card-body">
<div>
<ul class="nav nav-tabs">
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/absensi" class="nav-link">Absen Aktif</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" class="nav-link">Presensi Aktif</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/daftarabsen" class="nav-link active">Data Absensi</a>
<a href="<?php echo base_url('index.php/')?>admin/daftarabsen" class="nav-link active">Data Presensi</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/progresabsen" class="nav-link">Progres Absensi</a>
<a href="<?php echo base_url('index.php/')?>admin/progresabsen" class="nav-link">Progres Presensi</a>
</li>
</ul>
@ -108,12 +108,12 @@
if (isset($del_msg)){
if($del_msg=='error'){
?>
<div class="alert alert-danger" role="alert">Tidak bisa menghapus absen bulan ke <strong><?php echo $del_absen ?></strong>
tahun <strong><?php echo $tahun ?></strong>, kerena terdapat data absensi UMKM yang aktif !</div>
<div class="alert alert-danger" role="alert">Tidak bisa menghapus presensi bulan ke <strong><?php echo $del_absen ?></strong>
tahun <strong><?php echo $tahun ?></strong>, kerena terdapat data presensi UMKM yang aktif !</div>
<?php } elseif($del_msg=='errorlaporan'){ ?>
<div class="alert alert-danger" role="alert">
Tidak bisa menghapus absen bulan ke <strong><?php echo $del_absen ?></strong> tahun <strong><?php echo $tahun ?></strong>
, kerena absen untuk tahun <strong><?php echo $tahun ?></strong> sudah ditutup !
Tidak bisa menghapus presensi bulan ke <strong><?php echo $del_absen ?></strong> tahun <strong><?php echo $tahun ?></strong>
, kerena presensi untuk tahun <strong><?php echo $tahun ?></strong> sudah ditutup !
</div>
<?php } elseif($del_msg=='sucess'){ ?>
<div class="alert alert-success" role="alert">Data berhasil terhapus !</div>
@ -130,8 +130,8 @@
<?php if($notifikasi){?>
<div class="alert alert-warning" role="alert">
Absensi untuk tahun <strong><?php echo $tahun ?></strong> sudah <strong>DITUTUP</strong>,
Anda <strong>tidak bisa</strong> melakukan operasi apapun terhadap absensi yang sudah ditutup !
Presensi untuk tahun <strong><?php echo $tahun ?></strong> sudah <strong>DITUTUP</strong>,
Anda <strong>tidak bisa</strong> melakukan operasi apapun terhadap presensi yang sudah ditutup !
</div>
<?php } ?>
@ -139,7 +139,7 @@
<thead>
<tr>
<th>Bln</th>
<th>Jml Absensi</th>
<th>Jml Presensi</th>
<th>Jml UMKM</th>
<th>Rata-rata Aset</th>
<th>Rata-rata Omset/Bln</th>

View File

@ -53,7 +53,7 @@
<li class="list-group-item text-dark border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Absensi</li>
<li class="list-group-item text-dark border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Laporan</li>

View File

@ -60,7 +60,7 @@
<li class="list-group-item text-dark border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item bg-primary text-white border-bottom">Absensi</li>
<li class="list-group-item bg-primary text-white border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Laporan</li>
@ -73,18 +73,18 @@
</div>
<div class="col col-md-9 col-lg-9 col-sm-12 col-12">
<div class="card">
<h5 class="card-header">Absensi</h5>
<h5 class="card-header">Presensi</h5>
<div class="card-body">
<div>
<ul class="nav nav-tabs">
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/absensi" class="nav-link">Absen Aktif</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" class="nav-link">Presensi Aktif</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/daftarabsen" class="nav-link">Data Absensi</a>
<a href="<?php echo base_url('index.php/')?>admin/daftarabsen" class="nav-link">Data Presensi</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/progresabsen" class="nav-link">Progres Absensi</a>
<a href="<?php echo base_url('index.php/')?>admin/progresabsen" class="nav-link">Progres Presensi</a>
</li>
<li class="nav-item">
<a href="" class="nav-link active">
@ -97,13 +97,13 @@
<div class="card">
<div class="card-header bg-primary text-white" >
Detail Absensi
Detail Presensi
</div>
<div class="card-body">
<div class="row">
<div class="col col-md-9 col-lg-9 col-sm-12 col-12">
<h3>Absensi Bulan <?php echo $bulan ?> Tahun <?php echo $data_absen->tahun ?></h3>
<h3>Presensi Bulan <?php echo $bulan ?> Tahun <?php echo $data_absen->tahun ?></h3>
</div>
<div class="col text-right">
<label>status </label>
@ -157,7 +157,7 @@
</div>
</div>
</div>
<label>Progres Absensi</label>
<label>Progres Presensi</label>
<div class="progress" style="height: 25px;">
<div class="progress-bar progress-bar-striped bg-success" role="progressbar" style="width: <?php echo $prosentase_signed_absensi?>%" aria-valuenow="<?php echo $signed_absensi ?>" aria-valuemin="0" aria-valuemax="<?php echo $data_absen->jumlah_umkm ?>"><?php echo $signed_absensi ?></div>
<div class="progress-bar progress-bar-striped bg-secondary" role="progressbar" style="width: <?php echo $prosentase_unsigned_absensi?>%" aria-valuenow="<?php echo $unsigned_absensi ?>" aria-valuemin="0" aria-valuemax="<?php echo $data_absen->jumlah_umkm ?>"><?php echo $unsigned_absensi ?></div>

View File

@ -52,7 +52,7 @@
<li class="list-group-item text-dark border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Absensi</li>
<li class="list-group-item text-dark border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Laporan</li>

View File

@ -63,7 +63,7 @@
<li class="list-group-item bg-primary text-white border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Absensi</li>
<li class="list-group-item text-dark border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Laporan</li>
@ -204,7 +204,7 @@
<hr>
<ul class="nav nav-tabs">
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/detailumkm?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link active">Absensi</a>
<a href="<?php echo base_url('index.php/')?>admin/detailumkm?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link active">Presensi</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/produk?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link">Produk</a>

View File

@ -52,7 +52,7 @@
<li class="list-group-item text-dark border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Absensi</li>
<li class="list-group-item text-dark border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Laporan</li>

View File

@ -53,7 +53,7 @@
<li class="list-group-item bg-primary text-white border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Absensi</li>
<li class="list-group-item text-dark border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Laporan</li>

View File

@ -61,7 +61,7 @@
<li class="list-group-item text-dark border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Absensi</li>
<li class="list-group-item text-dark border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item bg-primary text-white border-bottom">Laporan</li>

View File

@ -61,7 +61,7 @@
<li class="list-group-item text-dark border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Absensi</li>
<li class="list-group-item text-dark border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item bg-primary text-white border-bottom">Laporan</li>

View File

@ -61,7 +61,7 @@
<li class="list-group-item text-dark border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Absensi</li>
<li class="list-group-item text-dark border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item bg-primary text-white border-bottom">Laporan</li>

View File

@ -61,7 +61,7 @@
<li class="list-group-item text-dark border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Absensi</li>
<li class="list-group-item text-dark border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item bg-primary text-white border-bottom">Laporan</li>

View File

@ -63,7 +63,7 @@
<li class="list-group-item bg-primary text-white border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Absensi</li>
<li class="list-group-item text-dark border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Laporan</li>
@ -204,7 +204,7 @@
<hr>
<ul class="nav nav-tabs">
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/detailumkm?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link active">Absensi</a>
<a href="<?php echo base_url('index.php/')?>admin/detailumkm?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link active">Presensi</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/produk?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link">Produk</a>

View File

@ -53,7 +53,7 @@
<li class="list-group-item text-dark border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item bg-primary text-white border-bottom">Absensi</li>
<li class="list-group-item bg-primary text-white border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Laporan</li>
@ -66,18 +66,18 @@
</div>
<div class="col col-md-9 col-lg-9 col-sm-12 col-12">
<div class="card">
<h5 class="card-header">Absensi</h5>
<h5 class="card-header">Presensi</h5>
<div class="card-body">
<div>
<ul class="nav nav-tabs">
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/absensi" class="nav-link">Absen Aktif</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" class="nav-link">Presensi Aktif</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/daftarabsen" class="nav-link">Data Absensi</a>
<a href="<?php echo base_url('index.php/')?>admin/daftarabsen" class="nav-link">Data Presensi</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/progresabsen" class="nav-link active">Progres Absensi</a>
<a href="<?php echo base_url('index.php/')?>admin/progresabsen" class="nav-link active">Progres Presensi</a>
</li>
</ul>
@ -88,7 +88,7 @@
if($msg=='error!'){
?>
<div class="alert alert-danger" role="alert">Tidak bisa membuat laporan tahun <strong><?php echo $tahun_laporan ?></strong>
, kerena absen belum lengkap 12 bulan</div>
, kerena presensi belum lengkap 12 bulan</div>
<?php }elseif($msg=='sucess'){ ?>
<div class="alert alert-success" role="alert">Laporan tahun <strong><?php echo $tahun_laporan ?></strong> berhasil dibuat !</div>
<?php } }?>

View File

@ -53,7 +53,7 @@
<li class="list-group-item text-dark border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Absensi</li>
<li class="list-group-item text-dark border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Laporan</li>

View File

@ -53,7 +53,7 @@
<li class="list-group-item text-dark border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Absensi</li>
<li class="list-group-item text-dark border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Laporan</li>

View File

@ -65,7 +65,7 @@
<li class="list-group-item text-dark border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item bg-primary text-white border-bottom">Absensi</li>
<li class="list-group-item bg-primary text-white border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Laporan</li>
@ -78,21 +78,21 @@
</div>
<div class="col-md-9" >
<div class="card">
<h5 class="card-header">Absensi</h5>
<h5 class="card-header">Presensi</h5>
<div class="card-body">
<div>
<ul class="nav nav-tabs">
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/absensi" class="nav-link">Absen Aktif</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" class="nav-link">Presensi Aktif</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/daftarabsen" class="nav-link">Data Absensi</a>
<a href="<?php echo base_url('index.php/')?>admin/daftarabsen" class="nav-link">Data Presensi</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>admin/progresabsen" class="nav-link">Progres Absensi</a>
<a href="<?php echo base_url('index.php/')?>admin/progresabsen" class="nav-link">Progres Presensi</a>
</li>
<li class="nav-item">
<a href="" class="nav-link active">Buat Absensi</a>
<a href="" class="nav-link active">Buat Presensi</a>
</li>
</ul>
@ -102,14 +102,14 @@
<?php
if(isset($error_tutup_tahun)){
?>
<div class="alert alert-danger" role="alert">Gagal, Absensi untuk tahun <strong><?php echo $error_tutup_tahun ?></strong> sudah ditutup !</div>
<div class="alert alert-danger" role="alert">Gagal, Presensi untuk tahun <strong><?php echo $error_tutup_tahun ?></strong> sudah ditutup !</div>
<?php
}
?>
<?php
if(isset($error_last_mont)){
?>
<div class="alert alert-danger" role="alert">Gagal, Absensi bulan sebelumnya <strong>( <?php echo $error_last_mont ?> <?php echo $tahun ?> )</strong> belum dibuat !</div>
<div class="alert alert-danger" role="alert">Gagal, Presensi bulan sebelumnya <strong>( <?php echo $error_last_mont ?> <?php echo $tahun ?> )</strong> belum dibuat !</div>
<?php
}
?>

View File

@ -52,7 +52,7 @@
<li class="list-group-item text-dark border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Absensi</li>
<li class="list-group-item text-dark border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Laporan</li>

View File

@ -53,7 +53,7 @@
<li class="list-group-item text-dark border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Absensi</li>
<li class="list-group-item text-dark border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Laporan</li>

View File

@ -55,7 +55,7 @@
<li class="list-group-item bg-primary text-white border-bottom">Data UMKM</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/absensi" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Absensi</li>
<li class="list-group-item text-dark border-bottom">Presensi</li>
</a>
<a href="<?php echo base_url('index.php/')?>admin/laporan" style="text-decoration:none;">
<li class="list-group-item text-dark border-bottom">Laporan</li>
@ -82,7 +82,7 @@
if($del_msg=='error'){
?>
<div class="alert alert-danger" role="alert">Tidak bisa menghapus <strong><?php echo $del_umkm ?></strong>
, kerena terdapat data absensi yang terkait !</div>
, kerena terdapat data presensi yang terkait !</div>
<?php }elseif($del_msg=='sucess'){ ?>
<div class="alert alert-success" role="alert">Data berhasil terhapus !</div>
<?php }} ?>

View File

@ -73,7 +73,7 @@
if($del_msg=='error'){
?>
<div class="alert alert-danger" role="alert">Tidak bisa menghapus <strong><?php echo $del_umkm ?></strong>
, kerena terdapat data absensi yang terkait !</div>
, kerena terdapat data presensi yang terkait !</div>
<?php }elseif($del_msg=='sucess'){ ?>
<div class="alert alert-success" role="alert">Data berhasil terhapus !</div>
<?php }} ?>

View File

@ -190,10 +190,10 @@
<hr>
<ul class="nav nav-tabs">
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>user/detailumkm?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link active">Absen</a>
<a href="<?php echo base_url('index.php/')?>user/detailumkm?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link active">Presensi</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>user/riwayatabsensi?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link">Riwayat Absen</a>
<a href="<?php echo base_url('index.php/')?>user/riwayatabsensi?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link">Riwayat Presensi</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>user/produk?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link">Produk</a>
@ -208,7 +208,7 @@
<div class="col col-12">
<div class="card">
<div class="card-header bg-primary text-white">
Absen Aktif
Presensi Aktif
</div>
<?php if($active_absen){?>
@ -235,14 +235,14 @@
if($msg=='success'){
?>
<div class="col col-md-12">
<div class="alert alert-success" role="alert">Absensi berhasil tersimpan !</div>
<div class="alert alert-success" role="alert">Presensi berhasil tersimpan !</div>
</div>
<?php
} else {
?>
<div class="col col-md-12">
<div class="alert alert-danger" role="alert">Absensi gagal !</div>
<div class="alert alert-danger" role="alert">Presensi gagal !</div>
</div>
<?php
}
@ -275,7 +275,7 @@
<div class="col col-12">
<hr>
<button type="submit" class="btn btn-primary">Update Absen</button>
<button type="submit" class="btn btn-primary">Update Presensi</button>
</div>
</div>
</form>

View File

@ -191,10 +191,10 @@
<hr>
<ul class="nav nav-tabs">
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>user/detailumkm?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link">Absen</a>
<a href="<?php echo base_url('index.php/')?>user/detailumkm?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link">Presensi</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>user/riwayatabsensi?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link">Riwayat Absen</a>
<a href="<?php echo base_url('index.php/')?>user/riwayatabsensi?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link">Riwayat Presensi</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>user/produk?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link active">Produk</a>

View File

@ -190,10 +190,10 @@
<hr>
<ul class="nav nav-tabs">
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>user/detailumkm?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link">Absen</a>
<a href="<?php echo base_url('index.php/')?>user/detailumkm?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link">Presensi</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>user/riwayatabsensi?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link active">Riwayat Absen</a>
<a href="<?php echo base_url('index.php/')?>user/riwayatabsensi?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link active">Riwayat Presensi</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>user/produk?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link">Produk</a>

View File

@ -191,10 +191,10 @@
<hr>
<ul class="nav nav-tabs">
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>user/detailumkm?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link">Absen</a>
<a href="<?php echo base_url('index.php/')?>user/detailumkm?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link">Presensi</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>user/riwayatabsensi?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link">Riwayat Absen</a>
<a href="<?php echo base_url('index.php/')?>user/riwayatabsensi?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link">Riwayat Presensi</a>
</li>
<li class="nav-item">
<a href="<?php echo base_url('index.php/')?>user/produk?id_umkm=<?php echo $umkm->id_umkm ?>" class="nav-link">Produk</a>

View File

@ -3,7 +3,7 @@
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 21, 2021 at 10:17 AM
-- Generation Time: Nov 22, 2021 at 07:54 AM
-- Server version: 10.4.16-MariaDB
-- PHP Version: 7.4.12
@ -515,6 +515,200 @@ INSERT INTO `tb_user` (`id_user`, `nama`, `username`, `password`, `alamat_user`,
(6, 'Prawira Setia ', 'prawira', '643ed2bde5b2f6bd70f7f32a9b0f4ebb', 'Jambe Wangi', 'Magelang Selatan', 'Kramat Utara', 'Kota Magelang', '082689625495', '', 'user.png', 'pemilik'),
(16, 'Hafidz Fachrisyah', 'hafidzfachrisyah', '643ed2bde5b2f6bd70f7f32a9b0f4ebb', 'Rejowinangun Selatan, Magelang Selatan, Magelang', 'Magelang Selatan', 'Rejowinangun Utara', 'Kota Magelang', '081228868280', '-', 'user.png', 'pemilik');
-- --------------------------------------------------------
--
-- Stand-in structure for view `view_absen`
-- (See below for the actual view)
--
CREATE TABLE `view_absen` (
`id_absen` bigint(20)
,`bulan` int(11)
,`tahun` int(11)
,`jumlah_umkm` bigint(20)
,`omset` bigint(20)
,`aset` bigint(20)
,`karyawan_l` bigint(20)
,`karyawan_p` bigint(20)
,`status_absen` enum('open','close')
);
-- --------------------------------------------------------
--
-- Stand-in structure for view `view_absensi`
-- (See below for the actual view)
--
CREATE TABLE `view_absensi` (
`id_absensi` bigint(20)
,`id_absen` varchar(20)
,`id_umkm` varchar(20)
,`id_pemilik` varchar(20)
,`id_jenis` bigint(20)
,`id_kategori` bigint(20)
,`kecamatan` varchar(50)
,`kelurahan` varchar(50)
,`aset` bigint(20)
,`omset` bigint(20)
,`karyawan_l` bigint(20)
,`karyawan_p` bigint(20)
,`bulan` varchar(20)
,`tahun` varchar(20)
,`signed` tinyint(1)
);
-- --------------------------------------------------------
--
-- Stand-in structure for view `view_laporan`
-- (See below for the actual view)
--
CREATE TABLE `view_laporan` (
`id_laporan` int(11)
,`tahun` int(11)
,`bulan` bigint(20)
,`kelurahan` varchar(50)
,`kecamatan` varchar(50)
,`aset` bigint(20)
,`omset` bigint(20)
,`jumlah_umkm` bigint(20)
,`karyawan_jenis1` bigint(20)
,`karyawan_jenis2` bigint(20)
,`karyawan_jenis3` bigint(20)
,`omset_jenis1` bigint(20)
,`omset_jenis2` bigint(20)
,`omset_jenis3` bigint(20)
,`aset_jenis1` bigint(20)
,`aset_jenis2` bigint(20)
,`aset_jenis3` bigint(20)
,`karyawan_jen1_l` int(11)
,`karyawan_jen1_p` int(11)
,`karyawan_jen2_l` int(11)
,`karyawan_jen2_p` int(11)
,`karyawan_jen3_l` int(11)
,`karyawan_jen3_p` int(11)
,`umkm_jen1_kat1` bigint(20)
,`umkm_jen1_kat2` bigint(20)
,`umkm_jen1_kat3` bigint(20)
,`umkm_jen2_kat1` bigint(20)
,`umkm_jen2_kat2` bigint(20)
,`umkm_jen2_kat3` bigint(20)
,`umkm_jen3_kat1` bigint(20)
,`umkm_jen3_kat2` bigint(20)
,`umkm_jen3_kat3` bigint(20)
);
-- --------------------------------------------------------
--
-- Stand-in structure for view `view_produk`
-- (See below for the actual view)
--
CREATE TABLE `view_produk` (
`id_produk` bigint(20)
,`foto_produk` text
,`id_umkm` bigint(20)
,`produk` varchar(50)
,`deskripsi` text
);
-- --------------------------------------------------------
--
-- Stand-in structure for view `view_umkm`
-- (See below for the actual view)
--
CREATE TABLE `view_umkm` (
`id_umkm` bigint(20)
,`id_pemilik` varchar(50)
,`nama` varchar(100)
,`id_kategori` int(11)
,`kecamatan` enum('Magelang Selatan','Magelang Tengah','Magelang Utara')
,`kelurahan` varchar(50)
,`alamat` text
,`telp` varchar(30)
,`id_jenis` int(11)
,`omset_awal` bigint(20)
,`aset_awal` bigint(20)
,`karyawan_l` bigint(20)
,`karyawan_p` bigint(20)
,`deskripsi` text
,`foto_umkm` text
);
-- --------------------------------------------------------
--
-- Stand-in structure for view `view_user`
-- (See below for the actual view)
--
CREATE TABLE `view_user` (
`id_user` bigint(20)
,`nama` varchar(30)
,`username` varchar(20)
,`alamat_user` text
,`kecamatan_user` enum('Magelang Selatan','Magelang Tengah','Magelang Utara','Luar Kota Magelang')
,`kelurahan_user` varchar(50)
,`kota_user` enum('Kota Magelang','Luar Kota Magelang')
,`telp_user` varchar(30)
,`npwp` varchar(60)
,`foto_user` text
);
-- --------------------------------------------------------
--
-- Structure for view `view_absen`
--
DROP TABLE IF EXISTS `view_absen`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_absen` AS SELECT `tb_absen`.`id_absen` AS `id_absen`, `tb_absen`.`bulan` AS `bulan`, `tb_absen`.`tahun` AS `tahun`, `tb_absen`.`jumlah_umkm` AS `jumlah_umkm`, `tb_absen`.`omset` AS `omset`, `tb_absen`.`aset` AS `aset`, `tb_absen`.`karyawan_l` AS `karyawan_l`, `tb_absen`.`karyawan_p` AS `karyawan_p`, `tb_absen`.`status_absen` AS `status_absen` FROM `tb_absen` ;
-- --------------------------------------------------------
--
-- Structure for view `view_absensi`
--
DROP TABLE IF EXISTS `view_absensi`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_absensi` AS SELECT `tb_absensi`.`id_absensi` AS `id_absensi`, `tb_absensi`.`id_absen` AS `id_absen`, `tb_absensi`.`id_umkm` AS `id_umkm`, `tb_absensi`.`id_pemilik` AS `id_pemilik`, `tb_absensi`.`id_jenis` AS `id_jenis`, `tb_absensi`.`id_kategori` AS `id_kategori`, `tb_absensi`.`kecamatan` AS `kecamatan`, `tb_absensi`.`kelurahan` AS `kelurahan`, `tb_absensi`.`aset` AS `aset`, `tb_absensi`.`omset` AS `omset`, `tb_absensi`.`karyawan_l` AS `karyawan_l`, `tb_absensi`.`karyawan_p` AS `karyawan_p`, `tb_absensi`.`bulan` AS `bulan`, `tb_absensi`.`tahun` AS `tahun`, `tb_absensi`.`signed` AS `signed` FROM `tb_absensi` ;
-- --------------------------------------------------------
--
-- Structure for view `view_laporan`
--
DROP TABLE IF EXISTS `view_laporan`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_laporan` AS SELECT `tb_laporan`.`id_laporan` AS `id_laporan`, `tb_laporan`.`tahun` AS `tahun`, `tb_laporan`.`bulan` AS `bulan`, `tb_laporan`.`kelurahan` AS `kelurahan`, `tb_laporan`.`kecamatan` AS `kecamatan`, `tb_laporan`.`aset` AS `aset`, `tb_laporan`.`omset` AS `omset`, `tb_laporan`.`jumlah_umkm` AS `jumlah_umkm`, `tb_laporan`.`karyawan_jenis1` AS `karyawan_jenis1`, `tb_laporan`.`karyawan_jenis2` AS `karyawan_jenis2`, `tb_laporan`.`karyawan_jenis3` AS `karyawan_jenis3`, `tb_laporan`.`omset_jenis1` AS `omset_jenis1`, `tb_laporan`.`omset_jenis2` AS `omset_jenis2`, `tb_laporan`.`omset_jenis3` AS `omset_jenis3`, `tb_laporan`.`aset_jenis1` AS `aset_jenis1`, `tb_laporan`.`aset_jenis2` AS `aset_jenis2`, `tb_laporan`.`aset_jenis3` AS `aset_jenis3`, `tb_laporan`.`karyawan_jen1_l` AS `karyawan_jen1_l`, `tb_laporan`.`karyawan_jen1_p` AS `karyawan_jen1_p`, `tb_laporan`.`karyawan_jen2_l` AS `karyawan_jen2_l`, `tb_laporan`.`karyawan_jen2_p` AS `karyawan_jen2_p`, `tb_laporan`.`karyawan_jen3_l` AS `karyawan_jen3_l`, `tb_laporan`.`karyawan_jen3_p` AS `karyawan_jen3_p`, `tb_laporan`.`umkm_jen1_kat1` AS `umkm_jen1_kat1`, `tb_laporan`.`umkm_jen1_kat2` AS `umkm_jen1_kat2`, `tb_laporan`.`umkm_jen1_kat3` AS `umkm_jen1_kat3`, `tb_laporan`.`umkm_jen2_kat1` AS `umkm_jen2_kat1`, `tb_laporan`.`umkm_jen2_kat2` AS `umkm_jen2_kat2`, `tb_laporan`.`umkm_jen2_kat3` AS `umkm_jen2_kat3`, `tb_laporan`.`umkm_jen3_kat1` AS `umkm_jen3_kat1`, `tb_laporan`.`umkm_jen3_kat2` AS `umkm_jen3_kat2`, `tb_laporan`.`umkm_jen3_kat3` AS `umkm_jen3_kat3` FROM `tb_laporan` ;
-- --------------------------------------------------------
--
-- Structure for view `view_produk`
--
DROP TABLE IF EXISTS `view_produk`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_produk` AS SELECT `tb_produk`.`id_produk` AS `id_produk`, `tb_produk`.`foto_produk` AS `foto_produk`, `tb_produk`.`id_umkm` AS `id_umkm`, `tb_produk`.`produk` AS `produk`, `tb_produk`.`deskripsi` AS `deskripsi` FROM `tb_produk` ;
-- --------------------------------------------------------
--
-- Structure for view `view_umkm`
--
DROP TABLE IF EXISTS `view_umkm`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_umkm` AS SELECT `tb_umkm`.`id_umkm` AS `id_umkm`, `tb_umkm`.`id_pemilik` AS `id_pemilik`, `tb_umkm`.`nama` AS `nama`, `tb_umkm`.`id_kategori` AS `id_kategori`, `tb_umkm`.`kecamatan` AS `kecamatan`, `tb_umkm`.`kelurahan` AS `kelurahan`, `tb_umkm`.`alamat` AS `alamat`, `tb_umkm`.`telp` AS `telp`, `tb_umkm`.`id_jenis` AS `id_jenis`, `tb_umkm`.`omset_awal` AS `omset_awal`, `tb_umkm`.`aset_awal` AS `aset_awal`, `tb_umkm`.`karyawan_l` AS `karyawan_l`, `tb_umkm`.`karyawan_p` AS `karyawan_p`, `tb_umkm`.`deskripsi` AS `deskripsi`, `tb_umkm`.`foto_umkm` AS `foto_umkm` FROM `tb_umkm` ;
-- --------------------------------------------------------
--
-- Structure for view `view_user`
--
DROP TABLE IF EXISTS `view_user`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_user` AS SELECT `tb_user`.`id_user` AS `id_user`, `tb_user`.`nama` AS `nama`, `tb_user`.`username` AS `username`, `tb_user`.`alamat_user` AS `alamat_user`, `tb_user`.`kecamatan_user` AS `kecamatan_user`, `tb_user`.`kelurahan_user` AS `kelurahan_user`, `tb_user`.`kota_user` AS `kota_user`, `tb_user`.`telp_user` AS `telp_user`, `tb_user`.`npwp` AS `npwp`, `tb_user`.`foto_user` AS `foto_user` FROM `tb_user` ;
--
-- Indexes for dumped tables
--