copy dari repo om Irfan
This commit is contained in:
@@ -0,0 +1,611 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>REVISI | PENJUALAN</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> | Revisi Sales | <strong style="color:Yellow"><?=$nama_sales?></strong></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 -->
|
||||
<section class="panel panel-featured panel-featured-quartenary">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManagePenjualan/dataOrder_Sales_A1" class="text-dark"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<h2 class="panel-title"><strong>DATA SALES ORDER (Mode Revisi) | <a href="<?php echo base_url('') ?>index.php/ManagePenjualan/dataOrder_Sales_A1">Klik untuk Masuk Mode Awal <i class="fa fa-reply"></i></a></strong>
|
||||
<br><i style="color:DarkOrange">Note : [Menu Ubah di Step ini tidak membuat Progress Gudang me-Reset]</i>
|
||||
</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 default">No</th>
|
||||
<th class="default">Kode</th>
|
||||
<th class="default">Tanggal</th>
|
||||
<?php if ($jabatan=="ADMINISTRATOR" OR $id_sales==9 OR $id_sales==43) { ?>
|
||||
<th class="default">Sales</th>
|
||||
<?php } else { ?>
|
||||
<th class="default">TOP</th>
|
||||
<?php } ?>
|
||||
<th class="default">Atas Nama</th>
|
||||
<th width="300px" class="default">Pelanggan</th>
|
||||
<th class="text-right default">PPN</th>
|
||||
<th width="120px" class="default">Status</th>
|
||||
<th class="center default">Data Barang</th>
|
||||
<th class="center default">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($penjualan) || is_object($penjualan)) {
|
||||
$no = 1;
|
||||
foreach ($penjualan as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<?php if ($key['PO_SO']==NULL) { ?>
|
||||
<td class="text-dark"><strong><?= $key['KODE_SO']; ?></strong><br> </td>
|
||||
<?php } else { ?>
|
||||
<td class="text-dark"><strong><?= $key['KODE_SO']; ?></strong><br>(<?= $key['PO_SO']; ?>)</td>
|
||||
<?php } ?>
|
||||
<td><?= $key['TANGGAL']; ?></td>
|
||||
<?php if ($jabatan=="ADMINISTRATOR" OR $id_sales==9 OR $id_sales==43) { ?>
|
||||
<td><?= $key['NAMA_PANGGILAN_KARYAWAN']; ?></td>
|
||||
<?php } else { ?>
|
||||
<td><?= $key['TOP_PELANGGAN']; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['CORP_ID']=="1") { ?>
|
||||
<td class="text-primary"><strong>TMP</strong></td>
|
||||
<?php } else if ($key['CORP_ID']=="2") { ?>
|
||||
<td class="text-quartenary"><strong>DMT</strong></td>
|
||||
<?php } else if ($key['CORP_ID']=="3") { ?>
|
||||
<td class="text-danger"><strong>PCM</strong></td>
|
||||
<?php } else if ($key['CORP_ID']=="4") { ?>
|
||||
<td class="text-success"><strong>SFTR</strong></td>
|
||||
<?php } else if ($key['CORP_ID']=="5") { ?>
|
||||
<td class="text-tertiary"><strong>ITP</strong></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['TYPE_PELANGGAN']=="0") { ?>
|
||||
<td><strong class="text-primary">Corporate</strong> : <br><?= $key['NAMA_PELANGGAN'] ?> (<?= $key['NAMA_KOTA'] ?>)</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']=="1") { ?>
|
||||
<td><strong class="text-success">Dealer</strong> : <br><?= $key['NAMA_PELANGGAN'] ?> (<?= $key['NAMA_KOTA'] ?>)</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']=="2") { ?>
|
||||
<td><strong class="text-warning">User</strong> : <br><?= $key['NAMA_PELANGGAN'] ?> (<?= $key['NAMA_KOTA'] ?>)</td>
|
||||
<?php } ?>
|
||||
<?php if ($key['PPN_SO']=="0.00") { ?>
|
||||
<td class="text-right text-tertiary"><strong>0%</strong></td>
|
||||
<?php } else { $ppn = round($key['PPN_SO'],0); ?>
|
||||
<td class="text-right text-quartenary"><strong><?= $ppn; ?>%</strong></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['STATUS_SO']=="0" OR $key['STATUS_SO']=="7") { ?>
|
||||
<td class="text-primary"><strong>SO Proses</strong><br>Gudang</td>
|
||||
<?php } else if ($key['STATUS_SO']=="4") { ?>
|
||||
<td class="text-warning"><strong>SO Ditahan</strong><br>Gudang</td>
|
||||
<?php } else if ($key['STATUS_SO']=="6") { ?>
|
||||
<td class="text-danger"><strong>SO Revisi</strong><br>Sales</td>
|
||||
<?php } ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-info" onclick="window.location.href='<?= base_url('index.php/ManagePenjualan/dataRevisi_Sales_SA2/');
|
||||
echo $key['ID_SO'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-ubah<?php echo $key['ID_SO']; ?>"><i class="fa fa-pencil"></i></button>
|
||||
<?php if ($key['STATUS_SO']=="6" OR $key['STATUS_SO']=="7") { ?>
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_SO']; ?>"><i class="fa fa-trash-o"></i></button>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<?php if (is_array($penjualan) || is_object($penjualan)) {
|
||||
foreach ($penjualan as $row) { ?>
|
||||
<!-- Modal Ubah -->
|
||||
<div class="modal fade" id="modal-ubah<?= $row['ID_SO'] ?>">
|
||||
<?= form_open('ManagePenjualan/ubahso_SA1', array('id' => 'formpenjualan'), array('method' => 'ubahso_SA1')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h4 class="panel-title"><strong>Ubah Data</strong> | <strong class="text-quartenary">Revisi Tanpa Reset Gudang</strong><br><b class="text-danger">[Warna Merah harus diisi]</b></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">
|
||||
<label><strong class="text-danger">Atas Nama</strong></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<select data-plugin-selectTwo name="id_corped" id="ID_CORP<?= $row['ID_SO'] ?>" class="form-control populate" required>
|
||||
<?php if (is_array($corp) || is_object($corp)) {
|
||||
foreach ($corp as $key) {
|
||||
if ($row['CORP_ID'] == $key['ID_CORP']) { ?>
|
||||
<option value="<?= $key['ID_CORP'] ?>"selected><?= $key['NAMA_CORP'] ?></option>
|
||||
<?php } else { ?>
|
||||
<option value="<?= $key['ID_CORP'] ?>"><?= $key['NAMA_CORP'] ?></option>
|
||||
<?php }
|
||||
}
|
||||
} ?>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">
|
||||
<label><strong class="text-danger">Pelanggan</strong></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<select data-plugin-selectTwo name="id_pelangganed" id="ID_PELANGGAN<?= $row['ID_SO'] ?>" class="form-control populate" data-plugin-options='{ "minimumInputLength": 2 }' required>
|
||||
<?php if (is_array($pelanggan) || is_object($pelanggan)) {
|
||||
foreach ($pelanggan as $key) {
|
||||
if ($row['PELANGGAN_ID'] == $key['ID_PELANGGAN']) { ?>
|
||||
<?php if ($key['TYPE_PELANGGAN']=="0") { ?>
|
||||
<option value="<?= $key['ID_PELANGGAN'] ?>" selected >Corporate : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</option>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']==="1") { ?>
|
||||
<option value="<?= $key['ID_PELANGGAN'] ?>" selected >Dealer : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</option>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']==="2") { ?>
|
||||
<option value="<?= $key['ID_PELANGGAN'] ?>" selected >User : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</option>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<?php if ($key['TYPE_PELANGGAN']==="0") { ?>
|
||||
<option value="<?= $key['ID_PELANGGAN'] ?>" >Corporate : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</option>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']==="1") { ?>
|
||||
<option value="<?= $key['ID_PELANGGAN'] ?>" >Dealer : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</option>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']==="2") { ?>
|
||||
<option value="<?= $key['ID_PELANGGAN'] ?>" >User : [<?= $key['NAMA_PELANGGAN'] ?>, <?= $key['NAMA_KOTA'] ?>]</option>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
}
|
||||
} ?>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">
|
||||
<label><strong class="text-danger">PPN</strong></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<div class="input-group">
|
||||
<input data-plugin-maxlength maxlength="5" type="decimal" name="ppn_soed" id="PPN_SO" class="form-control" autocomplete="off" value="<?= $row['PPN_SO']; ?>">
|
||||
<span class="input-group-addon">%</span>
|
||||
</div>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_so" class="form-control" value="<?= $row['ID_SO']; ?>">
|
||||
<div class="col-md-2">
|
||||
<label><strong>Fee</strong> </label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">Rp</span>
|
||||
<input type="decimal" name="fee_soed" id="FEE_SO" class="form-control" autocomplete="off" value="<?= $row['FEE_SO'] ?>">
|
||||
</span>
|
||||
</div>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">
|
||||
<label><strong>Nomor PO</strong> </label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<input data-plugin-maxlength maxlength="50" type="text" name="po_soed" id="PO_SO" class="form-control" autocomplete="off" placeholder="Nomor PO" value="<?= $row['PO_SO']; ?>">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">
|
||||
<label><strong>Pengingat Sales</strong></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<input type="number" name="reminder_so" id="REMINDER_SO" class="form-control" autocomplete="off" placeholder="12 Bulan (Default)">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-6">
|
||||
<label><strong>Untuk Div. Gudang</strong></label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label><strong>Untuk Div. Keuangan</strong></label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<textarea data-plugin-maxlength maxlength="128" type="text" name="ket_so_g" id="KET_SO_G" class="form-control" rows="3" col="6" placeholder="Keterangan untuk Div. Gudang"><?= $row['KET_SO_G'] ?></textarea>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<textarea data-plugin-maxlength maxlength="128" type="text" name="ket_so_k" id="KET_SO_K" class="form-control" rows="3" col="6" placeholder="Keterangan untuk Div. Keuangan"><?= $row['KET_SO_K'] ?></textarea>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-6">
|
||||
<label><strong>Untuk Div. Teknisi</strong></label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label><strong>Untuk Div. Pengiriman</strong></label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<textarea data-plugin-maxlength maxlength="128" type="text" name="ket_so_t" id="KET_SO_T" class="form-control" rows="3" col="6" placeholder="Keterangan untuk Div. Teknisi"><?= $row['KET_SO_T'] ?></textarea>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<textarea data-plugin-maxlength maxlength="128" type="text" name="ket_so_p" id="KET_SO_P" class="form-control" rows="3" col="6" placeholder="Keterangan untuk Div. Pengiriman"><?= $row['KET_SO_P'] ?></textarea>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-3">
|
||||
<label><h4><strong>Jenis Transaksi</strong></h4></label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<?php if ($row['GP_SO']=="0") { ?>
|
||||
<div class="radio-custom radio-info">
|
||||
<input type="radio" id="RADIO_GP" name="radio_gp" value="0" checked="">
|
||||
<label for="RADIO_GP"><strong>Non-GP</strong></label>
|
||||
</div>
|
||||
<div class="radio-custom radio-warning">
|
||||
<input type="radio" id="RADIO_GP" name="radio_gp" value="1">
|
||||
<label for="RADIO_GP"><strong>GP</strong></label>
|
||||
</div>
|
||||
<?php } else if ($row['GP_SO']=="1") { ?>
|
||||
<div class="radio-custom radio-info">
|
||||
<input type="radio" id="RADIO_GP" name="radio_gp" value="0">
|
||||
<label for="RADIO_GP"><strong>Non-GP</strong></label>
|
||||
</div>
|
||||
<div class="radio-custom radio-warning">
|
||||
<input type="radio" id="RADIO_GP" name="radio_gp" value="1" checked="">
|
||||
<label for="RADIO_GP"><strong>GP</strong></label>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label><h4><strong>Biaya Ongkir</strong></h4></label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<?php if ($row['ONGKIR_SO']=="0") { ?>
|
||||
<div class="radio-custom radio-success">
|
||||
<input type="radio" id="RADIO_ONGKIR" name="radio_ongkir" value="0" checked="">
|
||||
<label for="RADIO_ONGKIR"><strong>Termasuk</strong></label>
|
||||
</div>
|
||||
<div class="radio-custom radio-danger">
|
||||
<input type="radio" id="RADIO_ONGKIR" name="radio_ongkir" value="1">
|
||||
<label for="RADIO_ONGKIR"><strong>Diganti</strong></label>
|
||||
</div>
|
||||
<div class="radio-custom radio-dark">
|
||||
<input type="radio" id="RADIO_ONGKIR" name="radio_ongkir" value="2">
|
||||
<label for="RADIO_ONGKIR"><strong>Byr Tujuan</strong></label>
|
||||
</div>
|
||||
<?php } else if ($row['ONGKIR_SO']=="1") { ?>
|
||||
<div class="radio-custom radio-success">
|
||||
<input type="radio" id="RADIO_ONGKIR" name="radio_ongkir" value="0">
|
||||
<label for="RADIO_ONGKIR"><strong>Termasuk</strong></label>
|
||||
</div>
|
||||
<div class="radio-custom radio-danger">
|
||||
<input type="radio" id="RADIO_ONGKIR" name="radio_ongkir" value="1" checked="">
|
||||
<label for="RADIO_ONGKIR"><strong>Diganti</strong></label>
|
||||
</div>
|
||||
<div class="radio-custom radio-dark">
|
||||
<input type="radio" id="RADIO_ONGKIR" name="radio_ongkir" value="2">
|
||||
<label for="RADIO_ONGKIR"><strong>Byr Tujuan</strong></label>
|
||||
</div>
|
||||
<?php } else if ($row['ONGKIR_SO']=="2") { ?>
|
||||
<div class="radio-custom radio-success">
|
||||
<input type="radio" id="RADIO_ONGKIR" name="radio_ongkir" value="0">
|
||||
<label for="RADIO_ONGKIR"><strong>Termasuk</strong></label>
|
||||
</div>
|
||||
<div class="radio-custom radio-danger">
|
||||
<input type="radio" id="RADIO_ONGKIR" name="radio_ongkir" value="1">
|
||||
<label for="RADIO_ONGKIR"><strong>Diganti</strong></label>
|
||||
</div>
|
||||
<div class="radio-custom radio-dark">
|
||||
<input type="radio" id="RADIO_ONGKIR" name="radio_ongkir" value="2" checked="">
|
||||
<label for="RADIO_ONGKIR"><strong>Byr Tujuan</strong></label>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</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($penjualan) || is_object($penjualan)) {
|
||||
foreach ($penjualan as $key) { ?>
|
||||
<div id="modal-hapus<?php echo $key['ID_SO']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManagePenjualan/hapusso_SA1', array('id' => 'formpenjualan'), array('method' => 'hapusso_SA1')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><strong>Hapus Data</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_SO'] ?>">
|
||||
<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 }
|
||||
} ?>
|
||||
|
||||
<?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>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-maxlength/bootstrap-maxlength.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 -->
|
||||
<?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: 'Data sudah tidak ada, silahkan cek kembali.',
|
||||
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 kurang dari 0.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_used')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data terpakai, tidak bisa diproses',
|
||||
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('username_pass_success')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Anda berhasil <?= $this->session->flashdata('username_pass_success'); ?>. Masuk Mode Revisi.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('username_pass_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Username Anda tidak berhak masuk Mode Revisi, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('limit_pelbaru_check')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Limit Pelanggan Baru melebihi batas, hubungi Team Keuangan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_used_do')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Hapus List Barang SO terlebih dahulu.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_used_io')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Ada data Keluar Masuk, hubungi Gudang.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_used_sm')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Slip Manual pernah dicetak menggunakan SO ini.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
$('#datatable-default').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user