First Commit
This commit is contained in:
272
application/views/admin/absensi.php
Normal file
272
application/views/admin/absensi.php
Normal file
@@ -0,0 +1,272 @@
|
||||
<?php
|
||||
function rupiah($angka){
|
||||
|
||||
$hasil_rupiah = "Rp " . number_format($angka,2,',','.');
|
||||
return $hasil_rupiah;
|
||||
|
||||
}
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/dataTables.bootstrap4.min.css">
|
||||
|
||||
<link data-require="sweet-alert@*" data-semver="0.4.2" rel="stylesheet" href="<?php echo base_url()?>assets/css/sweetalert.min.css" />
|
||||
|
||||
<link rel="icon" type="image/png" href="../../assets/images/favicon.png" />
|
||||
|
||||
<title>Aplikasi UMKM</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="<?php echo base_url()?>assets/images/logo-white.png" width="100" alt="">
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
</ul>
|
||||
<form methode="POST" action="../login/logout" class="form-inline my-2 my-lg-0" >
|
||||
<button class="btn btn-outline-warning btn-sm my-2 my-sm-0" type="submit">Logout</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3" style="cursor:pointer;">
|
||||
<div class="card" style="width: 18rem;">
|
||||
<div class="card-header text-center">
|
||||
<img src="<?php echo base_url()?>assets/images/<?php echo $user_logged->foto_user ?>" width="125" /><br>
|
||||
<strong><?php echo $user_logged->nama ?></strong>
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark border-bottom">Data Pemilik UMKM</li>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/umkm" style="text-decoration:none;">
|
||||
<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>
|
||||
</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>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/setting" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark">Setting</li>
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="card">
|
||||
<h5 class="card-header">Absensi</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>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/daftarabsen" class="nav-link">Data Absensi</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/progresabsen" class="nav-link">Progres Absensi</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="mt-3">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header bg-primary text-white">
|
||||
Status Absensi
|
||||
</div>
|
||||
<?php if($active_absen){?>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col col-auto">
|
||||
<h3>Absensi 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>
|
||||
<a class="btn btn-sm btn-danger" href="<?php echo base_url('index.php/')?>admin/nonaktifabsenutama?id_absen=<?php echo $data_absen->id_absen ?>">Nonaktif</a>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card text-center bg-success text-light">
|
||||
<div class="card-header">
|
||||
Jumlah Umkm
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><b><?php echo $data_absen->jumlah_umkm?></b></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="card text-center bg-info text-light">
|
||||
<div class="card-header">
|
||||
<?php echo $nm_kategori1 ?>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><?php echo $jml_kategori1 ?></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="card text-center bg-warning">
|
||||
<div class="card-header">
|
||||
<?php echo $nm_kategori2 ?>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><?php echo $jml_kategori2 ?></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="card text-center bg-primary text-light">
|
||||
<div class="card-header">
|
||||
<?php echo $nm_kategori3 ?>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><?php echo $jml_kategori3 ?></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<label>Progres Absensi</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>
|
||||
</div>
|
||||
<div class="mt-1 mb-2">
|
||||
<span class="badge badge-success">Sudah Absen</span>
|
||||
<span class="badge badge-secondary ml-2">Belum Absen</span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div div class="card text-center">
|
||||
<div class="card-header bg-success text-light">
|
||||
Rata-rata Aset
|
||||
</div>
|
||||
<?php
|
||||
$ratarataaset = ($data_absen->aset/$data_absen->jumlah_umkm);
|
||||
?>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><?php echo rupiah($ratarataaset) ?></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div div class="card text-center">
|
||||
<div class="card-header bg-success text-light">
|
||||
Rata-rata Omset Bulan ini
|
||||
</div>
|
||||
<?php
|
||||
$ratarataomset = ($data_absen->omset/$data_absen->jumlah_umkm);
|
||||
?>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><?php echo rupiah($ratarataomset) ?></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } else {?>
|
||||
<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.
|
||||
</div>
|
||||
<div>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/tambahabsen" class="btn btn-lg btn-success">Buat Absensi</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="<?php echo base_url()?>assets/js/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/sweetalert.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tabeldata').DataTable();
|
||||
} );
|
||||
</script>
|
||||
|
||||
<script>
|
||||
const element = document.querySelectorAll('#btn_hapus')
|
||||
element.forEach(function(el){
|
||||
|
||||
el.addEventListener('click', function (e) {
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
var urlToRedirect = e.currentTarget.getAttribute('href'); //use currentTarget because the click may be on the nested i tag and not a tag causing the href to be empty
|
||||
console.log(urlToRedirect); // verify if this is the right URL
|
||||
|
||||
swal({
|
||||
title: "Kamu yakin ?",
|
||||
text: "Data yang dihapus tidak bisa dikembalikan.",
|
||||
icon: "warning",
|
||||
buttons: [
|
||||
'Batal',
|
||||
'Hapus'
|
||||
],
|
||||
dangerMode: true,
|
||||
}).then(function(isConfirm) {
|
||||
if (isConfirm) {
|
||||
swal({
|
||||
title: 'Berhasil',
|
||||
text: 'Data berhasil terhapus',
|
||||
icon: 'success'
|
||||
}).then(function() {
|
||||
window.location.href = urlToRedirect;
|
||||
});
|
||||
} else {
|
||||
swal("Batal", "Data tidak terhapus.)", "error");
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
313
application/views/admin/daftarabsen.php
Normal file
313
application/views/admin/daftarabsen.php
Normal file
@@ -0,0 +1,313 @@
|
||||
<?php
|
||||
function rupiah($angka){
|
||||
|
||||
$hasil_rupiah = "Rp " . number_format($angka,2,',','.');
|
||||
return $hasil_rupiah;
|
||||
|
||||
}
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/dataTables.bootstrap4.min.css">
|
||||
<link data-require="sweet-alert@*" data-semver="0.4.2" rel="stylesheet" href="<?php echo base_url()?>assets/css/sweetalert.min.css" />
|
||||
|
||||
<link rel="icon" type="image/png" href="../../assets/images/favicon.png" />
|
||||
|
||||
<title>Aplikasi UMKM</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="<?php echo base_url()?>assets/images/logo-white.png" width="100" alt="">
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
</ul>
|
||||
<form methode="POST" action="../login/logout" class="form-inline my-2 my-lg-0" >
|
||||
<button class="btn btn-outline-warning btn-sm my-2 my-sm-0" type="submit">Logout</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3" style="cursor:pointer;">
|
||||
<div class="card" style="width: 18rem;">
|
||||
<div class="card-header text-center">
|
||||
<img src="<?php echo base_url()?>assets/images/<?php echo $user_logged->foto_user ?>" width="125" /><br>
|
||||
<strong><?php echo $user_logged->nama ?></strong>
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark border-bottom">Data Pemilik UMKM</li>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/umkm" style="text-decoration:none;">
|
||||
<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>
|
||||
</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>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/setting" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark">Setting</li>
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="card">
|
||||
<h5 class="card-header">Absensi</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>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/daftarabsen" class="nav-link active">Data Absensi</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/progresabsen" class="nav-link">Progres Absensi</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="mt-3">
|
||||
<div>
|
||||
<form action="" method="POST" class="needs-validation">
|
||||
<div class="form-group">
|
||||
<label for="tahun">Pilih Tahun</label>
|
||||
<select name="tahun" class="form-control" id="tahun" onchange="this.form.submit()" required>
|
||||
<?php foreach($tahun_list as $list) {?>
|
||||
<option value="<?php echo $list->tahun ?>" <?php if($list->tahun===$tahun){echo "selected";}?>>
|
||||
<?php echo $list->tahun ?>
|
||||
</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
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>
|
||||
<?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 !
|
||||
</div>
|
||||
<?php } elseif($del_msg=='sucess'){ ?>
|
||||
<div class="alert alert-success" role="alert">Data berhasil terhapus !</div>
|
||||
<?php }}?>
|
||||
|
||||
<?php
|
||||
$jumlahlaporan = $laporanmodel->getLaporanCountByYear($tahun);
|
||||
if($jumlahlaporan>0){
|
||||
$notifikasi = true;
|
||||
} else {
|
||||
$notifikasi = false;
|
||||
}
|
||||
?>
|
||||
|
||||
<?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 !
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<table id="tabeldata" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Bln</th>
|
||||
<th>Jml Absensi</th>
|
||||
<th>Jml UMKM</th>
|
||||
<th>Rata-rata Aset</th>
|
||||
<th>Rata-rata Omset/Bln</th>
|
||||
<?php if(!$notifikasi){?>
|
||||
<th>Status</th>
|
||||
<?php } ?>
|
||||
<th>Opsi</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach($data_absen as $absen) {
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php
|
||||
|
||||
if($absen->bulan==1){
|
||||
$bulan = 'Januari';
|
||||
} elseif($absen->bulan==2){
|
||||
$bulan = 'Februari';
|
||||
} elseif($absen->bulan==3){
|
||||
$bulan = 'Maret';
|
||||
} elseif($absen->bulan==4){
|
||||
$bulan = 'April';
|
||||
} elseif($absen->bulan==5){
|
||||
$bulan = 'Mei';
|
||||
} elseif($absen->bulan==6){
|
||||
$bulan = 'Juni';
|
||||
} elseif($absen->bulan==7){
|
||||
$bulan = 'Juli';
|
||||
} elseif($absen->bulan==8){
|
||||
$bulan = 'Agustus';
|
||||
} elseif($absen->bulan==9){
|
||||
$bulan = 'September';
|
||||
} elseif($absen->bulan==10){
|
||||
$bulan = 'Oktober';
|
||||
} elseif($absen->bulan==11){
|
||||
$bulan = 'November';
|
||||
} elseif($absen->bulan==12){
|
||||
$bulan = 'Desember';
|
||||
} else {
|
||||
$bulan = 'a/n';
|
||||
}
|
||||
|
||||
?>
|
||||
<td><?php echo $bulan?></td>
|
||||
|
||||
<?php
|
||||
|
||||
$jumlahabsensi = $model->getSignedAbsensiCountByAbsenId($absen->id_absen);
|
||||
?>
|
||||
|
||||
|
||||
<td><?php echo $jumlahabsensi?></td>
|
||||
|
||||
<td><?php echo $absen->jumlah_umkm ?></td>
|
||||
<?php
|
||||
if($absen->jumlah_umkm > 0){
|
||||
$ratarataaset = ($absen->aset/$absen->jumlah_umkm);
|
||||
} else {
|
||||
$ratarataaset = 0;
|
||||
}
|
||||
?>
|
||||
<td><?php echo rupiah($ratarataaset) ?></td>
|
||||
<?php
|
||||
if($absen->jumlah_umkm > 0){
|
||||
$ratarataomset =($absen->omset/$absen->jumlah_umkm);
|
||||
} else {
|
||||
$ratarataomset = 0;
|
||||
}
|
||||
?>
|
||||
<td><?php echo rupiah($ratarataomset) ?></td>
|
||||
<?php if(!$notifikasi){?>
|
||||
<td>
|
||||
<?php if($absen->status_absen=='open'){?>
|
||||
<span class="badge badge-pill badge-success">Active</span>
|
||||
<?php } else {?>
|
||||
<span class="badge badge-pill badge-secondary">Inactive</span>
|
||||
<?php } ?>
|
||||
|
||||
</td>
|
||||
<?php } ?>
|
||||
<td>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/detailabsen?id_absen=<?php echo $absen->id_absen ?>" class="btn btn-block btn-info btn-sm">Detail</a>
|
||||
<?php if(!$notifikasi){?>
|
||||
<a id="btn_hapus" href="<?php echo base_url('index.php/')?>admin/hapusabsen?id_absen=<?php echo $absen->id_absen ?>&tahun=<?php echo $absen->tahun ?>" class="btn btn-block btn-danger btn-sm">Hapus</a>
|
||||
<?php if($absen->status_absen!=='open'){?>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/aktifabsen?id_absen=<?php echo $absen->id_absen ?>" class="btn btn-block btn-success btn-sm">Aktif</a>
|
||||
<?php } else {?>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/nonaktifabsen?id_absen=<?php echo $absen->id_absen ?>" class="btn btn-block btn-warning btn-sm">Nonaktif</a>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="<?php echo base_url()?>assets/js/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/sweetalert.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tabeldata').DataTable();
|
||||
} );
|
||||
</script>
|
||||
|
||||
<script>
|
||||
const element = document.querySelectorAll('#btn_hapus')
|
||||
element.forEach(function(el){
|
||||
|
||||
el.addEventListener('click', function (e) {
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
var urlToRedirect = e.currentTarget.getAttribute('href'); //use currentTarget because the click may be on the nested i tag and not a tag causing the href to be empty
|
||||
console.log(urlToRedirect); // verify if this is the right URL
|
||||
|
||||
swal({
|
||||
title: "Kamu yakin ?",
|
||||
text: "Data yang dihapus tidak bisa dikembalikan.",
|
||||
icon: "warning",
|
||||
buttons: [
|
||||
'Batal',
|
||||
'Hapus'
|
||||
],
|
||||
dangerMode: true,
|
||||
}).then(function(isConfirm) {
|
||||
if (isConfirm) {
|
||||
swal({
|
||||
title: 'Berhasil',
|
||||
text: 'Data berhasil terhapus',
|
||||
icon: 'success'
|
||||
}).then(function() {
|
||||
window.location.href = urlToRedirect;
|
||||
});
|
||||
} else {
|
||||
swal("Batal", "Data tidak terhapus.)", "error");
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
191
application/views/admin/dashboard.php
Normal file
191
application/views/admin/dashboard.php
Normal file
@@ -0,0 +1,191 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/dataTables.bootstrap4.min.css">
|
||||
|
||||
<link data-require="sweet-alert@*" data-semver="0.4.2" rel="stylesheet" href="<?php echo base_url()?>assets/css/sweetalert.min.css" />
|
||||
|
||||
<link rel="icon" type="image/png" href="../../assets/images/favicon.png" />
|
||||
|
||||
<title>Aplikasi UMKM</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="<?php echo base_url()?>assets/images/logo-white.png" width="100" alt="">
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
</ul>
|
||||
<form methode="POST" action="../login/logout" class="form-inline my-2 my-lg-0" >
|
||||
<button class="btn btn-outline-warning btn-sm my-2 my-sm-0" type="submit">Logout</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3" style="cursor:pointer;">
|
||||
<div class="card" style="width: 18rem;">
|
||||
<div class="card-header text-center">
|
||||
<img src="<?php echo base_url()?>assets/images/<?php echo $user_logged->foto_user ?>" width="125" /><br>
|
||||
<strong><?php echo $user_logged->nama ?></strong>
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" style="text-decoration:none;">
|
||||
<li class="list-group-item bg-primary text-white border-bottom">Data Pemilik UMKM</li>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/umkm" style="text-decoration:none;">
|
||||
<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>
|
||||
</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>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/setting" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark">Setting</li>
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="card">
|
||||
<h5 class="card-header">Pemilik UMKM</h5>
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/tambahpemilik" class="nav-link">Tambah Data</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" class="nav-link active">Data Pemilik</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="mt-3">
|
||||
<?php
|
||||
if (isset($del_msg)){
|
||||
if($del_msg=='error'){
|
||||
?>
|
||||
<div class="alert alert-danger" role="alert">Tidak bisa menghapus <strong><?php echo $del_pemilik ?></strong>
|
||||
, kerena terdapat data UMKM yang terkait !</div>
|
||||
<?php } elseif($del_msg=='sucess'){ ?>
|
||||
<div class="alert alert-success" role="alert">Data berhasil terhapus !</div>
|
||||
<?php }}?>
|
||||
<table id="tabeldata" class="table table-striped table-bordered" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama</th>
|
||||
<th>Username</th>
|
||||
<th>Opsi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach($data_pemilik as $pemilik) {
|
||||
$no++;
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no?></td>
|
||||
<td><?php echo $pemilik->nama?></td>
|
||||
<td><?php echo $pemilik->username?></td>
|
||||
<td>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/tambahumkm?id_user=<?php echo $pemilik->id_user ?>" class="btn btn-success btn-sm mb-1">Tambah Umkm</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/editpemilik?id_user=<?php echo $pemilik->id_user ?>" class="btn btn-warning btn-sm mb-1">Edit</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/detailpemilik?id_user=<?php echo $pemilik->id_user ?>" class="btn btn-primary btn-sm mb-1">Detail</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/resetpasspemilik?id_user=<?php echo $pemilik->id_user ?>" class="btn btn-info btn-sm mb-1">Reset Password</a>
|
||||
<a id="btn_hapus" href="<?php echo base_url('index.php/')?>admin/hapuspemilik?id_user=<?php echo $pemilik->id_user ?>" class="btn btn-danger btn-sm mb-1">Hapus</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="<?php echo base_url()?>assets/js/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/sweetalert.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tabeldata').DataTable();
|
||||
} );
|
||||
</script>
|
||||
|
||||
<script>
|
||||
const element = document.querySelectorAll('#btn_hapus')
|
||||
element.forEach(function(el){
|
||||
|
||||
el.addEventListener('click', function (e) {
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
var urlToRedirect = e.currentTarget.getAttribute('href'); //use currentTarget because the click may be on the nested i tag and not a tag causing the href to be empty
|
||||
console.log(urlToRedirect); // verify if this is the right URL
|
||||
|
||||
swal({
|
||||
title: "Kamu yakin ?",
|
||||
text: "Data yang dihapus tidak bisa dikembalikan.",
|
||||
icon: "warning",
|
||||
buttons: [
|
||||
'Batal',
|
||||
'Hapus'
|
||||
],
|
||||
dangerMode: true,
|
||||
}).then(function(isConfirm) {
|
||||
if (isConfirm) {
|
||||
swal({
|
||||
title: 'Berhasil',
|
||||
text: 'Data berhasil terhapus',
|
||||
icon: 'success'
|
||||
}).then(function() {
|
||||
window.location.href = urlToRedirect;
|
||||
});
|
||||
} else {
|
||||
swal("Batal", "Data tidak terhapus.)", "error");
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
347
application/views/admin/detailabsen.php
Normal file
347
application/views/admin/detailabsen.php
Normal file
@@ -0,0 +1,347 @@
|
||||
<?php
|
||||
function rupiah($angka){
|
||||
|
||||
$hasil_rupiah = "Rp " . number_format($angka,2,',','.');
|
||||
return $hasil_rupiah;
|
||||
|
||||
}
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/dataTables.bootstrap4.min.css">
|
||||
<link data-require="sweet-alert@*" data-semver="0.4.2" rel="stylesheet" href="<?php echo base_url()?>assets/css/sweetalert.min.css" />
|
||||
|
||||
<link rel="icon" type="image/png" href="../../assets/images/favicon.png" />
|
||||
|
||||
<title>Aplikasi UMKM</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="<?php echo base_url()?>assets/images/logo-white.png" width="100" alt="">
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
</ul>
|
||||
<form methode="POST" action="../login/logout" class="form-inline my-2 my-lg-0" >
|
||||
<button class="btn btn-outline-warning btn-sm my-2 my-sm-0" type="submit">Logout</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3" style="cursor:pointer;">
|
||||
<div class="card" style="width: 18rem;">
|
||||
<div class="card-header text-center">
|
||||
<img src="<?php echo base_url()?>assets/images/<?php echo $user_logged->foto_user ?>" width="125" /><br>
|
||||
<strong><?php echo $user_logged->nama ?></strong>
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark border-bottom">Data Pemilik UMKM</li>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/umkm" style="text-decoration:none;">
|
||||
<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>
|
||||
</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>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/setting" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark">Setting</li>
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="card">
|
||||
<h5 class="card-header">Absensi</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>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/daftarabsen" class="nav-link">Data Absensi</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/progresabsen" class="nav-link">Progres Absensi</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="" class="nav-link active">
|
||||
Detail Umkm > <strong><?php echo $bulan." ".$data_absen->tahun ?></strong></a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="mt-3">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header bg-primary text-white" >
|
||||
Detail Absensi
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col col-auto">
|
||||
<h3>Absensi Bulan <?php echo $bulan ?> Tahun <?php echo $data_absen->tahun ?></h3>
|
||||
</div>
|
||||
<div class="col text-right">
|
||||
<label>status </label>
|
||||
<?php if($data_absen->status_absen=='open'){?>
|
||||
<span class="badge badge-pill badge-success">Active</span>
|
||||
<?php } else {?>
|
||||
<span class="badge badge-pill badge-secondary">Inactive</span>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card text-center bg-success text-light">
|
||||
<div class="card-header">
|
||||
Jumlah Umkm
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><b><?php echo $data_absen->jumlah_umkm?></b></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="card text-center bg-info text-light">
|
||||
<div class="card-header">
|
||||
<?php echo $nm_kategori1 ?>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><?php echo $jml_kategori1 ?></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="card text-center bg-warning">
|
||||
<div class="card-header">
|
||||
<?php echo $nm_kategori2 ?>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><?php echo $jml_kategori2 ?></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="card text-center bg-primary text-light">
|
||||
<div class="card-header">
|
||||
<?php echo $nm_kategori3 ?>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><?php echo $jml_kategori3 ?></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<label>Progres Absensi</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>
|
||||
</div>
|
||||
<div class="mt-1 mb-2">
|
||||
<span class="badge badge-success">Sudah Absen</span>
|
||||
<span class="badge badge-secondary ml-2">Belum Absen</span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card text-center">
|
||||
<div class="card-header bg-success text-light">
|
||||
Aset Bulan ini
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><?php echo rupiah($data_absen->aset) ?></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="card text-center">
|
||||
<div class="card-header bg-success text-light">
|
||||
Omset Bulan ini
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><?php echo rupiah($data_absen->omset) ?></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mt-3">
|
||||
<div class="col col-md-12 mb-2">
|
||||
<div class="card text-center">
|
||||
<div class="card-header bg-primary text-light">
|
||||
Sudah Absen
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="tabeldata" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Umkm</th>
|
||||
<th>Omset</th>
|
||||
<th>Aset</th>
|
||||
<th>Opsi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach($data_signed_absensi as $signed_absensi) {
|
||||
$no++;
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no?></td>
|
||||
<td><?php echo $signed_absensi->nama?></td>
|
||||
<td><?php echo rupiah($signed_absensi->omset)?></td>
|
||||
<td><?php echo rupiah($signed_absensi->aset)?></td>
|
||||
<td><a target="_blank" href="<?php echo base_url('index.php/')?>admin/detailumkm?id_umkm=<?php echo $signed_absensi->id_umkm ?>" class="btn btn-block btn-info btn-sm">Detail</a></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col col-md-12">
|
||||
<div class="card text-center">
|
||||
<div class="card-header bg-danger text-light">
|
||||
Belum Absen
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="tabeldata2" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Umkm</th>
|
||||
<th>Opsi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach($data_unsigned_absensi as $unsigned_absensi) {
|
||||
$no++;
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no?></td>
|
||||
<td><?php echo $unsigned_absensi->nama?></td>
|
||||
<td><a target="_blank" href="<?php echo base_url('index.php/')?>admin/detailumkm?id_umkm=<?php echo $unsigned_absensi->id_umkm ?>" class="btn btn-block btn-info btn-sm">Detail</a></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="<?php echo base_url()?>assets/js/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/sweetalert.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tabeldata').DataTable();
|
||||
} );
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#tabeldata2').DataTable();
|
||||
} );
|
||||
</script>
|
||||
|
||||
<script>
|
||||
const element = document.querySelectorAll('#btn_hapus')
|
||||
element.forEach(function(el){
|
||||
|
||||
el.addEventListener('click', function (e) {
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
var urlToRedirect = e.currentTarget.getAttribute('href'); //use currentTarget because the click may be on the nested i tag and not a tag causing the href to be empty
|
||||
console.log(urlToRedirect); // verify if this is the right URL
|
||||
|
||||
swal({
|
||||
title: "Kamu yakin ?",
|
||||
text: "Data yang dihapus tidak bisa dikembalikan.",
|
||||
icon: "warning",
|
||||
buttons: [
|
||||
'Batal',
|
||||
'Hapus'
|
||||
],
|
||||
dangerMode: true,
|
||||
}).then(function(isConfirm) {
|
||||
if (isConfirm) {
|
||||
swal({
|
||||
title: 'Berhasil',
|
||||
text: 'Data berhasil terhapus',
|
||||
icon: 'success'
|
||||
}).then(function() {
|
||||
window.location.href = urlToRedirect;
|
||||
});
|
||||
} else {
|
||||
swal("Batal", "Data tidak terhapus.)", "error");
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
211
application/views/admin/detailpemilik.php
Normal file
211
application/views/admin/detailpemilik.php
Normal file
@@ -0,0 +1,211 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/dataTables.bootstrap4.min.css">
|
||||
<link data-require="sweet-alert@*" data-semver="0.4.2" rel="stylesheet" href="<?php echo base_url()?>assets/css/sweetalert.min.css" />
|
||||
|
||||
<link rel="icon" type="image/png" href="../../assets/images/favicon.png" />
|
||||
|
||||
<title>Aplikasi UMKM</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="../../assets/images/logo-white.png" width="100" alt="">
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
</ul>
|
||||
<form methode="POST" action="../login/logout" class="form-inline my-2 my-lg-0" >
|
||||
<button class="btn btn-outline-warning btn-sm my-2 my-sm-0" type="submit">Logout</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3" style="cursor:pointer;">
|
||||
<div class="card" style="width: 18rem;">
|
||||
<div class="card-header text-center">
|
||||
<img src="../../assets/images/<?php echo $user_logged->foto_user ?>" width="125" /><br>
|
||||
<strong><?php echo $user_logged->nama ?></strong>
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" style="text-decoration:none;">
|
||||
<li class="list-group-item bg-primary text-white border-bottom">Data Pemilik UMKM</li>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/umkm" style="text-decoration:none;">
|
||||
<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>
|
||||
</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>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/setting" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark">Setting</li>
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9" >
|
||||
<div class="card">
|
||||
<h5 class="card-header">Pemilik UMKM</h5>
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/tambahpemilik" class="nav-link">Tambah Data</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" class="nav-link">Data Pemilik</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="" class="nav-link active">
|
||||
Detail Pemilik > <strong><?php echo $pemilik->nama ?></strong></a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="mt-3">
|
||||
<form action="" class="needs-validation">
|
||||
|
||||
<div class="row pr-2">
|
||||
|
||||
<div class="col col-md-4">
|
||||
<div class="form-group text-center">
|
||||
<img class="mb-2" src="../../assets/images/<?php echo $pemilik->foto_user ?>" width="80" /><br>
|
||||
<strong><?php echo $pemilik->nama?></strong><br>
|
||||
<span class="badge badge-pill badge-info mt-3">@<?php echo $pemilik->username?></span><br>
|
||||
<?php if(strlen($pemilik->telp_user)>0){?>
|
||||
<span class="badge badge-pill badge-success">Telp : <?php echo $pemilik->telp_user?></span>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-8">
|
||||
<div class="row pb-2">
|
||||
<div class="col col-md-4 pl-2 pr-2">NPWP</div>
|
||||
<div class="col col-md-1 pl-2 pr-2">:</div>
|
||||
<div class="col col-md-7 pl-2 pr-2"><?php echo $pemilik->npwp?></div>
|
||||
</div>
|
||||
|
||||
<div class="row pb-2">
|
||||
<div class="col col-md-4 pl-2 pr-2">Kelurahan</div>
|
||||
<div class="col col-md-1 pl-2 pr-2">:</div>
|
||||
<div class="col col-md-7 pl-2 pr-2"><?php echo $pemilik->kelurahan_user?></div>
|
||||
</div>
|
||||
|
||||
<div class="row pb-2">
|
||||
<div class="col col-md-4 pl-2 pr-2">Kota</div>
|
||||
<div class="col col-md-1 pl-2 pr-2">:</div>
|
||||
<div class="col col-md-7 pl-2 pr-2"><?php echo $pemilik->kota_user?></div>
|
||||
</div>
|
||||
|
||||
<div class="row pb-2">
|
||||
<div class="col col-md-4 pl-2 pr-2">Kecamatan</div>
|
||||
<div class="col col-md-1 pl-2 pr-2">:</div>
|
||||
<div class="col col-md-7 pl-2 pr-2"><?php echo $pemilik->kecamatan_user?></div>
|
||||
</div>
|
||||
|
||||
<div class="row pb-2">
|
||||
<div class="col col-md-4 pl-2 pr-2">Alamat</div>
|
||||
<div class="col col-md-1 pl-2 pr-2">:</div>
|
||||
<div class="col col-md-7 pl-2 pr-2">
|
||||
<textarea class="form-control" rows="3" disabled><?php echo $pemilik->alamat_user?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col col-md-12">
|
||||
<hr>
|
||||
<h5 class="ml-3">Daftar UMKM</h5>
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="mt-2">
|
||||
<table id="tabeldata" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama Umkm</th>
|
||||
<th>Kecamatan</th>
|
||||
<th>Kelurahan</th>
|
||||
<th>Kategori</th>
|
||||
<th>Opsi</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach($listumkm as $umkm) {
|
||||
$no++;
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no?></td>
|
||||
<td><?php echo $umkm->nama ?></td>
|
||||
|
||||
<td><?php echo $umkm->kecamatan ?></td>
|
||||
<td><?php echo $umkm->kelurahan ?></td>
|
||||
|
||||
<td><?php echo $umkm->kategori ?></td>
|
||||
|
||||
<td>
|
||||
<a target="_blank" href="<?php echo base_url('index.php/')?>admin/detailumkm?id_umkm=<?php echo $umkm->id_umkm ?>" class="btn btn-block btn-info btn-sm">Detail</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="<?php echo base_url()?>assets/js/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/sweetalert.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tabeldata').DataTable();
|
||||
} );
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
312
application/views/admin/detailumkm.php
Normal file
312
application/views/admin/detailumkm.php
Normal file
@@ -0,0 +1,312 @@
|
||||
<?php
|
||||
function rupiah($angka){
|
||||
|
||||
$hasil_rupiah = "Rp " . number_format($angka,0,',','.');
|
||||
return $hasil_rupiah;
|
||||
|
||||
}
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/dataTables.bootstrap4.min.css">
|
||||
<link data-require="sweet-alert@*" data-semver="0.4.2" rel="stylesheet" href="<?php echo base_url()?>assets/css/sweetalert.min.css" />
|
||||
|
||||
|
||||
<link rel="icon" type="image/png" href="../../assets/images/favicon.png" />
|
||||
|
||||
<title>Aplikasi UMKM</title>
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="../../assets/images/logo-white.png" width="100" alt="">
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
</ul>
|
||||
<form methode="POST" action="../login/logout" class="form-inline my-2 my-lg-0" >
|
||||
<button class="btn btn-outline-warning btn-sm my-2 my-sm-0" type="submit">Logout</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3" style="cursor:pointer;">
|
||||
<div class="card" style="width: 18rem;">
|
||||
<div class="card-header text-center">
|
||||
<img src="../../assets/images/<?php echo $user_logged->foto_user ?>" width="125" /><br>
|
||||
<strong><?php echo $user_logged->nama ?></strong>
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark border-bottom">Data Pemilik UMKM</li>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/umkm" style="text-decoration:none;">
|
||||
<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>
|
||||
</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>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/setting" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark">Setting</li>
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9" >
|
||||
<div class="card">
|
||||
<h5 class="card-header">Data UMKM</h5>
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/umkm" class="nav-link">Daftar UMKM</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="" class="nav-link active">
|
||||
Detail Umkm > <strong><?php echo $umkm->nama ?></strong></a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="mt-3">
|
||||
<form action="" class="needs-validation">
|
||||
<div class="row pr-2">
|
||||
<div class="col col-md-4 pt-4">
|
||||
<div class="form-group text-center">
|
||||
<img src="../../assets/images/umkm/<?php echo $umkm->foto_umkm ?>" width="100" class="mb-2" /><br>
|
||||
<strong><?php echo $umkm->nama?></strong><br>
|
||||
<span>Pemilik :</span><br>
|
||||
<a target="_blank" href="<?php echo base_url('index.php/')?>admin/detailpemilik?id_user=<?php echo $pemilik->id_user ?>">
|
||||
<span class="badge badge-pill badge-info">
|
||||
<?php echo $pemilik->nama?>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-8">
|
||||
<div class="row pt-1 ml-2 mb-0 pb-0">
|
||||
<strong>DATA TERKINI</strong>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col col-md-4">
|
||||
<div class="card text-center">
|
||||
<div class="card-header text-light bg-success">
|
||||
TENAGA KERJA
|
||||
</div>
|
||||
<div class="card-body text-left">
|
||||
<span class="badge badge-secondary">Laki-laki : <?php echo $karyawan_l?></span><br>
|
||||
<span class="badge badge-secondary">Perempuan : <?php echo $karyawan_p?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-4">
|
||||
<div class="card text-center">
|
||||
<div class="card-header bg-warning">
|
||||
OMSET TAHUNAN
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h6><?php echo rupiah($omset) ?></h6>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-4">
|
||||
<div class="card text-center">
|
||||
<div class="card-header text-light bg-info">
|
||||
ASET TERAKHIR
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h6><?php echo rupiah($aset) ?></h6>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-12">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row pr-2">
|
||||
<div class="col col-md-6">
|
||||
|
||||
<div class="row pb-2 pl-3">
|
||||
<div class="col col-md-4 pl-2 pr-2">No Telp</div>
|
||||
<div class="col col-md-1 pl-2 pr-2">:</div>
|
||||
<div class="col col-md-7 pl-2 pr-2"><?php echo $umkm->telp?></div>
|
||||
</div>
|
||||
|
||||
<div class="row pb-2 pl-3">
|
||||
<div class="col col-md-4 pl-2 pr-2">Kategori</div>
|
||||
<div class="col col-md-1 pl-2 pr-2">:</div>
|
||||
<div class="col col-md-7 pl-2 pr-2"><?php echo $umkm->kategori?></div>
|
||||
</div>
|
||||
|
||||
<div class="row pb-2 pl-3">
|
||||
<div class="col col-md-4 pl-2 pr-2">Jenis</div>
|
||||
<div class="col col-md-1 pl-2 pr-2">:</div>
|
||||
<div class="col col-md-7 pl-2 pr-2"><?php echo $umkm->jenis?></div>
|
||||
</div>
|
||||
|
||||
<div class="row pb-2 pl-3">
|
||||
<div class="col col-md-4 pl-2 pr-2">Kelurahan</div>
|
||||
<div class="col col-md-1 pl-2 pr-2">:</div>
|
||||
<div class="col col-md-7 pl-2 pr-2"><?php echo $umkm->kelurahan?></div>
|
||||
</div>
|
||||
|
||||
<div class="row pb-2 pl-3">
|
||||
<div class="col col-md-4 pl-2 pr-2">Kecamatan</div>
|
||||
<div class="col col-md-1 pl-2 pr-2">:</div>
|
||||
<div class="col col-md-7 pl-2 pr-2"><?php echo $umkm->kecamatan?></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col col-md-6">
|
||||
|
||||
<div class="row pb-2">
|
||||
<div class="col col-md-12">Alamat</div>
|
||||
<div class="col col-md-12">
|
||||
<textarea class="form-control" rows="1" disabled><?php echo $umkm->alamat?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row pb-2">
|
||||
<div class="col col-md-12">Deskripsi</div>
|
||||
<div class="col col-md-12">
|
||||
<textarea class="form-control" rows="2" disabled><?php echo $umkm->deskripsi?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col col-md-12">
|
||||
<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>
|
||||
</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>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mt-2">
|
||||
<div class="col col-md-12">
|
||||
<table id="tabeldata" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Tahun</th>
|
||||
<th>Bulan</th>
|
||||
<th>Aset Terkini</th>
|
||||
<th>Omset Bulan Ini</th>
|
||||
<th>Jumlah Karyawan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach($listabsensi as $absensi) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $absensi->tahun?></td>
|
||||
<?php
|
||||
if($absensi->bulan==1){
|
||||
$bulan = 'Januari';
|
||||
} elseif($absensi->bulan==2){
|
||||
$bulan = 'Februari';
|
||||
} elseif($absensi->bulan==3){
|
||||
$bulan = 'Maret';
|
||||
} elseif($absensi->bulan==4){
|
||||
$bulan = 'April';
|
||||
} elseif($absensi->bulan==5){
|
||||
$bulan = 'Mei';
|
||||
} elseif($absensi->bulan==6){
|
||||
$bulan = 'Juni';
|
||||
} elseif($absensi->bulan==7){
|
||||
$bulan = 'Juli';
|
||||
} elseif($absensi->bulan==8){
|
||||
$bulan = 'Agustus';
|
||||
} elseif($absensi->bulan==9){
|
||||
$bulan = 'September';
|
||||
} elseif($absensi->bulan==10){
|
||||
$bulan = 'Oktober';
|
||||
} elseif($absensi->bulan==11){
|
||||
$bulan = 'November';
|
||||
} elseif($absensi->bulan==12){
|
||||
$bulan = 'Desember';
|
||||
} else {
|
||||
$bulan = 'a/n';
|
||||
}
|
||||
|
||||
?>
|
||||
<td><?php echo $bulan ?></td>
|
||||
<td><?php echo rupiah($absensi->aset) ?></td>
|
||||
<td><?php echo rupiah($absensi->omset) ?></td>
|
||||
<td><?php echo $absensi->karyawan ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- next -->
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="<?php echo base_url()?>assets/js/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/sweetalert.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tabeldata').DataTable();
|
||||
} );
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
200
application/views/admin/editpemilik.php
Normal file
200
application/views/admin/editpemilik.php
Normal file
@@ -0,0 +1,200 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/dataTables.bootstrap4.min.css">
|
||||
<link data-require="sweet-alert@*" data-semver="0.4.2" rel="stylesheet" href="<?php echo base_url()?>assets/css/sweetalert.min.css" />
|
||||
|
||||
<link rel="icon" type="image/png" href="../../assets/images/favicon.png" />
|
||||
|
||||
<title>Aplikasi UMKM</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="../../assets/images/logo-white.png" width="100" alt="">
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
</ul>
|
||||
<form methode="POST" action="../login/logout" class="form-inline my-2 my-lg-0" >
|
||||
<button class="btn btn-outline-warning btn-sm my-2 my-sm-0" type="submit">Logout</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3" style="cursor:pointer;">
|
||||
<div class="card" style="width: 18rem;">
|
||||
<div class="card-header text-center">
|
||||
<img src="../../assets/images/<?php echo $user_logged->foto_user ?>" width="125" /><br>
|
||||
<strong><?php echo $user_logged->nama ?></strong>
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" style="text-decoration:none;">
|
||||
<li class="list-group-item bg-primary text-white border-bottom">Data Pemilik UMKM</li>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/umkm" style="text-decoration:none;">
|
||||
<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>
|
||||
</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>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/setting" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark">Setting</li>
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9" >
|
||||
<div class="card">
|
||||
<h5 class="card-header">Pemilik UMKM</h5>
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/tambahpemilik" class="nav-link">Tambah Data</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" class="nav-link">Data Pemilik</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="" class="nav-link active">
|
||||
Edit Pemilik > <strong><?php echo $pemilik->nama ?></strong></a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="mt-3">
|
||||
<form action="" method="POST" enctype="multipart/form-data" class="needs-validation">
|
||||
|
||||
<div class="row">
|
||||
<?php
|
||||
if(isset($error_upload)){
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="alert alert-danger" role="alert">Error : <?php echo $error_upload ?></div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if(isset($_GET['msg'])){
|
||||
$msg = $_GET['msg'];
|
||||
}
|
||||
if(isset($msg)){
|
||||
if($msg=='success'){
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="alert alert-success" role="alert">Data berhasil tersimpan !</div>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="alert alert-danger" role="alert">Gagal, Data sudah ada !</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="col col-md-6">
|
||||
<div class="form-group">
|
||||
<img src="../../assets/images/<?php echo $pemilik->foto_user ?>" width="112" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="foto_user">Ganti Foto Pemilik UMKM</label>
|
||||
<input type="file" accept=".jpg,.jpeg,.png,.gif" name="foto_user" class="form-control-file" id="foto_user">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="namalengkap">Nama Lengkap</label>
|
||||
<input type="text" name="nama" class="form-control" id="namalengkap" value="<?php echo $pemilik->nama ?>" placeholder="Nama Lengkap" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="telp">No Telp</label>
|
||||
<input type="text" name="telp" class="form-control" id="telp" value="<?php echo $pemilik->telp_user ?>" placeholder="No Telp" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-6">
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="kelurahan">Kelurahan</label>
|
||||
<select name="kelurahan" class="form-control" id="kelurahan" required>
|
||||
<option value="">--Pilih Kelurahan--</option>
|
||||
<?php foreach($listkelurahan as $kelurahan){ ?>
|
||||
<option value="<?php echo $kelurahan->kelurahan ?>" <?php if($pemilik->kelurahan_user == $kelurahan->kelurahan){ echo "selected";}?>><?php echo $kelurahan->kelurahan ?></option>
|
||||
<?php } ?>
|
||||
<option value="luar" <?php if($pemilik->kelurahan_user=='Luar Kota Magelang'){ echo "selected";}?>>Luar Kota Magelang</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group mb-1">
|
||||
<label for="alamat">Alamat</label>
|
||||
<textarea name="alamat" class="form-control" id="alamat" rows="3" placeholder="Alamat lengkap.." required><?php echo $pemilik->alamat_user?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group mt-1">
|
||||
<label for="npwp">NPWP</label>
|
||||
<input type="text" name="npwp" class="form-control" id="npwp" value="<?php echo $pemilik->npwp?>" placeholder="No NPWP">
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col col-md-12 text-right">
|
||||
<hr>
|
||||
<button type="submit" class="btn btn-sm btn-primary">Simpan</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="<?php echo base_url()?>assets/js/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/sweetalert.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tabeldata').DataTable();
|
||||
} );
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
226
application/views/admin/editumkm.php
Normal file
226
application/views/admin/editumkm.php
Normal file
@@ -0,0 +1,226 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/dataTables.bootstrap4.min.css">
|
||||
<link data-require="sweet-alert@*" data-semver="0.4.2" rel="stylesheet" href="<?php echo base_url()?>assets/css/sweetalert.min.css" />
|
||||
|
||||
<link rel="icon" type="image/png" href="../../assets/images/favicon.png" />
|
||||
|
||||
<title>Aplikasi UMKM</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="../../assets/images/logo-white.png" width="100" alt="">
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
</ul>
|
||||
<form methode="POST" action="../login/logout" class="form-inline my-2 my-lg-0" >
|
||||
<button class="btn btn-outline-warning btn-sm my-2 my-sm-0" type="submit">Logout</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3" style="cursor:pointer;">
|
||||
<div class="card" style="width: 18rem;">
|
||||
<div class="card-header text-center">
|
||||
<img src="../../assets/images/<?php echo $user_logged->foto_user ?>" width="125" /><br>
|
||||
<strong><?php echo $user_logged->nama ?></strong>
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark border-bottom">Data Pemilik UMKM</li>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/umkm" style="text-decoration:none;">
|
||||
<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>
|
||||
</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>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/setting" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark">Setting</li>
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9" >
|
||||
<div class="card">
|
||||
<h5 class="card-header">Data UMKM</h5>
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/umkm" class="nav-link">Daftar UMKM</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="" class="nav-link active">
|
||||
Edit Umkm > <strong><?php echo $umkm->nama ?></strong></a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="mt-3">
|
||||
<form action="" enctype="multipart/form-data" method="POST" class="needs-validation">
|
||||
<div class="row">
|
||||
<?php
|
||||
if(isset($error_upload)){
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="alert alert-danger" role="alert">Error : <?php echo $error_upload ?></div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if(isset($_GET['msg'])){
|
||||
$msg = $_GET['msg'];
|
||||
}
|
||||
if(isset($msg)){
|
||||
if($msg=='success'){
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="alert alert-success" role="alert">Data berhasil tersimpan !</div>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="alert alert-danger" role="alert">Gagal, Data sudah ada !</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="col col-md-4">
|
||||
<div class="form-group text-center mb-2">
|
||||
<img src="../../assets/images/umkm/<?php echo $umkm->foto_umkm ?>" width="100" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="foto_umkm">Ganti Foto UMKM</label>
|
||||
<input type="file" accept=".jpg,.jpeg,.png,.gif" name="foto_umkm" class="form-control-file" id="foto_umkm">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="nama">Nama Umkm</label>
|
||||
<input type="text" name="nama" class="form-control" id="nama" placeholder="Nama Umkm" required value="<?php echo $umkm->nama?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="jenis">Jenis Usaha</label>
|
||||
<select name="jenis" class="form-control" id="jenis" required>
|
||||
<?php foreach($daftarjenis as $jenis){?>
|
||||
<option value="<?php echo $jenis->id_jenis?>" <?php if($jenis->id_jenis==$umkm->id_jenis){ echo "selected";}?>><?php echo $jenis->jenis?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col col-md-4">
|
||||
<div class="form-group">
|
||||
<label for="karyawan_l">Jumlah Tenaga Kerja (L)</label>
|
||||
<input type="number" name="karyawan_l" class="form-control" min="0" id="karyawan_l" value="<?php echo $umkm->karyawan_l?>" placeholder="Jumlah Karyawan laki-laki" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="karyawan_p">Jumlah Tenaga Kerja (P)</label>
|
||||
<input type="number" name="karyawan_p" class="form-control" min="0" id="karyawan_p" value="<?php echo $umkm->karyawan_p?>" placeholder="Jumlah Karyawan perempuan" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="aset">Aset Awal</label>
|
||||
<input type="number" name="aset" class="form-control" min="0" id="aset" value="<?php echo $umkm->aset_awal?>" placeholder="Aset Awal" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="omset">Omset Tahunan Awal</label>
|
||||
<input type="number" name="omset" class="form-control" min="0" id="omset" value="<?php echo $umkm->omset_awal?>" placeholder="Omset Awal" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="telp">No Telp Umkm</label>
|
||||
<input type="text" name="telp" class="form-control" id="telp" value="<?php echo $umkm->telp?>" placeholder="No Telp Umkm" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col col-md-4">
|
||||
<div class="form-group">
|
||||
<label for="kelurahan">Kelurahan</label>
|
||||
<select name="kelurahan" class="form-control" id="kelurahan" required>
|
||||
<option value="">--Pilih Kelurahan--</option>
|
||||
<?php foreach($listkelurahan as $kelurahan){?>
|
||||
<option value="<?php echo $kelurahan->kelurahan?>" <?php if($kelurahan->kelurahan==$umkm->kelurahan){ echo "selected";}?>><?php echo $kelurahan->kelurahan?></option>
|
||||
<?php } ?>
|
||||
<option value="luar" <?php if($umkm->kelurahan=='Luar Kota Magelang'){ echo "selected";}?>>Luar Kota Magelang</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="alamat">Alamat</label>
|
||||
<textarea name="alamat" class="form-control" id="alamat" rows="2" required><?php echo $umkm->alamat?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="deskripsi">Deskripsi</label>
|
||||
<textarea name="deskripsi" class="form-control" id="deskripsi" rows="2" placeholder="Uraikan deskripsi singkat UMKM..." required><?php echo $umkm->deskripsi?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-12 text-right">
|
||||
<hr>
|
||||
<button type="submit" class="btn btn-primary btn-sm">Simpan</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="<?php echo base_url()?>assets/js/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/sweetalert.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tabeldata').DataTable();
|
||||
} );
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
315
application/views/admin/progresabsen.php
Normal file
315
application/views/admin/progresabsen.php
Normal file
@@ -0,0 +1,315 @@
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/dataTables.bootstrap4.min.css">
|
||||
<link data-require="sweet-alert@*" data-semver="0.4.2" rel="stylesheet" href="<?php echo base_url()?>assets/css/sweetalert.min.css" />
|
||||
|
||||
<link rel="icon" type="image/png" href="../../assets/images/favicon.png" />
|
||||
|
||||
<title>Aplikasi UMKM</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="<?php echo base_url()?>assets/images/logo-white.png" width="100" alt="">
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
</ul>
|
||||
<form methode="POST" action="../login/logout" class="form-inline my-2 my-lg-0" >
|
||||
<button class="btn btn-outline-warning btn-sm my-2 my-sm-0" type="submit">Logout</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3" style="cursor:pointer;">
|
||||
<div class="card" style="width: 18rem;">
|
||||
<div class="card-header text-center">
|
||||
<img src="<?php echo base_url()?>assets/images/<?php echo $user_logged->foto_user ?>" width="125" /><br>
|
||||
<strong><?php echo $user_logged->nama ?></strong>
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark border-bottom">Data Pemilik UMKM</li>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/umkm" style="text-decoration:none;">
|
||||
<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>
|
||||
</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>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/setting" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark">Setting</li>
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="card">
|
||||
<h5 class="card-header">Absensi</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>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/daftarabsen" class="nav-link">Data Absensi</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/progresabsen" class="nav-link active">Progres Absensi</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="mt-3">
|
||||
<?php foreach($tahun_list as $tahun) {?>
|
||||
<div class="mb-3">
|
||||
<div class="card">
|
||||
<?php
|
||||
$jumlahlaporantahunan = $Laporanmodel->getLaporanCountByYear($tahun->tahun);
|
||||
if($jumlahlaporantahunan<1){
|
||||
$badge_text='Aktif';
|
||||
$badge_color='success';
|
||||
$header_color='';
|
||||
$header_text='';
|
||||
$bg_warning='warning';
|
||||
} else {
|
||||
$badge_text='Close';
|
||||
$badge_color='dark';
|
||||
$header_color='bg-secondary';
|
||||
$header_text='text-light';
|
||||
$bg_warning='dark';
|
||||
}
|
||||
?>
|
||||
<div class="card-header <?php echo $header_color.' '.$header_text?>">
|
||||
Tahun <?php echo $tahun->tahun?> <span class="badge badge-<?php echo $badge_color?>"><?php echo $badge_text?></span>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col col-md-1 pt-1">
|
||||
<?php
|
||||
$jumlahabsen = $absenmodel->getAbsenCountByYear($tahun->tahun);
|
||||
$prosentaseabsen = ($jumlahabsen/12)*100;
|
||||
$selisihabsen = 12-$jumlahabsen;
|
||||
$selisihprosentase = 100-$prosentaseabsen;
|
||||
?>
|
||||
<label><?php echo $jumlahabsen ?>/12</label>
|
||||
</div>
|
||||
<div class="col col-md-9 pt-2">
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-bar-striped bg-<?php echo $badge_color?>" role="progressbar" style="width: <?php echo $prosentaseabsen?>%" aria-valuenow="<?php echo $jumlahabsen?>" aria-valuemin="0" aria-valuemax="12"><?php echo number_format((float)$prosentaseabsen, 1, '.', ''); ?>%</div>
|
||||
<div class="progress-bar progress-bar-striped bg-secondary" role="progressbar" style="width: <?php echo $selisihprosentase?>%" aria-valuenow="<?php echo $selisihabsen?>" aria-valuemin="0" aria-valuemax="12"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-2 d-flex align-items-center text-center">
|
||||
<btn class="btn btn-sm btn-inline btn-<?php echo $bg_warning?> mr-2" type="button" data-toggle="collapse" data-target="#detailabsen<?php echo $tahun->tahun?>" aria-expanded="false" aria-controls="detailabsen<?php echo $tahun->tahun?>">Detail</btn>
|
||||
<?php if($jumlahlaporantahunan<1){?>
|
||||
<button id="btn_close" class="btn btn-sm btn-inline btn-danger">Close</button>
|
||||
<?php } else { ?>
|
||||
<button class="btn btn-sm btn-inline btn-secondary" disabled>Close</button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="collapse" id="detailabsen<?php echo $tahun->tahun?>">
|
||||
<div class="mt-3">
|
||||
<div class="card card-body">
|
||||
<div class="row">
|
||||
<?php
|
||||
$checked_januari='';
|
||||
$checked_februari='';
|
||||
$checked_maret='';
|
||||
$checked_april='';
|
||||
$checked_mei='';
|
||||
$checked_juni='';
|
||||
$checked_juli='';
|
||||
$checked_agustus='';
|
||||
$checked_september='';
|
||||
$checked_oktober='';
|
||||
$checked_november='';
|
||||
$checked_desember='';
|
||||
|
||||
$daftarabsen = $absenmodel->getAbsensByTahun($tahun->tahun);
|
||||
foreach($daftarabsen as $absen){
|
||||
if($absen->bulan=='1'){
|
||||
$checked_januari='checked';
|
||||
} elseif($absen->bulan=='2'){
|
||||
$checked_februari='checked';
|
||||
} elseif($absen->bulan=='3'){
|
||||
$checked_maret='checked';
|
||||
} elseif($absen->bulan=='4'){
|
||||
$checked_april='checked';
|
||||
} elseif($absen->bulan=='5'){
|
||||
$checked_mei='checked';
|
||||
} elseif($absen->bulan=='6'){
|
||||
$checked_juni='checked';
|
||||
} elseif($absen->bulan=='7'){
|
||||
$checked_juli='checked';
|
||||
} elseif($absen->bulan=='8'){
|
||||
$checked_agustus='checked';
|
||||
} elseif($absen->bulan=='9'){
|
||||
$checked_september='checked';
|
||||
} elseif($absen->bulan=='10'){
|
||||
$checked_oktober='checked';
|
||||
} elseif($absen->bulan=='11'){
|
||||
$checked_november='checked';
|
||||
} elseif($absen->bulan=='12'){
|
||||
$checked_desember='checked';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="col col-md-2">
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input bg-success text-success" onclick="return false;" <?php echo $checked_januari?>>
|
||||
<label class="form-check-label" for="exampleCheck1">Januari</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input bg-success text-success" onclick="return false;" <?php echo $checked_februari?>>
|
||||
<label class="form-check-label" for="exampleCheck1">Februari</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-2">
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input bg-success text-success" onclick="return false;" <?php echo $checked_maret?>>
|
||||
<label class="form-check-label" for="exampleCheck1">Maret</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input bg-success text-success" onclick="return false;" <?php echo $checked_april?>>
|
||||
<label class="form-check-label" for="exampleCheck1">April</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-2">
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input bg-success text-success" onclick="return false;" <?php echo $checked_mei?>>
|
||||
<label class="form-check-label" for="exampleCheck1">Mei</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input bg-success text-success" onclick="return false;" <?php echo $checked_juni?>>
|
||||
<label class="form-check-label" for="exampleCheck1">Juni</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-2">
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input bg-success text-success" onclick="return false;" <?php echo $checked_juli?>>
|
||||
<label class="form-check-label" for="exampleCheck1">Juli</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input bg-success text-success" onclick="return false;" <?php echo $checked_agustus?>>
|
||||
<label class="form-check-label" for="exampleCheck1">Agustus</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-2">
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input bg-success text-success" onclick="return false;" <?php echo $checked_september?>>
|
||||
<label class="form-check-label" for="exampleCheck1">September</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input bg-success text-success" onclick="return false;" <?php echo $checked_oktober?>>
|
||||
<label class="form-check-label" for="exampleCheck1">Oktober</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-2">
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input bg-success text-success" onclick="return false;" <?php echo $checked_november?>>
|
||||
<label class="form-check-label" for="exampleCheck1">November</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input bg-success text-success" onclick="return false;" <?php echo $checked_desember?>>
|
||||
<label class="form-check-label" for="exampleCheck1">Desember</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<!-- endforeach tahun -->
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="<?php echo base_url()?>assets/js/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/sweetalert.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tabeldata').DataTable();
|
||||
} );
|
||||
</script>
|
||||
|
||||
<script>
|
||||
const element = document.querySelectorAll('#btn_close')
|
||||
element.forEach(function(el){
|
||||
|
||||
el.addEventListener('click', function (e) {
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
var urlToRedirect = e.currentTarget.getAttribute('href'); //use currentTarget because the click may be on the nested i tag and not a tag causing the href to be empty
|
||||
console.log(urlToRedirect); // verify if this is the right URL
|
||||
|
||||
swal({
|
||||
title: "Kamu yakin ?",
|
||||
text: "Absen tahunan yang ditutup tidak bisa diaktifkan kembali.",
|
||||
icon: "warning",
|
||||
buttons: [
|
||||
'Batal',
|
||||
'Submit'
|
||||
],
|
||||
dangerMode: true,
|
||||
}).then(function(isConfirm) {
|
||||
if (isConfirm) {
|
||||
swal({
|
||||
title: 'Berhasil',
|
||||
text: 'Absen tahunan berhasil ditutup.',
|
||||
icon: 'success'
|
||||
}).then(function() {
|
||||
window.location.href = urlToRedirect;
|
||||
});
|
||||
} else {
|
||||
swal("Batal", "Absen tahunan masih aktif.)", "error");
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
166
application/views/admin/resetpasspemilik.php
Normal file
166
application/views/admin/resetpasspemilik.php
Normal file
@@ -0,0 +1,166 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/dataTables.bootstrap4.min.css">
|
||||
<link data-require="sweet-alert@*" data-semver="0.4.2" rel="stylesheet" href="<?php echo base_url()?>assets/css/sweetalert.min.css" />
|
||||
|
||||
<link rel="icon" type="image/png" href="../../assets/images/favicon.png" />
|
||||
|
||||
<title>Aplikasi UMKM</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="../../assets/images/logo-white.png" width="100" alt="">
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
</ul>
|
||||
<form methode="POST" action="../login/logout" class="form-inline my-2 my-lg-0" >
|
||||
<button class="btn btn-outline-warning btn-sm my-2 my-sm-0" type="submit">Logout</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3" style="cursor:pointer;">
|
||||
<div class="card" style="width: 18rem;">
|
||||
<div class="card-header text-center">
|
||||
<img src="../../assets/images/<?php echo $user_logged->foto_user ?>" width="125" /><br>
|
||||
<strong><?php echo $user_logged->nama ?></strong>
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" style="text-decoration:none;">
|
||||
<li class="list-group-item bg-primary text-white border-bottom">Data Pemilik UMKM</li>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/umkm" style="text-decoration:none;">
|
||||
<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>
|
||||
</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>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/setting" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark">Setting</li>
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9" >
|
||||
<div class="card">
|
||||
<h5 class="card-header">Pemilik UMKM</h5>
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/tambahpemilik" class="nav-link">Tambah Data</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" class="nav-link">Data Pemilik</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="" class="nav-link active">
|
||||
Reset Password > <strong><?php echo $pemilik->nama ?></strong></a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="mt-3">
|
||||
<form action="" method="POST" class="needs-validation" oninput='password2.setCustomValidity(password2.value != password.value ? "Passwords do not match." : "")'>
|
||||
|
||||
<div class="row">
|
||||
<?php
|
||||
if(isset($error_upload)){
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="alert alert-danger" role="alert">Error : <?php echo $error_upload ?></div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if(isset($_GET['msg'])){
|
||||
$msg = $_GET['msg'];
|
||||
}
|
||||
if(isset($msg)){
|
||||
if($msg=='success'){
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="alert alert-success" role="alert">Data berhasil tersimpan !</div>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="alert alert-danger" role="alert">Gagal, Data sudah ada !</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="form-group">
|
||||
<label for="password">Password</label>
|
||||
<input type="password" name="password" class="form-control" id="password" placeholder="Password" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password2">Confrim Password</label>
|
||||
<input type="password" name="password2" class="form-control" id="password2" placeholder="Confirm Password" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-12 text-right">
|
||||
<hr>
|
||||
<button type="submit" class="btn btn-sm btn-primary">Simpan</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="<?php echo base_url()?>assets/js/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/sweetalert.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tabeldata').DataTable();
|
||||
} );
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
147
application/views/admin/setting.php
Normal file
147
application/views/admin/setting.php
Normal file
@@ -0,0 +1,147 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/dataTables.bootstrap4.min.css">
|
||||
<link data-require="sweet-alert@*" data-semver="0.4.2" rel="stylesheet" href="<?php echo base_url()?>assets/css/sweetalert.min.css" />
|
||||
|
||||
<link rel="icon" type="image/png" href="../../assets/images/favicon.png" />
|
||||
|
||||
<title>Aplikasi UMKM</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="../../assets/images/logo-white.png" width="100" alt="">
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
</ul>
|
||||
<form methode="POST" action="../login/logout" class="form-inline my-2 my-lg-0" >
|
||||
<button class="btn btn-outline-warning btn-sm my-2 my-sm-0" type="submit">Logout</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3" style="cursor:pointer;">
|
||||
<div class="card" style="width: 18rem;">
|
||||
<div class="card-header text-center">
|
||||
<img src="../../assets/images/<?php echo $user_logged->foto_user ?>" width="125" /><br>
|
||||
<strong><?php echo $user_logged->nama ?></strong>
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" style="text-decoration:none;">
|
||||
<li class="list-group-item bg-primary text-white border-bottom">Data Pemilik UMKM</li>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/umkm" style="text-decoration:none;">
|
||||
<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>
|
||||
</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>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/setting" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark">Setting</li>
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9" >
|
||||
<div class="card">
|
||||
<h5 class="card-header">Setting User</h5>
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/setting" class="nav-link active">Reset Password</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="mt-3">
|
||||
<form action="" method="POST" class="needs-validation" oninput='password2.setCustomValidity(password2.value != password.value ? "Passwords do not match." : "")'>
|
||||
|
||||
<div class="row">
|
||||
<?php
|
||||
if(isset($_GET['msg'])){
|
||||
$msg = $_GET['msg'];
|
||||
}
|
||||
if(isset($msg)){
|
||||
if($msg=='success'){
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="alert alert-success" role="alert">Password berhasil direset !</div>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="alert alert-danger" role="alert">Gagal, password tidak berganti !</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="form-group">
|
||||
<label for="password">Password</label>
|
||||
<input type="password" name="password" class="form-control" id="password" placeholder="Password" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password2">Confrim Password</label>
|
||||
<input type="password" name="password2" class="form-control" id="password2" placeholder="Confirm Password" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-12 text-right">
|
||||
<hr>
|
||||
<button type="submit" class="btn btn-sm btn-primary">Simpan</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="<?php echo base_url()?>assets/js/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/sweetalert.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tabeldata').DataTable();
|
||||
} );
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
215
application/views/admin/tambahabsen.php
Normal file
215
application/views/admin/tambahabsen.php
Normal file
@@ -0,0 +1,215 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/dataTables.bootstrap4.min.css">
|
||||
<link data-require="sweet-alert@*" data-semver="0.4.2" rel="stylesheet" href="<?php echo base_url()?>assets/css/sweetalert.min.css" />
|
||||
|
||||
<link rel="icon" type="image/png" href="../../assets/images/favicon.png" />
|
||||
|
||||
<title>Aplikasi UMKM</title>
|
||||
|
||||
<style>
|
||||
/* Hide scrollbar for Chrome, Safari and Opera */
|
||||
.hdscr::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Hide scrollbar for IE, Edge and Firefox */
|
||||
.hdscr {
|
||||
-ms-overflow-style: none; /* IE and Edge */
|
||||
scrollbar-width: none; /* Firefox */
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="../../assets/images/logo-white.png" width="100" alt="">
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
</ul>
|
||||
<form methode="POST" action="../login/logout" class="form-inline my-2 my-lg-0" >
|
||||
<button class="btn btn-outline-warning btn-sm my-2 my-sm-0" type="submit">Logout</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3" style="cursor:pointer;">
|
||||
<div class="card" style="width: 18rem;">
|
||||
<div class="card-header text-center">
|
||||
<img src="../../assets/images/user.png" width="125" /><br>
|
||||
<strong><?php echo $user_logged->nama ?></strong>
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark border-bottom">Data Pemilik UMKM</li>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/umkm" style="text-decoration:none;">
|
||||
<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>
|
||||
</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>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/setting" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark">Setting</li>
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9" >
|
||||
<div class="card">
|
||||
<h5 class="card-header">Absensi</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>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/daftarabsen" class="nav-link">Data Absensi</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/progresabsen" class="nav-link">Progres Absensi</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="" class="nav-link active">Buat Absensi</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="mt-3 hdscr" style="max-height:400px;overflow-y: auto;">
|
||||
<form action="" method="POST" class="needs-validation">
|
||||
<?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>
|
||||
<?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>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if(isset($msg)){
|
||||
if($msg=='success'){
|
||||
?>
|
||||
<div class="alert alert-success" role="alert">Data berhasil tersimpan !</div>
|
||||
<?php
|
||||
} else {
|
||||
|
||||
?>
|
||||
<div class="alert alert-danger" role="alert">Gagal, Data sudah ada !</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="form-group">
|
||||
<label for="tahun">Tahun</label>
|
||||
<select name="tahun" class="form-control" id="tahun" required>
|
||||
<option value="<?php echo date('Y');?>" <?php if($tahun==date('Y')){ echo 'selected';} ?>><?php echo date('Y');?></option>
|
||||
<option value="<?php echo date('Y')-1;?>" <?php if($tahun==(date('Y')-1)){ echo 'selected';} ?>><?php echo date('Y')-1;?></option>
|
||||
<option value="<?php echo date('Y')-2;?>" <?php if($tahun==(date('Y')-2)){ echo 'selected';} ?>><?php echo date('Y')-2;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="bulan">Bulan</label>
|
||||
<select name="bulan" class="form-control" id="bulan" required>
|
||||
<option value="">--Pilih Bulan--</option>
|
||||
|
||||
<option value="1"
|
||||
|
||||
>Januari</option>
|
||||
<option value="2"
|
||||
|
||||
>Februari</option>
|
||||
<option value="3"
|
||||
|
||||
>Maret</option>
|
||||
<option value="4"
|
||||
|
||||
>April</option>
|
||||
<option value="5"
|
||||
|
||||
>Mei</option>
|
||||
<option value="6"
|
||||
|
||||
>Juni</option>
|
||||
<option value="7"
|
||||
|
||||
>Juli</option>
|
||||
<option value="8"
|
||||
|
||||
>Agustus</option>
|
||||
<option value="9"
|
||||
|
||||
>September</option>
|
||||
<option value="10"
|
||||
|
||||
>Oktober</option>
|
||||
<option value="11"
|
||||
|
||||
>November</option>
|
||||
<option value="12"
|
||||
|
||||
>Desember</option>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<button type="submit" class="btn btn-primary">Simpan</button>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="<?php echo base_url()?>assets/js/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/sweetalert.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tabeldata').DataTable();
|
||||
} );
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
198
application/views/admin/tambahpemilik.php
Normal file
198
application/views/admin/tambahpemilik.php
Normal file
@@ -0,0 +1,198 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/dataTables.bootstrap4.min.css">
|
||||
<link data-require="sweet-alert@*" data-semver="0.4.2" rel="stylesheet" href="<?php echo base_url()?>assets/css/sweetalert.min.css" />
|
||||
|
||||
<link rel="icon" type="image/png" href="../../assets/images/favicon.png" />
|
||||
|
||||
<title>Aplikasi UMKM</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="../../assets/images/logo-white.png" width="100" alt="">
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
</ul>
|
||||
<form methode="POST" action="../login/logout" class="form-inline my-2 my-lg-0" >
|
||||
<button class="btn btn-outline-warning btn-sm my-2 my-sm-0" type="submit">Logout</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3" style="cursor:pointer;">
|
||||
<div class="card" style="width: 18rem;">
|
||||
<div class="card-header text-center">
|
||||
<img src="../../assets/images/<?php echo $user_logged->foto_user ?>" width="125" /><br>
|
||||
<strong><?php echo $user_logged->nama ?></strong>
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" style="text-decoration:none;">
|
||||
<li class="list-group-item bg-primary text-white border-bottom">Data Pemilik UMKM</li>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/umkm" style="text-decoration:none;">
|
||||
<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>
|
||||
</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>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/setting" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark">Setting</li>
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="card">
|
||||
<h5 class="card-header">Pemilik UMKM</h5>
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/tambahpemilik" class="nav-link active">Tambah Data</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" class="nav-link">Data Pemilik</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="mt-3">
|
||||
<form action="" method="POST" class="needs-validation" enctype="multipart/form-data" oninput='password2.setCustomValidity(password2.value != password.value ? "Passwords do not match." : "")'>
|
||||
<div class="row">
|
||||
<?php
|
||||
if(isset($error_upload)){
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="alert alert-danger" role="alert">Error : <?php echo $error_upload ?></div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if(isset($msg)){
|
||||
if($msg=='success'){
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="alert alert-success" role="alert">Data berhasil tersimpan !</div>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="alert alert-danger" role="alert">Gagal, Data sudah ada !</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="col col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="namalengkap">Nama Lengkap</label>
|
||||
<input type="text" name="nama" class="form-control" id="namalengkap" placeholder="Nama Lengkap" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="username">Username</label>
|
||||
<input type="text" name="username" class="form-control" id="username" placeholder="Username" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password">Password</label>
|
||||
<input type="password" name="password" class="form-control" id="password" placeholder="Password" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password2">Confrim Password</label>
|
||||
<input type="password" name="password2" class="form-control" id="password2" placeholder="Confirm Password" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="telp">No Telp</label>
|
||||
<input type="text" name="telp" class="form-control" id="telp" placeholder="No Telp" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-6">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="kelurahan">Kelurahan</label>
|
||||
<select name="kelurahan" class="form-control" id="kelurahan" required>
|
||||
<option value="">--Pilih Kelurahan--</option>
|
||||
<?php foreach($listkelurahan as $kelurahan){ ?>
|
||||
<option value="<?php echo $kelurahan->kelurahan ?>"><?php echo $kelurahan->kelurahan ?></option>
|
||||
<?php } ?>
|
||||
<option value="luar">Luar Kota Magelang</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group mb-1">
|
||||
<label for="alamat">Alamat</label>
|
||||
<textarea name="alamat" class="form-control" id="alamat" rows="2" placeholder="Alamat lengkap.." required></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group mt-1">
|
||||
<label for="npwp">NPWP</label>
|
||||
<input type="text" name="npwp" class="form-control" id="npwp" placeholder="No NPWP">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="foto_user">Foto Pemilik UMKM</label>
|
||||
<input type="file" accept=".jpg,.jpeg,.png,.gif" name="foto_user" class="form-control-file" id="foto_user">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-12 text-right">
|
||||
<hr>
|
||||
<button type="submit" class="btn btn-sm btn-primary">Simpan</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="<?php echo base_url()?>assets/js/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/sweetalert.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tabeldata').DataTable();
|
||||
} );
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
228
application/views/admin/tambahumkm.php
Normal file
228
application/views/admin/tambahumkm.php
Normal file
@@ -0,0 +1,228 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/dataTables.bootstrap4.min.css">
|
||||
<link data-require="sweet-alert@*" data-semver="0.4.2" rel="stylesheet" href="<?php echo base_url()?>assets/css/sweetalert.min.css" />
|
||||
|
||||
<link rel="icon" type="image/png" href="../../assets/images/favicon.png" />
|
||||
|
||||
<title>Aplikasi UMKM</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="../../assets/images/logo-white.png" width="100" alt="">
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
</ul>
|
||||
<form methode="POST" action="../login/logout" class="form-inline my-2 my-lg-0" >
|
||||
<button class="btn btn-outline-warning btn-sm my-2 my-sm-0" type="submit">Logout</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3" style="cursor:pointer;">
|
||||
<div class="card" style="width: 18rem;">
|
||||
<div class="card-header text-center">
|
||||
<img src="../../assets/images/<?php echo $user_logged->foto_user ?>" width="125" /><br>
|
||||
<strong><?php echo $user_logged->nama ?></strong>
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" style="text-decoration:none;">
|
||||
<li class="list-group-item bg-primary text-white border-bottom">Data Pemilik UMKM</li>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/umkm" style="text-decoration:none;">
|
||||
<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>
|
||||
</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>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/setting" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark">Setting</li>
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9" >
|
||||
<div class="card">
|
||||
<h5 class="card-header">Pemilik UMKM</h5>
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/tambahpemilik" class="nav-link">Tambah Data</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" class="nav-link">Data Pemilik</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" class="nav-link active">
|
||||
<strong><?php echo $pemilik->nama ?></strong> > Tambah Umkm</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="mt-3">
|
||||
<form action="" method="POST" enctype="multipart/form-data" class="needs-validation">
|
||||
<div class="row">
|
||||
<?php
|
||||
if(isset($error_upload)){
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="alert alert-danger" role="alert">
|
||||
Error : <?php echo $error_upload ?><br>
|
||||
<p>
|
||||
Data UMKM <strong>telah tersimpan</strong> namun foto UMKM telah <strong>dipasang dengan foto Default</strong>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if(isset($msg)){
|
||||
if($msg=='success'){
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="alert alert-success" role="alert">Data berhasil tersimpan !</div>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
|
||||
?>
|
||||
<div class="col col-md-12">
|
||||
<div class="alert alert-danger" role="alert">Gagal, Data sudah ada !</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="col col-md-4">
|
||||
<div class="form-group">
|
||||
<label for="namaumkm">Nama Umkm</label>
|
||||
<input type="text" name="nama" class="form-control" id="namaumkm" placeholder="Nama Umkm" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="jenis">Jenis Usaha</label>
|
||||
<select name="jenis" class="form-control" id="jenis" required>
|
||||
<option value="">--Pilih Jenis--</option>
|
||||
<?php foreach($daftarjenis as $jenis){?>
|
||||
<option value="<?php echo $jenis->id_jenis?>"><?php echo $jenis->jenis?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="aset">Aset Awal</label>
|
||||
<input type="number" name="aset" class="form-control" min="0" id="aset" placeholder="Aset Awal" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="omset">Omset Tahunan Awal</label>
|
||||
<input type="number" name="omset" class="form-control" min="0" id="omset" placeholder="Omset Awal" required>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col col-md-4">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="karyawan_l">Jumlah Tenaga Kerja (L)</label>
|
||||
<input type="number" name="karyawan_l" class="form-control" min="0" id="karyawan_l" placeholder="Jumlah Karyawan laki-laki" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="karyawan_p">Jumlah Tenaga Kerja (P)</label>
|
||||
<input type="number" name="karyawan_p" class="form-control" min="0" id="karyawan_p" placeholder="Jumlah Karyawan perempuan" required>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="kelurahan">Kelurahan</label>
|
||||
<select name="kelurahan" class="form-control" id="kelurahan" required>
|
||||
<option value="">--Pilih Kelurahan--</option>
|
||||
<?php foreach($listkelurahan as $kelurahan){?>
|
||||
<option value="<?php echo $kelurahan->kelurahan?>"><?php echo $kelurahan->kelurahan?></option>
|
||||
<?php } ?>
|
||||
<option value="luar">Luar Kota Magelang</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="alamat">Alamat</label>
|
||||
<textarea name="alamat" class="form-control" id="alamat" rows="4" placeholder="Tuliskan alamat lengkapt UMKM.." required></textarea>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col col-md-4">
|
||||
<div class="form-group">
|
||||
<label for="telp">No Telp Umkm</label>
|
||||
<input type="text" name="telp" class="form-control" id="telp" placeholder="No Telp Umkm" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="deskripsi">Deskripsi</label>
|
||||
<textarea name="deskripsi" class="form-control" id="deskripsi" rows="4" placeholder="Uraikan deskripsi singkat UMKM.."></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="foto_umkm">Foto UMKM</label>
|
||||
<input type="file" accept=".jpg,.jpeg,.png,.gif" name="foto_umkm" class="form-control-file" id="foto_umkm">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col col-md-12">
|
||||
<hr>
|
||||
<button type="submit" class="btn btn-primary">Simpan</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="<?php echo base_url()?>assets/js/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/sweetalert.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tabeldata').DataTable();
|
||||
} );
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
209
application/views/admin/umkm.php
Normal file
209
application/views/admin/umkm.php
Normal file
@@ -0,0 +1,209 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/dataTables.bootstrap4.min.css">
|
||||
<link data-require="sweet-alert@*" data-semver="0.4.2" rel="stylesheet" href="<?php echo base_url()?>assets/css/sweetalert.min.css" />
|
||||
|
||||
<link data-require="sweet-alert@*" data-semver="0.4.2" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css" />
|
||||
|
||||
<link rel="icon" type="image/png" href="../../assets/images/favicon.png" />
|
||||
|
||||
<title>Aplikasi UMKM</title>
|
||||
|
||||
<style>
|
||||
/* Hide scrollbar for Chrome, Safari and Opera */
|
||||
.hdscr::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Hide scrollbar for IE, Edge and Firefox */
|
||||
.hdscr {
|
||||
-ms-overflow-style: none; /* IE and Edge */
|
||||
scrollbar-width: none; /* Firefox */
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="<?php echo base_url()?>assets/images/logo-white.png" width="100" alt="">
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
</ul>
|
||||
<form methode="POST" action="<?php echo base_url('index.php/')?>login/logout" class="form-inline my-2 my-lg-0" >
|
||||
<button class="btn btn-outline-warning btn-sm my-2 my-sm-0" type="submit">Logout</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3" style="cursor:pointer;">
|
||||
<div class="card" style="width: 18rem;">
|
||||
<div class="card-header text-center">
|
||||
<img src="<?php echo base_url()?>assets/images/<?php echo $user_logged->foto_user ?>" width="125" /><br>
|
||||
<strong><?php echo $user_logged->nama ?></strong>
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/dashboard" style="text-decoration:none;">
|
||||
<li class="list-group-item border-bottom text-dark">Data Pemilik UMKM</li>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/umkm" style="text-decoration:none;">
|
||||
<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>
|
||||
</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>
|
||||
</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/setting" style="text-decoration:none;">
|
||||
<li class="list-group-item text-dark">Setting</li>
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="card">
|
||||
<h5 class="card-header">Data UMKM</h5>
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo base_url('index.php/')?>admin/umkm" class="nav-link active">Daftar UMKM</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="mt-3 hdscr" style="max-height:400px;overflow-y: auto;">
|
||||
<?php if (isset($del_msg)){
|
||||
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>
|
||||
<?php }elseif($del_msg=='sucess'){ ?>
|
||||
<div class="alert alert-success" role="alert">Data berhasil terhapus !</div>
|
||||
<?php }} ?>
|
||||
<table id="tabeldata" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama Umkm</th>
|
||||
<th>Pemilik</th>
|
||||
<th>Kecamatan</th>
|
||||
<th>Kategori</th>
|
||||
<th>Opsi</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach($data_umkm as $umkm) {
|
||||
$no++;
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no?></td>
|
||||
<td><?php echo $umkm->nama?></td>
|
||||
<?php
|
||||
$pemilik = $this->UserModel->getUsersById($umkm->id_pemilik);
|
||||
?>
|
||||
<td><?php echo $pemilik->nama?></td>
|
||||
<td><?php echo $umkm->kecamatan?></td>
|
||||
<?php
|
||||
$kategori = $this->KategoriModel->getKategoriById($umkm->id_kategori);
|
||||
?>
|
||||
<td><?php echo $kategori->kategori?></td>
|
||||
<td>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/detailumkm?id_umkm=<?php echo $umkm->id_umkm ?>" class="btn btn-block btn-info btn-sm">Detail</a>
|
||||
<a href="<?php echo base_url('index.php/')?>admin/editumkm?id_umkm=<?php echo $umkm->id_umkm ?>" class="btn btn-block btn-warning btn-sm">Edit</a>
|
||||
<a id="btn_hapus" href="<?php echo base_url('index.php/')?>admin/hapusumkm?id_umkm=<?php echo $umkm->id_umkm ?>&umkm=<?php echo $umkm->nama ?>" class="btn btn-block btn-danger btn-sm">Hapus</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="<?php echo base_url()?>assets/js/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/sweetalert.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tabeldata').DataTable();
|
||||
} );
|
||||
</script>
|
||||
|
||||
<script>
|
||||
const element = document.querySelectorAll('#btn_hapus')
|
||||
element.forEach(function(el){
|
||||
|
||||
el.addEventListener('click', function (e) {
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
var urlToRedirect = e.currentTarget.getAttribute('href'); //use currentTarget because the click may be on the nested i tag and not a tag causing the href to be empty
|
||||
console.log(urlToRedirect); // verify if this is the right URL
|
||||
|
||||
swal({
|
||||
title: "Kamu yakin ?",
|
||||
text: "Data yang dihapus tidak bisa dikembalikan.",
|
||||
icon: "warning",
|
||||
buttons: [
|
||||
'Batal',
|
||||
'Hapus'
|
||||
],
|
||||
dangerMode: true,
|
||||
}).then(function(isConfirm) {
|
||||
if (isConfirm) {
|
||||
swal({
|
||||
title: 'Berhasil',
|
||||
text: 'Data berhasil terhapus',
|
||||
icon: 'success'
|
||||
}).then(function() {
|
||||
window.location.href = urlToRedirect;
|
||||
});
|
||||
} else {
|
||||
swal("Batal", "Data tidak terhapus.)", "error");
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
8
application/views/errors/cli/error_404.php
Normal file
8
application/views/errors/cli/error_404.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
8
application/views/errors/cli/error_db.php
Normal file
8
application/views/errors/cli/error_db.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nDatabase error: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
21
application/views/errors/cli/error_exception.php
Normal file
21
application/views/errors/cli/error_exception.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
An uncaught Exception was encountered
|
||||
|
||||
Type: <?php echo get_class($exception), "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $exception->getFile(), "\n"; ?>
|
||||
Line Number: <?php echo $exception->getLine(); ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
8
application/views/errors/cli/error_general.php
Normal file
8
application/views/errors/cli/error_general.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
21
application/views/errors/cli/error_php.php
Normal file
21
application/views/errors/cli/error_php.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
A PHP Error was encountered
|
||||
|
||||
Severity: <?php echo $severity, "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $filepath, "\n"; ?>
|
||||
Line Number: <?php echo $line; ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
11
application/views/errors/cli/index.html
Normal file
11
application/views/errors/cli/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
64
application/views/errors/html/error_404.php
Normal file
64
application/views/errors/html/error_404.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>404 Page Not Found</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
64
application/views/errors/html/error_db.php
Normal file
64
application/views/errors/html/error_db.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Database Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
32
application/views/errors/html/error_exception.php
Normal file
32
application/views/errors/html/error_exception.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>An uncaught Exception was encountered</h4>
|
||||
|
||||
<p>Type: <?php echo get_class($exception); ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $exception->getFile(); ?></p>
|
||||
<p>Line Number: <?php echo $exception->getLine(); ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file']; ?><br />
|
||||
Line: <?php echo $error['line']; ?><br />
|
||||
Function: <?php echo $error['function']; ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
64
application/views/errors/html/error_general.php
Normal file
64
application/views/errors/html/error_general.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
33
application/views/errors/html/error_php.php
Normal file
33
application/views/errors/html/error_php.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>A PHP Error was encountered</h4>
|
||||
|
||||
<p>Severity: <?php echo $severity; ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $filepath; ?></p>
|
||||
<p>Line Number: <?php echo $line; ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file'] ?><br />
|
||||
Line: <?php echo $error['line'] ?><br />
|
||||
Function: <?php echo $error['function'] ?>
|
||||
</p>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
11
application/views/errors/html/index.html
Normal file
11
application/views/errors/html/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/views/errors/index.html
Normal file
11
application/views/errors/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/views/index.html
Normal file
11
application/views/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
70
application/views/login.php
Normal file
70
application/views/login.php
Normal file
@@ -0,0 +1,70 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
|
||||
<link rel="icon" type="image/png" href="../assets/images/favicon.png" />
|
||||
|
||||
<title>Aplikasi UMKM</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="container">
|
||||
<div class="card mt-5">
|
||||
<div class="card-header bg-primary text-white">
|
||||
<strong>Login Aplikasi UMKM</strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col col-md-8 text-center">
|
||||
<img src="<?php echo base_url()?>assets/images/login-splash.png" height="300" />
|
||||
</div>
|
||||
<div class="col col-md-3">
|
||||
<form action="" method="POST">
|
||||
|
||||
<?php
|
||||
if(isset($error)){
|
||||
?>
|
||||
<div class="form-group">
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $error ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Username</label>
|
||||
<input name="username" type="text" class="form-control" placeholder="Enter username">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputPassword1">Password</label>
|
||||
<input type="password" name="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary">Login</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer text-muted">
|
||||
Copyright 2021 || Ardi Ferdianto
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="<?php echo base_url()?>assets/js/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="<?php echo base_url()?>assets/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
89
application/views/welcome_message.php
Normal file
89
application/views/welcome_message.php
Normal file
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Welcome to CodeIgniter</title>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#body {
|
||||
margin: 0 15px 0 15px;
|
||||
}
|
||||
|
||||
p.footer {
|
||||
text-align: right;
|
||||
font-size: 11px;
|
||||
border-top: 1px solid #D0D0D0;
|
||||
line-height: 32px;
|
||||
padding: 0 10px 0 10px;
|
||||
margin: 20px 0 0 0;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="container">
|
||||
<h1>Welcome to CodeIgniter!</h1>
|
||||
|
||||
<div id="body">
|
||||
<p>The page you are looking at is being generated dynamically by CodeIgniter.</p>
|
||||
|
||||
<p>If you would like to edit this page you'll find it located at:</p>
|
||||
<code>application/views/welcome_message.php</code>
|
||||
|
||||
<p>The corresponding controller for this page is found at:</p>
|
||||
<code>application/controllers/Welcome.php</code>
|
||||
|
||||
<p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="user_guide/">User Guide</a>.</p>
|
||||
</div>
|
||||
|
||||
<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds. <?php echo (ENVIRONMENT === 'development') ? 'CodeIgniter Version <strong>' . CI_VERSION . '</strong>' : '' ?></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user