copy dari repo om Irfan
This commit is contained in:
@@ -0,0 +1,270 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>LAPORAN</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="Porto Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="okler.net">
|
||||
|
||||
<!-- Mobile Metas -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
|
||||
<!-- Vendor CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/bootstrap/css/bootstrap.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/font-awesome/css/font-awesome.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/css/datepicker3.css" />
|
||||
|
||||
<!-- Specific Page Vendor CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/select2/select2.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/css/datatables.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/bootstrap-multiselect/bootstrap-multiselect.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/base/jquery-ui.css" />
|
||||
|
||||
<!-- Theme CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/stylesheets/theme.css" />
|
||||
|
||||
<!-- Skin CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/stylesheets/skins/default.css" />
|
||||
|
||||
<!-- Theme Custom CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/stylesheets/theme-custom.css">
|
||||
|
||||
<!-- Head Libs -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/modernizr/modernizr.js"></script>
|
||||
|
||||
</head>
|
||||
<script src="<?= base_url() ?>assets/bower_components/jquery/jquery-3.3.1.min.js"></script>
|
||||
<script src="<?= base_url() ?>assets/bower_components/sweetalert2/sweetalert2.all.min.js"></script>
|
||||
|
||||
<style>
|
||||
.ui-front {
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.bottomsolid {
|
||||
border-bottom-style: solid;
|
||||
border-top-style: solid;
|
||||
border-right-style: solid;
|
||||
border-left-style: solid;
|
||||
border-width: 3px;
|
||||
border-color: silver;
|
||||
}
|
||||
|
||||
.f16 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* Create a two-column layout */
|
||||
.column2 {
|
||||
float: left;
|
||||
width: 50%;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
/* Create a three-column layout */
|
||||
.column3 {
|
||||
float: left;
|
||||
width: 33.33%;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
let base_url = '<?= base_url() ?>';
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<section class="body">
|
||||
|
||||
<!-- start: header -->
|
||||
<?php $this->load->view('template/header'); ?>
|
||||
<!-- end: header -->
|
||||
|
||||
<div class="inner-wrapper">
|
||||
<!-- start: sidebar -->
|
||||
<?php $this->load->view('template/sidebar'); ?>
|
||||
<!-- end: sidebar -->
|
||||
|
||||
<section role="main" class="content-body">
|
||||
<header class="page-header">
|
||||
<h2><b>Data Laporan KPI | <a data-toggle="modal" data-target="#modalFitur"><b style="color:LightGreen"><?=$tampil?> <i class="fa fa-question-circle"></i></b></a> | Diambil <b style="color:LightPink" id="jamTerakhir"></b></b></h2>
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<?php if ($ex==0) { ?>
|
||||
<li><span><a href="<?php echo base_url('') ?>index.php"><b style="color:Silver">Dashboard <i class="fa fa-home"></i></b></a></span></li>
|
||||
<?php } else if ($ex==1) { ?>
|
||||
<li><span><a onclick="tutupTab()"><b style="color:Silver">Tutup Tab <i class="fa fa-times"></i></b></a></span></li>
|
||||
<?php } ?>
|
||||
<li><span><b style="color:DeepSkyBlue">Pusat Data</span></b></li>
|
||||
</ol>
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- start: page -->
|
||||
<section class="panel panel-featured panel-featured-dark">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><b style="color:Black">REKAP KPI (SALES)</b></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<?php if ($hak>2) { ?>
|
||||
<?= form_open('Menu/LA_Excel_DataRekapKpiSales', array('method' => 'post')); ?>
|
||||
<div class="form-group">
|
||||
<h4><div class="col-md-2"><b style="color:SlateBlue">Jenis</b></div></h4>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<select data-plugin-selectTwo id="jenis" onchange="ambilAnggota(value)" class="form-control populate">
|
||||
<option value="0" selected>Semua Data</option>
|
||||
<?php if (is_array($kadiv) || is_object($kadiv)) {
|
||||
foreach ($kadiv as $key) { ?>
|
||||
<?php if ($key['ID_KARYAWAN']==$id_karyawan) { ?>
|
||||
<option value="<?= $key['ID_KARYAWAN'] ?>" selected>Kadiv - <?= $key['NAMA_PANGGILAN_KARYAWAN'] ?></option>
|
||||
<?php } else { ?>
|
||||
<option value="<?= $key['ID_KARYAWAN'] ?>">Kadiv - <?= $key['NAMA_PANGGILAN_KARYAWAN'] ?></option>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<h4><div class="col-md-2"><b style="color:SlateBlue">Sales</b></div></h4>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<select disabled data-plugin-selectTwo id="id_sales" class="form-control populate"></select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<h4><div class="col-md-2"><b style="color:SlateBlue">Periode</b></div></h4>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<select data-plugin-selectTwo id="id_pum" class="form-control populate">
|
||||
<?php if (is_array($pum) || is_object($pum)) {
|
||||
foreach ($pum as $key) { ?>
|
||||
<?php if ($key['ID_PUM']==$id_pum) { ?>
|
||||
<option value="<?= $key['ID_PUM'] ?>" selected><?= $key['NAMA_PUM'] ?> (<?= $key['AWAL'] ?> s/d <?= $key['AKHIR'] ?>)</option>
|
||||
<?php } else { ?>
|
||||
<option value="<?= $key['ID_PUM'] ?>" ><?= $key['NAMA_PUM'] ?> (<?= $key['AWAL'] ?> s/d <?= $key['AKHIR'] ?>)</option>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<h4><div class="col-md-2"><b style="color:SlateBlue">Menu</b></div></h4>
|
||||
<div class="col-md-10 btn-group">
|
||||
<input type="hidden" class="form-control" id="jenis_fill" name="jenis_fill">
|
||||
<input type="hidden" class="form-control" id="id_salesfill" name="id_salesfill">
|
||||
<input type="hidden" class="form-control" id="id_pumfill" name="id_pumfill">
|
||||
<?php if ($hak>2) { ?>
|
||||
<button type="submit" class="btn btn-default" onclick="isiData()" target="_blank"><b style="color:DarkGreen">Excel <i class="fa fa-file-excel-o"></i></b></button>
|
||||
<button type="button" class="btn btn-default" onclick="reloadData()"><b style="color:FireBrick">Reset <i class="fa fa-rotate-left"></i></b></button>
|
||||
<?php } else { ?>
|
||||
<button type="button" class="btn btn-default"><b style="color:Red">Tidak Berhak <i class="fa fa-times"></i></b></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div id="modalFitur" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" style="width:35%">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h4 class="panel-title"><b>Fitur Teknis</b></h4>
|
||||
<div class="panel-actions">
|
||||
<a class="text-dark" data-dismiss="modal"><b>Tutup </b><i class="fa fa-times"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="form-group">
|
||||
<h5>
|
||||
<b style="color:Green">AKSES PENUH</b><br><b> Semua Menu dapat digunakan.</b><br>
|
||||
<br><b style="color:Green">OPERATOR</b><br><b> Hanya dapat mengambil milik Sendiri.</b><br>
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$this->load->view('template/sidebar_right');
|
||||
$this->load->view('template/script_vendor');
|
||||
$this->load->view('template/script_flashdata');
|
||||
$this->load->view('template/notification');
|
||||
?>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var jenis = document.getElementById("jenis").value;
|
||||
ambilAnggota(jenis);
|
||||
|
||||
var time = new Date().toLocaleTimeString('en-US',{hour12:false});
|
||||
$('#jamTerakhir').html(time);
|
||||
})
|
||||
|
||||
function ambilAnggota(id_karyawan) {
|
||||
document.getElementById("id_sales").value = null;
|
||||
document.getElementById("id_sales").innerHTML = "";
|
||||
$.ajax({
|
||||
url: "<?= base_url() ?>index.php/Menu/GE_Ambil_DataKaryawan",
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data: {
|
||||
verse : 1,
|
||||
id_karyawan : id_karyawan,
|
||||
},
|
||||
success: function(response) {
|
||||
var listData = response.data;
|
||||
var isiMaster = document.getElementById("id_sales");
|
||||
if (id_karyawan==0) {
|
||||
isiMaster.innerHTML = isiMaster.innerHTML + '<option value="0" selected>Semua Sales</option>';
|
||||
} else {
|
||||
isiMaster.innerHTML = isiMaster.innerHTML + '<option value="0" selected>Semua Anggota Kadiv</option>';
|
||||
}
|
||||
for (var i = 0; i < listData.length; i++) {
|
||||
isiMaster.innerHTML = isiMaster.innerHTML + '<option value="' + listData[i]['ID_KARYAWAN'] + '">' + listData[i]['NAMA_PANGGILAN_KARYAWAN'] + '</option>';
|
||||
}
|
||||
$('#id_sales').val("0").trigger('change');
|
||||
document.getElementById("id_sales").disabled = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function isiData() {
|
||||
document.getElementById('jenis_fill').value = document.getElementById('jenis').value;
|
||||
document.getElementById('id_salesfill').value = document.getElementById('id_sales').value;
|
||||
document.getElementById('id_pumfill').value = document.getElementById('id_pum').value;
|
||||
}
|
||||
|
||||
function reloadData() {
|
||||
location.reload();
|
||||
}
|
||||
|
||||
function tutupTab() {
|
||||
window.close();
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user