copy dari repo om Irfan
This commit is contained in:
@@ -0,0 +1,367 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>MENU PROYEK</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="Porto Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="okler.net">
|
||||
|
||||
<!-- Mobile Metas -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
|
||||
<!-- Vendor CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/bootstrap/css/bootstrap.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/font-awesome/css/font-awesome.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/css/datepicker3.css" />
|
||||
|
||||
<!-- Specific Page Vendor CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/select2/select2.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/css/datatables.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/bootstrap-multiselect/bootstrap-multiselect.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/base/jquery-ui.css" />
|
||||
|
||||
<!-- Theme CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/stylesheets/theme.css" />
|
||||
|
||||
<!-- Skin CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/stylesheets/skins/default.css" />
|
||||
|
||||
<!-- Theme Custom CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/stylesheets/theme-custom.css">
|
||||
|
||||
<!-- Head Libs -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/modernizr/modernizr.js"></script>
|
||||
|
||||
</head>
|
||||
<script src="<?= base_url() ?>assets/bower_components/jquery/jquery-3.3.1.min.js"></script>
|
||||
<script src="<?= base_url() ?>assets/bower_components/sweetalert2/sweetalert2.all.min.js"></script>
|
||||
|
||||
<style>
|
||||
.ui-front {
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.solid {
|
||||
border-left-style: solid;
|
||||
border-width: 5px;
|
||||
border-color: darkcyan;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
let base_url = '<?= base_url() ?>';
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<section class="body">
|
||||
|
||||
<!-- start: header -->
|
||||
<?php $this->load->view('template/header'); ?>
|
||||
<!-- end: header -->
|
||||
|
||||
<div class="inner-wrapper">
|
||||
<!-- start: sidebar -->
|
||||
<?php $this->load->view('template/sidebar'); ?>
|
||||
<!-- end: sidebar -->
|
||||
|
||||
<section role="main" class="content-body">
|
||||
|
||||
<?php
|
||||
$jabatan = $this->session->userdata('jabatan');
|
||||
$level = $this->session->userdata('level');
|
||||
$nama_panggilan = $this->session->userdata('nama_panggilan');
|
||||
$id_karyawan = $this->session->userdata('id_karyawan');
|
||||
$tgl_now = date('d/m/Y');
|
||||
|
||||
if ($jabatan=="ADMINISTRATOR" OR strpos($jabatan,"GUDANG")!==FALSE) {
|
||||
|
||||
} else {
|
||||
$jabatan = "DILARANG";
|
||||
$proyekBerjalan = null;
|
||||
$proyekBatal = null;
|
||||
$countBerjalan = 0;
|
||||
$countBatal = 0;
|
||||
}
|
||||
?>
|
||||
|
||||
<header class="page-header">
|
||||
<h2><strong>Data Proyek | <b style="color:Yellow">[BARANG PROYEK]</b></strong></h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li><span><strong style="color:Gold">Master Data </span></strong></li>
|
||||
</ol>
|
||||
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- start: page -->
|
||||
<section class="panel panel-featured panel-featured-warning">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php" class="text-dark"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<h2 class="panel-title"><b style="color:Chocolate">PROYEK</b></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="toggle" data-plugin-toggle>
|
||||
<?php if ($statNode1==0) { ?>
|
||||
<section class="toggle">
|
||||
<?php } else if ($statNode1==1) { ?>
|
||||
<section class="toggle active">
|
||||
<?php } ?>
|
||||
<label class="center" onclick="toggle1();"><b>PROYEK BERJALAN | <?=$countBerjalan?> PROYEK</b> </label>
|
||||
<div class="toggle-content">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<table class="table table-bordered table-striped mb-none" id="table1">
|
||||
<thead>
|
||||
<th class="center default">No</th>
|
||||
<th width="190px" class="default">Kode</th>
|
||||
<th class="default">Pelanggan</th>
|
||||
<th class="default">Nama Proyek</th>
|
||||
<th class="center default">Detail Proyek</th>
|
||||
<th class="center default">PILIHAN</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($proyekBerjalan) || is_object($proyekBerjalan)) {
|
||||
$no = 1;
|
||||
foreach ($proyekBerjalan as $key) { ?>
|
||||
<tr>
|
||||
<?php
|
||||
$diffawal = new DateTime($key['TGL_PROYEK']);
|
||||
$diffakhir = new DateTime($tgl);
|
||||
$diff = date_diff($diffawal, $diffakhir);
|
||||
$diff = $diff->format("%a");
|
||||
?>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><b style="color:DarkViolet"><?= $key['KODE_PROYEK']; ?></b><br><i>(<?= $key['TANGGAL']; ?>)</i><br><b style="color:Navy">Nilai : <?=$key['NILAI']?></b></td>
|
||||
<?php if ($key['TYPE_PELANGGAN']=="0") { ?>
|
||||
<td><strong class="text-primary">Corporate</strong> : <b style="color:FireBrick">[<?= $key['NAMA_PANGGILAN_KARYAWAN']; ?>]</b><br><?= $key['NAMA_PELANGGAN'] ?><br><i>(<?= $key['NAMA_KOTA'] ?>)</i></td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']=="1") { ?>
|
||||
<td><strong class="text-success">Dealer</strong> : <b style="color:FireBrick">[<?= $key['NAMA_PANGGILAN_KARYAWAN']; ?>]</b><br><?= $key['NAMA_PELANGGAN'] ?><br><i>(<?= $key['NAMA_KOTA'] ?>)</i></td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']=="2") { ?>
|
||||
<td><strong style="color:DarkOrange">User</strong> : <b style="color:FireBrick">[<?= $key['NAMA_PANGGILAN_KARYAWAN']; ?>]</b><br><?= $key['NAMA_PELANGGAN'] ?><br><i>(<?= $key['NAMA_KOTA'] ?>)</i></td>
|
||||
<?php } ?>
|
||||
<?php if (strtotime($tgl)>strtotime($key['TEMPO_PROYEK'])) { ?>
|
||||
<td><b style="color:SlateBlue"><?= $key['PO_PROYEK']; ?></b><br><b style="color:DarkGreen">Tempo : [<?= $key['TEMPO']; ?>]<br><b style="color:Red">*Sudah Jatuh Tempo*</b></b><br><b style="color:Chocolate">Berjalan : <?=$diff?> Hari</b></td>
|
||||
<?php } else { ?>
|
||||
<td><b style="color:SlateBlue"><?= $key['PO_PROYEK']; ?></b><br><b style="color:DarkGreen">Tempo : [<?= $key['TEMPO']; ?>]</b><br><b style="color:Chocolate">Berjalan : <?=$diff?> Hari</b></td>
|
||||
<?php } ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-success" onclick="window.location.href='<?= base_url('index.php/Menu/PR_Sub1_Gudang_2/');
|
||||
echo $key['ID_PROYEK'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
<td class="actions center">
|
||||
<span data-toggle="modal" data-target="#modalUbah"><button type="button" title="" data-toggle="tooltip" data-trigger="hover" data-original-title="Tombol untuk Ubah Data" onclick="ubahData('<?= $key['ID_PROYEK']; ?>','<?= $key['TGL_PROYEK']; ?>','<?= $key['TEMPO_PROYEK']; ?>')" class="btn btn-xs btn-warning"><i class="fa fa-pencil"></i></button></span>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="toggle" data-plugin-toggle>
|
||||
<?php if ($statNode2==0) { ?>
|
||||
<section class="toggle">
|
||||
<?php } else if ($statNode2==1) { ?>
|
||||
<section class="toggle active">
|
||||
<?php } ?>
|
||||
<label class="center" onclick="toggle2();"><b>PROYEK BATAL BULAN INI | <?=$countBatal?> PROYEK</b> </label>
|
||||
<div class="toggle-content">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<table class="table table-bordered table-striped mb-none" id="table2">
|
||||
<thead>
|
||||
<th class="center default">No</th>
|
||||
<th width="145px" class="default">Proyek Lama</th>
|
||||
<th width="145px" class="default">Proyek Baru</th>
|
||||
<th class="center default">ACC<br><b style="color:DarkRed">ICT</b></th>
|
||||
<th class="center default">ACC<br><b style="color:Orchid">Gudang</b></th>
|
||||
<th class="center default">Detail Data</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($proyekBatal) || is_object($proyekBatal)) {
|
||||
$no = 1;
|
||||
foreach ($proyekBatal as $key) { ?>
|
||||
<tr>
|
||||
<?php if ($key['TGL_BATAL']==NULL) { ?>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<?php } else { ?>
|
||||
<td class="center"><?= $no; ?><br><i style="color:Red">Sudah Batal<br><?=$key['TGLBTL']?>*</i></td>
|
||||
<?php } ?>
|
||||
<td><b style="color:DarkGreen">[1] <?= $key['KODE_PROYEK']; ?> (<?= $key['TANGGAL']; ?>)</b><br><b style="color:Navy">[2] <?=$key['NILAI']?></b><br><b style="color:Chocolate">[3] <?=$key['NAMA_PELANGGAN']?></b><br><b style="color:FireBrick">[4] <?=$key['NAMA_PANGGILAN_KARYAWAN']?></b><br><b style="color:SlateBlue">[5] <?=$key['PO_PROYEK']?></b></td>
|
||||
<td><b style="color:DarkGreen">[1] <?= $key['PENGGANTIKODE']; ?> (<?= $key['PENGGANTITANGGAL']; ?>)</b><br><b style="color:Navy">[2] <?=$key['PENGGANTINILAI']?></b><br><b style="color:Chocolate">[3] <?=$key['PENGGANTIPELANGGAN']?></b><br><b style="color:FireBrick">[4] <?=$key['PENGGANTISALES']?></b><br><b style="color:SlateBlue">[5] <?=$key['PENGGANTIPO']?></b></td>
|
||||
<?php if ($key['ACC_ICT']!=NULL) { ?>
|
||||
<td class="center"><i class="fa fa-check text-success"></i><br>(<?= $key['ACC_ICT']; ?>)<br><b style="color:DarkRed">Bp. Ridwan</b></td>
|
||||
<?php } else { ?>
|
||||
<td class="center default"><i class="fa fa-times text-danger"></i></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['ACC_GUDANG']!=NULL) { ?>
|
||||
<td class="center"><i class="fa fa-check text-success"></i><br>(<?= $key['ACC_GUDANG']; ?>)<br><b style="color:Orchid">Ib. Eli</b></td>
|
||||
<?php } else { ?>
|
||||
<td class="center default"><i class="fa fa-times text-danger"></i></td>
|
||||
<?php } ?>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-success" onclick="window.location.href='<?= base_url('index.php/Menu/PR_Sub1_Gudang_2/');
|
||||
echo $key['ID_PROYEK'];?>'"><i class="fa fa-search"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<div id="modalUbah" class="modal fade" tabindex="-1" role="dialog">
|
||||
<?= form_open('Menu/PR_Ubah_Sub1_BC1_DataProyek', array('id' => 'formproyek'), array('method' => 'PR_Ubah_Sub1_BC1_DataProyek')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h4 class="panel-title"><strong>Ubah Data </strong><b class="text-danger">[Warna Merah harus diisi]</b></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" id="id_proyeked" name="id_proyeked" class="form-control">
|
||||
<div class="col-md-2">
|
||||
<label><strong class="text-danger">Mulai Proyek</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_proyeked" id="tgl_proyeked" class="form-control" onchange="gantiTempo(value)">
|
||||
</div>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">
|
||||
<label><strong>Tempo</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 disabled type="date" name="tempo_proyeked" id="tempo_proyeked" class="form-control">
|
||||
</div>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<h4><label class="col-md-12"><b style="color:DarkOrchid"><i>Pastikan tanggal yang diubah bisa dipertanggungjawabkan oleh Anda. Jejak pengubahan akan tersimpan oleh sistem.<br><i style="color:Blue">Lanjutkan Ubah Data?</i></i></b></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>Ubah</strong> <i class="fa fa-pencil"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
<!-- /.modal-content -->
|
||||
</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>
|
||||
$('#table1').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
$('#table2').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
function toggle1() {
|
||||
$.ajax({
|
||||
url: "<?= base_url() ?>index.php/Menu/PR_Status_Sub1_B1",
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data: {
|
||||
node : '1',
|
||||
},
|
||||
success: function(response) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function toggle2() {
|
||||
$.ajax({
|
||||
url: "<?= base_url() ?>index.php/Menu/PR_Status_Sub1_B1",
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data: {
|
||||
node : '2',
|
||||
},
|
||||
success: function(response) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function ubahData(id_proyek, tgl_proyek, tempo_proyek) {
|
||||
document.getElementById("id_proyeked").value = id_proyek;
|
||||
document.getElementById("tgl_proyeked").value = tgl_proyek;
|
||||
document.getElementById("tempo_proyeked").value = tempo_proyek;
|
||||
}
|
||||
|
||||
function gantiTempo(tgl_proyek) {
|
||||
$.ajax({
|
||||
url: "<?= base_url() ?>index.php/Menu/PR_Ambil_Sub1_BC1_GantiTanggal",
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data: {
|
||||
tgl_proyek : tgl_proyek,
|
||||
},
|
||||
success: function(response) {
|
||||
document.getElementById("tempo_proyeked").value = response.tempo_proyek;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user