copy dari repo om Irfan
This commit is contained in:
@@ -0,0 +1,201 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>DASHBOARD</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" />
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<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 style="color:Khaki">NILAI RETUR <?= date('Y')?> | <b style="color:White">[<?=$nama?>]</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 -->
|
||||
<?php
|
||||
$jabatan = $this->session->userdata('jabatan');
|
||||
?>
|
||||
|
||||
<section class="panel panel-featured panel-featured-warning">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php" class="text-dark"><b>Dashboard </b><i class="fa fa-home"></i></a>
|
||||
</div>
|
||||
<h2 style="color:DarkOrange" class="panel-title"><b>NILAI RETUR</b></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<?php if ($jabatan=="ADMINISTRATOR" OR $jabatan=="KADIV SALES") { ?>
|
||||
<div class="form-group">
|
||||
<h4><label class="col-md-1 control-label"><b style="color:SlateBlue">Sales</b></label></h4>
|
||||
<div class="col-md-3">
|
||||
<select data-plugin-selectTwo id="id_sales" onchange="lihatData();" class="form-control populate">
|
||||
<option value="1" selected>Semua Sales</option>
|
||||
<?php if (is_array($sales) || is_object($sales)) {
|
||||
foreach ($sales as $key) { ?>
|
||||
<?php if ($key['ID_KARYAWAN']==$id_sales) { ?>
|
||||
<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 }
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<input type="hidden" id="id_sales" value="<?=$id_sales?>">
|
||||
<?php } ?>
|
||||
<div class="form-group">
|
||||
<h4><label class="col-md-1 control-label"><b style="color:SlateBlue">Periode</b></label></h4>
|
||||
<div class="col-md-3">
|
||||
<select data-plugin-selectTwo id="id_pkpi" onchange="lihatData();" class="form-control populate">
|
||||
<option value="0" <?php if ($id_pkpi==0) { ?>selected<?php } ?>>Tahun ini</option>
|
||||
<?php if (is_array($pkpi) || is_object($pkpi)) {
|
||||
foreach ($pkpi as $key) { ?>
|
||||
<?php if ($key['ID_PKPI']==$id_pkpi) { ?>
|
||||
<option value="<?= $key['ID_PKPI'] ?>" selected><?= $key['NAMA_PKPI'] ?></option>
|
||||
<?php } else { ?>
|
||||
<option value="<?= $key['ID_PKPI'] ?>"><?= $key['NAMA_PKPI'] ?></option>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-12 text-right">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-default"><b style="color:Chocolate">TOTAL <?=$nilaiDak?></b></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<table class="table table-bordered table-striped mb-none" id="table1">
|
||||
<thead>
|
||||
<th class="center default">No</th>
|
||||
<th width="180px" sclass="default">Kode</th>
|
||||
<th class="default">Pelanggan</th>
|
||||
<th class="text-right default">Nilai Retur | PPN</th>
|
||||
<th class="default">Keterangan</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($dak) || is_object($dak)) {
|
||||
$no = 1;
|
||||
foreach ($dak as $key) { ?>
|
||||
<tr>
|
||||
<?php
|
||||
if ($key['GP_SO']==0) { $statgp = "<b>NonGP</b>"; } else if ($key['GP_SO']==1) { $statgp = "<b>GP</b>"; }
|
||||
?>
|
||||
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><b style="color:Tomato">(<?=$key['NAMA_KOP']?>)</b> <b style="color:Black"><?= $key['KODE_RJ']; ?></b><br><i>(<?= $key['TANGGAL']; ?> - <?=$statgp?>)</i><?php if ($key['PO_SO']!="") { ?><br><b style="color:Teal">PO : [<?= $key['PO_SO']; ?>]</b><?php } ?></td>
|
||||
<?php if ($key['TYPE_PELANGGAN']=="0") { ?>
|
||||
<td><b style="color:Blue">Corporate</b> : <b style="color:FireBrick">[<?=$key['NAMA_PANGGILAN_KARYAWAN']?>]</b><br><?= $key['NAMA_PELANGGAN'] ?><br>(<?= $key['NAMA_KOTA'] ?>)</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']=="1") { ?>
|
||||
<td><b style="color:Green">Dealer</b> : <b style="color:FireBrick">[<?=$key['NAMA_PANGGILAN_KARYAWAN']?>]</b><br><?= $key['NAMA_PELANGGAN'] ?><br>(<?= $key['NAMA_KOTA'] ?>)</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']=="2") { ?>
|
||||
<td><b style="color:DarkOrange">User</b> : <b style="color:FireBrick">[<?=$key['NAMA_PANGGILAN_KARYAWAN']?>]</b><br><?= $key['NAMA_PELANGGAN'] ?><br>(<?= $key['NAMA_KOTA'] ?>)</td>
|
||||
<?php } ?>
|
||||
<td class="text-right"><b style="color:Chocolate"><?= $key['KREDIT']; ?></b><br><b style="color:Brown"><?= round($key['PPN_SO']); ?>%</b></td>
|
||||
<td><b style="color:DarkSlateGray"><?= $key['KET_RJ']; ?></b></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?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>
|
||||
$('#table1').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
function lihatData() {
|
||||
var id_sales = document.getElementById("id_sales").value;
|
||||
var id_pkpi = document.getElementById("id_pkpi").value;
|
||||
window.location.href = ("http://200.1.1.6/apps/index.php/Menu/DA_Sub0_TotalRetur_1/"+id_sales+"/"+id_pkpi);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user