276 lines
10 KiB
PHP
276 lines
10 KiB
PHP
<!doctype html>
|
|
<html class="fixed sidebar-left-collapsed">
|
|
|
|
<head>
|
|
|
|
<!-- Basic -->
|
|
<meta charset="UTF-8">
|
|
|
|
<title>SERVICE</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;
|
|
}
|
|
|
|
.f18 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
</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
|
|
$id_karyawan = $this->session->userdata('id_karyawan');
|
|
$nama_panggilan = $this->session->userdata('nama_panggilan');
|
|
$username = $this->session->userdata('username');
|
|
$tgl_now = date('d/m/Y');
|
|
?>
|
|
|
|
<header class="page-header">
|
|
<h2><b>Data Cetak Dokumen | </b><b style="color:LightGreen">[<?=$tampil?>]</b> | <b style="color:SkyBlue">MODE CETAK ULANG</b></h2>
|
|
<div class="right-wrapper pull-right">
|
|
<ol class="breadcrumbs">
|
|
<li><span><b style="color:Gold">Master Data </span></b></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 data-toggle="modal" data-target="#modalFitur" style="color:Coral"><b>Fitur </b><i class="fa fa-question-circle"></i></a>  
|
|
<a href="<?php echo base_url('') ?>index.php" class="text-dark"><b>Dashboard </b><i class="fa fa-home"></i></a>
|
|
</div>
|
|
<h2 class="panel-title"><b style="color:DarkOrange">DOKUMEN SERVICE | <u style="color:SlateBlue">(<?=$timelimit?>)</u></b></h2>
|
|
</header>
|
|
<div class="panel-body">
|
|
<?php if ($hak>0) { ?>
|
|
<button type="button" class="btn btn-default pull-right" style="color:DarkOrange" data-toggle="modal" data-target="#modalGantiMode"><b>Ganti Mode</b> <i class="fa fa-random"></i></button><br><br>
|
|
<?php } ?>
|
|
<div class="panel-group" id="accordion">
|
|
<div class="panel panel-accordion">
|
|
<header class="panel-heading">
|
|
<h2 class="panel-title">
|
|
<a <?php if ($hak>0) { ?>onclick="setToggle(1)"<?php } ?> class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" <?php if ($hak>0) { ?>href="#collapseOne"<?php } ?>>
|
|
<b class="f18" style="color:Green"><b style="color:Black">[1]</b> TANDA TERIMA SERVICE | <u style="color:DarkRed"><?=$countService?></u> DATA <?php if ($hak<1) { ?> <b style="color:Red">[*Tidak Berhak*]</b><?php } ?></b>
|
|
</a>
|
|
</h2>
|
|
</header>
|
|
<div id="collapseOne" class="accordion-body collapse <?php if ($posisiToggle==1) { ?>in<?php } ?>">
|
|
<div class="panel-body">
|
|
<table class="table table-bordered table-striped mb-none" id="table1">
|
|
<thead>
|
|
<th class="center default">No</th>
|
|
<th class="default">Kode</th>
|
|
<th class="default">Pembuat</th>
|
|
<th class="default">Diterima</th>
|
|
<th class="default">Atas Nama</th>
|
|
<th class="default">Serial Number</th>
|
|
<?php if ($hak>0) { ?>
|
|
<th class="center default">PILIHAN</th>
|
|
<?php } ?>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
if (is_array($service) || is_object($service)) {
|
|
$no = 1;
|
|
foreach ($service as $key) { ?>
|
|
<tr>
|
|
<?php
|
|
if ($key['JENIS_SERVICE']==0) {
|
|
$jenis = "Eksternal";
|
|
} else {
|
|
$jenis = "Internal";
|
|
}
|
|
|
|
if ($key['PELANGGAN_ID']!=NULL) {
|
|
$atasnama = $key['NAMA_PELANGGAN'];
|
|
} else {
|
|
$atasnama = $key['NAMA_PANGGILAN_KARYAWAN'];
|
|
}
|
|
?>
|
|
<td class="center"><?= $no; ?></td>
|
|
<td><b style="color:Tomato">(<?=$jenis?>)</b><br><b style="color:Black"><?= $key['KODE_SERVICE']; ?></b><br><i>(<?= $key['TANGGAL']; ?>)</i></td>
|
|
<td><b style="color:Chocolate"><?= $key['CIPTA_SERVICE'] ?></b></td>
|
|
<td><b style="color:SaddleBrown"><?= $key['TERIMA_SERVICE'] ?></b></td>
|
|
<td><b style="color:DarkGreen"><?= $atasnama ?></b></td>
|
|
<td><b style="color:DarkViolet"><?= $key['NAMA_SNS'] ?></b><br>[<?= $key['NAMA_UNITSERVICE'] ?>]</td>
|
|
<?php if ($hak>0) { ?>
|
|
<td class="actions center">
|
|
<button type="button" onclick="cetakDataService('<?= $key['ID_SNS']; ?>')" class="btn btn-xs btn-default" title="" data-toggle="tooltip" data-trigger="hover" data-original-title="Tombol untuk Cetak Data"> <b style="color:FireBrick"><i class="fa fa-print"></i></b></button>
|
|
</td>
|
|
<?php } ?>
|
|
</tr>
|
|
<?php $no++;
|
|
}
|
|
} ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<!-- end: page -->
|
|
</section>
|
|
</div>
|
|
</section>
|
|
|
|
<div id="modalFitur" class="modal fade" tabindex="-1" role="dialog">
|
|
<div class="modal-dialog modal-lg" style="width:50%">
|
|
<div class="modal-content">
|
|
<header class="panel-heading">
|
|
<h4 class="panel-title"><b>Fitur Teknis</b></h4>
|
|
</header>
|
|
<div class="panel-body">
|
|
<div class="modal-wrapper">
|
|
<div class="modal-text">
|
|
<div class="form-group">
|
|
<h5>
|
|
<b style="color:DarkRed">Berikut ini adalah Daftar Menu yang dapat diakses sesuai dengan Hak Akses Anda.</b><br>
|
|
<br><b style="color:DarkGreen">SUPERUSER/AKSES PENUH/OPERATOR</b><br><b>Akses Semua Menu</b><br>
|
|
</h5>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<footer class="panel-footer">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<button type="button" class="btn btn-default pull-right" data-dismiss="modal">Close</button>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="modalGantiMode" class="modal fade" tabindex="-1" role="dialog">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<header class="panel-heading">
|
|
<h2 class="panel-title"><b>Ganti Mode</b></h2>
|
|
</header>
|
|
<div class="panel-body">
|
|
<div class="modal-wrapper">
|
|
<div class="modal-text">
|
|
<h4>Mode yang sedang aktif adalah : <b style="color:Green">[Mode Cetak Ulang]</b><br><br>Apakah yakin untuk masuk <b style="color:DarkBlue">[Mode Umum]</b> ?</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 class="btn btn-default" style="color:DarkOrange" data-dismiss="modal" onclick="gantiModeUmum()"><b>Ganti</b> <i class="fa fa-random"></i></button>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
</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
|
|
} );
|
|
|
|
|
|
function setToggle(node) {
|
|
$.ajax({
|
|
url: "<?= base_url() ?>index.php/Menu/GE_Ubah_SetTogglePosisi",
|
|
type: "POST",
|
|
dataType: "json",
|
|
data: {
|
|
node : node,
|
|
menu : <?=$id_menu?>,
|
|
},
|
|
success: function(response) {
|
|
}
|
|
});
|
|
}
|
|
|
|
function cetakDataService(id) {
|
|
window.open("http://200.1.1.6/apps/index.php/Menu/SV_Cetak_Sub1_B1_DataTandaTerimaService/"+id, '_blank');
|
|
delayReload(1000,"<?= base_url() ?>index.php/Menu/SV_Sub3_CetakDokumen_2");
|
|
}
|
|
|
|
function gantiModeUmum() {
|
|
notify("cetakulang_mode_out");
|
|
delayReload(1000,"<?= base_url() ?>index.php/Menu/SV_Sub3_CetakDokumen_1");
|
|
}
|
|
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|