copy dari repo om Irfan
This commit is contained in:
@@ -0,0 +1,296 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>INFORMASI | KUANTITI</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="Porto Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="okler.net">
|
||||
<link rel="icon" type="image/png" href="<?php echo base_url('')?>assets/images/logoPcmBaru3.png" />
|
||||
|
||||
<!-- 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">
|
||||
<?php if (strpos($jabatan,"ADMIN")!==FALSE OR $username=="fridho" OR $username=="ricky" OR $username=="mahfut") { ?>
|
||||
<h2><strong>Data Barang</strong> | <i class="fa fa-search"></i> | <strong class="text-success">Posisi Stok</strong> | <strong class="text-primary">Daftar SN</strong> | <strong class="text-info">Jejak Kuantiti</strong>
|
||||
| <strong class="text-warning">Jejak Harga</strong></h2>
|
||||
<?php } else { ?>
|
||||
<h2><strong>Data Barang</strong> | <i class="fa fa-search"></i> | <strong class="text-success">Posisi Stok</strong> | <strong class="text-primary">Daftar SN</strong> | <strong class="text-info">Jejak Kuantiti</strong></h2>
|
||||
<?php } ?>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Barang</span></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-secondary">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<?php
|
||||
if ($status==0 AND $level==0) {
|
||||
$statusfilter = "Hanya PCM";
|
||||
} else if ($status==0 AND $level==1) {
|
||||
$statusfilter = "Hanya ITP";
|
||||
} else if ($status==2) {
|
||||
$statusfilter = "Lebih Dari 0";
|
||||
} else {
|
||||
$statusfilter= "Semua Data";
|
||||
}
|
||||
?>
|
||||
<h2 class="panel-title"><strong>DATA BARANG | Filter :</strong><strong class="text-dark"> <?=$statusfilter?></strong><br><strong class="text-quartenary">Note : [Auto Refresh dimatikan, Perbarui Halaman untuk Data Terbaru]</strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<?php if ($status == 0 AND $level == 0) { ?>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_PCM"><button type="button" class="btn btn-default text-dark"><strong>Perbarui Halaman <i class="fa fa-rotate-right"></i></strong></button></a><br></br>
|
||||
<?php } else if ($status == 0 AND $level == 1) { ?>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_ITP"><button type="button" class="btn btn-default text-dark"><strong>Perbarui Halaman <i class="fa fa-rotate-right"></i></strong></button></a><br></br>
|
||||
<?php } else if ($status == 1) { ?>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_Full"><button type="button" class="btn btn-default text-dark"><strong>Perbarui Halaman <i class="fa fa-rotate-right"></i></strong></button></a><br></br>
|
||||
<?php } else if ($status == 2) { ?>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_Not0"><button type="button" class="btn btn-default text-dark"><strong>Perbarui Halaman <i class="fa fa-rotate-right"></i></strong></button></a><br></br>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="col-sm-8 text-right">
|
||||
<div class="btn-group btn-group-justified">
|
||||
<?php if ($status == 0 AND $level == 0) { ?>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_PCM" class="btn btn-default" role="button"><strong class="text-danger">READY PCM <i class="fa fa-check"></i></strong><br><i>(Data Aktif)</i></a>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_ITP" class="btn btn-default" role="button"><strong class="text-tertiary">READY ITP </strong><br><i class="fa fa-search"></i></a>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_Not0" class="btn btn-default" role="button"><strong class="text-primary">LEBIH DARI 0 </strong><br><i class="fa fa-search"></i></a>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_Full" class="btn btn-default" role="button"><strong class="text-dark">SEMUA DATA </strong><br><i class="fa fa-search"></i></a>
|
||||
<?php } else if ($status == 0 AND $level == 1) { ?>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_PCM" class="btn btn-default" role="button"><strong class="text-danger">READY PCM </strong><br><i class="fa fa-search"></i></a>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_ITP" class="btn btn-default" role="button"><strong class="text-tertiary">READY ITP <i class="fa fa-check"></i></strong><br><i>(Data Aktif)</i></a>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_Not0" class="btn btn-default" role="button"><strong class="text-primary">LEBIH DARI 0 </strong><br><i class="fa fa-search"></i></a>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_Full" class="btn btn-default" role="button"><strong class="text-dark">SEMUA DATA </strong><br><i class="fa fa-search"></i></a>
|
||||
<?php } else if ($status == 2) { ?>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_PCM" class="btn btn-default" role="button"><strong class="text-danger">READY PCM </strong><br><i class="fa fa-search"></i></a>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_ITP" class="btn btn-default" role="button"><strong class="text-tertiary">READY ITP </strong><br><i class="fa fa-search"></i></a>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_Not0" class="btn btn-default" role="button"><strong class="text-primary">LEBIH DARI 0 <i class="fa fa-check"></i></strong><br><i>(Data Aktif)</i></a>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_Full" class="btn btn-default" role="button"><strong class="text-dark">SEMUA DATA </strong><br><i class="fa fa-search"></i></a>
|
||||
<?php } else if ($status == 1) { ?>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_PCM" class="btn btn-default" role="button"><strong class="text-danger">READY PCM </strong><br><i class="fa fa-search"></i></a>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_ITP" class="btn btn-default" role="button"><strong class="text-tertiary">READY ITP </strong><br><i class="fa fa-search"></i></a>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_Not0" class="btn btn-default" role="button"><strong class="text-primary">LEBIH DARI 0 </strong><br><i class="fa fa-search"></i></a>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataHistoriQty_All_A1_Full" class="btn btn-default" role="button"><strong class="text-dark">SEMUA DATA <i class="fa fa-check"></i></strong><br><i>(Data Aktif)</i></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center default">No</th>
|
||||
<th width="160px" class="default">Jenis</th>
|
||||
<th class="default">Barang</th>
|
||||
<?php if ($status!=0 OR $level==0) { ?>
|
||||
<th class="center text-danger">PC Master</th>
|
||||
<?php } ?>
|
||||
<?php if ($status!=0 OR $level==1) { ?>
|
||||
<th class="center text-tertiary">IT Point</th>
|
||||
<?php } ?>
|
||||
<?php if ($status == 0) { ?>
|
||||
<th class="center text-quartenary">Sales Order</th>
|
||||
<?php } else { ?>
|
||||
<th class="center text-quartenary">Semua SO</th>
|
||||
<?php } ?>
|
||||
<th class="center text-dark">Global</th>
|
||||
<th width="160px" class="center default">INFORMASI</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<?php if ($key['TYPE_JENIS']=="0") { $type = "NON-SN"; } else if ($key['TYPE_JENIS']=="1") { $type = "SN"; } ?>
|
||||
<td class="text-dark"><strong><?= $key['NAMA_JENIS']; ?></strong><br>(<?= $type; ?>)</td>
|
||||
<td><strong class="text-secondary"><?= $key['KODE_BARANG']; ?></strong><br>(<?= $key['NAMA_BARANG']; ?>)</td>
|
||||
<?php $pcmshadow = $key['PCM_KUANTITI']-$key['PROSESPCM']; ?>
|
||||
<?php $itpshadow = $key['ITP_KUANTITI']-$key['PROSESITP']; ?>
|
||||
|
||||
<?php if ($key['PROSESPCM']=="") { $propcm = 0; } else { $propcm = $key['PROSESPCM']; } ?>
|
||||
<?php if ($key['PROSESITP']=="") { $proitp = 0; } else { $proitp = $key['PROSESITP']; } ?>
|
||||
<?php if ($status==0 AND $level==0) { $proall = $propcm; } else if ($status==0 AND $level==1) { $proall = $proitp; } else { $proall = $propcm + $proitp; } ?>
|
||||
|
||||
<?php if ($status!=0 OR $level==0) { ?>
|
||||
<td class="center text-danger"><strong><?= $pcmshadow; ?></strong></td>
|
||||
<?php } ?>
|
||||
<?php if ($status!=0 OR $level==1) { ?>
|
||||
<td class="center text-tertiary"><strong><?= $itpshadow; ?></strong></td>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($key['PROSESPCM']=="" AND $key['PROSESITP']=="") { ?>
|
||||
<td class="center text-quartenary"><strong>0</strong></td>
|
||||
<?php } else { ?>
|
||||
<td class="center text-quartenary"><strong><?= $proall; ?></strong></td>
|
||||
<?php } ?>
|
||||
<?php if ($jabatan=="ADMINISTRATOR") { ?>
|
||||
<td class="center text-dark"><strong><?= $key['TOTAL']; ?> | <?= $key['GLOBAL_KUANTITI']; ?></strong></td>
|
||||
<?php } else { ?>
|
||||
<td class="center text-dark"><strong><?= $key['TOTAL']; ?></strong></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['TYPE_JENIS']=="1") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-success" onclick="openTabHistori4(<?php echo $key['BARANG_ID'];?>)" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataHistoriQty_All_A4/');
|
||||
echo $key['BARANG_ID'];?>'"><i class="fa fa-search"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-primary" onclick="openTabHistori3(<?php echo $key['BARANG_ID'];?>)" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataHistoriQty_All_A3/');
|
||||
echo $key['BARANG_ID'];?>'"><i class="fa fa-search"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="openTabHistori2(<?php echo $key['BARANG_ID'];?>)" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataHistoriQty_All_A2/');
|
||||
echo $key['BARANG_ID'];?>'"><i class="fa fa-search"></i></button>
|
||||
<?php if (strpos($jabatan,"ADMIN")!==FALSE OR $username=="fridho" OR $username=="ricky" OR $username=="mahfut") { ?>
|
||||
<button type="button" class="btn btn-xs btn-warning" onclick="openTabHistori5(<?php echo $key['BARANG_ID'];?>)" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataHistoriQty_All_A5/');
|
||||
echo $key['BARANG_ID'];?>'"><i class="fa fa-search"></i></button>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-success" onclick="openTabHistori4(<?php echo $key['BARANG_ID'];?>)" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataHistoriQty_All_A4/');
|
||||
echo $key['BARANG_ID'];?>'"><i class="fa fa-search"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="openTabHistori2(<?php echo $key['BARANG_ID'];?>)" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataHistoriQty_All_A2/');
|
||||
echo $key['BARANG_ID'];?>'"><i class="fa fa-search"></i></button>
|
||||
<?php if (strpos($jabatan,"ADMIN")!==FALSE OR $username=="fridho" OR $username=="ricky" OR $username=="mahfut") { ?>
|
||||
<button type="button" class="btn btn-xs btn-warning" onclick="openTabHistori5(<?php echo $key['BARANG_ID'];?>)" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataHistoriQty_All_A5/');
|
||||
echo $key['BARANG_ID'];?>'"><i class="fa fa-search"></i></button>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<?php } ?>
|
||||
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<?php $this->load->view('template/sidebar_right'); ?>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-multiselect/bootstrap-multiselect.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<!--<script src="<?php echo base_url('') ?>assets/javascripts/tables/detailsExample.js"></script>-->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<?php $this->load->view('template/notification'); ?>
|
||||
<script>
|
||||
|
||||
function openTabHistori2(id) {
|
||||
window.open('dataHistoriQty_All_A2/'+id, '_blank');
|
||||
}
|
||||
|
||||
function openTabHistori3(id) {
|
||||
window.open('dataHistoriQty_All_A3/'+id, '_blank');
|
||||
}
|
||||
|
||||
function openTabHistori4(id) {
|
||||
window.open('dataHistoriQty_All_A4/'+id, '_blank');
|
||||
}
|
||||
|
||||
function openTabHistori5(id) {
|
||||
window.open('dataHistoriQty_All_A5/'+id, '_blank');
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,334 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
||||
|
||||
<title>INFORMASI | KOMISI BERJALAN</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="Porto Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="okler.net">
|
||||
<link rel="icon" type="image/png" href="<?php echo base_url('')?>assets/images/logoPcmBaru3.png" />
|
||||
|
||||
<!-- 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><strong>(Step 1) | </strong>Komisi Berjalan</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Komisi Berjalan</span></li>
|
||||
</ol>
|
||||
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- start: page -->
|
||||
<h1 class="panel-title text-center text-dark"><strong>PT. TRIPERWIRA MULTI PAMENANG<br>KOMISI BERJALAN<br><?=$tanggal_sekarang?><br></strong></h1><br>
|
||||
|
||||
<div class="col-md-12">
|
||||
<section class="panel panel-featured panel-featured-primary">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<h2 class="panel-title"><strong>NOTA TERBAYAR</strong></h2>
|
||||
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="btn-group">
|
||||
<?php $totalKomisi = number_format($sumKomisi,2); $totalGp = number_format($sumGp,2); ?>
|
||||
<button type="button" class="btn btn-default text-success"><strong>TOTAL KOMISI</strong><br><strong class="text-secondary">Rp <?=$totalKomisi?></strong></button>
|
||||
<button type="button" class="btn btn-default text-tertiary"><strong>TOTAL GP</strong><br><strong class="text-secondary">Rp <?=$totalGp?></strong></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
<th class="center default">No</th>
|
||||
<th class="default">Nota</th>
|
||||
<th class="default">Sales Order</th>
|
||||
<th class="default">Tanggal<br>Nota</th>
|
||||
<th class="default">Lunas</th>
|
||||
<th class="text-right default">Nilai Pokok (DPP)</th>
|
||||
<th class="text-right default">Biaya Fee</th>
|
||||
<th class="default">Status Komisi</th>
|
||||
<th class="text-right default">Komisi/GP</th>
|
||||
<th class="center default">Detail Perhitungan</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($komisiRevenue) || is_object($komisiRevenue)) {
|
||||
$no = 1;
|
||||
foreach ($komisiRevenue as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['INV_PENJUALAN']; ?></td>
|
||||
<td><strong class="text-quartenary"><?= $key['KODE_SO']; ?></strong></td>
|
||||
<td><?= $key['TANGGAL']; ?></td>
|
||||
<?php if (strpos($key['KODEBUKTI'],"RJ") === FALSE) { ?>
|
||||
<td><?= $key['TGLLUNAS']; ?></td>
|
||||
<?php } else { ?>
|
||||
<td><strong class="text-warning">RETUR</strong></td>
|
||||
<?php } ?>
|
||||
<td class="text-right text-secondary"><strong><?= $key['DPP']; ?></strong></td>
|
||||
<td class="text-right text-quartenary"><strong><?= $key['FEE']; ?></strong></td>
|
||||
<?php if ($key['APPROVE']=="1" AND strpos($key['KODEBUKTI'],"RJ") === FALSE) { ?>
|
||||
<td class="text-primary"><strong>Approve <i class="fa fa-check"></i></strong></td>
|
||||
<?php } else { ?>
|
||||
<td class="text-danger"><strong>Not<br>Approve <i class="fa fa-times"></i></strong></td>
|
||||
<?php } ?>
|
||||
<?php $komisi = number_format($key['KOMISI'],2); $gp = number_format($key['GP'],2); ?>
|
||||
<?php if ($key['GP_SO']=="0") { ?>
|
||||
<?php if ($key['APPROVE']=="1" AND strpos($key['KODEBUKTI'],"RJ") === FALSE) { ?>
|
||||
<td class="text-right text-success"><strong><?= $komisi;?></strong><br>Komisi</td>
|
||||
<?php } else { ?>
|
||||
<td class="text-right">0.00</td>
|
||||
<?php } ?>
|
||||
<?php } else if ($key['GP_SO']=="1") { ?>
|
||||
<?php if ($key['APPROVE']=="1" AND strpos($key['KODEBUKTI'],"RJ") === FALSE) { ?>
|
||||
<td class="text-right text-tertiary"><strong><?= $gp;?></strong><br>GP</td>
|
||||
<?php } else { ?>
|
||||
<td class="text-right">0.00</td>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<td class="actions center">
|
||||
<?php if ($key['GP_SO']=="0" AND $key['APPROVE']=="1" AND strpos($key['KODEBUKTI'],"RJ") === FALSE) { ?>
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataKomisiBerjalan_Sales_A2_Komisi/');
|
||||
echo $key['ID_PENJUALAN'];?>'"><i class="fa fa-search"></i></button>
|
||||
<?php } else if ($key['GP_SO']=="1" AND $key['APPROVE']=="1" AND strpos($key['KODEBUKTI'],"RJ") === FALSE) { ?>
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataKomisiBerjalan_Sales_A2_Gp/');
|
||||
echo $key['ID_PENJUALAN'];?>'"><i class="fa fa-search"></i></button>
|
||||
<?php } else { ?>
|
||||
<button disabled type="button" class="btn btn-xs btn-default"><i class="fa fa-times"></i></button>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
|
||||
<?php $this->load->view('template/sidebar_right'); ?>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-multiselect/bootstrap-multiselect.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<?php $this->load->view('template/notification'); ?>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('success')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('success'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('failed')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data gagal <?= $this->session->flashdata('failed'); ?>, hubungi Administrator',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('latest')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Menu tidak valid, silahkan refresh Browser.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_lock')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('data_lock'); ?>. Kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_lock_all')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('data_lock'); ?> semua. Kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('not_zero_negative')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai tidak valid, silahkan Check kembali.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('date_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Tanggal melebih hari ini, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('barang_used')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Kode Barang sudah terpakai, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_used')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data sudah terisi, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_change')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data sudah terkunci, hubungi Div. Keuangan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('not_valid')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data utama berubah, kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('harga_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Harga Stock ada yang belum terisi, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
$('#datatable-default').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,404 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
||||
|
||||
<title>INFORMASI | KOMISI BERJALAN</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="Porto Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="okler.net">
|
||||
<link rel="icon" type="image/png" href="<?php echo base_url('')?>assets/images/logoPcmBaru3.png" />
|
||||
|
||||
<!-- 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">
|
||||
<?php if ($gp_so=="0") { ?>
|
||||
<h2><strong>(Step 2) | </strong>Detail Komisi | <strong class="text-warning"><?=$nama_pelanggan?> (<?=$nama_kota?>)</strong> | <strong class="text-info"><?=$inv_penjualan?></strong></h2>
|
||||
<?php } else if ($gp_so=="1") { ?>
|
||||
<h2><strong>(Step 2) | </strong>Detail GP | <strong class="text-warning"><?=$nama_pelanggan?> (<?=$nama_kota?>)</strong> | <strong class="text-info"><?=$inv_penjualan?></strong></h2>
|
||||
<?php } ?>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>
|
||||
<?php if ($gp_so=="0") { ?>
|
||||
Detail Komisi
|
||||
<?php } else if ($gp_so=="1") { ?>
|
||||
Detail GP
|
||||
<?php } ?>
|
||||
</span></li>
|
||||
</ol>
|
||||
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- start: page -->
|
||||
<?php if ($gp_so=="0") { ?>
|
||||
<h1 class="panel-title text-center text-dark"><strong>DETAIL PERHITUNGAN KOMISI</strong><br><strong class="text-quartenary"><?=$kode_so?><br></strong></h1><br>
|
||||
<?php } else if ($gp_so=="1") { $totalGp = number_format($sumGp,2); ?>
|
||||
<h1 class="panel-title text-center text-dark"><strong>DETAIL PERHITUNGAN GP</strong><br><strong class="text-quartenary"><?=$kode_so?></strong><br><strong class="text-success">Rp <?=$totalGp?></strong></h1><br>
|
||||
<?php } ?>
|
||||
<?php if ($gp_so==0) { ?>
|
||||
<div class="col-md-12">
|
||||
<?php } else if ($gp_so==1) { ?>
|
||||
<div class="col-md-6">
|
||||
<?php } ?>
|
||||
<section class="panel panel-featured panel-featured-quartenary">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataKomisiBerjalan_Sales_A1"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<?php if ($gp_so==0) { ?>
|
||||
<h2 class="panel-title"><strong>LIST DPP</strong></h2>
|
||||
<?php } else if ($gp_so==1) { ?>
|
||||
<h2 class="panel-title"><strong>HPP BARANG</strong></h2>
|
||||
<?php } ?>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<div class="btn-group">
|
||||
<?php $totalKomisi = number_format($sumKomisi,2); ?>
|
||||
<?php if ($gp_so=="0") { ?>
|
||||
<button type="button" class="btn btn-default text-secondary"><strong>KOMISI</strong><br><strong class="text-success">Rp <?=$totalKomisi?></strong></button>
|
||||
<?php } else if ($gp_so=="1") { $totalHpp = number_format($sumHpp,2); $totalNota = number_format($nilai_so,2); ?>
|
||||
<button type="button" class="btn btn-default text-dark"><strong>NILAI NOTA</strong><br><strong class="text-primary">Rp <?=$totalNota?></strong></button>
|
||||
<button type="button" class="btn btn-default text-dark"><strong>HPP BARANG</strong><br><strong class="text-danger">Rp <?=$totalHpp?></strong></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<table class="table table-bordered table-striped mb-none" id="table1">
|
||||
<thead>
|
||||
<?php if ($gp_so==0) { ?>
|
||||
<th class="center default">No</th>
|
||||
<th class="default">Barang</th>
|
||||
<th class="default">Kuantiti</th>
|
||||
<th class="text-right default">Satuan</th>
|
||||
<th class="text-right default">Subtotal</th>
|
||||
<th class="text-right default">Biaya Fee</th>
|
||||
<th class="text-right default">Setelah Potong</th>
|
||||
<th class="text-right default">Rate Komisi</th>
|
||||
<th class="text-right default">Nilai Komisi</th>
|
||||
<?php } else if ($gp_so==1) { ?>
|
||||
<th class="center default">No</th>
|
||||
<th class="default">Barang</th>
|
||||
<th class="default">Kuantiti</th>
|
||||
<th class="default">Harga Avg</th>
|
||||
<th class="default">Subtotal</th>
|
||||
<?php } ?>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($datDo) || is_object($datDo)) {
|
||||
$no = 1;
|
||||
$sisaFee = $fee_so;
|
||||
foreach ($datDo as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<?php if ($gp_so==0) { ?>
|
||||
<td><strong class="text-secondary"><?= $key['KODE_BARANG']; ?></strong><br>(<?= $key['NAMA_BARANG']; ?>)</td>
|
||||
<td><?= $key['QTY_DO']; ?></td>
|
||||
<td class="text-right"><?= $key['HARGADO']; ?></td>
|
||||
<td class="text-right text-primary"><strong><?= $key['DPP'] ; ?></strong></td>
|
||||
<?php if ($sisaFee==$fee_so) { ?>
|
||||
<td class="text-right text-danger"><strong><?= $key['FEE']; ?></strong></td>
|
||||
<?php } else if ($sisaFee==0) { $sisaNewFee = number_format($sisaFee,2); ?>
|
||||
<td class="text-right text-danger"><strong><?= $sisaNewFee; ?></strong></td>
|
||||
<?php } else { $sisaNewFee = number_format($sisaFee,2); ?>
|
||||
<td class="text-right text-danger"><strong><?= $sisaNewFee; ?></strong></td>
|
||||
<?php } ?>
|
||||
<?php $setelahPotong = ($key['HARGA_DO']*$key['QTY_DO'])-$sisaFee; $setelahPotong = number_format($setelahPotong,2);?>
|
||||
<td class="text-right text-quartenary"><strong><?= $setelahPotong; ?></strong></td>
|
||||
<td class="text-right text-dark"><strong><?= $key['KOMISI_DO']; ?> %</strong></td>
|
||||
<?php $subtotal = ($key['KOMISI_DO']/100)*(($key['QTY_DO']*$key['HARGA_DO'])-$sisaFee) ; $subtotal = number_format($subtotal,2); ?>
|
||||
<td class="text-success text-right"><strong><?= $subtotal; ?></strong></td>
|
||||
<?php if ($sisaFee>0) { $sisaFee = $sisaFee-($key['QTY_DO']*$key['HARGA_DO']); if ($sisaFee<0) { $sisaFee = 0; } } else { $sisaFee = 0; } ?>
|
||||
<?php } else if ($gp_so==1) { ?>
|
||||
<td><strong class="text-quartenary"><?= $key['KODE']; ?></strong></td>
|
||||
<td><?= $key['QTY']; ?></td>
|
||||
<?php $hargaavg = number_format($key['HARGA'],2); $total = $key['QTY']*$key['HARGA']; $total = number_format($total,2); ?>
|
||||
<td class="text-right"><?= $hargaavg; ?></td>
|
||||
<td class="text-right text-secondary"><strong><?= $total; ?></strong></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<?php if ($gp_so=="1") { ?>
|
||||
<div class="col-md-6">
|
||||
<section class="panel panel-featured panel-featured-secondary">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataKomisiBerjalan_Sales_A1"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<h2 class="panel-title"><strong>BIAYA PROYEK</strong></h2>
|
||||
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-left">
|
||||
<div class="btn-group">
|
||||
<?php $totalHpr = number_format($sumHpr,2); $totalFee = number_format($fee_so,2); ?>
|
||||
<button type="button" class="btn btn-default text-dark"><strong>BIAYA PROYEK</strong><br><strong class="text-danger">Rp <?=$totalHpr?></strong></button>
|
||||
<button type="button" class="btn btn-default text-dark"><strong>BIAYA FEE</strong><br><strong class="text-danger">Rp <?=$totalFee?></strong></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<table class="table table-bordered table-striped mb-none" id="table2">
|
||||
<thead>
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="text-right dark">Biaya</th>
|
||||
<th class="dark">Keterangan</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($datHpr) || is_object($datHpr)) {
|
||||
$no = 1;
|
||||
foreach ($datHpr as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['TANGGAL']; ?></td>
|
||||
<td class="text-right text-secondary"><strong><?= $key['HARGA']; ?></strong></td>
|
||||
<td><?= $key['KET_DKB']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
|
||||
<?php $this->load->view('template/sidebar_right'); ?>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-multiselect/bootstrap-multiselect.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<?php $this->load->view('template/notification'); ?>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('success')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('success'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('failed')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data gagal <?= $this->session->flashdata('failed'); ?>, hubungi Administrator',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('latest')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Menu tidak valid, silahkan refresh Browser.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_lock')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('data_lock'); ?>. Kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_lock_all')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('data_lock'); ?> semua. Kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('not_zero_negative')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai tidak valid, silahkan Check kembali.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('date_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Tanggal melebih hari ini, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('barang_used')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Kode Barang sudah terpakai, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_used')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data sudah terisi, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_change')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data sudah terkunci, hubungi Div. Keuangan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('not_valid')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data utama berubah, kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('harga_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Harga Stock ada yang belum terisi, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
$('#table1').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
$('#table2').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,559 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>INFORMASI | KUISIONER</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="Porto Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="okler.net">
|
||||
<link rel="icon" type="image/png" href="<?php echo base_url('')?>assets/images/logoPcmBaru3.png" />
|
||||
|
||||
<!-- 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><strong>Kuisioner | </strong><strong class="text-warning">(<?=$nama_panggilan_karyawan?>)</strong></h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Kuisioner</span></li>
|
||||
</ol>
|
||||
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- start: page -->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<section class="panel panel-featured panel-featured-primary">
|
||||
<header class="panel-heading">
|
||||
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<h2 class="panel-title"><strong>KUISIONER</strong><strong class="text-dark"> (<?=$title?>)</strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<?=form_open('ManageInformasi/dataKuisioner_All_A1');?>
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="kondisi" value="ada">
|
||||
<div class="col-md-8">
|
||||
<select data-plugin-selectTwo name="id_karyawan" id="ID_KARYAWAN" class="form-control populate">
|
||||
<option value="" selected>Pilih Nama Karyawan</option>
|
||||
<?php if (is_array($karyawan) || is_object($karyawan)) {
|
||||
foreach ($karyawan as $key) { ?>
|
||||
<option value="<?= $key['ID_KARYAWAN'] ?>" ><?= $key['NAMA_PANGGILAN_KARYAWAN'] ?></option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<button type="submit" class="btn btn-default"><strong>Pilih Karyawan <i class="fa fa-search"></i></strong></button>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataKuisioner_All_A1"><button type="button" class="btn btn-info text-default"><strong>RESET VIEW <i class="fa fa-rotate-left"></i></strong></button></a><br></br>
|
||||
</div>
|
||||
<?=form_close();?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<section class="panel panel-info">
|
||||
<header class="panel-heading">
|
||||
|
||||
<h2 class="panel-title text-center"><strong>1. Disiplin yang Bagus dalam Waktu dan Pekerjaan.</strong></h2>
|
||||
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none">
|
||||
<thead>
|
||||
|
||||
<th class="center default">Kurang</th>
|
||||
<th class="center default">Sedang</th>
|
||||
<th class="center default">Baik</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="center text-danger"><strong><?=$input[0]['TOTAL']?></strong></td>
|
||||
<td class="center text-primary"><strong><?=$input[1]['TOTAL']?></strong></td>
|
||||
<td class="center text-success"><strong><?=$input[2]['TOTAL']-1?></strong></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<section class="panel panel-success">
|
||||
<header class="panel-heading">
|
||||
|
||||
<h2 class="panel-title text-center"><strong>2. Komunikasi yang Baik dengan sesama Karyawan.</strong></h2>
|
||||
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none">
|
||||
<thead>
|
||||
|
||||
<th class="center default">Kurang</th>
|
||||
<th class="center default">Sedang</th>
|
||||
<th class="center default">Baik</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="center text-danger"><strong><?=$input[3]['TOTAL']?></strong></td>
|
||||
<td class="center text-primary"><strong><?=$input[4]['TOTAL']?></strong></td>
|
||||
<td class="center text-success"><strong><?=$input[5]['TOTAL']?></strong></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<section class="panel panel-secondary">
|
||||
<header class="panel-heading">
|
||||
|
||||
<h2 class="panel-title text-center"><strong>3. Berpotensi dalam Pengembangan Diri & Perusahaan.</strong></h2>
|
||||
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none">
|
||||
<thead>
|
||||
|
||||
<th class="center default">Kurang</th>
|
||||
<th class="center default">Sedang</th>
|
||||
<th class="center default">Baik</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="center text-danger"><strong><?=$input[6]['TOTAL']?></strong></td>
|
||||
<td class="center text-primary"><strong><?=$input[7]['TOTAL']?></strong></td>
|
||||
<td class="center text-success"><strong><?=$input[8]['TOTAL']?></strong></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<section class="panel panel-warning">
|
||||
<header class="panel-heading">
|
||||
|
||||
<h2 class="panel-title text-center"><strong>4. Penyelesaian dalam Pekerjaan dan Tugas yang diberikan.</strong></h2>
|
||||
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none">
|
||||
<thead>
|
||||
|
||||
<th class="center default">Kurang</th>
|
||||
<th class="center default">Sedang</th>
|
||||
<th class="center default">Baik</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="center text-danger"><strong><?=$input[9]['TOTAL']?></strong></td>
|
||||
<td class="center text-primary"><strong><?=$input[10]['TOTAL']?></strong></td>
|
||||
<td class="center text-success"><strong><?=$input[11]['TOTAL']?></strong></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<section class="panel panel-tertiary">
|
||||
<header class="panel-heading">
|
||||
|
||||
<h2 class="panel-title text-center"><strong>5. Bertanggung Jawab dan dapat dipercaya.</strong></h2>
|
||||
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none">
|
||||
<thead>
|
||||
|
||||
<th class="center default">Kurang</th>
|
||||
<th class="center default">Sedang</th>
|
||||
<th class="center default">Baik</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="center text-danger"><strong><?=$input[12]['TOTAL']?></strong></td>
|
||||
<td class="center text-primary"><strong><?=$input[13]['TOTAL']?></strong></td>
|
||||
<td class="center text-success"><strong><?=$input[14]['TOTAL']?></strong></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<section class="panel panel-quartenary">
|
||||
<header class="panel-heading">
|
||||
|
||||
<h2 class="panel-title text-center"><strong>6. Penampilan Kerja yang Baik & Sesuai.</strong></h2>
|
||||
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none">
|
||||
<thead>
|
||||
|
||||
<th class="center default">Kurang</th>
|
||||
<th class="center default">Sedang</th>
|
||||
<th class="center default">Baik</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="center text-danger"><strong><?=$input[15]['TOTAL']?></strong></td>
|
||||
<td class="center text-primary"><strong><?=$input[16]['TOTAL']?></strong></td>
|
||||
<td class="center text-success"><strong><?=$input[17]['TOTAL']-1?></strong></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<?php $this->load->view('template/sidebar_right'); ?>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-multiselect/bootstrap-multiselect.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<?php $this->load->view('template/notification'); ?>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('success')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('success'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('failed')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data gagal <?= $this->session->flashdata('failed'); ?>, hubungi Administrator',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('latest')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Menu tidak valid, silahkan refresh Browser.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_lock')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('data_lock'); ?>. Kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_lock_all')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('data_lock'); ?> semua. Kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('not_zero_negative')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai tidak valid, silahkan Check kembali.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('not_valid')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data utama berubah, kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_used')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data terpakai, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_used_pka')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data terpakai Piutang Karyawan, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_used_hpa')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data terpakai Kasbank Hutang Pajak, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('date_locked')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data sudah berbeda Bulan, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('fee_pda_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai Fee melebihi sisa Piutang, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('inventaris_null_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai Inventaris kosong, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('inventaris_penyusutan_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai Penyusutan melebihi Nilai Inventaris, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('kendaraan_null_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai Kendaraan kosong, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('kendaraan_penyusutan_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai Penyusutan melebihi Nilai Kendaraan, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('ruko_penyusutan_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai Penyusutan melebihi Nilai Ruko, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('ruko_null_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai Ruko Mangga Dua kosong, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('dpj_pelanggan_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data Pelanggan DP Penjualan tidak sesuai, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('dpj_nilai_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Sisa Piutang tidak sesuai dengan Nilai DP, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('dpb_supplier_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data Supplier DP Pembelian tidak sesuai, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('dpb_nilai_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Sisa Hutang tidak sesuai dengan Nilai DP, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
function DisableButton(b) {
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,378 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
||||
|
||||
<title>PROSES | SERVICE</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="Porto Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="okler.net">
|
||||
<link rel="icon" type="image/png" href="<?php echo base_url('')?>assets/images/logoPcmBaru3.png" />
|
||||
|
||||
<!-- 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><strong>Data Service</strong></h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php/MenuService">
|
||||
<i class="fa fa-medkit"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Service</span></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/MenuService"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<?php if ($status == 0) { ?>
|
||||
<h2 class="panel-title"><strong>DATA SERVICE | <a data-toggle="modal" data-target="#modal-login">Klik untuk Masuk Mode Admin</a> </strong></h2>
|
||||
<?php } else if ($status == 1) { ?>
|
||||
<h2 class="panel-title"><strong>DATA SERVICE (Mode Admin) | <a href="<?php echo base_url('') ?>index.php/ManageService/dataCetak_Service_A1">Klik untuk Masuk Mode Awal</a></strong></h2>
|
||||
<?php } ?>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
<?php if ($status == 0) { ?>
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Pelanggan</th>
|
||||
<th class="dark">Model</th>
|
||||
<th class="dark">SN/ST</th>
|
||||
<th class="dark">Keluhan</th>
|
||||
<th class="dark">Keterangan</th>
|
||||
<th class="center dark">PILIHAN</th>
|
||||
<?php } else if ($status == 1) { ?>
|
||||
<th class="center default">No</th>
|
||||
<th class="default">Kode</th>
|
||||
<th class="default">Tanggal</th>
|
||||
<th class="default">Pelanggan</th>
|
||||
<th class="default">Model</th>
|
||||
<th class="default">SN/ST</th>
|
||||
<th class="default">Keluhan</th>
|
||||
<th class="default">Keterangan</th>
|
||||
<th class="center default">PILIHAN</th>
|
||||
<?php } ?>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($service) || is_object($service)) {
|
||||
$no = 1;
|
||||
foreach ($service as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_SERVICE']; ?></td>
|
||||
<td><?= $key['TANGGAL']; ?></td>
|
||||
<?php if ($key['TYPE_PELANGGAN']=="0") { ?>
|
||||
<td>Corporate : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']=="1") { ?>
|
||||
<td>Dealer : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']=="2") { ?>
|
||||
<td>User : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } ?>
|
||||
<td><?= $key['NAMA_BRGSV']; ?></td>
|
||||
<td><?= $key['NAMA_SNS']; ?></td>
|
||||
<td><?= $key['KEL_SNS']; ?></td>
|
||||
<td><?= $key['KET_SNS']; ?></td>
|
||||
<?php if ($key['STATUS_CD']==NULL) { ?>
|
||||
<td class="actions center">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageService/print_all/<?= $key['ID_CD'] ?>" target="_blank" class="btn btn-default ml-sm" onclick="testReload();"><i class="fa fa-print"></i> <strong><br>Cetak</strong></a>
|
||||
</td>
|
||||
<?php } else if ($key['STATUS_CD']=="0") { ?>
|
||||
<td class="actions center">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageService/print_admin/<?= $key['ID_CD'] ?>" target="_blank" class="btn btn-default ml-sm" onclick="testReload();"><i class="fa fa-print"></i> <strong><br>Admin</strong></a>
|
||||
</td>
|
||||
<?php } else if ($key['STATUS_CD']=="1") { ?>
|
||||
<td class="actions center">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageService/print_admin/<?= $key['ID_CD'] ?>" target="_blank" class="btn btn-default ml-sm" onclick="testReload();"><i class="fa fa-superscript text-danger"></i> <strong class="text-danger"><br>Admin</strong></a>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah Data Service-->
|
||||
<div id="modal-login" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageService/loginservice_SvA1', array('id' => 'formservice'), array('method' => 'loginservice_SvA1')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><strong>Halaman Login</strong></h2>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-3">
|
||||
<label><strong>Username </strong><span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<input type="text" name="username" id="USERNAME" class="form-control" placeholder="Username" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-3">
|
||||
<label><strong>Password </strong><span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<input type="password" name="password" id="PASSWORD" class="form-control" placeholder="Password">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-primary"><strong>Login</strong> <i class="fa fa-sign-in"></i></a></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('template/sidebar_right'); ?>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-multiselect/bootstrap-multiselect.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<?php $this->load->view('template/notification'); ?>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('success')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('success'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('failed')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data gagal <?= $this->session->flashdata('failed'); ?>, hubungi Administrator',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('latest')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Menu tidak valid, silahkan refresh Browser.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_lock')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('data_lock'); ?>. Kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('not_zero_negative')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai tidak valid, silahkan Check kembali.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('not_valid')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data utama berubah, kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_used')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data terpakai, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_sns')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Ada SN yang belum di check Service, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('print_mode')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Silahkan Cetak Nota, hanya bisa sekali Tampilkan Menu Print.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('print_already')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nota sudah print, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('username_pass_success')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Anda berhasil <?= $this->session->flashdata('username_pass_success'); ?>. Masuk Mode Admin.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('username_pass_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Username Anda tidak berhak masuk Mode Admin, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
function myFunction() {
|
||||
document.getElementById("demo").style.color = "red";
|
||||
}
|
||||
|
||||
function testReload(){
|
||||
setTimeout(function(){
|
||||
location.reload();
|
||||
},1000);
|
||||
};
|
||||
|
||||
function DisableButton(b) {
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,707 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
||||
|
||||
<title>PROSES | SERVICE</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="Porto Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="okler.net">
|
||||
<link rel="icon" type="image/png" href="<?php echo base_url('')?>assets/images/logoPcmBaru3.png" />
|
||||
|
||||
<!-- 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><strong>Step 2</strong> | Data Histori</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php/MenuService">
|
||||
<i class="fa fa-medkit"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Histori</span></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">
|
||||
<?php if ($status=="0") { ?>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageService/dataCheck_Service_A1/"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
<?php } else if ($status=="1") { ?>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageService/dataCheck_Service_A1_Admin/"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<h2 class="panel-title"><strong>DATA HISTORI | <?=$kode_service?> (<?=$nama_sns?>)</strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<?php if ($status=="0") { ?>
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah"><strong>Tambah Data</strong> <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
<?php } else if ($status=="1") { ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
<?php if ($status=="0") { ?>
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Karyawan</th>
|
||||
<th class="dark">Keterangan</th>
|
||||
<th class="dark">Status</th>
|
||||
<th class="center dark">PILIHAN</th>
|
||||
<?php } else if ($status=="1") { ?>
|
||||
<th class="center default">No</th>
|
||||
<th class="default">Tanggal</th>
|
||||
<th class="default">Karyawan</th>
|
||||
<th class="default">Keterangan</th>
|
||||
<th class="default">Status</th>
|
||||
<?php } ?>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($service) || is_object($service)) {
|
||||
$no = 1;
|
||||
foreach ($service as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['TANGGAL']; ?></td>
|
||||
<td><?= $key['NAMA_PANGGILAN_KARYAWAN']; ?></td>
|
||||
<td><?= $key['KET_LSV']; ?></td>
|
||||
<?php if ($key['STATUS_LSV']=="0") { ?>
|
||||
<td class="text-warning"><strong>Sedang Check</strong></td>
|
||||
<?php } else if ($key['STATUS_LSV']=="1") { ?>
|
||||
<td class="text-success"><strong>Selesai Service</strong></td>
|
||||
<?php } else if ($key['STATUS_LSV']=="2") { ?>
|
||||
<td class="text-primary"><strong>Claim Garansi</strong></td>
|
||||
<?php } else if ($key['STATUS_LSV']=="3") { ?>
|
||||
<td class="text-tertiary"><strong>Pending Part</strong></td>
|
||||
<?php } else if ($key['STATUS_LSV']=="4") { ?>
|
||||
<td class="text-quartenary"><strong>Pending User</strong></td>
|
||||
<?php } else if ($key['STATUS_LSV']=="5") { ?>
|
||||
<td class="text-danger"><strong>Batal Service</strong></td>
|
||||
<?php } else if ($key['STATUS_LSV']=="6") { ?>
|
||||
<td class="text-danger"><strong>Extend Warranty</strong></td>
|
||||
<?php } ?>
|
||||
<?php if ($status=="0") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_LSV'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_LSV']; ?>"><i class="fa fa-trash-o"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php if ($username=="rini" AND $status=="0") { ?>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="submit" class="btn btn-warning" data-toggle="modal" data-target="#modal-tarik<?php echo $id_sns; ?>"><strong>Tarik Data</strong> <i class="fa fa-arrow-left"></i></button>
|
||||
<button type="submit" class="btn btn-primary" data-toggle="modal" data-target="#modal-kunci<?php echo $id_sns; ?>"><strong>Kunci Data</strong> <i class="fa fa-lock"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<?php } else if ($username=="rini" AND $status=="1") { ?>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="submit" class="btn btn-warning" data-toggle="modal" data-target="#modal-revisi<?php echo $id_sns; ?>"><strong>Revisi Data</strong> <i class="fa fa-arrow-left"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<?php } ?>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageService/simpanlog_SvA2', array('id' => 'formservice'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h4 class="panel-title"><strong>Tambah Data</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label"><strong>Status</strong> <span class="required">*</span></label>
|
||||
<div class="col-md-10">
|
||||
<select data-plugin-selectTwo name="status_lsv" id="STATUS_LSV" class="form-control populate" required>
|
||||
<option value="" selected>Pilih Status Service</option>
|
||||
<option value="0">SEDANG CHECK</option>
|
||||
<option value="1">SELESAI SERVICE</option>
|
||||
<option value="2">CLAIM GARANSI</option>
|
||||
<option value="3">PENDING PART</option>
|
||||
<option value="4">PENDING USER</option>
|
||||
<option value="5">BATAL SERVICE</option>
|
||||
<option value="6">EXTEND WARRANTY</option>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_sns" class="form-control" value="<?= $id_sns?>">
|
||||
<div class="col-md-2">
|
||||
<label><strong>Keterangan</strong> <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<textarea name="ket_lsv" id="KET_LSV" class="form-control" col="3" rows="3" placeholder="Max 128 Karakter" required></textarea>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success"><strong>Tambah</strong> <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($service) || is_object($service)) {
|
||||
foreach ($service as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_LSV'] ?>">
|
||||
<?= form_open('ManageService/ubahlog_SvA2', array('id' => 'formservice'), array('method' => 'ubahlog_SvA2')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h4 class="panel-title"><strong>Ubah Data</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label"><strong>Status</strong> <span class="required">*</span></label>
|
||||
<div class="col-md-10">
|
||||
<select data-plugin-selectTwo name="status_lsved" id="STATUS_LSV" class="form-control populate" required>
|
||||
<?php if ($row['STATUS_LSV']=="0") { ?>
|
||||
<option selected value="0">SEDANG CHECK</option>
|
||||
<option value="1">SELESAI SERVICE</option>
|
||||
<option value="2">CLAIM GARANSI</option>
|
||||
<option value="3">PENDING PART</option>
|
||||
<option value="4">PENDING USER</option>
|
||||
<option value="5">BATAL SERVICE</option>
|
||||
<option value="6">EXTEND WARRANTY</option>
|
||||
<?php } else if ($row['STATUS_LSV']=="1") { ?>
|
||||
<option value="0">SEDANG CHECK</option>
|
||||
<option selected value="1">SELESAI SERVICE</option>
|
||||
<option value="2">CLAIM GARANSI</option>
|
||||
<option value="3">PENDING PART</option>
|
||||
<option value="4">PENDING USER</option>
|
||||
<option value="5">BATAL SERVICE</option>
|
||||
<option value="6">EXTEND WARRANTY</option>
|
||||
<?php } else if ($row['STATUS_LSV']=="2") { ?>
|
||||
<option value="0">SEDANG CHECK</option>
|
||||
<option value="1">SELESAI SERVICE</option>
|
||||
<option selected value="2">CLAIM GARANSI</option>
|
||||
<option value="3">PENDING PART</option>
|
||||
<option value="4">PENDING USER</option>
|
||||
<option value="5">BATAL SERVICE</option>
|
||||
<option value="6">EXTEND WARRANTY</option>
|
||||
<?php } else if ($row['STATUS_LSV']=="3") { ?>
|
||||
<option value="0">SEDANG CHECK</option>
|
||||
<option value="1">SELESAI SERVICE</option>
|
||||
<option value="2">CLAIM GARANSI</option>
|
||||
<option selected value="3">PENDING PART</option>
|
||||
<option value="4">PENDING USER</option>
|
||||
<option value="5">BATAL SERVICE</option>
|
||||
<option value="6">EXTEND WARRANTY</option>
|
||||
<?php } else if ($row['STATUS_LSV']=="4") { ?>
|
||||
<option value="0">SEDANG CHECK</option>
|
||||
<option value="1">SELESAI SERVICE</option>
|
||||
<option value="2">CLAIM GARANSI</option>
|
||||
<option value="3">PENDING PART</option>
|
||||
<option selected value="4">PENDING USER</option>
|
||||
<option value="5">BATAL SERVICE</option>
|
||||
<option value="6">EXTEND WARRANTY</option>
|
||||
<?php } else if ($row['STATUS_LSV']=="5") { ?>
|
||||
<option value="0">SEDANG CHECK</option>
|
||||
<option value="1">SELESAI SERVICE</option>
|
||||
<option value="2">CLAIM GARANSI</option>
|
||||
<option value="3">PENDING PART</option>
|
||||
<option value="4">PENDING USER</option>
|
||||
<option selected value="5">BATAL SERVICE</option>
|
||||
<option value="6">EXTEND WARRANTY</option>
|
||||
<?php } else if ($row['STATUS_LSV']=="6") { ?>
|
||||
<option value="0">SEDANG CHECK</option>
|
||||
<option value="1">SELESAI SERVICE</option>
|
||||
<option value="2">CLAIM GARANSI</option>
|
||||
<option value="3">PENDING PART</option>
|
||||
<option value="4">PENDING USER</option>
|
||||
<option value="5">BATAL SERVICE</option>
|
||||
<option selected value="6">EXTEND WARRANTY</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_lsv" class="form-control" value="<?= $row['ID_LSV']?>">
|
||||
<input type="hidden" name="id_sns" class="form-control" value="<?= $id_sns?>">
|
||||
<div class="col-md-2">
|
||||
<label><strong>Keterangan</strong> <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<textarea name="ket_lsved" id="KET_LSV" class="form-control" col="3" rows="3" placeholder="Max 128 Karakter" required><?= $row['KET_LSV'];?></textarea>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning"><strong>Ubah</strong> <i class="fa fa-pencil"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php if (is_array($service) || is_object($service)) {
|
||||
foreach ($service as $key) { ?>
|
||||
<div id="modal-hapus<?php echo $key['ID_LSV']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageService/hapuslog_SvA2', array('id' => 'formservice'), array('method' => 'hapuslog_SvA2')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title">Data <strong><?= $key['KODE_SERVICE'] ?></strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_LSV'] ?>">
|
||||
<input type="hidden" name="id_sns" class="form-control" value="<?= $id_sns?>">
|
||||
<h4>Apakah ingin menghapus Data?</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger"><strong>Hapus</strong> <i class="fa fa-trash-o"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<div id="modal-kunci<?php echo $id_sns; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageService/kuncilog_SvA2', array('id' => 'formservice'), array('method' => 'kuncilog_SvA2')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><strong>Kunci Data</strong></h2>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">
|
||||
<label><strong>Tanggal</strong></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
<input type="date" name="selesai_service" id="SELESAI_SERVICE" class="form-control" value="<?= $tgl ?>" required>
|
||||
</div>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label"><strong>SO</strong> <span class="required">*</span></label>
|
||||
<div class="col-md-10">
|
||||
<select data-plugin-selectTwo name="id_so" id="ID_SO" class="form-control populate" required>
|
||||
<option value="" selected>Pilih Sales Order</option>
|
||||
<?php if (is_array($so) || is_object($so)) {
|
||||
foreach ($so as $key) { ?>
|
||||
<option value="<?= $key['ID_SO'] ?>" ><?= $key['KODE_SO'] ?> (<?= $key['TANGGAL'] ?>)</option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_sns" class="form-control" value="<?= $id_sns?>">
|
||||
<div class="col-md-2">
|
||||
<label><strong>Keterangan</strong></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<textarea name="ket_akhir" id="KET_AKHIR" col="3" rows="3" placeholder="Max 128 Karakter" class="form-control"></textarea>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-primary"><strong>Kunci</strong> <i class="fa fa-lock"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div id="modal-tarik<?php echo $id_sns; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageService/tariklog_SvA2', array('id' => 'formservice'), array('method' => 'tariklog_SvA2')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><strong>Tarik Data</strong></h2>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_sns" class="form-control" value="<?= $id_sns?>">
|
||||
<label class="col-md-2 control-label"><strong>Karyawan</strong> <span class="required">*</span></label>
|
||||
<div class="col-md-10">
|
||||
<select data-plugin-selectTwo name="id_pengambil" id="ID_PENGAMBIL" class="form-control populate" required>
|
||||
<option value="" selected>Pilih Nama Karyawan</option>
|
||||
<?php if (is_array($pengambil) || is_object($pengambil)) {
|
||||
foreach ($pengambil as $key) { ?>
|
||||
<option value="<?= $key['ID_KARYAWAN'] ?>" ><?= $key['NAMA_PANGGILAN_KARYAWAN'] ?></option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<h4><label class="col-md-12 control-label"><strong>Proses tidak bisa dibatalkan, lanjutkan?</strong></label></h4>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning"><strong>Tarik</strong> <i class="fa fa-arrow-left"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($service) || is_object($service)) {
|
||||
foreach ($service as $key) { ?>
|
||||
<div id="modal-revisi<?php echo $id_sns; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageService/revisilog_SvA2', array('id' => 'formservice'), array('method' => 'revisilog_SvA2')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title">Data <strong><?= $key['KODE_SERVICE'] ?></strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id_sns" class="form-control" value="<?= $id_sns?>">
|
||||
<h4>Apakah ingin revisi Data?</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning"><strong>Revisi</strong> <i class="fa fa-arrow-left"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php $this->load->view('template/sidebar_right'); ?>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-multiselect/bootstrap-multiselect.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<?php $this->load->view('template/notification'); ?>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('success')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('success'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('failed')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data gagal <?= $this->session->flashdata('failed'); ?>, hubungi Administrator',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('latest')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Menu tidak valid, silahkan refresh Browser.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_lock')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('data_lock'); ?>. Kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('not_zero_negative')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai tidak valid, silahkan Check kembali.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('not_valid')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data utama berubah, kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_used')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data terpakai, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_sns')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Ada SN yang belum di check Service, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('print_mode')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Silahkan Cetak Nota, hanya bisa sekali Tampilkan Menu Print.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('print_already')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nota sudah print, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('user_not')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Anda bukan pembuat Histori ini, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('histori_not')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Ada Histori yang lebih baru, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('username_pass_success')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Anda berhasil <?= $this->session->flashdata('username_pass_success'); ?>. Masuk Mode Admin.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('username_pass_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Username Anda tidak berhak masuk Mode Admin, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('date_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Tanggal melebihi hari ini, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('status_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Proses Service belum selesai, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,335 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
||||
|
||||
<title>MASTER DATA</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="Porto Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="okler.net">
|
||||
<link rel="icon" type="image/png" href="<?php echo base_url('')?>assets/images/logoPcmBaru3.png" />
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Master Agen</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Agen</span></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"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<?php $bintang = $this->session->userdata('jabatan');
|
||||
if (strpos($bintang,"SERVICE")!==FALSE OR $bintang=="ADMINISTRATOR") { $set=1; } else { $set=0; } ?>
|
||||
|
||||
<?php if ($set==1) { ?>
|
||||
<h2 class="panel-title"><strong>DATA AGEN</strong></h2>
|
||||
<?php } else { ?>
|
||||
<h2 class="panel-title"><strong>DATA AGEN </strong><i class="fa fa-lock"></i></h2>
|
||||
<?php } ?>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<?php if ($set==1) { ?>
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah"><strong>Tambah Data</strong> <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
<?php if ($set==1) { ?>
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Nama Agen</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
<?php } else { ?>
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Nama Agen</th>
|
||||
<?php } ?>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($agen) || is_object($agen)) {
|
||||
$no = 1;
|
||||
foreach ($agen as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_AGEN']; ?></td>
|
||||
<?php if ($set==1) { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_AGEN'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_AGEN']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageAgen/save', array('id' => 'formagen'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h4 class="panel-title"><strong>Tambah Data</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">
|
||||
<label><strong>Nama</strong> <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<input type="text" name="nama_agen" id="NAMA_AGEN" class="form-control" autocomplete="off" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success"><strong>Tambah </strong><i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($agen) || is_object($agen)) {
|
||||
foreach ($agen as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_AGEN'] ?>">
|
||||
<?= form_open('ManageAgen/edit', array('id' => 'formagen'), array('method' => 'edit')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h4 class="panel-title"><strong>Ubah Data</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_agen" class="form-control" value="<?= $row['ID_AGEN']; ?>">
|
||||
<div class="col-md-2">
|
||||
<label><strong>Nama</strong> <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<input type="text" name="nama_agened" id="NAMA_AGEN<?= $row['ID_AGEN'] ?>" class="form-control" autocomplete="off" value="<?= $row['NAMA_AGEN'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning"><strong>Ubah </strong><i class="fa fa-pencil"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php if (is_array($agen) || is_object($agen)) {
|
||||
foreach ($agen as $key) { ?>
|
||||
<div id="modal-hapus<?php echo $key['ID_AGEN']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageAgen/hapus', array('id' => 'formagenhapus'), array('method' => 'hapus')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><strong><?= $key['NAMA_AGEN'] ?></strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_AGEN'] ?>">
|
||||
<h4>Apakah ingin menghapus Data?</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger" onclick="DisableButton(this);"><strong>Hapus </strong><i class="fa fa-trash-o"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php $this->load->view('template/sidebar_right'); ?>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-ui/js/jquery-ui-1.10.4.custom.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.advanced.form.js"></script>
|
||||
<!-- notif -->
|
||||
<?php $this->load->view('template/notification'); ?>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('success')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('success'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('failed')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data gagal <?= $this->session->flashdata('failed'); ?>, hubungi Administrator',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_used')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data sedang terpakai, tidak bisa diproses.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,363 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
||||
|
||||
<title>MASTER DATA</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="Porto Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="okler.net">
|
||||
<link rel="icon" type="image/png" href="<?php echo base_url('')?>assets/images/logoPcmBaru3.png" />
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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><strong>Data PriceList</strong></h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Price List</span></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-quartenary">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<?php if ($set == 1) { ?>
|
||||
<h2 class="panel-title"><strong>DATA PRICE LIST</strong></h2>
|
||||
<?php } else { ?>
|
||||
<h2 class="panel-title"><strong>DATA PRICE LIST </strong><i class="fa fa-lock"></i></h2>
|
||||
<?php } ?>
|
||||
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<?php if ($set == 1) { ?>
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Jenis</th>
|
||||
<th class="dark">Barang</th>
|
||||
<th class="dark">Harga Average</th>
|
||||
<th class="dark">Harga Dealer</th>
|
||||
<th class="dark">Harga User</th>
|
||||
<th class="dark">Data Terbaru</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
<?php } else { ?>
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Jenis</th>
|
||||
<th class="dark">Barang</th>
|
||||
<th class="dark">Harga Dealer</th>
|
||||
<th class="dark">Harga User</th>
|
||||
<th class="dark">Data Terbaru</th>
|
||||
<?php } ?>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($dh) || is_object($dh)) {
|
||||
$no = 1;
|
||||
$kode_barang = NULL;
|
||||
foreach ($dh as $key) {
|
||||
if ($key['KODE_BARANG'] != $kode_barang) {
|
||||
$kode_barang = $key['KODE_BARANG']; ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td class="text-dark"><strong><?= $key['NAMA_JENIS']; ?><strong></td>
|
||||
<td><strong class="text-secondary"><?= $key['KODE_BARANG']; ?></strong><br>(<?= $key['NAMA_BARANG']; ?>)</td>
|
||||
<?php if ($set == 1) { ?>
|
||||
<?php if ($key['AVG'] == NULL) { ?>
|
||||
<td>Rp 0.00</td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['AVG']; ?></td>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<?php } ?>
|
||||
<?php if ($key['DEALER'] == NULL) { ?>
|
||||
<td>Rp 0.00</td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['DEALER']; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['USER'] == NULL) { ?>
|
||||
<td>Rp 0.00</td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['USER']; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['TGL_HAVG'] <= $key['TGL_HSRP']) { ?>
|
||||
<td><?= $key['TANGGAL_HSRP']; ?></td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['TANGGAL_HAVG']; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($set == 1) { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" data-toggle="modal" data-target="#modal-view<?php echo $key['ID_BARANG']; ?>"><i class="fa fa-cog"></i></button>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<?php } ?>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<?php if ($set==1 OR $set==2) { ?>
|
||||
<?php if (is_array($dh) || is_object($dh)) {
|
||||
foreach ($dh as $row) { ?>
|
||||
<!-- Modal View -->
|
||||
<div class="modal fade" id="modal-view<?= $row['ID_BARANG'] ?>">
|
||||
<?= form_open('ManageDaftarHarga/view', array('id' => 'formdaftarharga'), array('method' => 'view')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h4 class="panel-title"><strong>Informasi Detail</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-3">
|
||||
<label><strong>Terakhir Update</strong></label>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
<?php if ($row['TGL_HAVG'] == NULL and $row['TGL_HSRP'] == NULL) { ?>
|
||||
<input type="text" name="tgl" id="TGL" class="form-control" value="Data Masih Kosong" data-plugin-datepicker disabled>
|
||||
<?php } else if ($row['TGL_HAVG'] <= $row['TGL_HSRP']) { ?>
|
||||
<input type="text" name="tgl" id="TGL" class="form-control" value="<?= $row['TANGGAL_HSRP'] ?>" data-plugin-datepicker disabled>
|
||||
<?php } else { ?>
|
||||
<input type="text" name="tgl" id="TGL" class="form-control" value="<?= $row['TANGGAL_HAVG'] ?>" data-plugin-datepicker disabled>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-3">
|
||||
<label><strong>Harga Average</strong></label>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">Rp</span>
|
||||
<?php if ($row['NILAI_HAVG'] == NULL) { ?>
|
||||
<input type="decimal" name="nilai_havg" id="NILAI_HAVG<?= $row['ID_BARANG'] ?>" class="form-control" value="0.00" disabled>
|
||||
<?php } else { ?>
|
||||
<input type="decimal" name="nilai_havg" id="NILAI_HAVG<?= $row['ID_BARANG'] ?>" class="form-control" value="<?= $row['NILAI_HAVG'] ?>" disabled>
|
||||
<?php } ?>
|
||||
</span>
|
||||
</div>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-3">
|
||||
<label><strong>Harga Dealer</strong></label>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">Rp</span>
|
||||
<?php if ($row['DEALER_HSRP'] == NULL) { ?>
|
||||
<input type="decimal" name="dealer_hsrp" id="DEALER_HSRP<?= $row['ID_BARANG'] ?>" class="form-control" autocomplete="off" value="0.00" required>
|
||||
<?php } else { ?>
|
||||
<input type="decimal" name="dealer_hsrp" id="DEALER_HSRP<?= $row['ID_BARANG'] ?>" class="form-control" autocomplete="off" value="<?= $row['DEALER_HSRP'] ?>" required>
|
||||
<?php } ?>
|
||||
</span>
|
||||
</div>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-3">
|
||||
<label><strong>Harga User</strong></label>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">Rp</span>
|
||||
<?php if ($row['USER_HSRP'] == NULL) { ?>
|
||||
<input type="decimal" name="user_hsrp" id="USER_HSRP<?= $row['ID_BARANG'] ?>" class="form-control" autocomplete="off" value="0.00" required>
|
||||
<?php } else { ?>
|
||||
<input type="decimal" name="user_hsrp" id="USER_HSRP<?= $row['ID_BARANG'] ?>" class="form-control" autocomplete="off" value="<?= $row['USER_HSRP'] ?>" required>
|
||||
<?php } ?>
|
||||
</span>
|
||||
</div>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_barang" class="form-control" value="<?= $row['ID_BARANG']; ?>">
|
||||
<div class="col-md-6">
|
||||
<label><strong>Keterangan Detail</strong></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<textarea name="ket_barang" id="KET_BARANG<?= $row['ID_BARANG'] ?>" class="form-control" rows="10" cols="6" placeholder="Spesifikasi/Keterangan Barang Max 1024 Karakter"><?= $row['KET_BARANG'] ?></textarea>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-info"><strong>Revisi</strong> <i class="fa fa-cog"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php $this->load->view('template/sidebar_right'); ?>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-ui/js/jquery-ui-1.10.4.custom.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-autosize/jquery.autosize.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.advanced.form.js"></script>
|
||||
<!-- notif -->
|
||||
<?php $this->load->view('template/notification'); ?>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('success')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('success'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('failed')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data gagal <?= $this->session->flashdata('failed'); ?>, hubungi Administrator',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('not_zero_negative')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai tidak valid, silahkan Check kembali.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,352 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>MASTER DATA</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Master Dvd</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Dvd</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Master"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA DVD</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Type Dvd</th>
|
||||
<th class="dark">Nama Dvd</th>
|
||||
<th class="dark center">FUNGSI</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($dvd) || is_object($dvd)) {
|
||||
$no = 1;
|
||||
foreach ($dvd as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['TYPE_DVD']; ?></td>
|
||||
<td><?= $key['NAMA_DVD']; ?></td>
|
||||
<?php if ($key['DVD_ID']===$key['ID_DVD']) { ?>
|
||||
<td class="actions center">
|
||||
<button disabled type="button" class="btn btn-xs btn-default" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_DVD'];?>"><i class="fa fa-times"></i></button>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_DVD'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_DVD']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageDvd/save', array('id' => 'formdvd'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Tambah Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">Type Dvd <span class="required">*</span></label>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="type_dvd" id="TYPE_DVD" class="form-control populate" required>
|
||||
<option value="" selected>Pilih Type Dvd</option>
|
||||
<option value="Internal">Internal</option>
|
||||
<option value="Eksternal">Eksternal</option>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Dvd <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_dvd" id="NAMA_DVD" class="form-control" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($dvd) || is_object($dvd)) {
|
||||
foreach ($dvd as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_DVD'] ?>">
|
||||
<?= form_open('ManageDvd/edit', array('id' => 'formdvd'), array('method' => 'edit')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Edit Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Type Dvd <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="type_dvded" class="form-control" required>
|
||||
<option value="<?= $row['TYPE_DVD'] ?>" selected=""><?= $row['TYPE_DVD'] ?></option>
|
||||
<?php if ($row['TYPE_DVD'] === 'Internal') { ?>
|
||||
<option value="Eksternal">Eksternal</option>
|
||||
<option value="None">None</option>
|
||||
<?php } else if ($row['TYPE_DVD'] === 'Eksternal') { ?>
|
||||
<option value="Internal">Internal</option>
|
||||
<option value="None">None</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_dvd" class="form-control" value="<?= $row['ID_DVD']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Dvd <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_dvded" id="NAMA_DVD<?= $row['ID_DVD'] ?>" class="form-control" value="<?= $row['NAMA_DVD'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Edit Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_array($dvd) || is_object($dvd)) {
|
||||
|
||||
foreach ($dvd as $key) { ?>
|
||||
<div id="modal-hapus<?php echo $key['ID_DVD']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageDvd/hapus', array('id' => 'formdvdhapus'), array('method' => 'hapus')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><?= $key['NAMA_DVD'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_DVD'] ?>">
|
||||
<p>Apakah ingin menghapus Data DVD?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger" onclick="DisableButton(this);">Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Dvd berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Dvd gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,314 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>MASTER DATA</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Master Group</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Group</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Master"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA GROUP</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Nama Group</th>
|
||||
<th class="dark center">FUNGSI</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($group) || is_object($group)) {
|
||||
$no = 1;
|
||||
foreach ($group as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_GROUP']; ?></td>
|
||||
<?php if ($key['GROUP_ID']===$key['ID_GROUP']) { ?>
|
||||
<td class="actions center">
|
||||
<button disabled type="button" class="btn btn-xs btn-default" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_GROUP'];?>"><i class="fa fa-times"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['GROUP_ID']===NULL) { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_GROUP'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_GROUP']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageGroup/save', array('id' => 'formgroup'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Tambah Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Group <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_group" id="NAMA_GROUP" class="form-control" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-primary">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($group) || is_object($group)) {
|
||||
foreach ($group as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_GROUP'] ?>">
|
||||
<?= form_open('ManageGroup/edit', array('id' => 'formgroup'), array('method' => 'edit')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Edit Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_group" class="form-control" value="<?= $row['ID_GROUP']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Group <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_grouped" id="NAMA_GROUP<?= $row['ID_GROUP'] ?>" class="form-control" value="<?= $row['NAMA_GROUP'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-warning">Edit Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_array($group) || is_object($group)) {
|
||||
|
||||
foreach ($group as $key) { ?>
|
||||
<div id="modal-hapus<?php echo $key['ID_GROUP']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageGroup/hapus', array('id' => 'formgrouphapus'), array('method' => 'hapus')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><?= $key['NAMA_GROUP'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_GROUP'] ?>">
|
||||
<p>Apakah ingin menghapus Data Group?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-danger">Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Group berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Group gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,155 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>MASTER DATA</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" />
|
||||
|
||||
<!-- 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>Master Gudang</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php/Master">
|
||||
<i class="fa fa-cube"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Gudang</span></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-primary">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Master"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title"><strong>DATA GUDANG <i class="fa fa-lock"></i></strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Nama Gudang</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($gudang) || is_object($gudang)) {
|
||||
$no = 1;
|
||||
foreach ($gudang as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_GUDANG']; ?></td></a>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,314 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>MASTER DATA</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Master Hdd</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Hdd</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Master"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA HDD</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Nama Hdd</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($hdd) || is_object($hdd)) {
|
||||
$no = 1;
|
||||
foreach ($hdd as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_HDD']; ?></td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_HDD'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_HDD']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageHdd/save', array('id' => 'formhdd'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Tambah Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Hdd (MERK|Dimensi|Type|Kapasitas) <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_hdd" id="NAMA_HDD" class="form-control" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($hdd) || is_object($hdd)) {
|
||||
foreach ($hdd as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_HDD'] ?>">
|
||||
<?= form_open('ManageHdd/edit', array('id' => 'formhdd'), array('method' => 'edit')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Edit Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_hdd" class="form-control" value="<?= $row['ID_HDD']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Hdd (MERK|Dimensi|Type|Kapasitas) <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_hdded" id="NAMA_HDD<?= $row['ID_HDD'] ?>" class="form-control" value="<?= $row['NAMA_HDD'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Edit Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_array($hdd) || is_object($hdd)) {
|
||||
|
||||
foreach ($hdd as $key) { ?>
|
||||
<div id="modal-hapus<?php echo $key['ID_HDD']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageHdd/hapus', array('id' => 'formhddhapus'), array('method' => 'hapus')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><?= $key['NAMA_HDD'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_HDD'] ?>">
|
||||
<p>Apakah ingin menghapus Data HDD?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger" onclick="DisableButton(this);">Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Hdd berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Hdd gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,314 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>MASTER DATA</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Master Lain</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Sparepart Lain</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Master"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">SPAREPART LAIN <strong>(KHUSUS CABUTAN)</strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Nama Sparepart</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($lain) || is_object($lain)) {
|
||||
$no = 1;
|
||||
foreach ($lain as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_LAIN']; ?></td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_LAIN'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_LAIN']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageLain/save', array('id' => 'formlain'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Tambah Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Sparepart (MERK|Sparepart|Keterangan)<span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_lain" id="NAMA_LAIN" class="form-control" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($lain) || is_object($lain)) {
|
||||
foreach ($lain as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_LAIN'] ?>">
|
||||
<?= form_open('ManageLain/edit', array('id' => 'formlain'), array('method' => 'edit')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Edit Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_lain" class="form-control" value="<?= $row['ID_LAIN']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Sparepart <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_lained" id="NAMA_LAIN<?= $row['ID_LAIN'] ?>" class="form-control" value="<?= $row['NAMA_LAIN'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Edit Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_array($lain) || is_object($lain)) {
|
||||
|
||||
foreach ($lain as $key) { ?>
|
||||
<div id="modal-hapus<?php echo $key['ID_LAIN']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageLain/hapus', array('id' => 'formlainhapus'), array('method' => 'hapus')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><?= $key['NAMA_LAIN'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_LAIN'] ?>">
|
||||
<p>Apakah ingin menghapus Data Lain?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger" onclick="DisableButton(this);">Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Sparepart berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Sparepart gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,451 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>MASTER DATA</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Master Neraca</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Neraca</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Master"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA NERACA</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Kode Neraca</th>
|
||||
<th class="dark">Nama Neraca</th>
|
||||
<th class="dark">Type Neraca</th>
|
||||
<th class="dark center">FUNGSI</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($neraca) || is_object($neraca)) {
|
||||
$no = 1;
|
||||
foreach ($neraca as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_NERACA']; ?></td>
|
||||
<td><?= $key['NAMA_NERACA']; ?></td>
|
||||
<td><?= $key['TYPE_NERACA']; ?></td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_NERACA'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_NERACA']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageNeraca/save', array('id' => 'formneraca'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Tambah Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-12 control-label">Type Neraca <span class="required">*</span></label>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="type_neraca" id="TYPE_NERACA" class="form-control populate" required>
|
||||
<option value="" selected>Pilih Type Neraca</option>
|
||||
<option value="AKTIVA LANCAR">AKTIVA LANCAR</option>
|
||||
<option value="AKTIVA TETAP">AKTIVA TETAP</option>
|
||||
<option value="KEWAJIBAN LANCAR">KEWAJIBAN LANCAR</option>
|
||||
<option value="MODAL">MODAL</option>
|
||||
<option value="PENDAPATAN PENJUALAN">PENDAPATAN PENJUALAN</option>
|
||||
<option value="HARGA POKOK PENJUALAN">HARGA POKOK PENJUALAN</option>
|
||||
<option value="BIAYA PENJUALAN">BIAYA PENJUALAN</option>
|
||||
<option value="BIAYA UMUM DAN ADMINISTRASI">BIAYA UMUM DAN ADMINISTRASI</option>
|
||||
<option value="PENDAPATAN DAN (BEBAN) LUAR USAHA">PENDAPATAN DAN (BEBAN) LUAR USAHA</option>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Kode Neraca <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_neraca" id="KODE_NERACA" class="form-control" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Neraca <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_neraca" id="NAMA_NERACA" class="form-control" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($neraca) || is_object($neraca)) {
|
||||
foreach ($neraca as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_NERACA'] ?>">
|
||||
<?= form_open('ManageNeraca/edit', array('id' => 'formneraca'), array('method' => 'edit')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Edit Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_neraca" class="form-control" value="<?= $row['ID_NERACA']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Type Barang <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="type_neracaed" class="form-control" required>
|
||||
<option value="<?= $row['TYPE_NERACA'] ?>" selected=""><?= $row['TYPE_NERACA'] ?></option>
|
||||
<?php if ($row['TYPE_NERACA'] === 'AKTIVA LANCAR') { ?>
|
||||
<option value="AKTIVA TETAP">AKTIVA TETAP</option>
|
||||
<option value="KEWAJIBAN LANCAR">KEWAJIBAN LANCAR</option>
|
||||
<option value="MODAL">MODAL</option>
|
||||
<option value="PENDAPATAN PENJUALAN">PENDAPATAN PENJUALAN</option>
|
||||
<option value="HARGA POKOK PENJUALAN">HARGA POKOK PENJUALAN</option>
|
||||
<option value="BIAYA PENJUALAN">BIAYA PENJUALAN</option>
|
||||
<option value="BIAYA UMUM DAN ADMINISTRASI">BIAYA UMUM DAN ADMINISTRASI</option>
|
||||
<option value="PENDAPATAN DAN (BEBAN) LUAR USAHA">PENDAPATAN DAN (BEBAN) LUAR USAHA</option>
|
||||
<?php } else if ($row['TYPE_NERACA'] === 'AKTIVA TETAP') { ?>
|
||||
<option value="AKTIVA LANCAR">AKTIVA LANCAR</option>
|
||||
<option value="KEWAJIBAN LANCAR">KEWAJIBAN LANCAR</option>
|
||||
<option value="MODAL">MODAL</option>
|
||||
<option value="PENDAPATAN PENJUALAN">PENDAPATAN PENJUALAN</option>
|
||||
<option value="HARGA POKOK PENJUALAN">HARGA POKOK PENJUALAN</option>
|
||||
<option value="BIAYA PENJUALAN">BIAYA PENJUALAN</option>
|
||||
<option value="BIAYA UMUM DAN ADMINISTRASI">BIAYA UMUM DAN ADMINISTRASI</option>
|
||||
<option value="PENDAPATAN DAN (BEBAN) LUAR USAHA">PENDAPATAN DAN (BEBAN) LUAR USAHA</option>
|
||||
<?php } else if ($row['TYPE_NERACA'] === 'KEWAJIBAN LANCAR') { ?>
|
||||
<option value="AKTIVA LANCAR">AKTIVA LANCAR</option>
|
||||
<option value="AKTIVA TETAP">AKTIVA TETAP</option>
|
||||
<option value="MODAL">MODAL</option>
|
||||
<option value="PENDAPATAN PENJUALAN">PENDAPATAN PENJUALAN</option>
|
||||
<option value="HARGA POKOK PENJUALAN">HARGA POKOK PENJUALAN</option>
|
||||
<option value="BIAYA PENJUALAN">BIAYA PENJUALAN</option>
|
||||
<option value="BIAYA UMUM DAN ADMINISTRASI">BIAYA UMUM DAN ADMINISTRASI</option>
|
||||
<option value="PENDAPATAN DAN (BEBAN) LUAR USAHA">PENDAPATAN DAN (BEBAN) LUAR USAHA</option>
|
||||
<?php } else if ($row['TYPE_NERACA'] === 'MODAL') { ?>
|
||||
<option value="AKTIVA LANCAR">AKTIVA LANCAR</option>
|
||||
<option value="AKTIVA TETAP">AKTIVA TETAP</option>
|
||||
<option value="KEWAJIBAN LANCAR">KEWAJIBAN LANCAR</option>
|
||||
<option value="PENDAPATAN PENJUALAN">PENDAPATAN PENJUALAN</option>
|
||||
<option value="HARGA POKOK PENJUALAN">HARGA POKOK PENJUALAN</option>
|
||||
<option value="BIAYA PENJUALAN">BIAYA PENJUALAN</option>
|
||||
<option value="BIAYA UMUM DAN ADMINISTRASI">BIAYA UMUM DAN ADMINISTRASI</option>
|
||||
<option value="PENDAPATAN DAN (BEBAN) LUAR USAHA">PENDAPATAN DAN (BEBAN) LUAR USAHA</option>
|
||||
<?php } else if ($row['TYPE_NERACA'] === 'PENDAPATAN PENJUALAN') { ?>
|
||||
<option value="AKTIVA LANCAR">AKTIVA LANCAR</option>
|
||||
<option value="AKTIVA TETAP">AKTIVA TETAP</option>
|
||||
<option value="KEWAJIBAN LANCAR">KEWAJIBAN LANCAR</option>
|
||||
<option value="MODAL">MODAL</option>
|
||||
<option value="HARGA POKOK PENJUALAN">HARGA POKOK PENJUALAN</option>
|
||||
<option value="BIAYA PENJUALAN">BIAYA PENJUALAN</option>
|
||||
<option value="BIAYA UMUM DAN ADMINISTRASI">BIAYA UMUM DAN ADMINISTRASI</option>
|
||||
<option value="PENDAPATAN DAN (BEBAN) LUAR USAHA">PENDAPATAN DAN (BEBAN) LUAR USAHA</option>
|
||||
<?php } else if ($row['TYPE_NERACA'] === 'HARGA POKOK PENJUALAN') { ?>
|
||||
<option value="AKTIVA LANCAR">AKTIVA LANCAR</option>
|
||||
<option value="AKTIVA TETAP">AKTIVA TETAP</option>
|
||||
<option value="KEWAJIBAN LANCAR">KEWAJIBAN LANCAR</option>
|
||||
<option value="MODAL">MODAL</option>
|
||||
<option value="PENDAPATAN PENJUALAN">PENDAPATAN PENJUALAN</option>
|
||||
<option value="BIAYA PENJUALAN">BIAYA PENJUALAN</option>
|
||||
<option value="BIAYA UMUM DAN ADMINISTRASI">BIAYA UMUM DAN ADMINISTRASI</option>
|
||||
<option value="PENDAPATAN DAN (BEBAN) LUAR USAHA">PENDAPATAN DAN (BEBAN) LUAR USAHA</option>
|
||||
<?php } else if ($row['TYPE_NERACA'] === 'BIAYA PENJUALAN') { ?>
|
||||
<option value="AKTIVA LANCAR">AKTIVA LANCAR</option>
|
||||
<option value="AKTIVA TETAP">AKTIVA TETAP</option>
|
||||
<option value="KEWAJIBAN LANCAR">KEWAJIBAN LANCAR</option>
|
||||
<option value="MODAL">MODAL</option>
|
||||
<option value="PENDAPATAN PENJUALAN">PENDAPATAN PENJUALAN</option>
|
||||
<option value="HARGA POKOK PENJUALAN">HARGA POKOK PENJUALAN</option>
|
||||
<option value="BIAYA PENJUALAN">BIAYA PENJUALAN</option>
|
||||
<option value="BIAYA UMUM DAN ADMINISTRASI">BIAYA UMUM DAN ADMINISTRASI</option>
|
||||
<option value="PENDAPATAN DAN (BEBAN) LUAR USAHA">PENDAPATAN DAN (BEBAN) LUAR USAHA</option>
|
||||
<?php } else if ($row['TYPE_NERACA'] === 'BIAYA UMUM DAN ADMINISTRASI') { ?>
|
||||
<option value="AKTIVA LANCAR">AKTIVA LANCAR</option>
|
||||
<option value="AKTIVA TETAP">AKTIVA TETAP</option>
|
||||
<option value="KEWAJIBAN LANCAR">KEWAJIBAN LANCAR</option>
|
||||
<option value="MODAL">MODAL</option>
|
||||
<option value="PENDAPATAN PENJUALAN">PENDAPATAN PENJUALAN</option>
|
||||
<option value="HARGA POKOK PENJUALAN">HARGA POKOK PENJUALAN</option>
|
||||
<option value="BIAYA PENJUALAN">BIAYA PENJUALAN</option>
|
||||
<option value="PENDAPATAN DAN (BEBAN) LUAR USAHA">PENDAPATAN DAN (BEBAN) LUAR USAHA</option>
|
||||
<?php } else if ($row['TYPE_NERACA'] === 'PENDAPATAN DAN (BEBAN) LUAR USAHA') { ?>
|
||||
<option value="AKTIVA LANCAR">AKTIVA LANCAR</option>
|
||||
<option value="AKTIVA TETAP">AKTIVA TETAP</option>
|
||||
<option value="KEWAJIBAN LANCAR">KEWAJIBAN LANCAR</option>
|
||||
<option value="MODAL">MODAL</option>
|
||||
<option value="PENDAPATAN PENJUALAN">PENDAPATAN PENJUALAN</option>
|
||||
<option value="HARGA POKOK PENJUALAN">HARGA POKOK PENJUALAN</option>
|
||||
<option value="BIAYA PENJUALAN">BIAYA PENJUALAN</option>
|
||||
<option value="BIAYA UMUM DAN ADMINISTRASI">BIAYA UMUM DAN ADMINISTRASI</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Kode Neraca <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_neracaed" id="KODE_NERACA<?= $row['ID_NERACA'] ?>" class="form-control" value="<?= $row['KODE_NERACA'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Neraca <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_neracaed" id="NAMA_NERACA<?= $row['ID_NERACA'] ?>" class="form-control" value="<?= $row['NAMA_NERACA'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Edit Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_array($neraca) || is_object($neraca)) {
|
||||
|
||||
foreach ($neraca as $key) { ?>
|
||||
<div id="modal-hapus<?php echo $key['ID_NERACA']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageNeraca/hapus', array('id' => 'formneracahapus'), array('method' => 'hapus')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><?= $key['KODE_NERACA'] ?> | <?= $key['NAMA_NERACA'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_NERACA'] ?>">
|
||||
<p>Apakah ingin menghapus Data NERACA?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger" onclick="DisableButton(this);">Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Neraca berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Neraca gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,350 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>MASTER DATA</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Master Os</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Os</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Master"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA OS</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Type Os</th>
|
||||
<th class="dark">Nama Os</th>
|
||||
<th class="dark center">FUNGSI</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($os) || is_object($os)) {
|
||||
$no = 1;
|
||||
foreach ($os as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['TYPE_OS']; ?></td>
|
||||
<td><?= $key['NAMA_OS']; ?></td>
|
||||
<?php if ($key['OS_ID']===$key['ID_OS']) { ?>
|
||||
<td class="actions center">
|
||||
<button disabled type="button" class="btn btn-xs btn-default" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_OS'];?>"><i class="fa fa-times"></i></button>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_OS'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_OS']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageOs/save', array('id' => 'formos'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Tambah Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">Type Os <span class="required">*</span></label>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="type_os" id="TYPE_OS" class="form-control populate" required>
|
||||
<option value="" selected>Pilih Type Os</option>
|
||||
<option value="DOS/LINUX">DOS/LINUX</option>
|
||||
<option value="WINDOWS">WINDOWS</option>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Os <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_os" id="NAMA_OS" class="form-control" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($os) || is_object($os)) {
|
||||
foreach ($os as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_OS'] ?>">
|
||||
<?= form_open('ManageOs/edit', array('id' => 'formos'), array('method' => 'edit')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Edit Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Type Os <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="type_osed" class="form-control" required>
|
||||
<option value="<?= $row['TYPE_OS'] ?>" selected=""><?= $row['TYPE_OS'] ?></option>
|
||||
<?php if ($row['TYPE_OS'] === 'DOS/LINUX') { ?>
|
||||
<option value="WINDOWS">WINDOWS</option>
|
||||
<?php } else if ($row['TYPE_OS'] === 'WINDOWS') { ?>
|
||||
<option value="DOS/LINUX">DOS/LINUX</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_os" class="form-control" value="<?= $row['ID_OS']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Os <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_osed" id="NAMA_OS<?= $row['ID_OS'] ?>" class="form-control" value="<?= $row['NAMA_OS'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Edit Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_array($os) || is_object($os)) {
|
||||
|
||||
foreach ($os as $key) { ?>
|
||||
<div id="modal-hapus<?php echo $key['ID_OS']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageOs/hapus', array('id' => 'formoshapus'), array('method' => 'hapus')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><?= $key['NAMA_OS'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_OS'] ?>">
|
||||
<p>Apakah ingin menghapus Data OS?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger" onclick="DisableButton(this);">Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Os berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Os gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,336 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>MASTER DATA</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Master Pajak</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Pajak</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Master"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA PAJAK</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Kode Pajak</th>
|
||||
<th class="dark">Nama Pajak</th>
|
||||
<th class="dark center">FUNGSI</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($pajak) || is_object($pajak)) {
|
||||
$no = 1;
|
||||
foreach ($pajak as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_PAJAK']; ?></td>
|
||||
<td><?= $key['NAMA_PAJAK']; ?></td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_PAJAK'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_PAJAK']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManagePajak/save', array('id' => 'formpajak'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Tambah Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Kode Pajak <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_pajak" id="KODE_PAJAK" class="form-control" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Pajak <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_pajak" id="NAMA_PAJAK" class="form-control" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($pajak) || is_object($pajak)) {
|
||||
foreach ($pajak as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_PAJAK'] ?>">
|
||||
<?= form_open('ManagePajak/edit', array('id' => 'formpajak'), array('method' => 'edit')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Edit Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_pajak" class="form-control" value="<?= $row['ID_PAJAK']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Kode Pajak <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_pajaked" id="KODE_PAJAK<?= $row['ID_PAJAK'] ?>" class="form-control" value="<?= $row['KODE_PAJAK'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Pajak <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_pajaked" id="NAMA_PAJAK<?= $row['ID_PAJAK'] ?>" class="form-control" value="<?= $row['NAMA_PAJAK'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Edit Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_array($pajak) || is_object($pajak)) {
|
||||
|
||||
foreach ($pajak as $key) { ?>
|
||||
<div id="modal-hapus<?php echo $key['ID_PAJAK']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManagePajak/hapus', array('id' => 'formpajakhapus'), array('method' => 'hapus')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><?= $key['KODE_PAJAK'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_PAJAK'] ?>">
|
||||
<p>Apakah ingin menghapus Data Pajak?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger" onclick="DisableButton(this);">Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pajak berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pajak gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,314 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>MASTER DATA</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Master Processor</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Processor</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Master"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA PROCESSOR</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Nama Processor</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($processor) || is_object($processor)) {
|
||||
$no = 1;
|
||||
foreach ($processor as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_PROCESSOR']; ?></td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_PROCESSOR'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_PROCESSOR']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageProcessor/save', array('id' => 'formprocessor'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Tambah Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Processor (MERK|Model) <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_processor" id="NAMA_PROCESSOR" class="form-control" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($processor) || is_object($processor)) {
|
||||
foreach ($processor as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_PROCESSOR'] ?>">
|
||||
<?= form_open('ManageProcessor/edit', array('id' => 'formprocessor'), array('method' => 'edit')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Edit Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_processor" class="form-control" value="<?= $row['ID_PROCESSOR']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Processor (MERK|Model) <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_processored" id="NAMA_PROCESSOR<?= $row['ID_PROCESSOR'] ?>" class="form-control" value="<?= $row['NAMA_PROCESSOR'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Edit Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_array($processor) || is_object($processor)) {
|
||||
|
||||
foreach ($processor as $key) { ?>
|
||||
<div id="modal-hapus<?php echo $key['ID_PROCESSOR']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageProcessor/hapus', array('id' => 'formprocessorhapus'), array('method' => 'hapus')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><?= $key['NAMA_PROCESSOR'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_PROCESSOR'] ?>">
|
||||
<p>Apakah ingin menghapus Data Processor?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger" onclick="DisableButton(this);">Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Processor berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Processor gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,320 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>MASTER DATA</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Master Raid</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Raid</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Master"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA RAID</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Nama Raid</th>
|
||||
<th class="dark center">FUNGSI</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($raid) || is_object($raid)) {
|
||||
$no = 1;
|
||||
foreach ($raid as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_RAID']; ?></td>
|
||||
<?php if ($key['RAID_ID']===$key['ID_RAID']) { ?>
|
||||
<td class="actions center">
|
||||
<button disabled type="button" class="btn btn-xs btn-default" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_RAID'];?>"><i class="fa fa-times"></i></button>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_RAID'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_RAID']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageRaid/save', array('id' => 'formraid'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Tambah Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Raid <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_raid" id="NAMA_RAID" class="form-control" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($raid) || is_object($raid)) {
|
||||
foreach ($raid as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_RAID'] ?>">
|
||||
<?= form_open('ManageRaid/edit', array('id' => 'formraid'), array('method' => 'edit')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Edit Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_raid" class="form-control" value="<?= $row['ID_RAID']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Raid <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_raided" id="NAMA_RAID<?= $row['ID_RAID'] ?>" class="form-control" value="<?= $row['NAMA_RAID'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Edit Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_array($raid) || is_object($raid)) {
|
||||
|
||||
foreach ($raid as $key) { ?>
|
||||
<div id="modal-hapus<?php echo $key['ID_RAID']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageRaid/hapus', array('id' => 'formraidhapus'), array('method' => 'hapus')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><?= $key['NAMA_RAID'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_RAID'] ?>">
|
||||
<p>Apakah ingin menghapus Data RAID?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger" onclick="DisableButton(this);">Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Raid berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Raid gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,314 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>MASTER DATA</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Master Ram</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Ram</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Master"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA RAM</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Nama Ram</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($ram) || is_object($ram)) {
|
||||
$no = 1;
|
||||
foreach ($ram as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_RAM']; ?></td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_RAM'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_RAM']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageRam/save', array('id' => 'formram'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Tambah Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Ram (MERK|Type|Bus|Kapasitas) <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_ram" id="NAMA_RAM" class="form-control" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($ram) || is_object($ram)) {
|
||||
foreach ($ram as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_RAM'] ?>">
|
||||
<?= form_open('ManageRam/edit', array('id' => 'formram'), array('method' => 'edit')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Edit Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_ram" class="form-control" value="<?= $row['ID_RAM']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Ram (MERK|Type|Bus|Kapasitas) <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_ramed" id="NAMA_RAM<?= $row['ID_RAM'] ?>" class="form-control" value="<?= $row['NAMA_RAM'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Edit Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_array($ram) || is_object($ram)) {
|
||||
|
||||
foreach ($ram as $key) { ?>
|
||||
<div id="modal-hapus<?php echo $key['ID_RAM']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageRam/hapus', array('id' => 'formramhapus'), array('method' => 'hapus')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><?= $key['NAMA_RAM'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_RAM'] ?>">
|
||||
<p>Apakah ingin menghapus Data RAM?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger" onclick="DisableButton(this);">Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Ram berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Ram gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,664 @@
|
||||
<?php
|
||||
if ($this->session->userdata('username') != null) {
|
||||
?>
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
||||
|
||||
<title>PROSES | RELASI</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="JSOFT Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="JSOFT.net">
|
||||
|
||||
<!-- Mobile Metas -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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/jquery-ui/css/ui-lightness/jquery-ui-1.10.4.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/morris/morris.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>
|
||||
|
||||
<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>PROSES | RELASI</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Proses | Relasi</span></li>
|
||||
</ol>
|
||||
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- start: page -->
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-12">
|
||||
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/KasMasuk">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-primary">
|
||||
<i class="fa fa-book"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Kas Masuk</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">Rp </strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/KasKeluar">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-secondary">
|
||||
<i class="fa fa-book"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Kas Keluar</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">Rp </strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/BankMasuk">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-success">
|
||||
<i class="fa fa-book"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Bank Masuk</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">Rp </strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/BankKeluar">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-quartenary">
|
||||
<i class="fa fa-book"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Bank Keluar</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">Rp </strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/TransaksiAuto">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-warning">
|
||||
<i class="fa fa-book"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Auto Generate</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">By System</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-info">
|
||||
<a href="<?php echo base_url() ?>index.php/Accounting">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-reply"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Kembali ke Accounting</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">KEMBALI</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<!--<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-info">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageAccountingJurnal">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-envelope-o"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">View</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">JURNAL</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>-->
|
||||
|
||||
|
||||
<!-- <?php if ($this->session->userdata('jabatan') == 'TEKNISI') { ?>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-success">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-medkit"></i>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo base_url() ?>index.php/ManageCheck">
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Data Pengecekan</h4>
|
||||
<div class="info">
|
||||
<strong class="amount"><?= $countcheck ?> Unit Belum Check</strong>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->userdata('jabatan') == 'ADMIN') { ?>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-success">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-phone"></i>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo base_url() ?>index.php/ManageClaim">
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Data Claim</h4>
|
||||
<div class="info">
|
||||
<strong class="amount"><?= $countclaim ?> Unit Belum Claim</strong>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-danger">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-check"></i>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo base_url() ?>index.php/ManageKonfirmasiPengerjaan">
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Data Konfirmasi Admin</h4>
|
||||
<div class="info">
|
||||
<strong class="amount"><?= $countkonfirm ?> Unit Belum Konfirmasi</strong>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-warning">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-paper-plane"></i>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo base_url() ?>index.php/ManageSTCustomer">
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Data Serah Terima</h4>
|
||||
<div class="info">
|
||||
<strong class="amount"><?= $countss ?> Unit Belum Selesai</strong>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-tertiary">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-search"></i>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo base_url() ?>index.php/ManageViewAll">
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Data View Service</h4>
|
||||
<div class="info">
|
||||
<strong class="amount"><?= $countproall ?> Unit Belum Selesai</strong>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-secondary">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-database"></i>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo base_url() ?>index.php/ManageStockAll">
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">LAPORAN SERVICE</h4>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->userdata('jabatan') == 'GUDANG') { ?>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-warning">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-check"></i>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo base_url() ?>index.php/ManageKonfirmasiGudang">
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Data Konfirmasi Gudang</h4>
|
||||
<div class="info">
|
||||
<strong class="amount"><?= $countkongud ?> Unit Belum Konfirmasi</strong>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-secondary">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-search"></i>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo base_url() ?>index.php/ManageViewPcm">
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">View Service Progress</h4>
|
||||
<div class="info">
|
||||
<strong class="amount"><?= $countprogud ?> Unit Masih Proses</strong>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-success">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-database"></i>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo base_url() ?>index.php/ManageStockPcm">
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Data Laporan Service</h4>
|
||||
<div class="info">
|
||||
<strong class="amount"><?= $countlg ?> Unit Service</strong>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php } ?>-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<!-- Modal Master -->
|
||||
<div id="modal-master" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-sm">
|
||||
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title">MASTER SPESIFIKASI</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="form-group">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageProcessor">
|
||||
<div class="widget-summary widget-summary-xs">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon bg-primary">
|
||||
<i class="fa fa-cube"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">PROCESSOR</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageRam">
|
||||
<div class="widget-summary widget-summary-xs">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon bg-secondary">
|
||||
<i class="fa fa-cube"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">RAM</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageSsd">
|
||||
<div class="widget-summary widget-summary-xs">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon bg-tertiary">
|
||||
<i class="fa fa-cube"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">SSD</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageHdd">
|
||||
<div class="widget-summary widget-summary-xs">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon bg-quartenary">
|
||||
<i class="fa fa-cube"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">HDD</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageVga">
|
||||
<div class="widget-summary widget-summary-xs">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon bg-success">
|
||||
<i class="fa fa-cube"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">VGA</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageOs">
|
||||
<div class="widget-summary widget-summary-xs">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon bg-warning">
|
||||
<i class="fa fa-cube"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">OS</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageWarna">
|
||||
<div class="widget-summary widget-summary-xs">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon bg-danger">
|
||||
<i class="fa fa-cube"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">WARNA</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageDvd">
|
||||
<div class="widget-summary widget-summary-xs">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon bg-dark">
|
||||
<i class="fa fa-cube"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">DVD</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageRaid">
|
||||
<div class="widget-summary widget-summary-xs">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon bg-primary">
|
||||
<i class="fa fa-cube"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">RAID CARD</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-right" data-dismiss="modal">Close</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/summernote/summernote.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
setInterval(function() {
|
||||
$.ajax({
|
||||
url: "<?= base_url() ?>index.php/Authority/get_so",
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data: {},
|
||||
success: function(data) {
|
||||
$("#tot-so").html(data.totalSO);
|
||||
}
|
||||
});
|
||||
}, 2000);
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<?php
|
||||
} else {
|
||||
echo "<script>alert('Akses ditolak')</script>";
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,314 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>MASTER DATA</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Master Ssd</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Ssd</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Master"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA SSD</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Nama Ssd</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($ssd) || is_object($ssd)) {
|
||||
$no = 1;
|
||||
foreach ($ssd as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_SSD']; ?></td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_SSD'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_SSD']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageSsd/save', array('id' => 'formssd'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Tambah Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Ssd (MERK|Type|Kapasitas) <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_ssd" id="NAMA_SSD" class="form-control" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($ssd) || is_object($ssd)) {
|
||||
foreach ($ssd as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_SSD'] ?>">
|
||||
<?= form_open('ManageSsd/edit', array('id' => 'formssd'), array('method' => 'edit')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Edit Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_ssd" class="form-control" value="<?= $row['ID_SSD']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Ssd (MERK|Type|Kapasitas) <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_ssded" id="NAMA_SSD<?= $row['ID_SSD'] ?>" class="form-control" value="<?= $row['NAMA_SSD'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Edit Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_array($ssd) || is_object($ssd)) {
|
||||
|
||||
foreach ($ssd as $key) { ?>
|
||||
<div id="modal-hapus<?php echo $key['ID_SSD']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageSsd/hapus', array('id' => 'formssdhapus'), array('method' => 'hapus')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><?= $key['NAMA_SSD'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_SSD'] ?>">
|
||||
<p>Apakah ingin menghapus Data SSD?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger" onclick="DisableButton(this);">Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Ssd berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Ssd gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,400 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>MASTER DATA</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Master Pihak Ke3</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Pihak Ke3</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Master"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA PIHAK KE3</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Nama Pihak Ke3</th>
|
||||
<th class="dark">Alamat</th>
|
||||
<th class="dark">Kota</th>
|
||||
<th class="dark">Nomor Telepon</th>
|
||||
<th class="center dark">FUNGSI</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($tp) || is_object($tp)) {
|
||||
$no = 1;
|
||||
foreach ($tp as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_TP']; ?></td>
|
||||
<td><?= $key['ALAMAT_TP']; ?></td>
|
||||
<td><?= $key['NAMA_KOTA']; ?></td>
|
||||
<td><?= $key['TELP_TP']; ?></td>
|
||||
<?php if ($key['ANGGOTA_ID']===$key['ID_TP']) { ?>
|
||||
<td class="actions center">
|
||||
<button disabled type="button" class="btn btn-xs btn-default" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_TP'];?>"><i class="fa fa-times"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['ANGGOTA_ID']===NULL) { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_TP'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_TP']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageTp/save', array('id' => 'formtp'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Tambah Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Pihak Ke3 <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_tp" id="NAMA_TP" class="form-control" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Alamat</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="alamat_tp" id="ALAMAT_TP" class="form-control">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">Nama Kota <span class="required">*</span></label>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="id_kota" id="ID_KOTA" class="form-control populate" required>
|
||||
<option value="" selected>Pilih Nama Kota</option>
|
||||
<?php if (is_array($kota) || is_object($kota)) {
|
||||
foreach ($kota as $key) { ?>
|
||||
<option value="<?= $key['ID_KOTA'] ?>" ><?= $key['NAMA_KOTA'] ?></option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nomor Telepon</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="telp_tp" id="TELP_TP" class="form-control">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($tp) || is_object($tp)) {
|
||||
foreach ($tp as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_TP'] ?>">
|
||||
<?= form_open('ManageTp/edit', array('id' => 'formtp'), array('method' => 'edit')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Edit Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_tp" class="form-control" value="<?= $row['ID_TP']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Pihak Ke3 <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_tped" id="NAMA_TP<?= $row['ID_TP'] ?>" class="form-control" value="<?= $row['NAMA_TP'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Alamat</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="alamat_tped" id="ALAMAT_TP<?= $row['ID_TP'] ?>" class="form-control" value="<?= $row['ALAMAT_TP'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Kota <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="id_kotaed" id="ID_KOTA<?= $row['ID_TP'] ?>" class="form-control populate" required>
|
||||
<?php if (is_array($kota) || is_object($kota)) {
|
||||
foreach ($kota as $key) {
|
||||
if ($row['KOTA_ID'] == $key['ID_KOTA']) { ?>
|
||||
<option value="<?= $key['ID_KOTA'] ?>"selected> <?= $key['NAMA_KOTA'] ?></option>
|
||||
<?php } else { ?>
|
||||
<option value="<?= $key['ID_KOTA'] ?>"> <?= $key['NAMA_KOTA'] ?></option>
|
||||
<?php }
|
||||
}
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nomor Telepon</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="telp_tped" id="TELP_TP<?= $row['ID_TP'] ?>" class="form-control" value="<?= $row['TELP_TP'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Edit Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_array($tp) || is_object($tp)) {
|
||||
|
||||
foreach ($tp as $key) { ?>
|
||||
<div id="modal-hapus<?php echo $key['ID_TP']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageTp/hapus', array('id' => 'formtphapus'), array('method' => 'hapus')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><?= $key['NAMA_TP'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_TP'] ?>">
|
||||
<p>Apakah ingin menghapus Data Pihak Ke3?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger" onclick="DisableButton(this);">Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pihak Ke3 berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pihak Ke3 gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,350 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>MASTER DATA</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Master Vga</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Vga</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Master"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA VGA</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Type Vga</th>
|
||||
<th class="dark">Nama Vga</th>
|
||||
<th class="dark center">FUNGSI</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($vga) || is_object($vga)) {
|
||||
$no = 1;
|
||||
foreach ($vga as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['TYPE_VGA']; ?></td>
|
||||
<td><?= $key['NAMA_VGA']; ?></td>
|
||||
<?php if ($key['VGA_ID']===$key['ID_VGA']) { ?>
|
||||
<td class="actions center">
|
||||
<button disabled type="button" class="btn btn-xs btn-default" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_VGA'];?>"><i class="fa fa-times"></i></button>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_VGA'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_VGA']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageVga/save', array('id' => 'formvga'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Tambah Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">Type Vga <span class="required">*</span></label>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="type_vga" id="TYPE_VGA" class="form-control populate" required>
|
||||
<option value="" selected>Pilih Type Vga</option>
|
||||
<option value="Internal">Internal</option>
|
||||
<option value="VGA Card">VGA Card</option>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Vga <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_vga" id="NAMA_VGA" class="form-control" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($vga) || is_object($vga)) {
|
||||
foreach ($vga as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_VGA'] ?>">
|
||||
<?= form_open('ManageVga/edit', array('id' => 'formvga'), array('method' => 'edit')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Edit Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Type Vga <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="type_vgaed" class="form-control" required>
|
||||
<option value="<?= $row['TYPE_VGA'] ?>" selected=""><?= $row['TYPE_VGA'] ?></option>
|
||||
<?php if ($row['TYPE_VGA'] === 'Internal') { ?>
|
||||
<option value="VGA Card">VGA Card</option>
|
||||
<?php } else if ($row['TYPE_VGA'] === 'VGA Card') { ?>
|
||||
<option value="Internal">Internal</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_vga" class="form-control" value="<?= $row['ID_VGA']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Vga <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_vgaed" id="NAMA_VGA<?= $row['ID_VGA'] ?>" class="form-control" value="<?= $row['NAMA_VGA'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Edit Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_array($vga) || is_object($vga)) {
|
||||
|
||||
foreach ($vga as $key) { ?>
|
||||
<div id="modal-hapus<?php echo $key['ID_VGA']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageVga/hapus', array('id' => 'formvgahapus'), array('method' => 'hapus')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><?= $key['NAMA_VGA'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_VGA'] ?>">
|
||||
<p>Apakah ingin menghapus Data VGA?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger" onclick="DisableButton(this);">Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Vga berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Vga gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,576 @@
|
||||
<?php
|
||||
if ($this->session->userdata('username') != null) {
|
||||
?>
|
||||
<!doctype html>
|
||||
<html class="fixed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
||||
|
||||
<title>PROSES | ACCOUNTING</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="JSOFT Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="JSOFT.net">
|
||||
|
||||
<!-- Mobile Metas -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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/jquery-ui/css/ui-lightness/jquery-ui-1.10.4.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/morris/morris.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>
|
||||
|
||||
<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>PROSES | ACCOUNTING</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Proses | Accounting</span></li>
|
||||
</ol>
|
||||
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- start: page -->
|
||||
<?php if ($id != NULL AND $id != 1) { ?>
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-12 col-xl-6">
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-info">
|
||||
<a href="<?php echo base_url() ?>index.php/Kasbank">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-archive"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Menu</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">KAS/BANK</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-info">
|
||||
<a href="<?php echo base_url() ?>index.php/DataAccounting">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Menu</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">DATA ACCOUNTING</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-info">
|
||||
<a href="<?php echo base_url() ?>index.php/Laporan">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-book"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Menu</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">LAPORAN</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
<!-- <?php if ($this->session->userdata('jabatan') == 'TEKNISI') { ?>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-success">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-medkit"></i>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo base_url() ?>index.php/ManageCheck">
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Data Pengecekan</h4>
|
||||
<div class="info">
|
||||
<strong class="amount"><?= $countcheck ?> Unit Belum Check</strong>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->userdata('jabatan') == 'ADMIN') { ?>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-success">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-phone"></i>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo base_url() ?>index.php/ManageClaim">
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Data Claim</h4>
|
||||
<div class="info">
|
||||
<strong class="amount"><?= $countclaim ?> Unit Belum Claim</strong>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-danger">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-check"></i>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo base_url() ?>index.php/ManageKonfirmasiPengerjaan">
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Data Konfirmasi Admin</h4>
|
||||
<div class="info">
|
||||
<strong class="amount"><?= $countkonfirm ?> Unit Belum Konfirmasi</strong>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-warning">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-paper-plane"></i>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo base_url() ?>index.php/ManageSTCustomer">
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Data Serah Terima</h4>
|
||||
<div class="info">
|
||||
<strong class="amount"><?= $countss ?> Unit Belum Selesai</strong>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-tertiary">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-search"></i>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo base_url() ?>index.php/ManageViewAll">
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Data View Service</h4>
|
||||
<div class="info">
|
||||
<strong class="amount"><?= $countproall ?> Unit Belum Selesai</strong>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-secondary">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-database"></i>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo base_url() ?>index.php/ManageStockAll">
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">LAPORAN SERVICE</h4>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->userdata('jabatan') == 'GUDANG') { ?>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-warning">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-check"></i>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo base_url() ?>index.php/ManageKonfirmasiGudang">
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Data Konfirmasi Gudang</h4>
|
||||
<div class="info">
|
||||
<strong class="amount"><?= $countkongud ?> Unit Belum Konfirmasi</strong>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-secondary">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-search"></i>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo base_url() ?>index.php/ManageViewPcm">
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">View Service Progress</h4>
|
||||
<div class="info">
|
||||
<strong class="amount"><?= $countprogud ?> Unit Masih Proses</strong>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-success">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-database"></i>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo base_url() ?>index.php/ManageStockPcm">
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Data Laporan Service</h4>
|
||||
<div class="info">
|
||||
<strong class="amount"><?= $countlg ?> Unit Service</strong>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php } ?>-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<!-- Modal Master -->
|
||||
<div id="modal-master" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-sm">
|
||||
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title">MASTER SPESIFIKASI</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="form-group">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageProcessor">
|
||||
<div class="widget-summary widget-summary-xs">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon bg-primary">
|
||||
<i class="fa fa-cube"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">PROCESSOR</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageRam">
|
||||
<div class="widget-summary widget-summary-xs">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon bg-secondary">
|
||||
<i class="fa fa-cube"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">RAM</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageSsd">
|
||||
<div class="widget-summary widget-summary-xs">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon bg-tertiary">
|
||||
<i class="fa fa-cube"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">SSD</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageHdd">
|
||||
<div class="widget-summary widget-summary-xs">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon bg-quartenary">
|
||||
<i class="fa fa-cube"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">HDD</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageVga">
|
||||
<div class="widget-summary widget-summary-xs">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon bg-success">
|
||||
<i class="fa fa-cube"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">VGA</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageOs">
|
||||
<div class="widget-summary widget-summary-xs">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon bg-warning">
|
||||
<i class="fa fa-cube"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">OS</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageWarna">
|
||||
<div class="widget-summary widget-summary-xs">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon bg-danger">
|
||||
<i class="fa fa-cube"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">WARNA</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageDvd">
|
||||
<div class="widget-summary widget-summary-xs">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon bg-dark">
|
||||
<i class="fa fa-cube"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">DVD</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageRaid">
|
||||
<div class="widget-summary widget-summary-xs">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon bg-primary">
|
||||
<i class="fa fa-cube"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">RAID CARD</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-right" data-dismiss="modal">Close</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/summernote/summernote.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
setInterval(function() {
|
||||
$.ajax({
|
||||
url: "<?= base_url() ?>index.php/Authority/get_so",
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data: {},
|
||||
success: function(data) {
|
||||
$("#tot-so").html(data.totalSO);
|
||||
}
|
||||
});
|
||||
}, 2000);
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<?php
|
||||
} else {
|
||||
echo "<script>alert('Akses ditolak')</script>";
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,464 @@
|
||||
<?php
|
||||
if ($this->session->userdata('username') != null) {
|
||||
?>
|
||||
<!doctype html>
|
||||
<html class="fixed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
||||
|
||||
<title>MENU | DATA ACCOUNTING</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="JSOFT Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="JSOFT.net">
|
||||
|
||||
<!-- Mobile Metas -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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/jquery-ui/css/ui-lightness/jquery-ui-1.10.4.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/morris/morris.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>
|
||||
|
||||
<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>MENU | DATA ACCOUNTING</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Data Accounting</span></li>
|
||||
</ol>
|
||||
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- start: page -->
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-12 col-xl-6">
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageBK">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-primary">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Menu</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">BANK KELUAR</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageBM">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-secondary">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Menu</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">BANK MASUK</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageDpPembelian">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-tertiary">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Menu</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">DP BELI</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageDpPenjualan">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-quartenary">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Menu</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">DP JUAL</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageDpPajak">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-success">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Menu</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">DP PAJAK</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageHutangBank">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-warning">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Menu</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">HUTANG BANK</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageHutangDagang">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-danger">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Menu</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">HUTANG DAGANG</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageHutangLain">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-primary">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Menu</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">HUTANG LAIN</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageHutangPajak">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-secondary">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Menu</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">HUTANG PAJAK</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageKK">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-tertiary">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Menu</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">KAS KELUAR</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageKM">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-quartenary">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Menu</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">KAS MASUK</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManagePiutangDagang">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-success">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Menu</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">PIUTANG DAGANG</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManagePiutangKaryawan">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-warning">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Menu</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">PIUTANG KARYAWAN</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManagePiutangPihakKe3">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-danger">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Menu</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">PIUTANG PIHAK KE3</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-info">
|
||||
<a href="<?php echo base_url() ?>index.php/Accounting">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-mail-reply"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Kembali</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">ACCOUNTING</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/summernote/summernote.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
setInterval(function() {
|
||||
$.ajax({
|
||||
url: "<?= base_url() ?>index.php/Authority/get_so",
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data: {},
|
||||
success: function(data) {
|
||||
$("#tot-so").html(data.totalSO);
|
||||
}
|
||||
});
|
||||
}, 2000);
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<?php
|
||||
} else {
|
||||
echo "<script>alert('Akses ditolak')</script>";
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,243 @@
|
||||
<?php
|
||||
if ($this->session->userdata('username') != null) {
|
||||
?>
|
||||
<!doctype html>
|
||||
<html class="fixed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
||||
|
||||
<title>KONSINYASI</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="JSOFT Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="JSOFT.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/jquery-ui/css/ui-lightness/jquery-ui-1.10.4.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/morris/morris.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>
|
||||
|
||||
<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>KONSINYASI</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Konsinyasi</span></li>
|
||||
</ol>
|
||||
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- start: page -->
|
||||
<?php if ($id != NULL AND $id != 1) { ?>
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-12 col-xl-6">
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-secondary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManagePersediaanQTY/dataKonsinyasi">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-tertiary">
|
||||
<i class="fa fa-clock-o"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Proses</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">KONSINYASI (Sales)</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-secondary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManagePersediaanQTY/dataKonsinyasiProses">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-quartenary">
|
||||
<i class="fa fa-clock-o"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Proses</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">KONSINYASI (Gudang)</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-secondary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManagePersediaanQTY/dataKonsinyasiLaku">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-warning">
|
||||
<i class="fa fa-clock-o"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Proses</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">BUKA NOTA (Sales)</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-secondary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManagePersediaanQTY/dataKonsinyasiTarik">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-success">
|
||||
<i class="fa fa-clock-o"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Proses</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">PENARIKAN (Gudang)</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-secondary">
|
||||
<a href="<?php echo base_url() ?>index.php/Persediaan">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-mail-reply"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Kembali</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">PERSEDIAAN</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/summernote/summernote.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
setInterval(function() {
|
||||
$.ajax({
|
||||
url: "<?= base_url() ?>index.php/Authority/get_so",
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data: {},
|
||||
success: function(data) {
|
||||
$("#tot-so").html(data.totalSO);
|
||||
}
|
||||
});
|
||||
}, 2000);
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<?php
|
||||
} else {
|
||||
echo "<script>alert('Akses ditolak')</script>";
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,178 @@
|
||||
<?php
|
||||
if ($this->session->userdata('username') != null) {
|
||||
?>
|
||||
<!doctype html>
|
||||
<html class="fixed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
||||
|
||||
<title>MENU | LAPORAN</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="JSOFT Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="JSOFT.net">
|
||||
|
||||
<!-- Mobile Metas -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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/jquery-ui/css/ui-lightness/jquery-ui-1.10.4.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/morris/morris.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>
|
||||
|
||||
<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>MENU | LAPORAN</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Laporan</span></li>
|
||||
</ol>
|
||||
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- start: page -->
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-12 col-xl-6">
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-info">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageTampilan">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-primary">
|
||||
<i class="fa fa-book"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Menu</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">TAMPILAN</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-info">
|
||||
<a href="<?php echo base_url() ?>index.php/Accounting">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-mail-reply"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Kembali</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">ACCOUNTING</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/summernote/summernote.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
setInterval(function() {
|
||||
$.ajax({
|
||||
url: "<?= base_url() ?>index.php/Authority/get_so",
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data: {},
|
||||
success: function(data) {
|
||||
$("#tot-so").html(data.totalSO);
|
||||
}
|
||||
});
|
||||
}, 2000);
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<?php
|
||||
} else {
|
||||
echo "<script>alert('Akses ditolak')</script>";
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,199 @@
|
||||
<?php
|
||||
if ($this->session->userdata('username') != null) {
|
||||
?>
|
||||
<!doctype html>
|
||||
<html class="fixed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
||||
|
||||
<title>PEMINJAMAN</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="JSOFT Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="JSOFT.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/jquery-ui/css/ui-lightness/jquery-ui-1.10.4.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/morris/morris.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>
|
||||
|
||||
<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>PEMINJAMAN</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Peminjaman</span></li>
|
||||
</ol>
|
||||
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- start: page -->
|
||||
<?php if ($id != NULL AND $id != 1) { ?>
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-12 col-xl-6">
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-secondary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManagePersediaanQTY/dataPeminjaman">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-tertiary">
|
||||
<i class="fa fa-exchange"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Proses</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">PEMINJAMAN</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-secondary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManagePersediaanQTY/dataPengembalian">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-quartenary">
|
||||
<i class="fa fa-exchange"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Proses</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">PENGEMBALIAN</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-secondary">
|
||||
<a href="<?php echo base_url() ?>index.php/Persediaan">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-mail-reply"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Kembali</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">PERSEDIAAN</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/summernote/summernote.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
setInterval(function() {
|
||||
$.ajax({
|
||||
url: "<?= base_url() ?>index.php/Authority/get_so",
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data: {},
|
||||
success: function(data) {
|
||||
$("#tot-so").html(data.totalSO);
|
||||
}
|
||||
});
|
||||
}, 2000);
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<?php
|
||||
} else {
|
||||
echo "<script>alert('Akses ditolak')</script>";
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,221 @@
|
||||
<?php
|
||||
if ($this->session->userdata('username') != null) {
|
||||
?>
|
||||
<!doctype html>
|
||||
<html class="fixed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
||||
|
||||
<title>PENDING</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="JSOFT Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="JSOFT.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/jquery-ui/css/ui-lightness/jquery-ui-1.10.4.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/morris/morris.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>
|
||||
|
||||
<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>PENDING</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Pending</span></li>
|
||||
</ol>
|
||||
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- start: page -->
|
||||
<?php if ($id != NULL AND $id != 1) { ?>
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-12 col-xl-6">
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-secondary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManagePersediaan/dataPending">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-success">
|
||||
<i class="fa fa-external-link"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Proses</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">PENDING (GUDANG)</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-secondary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManagePersediaan/dataPendingPG">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-info">
|
||||
<i class="fa fa-external-link"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Proses</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">PENARIKAN (GUDANG)</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-secondary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManagePersediaan/dataPendingPS">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-danger">
|
||||
<i class="fa fa-external-link"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Proses</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">PENARIKAN (SALES)</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-secondary">
|
||||
<a href="<?php echo base_url() ?>index.php/Persediaan">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-mail-reply"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Kembali</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">PERSEDIAAN</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/summernote/summernote.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
setInterval(function() {
|
||||
$.ajax({
|
||||
url: "<?= base_url() ?>index.php/Authority/get_so",
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data: {},
|
||||
success: function(data) {
|
||||
$("#tot-so").html(data.totalSO);
|
||||
}
|
||||
});
|
||||
}, 2000);
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<?php
|
||||
} else {
|
||||
echo "<script>alert('Akses ditolak')</script>";
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,271 @@
|
||||
<?php
|
||||
if ($this->session->userdata('username') != null) {
|
||||
?>
|
||||
<!doctype html>
|
||||
<html class="fixed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
||||
|
||||
<title>KONFIGURASI AWAL</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="JSOFT Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="JSOFT.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/jquery-ui/css/ui-lightness/jquery-ui-1.10.4.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/morris/morris.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>
|
||||
|
||||
<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>KONFIGURASI AWAL</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Konfigurasi Awal</span></li>
|
||||
</ol>
|
||||
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- start: page -->
|
||||
<?php if ($id === NULL) { ?>
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-12 col-xl-6">
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-primary">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageSetData">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-cog"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Konfigurasi</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">1. DATA BARU</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php } else if ($id === "1") { ?>
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-12 col-xl-6">
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-primary">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageSetData/awalNeraca/1">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-cog"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Konfigurasi</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">1. SET DATA</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-primary">
|
||||
<a href="<?php echo base_url() ?>index.php/SetKasbank">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-cog"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Konfigurasi</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">2. SET KASBANK</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-primary">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageSetStock">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-cog"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Konfigurasi</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">3. SET STOCK</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-primary">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageSetData">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-cog"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Konfigurasi</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">4. KUNCI DATA</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-12 col-xl-6">
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-primary">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageSetData">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-cog"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Konfigurasi <i class="fa fa-lock"></i></h4>
|
||||
<div class="info">
|
||||
<strong class="amount">DATA AWAL</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/summernote/summernote.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
setInterval(function() {
|
||||
$.ajax({
|
||||
url: "<?= base_url() ?>index.php/Authority/get_so",
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data: {},
|
||||
success: function(data) {
|
||||
$("#tot-so").html(data.totalSO);
|
||||
}
|
||||
});
|
||||
}, 2000);
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<?php
|
||||
} else {
|
||||
echo "<script>alert('Akses ditolak')</script>";
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,418 @@
|
||||
<?php
|
||||
if ($this->session->userdata('username') != null) {
|
||||
?>
|
||||
<!doctype html>
|
||||
<html class="fixed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
||||
|
||||
<title>KONFIGURASI | SET KASBANK</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="JSOFT Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="JSOFT.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/jquery-ui/css/ui-lightness/jquery-ui-1.10.4.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/morris/morris.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>
|
||||
|
||||
<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>KONFIGURASI | SET KASBANK</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Konfigurasi | Set Kasbank</span></li>
|
||||
</ol>
|
||||
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- start: page -->
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-12 col-xl-6">
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-primary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageKBBank">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-secondary">
|
||||
<i class="fa fa-cog"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Konfigurasi</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">BANK</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-primary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageKBDpb">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-tertiary">
|
||||
<i class="fa fa-cog"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Konfigurasi</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">DP BELI</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-primary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageKBDpj">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-quartenary">
|
||||
<i class="fa fa-cog"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Konfigurasi</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">DP JUAL</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-primary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageKBDpp">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-success">
|
||||
<i class="fa fa-cog"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Konfigurasi</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">DP PAJAK</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-primary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageKBHba">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-warning">
|
||||
<i class="fa fa-cog"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Konfigurasi</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">HUTANG BANK</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-primary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageKBHda">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-danger">
|
||||
<i class="fa fa-cog"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Konfigurasi</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">HUTANG DAGANG</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-primary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageKBHla">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-info">
|
||||
<i class="fa fa-cog"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Konfigurasi</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">HUTANG LAIN</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-primary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageKBHpa">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-secondary">
|
||||
<i class="fa fa-cog"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Konfigurasi</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">HUTANG PAJAK</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-primary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageKBKas">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-tertiary">
|
||||
<i class="fa fa-cog"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Konfigurasi</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">KAS</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-primary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageKBPda">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-quartenary">
|
||||
<i class="fa fa-cog"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Konfigurasi</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">PIUTANG DAGANG</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-primary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageKBPkar">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-success">
|
||||
<i class="fa fa-cog"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Konfigurasi</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">PIUTANG KARYAWAN</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-primary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManageKBPpi">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-warning">
|
||||
<i class="fa fa-cog"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Konfigurasi</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">PIUTANG PIHAKKE3</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-primary">
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-mail-reply"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Kembali</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">DASHBOARD</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/summernote/summernote.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
setInterval(function() {
|
||||
$.ajax({
|
||||
url: "<?= base_url() ?>index.php/Authority/get_so",
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data: {},
|
||||
success: function(data) {
|
||||
$("#tot-so").html(data.totalSO);
|
||||
}
|
||||
});
|
||||
}, 2000);
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<?php
|
||||
} else {
|
||||
echo "<script>alert('Akses ditolak')</script>";
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,243 @@
|
||||
<?php
|
||||
if ($this->session->userdata('username') != null) {
|
||||
?>
|
||||
<!doctype html>
|
||||
<html class="fixed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
||||
|
||||
<title>SEWA</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="JSOFT Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="JSOFT.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/jquery-ui/css/ui-lightness/jquery-ui-1.10.4.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/morris/morris.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>
|
||||
|
||||
<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>SEWA</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Sewa</span></li>
|
||||
</ol>
|
||||
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- start: page -->
|
||||
<?php if ($id != NULL AND $id != 1) { ?>
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-12 col-xl-6">
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-secondary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManagePersediaan/dataSewa_Sales_A1">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-tertiary">
|
||||
<i class="fa fa-leaf"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Proses</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">SEWA (Sales)</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-secondary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManagePersediaan/dataSewa_Gudang_A1">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-tertiary">
|
||||
<i class="fa fa-leaf"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Proses</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">SEWA (Gudang)</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-secondary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManagePersediaan/dataSewa_Sales_B1">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-quartenary">
|
||||
<i class="fa fa-leaf"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Proses</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">BUKA NOTA (Sales)</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel panel-featured-left panel-featured-secondary">
|
||||
<div class="panel-body">
|
||||
<a href="<?php echo base_url() ?>index.php/ManagePersediaan/dataSewa_Gudang_B1">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-info-col widget-info-col-icon">
|
||||
<div class="summary-icon bg-success">
|
||||
<i class="fa fa-leaf"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Proses</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">PENARIKAN (Gudang)</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-6 col-xl-12">
|
||||
<section class="panel">
|
||||
<div class="panel-body bg-secondary">
|
||||
<a href="<?php echo base_url() ?>index.php/Persediaan">
|
||||
<div class="widget-summary">
|
||||
<div class="widget-summary-col widget-summary-col-icon">
|
||||
<div class="summary-icon">
|
||||
<i class="fa fa-mail-reply"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-summary-col">
|
||||
<div class="summary">
|
||||
<h4 class="title">Kembali</h4>
|
||||
<div class="info">
|
||||
<strong class="amount">PERSEDIAAN</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/summernote/summernote.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
setInterval(function() {
|
||||
$.ajax({
|
||||
url: "<?= base_url() ?>index.php/Authority/get_so",
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data: {},
|
||||
success: function(data) {
|
||||
$("#tot-so").html(data.totalSO);
|
||||
}
|
||||
});
|
||||
}, 2000);
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<?php
|
||||
} else {
|
||||
echo "<script>alert('Akses ditolak')</script>";
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,296 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>PROSES | INPUT ANGSURAN</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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><strong>(Step 3)</strong> | Input Angsuran</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Angsuran</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('index.php/ManageBankMasuk/tambahTransaksi/');
|
||||
echo $id_bankmasuk;?>"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA PIUTANG</h2>
|
||||
<h2 class="panel-title"><?=$title1 ?> : (Debit <?=$title2 ?>)</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Piutang</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Nama Karyawan</th>
|
||||
<th class="dark">Nominal</th>
|
||||
<th class="dark">Sudah Terbayar</th>
|
||||
<th class="center dark">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($piutang) || is_object($piutang)) {
|
||||
$no = 1;
|
||||
foreach ($piutang as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_PKAR']; ?></td>
|
||||
<td><?= $key['TGL']; ?></td>
|
||||
<td><?= $key['NAMA_KARYAWAN']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
|
||||
<?php if ($key['NOMINAL_PKAR']===$key['BLOCKCON']) { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageBankMasuk/detailPKAR/');
|
||||
echo $key['ID_PKAR'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['DPKAR_ID']!=NULL) { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" data-toggle="modal"><i class="fa fa-check"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageBankMasuk/detailPKAR/');
|
||||
echo $key['ID_PKAR'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['DPKAR_ID']===NULL) { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal"><i class="fa fa-times"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageBankMasuk/detailPKAR/');
|
||||
echo $key['ID_PKAR'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['DPKAR_ID']===NULL) { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-success" data-toggle="modal" data-target="#modal-bayar<?php echo $key['ID_PKAR']; ?>"><i class="fa fa-plus"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageBankMasuk/detailPKAR/');
|
||||
echo $key['ID_PKAR'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button disabled type="button" class="btn btn-xs btn-default"><i class="fa fa-times"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<!--Modal Bayar Angsuran-->
|
||||
<?php if (is_array($piutang) || is_object($piutang)) {
|
||||
foreach ($piutang as $key) { ?>
|
||||
<div id="modal-bayar<?php echo $key['ID_PKAR']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageBankMasuk/bayarpkar', array('id' => 'formbankmasukhapusangsuran'), array('method' => 'bayarpkar')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title">Kode Piutang <?= $key['KODE_PKAR'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_PKAR'] ?>">
|
||||
<input type="hidden" name="id_bankmasuk" class="form-control" value="<?php echo $id_bankmasuk ?>">
|
||||
<input type="hidden" name="id_dbm" class="form-control" value="<?php echo $id_dbm ?>">
|
||||
<p>Apakah ingin proses Angsuran?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Proses Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!--Modal Hapus Angsuran-->
|
||||
<?php if (is_array($piutang) || is_object($piutang)) {
|
||||
foreach ($piutang as $key) { ?>
|
||||
<div id="modal-delete<?php echo $key['ID_PKAR']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageBankMasuk/deleteangsuran', array('id' => 'formbankmasukhapusangsuran'), array('method' => 'deleteangsuran')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title">Kode Piutang <?= $key['KODE_PKAR'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_PKAR'] ?>">
|
||||
<p>Apakah ingin reset Angsuran?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-primary" onclick="DisableButton(this);">Reset Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
//$(document).ready(function() {
|
||||
// <?php if ($this->session->flashdata('flash')) { ?>
|
||||
// new PNotify({
|
||||
// title: 'Pemberitahuan',
|
||||
// text: 'Transaksi berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
// type: 'success',
|
||||
// shadow: true
|
||||
// });
|
||||
// <?php } ?>
|
||||
// <?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
// new PNotify({
|
||||
// title: 'Pemberitahuan',
|
||||
// text: 'Transaksi gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
// type: 'error',
|
||||
// shadow: true
|
||||
// });
|
||||
// <?php } ?>
|
||||
//
|
||||
//});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,271 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | LIST BANK KELUAR</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>List Bank Keluar </h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Bank Keluar</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/DataAccounting"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">LIST BANK KELUAR</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Kode Bukti</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Kode Bank</th>
|
||||
<th class="dark">Atas Nama</th>
|
||||
<th class="dark">Nominal</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($bankkeluar) || is_object($bankkeluar)) {
|
||||
$no = 1;
|
||||
foreach ($bankkeluar as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_BANKKELUAR']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['KODE_BANK']; ?></td>
|
||||
<td><?= $key['AN_BANK']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-revisi<?php echo $key['ID_BANKKELUAR']; ?>"><i class="fa fa-arrow-left"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageBK/viewTransaksi/');
|
||||
echo $key['ID_BANKKELUAR'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<?php if (is_array($bankkeluar) || is_object($bankkeluar)) {
|
||||
foreach ($bankkeluar as $row) { ?>
|
||||
<!-- Modal Revisi -->
|
||||
<div class="modal fade" id="modal-revisi<?= $row['ID_BANKKELUAR'] ?>">
|
||||
<?= form_open('ManageBK/revisi', array('id' => 'formbankkeluar'), array('method' => 'revisi')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Bank Keluar akan direvisi, lanjutkan?</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_bankkeluar" class="form-control" value="<?= $row['ID_BANKKELUAR']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Kode Bukti</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_bankkeluar" id="KODE_BANKKELUAR<?= $row['ID_BANKKELUAR'] ?>" class="form-control" value="<?= $row['KODE_BANKKELUAR'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Bank</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_bank" id="KODE_BANK<?= $row['ID_BANKKELUAR'] ?>" class="form-control" value="<?= $row['KODE_BANK'] ?> (<?= $row['AN_BANK'] ?>)" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="decimal" name="debit_bankkeluar" id="DEBIT_BANKKELUAR<?= $row['ID_BANKKELUAR'] ?>" class="form-control" value="<?= $row['DEBIT'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Tanggal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<name="tgl_bankkeluar" id="TGL_BANKKELUAR<?= $row['ID_BANKKELUAR'] ?>" class="form-control" disabled><?= $row['WAKTU'] ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Revisi Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Bank Keluar berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Bank Keluar gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,271 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | LIST BANK MASUK</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>List Bank Masuk </h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Bank Masuk</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/DataAccounting"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">LIST BANK MASUK</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Kode Bukti</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Kode Bank</th>
|
||||
<th class="dark">Atas Nama</th>
|
||||
<th class="dark">Nominal</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($bankmasuk) || is_object($bankmasuk)) {
|
||||
$no = 1;
|
||||
foreach ($bankmasuk as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_BANKMASUK']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['KODE_BANK']; ?></td>
|
||||
<td><?= $key['AN_BANK']; ?></td>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-revisi<?php echo $key['ID_BANKMASUK']; ?>"><i class="fa fa-arrow-left"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageBM/viewTransaksi/');
|
||||
echo $key['ID_BANKMASUK'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<?php if (is_array($bankmasuk) || is_object($bankmasuk)) {
|
||||
foreach ($bankmasuk as $row) { ?>
|
||||
<!-- Modal Revisi -->
|
||||
<div class="modal fade" id="modal-revisi<?= $row['ID_BANKMASUK'] ?>">
|
||||
<?= form_open('ManageBM/revisi', array('id' => 'formbankmasuk'), array('method' => 'revisi')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Bank Masuk akan direvisi, lanjutkan?</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_bankmasuk" class="form-control" value="<?= $row['ID_BANKMASUK']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Kode Bukti</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_bankmasuk" id="KODE_BANKMASUK<?= $row['ID_BANKMASUK'] ?>" class="form-control" value="<?= $row['KODE_BANKMASUK'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Bank</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_bank" id="KODE_BANK<?= $row['ID_BANKMASUK'] ?>" class="form-control" value="<?= $row['KODE_BANK'] ?> (<?= $row['AN_BANK'] ?>)" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="decimal" name="debit_bankmasuk" id="DEBIT_BANKMASUK<?= $row['ID_BANKMASUK'] ?>" class="form-control" value="<?= $row['DEBIT'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Tanggal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<name="tgl_bankmasuk" id="TGL_BANKMASUK<?= $row['ID_BANKMASUK'] ?>" class="form-control" disabled><?= $row['WAKTU'] ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Revisi Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Bank Masuk berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Bank Masuk gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,449 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>PROSES | INPUT BANK KELUAR</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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><strong>(Step 1)</strong> | Input Bank Keluar </h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Bank Keluar</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Kasbank"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA BANK KELUAR</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Kode Bukti</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Kode Bank</th>
|
||||
<th class="dark">Atas Nama</th>
|
||||
<th class="dark">Nominal</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($bankkeluar) || is_object($bankkeluar)) {
|
||||
$no = 1;
|
||||
foreach ($bankkeluar as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_BANKKELUAR']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['KODE_BANK']; ?></td>
|
||||
<td><?= $key['AN_BANK']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
<?php if ($key['DEBIT_BANKKELUAR']===$key['KREDIT_BANKKELUAR'] AND $key['KREDIT_BANKKELUAR']!='0.00') { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" onclick="window.location.href='<?= base_url('index.php/ManageBankKeluar/tambahTransaksi/');
|
||||
echo $key['ID_BANKKELUAR'];?>'"><i class="fa fa-check"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-dark" data-toggle="modal" data-target="#modal-konfirmasi<?php echo $key['ID_BANKKELUAR'];?>"><i class="fa fa-arrow-right"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['DEBIT_BANKKELUAR']===$key['KREDIT_BANKKELUAR'] AND $key['KREDIT_BANKKELUAR']==='0.00') { ?>
|
||||
<td class="actions center">
|
||||
<button disabled type="button" class="btn btn-xs btn-default" onclick="window.location.href='<?= base_url('index.php/ManageBankKeluar/tambahTransaksi/');
|
||||
echo $key['ID_BANKKELUAR'];?>'"><i class="fa fa-times"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_BANKKELUAR'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_BANKKELUAR']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-success" onclick="window.location.href='<?= base_url('index.php/ManageBankKeluar/tambahTransaksi/');
|
||||
echo $key['ID_BANKKELUAR'];?>'"><i class="fa fa-plus"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_BANKKELUAR'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_BANKKELUAR']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageBankKeluar/save', array('id' => 'formbankkeluar'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Tambah Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">Nama Bank <span class="required">*</span></label>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="id_bank" id="ID_BANK" class="form-control populate" required>
|
||||
<option value="" selected>Pilih Nama Bank</option>
|
||||
<?php if (is_array($bank) || is_object($bank)) {
|
||||
foreach ($bank as $key) { ?>
|
||||
<option value="<?= $key['ID_BANK'] ?>" ><?= $key['AN_BANK'] ?> : (<?= $key['KODE_BANK'] ?>, SALDO <?= $key['SALDO'] ?>)</option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">Rp</span>
|
||||
<input type="decimal" name="kredit_bankkeluar" id="KREDIT_BANKKELUAR" class="form-control" placeholder="Nominal" required>
|
||||
</span>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($bankkeluar) || is_object($bankkeluar)) {
|
||||
foreach ($bankkeluar as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_BANKKELUAR'] ?>">
|
||||
<?= form_open('ManageBankKeluar/edit', array('id' => 'formbankkeluar'), array('method' => 'edit')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Edit Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_bankkeluar" class="form-control" value="<?= $row['ID_BANKKELUAR']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Bank <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="id_banked" id="ID_BANK<?= $row['ID_BANKKELUAR'] ?>" class="form-control populate" required>
|
||||
<?php if (is_array($bank) || is_object($bank)) {
|
||||
foreach ($bank as $key) {
|
||||
if ($row['BANK_ID'] == $key['ID_BANK']) { ?>
|
||||
<option value="<?= $key['ID_BANK'] ?>"selected><?= $key['AN_BANK'] ?> : (<?= $key['KODE_BANK'] ?>, SALDO <?= $key['SALDO'] ?>)</option>
|
||||
<?php } else { ?>
|
||||
<option value="<?= $key['ID_BANK'] ?>"><?= $key['AN_BANK'] ?> : (<?= $key['KODE_BANK'] ?>, SALDO <?= $key['SALDO'] ?>)</option>
|
||||
<?php }
|
||||
}
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="decimal" name="kredit_bankkeluared" id="KREDIT_BANKKELUAR<?= $row['ID_BANKKELUAR'] ?>" class="form-control" value="<?= $row['KREDIT_BANKKELUAR'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Edit Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_array($bankkeluar) || is_object($bankkeluar)) {
|
||||
|
||||
foreach ($bankkeluar as $key) { ?>
|
||||
<!-- Modal Hapus -->
|
||||
<div id="modal-hapus<?php echo $key['ID_BANKKELUAR']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageBankKeluar/hapus', array('id' => 'formbankkeluar'), array('method' => 'hapus')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><?= $key['KODE_BANKKELUAR'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_BANKKELUAR'] ?>">
|
||||
<p>Apakah ingin menghapus Bukti Bank Keluar?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger" onclick="DisableButton(this);">Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if (is_array($bankkeluar) || is_object($bankkeluar)) {
|
||||
foreach ($bankkeluar as $row) { ?>
|
||||
<!-- Modal Konfirmasi -->
|
||||
<div class="modal fade" id="modal-konfirmasi<?= $row['ID_BANKKELUAR'] ?>">
|
||||
<?= form_open('ManageBankKeluar/konfirmasi', array('id' => 'formbankkeluar'), array('method' => 'konfirmasi')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Bank Keluar akan diproses, lanjutkan?</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_bankkeluar" class="form-control" value="<?= $row['ID_BANKKELUAR']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Kode Bukti</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_bankkeluar" id="KODE_BANKKELUAR<?= $row['ID_BANKKELUAR'] ?>" class="form-control" value="<?= $row['KODE_BANKKELUAR'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Bank</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_bank" id="KODE_BANK<?= $row['ID_BANKKELUAR'] ?>" class="form-control" value="<?= $row['KODE_BANK'] ?> | <?= $row['AN_BANK'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="decimal" name="kredit_bankkeluar" id="KREDIT_BANKKELUAR<?= $row['ID_BANKKELUAR'] ?>" class="form-control" value="<?= $row['KREDIT'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Tanggal Bank Keluar</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<name="tgl_bankkeluar" id="TGL_BANKKELUAR<?= $row['ID_BANKKELUAR'] ?>" class="form-control" disabled><?= $row['WAKTU'] ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-dark" onclick="DisableButton(this);">Konfirmasi Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Bank Keluar berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Bank Keluar gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,449 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>PROSES | INPUT BANK MASUK</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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><strong>(Step 1)</strong> | Input Bank Masuk </h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Bank Masuk</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Kasbank"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA BANK MASUK</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Kode Bukti</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Kode Bank</th>
|
||||
<th class="dark">Atas Nama</th>
|
||||
<th class="dark">Nominal</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($bankmasuk) || is_object($bankmasuk)) {
|
||||
$no = 1;
|
||||
foreach ($bankmasuk as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_BANKMASUK']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['KODE_BANK']; ?></td>
|
||||
<td><?= $key['AN_BANK']; ?></td>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
<?php if ($key['DEBIT_BANKMASUK']===$key['KREDIT_BANKMASUK'] AND $key['KREDIT_BANKMASUK']!='0.00') { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" onclick="window.location.href='<?= base_url('index.php/ManageBankMasuk/tambahTransaksi/');
|
||||
echo $key['ID_BANKMASUK'];?>'"><i class="fa fa-check"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-dark" data-toggle="modal" data-target="#modal-konfirmasi<?php echo $key['ID_BANKMASUK'];?>"><i class="fa fa-arrow-right"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['DEBIT_BANKMASUK']===$key['KREDIT_BANKMASUK'] AND $key['KREDIT_BANKMASUK']==='0.00') { ?>
|
||||
<td class="actions center">
|
||||
<button disabled type="button" class="btn btn-xs btn-default" onclick="window.location.href='<?= base_url('index.php/ManageBankMasuk/tambahTransaksi/');
|
||||
echo $key['ID_BANKMASUK'];?>'"><i class="fa fa-times"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_BANKMASUK'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_BANKMASUK']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-success" onclick="window.location.href='<?= base_url('index.php/ManageBankMasuk/tambahTransaksi/');
|
||||
echo $key['ID_BANKMASUK'];?>'"><i class="fa fa-plus"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_BANKMASUK'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_BANKMASUK']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageBankMasuk/save', array('id' => 'formbankmasuk'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Tambah Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">Nama Bank <span class="required">*</span></label>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="id_bank" id="ID_BANK" class="form-control populate" required>
|
||||
<option value="" selected>Pilih Nama Bank</option>
|
||||
<?php if (is_array($bank) || is_object($bank)) {
|
||||
foreach ($bank as $key) { ?>
|
||||
<option value="<?= $key['ID_BANK'] ?>" ><?= $key['AN_BANK'] ?> : (<?= $key['KODE_BANK'] ?>, SALDO <?= $key['SALDO'] ?>)</option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">Rp</span>
|
||||
<input type="decimal" name="debit_bankmasuk" id="DEBIT_BANKMASUK" class="form-control" placeholder="Nominal" required>
|
||||
</span>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($bankmasuk) || is_object($bankmasuk)) {
|
||||
foreach ($bankmasuk as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_BANKMASUK'] ?>">
|
||||
<?= form_open('ManageBankMasuk/edit', array('id' => 'formbankmasuk'), array('method' => 'edit')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Edit Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_bankmasuk" class="form-control" value="<?= $row['ID_BANKMASUK']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Bank <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="id_banked" id="ID_BANK<?= $row['ID_BANKMASUK'] ?>" class="form-control populate" required>
|
||||
<?php if (is_array($bank) || is_object($bank)) {
|
||||
foreach ($bank as $key) {
|
||||
if ($row['BANK_ID'] == $key['ID_BANK']) { ?>
|
||||
<option value="<?= $key['ID_BANK'] ?>"selected><?= $key['AN_BANK'] ?> : (<?= $key['KODE_BANK'] ?>, SALDO <?= $key['SALDO'] ?>)</option>
|
||||
<?php } else { ?>
|
||||
<option value="<?= $key['ID_BANK'] ?>"><?= $key['AN_BANK'] ?> : (<?= $key['KODE_BANK'] ?>, SALDO <?= $key['SALDO'] ?>)</option>
|
||||
<?php }
|
||||
}
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="decimal" name="debit_bankmasuked" id="DEBIT_BANKMASUK<?= $row['ID_BANKMASUK'] ?>" class="form-control" value="<?= $row['DEBIT_BANKMASUK'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Edit Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_array($bankmasuk) || is_object($bankmasuk)) {
|
||||
|
||||
foreach ($bankmasuk as $key) { ?>
|
||||
<!-- Modal Hapus -->
|
||||
<div id="modal-hapus<?php echo $key['ID_BANKMASUK']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageBankMasuk/hapus', array('id' => 'formbankmasuk'), array('method' => 'hapus')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><?= $key['KODE_BANKMASUK'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_BANKMASUK'] ?>">
|
||||
<p>Apakah ingin menghapus Bukti Bank Masuk?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger" onclick="DisableButton(this);">Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if (is_array($bankmasuk) || is_object($bankmasuk)) {
|
||||
foreach ($bankmasuk as $row) { ?>
|
||||
<!-- Modal Konfirmasi -->
|
||||
<div class="modal fade" id="modal-konfirmasi<?= $row['ID_BANKMASUK'] ?>">
|
||||
<?= form_open('ManageBankMasuk/konfirmasi', array('id' => 'formbankmasuk'), array('method' => 'konfirmasi')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Bank Masuk akan diproses, lanjutkan?</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_bankmasuk" class="form-control" value="<?= $row['ID_BANKMASUK']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Kode Bukti</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_bankmasuk" id="KODE_BANKMASUK<?= $row['ID_BANKMASUK'] ?>" class="form-control" value="<?= $row['KODE_BANKMASUK'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Bank</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_bank" id="KODE_BANK<?= $row['ID_BANKMASUK'] ?>" class="form-control" value="<?= $row['KODE_BANK'] ?> (<?= $row['AN_BANK'] ?>)" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="decimal" name="debit_bankmasuk" id="DEBIT_BANKMASUK<?= $row['ID_BANKMASUK'] ?>" class="form-control" value="<?= $row['DEBIT'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Tanggal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<name="tgl_bankmasuk" id="TGL_BANKMASUK<?= $row['ID_BANKMASUK'] ?>" class="form-control" disabled><?= $row['WAKTU'] ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-dark" onclick="DisableButton(this);">Konfirmasi Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Bank Masuk berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Bank Masuk gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,174 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>INFORMASI | VIEW DETAIL</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Informasi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Detail Dp Pembelian</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/DataAccounting"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA DP PEMBELIAN</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Nama Supplier</th>
|
||||
<th class="dark">Nama Kota</th>
|
||||
<th class="dark">Alamat</th>
|
||||
<th class="dark">DP Pembelian</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($deskripsi) || is_object($deskripsi)) {
|
||||
$no = 1;
|
||||
foreach ($deskripsi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_SUPPLIER']; ?></td>
|
||||
<td><?= $key['NAMA_KOTA']; ?></td>
|
||||
<td><?= $key['ALAMAT_SUPPLIER']; ?></td>
|
||||
<td><?= $key['SALDO']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,174 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>INFORMASI | VIEW DETAIL</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Informasi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Detail Dp Penjualan</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/DataAccounting"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA DP PENJUALAN</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Nama Pelanggan</th>
|
||||
<th class="dark">Nama Perusahaan</th>
|
||||
<th class="dark">Nama Kota</th>
|
||||
<th class="dark">DP Penjualan</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($deskripsi) || is_object($deskripsi)) {
|
||||
$no = 1;
|
||||
foreach ($deskripsi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_PELANGGAN']; ?></td>
|
||||
<td><?= $key['NAMA_PERUSAHAAN']; ?></td>
|
||||
<td><?= $key['NAMA_KOTA']; ?></td>
|
||||
<td><?= $key['SALDO']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,172 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>INFORMASI | VIEW DETAIL</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Informasi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Detail Dp Pajak</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/DataAccounting"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA DP PAJAK</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Pajak</th>
|
||||
<th class="dark">Nama Pajak</th>
|
||||
<th class="dark">DP Penjualan</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($deskripsi) || is_object($deskripsi)) {
|
||||
$no = 1;
|
||||
foreach ($deskripsi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_PAJAK']; ?></td>
|
||||
<td><?= $key['NAMA_PAJAK']; ?></td>
|
||||
<td><?= $key['SALDO']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,184 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>INFORMASI | VIEW DETAIL</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Informasi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Detail Hutang Bank</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageHutangBank"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA <?= $title1 ?> | NOMINAL <?= $title3 ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center primary">No</th>
|
||||
<th class="primary">Kode Detail</th>
|
||||
<th class="primary">Kode Bukti</th>
|
||||
<th class="primary">Tanggal</th>
|
||||
<th class="primary">Nominal</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($deskripsi) || is_object($deskripsi)) {
|
||||
$no = 1;
|
||||
foreach ($deskripsi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_DHBA']; ?></td>
|
||||
<td><?= $key['KODE_BUKTI']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<?php if ($title2===$title3) { ?>
|
||||
<button type="submit" class="btn btn-primary">Kredit <strong><?= $title2 ?></strong> <i class="fa fa-check"></i></button>
|
||||
<?php } else { ?>
|
||||
<button type="submit" class="btn btn-danger">Kredit <strong><?= $title2 ?></strong> <i class="fa fa-times"></i></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,185 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>INFORMASI | VIEW DETAIL</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Informasi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Detail Hutang Dagang</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageHutangDagang"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA <?= $title1 ?> | NOMINAL <?= $title3 ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center primary">No</th>
|
||||
<th class="primary">Kode Detail</th>
|
||||
<th class="primary">Kode Bukti</th>
|
||||
<th class="primary">Tanggal</th>
|
||||
<th class="primary">Nominal</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($deskripsi) || is_object($deskripsi)) {
|
||||
$no = 1;
|
||||
foreach ($deskripsi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_DHDA']; ?></td>
|
||||
<td><?= $key['KODE_BUKTI']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<?php if ($title2===$title3) { ?>
|
||||
<button type="submit" class="btn btn-primary">Hutang Terbayar <strong><?= $title2 ?></strong> <i class="fa fa-check"></i></button>
|
||||
<?php } else { ?>
|
||||
<button type="submit" class="btn btn-danger">Hutang Terbayar <strong><?= $title2 ?></strong> <i class="fa fa-times"></i></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,204 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>INFORMASI | VIEW DETAIL</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Informasi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Detail Hutang Lain</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageHutangLain"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA <?= $title1 ?> | NOMINAL <?= $title3 ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Detail</th>
|
||||
<th class="dark">Kode Bukti</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Nominal</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($deskripsi) || is_object($deskripsi)) {
|
||||
$no = 1;
|
||||
foreach ($deskripsi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_DHLA']; ?></td>
|
||||
<td><?= $key['KODE_BUKTI']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<?php if ($title2===$title3) { ?>
|
||||
<button type="submit" class="btn btn-primary">Kredit <strong><?= $title2 ?></strong> <i class="fa fa-check"></i></button>
|
||||
<?php } else { ?>
|
||||
<button type="submit" class="btn btn-primary">Kredit <strong><?= $title2 ?></strong> <i class="fa fa-times"></i></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
//$(document).ready(function() {
|
||||
// <?php if ($this->session->flashdata('flash')) { ?>
|
||||
// new PNotify({
|
||||
// title: 'Pemberitahuan',
|
||||
// text: 'Transaksi berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
// type: 'success',
|
||||
// shadow: true
|
||||
// });
|
||||
// <?php } ?>
|
||||
// <?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
// new PNotify({
|
||||
// title: 'Pemberitahuan',
|
||||
// text: 'Transaksi gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
// type: 'error',
|
||||
// shadow: true
|
||||
// });
|
||||
// <?php } ?>
|
||||
//
|
||||
//});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,204 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>INFORMASI | VIEW DETAIL</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Informasi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Detail Hutang Pajak</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageHutangPajak"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA <?= $title1 ?> | NOMINAL <?= $title3 ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Detail</th>
|
||||
<th class="dark">Kode Bukti</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Nominal</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($deskripsi) || is_object($deskripsi)) {
|
||||
$no = 1;
|
||||
foreach ($deskripsi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_DHPA']; ?></td>
|
||||
<td><?= $key['KODE_BUKTI']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<?php if ($title2===$title3) { ?>
|
||||
<button type="submit" class="btn btn-primary">Kredit <strong><?= $title2 ?></strong> <i class="fa fa-check"></i></button>
|
||||
<?php } else { ?>
|
||||
<button type="submit" class="btn btn-primary">Kredit <strong><?= $title2 ?></strong> <i class="fa fa-times"></i></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
//$(document).ready(function() {
|
||||
// <?php if ($this->session->flashdata('flash')) { ?>
|
||||
// new PNotify({
|
||||
// title: 'Pemberitahuan',
|
||||
// text: 'Transaksi berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
// type: 'success',
|
||||
// shadow: true
|
||||
// });
|
||||
// <?php } ?>
|
||||
// <?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
// new PNotify({
|
||||
// title: 'Pemberitahuan',
|
||||
// text: 'Transaksi gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
// type: 'error',
|
||||
// shadow: true
|
||||
// });
|
||||
// <?php } ?>
|
||||
//
|
||||
//});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,185 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>INFORMASI | VIEW DETAIL</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Informasi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Detail Piutang Dagang</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManagePiutangDagang"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA <?= $title1 ?> | NOMINAL <?= $title2 ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Detail</th>
|
||||
<th class="dark">Kode Bukti</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Nominal</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($deskripsi) || is_object($deskripsi)) {
|
||||
$no = 1;
|
||||
foreach ($deskripsi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_DPDA']; ?></td>
|
||||
<td><?= $key['KODE_BUKTI']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<?php if ($title2===$title3) { ?>
|
||||
<button type="submit" class="btn btn-primary">Piutang Terbayar <strong><?= $title3 ?></strong> <i class="fa fa-check"></i></button>
|
||||
<?php } else { ?>
|
||||
<button type="submit" class="btn btn-danger">Piutang Terbayar <strong><?= $title3 ?></strong> <i class="fa fa-times"></i></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,185 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>INFORMASI | VIEW DETAIL</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Informasi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Detail Piutang Karyawan</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManagePiutangKaryawan"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA <?= $title1 ?> | NOMINAL <?= $title3 ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Detail</th>
|
||||
<th class="dark">Kode Bukti</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Nominal</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($deskripsi) || is_object($deskripsi)) {
|
||||
$no = 1;
|
||||
foreach ($deskripsi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_DPKAR']; ?></td>
|
||||
<td><?= $key['KODE_BUKTI']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<?php if ($title2===$title3) { ?>
|
||||
<button type="submit" class="btn btn-primary">Debit <strong><?= $title2 ?></strong> <i class="fa fa-check"></i></button>
|
||||
<?php } else { ?>
|
||||
<button type="submit" class="btn btn-danger">Debit <strong><?= $title2 ?></strong> <i class="fa fa-times"></i></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,204 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>INFORMASI | VIEW DETAIL</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Informasi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Detail Piutang Pihak Ke3</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManagePiutangPihakKe3"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA <?= $title1 ?> | NOMINAL <?= $title3 ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Detail</th>
|
||||
<th class="dark">Kode Bukti</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Nominal</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($deskripsi) || is_object($deskripsi)) {
|
||||
$no = 1;
|
||||
foreach ($deskripsi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_DPPI']; ?></td>
|
||||
<td><?= $key['KODE_BUKTI']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<?php if ($title2===$title3) { ?>
|
||||
<button type="submit" class="btn btn-primary">Debit <strong><?= $title2 ?></strong> <i class="fa fa-check"></i></button>
|
||||
<?php } else { ?>
|
||||
<button type="submit" class="btn btn-danger">Debit <strong><?= $title2 ?></strong> <i class="fa fa-times"></i></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
//$(document).ready(function() {
|
||||
// <?php if ($this->session->flaspdata('flash')) { ?>
|
||||
// new PNotify({
|
||||
// title: 'Pemberitahuan',
|
||||
// text: 'Transaksi berhasil <?= $this->session->flaspdata('flash'); ?>.',
|
||||
// type: 'success',
|
||||
// shadow: true
|
||||
// });
|
||||
// <?php } ?>
|
||||
// <?php if ($this->session->flaspdata('flashgagal')) { ?>
|
||||
// new PNotify({
|
||||
// title: 'Pemberitahuan',
|
||||
// text: 'Transaksi gagal <?= $this->session->flaspdata('flashgagal'); ?>.',
|
||||
// type: 'error',
|
||||
// shadow: true
|
||||
// });
|
||||
// <?php } ?>
|
||||
//
|
||||
//});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,438 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>PROSES | INPUT DETAIL</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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><strong>(Step 3)</strong> | Input Detail</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Detail</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('index.php/ManageBankMasuk/tambahTransaksi/');
|
||||
echo $id_bankmasuk;?>"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DETAIL DATA <?= $title1 ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Piutang Kas</th>
|
||||
<th class="dark">Nama Kas</th>
|
||||
<th class="dark">Debit</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="center dark">RELASI</th>
|
||||
<th class="center dark">FUNGSI</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($detail) || is_object($detail)) {
|
||||
$no = 1;
|
||||
foreach ($detail as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_PKAS']; ?></td>
|
||||
<td><?= $key['NAMA_KAS']; ?></td>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
<td><?= $key['TANGGAL']; ?></td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-success" onclick="window.location.href='<?= base_url('index.php/ManageBankMasuk/tambahPKAS/');
|
||||
echo $key['ID_PKAS'];?>'"><i class="fa fa-plus"></i></button>
|
||||
</td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edittransaksi<?php echo $key['ID_PKAS']; ?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapustransaksi<?php echo $key['ID_PKAS']; ?>"><i class="fa fa-trash-o"></i></button>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageBankMasuk/savedebPKAS', array('id' => 'formbankmasukdetail'), array('method' => 'savedebPKAS')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Tambah Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_bankmasuk" class="form-control" value="<?= $id_bankmasuk?>">
|
||||
<label class="col-md-3 control-label">Nama Neraca <span class="required">*</span></label>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="id_neraca" id="ID_NERACA" class="form-control populate" required>
|
||||
<option value="" selected>Pilih Nama Neraca</option>
|
||||
<?php if (is_array($neraca) || is_object($neraca)) {
|
||||
foreach ($neraca as $key) { ?>
|
||||
<option value="<?= $key['ID_NERACA'] ?>" ><?= $key['KODE_NERACA'] ?> | <?= $key['NAMA_NERACA'] ?></option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal Kredit <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">Rp</span>
|
||||
<input type="decimal" name="kredit_dbm" id="KREDIT_DBM" class="form-control" placeholder="Nominal Kredit" required>
|
||||
</span>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Keterangan</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="ket_dbm" id="KET_DBM" class="form-control">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($transaksi) || is_object($transaksi)) {
|
||||
foreach ($transaksi as $row) { ?>
|
||||
<!-- Modal Edit Transaksi-->
|
||||
<div class="modal fade" id="modal-edittransaksi<?= $row['ID_DBM'] ?>">
|
||||
<?= form_open('ManageBankMasuk/edittransaksi', array('id' => 'formbankmasuktransaksi'), array('method' => 'edittransaksi')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Edit Data Transaksi</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_bankmasuk" class="form-control" value="<?= $id_bankmasuk?>">
|
||||
<input type="hidden" name="id_dbm" class="form-control" value="<?= $row['ID_DBM']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Neraca <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="id_neracaed" id="ID_NERACA<?= $row['ID_DBM'] ?>" class="form-control populate" required>
|
||||
<?php if (is_array($neraca) || is_object($neraca)) {
|
||||
foreach ($neraca as $key) {
|
||||
if ($row['NERACA_ID'] == $key['ID_NERACA']) { ?>
|
||||
<option value="<?= $key['ID_NERACA'] ?>"selected> <?= $key['KODE_NERACA'] ?> | <?= $key['NAMA_NERACA'] ?></option>
|
||||
<?php } else { ?>
|
||||
<option value="<?= $key['ID_NERACA'] ?>"> <?= $key['KODE_NERACA'] ?> | <?= $key['NAMA_NERACA'] ?></option>
|
||||
<?php }
|
||||
}
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal Kredit<span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">Rp</span>
|
||||
<input type="decimal" name="kredit_dbmed" id="KREDIT_DBMED" class="form-control" value="<?= $row['KREDIT_DBM']; ?>">
|
||||
</span>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Keterangan</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="ket_dbmed" id="KET_DBM<?= $row['ID_DBM'] ?>" class="form-control" value="<?= $row['KET_DBM']?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Edit Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_array($transaksi) || is_object($transaksi)) {
|
||||
|
||||
foreach ($transaksi as $key) { ?>
|
||||
<div id="modal-hapustransaksi<?php echo $key['ID_DBM']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageBankMasuk/hapustransaksi', array('id' => 'formbankmasukhapustransaksi'), array('method' => 'hapustransaksi')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title">Kode Neraca <?= $key['KODE_NERACA'] ?> | Nominal <?= $key['DEBIT'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_DBM'] ?>">
|
||||
<p>Apakah ingin menghapus Transaksi?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger" onclick="DisableButton(this);">Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Transaksi berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Transaksi gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashrelasi')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Relasi berhasil <?= $this->session->flashdata('flashrelasi'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashrelasigagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Relasi gagal <?= $this->session->flashdata('flashrelasigagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashtyperelasi')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Type Relasi berhasil <?= $this->session->flashdata('flashtyperelasi'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashtyperelasigagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Type Relasi gagal <?= $this->session->flashdata('flashtyperelasigagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashlink')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Link berhasil <?= $this->session->flashdata('flashlink'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashlinkgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Link gagal <?= $this->session->flashdata('flashlinkgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,324 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>PROSES | INPUT TRANSAKSI</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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><strong>(Step 2)</strong> | Input Transaksi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Transaksi (Auto-Check)</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageDpPembelian"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title"><?= $title1 ?> | <?= $title3 ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Detail</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Alokasi</th>
|
||||
<th class="dark">Kode Hutang</th>
|
||||
<th class="dark">Nama Supplier</th>
|
||||
<th class="dark">Nominal Hutang</th>
|
||||
<th class="center dark">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($transaksi) || is_object($transaksi)) {
|
||||
$no = 1;
|
||||
foreach ($transaksi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_DDPB']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
<td><?= $key['KODE_HDA']; ?></td>
|
||||
<td><?= $key['NAMA_SUPPLIER']; ?>, <?= $key['NAMA_KOTA']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" data-toggle="modal" data-target="#modal-resetdpb<?php echo $key['ID_DDPB']; ?>"><i class="fa fa-undo"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<?php if ($title2===$title3) { ?>
|
||||
<button type="submit" class="btn btn-primary">Total Alokasi DP <strong><?= $title2 ?></strong> <i class="fa fa-check"></i></button>
|
||||
<?php } else { ?>
|
||||
<button type="submit" class="btn btn-danger">Total Alokasi DP <strong><?= $title2 ?></strong> <i class="fa fa-times"></i></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<!--Modal Tambah Transaksi-->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageDpPembelian/savetransaksi', array('id' => 'formdppembelian'), array('method' => 'savetransaksi')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Hutang Dagang </h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_dpb" class="form-control" value="<?= $id_dpb?>">
|
||||
<label class="col-md-12 control-label">Hutang Dagang <span class="required">*</span></label>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="id_hda" id="ID_HDA" class="form-control populate" required>
|
||||
<option value="" selected>Pilih Hutang Dagang</option>
|
||||
<?php if (is_array($hda) || is_object($hda)) {
|
||||
foreach ($hda as $key) { ?>
|
||||
<option value="<?= $key['ID_HDA'] ?>" ><?= $key['KODE_HDA'] ?> | <?= $key['NAMA_SUPPLIER'] ?>, <?= $key['NAMA_KOTA'] ?> : (HUTANG <?= $key['KREDIT'] ?>)</option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">Rp</span>
|
||||
<input type="decimal" name="debit_ddpb" id="DEBIT_DDPB" class="form-control" placeholder="Nominal" required>
|
||||
</span>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<!--Modal Reset DP Pembelian-->
|
||||
<?php if (is_array($transaksi) || is_object($transaksi)) {
|
||||
foreach ($transaksi as $key) { ?>
|
||||
<div id="modal-resetdpb<?php echo $key['ID_DDPB']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageDpPembelian/resetdpb', array('id' => 'formdppembelian'), array('method' => 'resetdpb')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title">Kode Kasbank <?= $key['KODE_DDPB'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_DDPB'] ?>">
|
||||
<p>Apakah ingin reset Alokasi?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-primary" onclick="DisableButton(this);">Reset Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Transaksi berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Transaksi gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashdpb')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Nominal melebihi Sisa DP.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashhda')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Nominal melebihi Sisa Hutang.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,328 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>PROSES | INPUT TRANSAKSI</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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><strong>(Step 2)</strong> | Input Transaksi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Transaksi (Auto-Check)</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageDpPenjualan"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title"><?= $title1 ?> | <?= $title2 ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Detail</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Alokasi</th>
|
||||
<th class="dark">Kode Hutang</th>
|
||||
<th class="dark">Nama Supplier</th>
|
||||
<th class="dark">Nominal Hutang</th>
|
||||
<th class="center dark">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($transaksi) || is_object($transaksi)) {
|
||||
$no = 1;
|
||||
foreach ($transaksi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_DDPJ']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
<td><?= $key['KODE_PDA']; ?></td>
|
||||
<?php if ($key['NAMA_PERUSAHAAN']==NULL OR $key['NAMA_PERUSAHAAN']=="") { ?>
|
||||
<td>(None) : <?= $key['NAMA_PELANGGAN']; ?>, <?= $key['NAMA_KOTA']; ?></td>
|
||||
<?php } else { ?>
|
||||
<td>(<?= $key['NAMA_PERUSAHAAN']; ?>) : <?= $key['NAMA_PELANGGAN']; ?>, <?= $key['NAMA_KOTA']; ?></td>
|
||||
<?php } ?>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" data-toggle="modal" data-target="#modal-resetdpj<?php echo $key['ID_DDPJ']; ?>"><i class="fa fa-undo"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<?php if ($title2===$title3) { ?>
|
||||
<button type="submit" class="btn btn-primary">Total Alokasi DP <strong><?= $title3 ?></strong> <i class="fa fa-check"></i></button>
|
||||
<?php } else { ?>
|
||||
<button type="submit" class="btn btn-danger">Total Alokasi DP <strong><?= $title3 ?></strong> <i class="fa fa-times"></i></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<!--Modal Tambah Transaksi-->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageDpPenjualan/savetransaksi', array('id' => 'formdppenjualan'), array('method' => 'savetransaksi')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Piutang Dagang </h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_dpj" class="form-control" value="<?= $id_dpj?>">
|
||||
<label class="col-md-12 control-label">Piutang Dagang <span class="required">*</span></label>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="id_pda" id="ID_PDA" class="form-control populate" required>
|
||||
<option value="" selected>Pilih Piutang Dagang</option>
|
||||
<?php if (is_array($pda) || is_object($pda)) {
|
||||
foreach ($pda as $key) { ?>
|
||||
<option value="<?= $key['ID_PDA'] ?>" ><?= $key['KODE_PDA'] ?> | <?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?> : (PIUTANG <?= $key['DEBIT'] ?>)</option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">Rp</span>
|
||||
<input type="decimal" name="kredit_ddpj" id="KREDIT_DDPJ" class="form-control" placeholder="Nominal" required>
|
||||
</span>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<!--Modal Reset DP Pembelian-->
|
||||
<?php if (is_array($transaksi) || is_object($transaksi)) {
|
||||
foreach ($transaksi as $key) { ?>
|
||||
<div id="modal-resetdpj<?php echo $key['ID_DDPJ']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageDpPenjualan/resetdpj', array('id' => 'formdppenjualan'), array('method' => 'resetdpj')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title">Kode Kasbank <?= $key['KODE_DDPJ'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_DDPJ'] ?>">
|
||||
<p>Apakah ingin reset Alokasi?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-primary" onclick="DisableButton(this);">Reset Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Transaksi berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Transaksi gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashdpj')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Nominal melebihi Sisa DP.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashpda')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Nominal melebihi Sisa Piutang.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,206 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>PROSES | INPUT ANGSURAN</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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><strong>(Step 4)</strong> | View Angsuran</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Detail Piutang</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="javascript:window.history.go(-1);"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<div class="panel-actions">
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title"><?=$title1 ?> | Kredit <?=$title2 ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center primary">No</th>
|
||||
<th class="primary">Kode Detail</th>
|
||||
<th class="primary">Kode Bukti</th>
|
||||
<th class="primary">Tanggal</th>
|
||||
<th class="primary">Nominal</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($detail) || is_object($detail)) {
|
||||
$no = 1;
|
||||
foreach ($detail as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_DPKAR']; ?></td>
|
||||
<td><?= $key['KOBUK']; ?></td>
|
||||
<td><?= $key['TGL']; ?></td>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<?php if ($title2===$title3) { ?>
|
||||
<button type="submit" class="btn btn-primary">Total Debit <strong><?= $title3 ?></strong> <i class="fa fa-check"></i></button>
|
||||
<?php } else { ?>
|
||||
<button type="submit" class="btn btn-danger">Total Debit <strong><?= $title3 ?></strong> <i class="fa fa-times"></i></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</section>
|
||||
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
//$(document).ready(function() {
|
||||
// <?php if ($this->session->flashdata('flash')) { ?>
|
||||
// new PNotify({
|
||||
// title: 'Pemberitahuan',
|
||||
// text: 'Transaksi berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
// type: 'success',
|
||||
// shadow: true
|
||||
// });
|
||||
// <?php } ?>
|
||||
// <?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
// new PNotify({
|
||||
// title: 'Pemberitahuan',
|
||||
// text: 'Transaksi gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
// type: 'error',
|
||||
// shadow: true
|
||||
// });
|
||||
// <?php } ?>
|
||||
//
|
||||
//});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,260 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>PROSES | DP PAJAK</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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><strong>(Step 1)</strong> | List DP Pajak</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>DP Pajak</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/DataAccounting"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA DP PAJAK</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Kode DP Pajak</th>
|
||||
<th class="dark">Kode Bukti</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Kode Pajak</th>
|
||||
<th class="dark">Nama Pajak</th>
|
||||
<th class="dark">Nominal</th>
|
||||
<th class="dark">Terpakai</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($dppajak) || is_object($dppajak)) {
|
||||
$no = 1;
|
||||
foreach ($dppajak as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_DPP']; ?></td>
|
||||
<td><?= $key['KB']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['KODE_PAJAK']; ?></td>
|
||||
<td><?= $key['NAMA_PAJAK']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<?php if (is_array($dppajak) || is_object($dppajak)) {
|
||||
foreach ($dppajak as $row) { ?>
|
||||
<!-- Modal Konfirmasi -->
|
||||
<div class="modal fade" id="modal-konfirmasi<?= $row['ID_DPP'] ?>">
|
||||
<?= form_open('ManageDpPajak/konfirmasi', array('id' => 'formdppajak'), array('method' => 'konfirmasi')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>DP Pajak akan diproses, lanjutkan?</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_dpb" class="form-control" value="<?= $row['ID_DPP']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Kode DP Pajak</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_dppajak" id="KODE_BANKMASUK<?= $row['ID_DPP'] ?>" class="form-control" value="<?= $row['KODE_DPP'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Kode Bukti</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_dppajak" id="KODE_BANKMASUK<?= $row['ID_DPP'] ?>" class="form-control" value="<?= $row['KB'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Supplier</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_bank" id="KODE_BANK<?= $row['ID_DPP'] ?>" class="form-control" value="<?= $row['NAMA_SUPPLIER'] ?>, <?= $row['NAMA_KOTA'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="decimal" name="debit_dppajak" id="DEBIT_BANKMASUK<?= $row['ID_DPP'] ?>" class="form-control" value="<?= $row['DEBIT'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Tanggal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<name="tgl_dppajak" id="TGL_BANKMASUK<?= $row['ID_DPP'] ?>" class="form-control" disabled><?= $row['WAKTU'] ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-dark" onclick="DisableButton(this);">Konfirmasi Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,270 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>PROSES | DP PEMBELIAN</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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><strong>(Step 1)</strong> | List DP Pembelian</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>DP Pembelian</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/DataAccounting"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA DP PEMBELIAN</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Kode DP Beli</th>
|
||||
<th class="dark">Kode Bukti</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Nama Supplier</th>
|
||||
<th class="dark">Nominal</th>
|
||||
<th class="dark">Terpakai</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($dppembelian) || is_object($dppembelian)) {
|
||||
$no = 1;
|
||||
foreach ($dppembelian as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_DPB']; ?></td>
|
||||
<td><?= $key['KB']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['NAMA_SUPPLIER']; ?>, <?= $key['NAMA_KOTA']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
<?php if ($key['NOMINAL_DPB']===$key['BLOCKCON'] AND $key['NOMINAL_DPB']!='0.00') { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" onclick="window.location.href='<?= base_url('index.php/ManageDpPembelian/tambahTransaksi/');
|
||||
echo $key['ID_DPB'];?>'"><i class="fa fa-check"></i></button>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-success" onclick="window.location.href='<?= base_url('index.php/ManageDpPembelian/tambahTransaksi/');
|
||||
echo $key['ID_DPB'];?>'"><i class="fa fa-plus"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<?php if (is_array($dppembelian) || is_object($dppembelian)) {
|
||||
foreach ($dppembelian as $row) { ?>
|
||||
<!-- Modal Konfirmasi -->
|
||||
<div class="modal fade" id="modal-konfirmasi<?= $row['ID_DPB'] ?>">
|
||||
<?= form_open('ManageDpPembelian/konfirmasi', array('id' => 'formdppembelian'), array('method' => 'konfirmasi')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>DP Pembelian akan diproses, lanjutkan?</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_dpb" class="form-control" value="<?= $row['ID_DPB']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Kode DP Beli</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_dppembelian" id="KODE_BANKMASUK<?= $row['ID_DPB'] ?>" class="form-control" value="<?= $row['KODE_DPB'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Kode Bukti</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_dppembelian" id="KODE_BANKMASUK<?= $row['ID_DPB'] ?>" class="form-control" value="<?= $row['KB'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Supplier</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_bank" id="KODE_BANK<?= $row['ID_DPB'] ?>" class="form-control" value="<?= $row['NAMA_SUPPLIER'] ?>, <?= $row['NAMA_KOTA'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="decimal" name="debit_dppembelian" id="DEBIT_BANKMASUK<?= $row['ID_DPB'] ?>" class="form-control" value="<?= $row['DEBIT'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Tanggal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<name="tgl_dppembelian" id="TGL_BANKMASUK<?= $row['ID_DPB'] ?>" class="form-control" disabled><?= $row['WAKTU'] ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-dark" onclick="DisableButton(this);">Konfirmasi Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,274 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>PROSES | DP PENJUALAN</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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><strong>(Step 1)</strong> | List DP Penjualan</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>DP Penjualan</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/DataAccounting"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA DP PENJUALAN</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Kode DP Jual</th>
|
||||
<th class="dark">Kode Bukti</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Nama Pelanggan</th>
|
||||
<th class="dark">Nominal</th>
|
||||
<th class="dark">Terpakai</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($dppenjualan) || is_object($dppenjualan)) {
|
||||
$no = 1;
|
||||
foreach ($dppenjualan as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_DPJ']; ?></td>
|
||||
<td><?= $key['KB']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<?php if ($key['NAMA_PERUSAHAAN']==NULL OR $key['NAMA_PERUSAHAAN']=="") { ?>
|
||||
<td>(None) : <?= $key['NAMA_PELANGGAN']; ?>, <?= $key['NAMA_KOTA']; ?></td>
|
||||
<?php } else { ?>
|
||||
<td>(<?= $key['NAMA_PERUSAHAAN']; ?>) : <?= $key['NAMA_PELANGGAN']; ?>, <?= $key['NAMA_KOTA']; ?></td>
|
||||
<?php } ?>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
<?php if ($key['NOMINAL_DPJ']===$key['BLOCKCON'] AND $key['NOMINAL_DPJ']!='0.00') { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" onclick="window.location.href='<?= base_url('index.php/ManageDpPenjualan/tambahTransaksi/');
|
||||
echo $key['ID_DPJ'];?>'"><i class="fa fa-check"></i></button>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-success" onclick="window.location.href='<?= base_url('index.php/ManageDpPenjualan/tambahTransaksi/');
|
||||
echo $key['ID_DPJ'];?>'"><i class="fa fa-plus"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<?php if (is_array($dppenjualan) || is_object($dppenjualan)) {
|
||||
foreach ($dppenjualan as $row) { ?>
|
||||
<!-- Modal Konfirmasi -->
|
||||
<div class="modal fade" id="modal-konfirmasi<?= $row['ID_DPJ'] ?>">
|
||||
<?= form_open('ManageDpPenjualan/konfirmasi', array('id' => 'formdppenjualan'), array('method' => 'konfirmasi')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>DP Penjualan akan diproses, lanjutkan?</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_dpj" class="form-control" value="<?= $row['ID_DPJ']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Kode DP Jual</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_dppenjualan" id="KODE_DPJ<?= $row['ID_DPJ'] ?>" class="form-control" value="<?= $row['KODE_DPJ'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Kode Bukti</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_dppenjualan" id="KODE_DPJ<?= $row['ID_DPJ'] ?>" class="form-control" value="<?= $row['KB'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Pelanggan</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_pelanggan" id="NAMA_PELANGGAN<?= $row['ID_DPJ'] ?>" class="form-control" value="<?= $row['NAMA_PELANGGAN'] ?>, <?= $row['NAMA_KOTA'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="decimal" name="kredit_dpj" id="KREDIT_DPJ<?= $row['ID_DPJ'] ?>" class="form-control" value="<?= $row['KREDIT'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Tanggal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<name="tgl_dpj" id="TGL_DPJ<?= $row['ID_DPJ'] ?>" class="form-control" disabled><?= $row['WAKTU'] ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-dark" onclick="DisableButton(this);">Konfirmasi Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,282 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>INFORMASI | HUTANG BANK</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Informasi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Hutang Bank</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/DataAccounting"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA HUTANG BANK</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Kode Hutang</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Kode Bank</th>
|
||||
<th class="dark">Atas Nama</th>
|
||||
<th class="dark">Nominal</th>
|
||||
<th class="dark">Terbayar</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($hutangbank) || is_object($hutangbank)) {
|
||||
$no = 1;
|
||||
foreach ($hutangbank as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_HBA']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['KODE_BANK']; ?></td>
|
||||
<td><?= $key['AN_BANK']; ?></td>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
<?php if ($key['NOMINAL_HBA']===$key['BLOCKCON'] AND $key['BLOCKCON']!='0.00') { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageHutangBank/viewDeskripsi/');
|
||||
echo $key['ID_HBA'];?>'"><i class="fa fa-search"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-dark" data-toggle="modal" data-target="#modal-konfirmasi<?php echo $key['ID_HBA'];?>"><i class="fa fa-arrow-right"></i></button>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageHutangBank/viewDeskripsi/');
|
||||
echo $key['ID_HBA'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<?php if (is_array($hutangbank) || is_object($hutangbank)) {
|
||||
foreach ($hutangbank as $row) { ?>
|
||||
<!-- Modal Konfirmasi -->
|
||||
<div class="modal fade" id="modal-konfirmasi<?= $row['ID_HBA'] ?>">
|
||||
<?= form_open('ManageHutangBank/konfirmasi', array('id' => 'formhutangbank'), array('method' => 'konfirmasi')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Data <?= $row['KODE_HBA'] ?> akan dikunci, lanjutkan?</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_hba" class="form-control" value="<?= $row['ID_HBA']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Kode Bukti</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_hba" id="KODE_HBA<?= $row['ID_HBA'] ?>" class="form-control" value="<?= $row['KODE_HBA'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Bank</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_bank" id="KODE_BANK<?= $row['ID_HBA'] ?>" class="form-control" value="<?= $row['AN_BANK'] ?> (<?= $row['KODE_BANK'] ?>)" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="decimal" name="nominal_hba" id="NOMINAL_HBA<?= $row['ID_HBA'] ?>" class="form-control" value="<?= $row['KREDIT'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Tanggal Hutang Bank</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<name="tgl_hba" id="TGL_HBA<?= $row['ID_HBA'] ?>" class="form-control" disabled><?= $row['WAKTU'] ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-dark" onclick="DisableButton(this);">Kunci Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Hutang Bank berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Hutang Bank gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,281 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>INFORMASI | HUTANG DAGANG</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Informasi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Hutang Dagang</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/DataAccounting"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA HUTANG DAGANG</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Kode Hutang</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Supplier</th>
|
||||
<th class="dark">Surat Jalan</th>
|
||||
<th class="dark">Invoice</th>
|
||||
<th class="dark">Nominal</th>
|
||||
<th class="dark">Terbayar</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($hutangdagang) || is_object($hutangdagang)) {
|
||||
$no = 1;
|
||||
foreach ($hutangdagang as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_HDA']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['NAMA_SUPPLIER']; ?>, <?= $key['NAMA_KOTA']; ?></td>
|
||||
<td><?= $key['SJ_PEMBELIAN']; ?></td>
|
||||
<td><?= $key['INVOICE_PEMBELIAN']; ?></td>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
<?php if ($key['NOMINAL_HDA']===$key['BLOCKCON'] AND $key['BLOCKCON']!='0.00') { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" onclick="window.location.href='<?= base_url('index.php/ManageHutangDagang/viewDeskripsi/');
|
||||
echo $key['ID_HDA'];?>'"><i class="fa fa-check"></i></button>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageHutangDagang/viewDeskripsi/');
|
||||
echo $key['ID_HDA'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<?php if (is_array($hutangdagang) || is_object($hutangdagang)) {
|
||||
foreach ($hutangdagang as $row) { ?>
|
||||
<!-- Modal Konfirmasi -->
|
||||
<div class="modal fade" id="modal-konfirmasi<?= $row['ID_HDA'] ?>">
|
||||
<?= form_open('ManageHutangDagang/konfirmasi', array('id' => 'formhutangdagang'), array('method' => 'konfirmasi')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Data Hutang Dagang akan diproses, lanjutkan?</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_hda" class="form-control" value="<?= $row['ID_HDA']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Invoice Pembelian</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="invoice_pembelian" id="INVOICE_PEMBELIAN<?= $row['ID_HDA'] ?>" class="form-control" value="<?= $row['INVOICE_PEMBELIAN'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Tanggal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<name="tgl_hda" id="TGL_HDA<?= $row['ID_HDA'] ?>" class="form-control" disabled><?= $row['WAKTU'] ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Supplier</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="nama_supplier" id="NAMA_SUPPLIER<?= $row['ID_HDA'] ?>" class="form-control" value="<?= $row['NAMA_SUPPLIER'] ?>, <?= $row['NAMA_KOTA'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="decimal" name="nominal_hda" id="NOMINAL_HDA<?= $row['ID_HDA'] ?>" class="form-control" value="<?= $row['KREDIT'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-dark" onclick="DisableButton(this);">Konfirmasi Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
//$(document).ready(function() {
|
||||
// <?php if ($this->session->flashdata('flash')) { ?>
|
||||
// new PNotify({
|
||||
// title: 'Pemberitahuan',
|
||||
// text: 'Bank Masuk berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
// type: 'success',
|
||||
// shadow: true
|
||||
// });
|
||||
// <?php } ?>
|
||||
// <?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
// new PNotify({
|
||||
// title: 'Pemberitahuan',
|
||||
// text: 'Bank Masuk gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
// type: 'error',
|
||||
// shadow: true
|
||||
// });
|
||||
// <?php } ?>
|
||||
//});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,427 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>INFORMASI | HUTANG LAIN</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Informasi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Hutang Lain</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/DataAccounting"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA HUTANG LAIN</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Kode Hutang</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Nominal</th>
|
||||
<th class="dark">Terbayar</th>
|
||||
<th class="dark">Keterangan</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($hutanglain) || is_object($hutanglain)) {
|
||||
$no = 1;
|
||||
foreach ($hutanglain as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_HLA']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
<td><?= $key['KET_HLA']; ?></td>
|
||||
<?php if ($key['NOMINAL_HLA']===$key['BLOCKCON'] AND $key['BLOCKCON']!='0.00') { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageHutangLain/viewDeskripsi/');
|
||||
echo $key['ID_HLA'];?>'"><i class="fa fa-search"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-dark" data-toggle="modal" data-target="#modal-konfirmasi<?php echo $key['ID_HLA'];?>"><i class="fa fa-arrow-right"></i></button>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageHutangLain/viewDeskripsi/');
|
||||
echo $key['ID_HLA'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageHutangLain/save', array('id' => 'formhutanglain'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Tambah Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">Rp</span>
|
||||
<input type="decimal" name="nominal_hla" id="NOMINAL_HLA" class="form-control" placeholder="Nominal" required>
|
||||
</span>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Keterangan <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="ket_hla" id="KET_HLA" class="form-control" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($hutanglain) || is_object($hutanglain)) {
|
||||
foreach ($hutanglain as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_HLA'] ?>">
|
||||
<?= form_open('ManageHutangLain/edit', array('id' => 'formhutanglain'), array('method' => 'edit')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Edit Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_hla" class="form-control" value="<?= $row['ID_HLA']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">Rp</span>
|
||||
<input type="decimal" name="nominal_hlaed" id="NOMINAL_HLA<?= $row['ID_HLA'] ?>" class="form-control" value="<?= $row['NOMINAL_HLA'] ?>" required>
|
||||
</span>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Keterangan <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="ket_hlaed" id="KET_HLA<?= $row['ID_HLA'] ?>" class="form-control" value="<?= $row['KET_HLA']?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Edit Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_array($hutanglain) || is_object($hutanglain)) {
|
||||
|
||||
foreach ($hutanglain as $key) { ?>
|
||||
<!-- Modal Hapus -->
|
||||
<div id="modal-hapus<?php echo $key['ID_HLA']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageHutangLain/hapus', array('id' => 'formhutanglain'), array('method' => 'hapus')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><?= $key['KODE_HLA'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_HLA'] ?>">
|
||||
<p>Apakah ingin menghapus Bukti Hutang Lain?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger" onclick="DisableButton(this);">Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if (is_array($hutanglain) || is_object($hutanglain)) {
|
||||
foreach ($hutanglain as $row) { ?>
|
||||
<!-- Modal Konfirmasi -->
|
||||
<div class="modal fade" id="modal-konfirmasi<?= $row['ID_HLA'] ?>">
|
||||
<?= form_open('ManageHutangLain/konfirmasi', array('id' => 'formhutanglain'), array('method' => 'konfirmasi')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Data Hutang Lain akan diproses, lanjutkan?</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_hla" class="form-control" value="<?= $row['ID_HLA']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Kode Bukti</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_hla" id="KODE_HLA<?= $row['ID_HLA'] ?>" class="form-control" value="<?= $row['KODE_HLA'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="decimal" name="nominal_hla" id="NOMINAL_HLA<?= $row['ID_HLA'] ?>" class="form-control" value="<?= $row['KREDIT'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Tanggal Hutang Pajak</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<name="tgl_hla" id="TGL_HLA<?= $row['ID_HLA'] ?>" class="form-control" disabled><?= $row['WAKTU'] ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Keterangan</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="ket_hla" id="KET_HLA<?= $row['ID_HLA'] ?>" class="form-control" value="<?= $row['KET_HLA'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-dark" onclick="DisableButton(this);">Konfirmasi Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
//$(document).ready(function() {
|
||||
// <?php if ($this->session->flashdata('flash')) { ?>
|
||||
// new PNotify({
|
||||
// title: 'Pemberitahuan',
|
||||
// text: 'Bank Masuk berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
// type: 'success',
|
||||
// shadow: true
|
||||
// });
|
||||
// <?php } ?>
|
||||
// <?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
// new PNotify({
|
||||
// title: 'Pemberitahuan',
|
||||
// text: 'Bank Masuk gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
// type: 'error',
|
||||
// shadow: true
|
||||
// });
|
||||
// <?php } ?>
|
||||
//});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,271 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>INFORMASI | HUTANG PAJAK</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>Informasi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Hutang Pajak</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/DataAccounting"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA HUTANG PAJAK</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Kode Hutang</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Kode Pajak</th>
|
||||
<th class="dark">Atas Nama</th>
|
||||
<th class="dark">Nominal</th>
|
||||
<th class="dark">Terbayar</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($hutangpajak) || is_object($hutangpajak)) {
|
||||
$no = 1;
|
||||
foreach ($hutangpajak as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_HPA']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['KODE_PAJAK']; ?></td>
|
||||
<td><?= $key['NAMA_PAJAK']; ?></td>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
<?php if ($key['NOMINAL_HPA']===$key['BLOCKCON'] AND $key['BLOCKCON']!='0.00') { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageHutangPajak/viewDeskripsi/');
|
||||
echo $key['ID_HPA'];?>'"><i class="fa fa-search"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-dark" data-toggle="modal" data-target="#modal-konfirmasi<?php echo $key['ID_HPA'];?>"><i class="fa fa-arrow-right"></i></button>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageHutangPajak/viewDeskripsi/');
|
||||
echo $key['ID_HPA'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<?php if (is_array($hutangpajak) || is_object($hutangpajak)) {
|
||||
foreach ($hutangpajak as $row) { ?>
|
||||
<!-- Modal Konfirmasi -->
|
||||
<div class="modal fade" id="modal-konfirmasi<?= $row['ID_HPA'] ?>">
|
||||
<?= form_open('ManageHutangPajak/konfirmasi', array('id' => 'formhutangpajak'), array('method' => 'konfirmasi')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Data <?= $row['KODE_HPA'] ?> akan diproses, lanjutkan?</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_hpa" class="form-control" value="<?= $row['ID_HPA']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Pajak</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_pajak" id="KODE_PAJAK<?= $row['ID_HPA'] ?>" class="form-control" value="<?= $row['KODE_PAJAK'] ?> | <?= $row['NAMA_PAJAK'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="decimal" name="nominal_hpa" id="NOMINAL_HPA<?= $row['ID_HPA'] ?>" class="form-control" value="<?= $row['KREDIT'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Tanggal Hutang Pajak</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<name="tgl_hpa" id="TGL_HPA<?= $row['ID_HPA'] ?>" class="form-control" disabled><?= $row['WAKTU'] ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-dark" onclick="DisableButton(this);">Konfirmasi Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
//$(document).ready(function() {
|
||||
// <?php if ($this->session->flashdata('flash')) { ?>
|
||||
// new PNotify({
|
||||
// title: 'Pemberitahuan',
|
||||
// text: 'Bank Masuk berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
// type: 'success',
|
||||
// shadow: true
|
||||
// });
|
||||
// <?php } ?>
|
||||
// <?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
// new PNotify({
|
||||
// title: 'Pemberitahuan',
|
||||
// text: 'Bank Masuk gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
// type: 'error',
|
||||
// shadow: true
|
||||
// });
|
||||
// <?php } ?>
|
||||
//});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,224 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | GLOBAL</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" />
|
||||
|
||||
<!-- 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>Data Kuantiti</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Stock Global</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">STOCK GLOBAL <strong><a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataGlobalCabutan">(Klik untuk Barang Cabutan)</strong></a></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Jenis Barang</th>
|
||||
<th class="dark">Kode Barang : [Nama Barang]</th>
|
||||
<th class="center dark">HISTORY</th>
|
||||
<th class="center dark">View SN</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_JENIS']; ?></td>
|
||||
<td><?= $key['KODE_BARANG']; ?> : [<?= $key['NAMA_BARANG']; ?>]</td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataGlobalHistory/');
|
||||
echo $key['BARANG_ID'];?>'"><strong></strong><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<?php if ($key['TYPE_JENIS']=="1") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataGlobalSn/');
|
||||
echo $key['BARANG_ID'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button disabled type="button" class="btn btn-xs btn-default"><i class="fa fa-times"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pesanan berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pesanan gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashkuantiti')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pesanan melebihi jumlah stock, hubungi Team Gudang.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashharga')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Harga berhasil <?= $this->session->flashdata('flashharga'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashhargagagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Harga gagal <?= $this->session->flashdata('flashhargagagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,213 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | GLOBAL</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" />
|
||||
|
||||
<!-- 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>Data Kuantiti</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Stock Global</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">STOCK GLOBAL <strong><a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataGlobalAll">(Klik untuk tanpa Cabutan)</strong></a></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Jenis Barang</th>
|
||||
<th class="dark">Kode Barang : [Nama Barang]</th>
|
||||
<th class="center dark">HISTORY</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_JENIS']; ?></td>
|
||||
<td><?= $key['KODE_BARANG']; ?> : [<?= $key['NAMA_BARANG']; ?>]</td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataGlobalHistory/');
|
||||
echo $key['BARANG_ID'];?>'"><strong></strong><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pesanan berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pesanan gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashkuantiti')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pesanan melebihi jumlah stock, hubungi Team Gudang.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashharga')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Harga berhasil <?= $this->session->flashdata('flashharga'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashhargagagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Harga gagal <?= $this->session->flashdata('flashhargagagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,172 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | GLOBAL</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" />
|
||||
|
||||
<!-- 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>Data Kuantiti</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Stock Global</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="javascript:window.history.go(-1);"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<h2 class="panel-title">HISTORY STOCK <strong> | <?=$kode_barang?> : [<?=$nama_barang?>]</strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center info">No</th>
|
||||
<th class="info">Kode Transaksi</th>
|
||||
<th class="info">Tanggal</th>
|
||||
<th class="info">Kode Bukti</th>
|
||||
<th class="info">Surat Jalan</th>
|
||||
<th class="info">Invoice</th>
|
||||
<th class="info">Awal</th>
|
||||
<th class="info">Masuk</th>
|
||||
<th class="info">Keluar</th>
|
||||
<th class="info">Akhir</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_STQ']; ?></td>
|
||||
<td><?= $key['TGL_STQ']; ?></td>
|
||||
<td><?= $key['KODE_BUKTI']; ?></td>
|
||||
<td><?= $key['SJ_STQ']; ?></td>
|
||||
<td><?= $key['INV_STQ']; ?></td>
|
||||
<td><?= $key['QTY_BEFORE']; ?></td>
|
||||
<td><?= $key['QTY_IN']; ?></td>
|
||||
<td><?= $key['QTY_OUT']; ?></td>
|
||||
<td><?= $key['QTY_AFTER']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,540 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | GLOBAL</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" />
|
||||
|
||||
<!-- 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>Data Kuantiti</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Stock Global</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataGlobalAll"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<h2 class="panel-title">STOCK GLOBAL | <strong><?=$kode_barang?> : [<?=$nama_barang?>]</strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center primary">No</th>
|
||||
<th class="primary">Serial Number</th>
|
||||
<th class="primary">Gudang</th>
|
||||
<th class="primary">Status Barang</th>
|
||||
<th class="center primary">DETAIL</th>
|
||||
<th class="center primary">HISTORY</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_SN']; ?></td>
|
||||
<td><?= $key['NAMA_GUDANG']; ?></td>
|
||||
<?php if ($key['STATUS_SN']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Ready</strong></td>
|
||||
<?php } else if ($key['STATUS_SN']=="0") { ?>
|
||||
<td class="text-warning"><strong>Sedang Diproses</strong></td>
|
||||
<?php } else if ($key['STATUS_SN']=="1") { ?>
|
||||
<td class="text-success"><strong>Terjual</strong></td>
|
||||
<?php } else if ($key['STATUS_SN']=="2") { ?>
|
||||
<td class="text-primary"><strong>Pindah Gudang</strong></td>
|
||||
<?php } else if ($key['STATUS_SN']=="3") { ?>
|
||||
<td class="text-dark"><strong>Operasional</strong></td>
|
||||
<?php } else if ($key['STATUS_SN']=="4") { ?>
|
||||
<td class="text-dark"><strong>Retur Pembelian</strong></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['STATUS_SN']==NULL) { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-viewN<?php echo $key['ID_SN']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['STATUS_SN']=="0") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-view01<?php echo $key['ID_SN']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['STATUS_SN']=="1") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-success" data-toggle="modal" data-target="#modal-view01<?php echo $key['ID_SN']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['STATUS_SN']=="2") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" data-toggle="modal" data-target="#modal-view2<?php echo $key['ID_SN']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['STATUS_SN']=="3") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-dark" data-toggle="modal" data-target="#modal-view3<?php echo $key['ID_SN']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataGlobalSnHistory/');
|
||||
echo $key['ID_SN'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- View Null -->
|
||||
<?php if (is_array($informasi) || is_object($informasi)) {
|
||||
foreach ($informasi as $row) { ?>
|
||||
<div class="modal fade" id="modal-viewN<?= $row['ID_SN'] ?>">
|
||||
<?= form_open('ManagePersediaan/viewGlobal', array('id' => 'formpenjualan'), array('method' => 'viewGlobal')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Detail Serial Number</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Kode Pembelian</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Tanggal Pembelian</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="kode_pembelian" id="KODE_PEMBELIAN<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['KODE_PEMBELIAN'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="tgl_sjbeli" id="TGL_SJBELI<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['TGL_SJBELI'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-12 control-label"><strong>Nama Supplier</strong></label>
|
||||
<div class="col-md-12">
|
||||
<input disabled type="text" name="nama_supplier" id="NAMA_SUPPLIER<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['NAMA_SUPPLIER'] ?>, <?= $row['KOTASUPPLIER'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-12 control-label"><strong>Atas Nama (Beli)</strong></label>
|
||||
<div class="col-md-12">
|
||||
<input disabled type="text" name="nama_corp" id="NAMA_CORP<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['ANBELI'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-right" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- View 0 dan 1 -->
|
||||
<?php if (is_array($informasi) || is_object($informasi)) {
|
||||
foreach ($informasi as $row) { ?>
|
||||
<div class="modal fade" id="modal-view01<?= $row['ID_SN'] ?>">
|
||||
<?= form_open('ManagePersediaan/viewGlobal', array('id' => 'formpenjualan'), array('method' => 'viewGlobal')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Detail Serial Number</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Kode Pembelian</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Tanggal Pembelian</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="kode_pembelian" id="KODE_PEMBELIAN<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['KODE_PEMBELIAN'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="tgl_sjbeli" id="TGL_SJBELI<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['TGL_SJBELI'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-12 control-label"><strong>Nama Supplier</strong></label>
|
||||
<div class="col-md-12">
|
||||
<input disabled type="text" name="nama_supplier" id="NAMA_SUPPLIER<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['NAMA_SUPPLIER'] ?>, <?= $row['KOTASUPPLIER'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-12 control-label"><strong>Atas Nama (Beli)</strong></label>
|
||||
<div class="col-md-12">
|
||||
<input disabled type="text" name="nama_corp" id="NAMA_CORP<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['ANBELI'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Kode Penjualan</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Tanggal Penjualan</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="kode_penjualan" id="KODE_PENJUALAN<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['KODE_PENJUALAN'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="tgl_penjualan" id="TGL_PENJUALAN<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['TGL_PENJUALAN'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-12 control-label"><strong>Nama Pelanggan</strong></label>
|
||||
<div class="col-md-12">
|
||||
<?php if ($row['TYPE_PELANGGAN']===NULL) { ?>
|
||||
<input disabled type="text" name="nama_pelanggan" id="NAMA_PELANGGAN<?= $row['ID_SN'] ?>" class="form-control" value="Data Kosong">
|
||||
<?php } else if ($row['TYPE_PELANGGAN']==="User" AND $row['NAMA_PERUSAHAAN']==="") { ?>
|
||||
<input disabled type="text" name="nama_pelanggan" id="NAMA_PELANGGAN<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['TYPE_PELANGGAN'] ?> : [<?= $row['NAMA_PELANGGAN'] ?>, <?= $row['NAMA_KOTA'] ?>]">
|
||||
<?php } else if ($row['TYPE_PELANGGAN']==="User" AND $row['NAMA_PERUSAHAAN']!="") { ?>
|
||||
<input disabled type="text" name="nama_pelanggan" id="NAMA_PELANGGAN<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['TYPE_PELANGGAN'] ?> : [<?= $row['NAMA_PELANGGAN'] ?>, <?= $row['NAMA_KOTA'] ?> (<?= $row['NAMA_PERUSAHAAN'] ?>)]">
|
||||
<?php } else if ($row['NAMA_PELANGGAN']==="") { ?>
|
||||
<input disabled type="text" name="nama_pelanggan" id="NAMA_PELANGGAN<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['TYPE_PELANGGAN'] ?> : [<?= $row['NAMA_PERUSAHAAN'] ?>, <?= $row['NAMA_KOTA'] ?>]">
|
||||
<?php } else { ?>
|
||||
<input disabled type="text" name="nama_pelanggan" id="NAMA_PELANGGAN<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['TYPE_PELANGGAN'] ?> : [<?= $row['NAMA_PERUSAHAAN'] ?>, <?= $row['NAMA_KOTA'] ?> (<?= $row['NAMA_PELANGGAN'] ?>)]">
|
||||
<?php } ?>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label"><strong>Nama Sales</strong></label>
|
||||
<label class="col-md-9 control-label"><strong>Atas Nama (Jual)</strong></label>
|
||||
<div class="col-md-3">
|
||||
<?php if ($row['DJ_ID']!=NULL) { ?>
|
||||
<input disabled type="text" name="nama_sales" id="NAMA_KARYAWAN<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['SADJ'] ?>">
|
||||
<?php } else { ?>
|
||||
<input disabled type="text" name="nama_sales" id="NAMA_KARYAWAN<?= $row['ID_SN'] ?>" class="form-control" value="Data Kosong">
|
||||
<?php } ?>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<?php if ($row['DJ_ID']!=NULL) { ?>
|
||||
<input disabled type="text" name="nama_corp" id="NAMA_CORP<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['ANJUAL'] ?>">
|
||||
<?php } else { ?>
|
||||
<input disabled type="text" name="nama_corp" id="NAMA_CORP<?= $row['ID_SN'] ?>" class="form-control" value="Data Kosong">
|
||||
<?php } ?>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-right" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- View 2 -->
|
||||
<?php if (is_array($informasi) || is_object($informasi)) {
|
||||
foreach ($informasi as $row) { ?>
|
||||
<div class="modal fade" id="modal-view2<?= $row['ID_SN'] ?>">
|
||||
<?= form_open('ManagePersediaan/viewGlobal', array('id' => 'formpenjualan'), array('method' => 'viewGlobal')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Detail Serial Number</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Kode Pembelian</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Tanggal Pembelian</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="kode_pembelian" id="KODE_PEMBELIAN<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['KODE_PEMBELIAN'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="tgl_sjbeli" id="TGL_SJBELI<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['TGL_SJBELI'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-12 control-label"><strong>Nama Supplier</strong></label>
|
||||
<div class="col-md-12">
|
||||
<input disabled type="text" name="nama_supplier" id="NAMA_SUPPLIER<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['NAMA_SUPPLIER'] ?>, <?= $row['KOTASUPPLIER'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-12 control-label"><strong>Atas Nama (Beli)</strong></label>
|
||||
<div class="col-md-12">
|
||||
<input disabled type="text" name="nama_corp" id="NAMA_CORP<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['ANBELI'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($row['GUDANG_ID']=="3") { ?>
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Kode Konsinyasi</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Tanggal Konsinyasi</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="kode_konsinyasi" id="KODE_KONSINYASI<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['KODE_KONSINYASI'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="tgl_konsinyasi" id="TGL_KONSINYASI<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['TGL_KONSINYASI'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else if ($row['GUDANG_ID']=="4") { ?>
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Kode Peminjaman</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Tanggal Peminjaman</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="kode_peminjaman" id="KODE_PEMINJAMAN<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['KODE_PEMINJAMAN'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="tgl_peminjaman" id="TGL_PEMINJAMAN<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['TGL_PEMINJAMAN'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else if ($row['GUDANG_ID']=="6") { ?>
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Kode Service</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Tanggal Service</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="kode_service" id="KODE_SERVICE<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['KODE_SERVICE'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="tgl_service" id="TGL_SERVICE<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['TGL_SERVICE'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else if ($row['GUDANG_ID']=="7") { ?>
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Kode Sewa</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Tanggal Sewa</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="kode_sewa" id="KODE_SEWA<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['KODE_SEWA'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="tgl_sewa" id="TGL_SEWA<?= $row['ID_SN'] ?>" class="form-control" value="<?= $row['TGL_SEWA'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-right" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pesanan berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pesanan gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashkuantiti')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pesanan melebihi jumlah stock, hubungi Team Gudang.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashharga')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Harga berhasil <?= $this->session->flashdata('flashharga'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashhargagagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Harga gagal <?= $this->session->flashdata('flashhargagagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,182 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | GLOBAL</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" />
|
||||
|
||||
<!-- 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>Data Kuantiti</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Stock Global</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataGlobalSn/<?php echo $id_barang ?>"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<h2 class="panel-title">HISTORY SN <strong> | [<?=$nama_sn?>]</strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center info">No</th>
|
||||
<th class="info">Kode Transaksi</th>
|
||||
<th class="info">Tanggal</th>
|
||||
<th class="info">Kode Bukti</th>
|
||||
<th class="info">Surat Jalan</th>
|
||||
<th class="info">Invoice</th>
|
||||
<th class="info">Supplier</th>
|
||||
<th class="info">Pelanggan</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_STSN']; ?></td>
|
||||
<td><?= $key['TGL_STSN']; ?></td>
|
||||
<td><?= $key['KODE_BUKTI']; ?></td>
|
||||
<td><?= $key['SJ_STSN']; ?></td>
|
||||
<td><?= $key['INV_STSN']; ?></td>
|
||||
<?php if ($key['SUPPLIER_ID']==NULL) { ?>
|
||||
<td></td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['NAMA_SUPPLIER']; ?>, <?= $key['KOTASUPPLIER']; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['PELANGGAN_ID']==NULL) { ?>
|
||||
<td></td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']==="User" AND $key['NAMA_PERUSAHAAN']==="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']==="User" AND $key['NAMA_PERUSAHAAN']!="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?> (<?= $key['NAMA_PERUSAHAAN'] ?>)]</td>
|
||||
<?php } else if ($key['NAMA_PELANGGAN']==="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PERUSAHAAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PERUSAHAAN'] ?>, <?= $key['NAMA_KOTA'] ?> (<?= $key['NAMA_PELANGGAN'] ?>)]</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,200 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | KONSINYASI</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" />
|
||||
|
||||
<!-- 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>Data Konsinyasi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Konsinyasi</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">KONSINYASI <strong><a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataKonsinyasiAll">(Klik untuk Semua Data Konsinyasi)</strong></a></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Konsinyasi</th>
|
||||
<th class="dark">Sales</th>
|
||||
<th class="dark">Pelanggan</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Tempo</th>
|
||||
<th class="dark">Surat Jalan</th>
|
||||
<th class="dark">Status</th>
|
||||
<th class="center dark">HISTORY</th>
|
||||
<th class="center dark">View SN</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_KONSINYASI']; ?></td>
|
||||
<td><?= $key['NAMA_KARYAWAN']; ?></td>
|
||||
<?php if ($key['TYPE_PELANGGAN']==="User" AND $key['NAMA_PERUSAHAAN']==="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']==="User" AND $key['NAMA_PERUSAHAAN']!="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?> (<?= $key['NAMA_PERUSAHAAN'] ?>)]</td>
|
||||
<?php } else if ($key['NAMA_PELANGGAN']==="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PERUSAHAAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PERUSAHAAN'] ?>, <?= $key['NAMA_KOTA'] ?> (<?= $key['NAMA_PELANGGAN'] ?>)]</td>
|
||||
<?php } ?>
|
||||
<td><?= $key['TGL_KONSINYASI']; ?></td>
|
||||
<?php if ($tgl>=$key['TEMPO_KONSINYASI'] AND $key['STATUS_KONSINYASI']=="0") { ?>
|
||||
<td class="text-danger"><strong><?= $key['TEMPO_KONSINYASI']; ?></strong></td>
|
||||
<?php } else if ($tgl>=$key['TEMPO_KONSINYASI'] AND $key['STATUS_KONSINYASI']==NULL) { ?>
|
||||
<td class="text-danger"><strong><?= $key['TEMPO_KONSINYASI']; ?></strong></td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['TEMPO_KONSINYASI']; ?></td>
|
||||
<?php } ?>
|
||||
<td><?= $key['SJ_KONSINYASI']; ?></td>
|
||||
<?php if ($key['STATUS_KONSINYASI']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Proses Internal</strong></td>
|
||||
<?php } else if ($key['STATUS_KONSINYASI']=="0") { ?>
|
||||
<td class="text-warning"><strong>Sedang Konsinyasi</strong></td>
|
||||
<?php } else if ($key['STATUS_KONSINYASI']=="1") { ?>
|
||||
<td class="text-success"><strong>Selesai Konsinyasi</strong></td>
|
||||
<?php } ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataKonsinyasiDK/');
|
||||
echo $key['ID_KONSINYASI'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataKonsinyasiSn/');
|
||||
echo $key['ID_KONSINYASI'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,199 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | KONSINYASI</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" />
|
||||
|
||||
<!-- 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>Data Konsinyasi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Konsinyasi</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<h2 class="panel-title">KONSINYASI <strong><a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataKonsinyasiAktif">(Klik untuk Data Konsinyasi berjalan)</strong></a></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Konsinyasi</th>
|
||||
<th class="dark">Sales</th>
|
||||
<th class="dark">Pelanggan</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Tempo</th>
|
||||
<th class="dark">Surat Jalan</th>
|
||||
<th class="dark">Status</th>
|
||||
<th class="center dark">HISTORY</th>
|
||||
<th class="center dark">View SN</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_KONSINYASI']; ?></td>
|
||||
<td><?= $key['NAMA_KARYAWAN']; ?></td>
|
||||
<?php if ($key['TYPE_PELANGGAN']==="User" AND $key['NAMA_PERUSAHAAN']==="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']==="User" AND $key['NAMA_PERUSAHAAN']!="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?> (<?= $key['NAMA_PERUSAHAAN'] ?>)]</td>
|
||||
<?php } else if ($key['NAMA_PELANGGAN']==="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PERUSAHAAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PERUSAHAAN'] ?>, <?= $key['NAMA_KOTA'] ?> (<?= $key['NAMA_PELANGGAN'] ?>)]</td>
|
||||
<?php } ?>
|
||||
<td><?= $key['TGL_KONSINYASI']; ?></td>
|
||||
<?php if ($tgl>=$key['TEMPO_KONSINYASI'] AND $key['STATUS_KONSINYASI']=="0") { ?>
|
||||
<td class="text-danger"><strong><?= $key['TEMPO_KONSINYASI']; ?></strong></td>
|
||||
<?php } else if ($tgl>=$key['TEMPO_KONSINYASI'] AND $key['STATUS_KONSINYASI']==NULL) { ?>
|
||||
<td class="text-danger"><strong><?= $key['TEMPO_KONSINYASI']; ?></strong></td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['TEMPO_KONSINYASI']; ?></td>
|
||||
<?php } ?>
|
||||
<td><?= $key['SJ_KONSINYASI']; ?></td>
|
||||
<?php if ($key['STATUS_KONSINYASI']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Proses Internal</strong></td>
|
||||
<?php } else if ($key['STATUS_KONSINYASI']=="0") { ?>
|
||||
<td class="text-warning"><strong>Sedang Konsinyasi</strong></td>
|
||||
<?php } else if ($key['STATUS_KONSINYASI']=="1") { ?>
|
||||
<td class="text-success"><strong>Selesai Konsinyasi</strong></td>
|
||||
<?php } ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataKonsinyasiDK/');
|
||||
echo $key['ID_KONSINYASI'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataKonsinyasiSn/');
|
||||
echo $key['ID_KONSINYASI'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,161 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | KONSINYASI</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" />
|
||||
|
||||
<!-- 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>Data Konsinyasi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Konsinyasi</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="javascript:window.history.go(-1);"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DAFTAR KONSINYASI <strong>| <?=$kode_konsinyasi?></strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center info">No</th>
|
||||
<th class="info">Kode Barang : [Nama Barang]</th>
|
||||
<th class="info">Kuantiti</th>
|
||||
<th class="info">Keterangan</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_BARANG']; ?> : [<?= $key['NAMA_BARANG']; ?>]</td>
|
||||
<td><?= $key['QTY_DK']; ?></td>
|
||||
<td><?= $key['KET_DK']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,196 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | KONSINYASI</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" />
|
||||
|
||||
<!-- 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>Data Konsinyasi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Konsinyasi</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="javascript:window.history.go(-1);"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA SN</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center primary">No</th>
|
||||
<th class="primary">Kode Barang : [Nama Barang]</th>
|
||||
<th class="primary">Serial Number</th>
|
||||
<th class="primary">Tanggal</th>
|
||||
<th class="primary">Kode Bukti</th>
|
||||
<th class="primary">Surat Jalan</th>
|
||||
<th class="primary">Status</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_BARANG']; ?> : [<?= $key['NAMA_BARANG']; ?>]</td>
|
||||
<?php if ($key['NAMA_SN']==NULL) { ?>
|
||||
<td>NON-SN (<?= $key['QTY_DK']; ?> Unit)</td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['NAMA_SN']; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['STATUS_KONSI']==NULL) { ?>
|
||||
<td></td>
|
||||
<?php } else if ($key['STATUS_KONSI']=="0") { ?>
|
||||
<td><?= $key['TGL_PENJUALAN']; ?></td>
|
||||
<?php } else if ($key['STATUS_KONSI']=="1") { ?>
|
||||
<td><?= $key['TGL_PK']; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['STATUS_KONSI']==NULL) { ?>
|
||||
<td></td>
|
||||
<?php } else if ($key['STATUS_KONSI']=="0") { ?>
|
||||
<td><?= $key['KODE_PENJUALAN']; ?></td>
|
||||
<?php } else if ($key['STATUS_KONSI']=="1") { ?>
|
||||
<td><?= $key['KODE_PK']; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['STATUS_KONSI']==NULL) { ?>
|
||||
<td></td>
|
||||
<?php } else if ($key['STATUS_KONSI']=="0") { ?>
|
||||
<td><?= $key['SJ_PENJUALAN']; ?></td>
|
||||
<?php } else if ($key['STATUS_KONSI']=="1") { ?>
|
||||
<td><?= $key['SJ_PK']; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['STATUS_KONSI']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Sedang Konsinyasi</strong></td>
|
||||
<?php } else if ($key['STATUS_KONSI']=="0") { ?>
|
||||
<td class="text-warning"><strong>Laku</strong></td>
|
||||
<?php } else if ($key['STATUS_KONSI']=="1") { ?>
|
||||
<td class="text-success"><strong>Sudah Kembali</strong></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,235 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | OPERASIONAL</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" />
|
||||
|
||||
<!-- 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>Data Operasional</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Operasional</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">OPERASIONAL</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Operasional</th>
|
||||
<th class="dark">Kode Barang : [Nama Barang]</th>
|
||||
<th class="dark">Kuantiti</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Status</th>
|
||||
<th class="center dark">Keterangan</th>
|
||||
<th class="center dark">View SN</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_OPERASIONAL']; ?></td>
|
||||
<td><?= $key['KODE_BARANG']; ?> : [<?= $key['NAMA_BARANG']; ?>]</td>
|
||||
<td><?= $key['QTY_OPERASIONAL']; ?></td>
|
||||
<td><?= $key['TGL_OPERASIONAL']; ?></td>
|
||||
<?php if ($key['STATUS_OPERASIONAL']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Sedang Proses</strong></td>
|
||||
<?php } else if ($key['STATUS_OPERASIONAL']=="1") { ?>
|
||||
<td class="text-success"><strong>Asset Operasional</strong></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['STATUS_OPERASIONAL']==NULL) { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-keterangan<?php echo $key['ID_OPERASIONAL']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['STATUS_OPERASIONAL']=="1") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-success" data-toggle="modal" data-target="#modal-keterangan<?php echo $key['ID_OPERASIONAL']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<?php if ($key['TYPE_JENIS']=="1") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataOperasionalSn/');
|
||||
echo $key['ID_OPERASIONAL'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button disabled type="button" class="btn btn-xs btn-default"><i class="fa fa-times"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- View Keterangan -->
|
||||
<?php if (is_array($informasi) || is_object($informasi)) {
|
||||
foreach ($informasi as $row) { ?>
|
||||
<div class="modal fade" id="modal-keterangan<?= $row['ID_OPERASIONAL'] ?>">
|
||||
<?= form_open('ManagePersediaan/viewGlobal', array('id' => 'formpenjualan'), array('method' => 'viewGlobal')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Data <strong>| <?=$row['KODE_OPERASIONAL']?></strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Keterangan</label>
|
||||
</div>
|
||||
<?php if ($row['KET_OPERASIONAL']==NULL OR $row['KET_OPERASIONAL']=="") { ?>
|
||||
<div class="col-md-12"><strong>Data Kosong</strong>
|
||||
<?php } else { ?>
|
||||
<div class="col-md-12"><strong><?= $row['KET_OPERASIONAL'] ?></strong>
|
||||
<?php } ?>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-right" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,158 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | OPERASIONAL</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" />
|
||||
|
||||
<!-- 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>Data Operasional</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Operasional</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="javascript:window.history.go(-1);"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<h2 class="panel-title"><?=$qty_operasional?> Unit <strong>| <?=$kode_barang?> : [<?=$nama_barang?>]</strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($informasi!=NULL) { ?>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center info">No</th>
|
||||
<th class="info">Serial Number</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_SN']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,178 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | PEMBELIAN</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" />
|
||||
|
||||
<!-- 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>Data Pembelian</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Pembelian</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">PEMBELIAN <strong><a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataPembelianAll">(Klik untuk Semua Pembelian)</strong></a></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Pembelian</th>
|
||||
<th class="dark">Atas Nama</th>
|
||||
<th class="dark">Supplier</th>
|
||||
<th class="dark">Status</th>
|
||||
<th class="center dark">HISTORY</th>
|
||||
<th class="center dark">View SN</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_PEMBELIAN']; ?></td>
|
||||
<td><?= $key['NAMA_CORP']; ?></td>
|
||||
<td><?= $key['NAMA_SUPPLIER']; ?>, <?= $key['NAMA_KOTA']; ?></td>
|
||||
<?php if ($key['STATUS_PEMBELIAN']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Proses Gudang</strong></td>
|
||||
<?php } else if ($key['STATUS_PEMBELIAN']=="0") { ?>
|
||||
<td class="text-warning"><strong>Proses Finance</strong></td>
|
||||
<?php } else if ($key['STATUS_PEMBELIAN']=="1") { ?>
|
||||
<td class="text-success"><strong>Pembelian Selesai</strong></td>
|
||||
<?php } ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataPembelianDB/');
|
||||
echo $key['ID_PEMBELIAN'];?>'"><strong></strong><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataPembelianSn/');
|
||||
echo $key['ID_PEMBELIAN'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,178 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | PEMBELIAN</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" />
|
||||
|
||||
<!-- 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>Data Pembelian</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Pembelian</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">PEMBELIAN <strong><a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataPembelianAktif">(Klik untuk Pembelian berjalan)</strong></a></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Pembelian</th>
|
||||
<th class="dark">Atas Nama</th>
|
||||
<th class="dark">Supplier</th>
|
||||
<th class="dark">Status</th>
|
||||
<th class="center dark">HISTORY</th>
|
||||
<th class="center dark">View SN</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_PEMBELIAN']; ?></td>
|
||||
<td><?= $key['NAMA_CORP']; ?></td>
|
||||
<td><?= $key['NAMA_SUPPLIER']; ?>, <?= $key['NAMA_KOTA']; ?></td>
|
||||
<?php if ($key['STATUS_PEMBELIAN']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Proses Gudang</strong></td>
|
||||
<?php } else if ($key['STATUS_PEMBELIAN']=="0") { ?>
|
||||
<td class="text-warning"><strong>Proses Finance</strong></td>
|
||||
<?php } else if ($key['STATUS_PEMBELIAN']=="1") { ?>
|
||||
<td class="text-success"><strong>Pembelian Selesai</strong></td>
|
||||
<?php } ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataPembelianDB/');
|
||||
echo $key['ID_PEMBELIAN'];?>'"><strong></strong><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataPembelianSn/');
|
||||
echo $key['ID_PEMBELIAN'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,169 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | PEMBELIAN</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" />
|
||||
|
||||
<!-- 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>Data Pembelian</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Daftar Pembelian</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="javascript:window.history.go(-1);"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DAFTAR BELI <strong>| <?=$kode_pembelian?></strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center info">No</th>
|
||||
<th class="info">Kode Barang : [Nama Barang]</th>
|
||||
<th class="info">Kuantiti</th>
|
||||
<th class="info">Harga</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_BARANG']; ?> : [<?= $key['NAMA_BARANG']; ?>]</td>
|
||||
<td><?= $key['QTY_DB']; ?></td>
|
||||
<td><?= $key['HARGA']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="submit" class="btn btn-primary">TOTAL <strong>Rp <?php echo number_format($total_harga,2); ?></strong></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</section>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,172 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | PEMBELIAN</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" />
|
||||
|
||||
<!-- 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>Data Pembelian</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Serial Number</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="javascript:window.history.go(-1);"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DETAIL SN <strong>| <?=$kode_pembelian?></strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center primary">No</th>
|
||||
<th class="primary">Kode Barang : [Nama Barang]</th>
|
||||
<th class="primary">Serial Number</th>
|
||||
<th class="primary">Status</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_BARANG']; ?> : [<?= $key['NAMA_BARANG']; ?>]</td>
|
||||
<td><?= $key['NAMA_SN']; ?></td>
|
||||
<?php if ($key['STATUS_SN']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Ready</strong></td>
|
||||
<?php } else if ($key['STATUS_SN']=="0") { ?>
|
||||
<td class="text-warning"><strong>Sedang Diproses</strong></td>
|
||||
<?php } else if ($key['STATUS_SN']=="1") { ?>
|
||||
<td class="text-success"><strong>Terjual</strong></td>
|
||||
<?php } else if ($key['STATUS_SN']=="2") { ?>
|
||||
<td class="text-primary"><strong>Pindah Gudang</strong></td>
|
||||
<?php } else if ($key['STATUS_SN']=="3") { ?>
|
||||
<td class="text-dark"><strong>Operasional</strong></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,353 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | PEMINJAMAN</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" />
|
||||
|
||||
<!-- 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>Data Peminjaman</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Peminjaman</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">PEMINJAMAN <strong><a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataPeminjamanAll">(Klik untuk Semua Data Peminjaman)</strong></a></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Peminjaman</th>
|
||||
<th class="dark">Kode Barang : [Nama Barang]</th>
|
||||
<th class="dark">Kuantiti</th>
|
||||
<th class="dark">Tanggal Pinjam</th>
|
||||
<th class="dark">Status</th>
|
||||
<th class="center dark">DETAIL</th>
|
||||
<th class="center dark">View SN</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_PEMINJAMAN']; ?></td>
|
||||
<td><?= $key['KODE_BARANG']; ?> : [<?= $key['NAMA_BARANG']; ?>]</td>
|
||||
<td><?= $key['QTY_PEMINJAMAN']; ?></td>
|
||||
<td><?= $key['TGL_PEMINJAMAN']; ?></td>
|
||||
<?php if ($key['STATUS_PEMINJAMAN']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Sedang Terpinjam</strong></td>
|
||||
<?php } else if ($key['STATUS_PEMINJAMAN']=="1") { ?>
|
||||
<td class="text-success"><strong>Selesai Peminjaman</strong></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['STATUS_PEMINJAMAN']==NULL) { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-viewN<?php echo $key['ID_PEMINJAMAN']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['STATUS_PEMINJAMAN']=="1") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-success" data-toggle="modal" data-target="#modal-view1<?php echo $key['ID_PEMINJAMAN']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<?php if ($key['TYPE_JENIS']=="1") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataPeminjamanSn/');
|
||||
echo $key['ID_PEMINJAMAN'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button disabled type="button" class="btn btn-xs btn-default"><i class="fa fa-times"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- View Null -->
|
||||
<?php if (is_array($informasi) || is_object($informasi)) {
|
||||
foreach ($informasi as $row) { ?>
|
||||
<div class="modal fade" id="modal-viewN<?= $row['ID_PEMINJAMAN'] ?>">
|
||||
<?= form_open('ManagePersediaan/viewGlobal', array('id' => 'formpenjualan'), array('method' => 'viewGlobal')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Detail Peminjaman</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Kode Peminjaman</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Tanggal Peminjaman</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="kode_peminjaman" id="KODE_PEMINJAMAN<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['KODE_PEMINJAMAN'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="tgl_peminjaman" id="TGL_PEMINJAMAN<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['TGL_PEMINJAMAN'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-9 control-label"><strong>Nama Barang</strong></label>
|
||||
<label class="col-md-3 control-label"><strong>Kuantiti</strong></label>
|
||||
<div class="col-md-9">
|
||||
<input disabled type="text" name="nama_barang" id="NAMA_BARANG<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['KODE_BARANG'] ?> : [<?= $row['NAMA_BARANG'] ?>]">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input disabled type="text" name="qty_peminjaman" id="QTY_PEMINJAMAN<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['QTY_PEMINJAMAN'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Pemberi</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Peminjam</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="id_pemberi" id="ID_PEMBERI<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['PEMBERI'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="id_peminjam" id="ID_PEMINJAM<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['PEMINJAM'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-right" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- View 1 -->
|
||||
<?php if (is_array($informasi) || is_object($informasi)) {
|
||||
foreach ($informasi as $row) { ?>
|
||||
<div class="modal fade" id="modal-view1<?= $row['ID_PEMINJAMAN'] ?>">
|
||||
<?= form_open('ManagePersediaan/viewGlobal', array('id' => 'formpenjualan'), array('method' => 'viewGlobal')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Detail Peminjaman</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Kode Peminjaman</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Tanggal Peminjaman</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="kode_peminjaman" id="KODE_PEMINJAMAN<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['KODE_PEMINJAMAN'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="tgl_peminjaman" id="TGL_PEMINJAMAN<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['TGL_PEMINJAMAN'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-12 control-label"><strong>Nama Barang</strong></label>
|
||||
<div class="col-md-12">
|
||||
<input disabled type="text" name="nama_barang" id="NAMA_BARANG<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['KODE_BARANG'] ?> : [<?= $row['NAMA_BARANG'] ?>]">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Kuantiti</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Tanggal Kembali</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="qty_peminjaman" id="QTY_PEMINJAMAN<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['QTY_PEMINJAMAN'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="tgl_kembali" id="TGL_KEMBALI<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['TGL_KEMBALI'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Pemberi</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Peminjam</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="id_pemberi" id="ID_PEMBERI<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['PEMBERI'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="id_peminjam" id="ID_PEMINJAM<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['PEMINJAM'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Penerima</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Pengembali</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="id_penerima" id="ID_PENERIMA<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['PENERIMA'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="id_pengembali" id="ID_PENGEMBALI<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['PENGEMBALI'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-right" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,353 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | PEMINJAMAN</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" />
|
||||
|
||||
<!-- 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>Data Peminjaman</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Peminjaman</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">PEMINJAMAN <strong><a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataPeminjamanAktif">(Klik untuk Data Peminjaman berjalan)</strong></a></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Peminjaman</th>
|
||||
<th class="dark">Kode Barang : [Nama Barang]</th>
|
||||
<th class="dark">Kuantiti</th>
|
||||
<th class="dark">Tanggal Pinjam</th>
|
||||
<th class="dark">Status</th>
|
||||
<th class="center dark">DETAIL</th>
|
||||
<th class="center dark">View SN</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_PEMINJAMAN']; ?></td>
|
||||
<td><?= $key['KODE_BARANG']; ?> : [<?= $key['NAMA_BARANG']; ?>]</td>
|
||||
<td><?= $key['QTY_PEMINJAMAN']; ?></td>
|
||||
<td><?= $key['TGL_PEMINJAMAN']; ?></td>
|
||||
<?php if ($key['STATUS_PEMINJAMAN']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Sedang Terpinjam</strong></td>
|
||||
<?php } else if ($key['STATUS_PEMINJAMAN']=="1") { ?>
|
||||
<td class="text-success"><strong>Selesai Peminjaman</strong></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['STATUS_PEMINJAMAN']==NULL) { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-viewN<?php echo $key['ID_PEMINJAMAN']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['STATUS_PEMINJAMAN']=="1") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-success" data-toggle="modal" data-target="#modal-view1<?php echo $key['ID_PEMINJAMAN']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<?php if ($key['TYPE_JENIS']=="1") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataPeminjamanSn/');
|
||||
echo $key['ID_PEMINJAMAN'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button disabled type="button" class="btn btn-xs btn-default"><i class="fa fa-times"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- View Null -->
|
||||
<?php if (is_array($informasi) || is_object($informasi)) {
|
||||
foreach ($informasi as $row) { ?>
|
||||
<div class="modal fade" id="modal-viewN<?= $row['ID_PEMINJAMAN'] ?>">
|
||||
<?= form_open('ManagePersediaan/viewGlobal', array('id' => 'formpenjualan'), array('method' => 'viewGlobal')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Detail Peminjaman</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Kode Peminjaman</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Tanggal Peminjaman</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="kode_peminjaman" id="KODE_PEMINJAMAN<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['KODE_PEMINJAMAN'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="tgl_peminjaman" id="TGL_PEMINJAMAN<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['TGL_PEMINJAMAN'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-9 control-label"><strong>Nama Barang</strong></label>
|
||||
<label class="col-md-3 control-label"><strong>Kuantiti</strong></label>
|
||||
<div class="col-md-9">
|
||||
<input disabled type="text" name="nama_barang" id="NAMA_BARANG<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['KODE_BARANG'] ?> : [<?= $row['NAMA_BARANG'] ?>]">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input disabled type="text" name="qty_peminjaman" id="QTY_PEMINJAMAN<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['QTY_PEMINJAMAN'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Pemberi</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Peminjam</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="id_pemberi" id="ID_PEMBERI<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['PEMBERI'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="id_peminjam" id="ID_PEMINJAM<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['PEMINJAM'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-right" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- View 1 -->
|
||||
<?php if (is_array($informasi) || is_object($informasi)) {
|
||||
foreach ($informasi as $row) { ?>
|
||||
<div class="modal fade" id="modal-view1<?= $row['ID_PEMINJAMAN'] ?>">
|
||||
<?= form_open('ManagePersediaan/viewGlobal', array('id' => 'formpenjualan'), array('method' => 'viewGlobal')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Detail Peminjaman</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Kode Peminjaman</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Tanggal Peminjaman</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="kode_peminjaman" id="KODE_PEMINJAMAN<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['KODE_PEMINJAMAN'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="tgl_peminjaman" id="TGL_PEMINJAMAN<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['TGL_PEMINJAMAN'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-12 control-label"><strong>Nama Barang</strong></label>
|
||||
<div class="col-md-12">
|
||||
<input disabled type="text" name="nama_barang" id="NAMA_BARANG<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['KODE_BARANG'] ?> : [<?= $row['NAMA_BARANG'] ?>]">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Kuantiti</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Tanggal Kembali</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="qty_peminjaman" id="QTY_PEMINJAMAN<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['QTY_PEMINJAMAN'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="tgl_kembali" id="TGL_KEMBALI<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['TGL_KEMBALI'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Pemberi</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Peminjam</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="id_pemberi" id="ID_PEMBERI<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['PEMBERI'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="id_peminjam" id="ID_PEMINJAM<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['PEMINJAM'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Penerima</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Pengembali</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="id_penerima" id="ID_PENERIMA<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['PENERIMA'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="id_pengembali" id="ID_PENGEMBALI<?= $row['ID_PEMINJAMAN'] ?>" class="form-control" value="<?= $row['PENGEMBALI'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-right" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,158 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | PEMINJAMAN</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" />
|
||||
|
||||
<!-- 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>Data Peminjaman</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Peminjaman</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="javascript:window.history.go(-1);"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<h2 class="panel-title"><?=$qty_peminjaman?> Unit <strong>| <?=$kode_barang?> : [<?=$nama_barang?>]</strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($informasi!=NULL) { ?>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center info">No</th>
|
||||
<th class="info">Serial Number</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_SN']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,181 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | PENDING</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" />
|
||||
|
||||
<!-- 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>Data Pending</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Pending</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">PENDING <strong><a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataPendingAll">(Klik untuk Semua Pending)</strong></a></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Pending</th>
|
||||
<th class="dark">Pemberi</th>
|
||||
<th class="dark">Sales</th>
|
||||
<th class="dark">Kode Barang</th>
|
||||
<th class="dark">Kuantiti</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Habis</th>
|
||||
<th class="dark">Status</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_PENDING']; ?></td>
|
||||
<td><?= $key['PEMBERI']; ?></td>
|
||||
<td><?= $key['SALES']; ?></td>
|
||||
<td><?= $key['KODE_BARANG']; ?></td>
|
||||
<td><?= $key['QTY_PENDING']; ?></td>
|
||||
<td><?= $key['TGL_PENDING']; ?></td>
|
||||
<?php if ($tgl>=$key['DURASI_PENDING'] AND $key['STATUS_PENDING']==NULL) { ?>
|
||||
<td class="text-danger"><strong><?= $key['DURASI_PENDING']; ?></strong></td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['DURASI_PENDING']; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['STATUS_PENDING']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Pending Sales</strong></td>
|
||||
<?php } else if ($key['STATUS_PENDING']=="0") { ?>
|
||||
<td class="text-warning"><strong>Selesai (Sales)</strong></td>
|
||||
<?php } else if ($key['STATUS_PENDING']=="1") { ?>
|
||||
<td class="text-primary"><strong>Selesai (Gudang)</strong></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,181 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | PENDING</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" />
|
||||
|
||||
<!-- 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>Data Pending</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Pending</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">PENDING <strong><a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataPendingAktif">(Klik untuk Pending berjalan)</strong></a></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Pending</th>
|
||||
<th class="dark">Pemberi</th>
|
||||
<th class="dark">Sales</th>
|
||||
<th class="dark">Kode Barang</th>
|
||||
<th class="dark">Kuantiti</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Habis</th>
|
||||
<th class="dark">Status</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_PENDING']; ?></td>
|
||||
<td><?= $key['PEMBERI']; ?></td>
|
||||
<td><?= $key['SALES']; ?></td>
|
||||
<td><?= $key['KODE_BARANG']; ?></td>
|
||||
<td><?= $key['QTY_PENDING']; ?></td>
|
||||
<td><?= $key['TGL_PENDING']; ?></td>
|
||||
<?php if ($tgl>=$key['DURASI_PENDING'] AND $key['STATUS_PENDING']==NULL) { ?>
|
||||
<td class="text-danger"><strong><?= $key['DURASI_PENDING']; ?></strong></td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['DURASI_PENDING']; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['STATUS_PENDING']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Pending Sales</strong></td>
|
||||
<?php } else if ($key['STATUS_PENDING']=="0") { ?>
|
||||
<td class="text-warning"><strong>Selesai (Sales)</strong></td>
|
||||
<?php } else if ($key['STATUS_PENDING']=="1") { ?>
|
||||
<td class="text-primary"><strong>Selesai (Gudang)</strong></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,190 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | PENJUALAN</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" />
|
||||
|
||||
<!-- 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>Data Penjualan</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Penjualan</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">PENJUALAN <strong><a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataPenjualanAll">(Klik untuk Semua Penjualan)</strong></a></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Penjualan</th>
|
||||
<th class="dark">Atas Nama</th>
|
||||
<th class="dark">Pelanggan</th>
|
||||
<th class="dark">Status</th>
|
||||
<th class="center dark">HISTORY</th>
|
||||
<th class="center dark">View SN</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_PENJUALAN']; ?></td>
|
||||
<td><?= $key['NAMA_CORP']; ?></td>
|
||||
<?php if ($key['TYPE_PELANGGAN']==="User" AND $key['NAMA_PERUSAHAAN']==="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']==="User" AND $key['NAMA_PERUSAHAAN']!="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?> (<?= $key['NAMA_PERUSAHAAN'] ?>)]</td>
|
||||
<?php } else if ($key['NAMA_PELANGGAN']==="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PERUSAHAAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PERUSAHAAN'] ?>, <?= $key['NAMA_KOTA'] ?> (<?= $key['NAMA_PELANGGAN'] ?>)]</td>
|
||||
<?php } ?>
|
||||
<?php if ($key['STATUS_PENJUALAN']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Proses Sales</strong></td>
|
||||
<?php } else if ($key['STATUS_PENJUALAN']=="0") { ?>
|
||||
<td class="text-warning"><strong>Proses Gudang</strong></td>
|
||||
<?php } else if ($key['STATUS_PENJUALAN']=="1") { ?>
|
||||
<td class="text-success"><strong>Penjualan Selesai</strong></td>
|
||||
<?php } else if ($key['STATUS_PENJUALAN']=="2") { ?>
|
||||
<td class="text-primary"><strong>Konsinyasi/Sewa Laku</strong></td>
|
||||
<?php } else if ($key['STATUS_PENJUALAN']=="3") { ?>
|
||||
<td class="text-dark"><strong>Pending Konfirmasi</strong></td>
|
||||
<?php } ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataPenjualanDJ/');
|
||||
echo $key['ID_PENJUALAN'];?>'"><strong></strong><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataPenjualanSn/');
|
||||
echo $key['ID_PENJUALAN'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,190 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | PENJUALAN</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" />
|
||||
|
||||
<!-- 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>Data Penjualan</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Penjualan</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">PENJUALAN <strong><a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataPenjualanAktif">(Klik untuk Penjualan berjalan)</strong></a></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Penjualan</th>
|
||||
<th class="dark">Atas Nama</th>
|
||||
<th class="dark">Pelanggan</th>
|
||||
<th class="dark">Status</th>
|
||||
<th class="center dark">HISTORY</th>
|
||||
<th class="center dark">View SN</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_PENJUALAN']; ?></td>
|
||||
<td><?= $key['NAMA_CORP']; ?></td>
|
||||
<?php if ($key['TYPE_PELANGGAN']==="User" AND $key['NAMA_PERUSAHAAN']==="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']==="User" AND $key['NAMA_PERUSAHAAN']!="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?> (<?= $key['NAMA_PERUSAHAAN'] ?>)]</td>
|
||||
<?php } else if ($key['NAMA_PELANGGAN']==="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PERUSAHAAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PERUSAHAAN'] ?>, <?= $key['NAMA_KOTA'] ?> (<?= $key['NAMA_PELANGGAN'] ?>)]</td>
|
||||
<?php } ?>
|
||||
<?php if ($key['STATUS_PENJUALAN']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Proses Sales</strong></td>
|
||||
<?php } else if ($key['STATUS_PENJUALAN']=="0") { ?>
|
||||
<td class="text-warning"><strong>Proses Gudang</strong></td>
|
||||
<?php } else if ($key['STATUS_PENJUALAN']=="1") { ?>
|
||||
<td class="text-success"><strong>Penjualan Selesai</strong></td>
|
||||
<?php } else if ($key['STATUS_PENJUALAN']=="2") { ?>
|
||||
<td class="text-primary"><strong>Konsinyasi/Sewa Laku</strong></td>
|
||||
<?php } else if ($key['STATUS_PENJUALAN']=="3") { ?>
|
||||
<td class="text-dark"><strong>Pending Konfirmasi</strong></td>
|
||||
<?php } ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataPenjualanDJ/');
|
||||
echo $key['ID_PENJUALAN'];?>'"><strong></strong><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataPenjualanSn/');
|
||||
echo $key['ID_PENJUALAN'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,169 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | PENJUALAN</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" />
|
||||
|
||||
<!-- 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>Data Penjualan</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Daftar Penjualan</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="javascript:window.history.go(-1);"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DAFTAR JUAL <strong>| <?=$kode_penjualan?></strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center info">No</th>
|
||||
<th class="info">Kode Barang : [Nama Barang]</th>
|
||||
<th class="info">Kuantiti</th>
|
||||
<th class="info">Harga</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_BARANG']; ?> : [<?= $key['NAMA_BARANG']; ?>]</td>
|
||||
<td><?= $key['QTY_DJ']; ?></td>
|
||||
<td><?= $key['HARGA']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="submit" class="btn btn-primary">TOTAL <strong>Rp <?php echo number_format($total_harga,2); ?></strong></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</section>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,170 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | PENJUALAN</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" />
|
||||
|
||||
<!-- 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>Data Penjualan</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Serial Number</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="javascript:window.history.go(-1);"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DETAIL SN <strong>| <?=$kode_penjualan?></strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center primary">No</th>
|
||||
<th class="primary">Kode Barang : [Nama Barang]</th>
|
||||
<th class="primary">Serial Number</th>
|
||||
<th class="primary">Status</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_BARANG']; ?> : [<?= $key['NAMA_BARANG']; ?>]</td>
|
||||
<td><?= $key['NAMA_SN']; ?></td>
|
||||
<?php if ($key['STATUS_SN']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Ready</strong></td>
|
||||
<?php } else if ($key['STATUS_SN']=="0") { ?>
|
||||
<td class="text-warning"><strong>Sedang Diproses</strong></td>
|
||||
<?php } else if ($key['STATUS_SN']=="1") { ?>
|
||||
<td class="text-success"><strong>Terjual</strong></td>
|
||||
<?php } else if ($key['STATUS_SN']=="2") { ?>
|
||||
<td class="text-primary"><strong>Pindah Gudang</strong></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,231 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | PROSES</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" />
|
||||
|
||||
<!-- 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>Data Kuantiti</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Stock Proses</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">STOCK PROSES</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Penjualan</th>
|
||||
<th class="dark">Sales</th>
|
||||
<th class="dark">Pelanggan</th>
|
||||
<th class="dark">Kode Barang</th>
|
||||
<th class="dark">Kuantiti</th>
|
||||
<th class="dark">Status</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_PENJUALAN']; ?></td>
|
||||
<td><?= $key['NAMA_KARYAWAN']; ?></td>
|
||||
<?php if ($key['TYPE_PELANGGAN']==="User" AND $key['NAMA_PERUSAHAAN']==="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']==="User" AND $key['NAMA_PERUSAHAAN']!="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?> (<?= $key['NAMA_PERUSAHAAN'] ?>)]</td>
|
||||
<?php } else if ($key['NAMA_PELANGGAN']==="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PERUSAHAAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PERUSAHAAN'] ?>, <?= $key['NAMA_KOTA'] ?> (<?= $key['NAMA_PELANGGAN'] ?>)]</td>
|
||||
<?php } ?>
|
||||
<td><?= $key['KODE_BARANG']; ?></td>
|
||||
<td><?= $key['QTY_DJ']; ?></td>
|
||||
<?php if ($key['STATUS_PENJUALAN']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Penjualan Baru</strong></td>
|
||||
<?php } else if ($key['STATUS_PENJUALAN']=="0") { ?>
|
||||
<td class="text-warning"><strong>Proses Gudang</strong></td>
|
||||
<?php } else if ($key['STATUS_PENJUALAN']=="2") { ?>
|
||||
<td class="text-primary"><strong>Proses Sales</strong></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pesanan berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pesanan gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashkuantiti')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pesanan melebihi jumlah stock, hubungi Team Gudang.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashharga')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Harga berhasil <?= $this->session->flashdata('flashharga'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashhargagagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Harga gagal <?= $this->session->flashdata('flashhargagagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,229 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | PROSES</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" />
|
||||
|
||||
<!-- 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>Data Kuantiti</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Stock Proses</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">STOCK PROSES <strong><a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataProsesAll">(Klik untuk Proses Penjualan)</strong></a></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Konsinyasi</th>
|
||||
<th class="dark">Sales</th>
|
||||
<th class="dark">Pelanggan</th>
|
||||
<th class="dark">Kode Barang</th>
|
||||
<th class="dark">Kuantiti</th>
|
||||
<th class="dark">Status</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_KONSINYASI']; ?></td>
|
||||
<td><?= $key['NAMA_KARYAWAN']; ?></td>
|
||||
<?php if ($key['TYPE_PELANGGAN']==="User" AND $key['NAMA_PERUSAHAAN']==="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']==="User" AND $key['NAMA_PERUSAHAAN']!="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?> (<?= $key['NAMA_PERUSAHAAN'] ?>)]</td>
|
||||
<?php } else if ($key['NAMA_PELANGGAN']==="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PERUSAHAAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PERUSAHAAN'] ?>, <?= $key['NAMA_KOTA'] ?> (<?= $key['NAMA_PELANGGAN'] ?>)]</td>
|
||||
<?php } ?>
|
||||
<td><?= $key['KODE_BARANG']; ?></td>
|
||||
<td><?= $key['QTY_DK']; ?></td>
|
||||
<?php if ($key['STATUS_KONSINYASI']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Konsinyasi Baru</strong></td>
|
||||
<?php } else if ($key['STATUS_KONSINYASI']=="0") { ?>
|
||||
<td class="text-warning"><strong>Proses Gudang</strong></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pesanan berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pesanan gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashkuantiti')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pesanan melebihi jumlah stock, hubungi Team Gudang.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashharga')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Harga berhasil <?= $this->session->flashdata('flashharga'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashhargagagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Harga gagal <?= $this->session->flashdata('flashhargagagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,260 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | QTY ALL</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" />
|
||||
|
||||
<!-- 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>Data Kuantiti</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Qty All</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">KUANTITI <strong><a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataQtyCabutan">(Klik untuk Barang Cabutan)</strong></a></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Jenis Barang</th>
|
||||
<th class="dark">Kode Barang : [Nama Barang]</th>
|
||||
<th class="dark">Status</th>
|
||||
<th class="center dark">DETAIL</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_JENIS']; ?></td>
|
||||
<td><?= $key['KODE_BARANG']; ?> : [<?= $key['NAMA_BARANG']; ?>]</td>
|
||||
<?php if ($key['GLOBAL_KUANTITI']=="0") { ?>
|
||||
<td class="text-danger"><strong>Habis</strong></td>
|
||||
<?php } else { ?>
|
||||
<td class="text-primary"><strong>Tersedia</strong></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['GLOBAL_KUANTITI']=="0") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-view<?php echo $key['ID_KUANTITI']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" data-toggle="modal" data-target="#modal-view<?php echo $key['ID_KUANTITI']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- View Null -->
|
||||
<?php if (is_array($informasi) || is_object($informasi)) {
|
||||
foreach ($informasi as $row) { ?>
|
||||
<div class="modal fade" id="modal-view<?= $row['ID_KUANTITI'] ?>">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Detail <strong>| <?= $row['KODE_BARANG'] ?></strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label"><strong>Global</strong></label>
|
||||
<label class="col-md-4 control-label"><strong>PCM</strong></label>
|
||||
<label class="col-md-4 control-label"><strong>Proses</strong></label>
|
||||
<div class="col-md-4">
|
||||
<input disabled type="text" name="global_kuantiti" class="form-control" value="<?= $row['GLOBAL_KUANTITI'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<input disabled type="text" name="pcm_kuantiti" class="form-control" value="<?= $row['PCM_KUANTITI'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<input disabled type="text" name="proses_kuantiti" class="form-control" value="<?= $row['PROSES_KUANTITI'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label"><strong>Cabutan</strong></label>
|
||||
<label class="col-md-4 control-label"><strong>Konsinyasi</strong></label>
|
||||
<label class="col-md-4 control-label"><strong>Peminjaman</strong></label>
|
||||
<div class="col-md-4">
|
||||
<input disabled type="text" name="cabutan_kuantiti" class="form-control" value="<?= $row['CABUTAN_KUANTITI'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<input disabled type="text" name="konsinyasi_kuantiti" class="form-control" value="<?= $row['KONSINYASI_KUANTITI'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<input disabled type="text" name="peminjaman_kuantiti" class="form-control" value="<?= $row['PEMINJAMAN_KUANTITI'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label"><strong>Pending</strong></label>
|
||||
<label class="col-md-4 control-label"><strong>Service</strong></label>
|
||||
<label class="col-md-4 control-label"><strong>Sewa</strong></label>
|
||||
<div class="col-md-4">
|
||||
<input disabled type="text" name="pending_kuantiti" class="form-control" value="<?= $row['PENDING_KUANTITI'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<input disabled type="text" name="service_kuantiti" class="form-control" value="<?= $row['SERVICE_KUANTITI'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<input disabled type="text" name="sewa_kuantiti" class="form-control" value="<?= $row['SEWA_KUANTITI'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-right" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,311 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>PROSES | DATA KUANTITI</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" />
|
||||
|
||||
<!-- 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>Data Kuantiti</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Qty Cabutan</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">KUANTITI <strong><a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataQtyAll">(Klik untuk tanpa Cabutan)</strong></a></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Jenis Barang</th>
|
||||
<th class="dark">Kode Barang : [Nama Barang]</th>
|
||||
<th class="dark">Status</th>
|
||||
<th class="center dark">DETAIL</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_JENIS']; ?></td>
|
||||
<td><?= $key['KODE_BARANG']; ?> : [<?= $key['NAMA_BARANG']; ?>]</td>
|
||||
<?php if ($key['GLOBAL_KUANTITI']=="0") { ?>
|
||||
<td class="text-danger"><strong>Habis</strong></td>
|
||||
<?php } else { ?>
|
||||
<td class="text-primary"><strong>Tersedia</strong></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['GLOBAL_KUANTITI']=="0") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-view<?php echo $key['ID_KUANTITI']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" data-toggle="modal" data-target="#modal-view<?php echo $key['ID_KUANTITI']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- View Null -->
|
||||
<?php if (is_array($informasi) || is_object($informasi)) {
|
||||
foreach ($informasi as $row) { ?>
|
||||
<div class="modal fade" id="modal-view<?= $row['ID_KUANTITI'] ?>">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Detail <strong>| <?= $row['KODE_BARANG'] ?></strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label"><strong>Global</strong></label>
|
||||
<label class="col-md-4 control-label"><strong>PCM</strong></label>
|
||||
<label class="col-md-4 control-label"><strong>Proses</strong></label>
|
||||
<div class="col-md-4">
|
||||
<input disabled type="text" name="global_kuantiti" class="form-control" value="<?= $row['GLOBAL_KUANTITI'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<input disabled type="text" name="pcm_kuantiti" class="form-control" value="<?= $row['PCM_KUANTITI'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<input disabled type="text" name="proses_kuantiti" class="form-control" value="<?= $row['PROSES_KUANTITI'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label"><strong>Cabutan</strong></label>
|
||||
<label class="col-md-4 control-label"><strong>Konsinyasi</strong></label>
|
||||
<label class="col-md-4 control-label"><strong>Peminjaman</strong></label>
|
||||
<div class="col-md-4">
|
||||
<input disabled type="text" name="cabutan_kuantiti" class="form-control" value="<?= $row['CABUTAN_KUANTITI'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<input disabled type="text" name="konsinyasi_kuantiti" class="form-control" value="<?= $row['KONSINYASI_KUANTITI'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<input disabled type="text" name="peminjaman_kuantiti" class="form-control" value="<?= $row['PEMINJAMAN_KUANTITI'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label"><strong>Pending</strong></label>
|
||||
<label class="col-md-4 control-label"><strong>Service</strong></label>
|
||||
<label class="col-md-4 control-label"><strong>Sewa</strong></label>
|
||||
<div class="col-md-4">
|
||||
<input disabled type="text" name="pending_kuantiti" class="form-control" value="<?= $row['PENDING_KUANTITI'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<input disabled type="text" name="service_kuantiti" class="form-control" value="<?= $row['SERVICE_KUANTITI'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<input disabled type="text" name="sewa_kuantiti" class="form-control" value="<?= $row['SEWA_KUANTITI'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-right" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pesanan berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pesanan gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashkuantiti')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Pesanan melebihi jumlah stock, hubungi Team Gudang.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashharga')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Harga berhasil <?= $this->session->flashdata('flashharga'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashhargagagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Harga gagal <?= $this->session->flashdata('flashhargagagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,313 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | SERVICE INTERNAL</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" />
|
||||
|
||||
<!-- 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>Data Service (Internal)</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Service (Internal)</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">SERVICE <strong>(INTERNAL)</strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Service</th>
|
||||
<th class="dark">Pemberi</th>
|
||||
<th class="dark">Kode Barang</th>
|
||||
<th class="dark">Kuantiti</th>
|
||||
<th class="dark">Serial Number</th>
|
||||
<th class="dark">Status</th>
|
||||
<th class="center dark">DETAIL</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_SERVICE_IN']; ?></td>
|
||||
<td><?= $key['PEMBERI']; ?></td>
|
||||
<td><?= $key['KODE_BARANG']; ?></td>
|
||||
<td><?= $key['QTY_SERVICE_IN']; ?></td>
|
||||
<td><?= $key['NAMA_SN']; ?></td>
|
||||
<?php if ($key['STATUS_SERVICE_IN']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Pending Service</strong></td>
|
||||
<?php } else if ($key['STATUS_SERVICE_IN']=="0") { ?>
|
||||
<td class="text-warning"><strong>Proses Pengerjaan</strong></td>
|
||||
<?php } else if ($key['STATUS_SERVICE_IN']=="1") { ?>
|
||||
<td class="text-success"><strong>Selesai Service</strong></td>
|
||||
<?php } else if ($key['STATUS_SERVICE_IN']=="2") { ?>
|
||||
<td class="text-primary"><strong>Sudah Kembali</strong></td>
|
||||
<?php } else if ($key['STATUS_SERVICE_IN']=="3") { ?>
|
||||
<td class="text-danger"><strong>Batal Service</strong></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['STATUS_SERVICE_IN']==NULL) { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-view<?php echo $key['ID_SERVICE_IN']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['STATUS_SERVICE_IN']=="0") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-view<?php echo $key['ID_SERVICE_IN']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['STATUS_SERVICE_IN']=="1") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-success" data-toggle="modal" data-target="#modal-view<?php echo $key['ID_SERVICE_IN']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['STATUS_SERVICE_IN']=="2") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" data-toggle="modal" data-target="#modal-view<?php echo $key['ID_SERVICE_IN']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['STATUS_SERVICE_IN']=="3") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-view<?php echo $key['ID_SERVICE_IN']; ?>"><i class="fa fa-comments"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<?php if (is_array($informasi) || is_object($informasi)) {
|
||||
foreach ($informasi as $row) { ?>
|
||||
<div class="modal fade" id="modal-view<?= $row['ID_SERVICE_IN'] ?>">
|
||||
<?= form_open('ManagePersediaan/viewServiceInternal', array('id' => 'formpenjualan'), array('method' => 'viewServiceInternal')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Detail Service Internal</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-12 control-label"><strong>Kode Service Internal</strong></label>
|
||||
<div class="col-md-12">
|
||||
<input disabled type="text" name="ket_service_in" id="KODE_SERVICE_IN<?= $row['ID_SERVICE_IN'] ?>" class="form-control" value="<?= $row['KODE_SERVICE_IN'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Pemberi</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Penerima</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="pemberi_id" id="PEMBERI_ID<?= $row['ID_SERVICE_IN'] ?>" class="form-control" value="<?= $row['PEMBERI'] ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<?php if ($key['PENERIMA_ID']!=NULL) { ?>
|
||||
<input disabled type="text" name="penerima_id" id="PENERIMA_ID<?= $row['ID_SERVICE_IN'] ?>" class="form-control" value="<?= $row['PENERIMA'] ?>">
|
||||
<?php } else { ?>
|
||||
<input disabled type="text" name="penerima_id" id="PENERIMA_ID<?= $row['ID_SERVICE_IN'] ?>" class="form-control" value="Data Kosong">
|
||||
<?php } ?>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-12 control-label"><strong>Kode Barang : [Nama Barang]</strong></label>
|
||||
<div class="col-md-12">
|
||||
<input disabled type="text" name="nama_barang" id="NAMA_BARANG<?= $row['ID_SERVICE_IN'] ?>" class="form-control" value="<?= $row['KODE_BARANG'] ?> : [<?= $row['NAMA_BARANG'] ?>]">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Kuantiti</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Serial Number</strong></label>
|
||||
<div class="col-md-6">
|
||||
<input disabled type="text" name="qty_service_in" id="QTY_SERVICE_IN<?= $row['ID_SERVICE_IN'] ?>" class="form-control" value="<?= $row['QTY_SERVICE_IN'] ?> Unit">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<?php if ($key['SN_ID']!=NULL) { ?>
|
||||
<input disabled type="text" name="sn_id" id="SN_ID<?= $row['ID_SERVICE_IN'] ?>" class="form-control" value="<?= $row['NAMA_SN'] ?>">
|
||||
<?php } else { ?>
|
||||
<input disabled type="text" name="sn_id" id="SN_ID<?= $row['ID_SERVICE_IN'] ?>" class="form-control" value="Data Kosong">
|
||||
<?php } ?>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-12 control-label"><strong>Keterangan</strong></label>
|
||||
<div class="col-md-12">
|
||||
<?php if ($row['KET_SERVICE_IN']!=NULL) { ?>
|
||||
<textarea disabled name="ket_service_in" id="KET_SERVICE_IN<?= $row['ID_SERVICE_IN'] ?>" class="form-control" rows="4" col="3"><?= $row['KET_SERVICE_IN'] ?></textarea>
|
||||
<?php } else { ?>
|
||||
<textarea disabled name="ket_service_in" id="KET_SERVICE_IN<?= $row['ID_SERVICE_IN'] ?>" class="form-control" rows="4" col="3">Data Kosong</textarea>
|
||||
<?php } ?>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-6 control-label"><strong>Tanggal Diterima</strong></label>
|
||||
<label class="col-md-6 control-label"><strong>Tanggal Selesai</strong></label>
|
||||
<div class="col-md-6">
|
||||
<?php if ($row['TGL_TERIMA']!=NULL) { ?>
|
||||
<input disabled type="text" name="tgl_terima" id="TGL_TERIMA<?= $row['ID_SERVICE_IN'] ?>" class="form-control" value="<?= $row['TGL_TERIMA'] ?>">
|
||||
<?php } else { ?>
|
||||
<input disabled type="text" name="tgl_terima" id="TGL_TERIMA<?= $row['ID_SERVICE_IN'] ?>" class="form-control" value="Data Kosong">
|
||||
<?php } ?>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<?php if ($row['TGL_SELESAI']!=NULL) { ?>
|
||||
<input disabled type="text" name="tgl_selesai" id="TGL_SELESAI<?= $row['ID_SERVICE_IN'] ?>" class="form-control" value="<?= $row['TGL_SELESAI'] ?>">
|
||||
<?php } else { ?>
|
||||
<input disabled type="text" name="tgl_selesai" id="TGL_SELESAI<?= $row['ID_SERVICE_IN'] ?>" class="form-control" value="Data Kosong">
|
||||
<?php } ?>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-right" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,195 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | SEWA</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" />
|
||||
|
||||
<!-- 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>Data Sewa</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Sewa</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">SEWA <strong><a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataSewaAll">(Klik untuk Semua Data Sewa)</strong></a></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Sewa</th>
|
||||
<th class="dark">Sales</th>
|
||||
<th class="dark">Pelanggan</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Durasi</th>
|
||||
<th class="dark">Surat Jalan</th>
|
||||
<th class="dark">Status</th>
|
||||
<th class="center dark">DETAIL</th>
|
||||
<th class="center dark">View SN</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_SEWA']; ?></td>
|
||||
<td><?= $key['NAMA_KARYAWAN']; ?></td>
|
||||
<?php if ($key['TYPE_PELANGGAN']==="User" AND $key['NAMA_PERUSAHAAN']==="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']==="User" AND $key['NAMA_PERUSAHAAN']!="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?> (<?= $key['NAMA_PERUSAHAAN'] ?>)]</td>
|
||||
<?php } else if ($key['NAMA_PELANGGAN']==="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PERUSAHAAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PERUSAHAAN'] ?>, <?= $key['NAMA_KOTA'] ?> (<?= $key['NAMA_PELANGGAN'] ?>)]</td>
|
||||
<?php } ?>
|
||||
<td><?= $key['TGL_SEWA']; ?></td>
|
||||
<td><?= $key['DURASI_SEWA']; ?> Bulan</td>
|
||||
<td><?= $key['SJ_SEWA']; ?></td>
|
||||
<?php if ($key['STATUS_SEWA']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Proses Sales</strong></td>
|
||||
<?php } else if ($key['STATUS_SEWA']=="0") { ?>
|
||||
<td class="text-warning"><strong>Sedang Sewa</strong></td>
|
||||
<?php } else if ($key['STATUS_SEWA']=="1") { ?>
|
||||
<td class="text-success"><strong>Sewa Selesai</strong></td>
|
||||
<?php } else if ($key['STATUS_SEWA']=="2") { ?>
|
||||
<td class="text-success"><strong>Proses Gudang</strong></td>
|
||||
<?php } ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataSewaDS/');
|
||||
echo $key['ID_SEWA'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataSewaSn/');
|
||||
echo $key['ID_SEWA'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,195 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | SEWA</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" />
|
||||
|
||||
<!-- 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>Data Sewa</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Sewa</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Informasi"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">SEWA <strong><a href="<?php echo base_url('') ?>index.php/ManageInformasi/dataSewaAktif">(Klik untuk Data Sewa berjalan)</strong></a></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kode Sewa</th>
|
||||
<th class="dark">Sales</th>
|
||||
<th class="dark">Pelanggan</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Durasi</th>
|
||||
<th class="dark">Surat Jalan</th>
|
||||
<th class="dark">Status</th>
|
||||
<th class="center dark">DETAIL</th>
|
||||
<th class="center dark">View SN</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_SEWA']; ?></td>
|
||||
<td><?= $key['NAMA_KARYAWAN']; ?></td>
|
||||
<?php if ($key['TYPE_PELANGGAN']==="User" AND $key['NAMA_PERUSAHAAN']==="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']==="User" AND $key['NAMA_PERUSAHAAN']!="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?> (<?= $key['NAMA_PERUSAHAAN'] ?>)]</td>
|
||||
<?php } else if ($key['NAMA_PELANGGAN']==="") { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PERUSAHAAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['TYPE_PELANGGAN'] ?> : [<?= $key['NAMA_PERUSAHAAN'] ?>, <?= $key['NAMA_KOTA'] ?> (<?= $key['NAMA_PELANGGAN'] ?>)]</td>
|
||||
<?php } ?>
|
||||
<td><?= $key['TGL_SEWA']; ?></td>
|
||||
<td><?= $key['DURASI_SEWA']; ?> Bulan</td>
|
||||
<td><?= $key['SJ_SEWA']; ?></td>
|
||||
<?php if ($key['STATUS_SEWA']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Proses Sales</strong></td>
|
||||
<?php } else if ($key['STATUS_SEWA']=="0") { ?>
|
||||
<td class="text-warning"><strong>Sedang Sewa</strong></td>
|
||||
<?php } else if ($key['STATUS_SEWA']=="1") { ?>
|
||||
<td class="text-success"><strong>Sewa Selesai</strong></td>
|
||||
<?php } else if ($key['STATUS_SEWA']=="2") { ?>
|
||||
<td class="text-success"><strong>Proses Gudang</strong></td>
|
||||
<?php } ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataSewaDS/');
|
||||
echo $key['ID_SEWA'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" onclick="window.location.href='<?= base_url('index.php/ManageInformasi/dataSewaSn/');
|
||||
echo $key['ID_SEWA'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,161 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | SEWA</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" />
|
||||
|
||||
<!-- 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>Data Sewa</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Sewa</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="javascript:window.history.go(-1);"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DAFTAR SEWA <strong>| <?=$kode_sewa?></strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center info">No</th>
|
||||
<th class="info">Kode Barang : [Nama Barang]</th>
|
||||
<th class="info">Kuantiti</th>
|
||||
<th class="info">Keterangan</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_BARANG']; ?> : [<?= $key['NAMA_BARANG']; ?>]</td>
|
||||
<td><?= $key['QTY_DS']; ?></td>
|
||||
<td><?= $key['KET_DS']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,196 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | SEWA</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" />
|
||||
|
||||
<!-- 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>Data Sewa</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Sewa</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="javascript:window.history.go(-1);"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA SN</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center primary">No</th>
|
||||
<th class="primary">Kode Barang : [Nama Barang]</th>
|
||||
<th class="primary">Serial Number</th>
|
||||
<th class="primary">Tanggal</th>
|
||||
<th class="primary">Kode Bukti</th>
|
||||
<th class="primary">Surat Jalan</th>
|
||||
<th class="primary">Status</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($informasi) || is_object($informasi)) {
|
||||
$no = 1;
|
||||
foreach ($informasi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_BARANG']; ?> : [<?= $key['NAMA_BARANG']; ?>]</td>
|
||||
<?php if ($key['NAMA_SN']==NULL) { ?>
|
||||
<td>NON-SN (<?= $key['QTY_DS']; ?> Unit)</td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['NAMA_SN']; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['STATUS_SNSEWA']==NULL) { ?>
|
||||
<td></td>
|
||||
<?php } else if ($key['STATUS_SNSEWA']=="0") { ?>
|
||||
<td><?= $key['TGL_PENJUALAN']; ?></td>
|
||||
<?php } else if ($key['STATUS_SNSEWA']=="1") { ?>
|
||||
<td><?= $key['TGL_PS']; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['STATUS_SNSEWA']==NULL) { ?>
|
||||
<td></td>
|
||||
<?php } else if ($key['STATUS_SNSEWA']=="0") { ?>
|
||||
<td><?= $key['KODE_PENJUALAN']; ?></td>
|
||||
<?php } else if ($key['STATUS_SNSEWA']=="1") { ?>
|
||||
<td><?= $key['KODE_PS']; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['STATUS_SNSEWA']==NULL) { ?>
|
||||
<td></td>
|
||||
<?php } else if ($key['STATUS_SNSEWA']=="0") { ?>
|
||||
<td><?= $key['SJ_PENJUALAN']; ?></td>
|
||||
<?php } else if ($key['STATUS_SNSEWA']=="1") { ?>
|
||||
<td><?= $key['SJ_PS']; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['STATUS_SNSEWA']==NULL) { ?>
|
||||
<td class="text-danger"><strong>Sedang Sewa</strong></td>
|
||||
<?php } else if ($key['STATUS_SNSEWA']=="0") { ?>
|
||||
<td class="text-warning"><strong>Laku</strong></td>
|
||||
<?php } else if ($key['STATUS_SNSEWA']=="1") { ?>
|
||||
<td class="text-success"><strong>Sudah Kembali</strong></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,214 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | LIST TRANSAKSI</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>List Transaksi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Transaksi</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageBK"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title"><?= $title1 ?> | <?= $title3 ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center primary">No</th>
|
||||
<th class="primary">Kode Kasbank</th>
|
||||
<th class="primary">Perkiraan</th>
|
||||
<th class="primary">Keterangan</th>
|
||||
<th class="primary">Nominal</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($transaksi) || is_object($transaksi)) {
|
||||
$no = 1;
|
||||
foreach ($transaksi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_KBBK']; ?></td>
|
||||
<td><?= $key['KODE_PERKIRAAN']; ?> | <?= $key['NAMA_PERKIRAAN']; ?></td>
|
||||
<td><?= $key['KET_KBBK']; ?></td>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<?php if ($title2===$title3) { ?>
|
||||
<button type="submit" class="btn btn-primary">Total Debit <strong><?= $title2 ?></strong> <i class="fa fa-check"></i></button>
|
||||
<?php } else { ?>
|
||||
<button type="submit" class="btn btn-danger">Total Debit <strong><?= $title2 ?></strong> <i class="fa fa-times"></i></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Transaksi berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Transaksi gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashlebih')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Nominal melebihi jumlah.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,214 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | LIST TRANSAKSI</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>List Transaksi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Transaksi</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageBM"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title"><?= $title1 ?> | <?= $title2 ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center primary">No</th>
|
||||
<th class="primary">Kode Kasbank</th>
|
||||
<th class="primary">Perkiraan</th>
|
||||
<th class="primary">Keterangan</th>
|
||||
<th class="primary">Nominal</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($transaksi) || is_object($transaksi)) {
|
||||
$no = 1;
|
||||
foreach ($transaksi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_KBBM']; ?></td>
|
||||
<td><?= $key['KODE_PERKIRAAN']; ?> | <?= $key['NAMA_PERKIRAAN']; ?></td>
|
||||
<td><?= $key['KET_KBBM']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<?php if ($title2===$title3) { ?>
|
||||
<button type="submit" class="btn btn-primary">Total Kredit <strong><?= $title3 ?></strong> <i class="fa fa-check"></i></button>
|
||||
<?php } else { ?>
|
||||
<button type="submit" class="btn btn-danger">Total Kredit <strong><?= $title3 ?></strong> <i class="fa fa-times"></i></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Transaksi berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Transaksi gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashlebih')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Nominal melebihi jumlah.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,214 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | LIST TRANSAKSI</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>List Transaksi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Transaksi</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageKK"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title"><?= $title1 ?> | <?= $title3 ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center primary">No</th>
|
||||
<th class="primary">Kode Kasbank</th>
|
||||
<th class="primary">Perkiraan</th>
|
||||
<th class="primary">Keterangan</th>
|
||||
<th class="primary">Nominal</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($transaksi) || is_object($transaksi)) {
|
||||
$no = 1;
|
||||
foreach ($transaksi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_KBKK']; ?></td>
|
||||
<td><?= $key['KODE_PERKIRAAN']; ?> | <?= $key['NAMA_PERKIRAAN']; ?></td>
|
||||
<td><?= $key['KET_KBKK']; ?></td>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<?php if ($title2===$title3) { ?>
|
||||
<button type="submit" class="btn btn-primary">Total Debit <strong><?= $title2 ?></strong> <i class="fa fa-check"></i></button>
|
||||
<?php } else { ?>
|
||||
<button type="submit" class="btn btn-danger">Total Debit <strong><?= $title2 ?></strong> <i class="fa fa-times"></i></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Transaksi berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Transaksi gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashlebih')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Nominal melebihi jumlah.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,214 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | LIST TRANSAKSI</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>List Transaksi</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Transaksi</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageKM"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title"><?= $title1 ?> | <?= $title2 ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="center primary">No</th>
|
||||
<th class="primary">Kode Kasbank</th>
|
||||
<th class="primary">Perkiraan</th>
|
||||
<th class="primary">Keterangan</th>
|
||||
<th class="primary">Nominal</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($transaksi) || is_object($transaksi)) {
|
||||
$no = 1;
|
||||
foreach ($transaksi as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_KBKM']; ?></td>
|
||||
<td><?= $key['KODE_PERKIRAAN']; ?> | <?= $key['NAMA_PERKIRAAN']; ?></td>
|
||||
<td><?= $key['KET_KBKM']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<?php if ($title2===$title3) { ?>
|
||||
<button type="submit" class="btn btn-primary">Total Kredit <strong><?= $title3 ?></strong> <i class="fa fa-check"></i></button>
|
||||
<?php } else { ?>
|
||||
<button type="submit" class="btn btn-danger">Total Kredit <strong><?= $title3 ?></strong> <i class="fa fa-times"></i></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Transaksi berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Transaksi gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashlebih')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Nominal melebihi jumlah.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,271 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | LIST KAS KELUAR</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>List Kas Keluar </h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Kas Keluar</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/DataAccounting"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">LIST KAS KELUAR</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Kode Bukti</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Kode Kas</th>
|
||||
<th class="dark">Nama Kas</th>
|
||||
<th class="dark">Nominal</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($kaskeluar) || is_object($kaskeluar)) {
|
||||
$no = 1;
|
||||
foreach ($kaskeluar as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_KASKELUAR']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['KODE_KAS']; ?></td>
|
||||
<td><?= $key['NAMA_KAS']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-revisi<?php echo $key['ID_KASKELUAR']; ?>"><i class="fa fa-arrow-left"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageKK/viewTransaksi/');
|
||||
echo $key['ID_KASKELUAR'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<?php if (is_array($kaskeluar) || is_object($kaskeluar)) {
|
||||
foreach ($kaskeluar as $row) { ?>
|
||||
<!-- Modal Revisi -->
|
||||
<div class="modal fade" id="modal-revisi<?= $row['ID_KASKELUAR'] ?>">
|
||||
<?= form_open('ManageKK/revisi', array('id' => 'formkaskeluar'), array('method' => 'revisi')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Kas Keluar akan direvisi, lanjutkan?</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_kaskeluar" class="form-control" value="<?= $row['ID_KASKELUAR']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Kode Bukti</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_kaskeluar" id="KODE_KASKELUAR<?= $row['ID_KASKELUAR'] ?>" class="form-control" value="<?= $row['KODE_KASKELUAR'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Bank</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_bank" id="KODE_BANK<?= $row['ID_KASKELUAR'] ?>" class="form-control" value="<?= $row['KODE_KAS'] ?> (<?= $row['NAMA_KAS'] ?>)" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="decimal" name="debit_kaskeluar" id="DEBIT_KASKELUAR<?= $row['ID_KASKELUAR'] ?>" class="form-control" value="<?= $row['KREDIT'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Tanggal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<name="tgl_kaskeluar" id="TGL_KASKELUAR<?= $row['ID_KASKELUAR'] ?>" class="form-control" disabled><?= $row['WAKTU'] ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Revisi Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Kas Keluar berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Kas Keluar gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,271 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>VIEW | LIST KAS MASUK</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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>List Kas Masuk </h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Kas Masuk</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/DataAccounting"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">LIST KAS MASUK</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Kode Bukti</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Kode Kas</th>
|
||||
<th class="dark">Nama Kas</th>
|
||||
<th class="dark">Nominal</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($kasmasuk) || is_object($kasmasuk)) {
|
||||
$no = 1;
|
||||
foreach ($kasmasuk as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_KASMASUK']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['KODE_KAS']; ?></td>
|
||||
<td><?= $key['NAMA_KAS']; ?></td>
|
||||
<td><?= $key['DEBIT']; ?></td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-revisi<?php echo $key['ID_KASMASUK']; ?>"><i class="fa fa-arrow-left"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManageKM/viewTransaksi/');
|
||||
echo $key['ID_KASMASUK'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<?php if (is_array($kasmasuk) || is_object($kasmasuk)) {
|
||||
foreach ($kasmasuk as $row) { ?>
|
||||
<!-- Modal Revisi -->
|
||||
<div class="modal fade" id="modal-revisi<?= $row['ID_KASMASUK'] ?>">
|
||||
<?= form_open('ManageKM/revisi', array('id' => 'formkasmasuk'), array('method' => 'revisi')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Kas Masuk akan direvisi, lanjutkan?</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_kasmasuk" class="form-control" value="<?= $row['ID_KASMASUK']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Kode Bukti</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_kasmasuk" id="KODE_BANKMASUK<?= $row['ID_KASMASUK'] ?>" class="form-control" value="<?= $row['KODE_KASMASUK'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Kas</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_bank" id="KODE_BANK<?= $row['ID_KASMASUK'] ?>" class="form-control" value="<?= $row['KODE_KAS'] ?> (<?= $row['NAMA_KAS'] ?>)" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="decimal" name="debit_kasmasuk" id="DEBIT_BANKMASUK<?= $row['ID_KASMASUK'] ?>" class="form-control" value="<?= $row['DEBIT'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Tanggal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<name="tgl_kasmasuk" id="TGL_BANKMASUK<?= $row['ID_KASMASUK'] ?>" class="form-control" disabled><?= $row['WAKTU'] ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Revisi Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Kas Masuk berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Kas Masuk gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,449 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>PROSES | INPUT KAS KELUAR</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" />
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 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><strong>(Step 1)</strong> | Input Kas Keluar </h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Kas Keluar</span></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">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/Kasbank"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title">DATA KAS KELUAR</h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-md">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah">Tambah Data <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="datatable-default">
|
||||
<thead>
|
||||
|
||||
<th class="dark center">No</th>
|
||||
<th class="dark">Kode Bukti</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Kode Kas</th>
|
||||
<th class="dark">Nama Kas</th>
|
||||
<th class="dark">Nominal</th>
|
||||
<th class="dark center">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($kaskeluar) || is_object($kaskeluar)) {
|
||||
$no = 1;
|
||||
foreach ($kaskeluar as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['KODE_KASKELUAR']; ?></td>
|
||||
<td><?= $key['WAKTU']; ?></td>
|
||||
<td><?= $key['KODE_KAS']; ?></td>
|
||||
<td><?= $key['NAMA_KAS']; ?></td>
|
||||
<td><?= $key['KREDIT']; ?></td>
|
||||
<?php if ($key['DEBIT_KASKELUAR']===$key['KREDIT_KASKELUAR'] AND $key['KREDIT_KASKELUAR']!='0.00') { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-primary" onclick="window.location.href='<?= base_url('index.php/ManageKasKeluar/tambahTransaksi/');
|
||||
echo $key['ID_KASKELUAR'];?>'"><i class="fa fa-check"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-dark" data-toggle="modal" data-target="#modal-konfirmasi<?php echo $key['ID_KASKELUAR'];?>"><i class="fa fa-arrow-right"></i></button>
|
||||
</td>
|
||||
<?php } else if ($key['DEBIT_KASKELUAR']===$key['KREDIT_KASKELUAR'] AND $key['KREDIT_KASKELUAR']==='0.00') { ?>
|
||||
<td class="actions center">
|
||||
<button disabled type="button" class="btn btn-xs btn-default" onclick="window.location.href='<?= base_url('index.php/ManageKasKeluar/tambahTransaksi/');
|
||||
echo $key['ID_KASKELUAR'];?>'"><i class="fa fa-times"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_KASKELUAR'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_KASKELUAR']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-success" onclick="window.location.href='<?= base_url('index.php/ManageKasKeluar/tambahTransaksi/');
|
||||
echo $key['ID_KASKELUAR'];?>'"><i class="fa fa-plus"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-edit<?php echo $key['ID_KASKELUAR'];?>"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_KASKELUAR']; ?>"><i class="fa fa-trash-o"></i></a>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageKasKeluar/save', array('id' => 'formkaskeluar'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Tambah Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">Nama Kas <span class="required">*</span></label>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="id_kas" id="ID_KAS" class="form-control populate" required>
|
||||
<option value="" selected>Pilih Nama Kas</option>
|
||||
<?php if (is_array($kas) || is_object($kas)) {
|
||||
foreach ($kas as $key) { ?>
|
||||
<option value="<?= $key['ID_KAS'] ?>" ><?= $key['NAMA_KAS'] ?> : (<?= $key['KODE_KAS'] ?>, SALDO <?= $key['SALDO'] ?>)</option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">Rp</span>
|
||||
<input type="decimal" name="kredit_kaskeluar" id="KREDIT_KASKELUAR" class="form-control" placeholder="Nominal" required>
|
||||
</span>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success" onclick="DisableButton(this);">Tambah Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (is_array($kaskeluar) || is_object($kaskeluar)) {
|
||||
foreach ($kaskeluar as $row) { ?>
|
||||
<!-- Modal Edit -->
|
||||
<div class="modal fade" id="modal-edit<?= $row['ID_KASKELUAR'] ?>">
|
||||
<?= form_open('ManageKasKeluar/edit', array('id' => 'formkaskeluar'), array('method' => 'edit')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title">Edit Data</h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_kaskeluar" class="form-control" value="<?= $row['ID_KASKELUAR']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Kas <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<select data-plugin-selectTwo name="id_kased" id="ID_KAS<?= $row['ID_KASKELUAR'] ?>" class="form-control populate" required>
|
||||
<?php if (is_array($kas) || is_object($kas)) {
|
||||
foreach ($kas as $key) {
|
||||
if ($row['KAS_ID'] == $key['ID_KAS']) { ?>
|
||||
<option value="<?= $key['ID_KAS'] ?>"selected><?= $key['NAMA_KAS'] ?> : (<?= $key['KODE_KAS'] ?>, SALDO <?= $key['SALDO'] ?>)</option>
|
||||
<?php } else { ?>
|
||||
<option value="<?= $key['ID_KAS'] ?>"><?= $key['NAMA_KAS'] ?> : (<?= $key['KODE_KAS'] ?>, SALDO <?= $key['SALDO'] ?>)</option>
|
||||
<?php }
|
||||
}
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="decimal" name="kredit_kaskeluared" id="KREDIT_KASKELUAR<?= $row['ID_KASKELUAR'] ?>" class="form-control" value="<?= $row['KREDIT_KASKELUAR'] ?>" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning" onclick="DisableButton(this);">Edit Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_array($kaskeluar) || is_object($kaskeluar)) {
|
||||
|
||||
foreach ($kaskeluar as $key) { ?>
|
||||
<!-- Modal Hapus -->
|
||||
<div id="modal-hapus<?php echo $key['ID_KASKELUAR']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageKasKeluar/hapus', array('id' => 'formkaskeluar'), array('method' => 'hapus')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><?= $key['KODE_KASKELUAR'] ?></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id" class="form-control" value="<?php echo $key['ID_KASKELUAR'] ?>">
|
||||
<p>Apakah ingin menghapus Bukti Kas Keluar?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger" onclick="DisableButton(this);">Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if (is_array($kaskeluar) || is_object($kaskeluar)) {
|
||||
foreach ($kaskeluar as $row) { ?>
|
||||
<!-- Modal Konfirmasi -->
|
||||
<div class="modal fade" id="modal-konfirmasi<?= $row['ID_KASKELUAR'] ?>">
|
||||
<?= form_open('ManageKasKeluar/konfirmasi', array('id' => 'formkaskeluar'), array('method' => 'konfirmasi')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="panel-title"><strong>Kas Keluar akan diproses, lanjutkan?</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_kaskeluar" class="form-control" value="<?= $row['ID_KASKELUAR']; ?>">
|
||||
<div class="col-md-12">
|
||||
<label>Kode Bukti</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_kaskeluar" id="KODE_KASKELUAR<?= $row['ID_KASKELUAR'] ?>" class="form-control" value="<?= $row['KODE_KASKELUAR'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nama Kas</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="kode_kas" id="KODE_KAS<?= $row['ID_KASKELUAR'] ?>" class="form-control" value="<?= $row['KODE_KAS'] ?> | <?= $row['NAMA_KAS'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Nominal</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<input type="decimal" name="kredit_kaskeluar" id="KREDIT_KASKELUAR<?= $row['ID_KASKELUAR'] ?>" class="form-control" value="<?= $row['KREDIT'] ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label>Tanggal Kas Keluar</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<name="tgl_kaskeluar" id="TGL_KASKELUAR<?= $row['ID_KASKELUAR'] ?>" class="form-control" disabled><?= $row['WAKTU'] ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-dark" onclick="DisableButton(this);">Konfirmasi Data</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('flash')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Kas Keluar berhasil <?= $this->session->flashdata('flash'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if ($this->session->flashdata('flashgagal')) { ?>
|
||||
new PNotify({
|
||||
title: 'Pemberitahuan',
|
||||
text: 'Kas Keluar gagal <?= $this->session->flashdata('flashgagal'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function DisableButton(b)
|
||||
{
|
||||
b.disabled = true;
|
||||
b.value = 'Submitting';
|
||||
b.form.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user