copy dari repo om Irfan

This commit is contained in:
2026-06-13 16:02:07 +10:00
commit db327c0305
5376 changed files with 2770667 additions and 0 deletions
@@ -0,0 +1,294 @@
<!doctype html>
<html class="fixed sidebar-left-collapsed">
<head>
<!-- Basic -->
<meta charset="UTF-8">
<title>KEUANGAN</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;
}
.solid {
border-left-style: solid;
border-width: 5px;
border-color: darkcyan;
}
.f18 {
font-size: 18px;
}
</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 Analisa Rincian Piutang Dagang | <b style="color:LightGreen">[<?=$tampil?>]</b></b></h2>
<div class="right-wrapper pull-right">
<ol class="breadcrumbs">
<li><span><b style="color:Gold">Master 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-success">
<header class="panel-heading">
<div class="panel-actions">
<a data-toggle="modal" data-target="#modalFitur" style="color:Coral"><b>Fitur </b><i class="fa fa-question-circle"></i></a>&nbsp&nbsp
<a href="<?php echo base_url('') ?>index.php/Menu/KU_Sub4_Laporan_1" class="text-dark"><b>Kembali </b><i class="fa fa-backward"></i></a>
</div>
<h2 class="panel-title"><b style="color:Olive">RINCIAN PIUTANG DAGANG</b></h2>
</header>
<div class="panel-body">
<?php if ($hak>0) { ?>
<?= form_open('Menu/KU_Excel_Sub4_DataAnalisaRincianPiutangDagang', array('method' => 'post'), array('id' => 'formkeuangan')); ?>
<div class="form-group">
<h4><div class="col-md-2"><b style="color:SlateBlue">Pelanggan</b></div></h4>
<div class="col-md-6">
<div class="form-group">
<select data-plugin-selectTwo id="id_pelanggan" class="form-control populate" data-plugin-options='{ "minimumInputLength": 3 }'>
<option value="" selected>Semua Pelanggan</option>
<?php if (is_array($pelanggan) || is_object($pelanggan)) {
foreach ($pelanggan as $key) { ?>
<option value="<?= $key['ID_PELANGGAN'] ?>" ><?= $key['NAMA_PELANGGAN'] ?></option>
<?php }
} ?>
</select>
</div>
</div>
</div>
<div class="form-group">
<h4><div class="col-md-2"><b style="color:SlateBlue">Kop</b></div></h4>
<div class="col-md-6">
<div class="form-group">
<select data-plugin-selectTwo id="id_corp" class="form-control populate">
<option value="" selected>Semua Kop</option>
<?php if (is_array($corp) || is_object($corp)) {
foreach ($corp as $key) { ?>
<option value="<?= $key['ID_KOP'] ?>" ><?= $key['NAMA_KOP'] ?></option>
<?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-6">
<div class="form-group">
<select data-plugin-selectTwo id="id_sales" class="form-control populate">
<?php if ($hak>1) { ?>
<option value="" selected>Semua Sales</option>
<?php } ?>
<?php if (is_array($sales) || is_object($sales)) {
foreach ($sales as $key) { ?>
<?php if ($hak==1) { ?>
<?php if ($key['NAMA_PANGGILAN_KARYAWAN']=="Olla" OR $key['NAMA_PANGGILAN_KARYAWAN']=="Risti") { ?>
<?php if ($key['NAMA_PANGGILAN_KARYAWAN']=="Risti") { ?>
<option value="<?= $key['ID_KARYAWAN'] ?>" selected><?= $key['NAMA_PANGGILAN_KARYAWAN'] ?></option>
<?php } else { ?>
<option value="<?= $key['ID_KARYAWAN'] ?>"><?= $key['NAMA_PANGGILAN_KARYAWAN'] ?></option>
<?php } ?>
<?php } ?>
<?php } else { ?>
<option value="<?= $key['ID_KARYAWAN'] ?>" ><?= $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">Transaksi</b></div></h4>
<div class="col-md-6">
<div class="form-group">
<select data-plugin-selectTwo id="transaksi" class="form-control populate">
<option value="0" selected>BELUM LUNAS</option>
<option value="1">SUDAH LUNAS</option>
<option value="2">CAMPUR</option>
</select>
</div>
</div>
</div>
<div class="form-group">
<h4><div class="col-md-2"><b style="color:SlateBlue">Periode Nota</b></div></h4>
<div class="col-md-4">
<div class="input-daterange input-group">
<input type="date" class="form-control" id="awal_nota" onfocusout="cekTanggal(value, 3)" value="<?=$tgl?>" required>
<span class="input-group-addon">to</span>
<input type="date" class="form-control" id="akhir_nota" onfocusout="cekTanggal(value, 4)" value="<?=$tgl?>" required>
</div>
</div>
</div>
<div class="form-group">
<h4><div class="col-md-2"><b style="color:SlateBlue">Jatuh Tempo</b></div></h4>
<div class="col-md-4">
<div class="input-daterange input-group">
<input type="date" class="form-control" id="awal_jt" onfocusout="cekTanggal(value, 1)" value="<?=$tgl?>" required>
<span class="input-group-addon">to</span>
<input type="date" class="form-control" id="akhir_jt" onfocusout="cekTanggal(value, 2)" value="<?=$tgl?>" required>
</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="id_pelangganfill" name="id_pelangganfill">
<input type="hidden" class="form-control" id="id_salesfill" name="id_salesfill">
<input type="hidden" class="form-control" id="id_corpfill" name="id_corpfill">
<input type="hidden" class="form-control" id="transaksi_fill" name="transaksi_fill">
<input type="hidden" class="form-control" id="awal_jtfill" name="awal_jtfill">
<input type="hidden" class="form-control" id="akhir_jtfill" name="akhir_jtfill">
<input type="hidden" class="form-control" id="awal_notafill" name="awal_notafill">
<input type="hidden" class="form-control" id="akhir_notafill" name="akhir_notafill">
<?php if ($hak>0) { ?>
<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 modal-lg" style="width:50%">
<div class="modal-content">
<header class="panel-heading">
<h4 class="panel-title"><b>Fitur Teknis</b></h4>
</header>
<div class="panel-body">
<div class="modal-wrapper">
<div class="modal-text">
<div class="form-group">
<h5>
<b style="color:DarkRed">Berikut ini adalah Daftar Menu yang dapat diakses sesuai dengan Hak Akses Anda.</b><br>
<br><b style="color:DarkGreen">AKSES PENUH/OPERATOR</b><br><b> Bisa melihat semua Data terkait</b><br>
</h5>
</div>
</div>
</div>
</div>
<footer class="panel-footer">
<div class="row">
<div class="col-md-12">
<button type="button" class="btn btn-default pull-right" data-dismiss="modal">Close</button>
</div>
</div>
</footer>
</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>
function cekTanggal(value, id) {
PNotify.removeAll();
var now = "<?=$tgl?>";
if (value=="") {
notify("date_empty");
if (id==1) {
document.getElementById("awal_jt").value = now;
} else if (id==2) {
document.getElementById("akhir_jt").value = now;
} else if (id==3) {
document.getElementById("awal_nota").value = now;
} else if (id==4) {
document.getElementById("akhir_nota").value = now;
}
}
}
function reloadData() {
location.reload();
}
function isiData() {
document.getElementById('id_pelangganfill').value = document.getElementById('id_pelanggan').value;
document.getElementById('id_salesfill').value = document.getElementById('id_sales').value;
document.getElementById('id_corpfill').value = document.getElementById('id_corp').value;
document.getElementById('transaksi_fill').value = document.getElementById('transaksi').value;
document.getElementById('awal_jtfill').value = document.getElementById('awal_jt').value;
document.getElementById('akhir_jtfill').value = document.getElementById('akhir_jt').value;
document.getElementById('awal_notafill').value = document.getElementById('awal_nota').value;
document.getElementById('akhir_notafill').value = document.getElementById('akhir_nota').value;
}
</script>
</body>
</html>