Fix Responsive View Issue and Some Bugs

master
Hafidz Fachrisyah Widyarix 2021-09-16 22:54:20 +07:00
parent 2a453c851c
commit 8da0a69176
24 changed files with 200 additions and 201 deletions

View File

@ -98,10 +98,17 @@ class TambahAbsen extends CI_Controller {
foreach($daftarumkm as $umkm){
if($bulan_absen!=='1'){
$latestabsensi = $this->AbsensiModel->getLatestAbsensi($post['bulan'],$post['tahun'],$umkm->id_umkm);
$aset_absensi= $latestabsensi->aset;
$karyawan_absensi_l = $latestabsensi->karyawan_l;
$karyawan_absensi_p = $latestabsensi->karyawan_p;
if(count($this->AbsensiModel->getLatestAbsensi($post['bulan'],$post['tahun'],$umkm->id_umkm))>0){
$latestabsensi = $this->AbsensiModel->getLatestAbsensi($post['bulan'],$post['tahun'],$umkm->id_umkm);
$aset_absensi= $latestabsensi->aset;
$karyawan_absensi_l = $latestabsensi->karyawan_l;
$karyawan_absensi_p = $latestabsensi->karyawan_p;
} else{
$aset_absensi= $umkm->aset_awal;
$karyawan_absensi_l= $umkm->karyawan_l;
$karyawan_absensi_p= $umkm->karyawan_p;
}
} else {
$aset_absensi= $umkm->aset_awal;
$karyawan_absensi_l= $umkm->karyawan_l;

View File

@ -76,37 +76,48 @@ class DetailUmkm extends CI_Controller {
if($this->AbsenModel->getCountActiveAbsen()>0){
$data['data_absen'] = $this->AbsenModel->getActiveAbsen();
if($data['data_absen']->bulan=='1'){
$bulan = 'Januari';
} elseif($data['data_absen']->bulan=='2'){
$bulan = 'Februari';
} elseif($data['data_absen']->bulan=='3'){
$bulan = 'Maret';
} elseif($data['data_absen']->bulan=='4'){
$bulan = 'April';
} elseif($data['data_absen']->bulan=='5'){
$bulan = 'Mei';
} elseif($data['data_absen']->bulan=='6'){
$bulan = 'Juni';
} elseif($data['data_absen']->bulan=='7'){
$bulan = 'Juli';
} elseif($data['data_absen']->bulan=='8'){
$bulan = 'Agustus';
} elseif($data['data_absen']->bulan=='9'){
$bulan = 'September';
} elseif($data['data_absen']->bulan=='10'){
$bulan = 'Oktober';
} elseif($data['data_absen']->bulan=='11'){
$bulan = 'November';
} elseif($data['data_absen']->bulan=='12'){
$bulan = 'Desember';
if($this->AbsensiModel->getCountAbsensiByAbsenIdAndUmkmId($umkm->id_umkm,$data['data_absen']->id_absen)>0){
if($data['data_absen']->bulan=='1'){
$bulan = 'Januari';
} elseif($data['data_absen']->bulan=='2'){
$bulan = 'Februari';
} elseif($data['data_absen']->bulan=='3'){
$bulan = 'Maret';
} elseif($data['data_absen']->bulan=='4'){
$bulan = 'April';
} elseif($data['data_absen']->bulan=='5'){
$bulan = 'Mei';
} elseif($data['data_absen']->bulan=='6'){
$bulan = 'Juni';
} elseif($data['data_absen']->bulan=='7'){
$bulan = 'Juli';
} elseif($data['data_absen']->bulan=='8'){
$bulan = 'Agustus';
} elseif($data['data_absen']->bulan=='9'){
$bulan = 'September';
} elseif($data['data_absen']->bulan=='10'){
$bulan = 'Oktober';
} elseif($data['data_absen']->bulan=='11'){
$bulan = 'November';
} elseif($data['data_absen']->bulan=='12'){
$bulan = 'Desember';
}
$data['bulan'] = $bulan;
$data['active_absen'] = true;
$absenisi = $this->AbsensiModel->getAbsensiByAbsenIdAndUmkmId($umkm->id_umkm,$data['data_absen']->id_absen);
$data['absenisiaktif'] = $absenisi;
$data['signed']=$absenisi->signed;
} else {
$data['active_absen'] = false;
$data['data_absen'] = '';
}
$data['bulan'] = $bulan;
$data['active_absen'] = true;
$data['absenisiaktif'] = $this->AbsensiModel->getAbsensiByAbsenIdAndUmkmId($umkm->id_umkm,$data['data_absen']->id_absen);
} else {
$data['data_absen'] = '';
$data['active_absen'] = false;
}

View File

@ -16,6 +16,12 @@ class AbsensiModel extends CI_Model
return $absensi = $this->db->get($this->_table)->row();
}
public function getCountAbsensiByAbsenIdAndUmkmId($id_umkm,$id_absen){
$this->db->where('id_absen', $id_absen);
$this->db->where('id_umkm', $id_umkm);
return $absensi = count($this->db->get($this->_table)->result());
}
public function update($id_absensi){
$post = $this->input->post();
$this->aset = $post["aset"];

View File

@ -48,7 +48,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -72,7 +72,7 @@
</ul>
</div>
</div>
<div class="col-md-9">
<div class="col col-md-9 col-lg-9 col-sm-12 col-12">
<div class="card">
<h5 class="card-header">Absensi</h5>
<div class="card-body">
@ -100,7 +100,7 @@
<div class="card-body">
<div class="row">
<div class="col col-auto">
<div class="col col-md-9 col-lg-9 col-sm-12 col-12">
<h3>Absensi Bulan <?php echo $bulan ?> Tahun <?php echo $data_absen->tahun ?></h3>
</div>
<div class="col text-right">
@ -140,7 +140,7 @@
</div>
</div>
</div>
<div class="col">
<div class="col col-md-3 col-lg-3 col-sm-12 col-12 mt-3 mt-md-0 mt-lg-0">
<div class="card text-center bg-primary text-light">
<div class="card-header">
<?php echo $nm_kategori3 ?>

View File

@ -47,7 +47,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -71,7 +71,7 @@
</ul>
</div>
</div>
<div class="col-md-9">
<div class="col col-md-9 col-lg-9 col-sm-12 col-12">
<div class="card">
<h5 class="card-header">Absensi</h5>
<div class="card-body">
@ -135,7 +135,7 @@
</div>
<?php } ?>
<table id="tabeldata" class="table table-striped table-bordered">
<table id="tabeldata" class="table table-striped table-bordered table-responsive-lg">
<thead>
<tr>
<th>Bln</th>

View File

@ -40,7 +40,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -89,7 +89,7 @@
<?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%">
<table id="tabeldata" class="table table-striped table-bordered table-responsive" style="width:100%">
<thead>
<tr>
<th>No</th>

View File

@ -47,7 +47,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -71,7 +71,7 @@
</ul>
</div>
</div>
<div class="col-md-9">
<div class="col col-md-9 col-lg-9 col-sm-12 col-12">
<div class="card">
<h5 class="card-header">Absensi</h5>
<div class="card-body">
@ -102,7 +102,7 @@
<div class="card-body">
<div class="row">
<div class="col col-auto">
<div class="col col-md-9 col-lg-9 col-sm-12 col-12">
<h3>Absensi Bulan <?php echo $bulan ?> Tahun <?php echo $data_absen->tahun ?></h3>
</div>
<div class="col text-right">
@ -146,7 +146,7 @@
</div>
</div>
</div>
<div class="col">
<div class="col col-md-3 col-lg-3 col-sm-12 col-12 mt-3 mt-md-0 mt-lg-0">
<div class="card text-center bg-primary text-light">
<div class="card-header">
<?php echo $nm_kategori3 ?>
@ -196,7 +196,7 @@
Sudah Absen
</div>
<div class="card-body">
<table id="tabeldata" class="table table-striped table-bordered">
<table id="tabeldata" class="table table-striped table-bordered table-responsive-lg">
<thead>
<tr>
<th>No</th>
@ -239,7 +239,7 @@
Belum Absen
</div>
<div class="card-body">
<table id="tabeldata2" class="table table-striped table-bordered">
<table id="tabeldata2" class="table table-striped table-bordered table-responsive-lg">
<thead>
<tr>
<th>No</th>

View File

@ -39,7 +39,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -63,7 +63,7 @@
</ul>
</div>
</div>
<div class="col-md-9" >
<div class="col col-md-9 col-lg-9 col-sm-12 col-12" >
<div class="card">
<h5 class="card-header">Pemilik UMKM</h5>
<div class="card-body">
@ -88,7 +88,7 @@
<div class="row pr-2">
<div class="col col-md-4">
<div class="col col-md-4 col-lg-4 col-sm-12 col-12">
<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>
@ -98,7 +98,7 @@
<?php } ?>
</div>
</div>
<div class="col col-md-8">
<div class="col col-md-8 col-lg-8 col-sm-12 col-12">
<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>
@ -143,7 +143,7 @@
</div>
<div class="mt-2">
<table id="tabeldata" class="table table-striped table-bordered">
<table id="tabeldata" class="table table-striped table-bordered table-responsive-lg">
<thead>
<tr>
<th>No</th>

View File

@ -50,7 +50,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -74,7 +74,7 @@
</ul>
</div>
</div>
<div class="col-md-9" >
<div class="col-md-9 col-sm-12" >
<div class="card">
<h5 class="card-header">Data UMKM</h5>
<div class="card-body">
@ -94,7 +94,7 @@
<div class="mt-3">
<form action="" class="needs-validation">
<div class="row pr-2">
<div class="col col-md-4 pt-4">
<div class="col col-md-4 col-sm-12 col-12 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>
@ -106,7 +106,7 @@
</a>
</div>
</div>
<div class="col col-md-8">
<div class="col col-md-8 col-sm-12 col-12">
<div class="row pt-1 ml-2 mb-0 pb-0">
<strong>DATA TERKINI</strong>
</div>
@ -133,9 +133,9 @@
</div>
</div>
</div>
<div class="col col-md-4">
<div class="col col-md-4 col-12 col-sm-12 mt-3 mt-md-0 mt-lg-0">
<div class="card text-center">
<div class="card-header text-light bg-info">
<div class="card-header text-light bg-info">
ASET TERAKHIR
</div>
<div class="card-body">
@ -150,7 +150,7 @@
</div>
</div>
<div class="row pr-2">
<div class="col col-md-6">
<div class="col col-md-6 col-12 col-lg-6 col-sm-12">
<div class="row pb-2 pl-3">
<div class="col col-md-4 pl-2 pr-2">No Telp</div>
@ -183,16 +183,16 @@
</div>
</div>
<div class="col col-md-6">
<div class="col col-md-6 col-12 col-lg-6 col-sm-12">
<div class="row pb-2">
<div class="row pb-2 pl-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="row pb-2 pl-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>
@ -217,14 +217,15 @@
<div class="row mt-2">
<div class="col col-md-12">
<table id="tabeldata" class="table table-striped table-bordered">
<table id="tabeldata" class="table table-striped table-bordered table-responsive-lg">
<thead>
<tr>
<th>Tahun</th>
<th>Bulan</th>
<th>Aset Terkini</th>
<th>Omset Bulan Ini</th>
<th>Jumlah Karyawan</th>
<th>Tenaga Kerja (L)</th>
<th>Tenaga Kerja (P)</th>
</tr>
</thead>
<tbody>
@ -266,7 +267,8 @@
<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>
<td><?php echo $absensi->karyawan_l ?></td>
<td><?php echo $absensi->karyawan_p ?></td>
</tr>
<?php
}

View File

@ -39,7 +39,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -63,7 +63,7 @@
</ul>
</div>
</div>
<div class="col-md-9" >
<div class="col col-md-9 col-12 col-sm-12 col-lg-9" >
<div class="card">
<h5 class="card-header">Pemilik UMKM</h5>
<div class="card-body">
@ -117,14 +117,14 @@
}
}
?>
<div class="col col-md-6">
<div class="form-group">
<img src="../../assets/images/<?php echo $pemilik->foto_user ?>" width="112" />
<div class="col col-md-6 col-12 col-sm-12 col-lg-6">
<div class="form-group text-center">
<img src="../../assets/images/<?php echo $pemilik->foto_user ?>" width="112" class="img img-thumbnail mt-3" />
</div>
<div class="form-group">
<div class="form-group text-center">
<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">
<input type="file" accept=".jpg,.jpeg,.png,.gif" name="foto_user" class="form-control-file mt-2" id="foto_user">
</div>
<div class="form-group">
@ -137,7 +137,7 @@
<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="col col-md-6 col-12 col-sm-12 col-lg-6">
<div class="form-group">
@ -163,7 +163,7 @@
</div>
<div class="col col-md-12 text-right">
<div class="col col-md-12 col-12 col-sm-12 col-lg-6 text-right">
<hr>
<button type="submit" class="btn btn-sm btn-primary">Simpan</button>
</div>

View File

@ -40,7 +40,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -64,7 +64,7 @@
</ul>
</div>
</div>
<div class="col-md-9" >
<div class="col col-md-9 col-lg-9 col-sm-12 col-12" >
<div class="card">
<h5 class="card-header">Data UMKM</h5>
<div class="card-body">
@ -114,14 +114,14 @@
}
}
?>
<div class="col col-md-4">
<div class="col col-md-4 col-lg-4 col-sm-12 col-12">
<div class="form-group text-center mb-2">
<img src="../../assets/images/umkm/<?php echo $umkm->foto_umkm ?>" width="100" />
<img src="../../assets/images/umkm/<?php echo $umkm->foto_umkm ?>" class="img img-thumbnail" width="115" />
</div>
<div class="form-group">
<div class="form-group text-center">
<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">
<input type="file" accept=".jpg,.jpeg,.png,.gif" name="foto_umkm" class="form-control-file mt-3" id="foto_umkm">
</div>
<div class="form-group">
@ -139,7 +139,7 @@
</div>
</div>
<div class="col col-md-4">
<div class="col col-md-4 col-lg-4 col-sm-12 col-12">
<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>
@ -167,7 +167,7 @@
</div>
<div class="col col-md-4">
<div class="col col-md-4 col-lg-4 col-sm-12 col-12">
<div class="form-group">
<label for="kelurahan">Kelurahan</label>
<select name="kelurahan" class="form-control" id="kelurahan" required>
@ -189,7 +189,7 @@
<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">
<div class="col col-12 text-right">
<hr>
<button type="submit" class="btn btn-primary btn-sm">Simpan</button>
</div>

View File

@ -40,7 +40,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -64,7 +64,7 @@
</ul>
</div>
</div>
<div class="col-md-9">
<div class="col col-md-9 col-lg-9 col-sm-12 col-12">
<div class="card">
<h5 class="card-header">Absensi</h5>
<div class="card-body">
@ -107,7 +107,7 @@
</div>
<div class="card-body">
<div class="row">
<div class="col col-md-1 pt-1">
<div class="col col-2 col-md-1 col-lg-1 pt-1">
<?php
$jumlahabsen = $absenmodel->getAbsenCountByYear($tahun->tahun);
$prosentaseabsen = ($jumlahabsen/12)*100;

View File

@ -40,7 +40,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -64,7 +64,7 @@
</ul>
</div>
</div>
<div class="col-md-9" >
<div class="col col-md-9 col-lg-9 col-sm-12 col-12" >
<div class="card">
<h5 class="card-header">Pemilik UMKM</h5>
<div class="card-body">
@ -118,7 +118,7 @@
}
}
?>
<div class="col col-md-12">
<div class="col col-12">
<div class="form-group">
<label for="password">Password</label>
<input type="password" name="password" class="form-control" id="password" placeholder="Password" required>
@ -129,7 +129,7 @@
<input type="password" name="password2" class="form-control" id="password2" placeholder="Confirm Password" required>
</div>
</div>
<div class="col col-md-12 text-right">
<div class="col col-12 text-right">
<hr>
<button type="submit" class="btn btn-sm btn-primary">Simpan</button>
</div>

View File

@ -40,7 +40,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -64,7 +64,7 @@
</ul>
</div>
</div>
<div class="col-md-9" >
<div class="col col-md-9 col-lg-9 col-sm-12 col-12" >
<div class="card">
<h5 class="card-header">Setting User</h5>
<div class="card-body">
@ -100,7 +100,7 @@
}
}
?>
<div class="col col-md-12">
<div class="col col-12">
<div class="form-group">
<label for="password">Password</label>
<input type="password" name="password" class="form-control" id="password" placeholder="Password" required>
@ -111,7 +111,7 @@
<input type="password" name="password2" class="form-control" id="password2" placeholder="Confirm Password" required>
</div>
</div>
<div class="col col-md-12 text-right">
<div class="col col-12 text-right">
<hr>
<button type="submit" class="btn btn-sm btn-primary">Simpan</button>
</div>

View File

@ -52,7 +52,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<div class="card-header text-center">
<img src="../../assets/images/user.png" width="125" /><br>
<strong><?php echo $user_logged->nama ?></strong>

View File

@ -39,7 +39,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -63,7 +63,7 @@
</ul>
</div>
</div>
<div class="col-md-9">
<div class="col-md-9 col-12 col-sm-12 col-lg-9">
<div class="card">
<h5 class="card-header">Pemilik UMKM</h5>
<div class="card-body">
@ -108,7 +108,7 @@
}
}
?>
<div class="col col-md-6">
<div class="col col-md-6 col-12 col-sm-12 col-lg-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>
@ -134,7 +134,7 @@
<input type="text" name="telp" class="form-control" id="telp" placeholder="No Telp" required>
</div>
</div>
<div class="col col-md-6">
<div class="col col-md-6 col-12 col-sm-12 col-lg-6">
<div class="form-group">
<label for="kelurahan">Kelurahan</label>
@ -162,7 +162,7 @@
<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">
<div class="col col-md-12 col-12 col-sm-12 col-lg-6 text-right">
<hr>
<button type="submit" class="btn btn-sm btn-primary">Simpan</button>
</div>

View File

@ -40,7 +40,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -64,7 +64,7 @@
</ul>
</div>
</div>
<div class="col-md-9" >
<div class="col col-md-9 col-lg-9 col-sm-12 col-12" >
<div class="card">
<h5 class="card-header">Pemilik UMKM</h5>
<div class="card-body">
@ -119,7 +119,7 @@
}
}
?>
<div class="col col-md-4">
<div class="col col-md-4 col-lg-4 col-sm-12 col-12">
<div class="form-group">
<label for="namaumkm">Nama Umkm</label>
<input type="text" name="nama" class="form-control" id="namaumkm" placeholder="Nama Umkm" required>
@ -146,7 +146,7 @@
</div>
</div>
<div class="col col-md-4">
<div class="col col-md-4 col-lg-4 col-sm-12 col-12">
<div class="form-group">
<label for="karyawan_l">Jumlah Tenaga Kerja (L)</label>
@ -176,7 +176,7 @@
</div>
</div>
<div class="col col-md-4">
<div class="col col-md-4 col-lg-4 col-sm-12 col-12">
<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>
@ -192,7 +192,7 @@
<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">
<div class="col col-12">
<hr>
<button type="submit" class="btn btn-primary">Simpan</button>
</div>

View File

@ -16,18 +16,6 @@
<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>
@ -54,7 +42,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -78,7 +66,7 @@
</ul>
</div>
</div>
<div class="col-md-9">
<div class="col col-md-9 col-lg-9 col-sm-12 col-12">
<div class="card">
<h5 class="card-header">Data UMKM</h5>
<div class="card-body">
@ -89,7 +77,7 @@
</li>
</ul>
<div class="mt-3 hdscr" style="max-height:400px;overflow-y: auto;">
<div class="mt-3">
<?php if (isset($del_msg)){
if($del_msg=='error'){
?>
@ -98,7 +86,7 @@
<?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">
<table id="tabeldata" class="table table-striped table-bordered table-responsi-lg">
<thead>
<tr>
<th>No</th>

View File

@ -15,19 +15,7 @@
<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>
@ -54,7 +42,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -69,7 +57,7 @@
</ul>
</div>
</div>
<div class="col-md-9">
<div class="col col-12 col-md-9 col-lg-9">
<div class="card">
<h5 class="card-header">Daftar UMKM</h5>
<div class="card-body">
@ -80,7 +68,7 @@
</li>
</ul>
<div class="mt-3 hdscr" style="max-height:400px;overflow-y: auto;">
<div class="mt-3">
<?php if (isset($del_msg)){
if($del_msg=='error'){
?>
@ -89,7 +77,7 @@
<?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">
<table id="tabeldata" class="table table-striped table-bordered table-responsive-lg">
<thead>
<tr>
<th>No</th>

View File

@ -50,7 +50,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -65,7 +65,7 @@
</ul>
</div>
</div>
<div class="col-md-9" >
<div class="col col-12 col-md-9 col-lg-9" >
<div class="card">
<h5 class="card-header">Data UMKM</h5>
<div class="card-body">
@ -85,14 +85,14 @@
<div class="mt-3">
<div class="row pr-2">
<div class="col col-md-4 pt-4">
<div class="col col-12 col-md-4 col-lg-4 pt-4">
<div class="form-group text-center">
<img src="../../assets/images/umkm/<?php echo $umkm->foto_umkm ?>" width="135" class="img-thumbnail mb-2" /><br>
<strong><?php echo $umkm->nama?></strong>
</div>
</div>
<div class="col col-md-8">
<div class="col col-12 col-md-8 col-lg-8">
<div class="row pt-1 ml-2 mb-0 pb-0">
<strong>DATA TERKINI</strong>
</div>
@ -119,7 +119,7 @@
</div>
</div>
</div>
<div class="col col-md-4">
<div class="col col-12 col-md-4 col-lg-4 mt-2 mt-md-0 mt-lg-0">
<div class="card text-center">
<div class="card-header text-light bg-info">
ASET TERAKHIR
@ -131,12 +131,12 @@
</div>
</div>
</div>
<div class="col col-md-12">
<div class="col col-12">
<hr>
</div>
</div>
<div class="row pr-2">
<div class="col col-md-6">
<div class="col col-12 col-md-6 col-lg-6">
<div class="row pb-2 pl-3">
<div class="col col-md-4 pl-2 pr-2">No Telp</div>
@ -169,7 +169,7 @@
</div>
</div>
<div class="col col-md-6">
<div class="col col-12 col-md-6 col-lg-6">
<div class="row pb-2">
<div class="col col-md-12">Alamat</div>
@ -186,7 +186,7 @@
</div>
</div>
<div class="col col-md-12">
<div class="col col-12">
<hr>
<ul class="nav nav-tabs">
<li class="nav-item">
@ -205,7 +205,7 @@
</div>
<div class="row mt-2">
<div class="col col-md-12">
<div class="col col-12">
<div class="card">
<div class="card-header bg-primary text-white">
Absen Aktif
@ -214,11 +214,11 @@
<div class="card-body">
<div class="row">
<div class="col col-auto">
<div class="col col-12 col-md-9 col-lg-9">
<h5>Bulan <?php echo $bulan ?> Tahun <?php echo $data_absen->tahun ?></h5>
</div>
<div class="col text-right">
<?php if($absenisiaktif->signed==1){?>
<?php if($signed==1){?>
<span class="badge badge-pill badge-success">Sudah Absen</span>
<?php }else{?>
<span class="badge badge-pill badge-warning text-dark">Belum Absen</span>
@ -248,7 +248,7 @@
}
}
?>
<div class="col col-md-6">
<div class="col col-12 col-md-6 col-lg-6">
<input type="hidden" name='id_absensi' value="<?php echo $absenisiaktif->id_absensi ?>" readonly>
<div class="form-group">
<label for="aset">Aset Terkini</label>
@ -260,7 +260,7 @@
<input type="number" name="omset" min="0" class="form-control" id="omset" placeholder="Omset bulan ini" value="<?php echo $absenisiaktif->omset ?>" required>
</div>
</div>
<div class="col col-md-6">
<div class="col col-12 col-md-6 col-lg-6">
<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 $absenisiaktif->karyawan_l ?>" placeholder="Jumlah Karyawan laki-laki" required>
@ -273,7 +273,7 @@
</div>
<div class="col col-md-12">
<div class="col col-12">
<hr>
<button type="submit" class="btn btn-primary">Update Absen</button>
</div>
@ -290,9 +290,6 @@
<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 } ?>

View File

@ -40,7 +40,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -55,7 +55,7 @@
</ul>
</div>
</div>
<div class="col-md-9" >
<div class="col col-12 col-md-9 col-lg-9" >
<div class="card">
<h5 class="card-header">Data UMKM</h5>
<div class="card-body">
@ -105,14 +105,14 @@
}
}
?>
<div class="col col-md-6">
<div class="form-group mb-2">
<div class="col col-12 col-md-6 col-lg-6">
<div class="form-group mb-2 text-center">
<img src="../../assets/images/umkm/<?php echo $umkm->foto_umkm ?>" width="135" class="img-thumbnail" />
</div>
<div class="form-group">
<div class="form-group text-center">
<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">
<input type="file" accept=".jpg,.jpeg,.png,.gif" name="foto_umkm" class="form-control-file mt-2" id="foto_umkm">
</div>
<div class="form-group">
@ -121,7 +121,7 @@
</div>
</div>
<div class="col col-md-6">
<div class="col col-12 col-md-6 col-lg-6">
<div class="form-group">
<label for="jenis">Jenis Usaha</label>
<select name="jenis" class="form-control" id="jenis" required>
@ -145,7 +145,7 @@
<div class="col col-md-12 text-right">
<div class="col col-12 text-right">
<hr>
<button type="submit" class="btn btn-primary btn-sm">Simpan</button>
</div>

View File

@ -50,7 +50,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -65,7 +65,7 @@
</ul>
</div>
</div>
<div class="col-md-9" >
<div class="col col-12 col-md-9 col-lg-9" >
<div class="card">
<h5 class="card-header">Data UMKM</h5>
<div class="card-body">
@ -85,14 +85,14 @@
<div class="mt-3">
<form action="" class="needs-validation">
<div class="row pr-2">
<div class="col col-md-4 pt-4">
<div class="col col-12 col-md-4 col-lg-4 pt-4">
<div class="form-group text-center">
<img src="../../assets/images/umkm/<?php echo $umkm->foto_umkm ?>" width="135" class="img-thumbnail mb-2" /><br>
<strong><?php echo $umkm->nama?></strong>
</div>
</div>
<div class="col col-md-8">
<div class="col col-12 col-md-8 col-lg-8">
<div class="row pt-1 ml-2 mb-0 pb-0">
<strong>DATA TERKINI</strong>
</div>
@ -119,7 +119,7 @@
</div>
</div>
</div>
<div class="col col-md-4">
<div class="col col-12 col-md-4 col-lg-4 mt-2 mt-md-0 mt-lg-0">
<div class="card text-center">
<div class="card-header text-light bg-info">
ASET TERAKHIR
@ -131,12 +131,12 @@
</div>
</div>
</div>
<div class="col col-md-12">
<div class="col col-12">
<hr>
</div>
</div>
<div class="row pr-2">
<div class="col col-md-6">
<div class="col col-12 col-md-6 col-lg-6">
<div class="row pb-2 pl-3">
<div class="col col-md-4 pl-2 pr-2">No Telp</div>
@ -169,7 +169,7 @@
</div>
</div>
<div class="col col-md-6">
<div class="col col-12 col-md-6 col-lg-6">
<div class="row pb-2">
<div class="col col-md-12">Alamat</div>
@ -186,7 +186,7 @@
</div>
</div>
<div class="col col-md-12">
<div class="col col-12">
<hr>
<ul class="nav nav-tabs">
<li class="nav-item">
@ -214,9 +214,9 @@
<?php } elseif($del_msg=='sucess'){ ?>
<div class="alert alert-success" role="alert">Data berhasil terhapus !</div>
<?php }}?>
<div class="col col-md-12">
<div class="col col-12">
<a href="<?php echo base_url('index.php/')?>user/tambahproduk?id_umkm=<?php echo $umkm->id_umkm ?>" class="btn btn-sm btn-success mb-3">Tambah Produk</a>
<table id="tabeldata" class="table table-striped table-bordered">
<table id="tabeldata" class="table table-striped table-bordered table-responsive-lg">
<thead>
<tr>
<th>Produk</th>

View File

@ -50,7 +50,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -65,7 +65,7 @@
</ul>
</div>
</div>
<div class="col-md-9" >
<div class="col col-12 col-md-9 col-lg-9" >
<div class="card">
<h5 class="card-header">Data UMKM</h5>
<div class="card-body">
@ -85,14 +85,14 @@
<div class="mt-3">
<form action="" class="needs-validation">
<div class="row pr-2">
<div class="col col-md-4 pt-4">
<div class="col col-12 col-md-4 col-lg-4 pt-4">
<div class="form-group text-center">
<img src="../../assets/images/umkm/<?php echo $umkm->foto_umkm ?>" width="135" class="img-thumbnail mb-2" /><br>
<strong><?php echo $umkm->nama?></strong>
</div>
</div>
<div class="col col-md-8">
<div class="col col-12 col-md-8 col-lg-8">
<div class="row pt-1 ml-2 mb-0 pb-0">
<strong>DATA TERKINI</strong>
</div>
@ -119,7 +119,7 @@
</div>
</div>
</div>
<div class="col col-md-4">
<div class="col col-12 col-md-4 col-lg-4 mt-2 mt-md-2 mt-lg-2">
<div class="card text-center">
<div class="card-header text-light bg-info">
ASET TERAKHIR
@ -131,12 +131,12 @@
</div>
</div>
</div>
<div class="col col-md-12">
<div class="col col-12">
<hr>
</div>
</div>
<div class="row pr-2">
<div class="col col-md-6">
<div class="col col-12 col-md-6 col-lg-6">
<div class="row pb-2 pl-3">
<div class="col col-md-4 pl-2 pr-2">No Telp</div>
@ -169,7 +169,7 @@
</div>
</div>
<div class="col col-md-6">
<div class="col col-12 col-md-6 col-lg-6">
<div class="row pb-2">
<div class="col col-md-12">Alamat</div>
@ -186,7 +186,7 @@
</div>
</div>
<div class="col col-md-12">
<div class="col col-12">
<hr>
<ul class="nav nav-tabs">
<li class="nav-item">
@ -205,8 +205,8 @@
</div>
<div class="row mt-2">
<div class="col col-md-12">
<table id="tabeldata" class="table table-striped table-bordered">
<div class="col col-12">
<table id="tabeldata" class="table table-striped table-bordered table-responsive-lg">
<thead>
<tr>
<th>Tahun</th>

View File

@ -51,7 +51,7 @@
<div class="container">
<div class="row">
<div class="col-md-3" style="cursor:pointer;">
<div class="card" style="width: 18rem;">
<div class="card">
<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>
@ -66,7 +66,7 @@
</ul>
</div>
</div>
<div class="col-md-9" >
<div class="col col-12 col-md-9 col-lg-9" >
<div class="card">
<h5 class="card-header">Data UMKM</h5>
<div class="card-body">
@ -86,14 +86,14 @@
<div class="mt-3">
<div class="row pr-2">
<div class="col col-md-4 pt-4">
<div class="col col-12 col-md-4 col-lg-4 pt-4">
<div class="form-group text-center">
<img src="../../assets/images/umkm/<?php echo $umkm->foto_umkm ?>" width="135" class="img-thumbnail mb-2" /><br>
<strong><?php echo $umkm->nama?></strong>
</div>
</div>
<div class="col col-md-8">
<div class="col col-12 col-md-8 col-lg-8">
<div class="row pt-1 ml-2 mb-0 pb-0">
<strong>DATA TERKINI</strong>
</div>
@ -120,7 +120,7 @@
</div>
</div>
</div>
<div class="col col-md-4">
<div class="col col-12 col-md-4 col-lg-4 mt-2 mt-md-0 mt-lg-0">
<div class="card text-center">
<div class="card-header text-light bg-info">
ASET TERAKHIR
@ -132,12 +132,12 @@
</div>
</div>
</div>
<div class="col col-md-12">
<div class="col col-12">
<hr>
</div>
</div>
<div class="row pr-2">
<div class="col col-md-6">
<div class="col col-12 col-md-6 col-lg-6">
<div class="row pb-2 pl-3">
<div class="col col-md-4 pl-2 pr-2">No Telp</div>
@ -170,7 +170,7 @@
</div>
</div>
<div class="col col-md-6">
<div class="col col-12 col-md-6 col-lg-6">
<div class="row pb-2">
<div class="col col-md-12">Alamat</div>
@ -187,7 +187,7 @@
</div>
</div>
<div class="col col-md-12">
<div class="col col-12">
<hr>
<ul class="nav nav-tabs">
<li class="nav-item">
@ -211,7 +211,7 @@
</div>
<div class="row mt-2">
<div class="col col-md-12">
<div class="col col-12">
<div class="card">
<div class="card-header bg-primary text-white">
Tambah Produk
@ -225,7 +225,7 @@
<?php
if(isset($error_upload)){
?>
<div class="col col-md-12">
<div class="col col-12">
<div class="alert alert-danger" role="alert">Error : <?php echo $error_upload ?></div>
</div>
<?php
@ -249,7 +249,7 @@
}
}
?>
<div class="col col-md-12">
<div class="col col-12">
<div class="form-group">
<label for="produk">Nama Produk</label>
@ -267,7 +267,7 @@
</div>
</div>
<div class="col col-md-12">
<div class="col col-12">
<hr>
<button type="submit" class="btn btn-primary">Simpan</button>
</div>