copy dari repo om Irfan
This commit is contained in:
@@ -0,0 +1,283 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
||||
|
||||
<title>PROSES | PEMBELIAN</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>(Step 1)</strong> | Proses Nota</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li><span><strong style="color:Orange">Master Data </span></strong></li>
|
||||
</ol>
|
||||
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- start: page -->
|
||||
<?php $jabatan = $this->session->userdata('jabatan'); if ($jabatan=="ADMINISTRATOR" OR $jabatan=="ADMIN ITP" OR strpos($jabatan,"KEUANGAN")!==FALSE) {
|
||||
$set = 1; } else { $set = 0; }?>
|
||||
<section class="panel panel-featured panel-featured-tertiary">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php" class="text-dark"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title"><strong>DATA PEMBELIAN | <a data-toggle="modal" data-target="#modal-login">Masuk Mode Admin <i class="fa fa-sign-in"></i></a> </strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
</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">Kunci Gudang</th>
|
||||
<th class="dark">Supplier</th>
|
||||
<th class="dark">Nomor SJ</th>
|
||||
<th class="dark">Keterangan</th>
|
||||
<?php if ($set=="1") { ?>
|
||||
<th class="center dark">Input Harga</th>
|
||||
<?php } else if ($set=="0") { ?>
|
||||
<th class="center dark">Detail Barang</th>
|
||||
<?php } ?>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($pembelian) || is_object($pembelian)) {
|
||||
$no = 1;
|
||||
foreach ($pembelian as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<?php if ($key['CORP_ID']=="1") { ?>
|
||||
<td><b style="color:DarkSlateGray"><?= $key['KODE_PEMBELIAN']; ?></b><br><b style="color:Blue">[TMP]</b></td>
|
||||
<?php } else if ($key['CORP_ID']=="2") { ?>
|
||||
<td><b style="color:DarkSlateGray"><?= $key['KODE_PEMBELIAN']; ?></b><br><b style="color:HotPink">[DMT]</b></td>
|
||||
<?php } else if ($key['CORP_ID']=="3") { ?>
|
||||
<td><b style="color:DarkSlateGray"><?= $key['KODE_PEMBELIAN']; ?></b><br><b style="color:Red">[PCM]</b></td>
|
||||
<?php } else if ($key['CORP_ID']=="4") { ?>
|
||||
<td><b style="color:DarkSlateGray"><?= $key['KODE_PEMBELIAN']; ?></b><br><b style="color:DarkGreen">[SFTR]</b></td>
|
||||
<?php } else if ($key['CORP_ID']=="5") { ?>
|
||||
<td><b style="color:DarkSlateGray"><?= $key['KODE_PEMBELIAN']; ?></b><br><b style="color:Teal">[ITP]</b></td>
|
||||
<?php } ?>
|
||||
<td><b style="color:Teal"><?= $key['LOCK_PEMBELIAN']; ?></b><br><b style="color:Chocolate">Oleh : <?= $key['NAMA_PANGGILAN_KARYAWAN']; ?></b></td>
|
||||
<td><strong class="text-dark"><?= $key['NAMA_SUPPLIER']; ?></strong><br>(<?= $key['NAMA_KOTA']; ?>)</td>
|
||||
<td><b style="color:FireBrick"><?= $key['SJ_PEMBELIAN']; ?></b><br><i>(<?= $key['TGLSJ']; ?>)</i></td>
|
||||
<td><strong class="text-tertiary"><?= $key['KET_PEMBELIAN']; ?></strong></td>
|
||||
<?php if ($set=="1") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-success" onclick="window.location.href='<?= base_url('index.php/ManagePembelian/dataBarang_Keuangan_A2/');
|
||||
echo $key['ID_PEMBELIAN'];?>'"><i class="fa fa-plus"></i></button>
|
||||
</td>
|
||||
<?php } else if ($set=="0") { ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManagePembelian/dataBarang_Keuangan_A2/');
|
||||
echo $key['ID_PEMBELIAN'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Login Mode Admin-->
|
||||
<div id="modal-login" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManagePembelian/loginrevisi_Pembelian_KA1', array('id' => 'formpembelian'), array('method' => 'loginrevisi_Pembelian_KA1')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><strong>Halaman Login </strong><b class="text-danger">[Warna Merah harus diisi]</b></h2>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-3">
|
||||
<label><strong class="text-danger">Username</strong></label>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<input type="text" name="username" id="USERNAME" class="form-control" autocomplete="off" placeholder="Username" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-3">
|
||||
<label><strong class="text-danger">Password</strong></label>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<input type="password" name="password" id="PASSWORD" class="form-control" autocomplete="off" 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>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$this->load->view('template/sidebar_right');
|
||||
$this->load->view('template/script_vendor');
|
||||
$this->load->view('template/script_flashdata');
|
||||
$this->load->view('template/notification');
|
||||
?>
|
||||
|
||||
<script>
|
||||
$(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_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_valid')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data utama berubah, kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
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 } ?>
|
||||
});
|
||||
|
||||
$('#datatable-default').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
$(document).ready(function() {
|
||||
setInterval(function() {
|
||||
$.ajax({
|
||||
url: "<?= base_url() ?>index.php/Menu/hitung_countView_PB_AA",
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data: 'countOld=' + <?= $count ?>,
|
||||
success: function(response) {
|
||||
if (response.value==1) {
|
||||
notify("autorefresh_newitem");
|
||||
delayReload(5000,"<?= base_url() ?>index.php/ManagePembelian/dataBarang_Keuangan_A1");
|
||||
} else if (response.value==2) {
|
||||
notify("autorefresh_minusitem");
|
||||
delayReload(5000,"<?= base_url() ?>index.php/ManagePembelian/dataBarang_Keuangan_A1");
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 10000);
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user