copy dari repo om Irfan
This commit is contained in:
@@ -0,0 +1,728 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
||||
|
||||
<title>CETAK | SLIP MANUAL</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="Porto Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="okler.net">
|
||||
|
||||
<!-- Mobile Metas -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
|
||||
<!-- Vendor CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/bootstrap/css/bootstrap.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/font-awesome/css/font-awesome.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/css/datepicker3.css" />
|
||||
|
||||
<!-- Specific Page Vendor CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/select2/select2.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/css/datatables.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/bootstrap-multiselect/bootstrap-multiselect.css" />
|
||||
|
||||
<!-- 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>Slip Manual</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>Cetak</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="col-md-12">
|
||||
<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>
|
||||
|
||||
<h2 class="panel-title"><strong>DETAIL BARANG</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"><strong>Tambah Data</strong> <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="table1">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Nama</th>
|
||||
<th class="dark">Kuantiti</th>
|
||||
<th class="dark">Harga</th>
|
||||
<th class="center dark">Keterangan</th>
|
||||
<th class="center dark">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($dsm) || is_object($dsm)) {
|
||||
$no = 1;
|
||||
foreach ($dsm as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_DSM']; ?></td>
|
||||
<td><?= $key['QTY_DSM']; ?></td>
|
||||
<td><?= $key['HARGA']; ?></td>
|
||||
<td><?= $key['KET_DSM']; ?></td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-hapus<?php echo $key['ID_DSM']; ?>"><i class="fa fa-trash-o"></i></button>
|
||||
</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-default" data-toggle="modal" data-target="#modal-cetak"><strong>Cetak Slip Manual</strong> <i class="fa fa-print"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
<section class="panel panel-featured panel-featured-tertiary">
|
||||
<header class="panel-heading">
|
||||
|
||||
<h2 class="panel-title"><strong>SLIP MANUAL</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="table2">
|
||||
<thead>
|
||||
|
||||
<th class="center default">No</th>
|
||||
<th class="default">Kode</th>
|
||||
<th class="default">Tanggal</th>
|
||||
<th class="default">Atas Nama</th>
|
||||
<th class="default">Pembuat</th>
|
||||
<th class="default">Pelanggan</th>
|
||||
<th class="default">PPN</th>
|
||||
<th class="default">Link SO/Proyek</th>
|
||||
<th class="center default">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($cetak) || is_object($cetak)) {
|
||||
$no = 1;
|
||||
foreach ($cetak as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td class="text-dark"><strong><?= $key['KODE_SM']; ?></strong></td>
|
||||
<td><?= $key['TANGGAL']; ?></td>
|
||||
<?php if ($key['CID']=="1") { ?>
|
||||
<td class="text-primary"><strong>TMP</strong></td>
|
||||
<?php } else if ($key['CID']=="2") { ?>
|
||||
<td class="text-quartenary"><strong>DMT</strong></td>
|
||||
<?php } else if ($key['CID']=="3") { ?>
|
||||
<td class="text-danger"><strong>PCM</strong></td>
|
||||
<?php } ?>
|
||||
<td><?= $key['NAMA_PANGGILAN_KARYAWAN']; ?></td>
|
||||
<?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 } ?>
|
||||
<td><?= $key['PPN_SM']; ?> %</td>
|
||||
<?php if ($key['PROYEK_ID']!="0" AND $key['SID']!="0") { ?>
|
||||
<td><strong class="text-tertiary"><?= $key['KODE_SO']; ?></strong> | <strong class="text-secondary"><?= $key['KODE_PROYEK']; ?></strong></td>
|
||||
<?php } else if ($key['PROYEK_ID']=="0") { ?>
|
||||
<td class="text-quartenary"><strong><?= $key['KODE_SO']; ?></strong><br><strong class="text-dark">(PO = <?= $key['PO_SM']; ?>)</strong></td>
|
||||
<?php } else if ($key['SID']=="0") { ?>
|
||||
<td class="text-secondary"><strong><?= $key['KODE_PROYEK']; ?></strong><br><strong class="text-dark">(PO = <?= $key['PO_SM']; ?>)</strong></td>
|
||||
<?php } else { ?>
|
||||
<td class="text-danger"><strong>Down Payment</strong><br><strong class="text-dark">(PO = <?= $key['PO_SM']; ?>)</strong></td>
|
||||
<?php } ?>
|
||||
<td class="actions center">
|
||||
<?php if ($key['SJ_INV']=="0") { ?>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageCetak/print_all_SJManual/<?= $key['ID_SM'] ?>" target="_blank" class="btn btn-default ml-sm" onclick="testReload();"><i class="fa fa-print"></i> <strong><br>Cetak</strong></a>
|
||||
<?php } else { ?>
|
||||
<a href="<?php echo base_url('') ?>index.php/ManageCetak/print_all_NotaManual/<?= $key['ID_SM'] ?>" target="_blank" class="btn btn-default ml-sm" onclick="testReload();"><i class="fa fa-print"></i> <strong><br>Cetak</strong></a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++; }
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<!-- end: page -->
|
||||
|
||||
</section>
|
||||
|
||||
<!-- Modal Tambah -->
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManageCetak/simpanbarang_AA1', array('id' => 'formcetak'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h4 class="panel-title"><strong>Tambah Barang</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label"><strong>Nama</strong> <span class="required">*</span></label>
|
||||
<div class="col-md-10">
|
||||
<input type="text" name="nama_dsm" id="NAMA_DSM" class="form-control" autocomplete="off" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label"><strong>Kuantiti</strong> <span class="required">*</span></label>
|
||||
<div class="col-md-10">
|
||||
<input type="number" name="qty_dsm" id="QTY_DSM" class="form-control" autocomplete="off" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">
|
||||
<label><strong>Keterangan</strong></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<textarea name="ket_dsm" id="KET_DSM" class="form-control" cols="6" rows="6" placeholder="128 Karakter Max"></textarea>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">
|
||||
<label><strong>Harga</strong></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">Rp</span>
|
||||
<input type="decimal" name="harga_dsm" id="HARGA_DSM" class="form-control" autocomplete="off" placeholder="Harga Satuan">
|
||||
</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"><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($dsm) || is_object($dsm)) {
|
||||
foreach ($dsm as $key) { ?>
|
||||
<div id="modal-hapus<?php echo $key['ID_DSM']; ?>" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageCetak/hapusbarang_AA1', array('id' => 'formcetak'), array('method' => 'hapusbarang_AA1')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><?= $key['QTY_DSM'] ?> PCS = <strong>(<?= $key['NAMA_DSM'] ?>)</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_DSM'] ?>">
|
||||
<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 if (is_array($dsm) || is_object($dsm)) {
|
||||
foreach ($dsm as $key) { ?>
|
||||
<div id="modal-cetak" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageCetak/cetakslipmanual_AA1', array('id' => 'formcetak'), array('method' => 'cetakslipmanual_AA1')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><strong>Cetak 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="tgl_sm" id="TGL_SM" 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>Atas Nama</strong> <span class="required">*</span></label>
|
||||
<div class="col-md-10">
|
||||
<select data-plugin-selectTwo name="id_corp" id="ID_CORP" class="form-control populate" required>
|
||||
<option value="" selected>Pilih Nama Perusahaan</option>
|
||||
<?php if (is_array($corp) || is_object($corp)) {
|
||||
foreach ($corp as $key) { ?>
|
||||
<option value="<?= $key['ID_CORP'] ?>" ><?= $key['NAMA_CORP'] ?></option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label"><strong>Sales</strong> <span class="required">*</span></label>
|
||||
<div class="col-md-10">
|
||||
<select data-plugin-selectTwo name="id_sales" id="ID_SALES" class="form-control populate" required>
|
||||
<option value="" selected>Pilih Nama Sales</option>
|
||||
<?php if (is_array($sales) || is_object($sales)) {
|
||||
foreach ($sales 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">
|
||||
<label class="col-md-2 control-label"><strong>Pelanggan</strong><span class="required">*</span></label>
|
||||
<div class="col-md-10">
|
||||
<select data-plugin-selectTwo name="id_pelanggan" id="ID_PELANGGAN" class="form-control populate" data-plugin-options='{ "minimumInputLength": 2 }' required>
|
||||
<option value="" selected>Pilih Nama Pelanggan</option>
|
||||
<?php if (is_array($pelanggan) || is_object($pelanggan)) {
|
||||
foreach ($pelanggan as $key) { ?>
|
||||
<?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>PPN</strong></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<input type="decimal" name="ppn_sm" id="PPN_SM" class="form-control" autocomplete="off" placeholder="0 %">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label"><strong>Nomor PO</strong> <span class="required">*</span></label>
|
||||
<div class="col-md-10">
|
||||
<input type="text" name="po_sm" id="PO_SM" class="form-control" autocomplete="off" required>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">
|
||||
<label><strong>Keterangan</strong> <span class="required">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<textarea name="ket_sm" id="KET_SM" class="form-control" cols="6" rows="6" placeholder="128 Karakter Max" required></textarea>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label"><strong>Link Data</strong></label>
|
||||
<div class="col-md-5">
|
||||
<select data-plugin-selectTwo name="id_proyek" id="ID_PROYEK" class="form-control populate" data-plugin-options='{ "minimumInputLength": 2 }'>
|
||||
<option value="" selected>Pilih Proyek</option>
|
||||
<?php if (is_array($proyek) || is_object($proyek)) {
|
||||
foreach ($proyek as $key) { ?>
|
||||
<option value="<?= $key['ID_PROYEK'] ?>" ><?= $key['PO_PROYEK'] ?> | <?= $key['NAMA_PELANGGAN'] ?></option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<select data-plugin-selectTwo name="id_so" id="ID_SO" class="form-control populate" data-plugin-options='{ "minimumInputLength": 2 }'>
|
||||
<option value="" selected>Pilih SO</option>
|
||||
<?php if (is_array($so) || is_object($so)) {
|
||||
foreach ($so as $key) { ?>
|
||||
<option value="<?= $key['ID_SO'] ?>" ><?= $key['KODE_SO'] ?> | <?= $key['NAMA_PELANGGAN'] ?></option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-3">
|
||||
<label><h4><strong>Jenis Slip Manual</strong></h4></label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="radio-custom radio-primary">
|
||||
<input type="radio" id="RADIO_SM" name="radio_sm" value="0" checked="">
|
||||
<label for="RADIO_SM"><h4><strong>Surat Jalan</strong></h4></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="radio-custom radio-success">
|
||||
<input type="radio" id="RADIO_SM" name="radio_sm" value="1">
|
||||
<label for="RADIO_SM"><h4><strong>Nota</strong></h4></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="radio-custom radio-warning">
|
||||
<input type="radio" id="RADIO_SM" name="radio_sm" value="2">
|
||||
<label for="RADIO_SM"><h4><strong>DP</strong></h4></label>
|
||||
</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-default"><strong>Cetak</strong> <i class="fa fa-print"></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>
|
||||
<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>
|
||||
<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 } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('twin_item')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Kode Barang sama, silahkan Check kembali.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('retail_item')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Barang non-SN, tidak bisa dipotong part.',
|
||||
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('over_qty')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data melebihi jumlah stock, hubungi Team Gudang.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('over_qty_so')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Kuantiti melebihi kebutuhan SO, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('qty_sjp_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Ada barang yang belum terkirim, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('ppn_check')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Setting PPN tidak sesuai, pastikan data benar.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('limit_check')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Total Harga melebihi limit, hubungi Team Keuangan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('price_check')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Harga belum terisi, silahkan Check kembali.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('sn_check')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'SN belum terisi, silahkan Check kembali.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('sn_io')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'SN terisi, tolong hapus terlebih dahulu.',
|
||||
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('print_ready')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'SJ Parsial siap <?= $this->session->flashdata('print_ready'); ?>, lihat Menu Cetak',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('print_delete_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Tidak bisa menghapus selain SJ terbaru, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_cd_null')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Ada data yang sedang berjalan, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('link_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Harus pilih Link ke SO/Proyek, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('pelanggan_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data Pelanggan SO/Proyek tidak sama dengan Pilihan Cetak, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
function testReload(){
|
||||
setTimeout(function(){
|
||||
location.reload();
|
||||
},1000);
|
||||
};
|
||||
|
||||
var table1 = $('#table1').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
var table2 = $('#table2').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user