494 lines
18 KiB
PHP
494 lines
18 KiB
PHP
<!doctype html>
|
|
<html class="fixed sidebar-left-collapsed">
|
|
|
|
<head>
|
|
|
|
<!-- Basic -->
|
|
<meta charset="UTF-8">
|
|
|
|
<title>MENU PROYEK</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-top-style: solid;
|
|
border-left-style: solid;
|
|
border-bottom-style: solid;
|
|
border-right-style: solid;
|
|
border-width: 5px;
|
|
border-color: khaki;
|
|
}
|
|
|
|
.solidpro {
|
|
border-top-style: solid;
|
|
border-left-style: solid;
|
|
border-bottom-style: solid;
|
|
border-right-style: solid;
|
|
border-width: 5px;
|
|
border-color: darkolivegreen;
|
|
}
|
|
|
|
div.f13 {
|
|
font-size: 13px;
|
|
}
|
|
|
|
div.f14 {
|
|
font-size: 14px;
|
|
}
|
|
|
|
div.f15 {
|
|
font-size: 15px;
|
|
}
|
|
</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">
|
|
|
|
<?php
|
|
$jabatan = $this->session->userdata('jabatan');
|
|
$level = $this->session->userdata('level');
|
|
$nama_panggilan = $this->session->userdata('nama_panggilan');
|
|
$id_karyawan = $this->session->userdata('id_karyawan');
|
|
$tgl_now = date('d/m/Y');
|
|
|
|
?>
|
|
|
|
<header class="page-header">
|
|
<h2><strong>Data Proyek | <b style="color:Yellow"><?=$kode_proyek?></b> | <b style="color:Chartreuse"><?=$nama_pelanggan?></b></strong></h2>
|
|
|
|
<div class="right-wrapper pull-right">
|
|
<ol class="breadcrumbs">
|
|
<li><span><strong style="color:Gold">Master Data </span></strong></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-warning">
|
|
<header class="panel-heading">
|
|
<div class="panel-actions">
|
|
<a href="<?php echo base_url('') ?>index.php/Menu/PR_Sub1_Manajemen_1" class="text-dark"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
|
</div>
|
|
<h2 class="panel-title"><b style="color:Chocolate">PROYEK | <b style="color:SlateBlue"><?=$po_proyek?></b></b></h2>
|
|
</header>
|
|
<div class="panel-body">
|
|
<div class="row">
|
|
<div class="form-group">
|
|
<div class="col-md-2 f14"><label><strong style="color:DarkViolet">Prediksi Nilai Proyek</strong></label></div>
|
|
<div class="col-md-2 f13 text-right">
|
|
<b style="color:DarkViolet">[<?=$nilai_proyek?>] <i class="fa fa-question-circle"></i></b>
|
|
</div>
|
|
<div class="col-md-2 f14"><label><strong style="color:DarkSlateGray">Biaya Barang SO</strong></label></div>
|
|
<div class="col-md-2 f13 text-right">
|
|
<b style="color:Red">[<?=$nilaiDoTotal?>] <i class="fa fa-minus-circle"></i></b>
|
|
</div>
|
|
<div class="col-md-2 f14"><label><strong style="color:DarkSlateGray">Biaya Kasbank</strong></label></div>
|
|
<div class="col-md-2 f13 text-right">
|
|
<b style="color:Red">[<?=$nilaiDakTotal?>] <i class="fa fa-minus-circle"></i></b>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-md-2 f14"><label><strong style="color:DarkSlateGray">SO Terbit</strong></label></div>
|
|
<div class="col-md-2 f13 text-right">
|
|
<b style="color:DarkGreen">[<?=$nilaiSoTotal?>] <i class="fa fa-plus-circle"></i></b>
|
|
</div>
|
|
<div class="col-md-2 f14"><label><strong style="color:DarkSlateGray">Biaya Barang Proyek</strong></label></div>
|
|
<div class="col-md-2 f13 text-right">
|
|
<b style="color:Red">[<?=$nilaiDprTotal?>] <i class="fa fa-minus-circle"></i></b>
|
|
</div>
|
|
<div class="col-md-2 f14"><label><strong style="color:DarkSlateGray">Biaya Proyek</strong></label></div>
|
|
<div class="col-md-2 f13 text-right">
|
|
<b style="color:Red">[<?=$nilaiBpryTotal?>] <i class="fa fa-minus-circle"></i></b>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-md-2 f14"><label><strong style="color:DarkSlateGray">Hasil GP</strong></label></div>
|
|
<div class="col-md-2 f15 text-right">
|
|
<b style="color:Blue"><u>[<?=$nilaiGp?>]</u> <i class="fa fa-check-circle"></i></b>
|
|
</div>
|
|
<div class="col-md-8 f14 solid">
|
|
<b style="color:Blue">Rumus Hasil GP = <b style="color:DarkSlateGray">[SO Terbit] <i class="fa fa-minus-circle" style="color:Red"></i> [Biaya Proyek] <i class="fa fa-minus-circle" style="color:Red"></i>
|
|
[Biaya Barang SO] <i class="fa fa-minus-circle" style="color:Red"></i> [Biaya Barang Proyek] <i class="fa fa-minus-circle" style="color:Red"></i>
|
|
[Biaya Kasbank]</b>
|
|
</b>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<div class="row solidpro">
|
|
<div class="col-md-12">
|
|
<div class="toggle" data-plugin-toggle>
|
|
<?php if ($statNode1==0) { ?>
|
|
<section class="toggle">
|
|
<?php } else if ($statNode1==1) { ?>
|
|
<section class="toggle active">
|
|
<?php } ?>
|
|
<label class="center" onclick="toggle1();"><b>SO TERBIT | <?=$countSpr?> SO</b> </label>
|
|
<div class="toggle-content">
|
|
<div class="panel-body">
|
|
<div class="row">
|
|
<table class="table table-bordered table-striped mb-none" id="table1">
|
|
<thead>
|
|
<th class="center default">No</th>
|
|
<th class="default">Kode</th>
|
|
<th class="default">Pelanggan</th>
|
|
<th class="default"><b style="color:Green">[1] Nota</b> | <b style="color:FireBrick">[2] Nilai</b> | <b style="color:Chocolate">[3] DPP</b> | <b style="color:DarkBlue">[4] Fee</b></th>
|
|
<th class="default">Subtotal (<b style="color:Chocolate">DPP</b>-<b style="color:DarkBlue">Fee</b>)</th>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
if (is_array($spr) || is_object($spr)) {
|
|
$no = 1;
|
|
foreach ($spr as $key) { ?>
|
|
<tr>
|
|
<td class="center"><?= $no; ?></td>
|
|
<td><b style="color:DarkViolet"><?= $key['KODE_SO']; ?></b><br><i>(<?= $key['TANGGAL']; ?>)</i></td>
|
|
<?php if ($key['TYPE_PELANGGAN']=="0") { ?>
|
|
<td><strong class="text-primary">Corporate</strong><br><?= $key['NAMA_PELANGGAN'] ?><br><i>(<?= $key['NAMA_KOTA'] ?>)</i></td>
|
|
<?php } else if ($key['TYPE_PELANGGAN']=="1") { ?>
|
|
<td><strong class="text-success">Dealer</strong><br><?= $key['NAMA_PELANGGAN'] ?><br><i>(<?= $key['NAMA_KOTA'] ?>)</i></td>
|
|
<?php } else if ($key['TYPE_PELANGGAN']=="2") { ?>
|
|
<td><strong style="color:DarkOrange">User</strong><br><?= $key['NAMA_PELANGGAN'] ?><br><i>(<?= $key['NAMA_KOTA'] ?>)</i></td>
|
|
<?php } ?>
|
|
<td><b style="color:DarkGreen">[1] <?= $key['INV_PENJUALAN']; ?></b><br><b style="color:FireBrick">[2] <?= $key['NILAI']; ?></b><br><b style="color:Chocolate">[3] <?= $key['DPP']; ?></b><br><b style="color:DarkBlue">[4] <?= $key['FEE']; ?></b></td>
|
|
<td><b style="color:Tomato"><?= $key['SISA']; ?></b></td>
|
|
</tr>
|
|
<?php $no++;
|
|
}
|
|
} ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<div class="toggle" data-plugin-toggle>
|
|
<?php if ($statNode2==0) { ?>
|
|
<section class="toggle">
|
|
<?php } else if ($statNode2==1) { ?>
|
|
<section class="toggle active">
|
|
<?php } ?>
|
|
<label class="center" onclick="toggle2();"><b>BIAYA PROYEK | <?=$countBpry?> TRANSAKSI</b> </label>
|
|
<div class="toggle-content">
|
|
<div class="panel-body">
|
|
<div class="row">
|
|
<table class="table table-bordered table-striped mb-none" id="table2">
|
|
<thead>
|
|
<th class="center default">No</th>
|
|
<th class="default">Keterangan</th>
|
|
<th class="text-right default">Nilai</th>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
if (is_array($bpry) || is_object($bpry)) {
|
|
$no = 1;
|
|
foreach ($bpry as $key) { ?>
|
|
<tr>
|
|
<td class="center"><?= $no; ?></td>
|
|
<td><b style="color:DarkViolet"><?= $key['NAMA_BPRY']; ?></b></td>
|
|
<td class="text-right"><b style="color:Tomato"><?= $key['NILAI']; ?></b></td>
|
|
</tr>
|
|
<?php $no++;
|
|
}
|
|
} ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<div class="toggle" data-plugin-toggle>
|
|
<?php if ($statNode3==0) { ?>
|
|
<section class="toggle">
|
|
<?php } else if ($statNode3==1) { ?>
|
|
<section class="toggle active">
|
|
<?php } ?>
|
|
<label class="center" onclick="toggle3();"><b>BIAYA BARANG SO | <?=$countBardo?> BARANG</b> </label>
|
|
<div class="toggle-content">
|
|
<div class="panel-body">
|
|
<div class="row">
|
|
<table class="table table-bordered table-striped mb-none" id="table3">
|
|
<thead>
|
|
<th class="center default">No</th>
|
|
<th class="default">Kode</th>
|
|
<th class="default">Barang</th>
|
|
<th class="center default">Kuantiti</th>
|
|
<th class="text-right default">Satuan</th>
|
|
<th class="text-right default">Subtotal</th>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
if (is_array($bardo) || is_object($bardo)) {
|
|
$no = 1;
|
|
foreach ($bardo as $key) { ?>
|
|
<tr>
|
|
<td class="center"><?= $no; ?></td>
|
|
<td><b style="color:DarkViolet"><?= $key['KODE']; ?></b><br><i>(<?= $key['TANGGAL']; ?>)</i></td>
|
|
<td><b style="color:FireBrick"><?= $key['KORANG']; ?></b><br>(<?= $key['NARANG']; ?>)</td>
|
|
<?php if ($key['TRANSAKSI']=="KELUAR") { ?>
|
|
<td class="center"><b style="color:Blue"><?= $key['QTY']; ?> <i class="fa fa-plus-circle"></i></b></td>
|
|
<?php } else if ($key['TRANSAKSI']=="MASUK") { ?>
|
|
<td class="center"><b style="color:Red"><?= $key['QTY']; ?> <i class="fa fa-minus-circle"></i></b></td>
|
|
<?php } ?>
|
|
<td class="text-right"><b style="color:DarkGreen"><?= $key['SATUAN']; ?></b></td>
|
|
<td class="text-right"><b style="color:Tomato"><?= $key['SUBTOT']; ?></b></td>
|
|
</tr>
|
|
<?php $no++;
|
|
}
|
|
} ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<div class="toggle" data-plugin-toggle>
|
|
<?php if ($statNode4==0) { ?>
|
|
<section class="toggle">
|
|
<?php } else if ($statNode4==1) { ?>
|
|
<section class="toggle active">
|
|
<?php } ?>
|
|
<label class="center" onclick="toggle4();"><b>BIAYA BARANG PROYEK | <?=$countDpr?> BARANG</b> </label>
|
|
<div class="toggle-content">
|
|
<div class="panel-body">
|
|
<div class="row">
|
|
<table class="table table-bordered table-striped mb-none" id="table4">
|
|
<thead>
|
|
<th class="center default">No</th>
|
|
<th class="default">Barang</th>
|
|
<th class="center default">Kuantiti</th>
|
|
<th class="text-right default">Satuan</th>
|
|
<th class="text-right default">Subtotal</th>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
if (is_array($dpr) || is_object($dpr)) {
|
|
$no = 1;
|
|
foreach ($dpr as $key) { ?>
|
|
<tr>
|
|
<td class="center"><?= $no; ?></td>
|
|
<td><b style="color:FireBrick"><?= $key['KODE_BARANG']; ?></b><br>(<?= $key['NAMA_BARANG']; ?>)</td>
|
|
<td class="center"><b style="color:Blue"><?= $key['SISA']; ?></b></td>
|
|
<td class="text-right"><b style="color:DarkGreen"><?= $key['SATUAN']; ?></b></td>
|
|
<td class="text-right"><b style="color:Tomato"><?= $key['SUBTOT']; ?></b></td>
|
|
</tr>
|
|
<?php $no++;
|
|
}
|
|
} ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<div class="toggle" data-plugin-toggle>
|
|
<?php if ($statNode5==0) { ?>
|
|
<section class="toggle">
|
|
<?php } else if ($statNode5==1) { ?>
|
|
<section class="toggle active">
|
|
<?php } ?>
|
|
<label class="center" onclick="toggle5();"><b>BIAYA KASBANK | <?=$countDak?> TRANSAKSI</b> </label>
|
|
<div class="toggle-content">
|
|
<div class="panel-body">
|
|
<div class="row">
|
|
<table class="table table-bordered table-striped mb-none" id="table5">
|
|
<thead>
|
|
<th class="center default">No</th>
|
|
<th class="default">Kode Bukti</th>
|
|
<th width="150px" class="default">Diinput Oleh</th>
|
|
<th class="default">Keterangan</th>
|
|
<th class="text-right default">Nilai</th>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
if (is_array($dak) || is_object($dak)) {
|
|
$no = 1;
|
|
foreach ($dak as $key) { ?>
|
|
<tr>
|
|
<td class="center"><?= $no; ?></td>
|
|
<td><b style="color:FireBrick"><?= $key['KODE_AKUNTANSI']; ?></b><br>(<?= $key['TANGGAL']; ?>)</td>
|
|
<td><b style="color:Blue"><?= $key['NAMA_PANGGILAN_KARYAWAN']; ?></b><br>(<?= $key['TIMESTAMP']; ?>)</td>
|
|
<td><b style="color:DarkSlateGray"><?= $key['KET_DAK']; ?></b></td>
|
|
<td class="text-right"><b style="color:Tomato"><?= $key['NILAI']; ?></b></td>
|
|
</tr>
|
|
<?php $no++;
|
|
}
|
|
} ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<!-- end: page -->
|
|
</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
|
|
} );
|
|
|
|
$('#table2').dataTable( {
|
|
"paging": false
|
|
} );
|
|
|
|
$('#table3').dataTable( {
|
|
"paging": false
|
|
} );
|
|
|
|
$('#table4').dataTable( {
|
|
"paging": false
|
|
} );
|
|
|
|
$('#table5').dataTable( {
|
|
"paging": false
|
|
} );
|
|
|
|
function toggle1() {
|
|
$.ajax({
|
|
url: "<?= base_url() ?>index.php/Menu/PR_Status_Sub1_D2",
|
|
type: "POST",
|
|
dataType: "json",
|
|
data: {
|
|
node : '1',
|
|
},
|
|
success: function(response) {
|
|
}
|
|
});
|
|
}
|
|
|
|
function toggle2() {
|
|
$.ajax({
|
|
url: "<?= base_url() ?>index.php/Menu/PR_Status_Sub1_D2",
|
|
type: "POST",
|
|
dataType: "json",
|
|
data: {
|
|
node : '2',
|
|
},
|
|
success: function(response) {
|
|
}
|
|
});
|
|
}
|
|
|
|
function toggle3() {
|
|
$.ajax({
|
|
url: "<?= base_url() ?>index.php/Menu/PR_Status_Sub1_D2",
|
|
type: "POST",
|
|
dataType: "json",
|
|
data: {
|
|
node : '3',
|
|
},
|
|
success: function(response) {
|
|
}
|
|
});
|
|
}
|
|
|
|
function toggle4() {
|
|
$.ajax({
|
|
url: "<?= base_url() ?>index.php/Menu/PR_Status_Sub1_D2",
|
|
type: "POST",
|
|
dataType: "json",
|
|
data: {
|
|
node : '4',
|
|
},
|
|
success: function(response) {
|
|
}
|
|
});
|
|
}
|
|
|
|
function toggle5() {
|
|
$.ajax({
|
|
url: "<?= base_url() ?>index.php/Menu/PR_Status_Sub1_D2",
|
|
type: "POST",
|
|
dataType: "json",
|
|
data: {
|
|
node : '5',
|
|
},
|
|
success: function(response) {
|
|
}
|
|
});
|
|
}
|
|
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|