433 lines
17 KiB
PHP
433 lines
17 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;
|
|
}
|
|
|
|
.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">
|
|
|
|
<?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><b>Data Proyek | <b style="color:Yellow"><?=$kode_proyek?></b> | <b style="color:Chartreuse"><?=$nama_pelanggan?></b></b></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_Pengawasan_1" class="text-dark"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
|
</div>
|
|
<h2 class="panel-title"><b style="color:Coral">PROYEK | <b style="color:DarkSlateGray">[<?=$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:SlateBlue">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:SlateBlue">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:SlateBlue">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:SlateBlue">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:SlateBlue">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:SlateBlue">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="panel-group" id="accordion">
|
|
<div class="panel panel-accordion">
|
|
<header class="panel-heading">
|
|
<h2 class="panel-title">
|
|
<a onclick="setSubToggle(1)" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
|
|
<b class="f18" style="color:Green"><b style="color:Black">[1]</b> SO TERBIT | <u style="color:DarkRed"><?=$countSpr?></u> DATA</b>
|
|
</a>
|
|
</h2>
|
|
</header>
|
|
<div id="collapseOne" class="accordion-body collapse <?php if ($posisiToggle==1) { ?>in<?php } ?>">
|
|
<div class="panel-body">
|
|
<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>
|
|
<div class="panel panel-accordion">
|
|
<header class="panel-heading">
|
|
<h2 class="panel-title">
|
|
<a onclick="setSubToggle(2)" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
|
|
<b class="f18" style="color:Green"><b style="color:Black">[2]</b> BIAYA PROYEK | <u style="color:DarkRed"><?=$countBpry?></u> DATA</b>
|
|
</a>
|
|
</h2>
|
|
</header>
|
|
<div id="collapseTwo" class="accordion-body collapse <?php if ($posisiToggle==2) { ?>in<?php } ?>">
|
|
<div class="panel-body">
|
|
<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>
|
|
<div class="panel panel-accordion">
|
|
<header class="panel-heading">
|
|
<h2 class="panel-title">
|
|
<a onclick="setSubToggle(3)" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseThree">
|
|
<b class="f18" style="color:Green"><b style="color:Black">[3]</b> BIAYA BARANG SO | <u style="color:DarkRed"><?=$countBardo?></u> DATA</b>
|
|
</a>
|
|
</h2>
|
|
</header>
|
|
<div id="collapseThree" class="accordion-body collapse <?php if ($posisiToggle==3) { ?>in<?php } ?>">
|
|
<div class="panel-body">
|
|
<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>
|
|
<div class="panel panel-accordion">
|
|
<header class="panel-heading">
|
|
<h2 class="panel-title">
|
|
<a onclick="setSubToggle(4)" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseFour">
|
|
<b class="f18" style="color:Green"><b style="color:Black">[4]</b> BIAYA BARANG PROYEK | <u style="color:DarkRed"><?=$countDpr?></u> DATA</b>
|
|
</a>
|
|
</h2>
|
|
</header>
|
|
<div id="collapseFour" class="accordion-body collapse <?php if ($posisiToggle==4) { ?>in<?php } ?>">
|
|
<div class="panel-body">
|
|
<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; $datsn = "";
|
|
foreach ($dpr as $key) { ?>
|
|
<tr>
|
|
<?php foreach ($key['SNPR'] as $dat) {
|
|
$sb = $dat['NAMA_SNPR'];
|
|
$datsn .= "$sb, " ;
|
|
} ?>
|
|
<td class="center"><?= $no; ?></td>
|
|
<td><b style="color:FireBrick"><?= $key['KODE_BARANG']; ?></b><br>(<?= $key['NAMA_BARANG']; ?>)<br><?php if ($key['SNPR']!=NULL) { ?><b style="color:DarkViolet"><?= $datsn; ?></b><?php } ?></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++; $datsn = "";
|
|
}
|
|
} ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="panel panel-accordion">
|
|
<header class="panel-heading">
|
|
<h2 class="panel-title">
|
|
<a onclick="setSubToggle(5)" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseFive">
|
|
<b class="f18" style="color:Green"><b style="color:Black">[5]</b> BIAYA KASBANK | <u style="color:DarkRed"><?=$countDak?></u> DATA</b>
|
|
</a>
|
|
</h2>
|
|
</header>
|
|
<div id="collapseFive" class="accordion-body collapse <?php if ($posisiToggle==5) { ?>in<?php } ?>">
|
|
<div class="panel-body">
|
|
<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>
|
|
</div>
|
|
</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
|
|
} );
|
|
|
|
$('#table2').dataTable( {
|
|
"paging": false
|
|
} );
|
|
|
|
$('#table3').dataTable( {
|
|
"paging": false
|
|
} );
|
|
|
|
$('#table4').dataTable( {
|
|
"paging": false
|
|
} );
|
|
|
|
$('#table5').dataTable( {
|
|
"paging": false
|
|
} );
|
|
|
|
function setSubToggle(node) {
|
|
$.ajax({
|
|
url: "<?= base_url() ?>index.php/Menu/GE_Ubah_SetSubToggle",
|
|
type: "POST",
|
|
dataType: "json",
|
|
data: {
|
|
node : node,
|
|
menu : <?=$id_menu?>,
|
|
},
|
|
success: function(response) {
|
|
}
|
|
});
|
|
}
|
|
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|