You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
548 lines
26 KiB
PHP
548 lines
26 KiB
PHP
<?php
|
|
use NN\Module\Perusahaan as perush;
|
|
use NN\Module\View;
|
|
use NN\CookieHandler as Cookie;
|
|
use NN\Module\DB;
|
|
$namauser = "";
|
|
DB::query("DELETE FROM msimpan WHERE keterangan LIKE 'posting%' AND posting = ''");
|
|
$username = perush::datalogin()['data'][0]->username;
|
|
$namauser = perush::datalogin()['data'][0]->nama;
|
|
$usernama = $namauser;
|
|
$instansi = json_encode(DB::query_result_object("SELECT * FROM dept"),true);
|
|
$profile = json_encode(DB::query_result_object("SELECT * FROM profile"),true);
|
|
$thnprogram = DB::query_result_object("SELECT * FROM tahun_awal")[0]->tahun;
|
|
$paruskas = DB::query_result_object("SELECT * FROM paruskas");
|
|
$pmainacc = DB::query_result_object("SELECT * FROM pmainacc");
|
|
$psubacc = DB::query_result_object("SELECT * FROM psubacc");
|
|
$dmainacc = DB::query_result_object("SELECT * FROM mainacc ORDER BY kode asc");
|
|
DB::query("call cekCashSimpanan()");
|
|
$pacc = Cookie::getCookie("pacc");
|
|
if(!$pacc){
|
|
$q = DB::query_result_object("SELECT * FROM acc ORDER BY kode ASC");
|
|
Cookie::setCookie( "pacc", $q);
|
|
$pacc = $q;
|
|
}
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en" data-textdirection="ltr">
|
|
<!-- BEGIN: Head-->
|
|
<head>
|
|
<meta name="robots" content="noindex">
|
|
<meta name="google" content="notranslate" />
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
|
|
<meta name="author" content="VDS">
|
|
<meta name="ip" content="<?php echo e(View::ip()); ?>">
|
|
<meta name="thprogram" content="<?php echo e($thnprogram); ?>">
|
|
<?php if(APPNAME == 'usp'): ?>
|
|
<title>BACKOFFICE KOPERASI | <?php echo e(perush::get('nama_perusahaan')); ?></title>
|
|
<?php else: ?>
|
|
<title>BACKOFFICE <?php echo e(HOSTAPP == ""? "KOPERASI": "ACCOUNTING"); ?> | <?php echo e(perush::get('nama_perusahaan')); ?></title>
|
|
<?php endif; ?>
|
|
<style>
|
|
:root{
|
|
--greenKop: #118f3d;
|
|
}
|
|
</style>
|
|
<script>
|
|
const thprogram = Number(document.querySelector('meta[name=thprogram]').content);
|
|
</script>
|
|
<link rel="apple-touch-icon" href="<?php echo e(ASSET); ?>/<?php echo e(LOGO); ?>">
|
|
<link rel="shortcut icon" type="image/x-icon" href="<?php echo e(ASSET); ?>/<?php echo e(LOGO); ?>">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/open-sans.css">
|
|
|
|
<!-- BEGIN: Vendor CSS-->
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/toggle.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/vendors.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/tables/datatable/datatables.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/plugins/toastr.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/plugins/select2.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/plugins/bootstrap-datepicker.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/plugins/jquery.datetimepicker.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/plugins/dropzone.min.css">
|
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
|
<!-- END: Vendor CSS-->
|
|
|
|
<!-- BEGIN: Theme CSS-->
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/bootstrap.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/bootstrap-extended.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/colors.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/components.min.css">
|
|
<!-- END: Theme CSS-->
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/charts/chartist.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/charts/chartist-plugin-tooltip.css">
|
|
|
|
<!-- BEGIN: Page CSS-->
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/core/menu/menu-types/vertical-menu-modern.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/core/colors/palette-gradient.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/core/colors/palette-callout.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/charts/morris.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/fonts/simple-line-icons/style.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/toastr.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/wizard.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/uploaders.dropzone.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/datatable/jquery.dataTables.min.css">
|
|
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/fixedcolumns/4.2.2/css/fixedColumns.dataTables.min.css">
|
|
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.13.4/css/dataTables.bootstrap4.min.css">
|
|
<!-- <link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/dropzone.min.css"> -->
|
|
<!-- END: Page CSS-->
|
|
<!-- BEGIN: Custom CSS-->
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/style.css?v=1">
|
|
<!-- APEX -->
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/apex/dist/apexcharts.css">
|
|
<!-- END: Custom CSS-->
|
|
|
|
<!-- theme koperasi -->
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/themes/css/hijaukoperasi.css?v=1">
|
|
<?php echo $__env->make('temp.css', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap" rel="stylesheet">
|
|
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
font-size: 1rem;
|
|
font-weight: 400;
|
|
line-height: 1.45;
|
|
background-color: #f4f5fa;
|
|
}
|
|
#containerforms{
|
|
font-size: 14px;
|
|
}
|
|
|
|
.dataTable{
|
|
font-size: 14px !important;;
|
|
}
|
|
|
|
</style>
|
|
<?php echo $__env->yieldContent('css'); ?>
|
|
|
|
</head>
|
|
<!-- END: Head-->
|
|
|
|
<!-- BEGIN: Body-->
|
|
<body class="vertical-layout vertical-menu-modern 2-columns fixed-navbar" data-open="click" data-menu="vertical-menu-modern" data-col="2-columns">
|
|
<noscript id="paruskas"><?php echo json_encode($paruskas, true); ?></noscript>
|
|
<noscript id="instansi"><?php echo $instansi; ?></noscript>
|
|
<noscript id="acc"><?php echo json_encode( $pacc ); ?></noscript>
|
|
<noscript id="pmainacc"><?php echo json_encode( $pmainacc ); ?></noscript>
|
|
<noscript id="psubacc"><?php echo json_encode( $psubacc ); ?></noscript>
|
|
<noscript id="dmainacc"><?php echo json_encode( $dmainacc ); ?></noscript>
|
|
<script>const instansi = JSON.parse(document.getElementById("instansi").innerHTML).map(function(r){
|
|
return {
|
|
id: r.kode,
|
|
text: r.keterangan
|
|
}
|
|
});
|
|
const getIP = function(){
|
|
return new Promise((resolve, reject)=>{
|
|
fetch("https://api.ipify.org?format=json")
|
|
.then((response) => response.json())
|
|
.then((data) => {
|
|
resolve(data.ip);
|
|
}).catch(reject);
|
|
})
|
|
}
|
|
</script>
|
|
<!-- BEGIN: Header-->
|
|
<nav class="header-navbar navbar-expand-lg navbar navbar-with-menu navbar-without-dd-arrow fixed-top navbar-semi-dark navbar-shadow">
|
|
<div class="navbar-wrapper">
|
|
<div class="navbar-header">
|
|
<ul class="nav navbar-nav flex-row">
|
|
<li class="nav-item mobile-menu d-lg-none mr-auto">
|
|
<a class="nav-link nav-menu-main menu-toggle hidden-xs" href="#"><i class="ft-menu font-large-1"></i></a>
|
|
</li>
|
|
<li class="nav-item mr-auto">
|
|
<a class="navbar-brand pt-2" href="./">
|
|
<!--img class="brand-logo" alt="modern admin logo" src="<?php echo e(ASSET); ?>/assets/images/icon.png"-->
|
|
<h3 class="brand-text"><?php echo e(HOSTAPP == ""? "KOPERASI": "ACCOUNTING"); ?> </h3>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item d-none d-lg-block nav-toggle">
|
|
<a class="nav-link modern-nav-toggle pr-0" data-toggle="collapse">
|
|
<i class="toggle-icon ft-toggle-right font-medium-3 white" data-ticon="ft-toggle-right"></i>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item d-lg-none">
|
|
<a class="nav-link open-navbar-container" data-toggle="collapse" data-target="#navbar-mobile">
|
|
<i class="la la-ellipsis-v"></i>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="navbar-container content">
|
|
<div class="collapse navbar-collapse" id="navbar-mobile">
|
|
<ul class="nav navbar-nav mr-auto float-left">
|
|
<li class="nav-item d-none d-lg-block">
|
|
<a class="nav-link nav-link-expand" href="#"><i class="ficon ft-maximize"></i></a>
|
|
</li>
|
|
</ul>
|
|
<ul class="nav navbar-nav float-right">
|
|
|
|
<li class="dropdown dropdown-user nav-item">
|
|
<a class="dropdown-toggle nav-link dropdown-user-link" href="#" data-toggle="dropdown">
|
|
<span id="nama-user" class="mr-1 user-name text-bold-700"><?php echo e($namauser); ?></span>
|
|
<span class="avatar avatar-online">
|
|
<img src="<?php echo e(ASSET); ?>/assets/images/images.png" alt="avatar">
|
|
<i></i>
|
|
</span>
|
|
</a>
|
|
<div class="dropdown-menu dropdown-menu-right">
|
|
<a class="dropdown-item" onclick="window._EditProfile();"><i class="ft-user"></i> Edit Profile</a>
|
|
<!-- <a class="dropdown-item" href="app-kanban.html"><i class="ft-clipboard"></i> Todo</a>
|
|
<a class="dropdown-item" href="user-cards.html"><i class="ft-check-square"></i> Task</a> -->
|
|
<div class="dropdown-divider"></div>
|
|
<a id="logoutaction" class="dropdown-item" href="<?php echo e(PATH); ?>/admin/logout"><i class="ft-power"></i> Logout</a>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<!-- END: Header--><!-- BEGIN: Main Menu-->
|
|
<div class="main-menu menu-fixed menu-light menu-accordion menu-shadow" data-scroll-to-active="true">
|
|
<div class="main-menu-content">
|
|
<?php echo $__env->make('temp.navigation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
</div>
|
|
</div>
|
|
<div id="useractivemodal" class="modal" tabindex="-1" role="dialog">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title">Profile User</h5>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<p style="padding: 5px 10px;border-radius:10px; border: 1px solid #ddddff;"><i class="la la-info-circle"></i> <span id="infoprofile">Perhatian setelah update system akan logout otomatis.</span></p>
|
|
<div class="form-group">
|
|
<label for="nama">Nama Lengkap</label>
|
|
<input type="text" name="nama" class="form-control user-i" placeholder="...">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="username">Username</label>
|
|
<input type="text" name="username" class="form-control user-i" placeholder="...">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="password">Password</label>
|
|
<input type="password" name="password" class="form-control user-i" placeholder="...">
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-primary" id="saveuser">Save changes</button>
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="app-content content" style="margin-bottom: 45px;">
|
|
<div class="content-overlay"></div>
|
|
<div class="content-wrapper">
|
|
<?php echo $__env->yieldContent('content'); ?>
|
|
</div>
|
|
</div>
|
|
<!-- END: Content-->
|
|
<div class="sidenav-overlay"></div>
|
|
<div class="drag-target"></div>
|
|
<!-- BEGIN: Footer-->
|
|
<footer class="footer fixed-bottom footer-light navbar-border navbar-shadow">
|
|
<p class="clearfix blue-grey lighten-2 text-sm-center mb-0 px-2"><span class="float-md-left d-block d-md-inline-block">Copyright © 2023 <?php echo e(perush::get('nama_perusahaan')); ?></span><span class="float-md-right d-none d-lg-block"><i class="ft-layers text-warning"></i> App Ver. <?php echo e(perush::get('version_app')); ?></span></p>
|
|
</footer>
|
|
<!-- END: Footer-->
|
|
<!-- BEGIN: Vendor JS-->
|
|
<script src="<?php echo e(ASSET); ?>/assets/js/xlsx.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/vendors.min.js"></script>
|
|
<?php echo $__env->make('temp.data', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
<script src="<?php echo e(PATH); ?>/assets-jsx/bundle.js?v=<?php echo e(View::filetimes()); ?>"></script>
|
|
<script>
|
|
const username = '<?php echo e($username); ?>'; const usernama = '<?php echo e($usernama); ?>';
|
|
const dataApi = {
|
|
app: '<?php echo e(APPNAME); ?>',
|
|
username: '<?php echo e($username); ?>',
|
|
usernama: '<?php echo e($usernama); ?>',
|
|
path : '<?php echo e(PATH); ?>/',
|
|
kekayaan : '<?php echo e(PATH); ?>/api/kartupiutang/anggota/',
|
|
connection : '<?php echo e(PATH); ?>/admin/api/connection'
|
|
};
|
|
window.ActiveStatusDev = true;
|
|
const LocalDB = (function() {
|
|
const dbName = 'localDatabase';
|
|
const dbVersion = 1;
|
|
let db;
|
|
|
|
const init = function() {
|
|
return new Promise((resolve, reject) => {
|
|
const request = window.indexedDB.open(dbName, dbVersion);
|
|
|
|
request.onerror = event => {
|
|
console.error('IndexedDB error:', event.target.error);
|
|
reject(event.target.error);
|
|
};
|
|
|
|
request.onsuccess = event => {
|
|
db = event.target.result;
|
|
resolve();
|
|
};
|
|
|
|
request.onupgradeneeded = event => {
|
|
db = event.target.result;
|
|
if (!db.objectStoreNames.contains('data')) {
|
|
db.createObjectStore('data', { autoIncrement: true });
|
|
}
|
|
};
|
|
});
|
|
};
|
|
|
|
const simpan = function(index, nilai) {
|
|
return new Promise((resolve, reject) => {
|
|
const transaction = db.transaction(['data'], 'readwrite');
|
|
const store = transaction.objectStore('data');
|
|
const request = store.add(nilai, index);
|
|
|
|
request.onerror = event => {
|
|
console.error('Error saving data:', event.target.error);
|
|
reject(event.target.error);
|
|
};
|
|
|
|
request.onsuccess = event => {
|
|
resolve(event.target.result);
|
|
};
|
|
});
|
|
};
|
|
|
|
const ubah = function(index, nilai) {
|
|
return new Promise((resolve, reject) => {
|
|
const transaction = db.transaction(['data'], 'readwrite');
|
|
const store = transaction.objectStore('data');
|
|
const request = store.put(nilai, index);
|
|
|
|
request.onerror = event => {
|
|
console.error('Error updating data:', event.target.error);
|
|
reject(event.target.error);
|
|
};
|
|
|
|
request.onsuccess = event => {
|
|
resolve(event.target.result);
|
|
};
|
|
});
|
|
};
|
|
|
|
const hapus = function(index) {
|
|
return new Promise((resolve, reject) => {
|
|
const transaction = db.transaction(['data'], 'readwrite');
|
|
const store = transaction.objectStore('data');
|
|
const request = store.delete(index);
|
|
|
|
request.onerror = event => {
|
|
console.error('Error deleting data:', event.target.error);
|
|
reject(event.target.error);
|
|
};
|
|
|
|
request.onsuccess = event => {
|
|
resolve(true);
|
|
};
|
|
});
|
|
};
|
|
|
|
return {
|
|
init,
|
|
simpan,
|
|
ubah,
|
|
hapus
|
|
};
|
|
})();
|
|
|
|
// Menginisialisasi LocalDB
|
|
LocalDB.init()
|
|
.then(() => {
|
|
console.log('LocalDB initialized.');
|
|
})
|
|
.catch(error => {
|
|
console.error('Failed to initialize LocalDB:', error);
|
|
});
|
|
</script>
|
|
<noscript id="dataprofile"><?php echo $profile; ?></noscript>
|
|
<noscript id="config">{"colors":{"primary":"#696cff","secondary":"#8592a3","success":"#71dd37","info":"#03c3ec","warning":"#ffab00","danger":"#ff3e1d","dark":"#233446","black":"#000","white":"#fff","cardColor":"#fff","bodyBg":"#f5f5f9","bodyColor":"#697a8d","headingColor":"#566a7f","textMuted":"#a1acb8","borderColor":"#eceef1"}}</noscript>
|
|
<script>
|
|
const dataProfile = {
|
|
data : JSON.parse(document.getElementById("dataprofile").innerHTML),
|
|
get : function(a){
|
|
let [datas] = this.data.cond(a, 'kode');
|
|
if(datas){
|
|
let {data} = datas;
|
|
return data;
|
|
}
|
|
return '-';
|
|
}
|
|
};
|
|
</script>
|
|
<script type="module">
|
|
import devtools from '<?php echo e(ASSET); ?>/node/node_modules/devtools-detect/index.js';
|
|
setInterval(() => {
|
|
if(devtools.isOpen === true){
|
|
window.ActiveStatusDev = false;
|
|
} else {
|
|
window.ActiveStatusDev = true;
|
|
}
|
|
});
|
|
</script>
|
|
<!-- brain js -->
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/brain.js/2.0.0-beta.1/brain-browser.js" integrity="sha512-bI0AOBSlsQUR/VlZhVj6PuYqjQFO4YTD6Fpw2UBEGC+QkZWLiDgiFZpDefJFnS+ptTjiwZS30VsaF5vJtkQCGw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
<!-- BEGIN Vendor JS-->
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.20/summernote-bs4.min.css" integrity="sha512-ngQ4IGzHQ3s/Hh8kMyG4FC74wzitukRMIcTOoKT3EyzFZCILOPF0twiXOQn75eDINUfKBYmzYn2AA8DkAk8veQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.20/summernote.min.js" integrity="sha512-6rE6Bx6fCBpRXG/FWpQmvguMWDLWMQjPycXMr35Zx/HRD9nwySZswkkLksgyQcvrpYMx0FELLJVBvWFtubZhDQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
<!-- BEGIN: Page Vendor JS-->
|
|
<script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
|
|
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" />
|
|
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/tables/datatable/datatables.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/plugins/toastr.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/plugins/select2.full.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/plugins/bootstrap-datepicker.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/plugins/jquery.datetimepicker.full.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/plugins/jquery.steps.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/plugins/dropzone.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/plugins/sweetalert2.all.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/charts/chartist.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/charts/chartist-plugin-tooltip.min.js"></script>
|
|
<!-- END: Page Vendor JS-->
|
|
|
|
<!-- BEGIN: Page Vendor JS-->
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/charts/chart.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/charts/raphael-min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/charts/morris.min.js"></script>
|
|
<!-- END: Page Vendor JS-->
|
|
|
|
<!-- BEGIN: Theme JS-->
|
|
<script src="<?php echo e(ASSET); ?>/assets/js/core/app-menu.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/js/core/app.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/js/scripts/customizer.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/js/scripts/footer.min.js"></script>
|
|
<!-- END: Theme JS-->
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.10.0/css/bootstrap-datepicker.min.css" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.10.0/js/bootstrap-datepicker.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.16/jquery.mask.js"
|
|
integrity="sha256-yE5LLp5HSQ/z+hJeCqkz9hdjNkk1jaiGG0tDCraumnA="
|
|
crossorigin="anonymous"
|
|
></script>
|
|
<!-- BEGIN: Page JS-->
|
|
<script src="<?php echo e(ASSET); ?>/assets/js/jquery.floatThead.min.js"></script>
|
|
<!-- datatable -->
|
|
<script src="<?php echo e(ASSET); ?>/datatable/jquery.dataTables.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/datatable/dataTables.buttons.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/datatable/jszip.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/datatable/pdfmake.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/datatable/vfs_fonts.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/datatable/buttons.html5.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/datatable/buttons.print.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/apex/dist/apexcharts.js"></script>
|
|
<script src="https://cdn.datatables.net/fixedcolumns/4.2.2/js/dataTables.fixedColumns.min.js"></script>
|
|
<script src="https://cdn.datatables.net/1.13.4/js/dataTables.bootstrap4.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/gh/linways/table-to-excel@v1.0.4/dist/tableToExcel.js"></script>
|
|
<!-- END: Page JS-->
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/printThis/1.15.0/printThis.min.js" integrity="sha512-d5Jr3NflEZmFDdFHZtxeJtBzk0eB+kkRXWFQqEc1EKmolXjHm2IKCA7kTvXBNjIYzjXfD5XzIjaaErpkZHCkBg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
<script>
|
|
(function(){
|
|
setTimeout(() => {
|
|
Array.from(document.querySelectorAll('noscript')).forEach(function(w){
|
|
var kode = w.id;
|
|
window[kode] = JSON.parse(w.innerHTML);
|
|
})
|
|
}, 100);
|
|
})();
|
|
const AppData = [
|
|
{
|
|
id : "usp"
|
|
,text : "USP"
|
|
}
|
|
, {
|
|
id : "acc"
|
|
,text : "Induk"
|
|
}
|
|
, {
|
|
id : "acc,usp"
|
|
,text : "USP & Induk"
|
|
}
|
|
];
|
|
const AppData2 = [
|
|
{
|
|
id : "usp"
|
|
,text : "USP"
|
|
}
|
|
, {
|
|
id : "acc"
|
|
,text : "Induk"
|
|
}
|
|
];
|
|
qz.security.setCertificatePromise(function(resolve, reject) {
|
|
fetch("<?php echo e(PATH); ?>/cert-print", {cache: 'no-store', headers: {'Content-Type': 'text/plain'}})
|
|
.then(function(data) { data.ok ? resolve(data.text()) : reject(data.text()); });
|
|
});
|
|
qz.security.setSignatureAlgorithm("SHA512");
|
|
qz.security.setSignaturePromise(function(toSign) {
|
|
return function(resolve, reject) {
|
|
$.post("<?php echo e(PATH); ?>/sign-print", {request: toSign}).then(resolve, reject);
|
|
};
|
|
});
|
|
|
|
function launchQZ() {
|
|
if (!qz.websocket.isActive()) {
|
|
startConnection({ retries: 5, delay: 1 });
|
|
}
|
|
};
|
|
|
|
function handleConnectionError(err) {
|
|
console.log(err);
|
|
};
|
|
|
|
function findVersion() {
|
|
qz.api.getVersion().then(function(data) {
|
|
$("#qz-version").html(data);
|
|
qzVersion = data;
|
|
}).catch(displayError);
|
|
}
|
|
|
|
function displayError(err) {
|
|
console.error(err);
|
|
}
|
|
|
|
|
|
function startConnection(config) {
|
|
var host = 'localhost';
|
|
var usingSecure = true;
|
|
|
|
if (host != "" && host != 'localhost') {
|
|
if (config) {
|
|
config.host = host;
|
|
config.usingSecure = usingSecure;
|
|
} else {
|
|
config = { host: host, usingSecure: usingSecure };
|
|
}
|
|
}
|
|
|
|
if (!qz.websocket.isActive()) {
|
|
qz.websocket.connect(config).then(function() {
|
|
findVersion();
|
|
}).catch(handleConnectionError);
|
|
} else {
|
|
Swal('Warning', 'AQz Tray deactive, please run app', 'warning');
|
|
}
|
|
};
|
|
|
|
if(localStorage.getItem('active-print-direct') === "true"){
|
|
launchQZ();
|
|
};
|
|
</script>
|
|
<?php echo View::sc("starterd.js", "module"); ?>
|
|
|
|
<?php echo $__env->yieldContent('script'); ?>
|
|
|
|
</body>
|
|
<!-- END: Body-->
|
|
</html><?php /**PATH /DATA/AppData/warpeka/views/temp/admin.blade.php ENDPATH**/ ?>
|