HTML Dir
HTML Dir
HTML Dir
<meta charset="utf-8">
<script src="../../asset/gt_developer/jquery.min.js"></script>
<script src="../../asset/gt_developer/jquery.min.js"></script>
<!-- Developer css -->
<link href="../../asset/sdk_datatables_core/datatables/bedanihbuatjson/datatables/
datatables.min.css" rel="stylesheet">
<style>
.divBlockSpace {
position: fixed;
overflow: hidden;
background-color: #fdfdfd;
opacity: .75;
filter: alpha(opacity=85);
z-index: 100;
top: 0;
left: 0;
width: 100%;
height: 100%;
</style>
<style>
.loader {
border: 3px solid #f3f3f3;
border-radius: 50%;
width: 40px;
height: 40px;
/* Safari */
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
@keyframes spin {
0% { transform: rotate(0deg); }
</style><style>
.modals {
left: 0;
top: 0;
/* modals Content */
@media (max-width:960px) {
.modals-content {
background-color: #fefefe;
margin: auto;
padding: 20px;
width: 80%;
min-height: 370px;
margin-top: 70px;
.modals-content-loader {
background-color: #02020270;
margin: auto;
padding: 20px;
width: 80%;
margin-top: 150px;
border-radius: 5px;
.button_bot {
background-color: #F68A22;
font-weight: bold;
color: #E1E1E1;
width: 100%;
height: 40px;
padding: 12px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
cursor: pointer;
border-radius: 40px;
.button_bot[disabled]{
background-color: #F68A22;
font-weight: bold;
color: #E1E1E1;
width: 100%;
height: 40px;
padding: 12px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
cursor: pointer;
border-radius: 40px;
@media (min-width:960px) {
.modals-content {
background-color: #fefefe;
margin: auto;
padding: 20px;
width: 25%
.modals-content-loader {
background-color: #02020270;
margin: auto;
padding: 20px;
width: 20%;
margin-top: 150px;
border-radius: 5px;
.button_bot {
background-color: #F68A22;
font-weight: bold;
color: #E1E1E1;
width: 100%;
height: 40px;
padding: 12px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
cursor: pointer;
border-radius: 40px;
.button_bot[disabled]{
background-color: #F68A22;
font-weight: bold;
color: #E1E1E1;
width: 100%;
height: 40px;
cursor: no-drop;
padding: 12px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
cursor: pointer;
border-radius: 40px;
.dataTables_paginate{
margin-top: 10px;
.close {
color: #aaaaaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.sub_div {
position: absolute;
bottom: 20px;
span.required {
color: red;
<div class="lds-ripple">
<div class="lds-pos"></div>
<div class="lds-pos"></div>
</div>
</div>
<!-- This is for the sidebar toggle which is visible on mobile only -->
<b class="logo-icon">
<!--You can put here icon as well // <i class="wi wi-sunset"></i> //-->
</b>
<span class="logo-text">
</span>
</a>
</div>
</ul>
<ul class="navbar-nav">
</a>
<ul class="list-style-none">
<li>
</div>
</li>
<li>
</a>
</a>
</a>
</a>
</li>
<li>
</li>
</ul>
</div>
</li> -->
</a>-->
<div class="dropdown-menu mailbox dropdown-menu-right scale-up" aria-
labelledby="2">
<ul class="list-style-none">
</div>
</li>
<li>
</li>
<li>
</li>
</ul>
</div>
</li>
</a>
<li>
Profile</a>
</div>
</div>
</li>
<li role="separator" class="dropdown-divider"></li>
</ul>
</div>
</li>
</ul>
</div>
</nav>
</header>
<style>
@-webkit-keyframes spinnerframes {
0% {
height: 25%
50% {
height: 40%
100% {
height: 100%
@keyframes spinnerframes {
0% {
height: 25%
50% {
height: 40%
100% {
height: 100%
.spinner {
display: block;
position: relative;
height: 18px;
width: 18px
.spinner.large {
height: 32px;
width: 32px
.spinner .bar {
border-radius: 2px;
display: block;
width: 30%;
position: absolute;
height: 0;
-webkit-animation-name: spinnerframes;
-webkit-animation-direction: alternate;
-webkit-animation-duration: .35s;
-webkit-animation-timing-function: linear;
-webkit-animation-iteration-count: infinite;
animation-name: spinnerframes;
animation-direction: alternate;
animation-duration: .35s;
animation-timing-function: linear;
animation-iteration-count: infinite
.spinner .bar.bar1 {
top: 0;
left: 0
}
.spinner .bar.bar2 {
top: 0;
left: 35%;
-webkit-animation-delay: .1s;
animation-delay: .1s
.spinner .bar.bar3 {
top: 0;
left: 70%;
-webkit-animation-delay: .2s;
animation-delay: .2s
</style>
<style>
.modal.left .modal-dialog,
.modal.right .modal-dialog {
position: fixed;
margin: auto;
width: 420px;
height: 100%;
.modal.right .modal-content {
height: 100%;
overflow-y: auto;
.modal.right .modal-body {
.modal.right.fade .modal-dialog {
right: -420px;
.modal.right.fade.in .modal-dialog {
right: 0;
</style>
<style type="text/css">
div.dataTables_processing {
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 100px;
margin-left: -50%;
margin-top: -25px;
padding-top: 20px;
padding-bottom: 20px;
text-align: center;
font-size: 1px;
color:white;
background-image: url("../../asset/dist/img/index.gif");
</style>
<style>
My Profile</a>
<div class="dropdown-divider"></div>
</div>
</div>
</div>
<!-- End User profile text-->
<nav class="sidebar-nav">
<li class="sidebar-item">
<div class="menu-round">
</div>
</a>
<li class="sidebar-item">
</a>
</li>
<li class="sidebar-item">
</a>
</li>
<li class="sidebar-item">
<li class="sidebar-item">
</li>
</ul>
</li>
<li class="sidebar-item">
<li class="sidebar-item">
</li>
<li class="sidebar-item">
</li>
</ul>
</li>
</ul>
</li>
<li class="sidebar-item">
<div class="menu-round">
</div>
</a>
<span class="hide-menu">Leave</span></a>
<li class="sidebar-item">
</li>
<li class="sidebar-item">
</li>
<li class="sidebar-item">
<a title="Leave Cancellation Request" href="../hrm{sys=leave.cancellation}"
class="sidebar-link"><img src="../../asset/img/mygajah/time.png" alt=""
style="width:25px"> <span class="hide-menu"> Leave Cancellation
Request</span></a>
</li>
<li class="sidebar-item">
</li>
</ul>
</li>
<li class="sidebar-item">
<span class="hide-menu">OnDuty</span></a>
</li>
<li class="sidebar-item">
</li>
<li class="sidebar-item">
</li>
<li class="sidebar-item">
</li>
</ul>
</li>
</ul>
</li>
</ul>
</nav>
</div>
</div>
<td align="Center">
</td>
</table> -->
</div>
</aside>
<!-- End Left Sidebar - style you can find in sidebar.scss -->
<li class="breadcrumb-item"><a
href="javascript:void(0)">Home </a></li>
Leave Request</li>
</ol>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="row">
<!-- Column -->
<script src="vendor/modal/bootstrap.min.js"></script>
<script>
$(document).ready(function() {
var start = 0;
$.ajax({
url: "loadmore.php",
method: "POST",
data: {
limit: limit,
start: start },
cache: false,
success: function(data) {
$('#example3LOAD').append(data);
$('#loader-datatable').hide();
if ('#example3LOAD' == '') {
action = 'active';
$('#msg').hide();
} else {
document.getElementById("msg").innerHTML = "";
action = 'inactive';
});
if (action == 'inactive') {
action = 'active';
window.document.getElementById("msg").innerHTML = "<img
src='../../asset/dist/img/indexa.gif' width='90px'>";
load_employement_data(limit, start);
$(window).scroll(function() {
action = 'active';
setTimeout(function() {
load_employement_data(
limit,
start);
}, 1000);
});
});
</script>
<div class="col-md-12">
<div class="card">
<table>
<tbody><tr><td>
title="Add"></div>
</a> -->
</a>
</td>
<td>
</a>
</td>
<!-- <td>
onclick="popPrint('?
prid=hrm.employee.listemp&psize=A4&porient=landscape');">
</div>
</a>
</td> -->
<!-- <td>
<form
action="../rfid=repository/cli_Template_Download/ta/TaDownloadGTTGRLeaveReqExport"
method="POST">
</button>
</form>
</td> -->
<td>
</div>
</a>
</td>
<!-- Fauzi 02/03/2021 -->
<!-- <td>
onclick="popPrint('/sf6help/index.cfm?
HelpId=hrm.employee.listemp&feat=5423CD04D3C08D9CC6FBC4C3787256C2E8D1BE39D4E9A
BE1B8BD8CD2C25535B64D0E0D9FE8A0E6A1DD1E95AAD4FB1F4B9C13C9AF89C189B0CF247DE3A25
EEC0D4ECFF90DD39A98EEDC27DAB66F06AED5336E315FA6CCC120EB4352EAD7B7A962F8CBDAA2A
B0F4B02C09537CB0FEA11627B0911941F891C0308AFF2ACF1FDC101E0E3270708EDBFB6B256AEF8E
3B6AAFEC6D8C379F1CCC5E00B63B88AFCD69BA32E5B43D132CDA5DB65E210C307DCCC23D32B8EC
2A64AE3BD4E0BDEF94AA6A7CD17FCE1B78AF98E0AD33C8E42CF053283B404FBF91F9CABFB59CAD
361BA474DF8972D8FC328AEDBCBAACB17D0F3A0B50393CED6A8B4CBE7F7129C28FF2BDDF38828D
D00DF193C3CFF5503130038C903DFD34CD48F1ED0E2B4B146C7C4FB8A78C6CFABE299DACEC52D1
F0767837AD3D0E9BECFE7C8D760BECFAEC8F14DB6CFCB27D1BFA7EFC8C7DBA6B50CE50DD2896EC
92C0A&ist=dataon1&appacs=SINGLE&lang=en');">
</div>
</a>
</td> -->
</tr></tbody></table>
</div>
</div>
<thead>
<tr>
</tr>
</td>
</tr>
</thead>
<!-- CODE;NAME_EN
0;Draft
1;Unverified
2;Partially Approved
3;Fully Approved
4;Revised
5;Rejected
8;Cancelled
9;Closed -->
<tbody><tr>
<td class="fontCustom">1</td>
<td class="fontCustom">LVR2024022422101937</td>
<td class="fontCustom">ANL</td>
<td class="fontCustom">0.5</td>
<td class="fontCustom">Keluarga</td>
<td class="fontCustom">No</td>
<td class="fontCustom"></td>
<td class="fontCustom">
</td>
</tr><tr>
<td class="fontCustom">2</td>
<td class="fontCustom">LVR2024022421052970</td>
<td class="fontCustom">PDPR</td>
<td class="fontCustom">0.25</td>
<td class="fontCustom">Keluarga,</td>
<td class="fontCustom">No</td>
<td class="fontCustom">
</div>
</a>
</td>
<td class="fontCustom">
</td>
</tr><tr>
<td class="fontCustom">3</td>
<td class="fontCustom">LVR2024012611152186</td>
<td class="fontCustom">ANLHDLV</td>
<td class="fontCustom">0.5</td>
<td class="fontCustom">Keluarga,</td>
<td class="fontCustom">No</td>
<td class="fontCustom">
</div>
</a>
</td>
<td class="fontCustom">
</td>
</tr><tr>
<td class="fontCustom">4</td>
<td class="fontCustom">LVR2024012611140101</td>
<td class="fontCustom">ANL</td>
<td class="fontCustom">1</td>
<td class="fontCustom">Keluarga,</td>
<td class="fontCustom">No</td>
<td class="fontCustom">
</div>
</a>
</td>
<td class="fontCustom">
<a href="#" class="open_modal_appsetting_lvu" data-toggle="modal"
id="LVR2024012611140101" data-target="#modal-preview_approver"><img
src="../../asset/dist/img/icons/icon-addinfo.png" data-toggle="tooltip" title="approval"></a>
</td>
</tr><tr>
<td class="fontCustom">5</td>
<td class="fontCustom">LVR2024012414510088</td>
<td class="fontCustom">PDPR</td>
<td class="fontCustom">0.25</td>
<td class="fontCustom">No</td>
<td class="fontCustom">
</div>
</a>
</td>
<td class="fontCustom">
</td>
</tr><tr>
<td class="fontCustom">6</td>
<td class="fontCustom">LVR2023122200092135</td>
<td class="fontCustom">ANL</td>
<td class="fontCustom">0.5</td>
<td class="fontCustom">Keluarga</td>
<td class="fontCustom">No</td>
<td class="fontCustom"></td>
<td class="fontCustom">
</td>
</tr><tr>
<td class="fontCustom">7</td>
<td class="fontCustom">LVR2023121906345111</td>
<td class="fontCustom">ANLHDLV</td>
<td class="fontCustom">0.5</td>
<td class="fontCustom">Ketiduran</td>
<td class="fontCustom">No</td>
<td class="fontCustom">
</div>
</a>
</td>
<td class="fontCustom">
</td>
</tr><tr>
<td class="fontCustom">8</td>
<td class="fontCustom">LVR2023112009084991</td>
<td class="fontCustom">ANL</td>
<td class="fontCustom">0.5</td>
<td class="fontCustom">Keluarga</td>
<td class="fontCustom">No</td>
<td class="fontCustom">
</div>
</a>
</td>
<td class="fontCustom">
<a href="#" class="open_modal_appsetting_lvu" data-toggle="modal"
id="LVR2023112009084991" data-target="#modal-preview_approver"><img
src="../../asset/dist/img/icons/icon-addinfo.png" data-toggle="tooltip" title="approval"></a>
</td>
</tr><tr>
<td class="fontCustom">9</td>
<td class="fontCustom">LVR2023101412105233</td>
<td class="fontCustom">ANL</td>
<td class="fontCustom">0.5</td>
<td class="fontCustom">Keluarga</td>
<td class="fontCustom">No</td>
<td class="fontCustom"></td>
<td class="fontCustom">
</td>
</tr><tr>
<td class="fontCustom">10</td>
<td class="fontCustom">LVR2023101010543328</td>
<td class="fontCustom">OSIC</td>
<td class="fontCustom">1</td>
<td class="fontCustom">Kecelakaan Kerja, Tgl 29 September 2023, Tgl 30
September Surat Sakit Hermina. Tgl 02 Oktober 2023 Surat Klinik Gt</td>
<td class="fontCustom">No</td>
<td class="fontCustom">
</div>
</a>
</td>
<td class="fontCustom">
</td>
</tr><tr>
<td class="fontCustom">11</td>
<td class="fontCustom">LVR2023101010500436</td>
<td class="fontCustom">OSIC</td>
<td class="fontCustom">0.5</td>
<td class="fontCustom">No</td>
<td class="fontCustom">
<a href="#" onclick="return startload()" class="open_modal_attch"
id="LVR2023101010500436">
</div>
</a>
</td>
<td class="fontCustom">
</td>
</tr><tr>
<td class="fontCustom">12</td>
<td class="fontCustom">LVR2023101010491942</td>
<td class="fontCustom">OSIC</td>
<td class="fontCustom">1</td>
<td class="fontCustom">No</td>
<td class="fontCustom">
</div>
</a>
</td>
<td class="fontCustom">
</td>
</tr><tr>
<td class="fontCustom">13</td>
<td class="fontCustom">LVR2023091616314809</td>
<td class="fontCustom">ANLHDLV</td>
<td class="fontCustom">0.5</td>
<td class="fontCustom">No</td>
<td class="fontCustom">
</div>
</a>
</td>
<td class="fontCustom">
</td>
</tr><tr>
<td class="fontCustom">14</td>
<td class="fontCustom">LVR2023090123450414</td>
<td class="fontCustom">ANL</td>
<td class="fontCustom">1</td>
<td class="fontCustom">No</td>
<td class="fontCustom"></td>
<td class="fontCustom">
</td>
</tr><tr>
<td class="fontCustom">15</td>
<td class="fontCustom">LVR2023090123440412</td>
<td class="fontCustom">ANL</td>
<td class="fontCustom">1.5</td>
<td class="fontCustom">No</td>
<td class="fontCustom"></td>
<td class="fontCustom">
<a href="#" class="open_modal_appsetting_lvu" data-toggle="modal"
id="LVR2023090123440412" data-target="#modal-preview_approver"><img
src="../../asset/dist/img/icons/icon-addinfo.png" data-toggle="tooltip" title="approval"></a>
</td>
</tr><tr>
<td class="fontCustom">16</td>
<td class="fontCustom">LVR2023083113114057</td>
<td class="fontCustom">PDPR</td>
<td class="fontCustom">0.25</td>
<td class="fontCustom">No</td>
<td class="fontCustom">
</div>
</a>
</td>
<td class="fontCustom">
</td>
</tr><tr>
<td class="fontCustom">17</td>
<td class="fontCustom">LVR2023082815221749</td>
<td class="fontCustom">PDPR</td>
<td class="fontCustom">0.25</td>
<td class="fontCustom">No</td>
<td class="fontCustom">
</div>
</a>
</td>
<td class="fontCustom">
</td>
</tr><tr>
<td class="fontCustom">18</td>
<td class="fontCustom">LVR2023081110453629</td>
<td class="fontCustom">PDPR</td>
<td class="fontCustom">0.5</td>
<td class="fontCustom">
</div>
</a>
</td>
<td class="fontCustom">
</td>
</tr><tr>
<td class="fontCustom">19</td>
<td class="fontCustom">LVR2023080710365316</td>
<td class="fontCustom">ANL</td>
<td class="fontCustom">0.5</td>
<td class="fontCustom">KELUARGA</td>
<td class="fontCustom">No</td>
<td class="fontCustom">
</a>
</td>
<td class="fontCustom">
</td>
</tr><tr>
<td class="fontCustom">20</td>
<td class="fontCustom">LVR2023071216492606</td>
<td class="fontCustom">ANLHDLV</td>
<td class="fontCustom">0.5</td>
<td class="fontCustom">No</td>
<td class="fontCustom">
</div>
</a>
</td>
<td class="fontCustom">
</tr><tr>
<td class="fontCustom">21</td>
<td class="fontCustom">LVR2023061514110758</td>
<td class="fontCustom">ANL</td>
<td class="fontCustom">0.5</td>
<td class="fontCustom">No</td>
<td class="fontCustom">
</div>
</a>
</td>
<td class="fontCustom">
</td>
</tr><tr>
<td class="fontCustom">22</td>
<td class="fontCustom">LVR2023052008240709</td>
<td class="fontCustom">GRD</td>
<td class="fontCustom">25 May 2023</td>
<td class="fontCustom">1</td>
<td class="fontCustom">No</td>
<td class="fontCustom">
</div>
</a>
</td>
<td class="fontCustom">
</td>
</tr></tbody><tbody>
<script type="text/javascript">
$(document).ready(function() {
$(".open_modal_edit").click(function(e) {
var m = $(this).attr("id");
$.ajax({
url: "modal_edit.php?emp_id=16-1466",
type: "POST",
data: {
id: m,
},
success: function(ajaxData) {
$("#ModalEdit").html(ajaxData);
$("#ModalEdit").modal({
backdrop: 'static',
keyboard: 'false'
});
});
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$(".open_modal_attch").click(function(e) {
var m = $(this).attr("id");
$.ajax({
url: "modal_attch.php?emp_id=16-1466",
type: "POST",
data: {
id: m,
},
success: function(ajaxData) {
$("#ModalEdit").html(ajaxData);
$("#ModalEdit").modal({
backdrop: 'static',
keyboard: 'false'
});
});
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$(".open_modal_add").click(function(e) {
var m = $(this).attr("id");
$.ajax({
url: "modal_add.php?emp_id=16-1466",
type: "POST",
data: {
id: m,
},
success: function(ajaxData) {
$("#ModalEdit").html(ajaxData);
$("#ModalEdit").modal({
backdrop: 'static',
keyboard: 'false'
});
});
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$(".open_modal_search").click(function(e) {
var m = $(this).attr("id");
$.ajax({
url: "modal_search.php?emp_id=16-1466",
type: "POST",
data: {
id: m,
},
success: function(ajaxData) {
$("#ModalSearch").html(ajaxData);
$("#ModalSearch").modal({
backdrop: 'static',
keyboard: 'false'
});
});
});
});
</script>
$(document).ready(function() {
$(".open_modal_appsetting_lvu").click(function(e) {
var m = $(this).attr("id");
$.ajax({
url: "../hrm{sys=time.attendance}/modal_appsetting_lvu.php?emp_id=16-1466",
type: "POST",
data: {
id: m,
},
success: function(ajaxData) {
$("#ModalEdit").html(ajaxData);
$("#ModalEdit").modal({
backdrop: 'static',
keyboard: 'false'
});
});
});
});
</script> -->
<script type="text/javascript">
$(document).ready(function() {
$(".open_modal_revised").click(function(e) {
var m = $(this).attr("id");
$.ajax({
url: "modal_revised.php?emp_id=16-1466",
type: "POST",
data: {
id: m,
},
success: function(ajaxData) {
$("#ModalEdit").html(ajaxData);
$("#ModalEdit").modal({
backdrop: 'static',
keyboard: 'false'
});
});
});
});
</script></tbody></table>
</div>
<div class="col-sm-10">
</div>
<div class="col-sm-2">
<div id="toolbarlist">
</button></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="vendor/modal/bootstrap.min.js"></script>
<div class="modal-content">
<div class="modal-header">
</div>
<fieldset id="fset_1">
<!-- /**
*
* '||''|. '||
* || || || '|.| || || || || || | ||
* ||
*/ -->
<!-- /**
* '||''|. '||
* || || || '|.| || || || || || | ||
* ||
*/ -->
<div class="form-row">
16-1466 </div>
</div>
<div class="form-row">
</div>
<div class="form-row" id="tr_inp_urgent_reason" style="display:none;">
<div class="col-sm-8">
<div class="input-group">
<option>--Select One--</option>
</select>
</div>
</div>
</div>
<div class="form-row">
<div class="col-sm-8">
</div>
</div>
</div>
<fieldset id="fset_1">
<legend>List Attachment</legend>
<!-- <table border="1"
<thead>
<tr>
</tr>
</thead>
<tbody><tr>
<td href="#">LVR2024022421052970</td>
<td class="fontCustom">
<a
href="../../application/API/mobile/attachment/uploads/LVR202402242105297024022024210529rin
o.jpg" onclick="return startload()">
LVR20240224210529702... </a>
<br>
see file
</button>
</td>
</tr></tbody></table>
</fieldset>
</fieldset>
<div class="modal-footer">
<div class="form-group">
</div>
</div>
</form>
</div>
</div>
<script>
// doc,jpg,ods,png,txt,doc,pdf
var allowedFiles = [".doc", ".jpg", ".jpeg", ".ods", ".png", ".txt", ".docx", ".pdf"];
uploadField.onchange = function() {
this.value = "";
} else if (!regex.test(uploadField.value.toLowerCase())) {
this.value = "";
};
};
</script>
<script>
jQuery(document).ready(function(e) {
$('button').on('click', function(e) {
$img = $(this).attr("data-src");
});
});
</script>
<div class="modal-content">
</div>
</div>
</div>
<style>
.object {
width: 100%;
height: 100%;
overflow: scroll;
</style></div></div>
<div class="modal-content">
<div class="modal-header">
<span aria-hidden="true">×</span>
</button>
</div>
<div id="tampil_tambah">
<script>
$(document).ready(function() {
$("#inp_urgent_on").click(function() {
if (inp_urgent_on == '1') {
$("#tr_inp_urgent_on").hide();
$("#tr_inp_urgent_off").show();
$("#tr_inp_urgent_reason").show();
$('#inp_urgent_on').prop('checked', false);
document.getElementById("inp_urgent_on_back").setAttribute("name", "hidden");
document.getElementById("inp_urgent_off").setAttribute("name", "inp_urgent_decl");
});
});
$(document).ready(function() {
$("#inp_urgent_off").click(function() {
if (inp_urgent_off == '1') {
$("#tr_inp_urgent_on").show();
$("#tr_inp_urgent_off").hide();
$("#tr_inp_urgent_reason").hide();
$('#inp_urgent_off').prop('checked', true);
document.getElementById("inp_urgent_on_back").setAttribute("name", "inp_urgent_decl");
document.getElementById("inp_urgent_off").setAttribute("name", "hidden");
});
});
</script>
<link rel="stylesheet"
href="../../asset/gt_developer/gt_datepicker_20211002/materialDateTimePicker.css">
<script type="text/javascript"
src="../../asset/gt_developer/gt_datepicker_20211002/moment.js"></script>
<script type="text/javascript"
src="../../asset/gt_developer/gt_datepicker_20211002/materialDateTimePicker.js"></script>
<div class="modal-body">
<fieldset id="fset_1">
<div class="form-row">
<div class="col-sm-8">
<div class="input-group">
</div>
</div>
</div>
<div class="form-row">
<div class="col-sm-8">
<div class="input-group">
</div>
</div>
</div>
<div class="form-row">
<div class="col-sm-8">
<div class="input-group">
</div>
</div>
</div>
<div class="col-sm-8">
<div class="input-group">
<input class="input--style-6" style="margin-bottom: 2px;background-color: #fff3b4;"
id="inp_leavebalance" name="inp_leavebalance" type="Text" value="" onfocus="hlentry(this)"
size="20" maxlength="50" validate="NotNull:Invalid Form Entry" onchange="formodified(this);"
title="" readonly="">
</div>
</div>
</div>
<div class="form-row">
<div class="input-group">
background-image:url(../../asset/dist/img/icons/calendar_icon.gif);
background-size: 17px;
background-position:right;
background-repeat:no-repeat;
padding-right:10px;
</div>
</div>
<div class="col-sm-3">
<div class="input-group">
</select>
</select>
</select>
</div>
</div>
<div class="input-group">
</div>
</div>
</div>
<div class="form-row">
<div class="input-group">
background-image:url(../../asset/dist/img/icons/calendar_icon.gif);
background-size: 17px;
background-position:right;
background-repeat:no-repeat;
padding-right:10px;
</div>
</div>
<div class="col-sm-3">
<div class="input-group">
</select>
</div>
</div>
</div>
<div class="form-row">
<div class="col-sm-8">
<div class="input-group">
</div>
</div>
</div>
<div class="form-row" id="tr_inp_leaveisurgent" style="display:none;">
<div class="col-sm-8">
<div class="vc-toggle-container">
<label class="vc-switch">
<span class="vc-handle"></span>
</label>
</div>
</div>
<div class="vc-toggle-container">
<label class="vc-switch">
<span class="vc-handle"></span>
</label>
</div>
</div>
</div>
</div>
<div class="form-row" id="tr_inp_urgent_reason" style="display:none;">
<div class="col-sm-8">
<div class="input-group">
<option>--Select One--</option>
</select>
</div>
</div>
</div>
<div class="form-row">
<div class="col-sm-8">
</div>
</div>
</div>
</table>
<div id="box"></div>
<div id="boxifblur"></div>
</fieldset>
<div class="modal-footer">
<div class="form-group">
title, w, h) {
'window_approver?rfid=' +
modal_emp, title,
w + ', height=' + h +
', top=' + 50 +
</script>
<a href="#" id="show_preview" class="btn btn-primary" style="color: cornsilk;"
onclick="return startload()">
Preview Approver
</a>
Preview Approver
</a>
<script>
$(function() {
var $src = $(
'#modal_emp'),
$dst = $(
'#four'
);
$src.on('input',
function() {
$dst.val($src
.val());
});
});
</script>
<button type="submit" name="submit_add" id="submit_add" class="btn btn-
warning">Submit</button>
Processing..
</button>
</div>
</div>
</form>
</div>
<script type="text/javascript">
var inp_hdtype_starttime_full_day =
document.getElementById("inp_hdtype_starttime_full_day").value;
formData.append('modal_emp', modal_emps);
formData.append('modal_leave', modal_leave);
$.ajax({
url: 'ajax.php',
type: 'POST',
data: formData,
processData: false,
contentType: false,
dataType: 'json',
success: function(response) {
$('#inp_leavebalance').val(response.lvb);
$('#inp_leavedaytype').val(response.ltp);
$('#inp_leavecompany').val(response.lvc);
$('#inp_leaveisurgent').val(response.lur);
if (response.lvc == "N") {
$("#inp_leavebalanceR").show();
} else {
$("#inp_leavebalanceR").hide();
if (response.lur == '1') {
$("#tr_inp_leaveisurgent").show();
} else {
$("#tr_inp_leaveisurgent").hide();
$("#tr_inp_urgent_reason").hide();
if (response.ltp == 'HD') {
$("#inp_hdtype_starttime_con2").show();
$("#inp_hdtype_starttime2").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime").hide();
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name",
"hidden");
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name",
"inp_hdtype_starttime");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2").setAttribute("name",
"inp_hdtype_starttime2");
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"hidden");
$("#inp_hdtype_starttime_con2").hide();
$("#inp_hdtype_starttime2").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime2_declare").hide();
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
$("#inp_hdtype_starttime_con2").hide();
$("#inp_hdtype_starttime2").show();
$("#inp_hdtype_starttime_full_day").show();
$("#inp_hdtype_starttime").hide();
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name",
"inp_hdtype_starttime");
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2").setAttribute("name",
"inp_hdtype_starttime2");
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"hidden");
$("#inp_hdtype_starttime_con2").show();
$("#inp_hdtype_starttime2").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime2_declare").hide();
//
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name","inp_hdtype_star
ttime");
// document.getElementById("inp_hdtype_starttime_con2").setAttribute("name",
"hidden");
// document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
// document.getElementById("inp_hdtype_starttime2").setAttribute("name", "hidden");
// document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"inp_hdtype_starttime2");
//UPDATE CASE GOLIVE DAY 1
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name",
"hidden");
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name",
"inp_hdtype_starttime");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"inp_hdtype_starttime2");
$("#HD").hide();
$("#inp_hdtype_starttime").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime_con2").hide();
$("#inp_starttime").hide();
$("#inp_endtime").hide();
$("#HD").hide();
$("#inp_hdtype_starttime").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime_con2").hide();
$("#inp_starttime").show();
$("#inp_endtime").show();
} else {
$("#HD").hide();
$("#inp_hdtype_starttime").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime_con2").hide();
$("#inp_starttime").hide();
$("#inp_endtime").hide();
});
});
var inp_hdtype_starttime_full_day =
document.getElementById("inp_hdtype_starttime_full_day").value;
formData.append('modal_emp', modal_emps);
formData.append('modal_leave', modal_leave);
$.ajax({
url: 'ajax.php',
type: 'POST',
data: formData,
processData: false,
contentType: false,
dataType: 'json',
success: function(response) {
$('#inp_leavebalance').val(response.lvb);
$('#inp_leavedaytype').val(response.ltp);
$('#inp_leavecompany').val(response.lvc);
$('#inp_leaveisurgent').val(response.lur);
if (response.lvc == "N") {
$("#inp_leavebalanceR").show();
} else {
$("#inp_leavebalanceR").hide();
if (response.lur == '1') {
$("#tr_inp_leaveisurgent").show();
} else {
$("#tr_inp_leaveisurgent").hide();
$("#tr_inp_urgent_reason").hide();
if (response.ltp == 'HD') {
$("#inp_hdtype_starttime_con2").show();
$("#inp_hdtype_starttime2").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime").hide();
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name",
"hidden");
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name",
"inp_hdtype_starttime");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2").setAttribute("name",
"inp_hdtype_starttime2");
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"hidden");
$("#inp_hdtype_starttime_con2").hide();
$("#inp_hdtype_starttime2").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime2_declare").hide();
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
$("#inp_hdtype_starttime_con2").hide();
$("#inp_hdtype_starttime2").show();
$("#inp_hdtype_starttime_full_day").show();
$("#inp_hdtype_starttime").hide();
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name",
"inp_hdtype_starttime");
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2").setAttribute("name",
"inp_hdtype_starttime2");
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"hidden");
$("#inp_hdtype_starttime_con2").show();
$("#inp_hdtype_starttime2").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime2_declare").hide();
//
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name","inp_hdtype_star
ttime");
// document.getElementById("inp_hdtype_starttime_con2").setAttribute("name",
"hidden");
// document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
// document.getElementById("inp_hdtype_starttime2").setAttribute("name", "hidden");
// document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"inp_hdtype_starttime2");
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name",
"hidden");
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name",
"inp_hdtype_starttime");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"inp_hdtype_starttime2");
$("#HD").hide();
$("#inp_hdtype_starttime").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime_con2").hide();
$("#inp_starttime").hide();
$("#inp_endtime").hide();
$("#HD").hide();
$("#inp_hdtype_starttime").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime_con2").hide();
$("#inp_starttime").show();
$("#inp_endtime").show();
} else {
$("#HD").hide();
$("#inp_hdtype_starttime").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime_con2").hide();
$("#inp_starttime").hide();
$("#inp_endtime").hide();
});
});
var inp_hdtype_starttime_full_day =
document.getElementById("inp_hdtype_starttime_full_day").value;
formData.append('modal_emp', modal_emps);
formData.append('modal_leave', modal_leave);
$.ajax({
url: 'ajax.php',
type: 'POST',
data: formData,
processData: false,
contentType: false,
dataType: 'json',
success: function(response) {
$('#inp_leavebalance').val(response.lvb);
$('#inp_leavedaytype').val(response.ltp);
$('#inp_leavecompany').val(response.lvc);
$('#inp_leaveisurgent').val(response.lur);
if (response.lvc == "N") {
$("#inp_leavebalanceR").show();
} else {
$("#inp_leavebalanceR").hide();
if (response.lur == '1') {
$("#tr_inp_leaveisurgent").show();
} else {
$("#tr_inp_leaveisurgent").hide();
$("#tr_inp_urgent_reason").hide();
if (response.ltp == 'HD') {
$("#inp_hdtype_starttime_con2").show();
$("#inp_hdtype_starttime2").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime").hide();
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name",
"hidden");
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name",
"inp_hdtype_starttime");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2").setAttribute("name",
"inp_hdtype_starttime2");
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"hidden");
$("#inp_hdtype_starttime_con2").hide();
$("#inp_hdtype_starttime2").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime2_declare").hide();
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
$("#inp_hdtype_starttime_con2").hide();
$("#inp_hdtype_starttime2").show();
$("#inp_hdtype_starttime_full_day").show();
$("#inp_hdtype_starttime").hide();
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name",
"inp_hdtype_starttime");
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2").setAttribute("name",
"inp_hdtype_starttime2");
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"hidden");
$("#inp_hdtype_starttime_con2").show();
$("#inp_hdtype_starttime2").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime2_declare").hide();
//
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name","inp_hdtype_star
ttime");
// document.getElementById("inp_hdtype_starttime_con2").setAttribute("name",
"hidden");
// document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
// document.getElementById("inp_hdtype_starttime2").setAttribute("name", "hidden");
// document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"inp_hdtype_starttime2");
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name",
"hidden");
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name",
"inp_hdtype_starttime");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"inp_hdtype_starttime2");
$("#HD").hide();
$("#inp_hdtype_starttime").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime_con2").hide();
$("#inp_starttime").hide();
$("#inp_endtime").hide();
$("#HD").hide();
$("#inp_hdtype_starttime").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime_con2").hide();
$("#inp_starttime").show();
$("#inp_endtime").show();
} else {
$("#HD").hide();
$("#inp_hdtype_starttime").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime_con2").hide();
$("#inp_starttime").hide();
$("#inp_endtime").hide();
});
});
$(document).on('change', '#inp_hdtype_starttime_full_day', function() {
var inp_hdtype_starttime_full_day =
document.getElementById("inp_hdtype_starttime_full_day").value;
formData.append('modal_emp', modal_emps);
formData.append('modal_leave', modal_leave);
$.ajax({
url: 'ajax.php',
type: 'POST',
data: formData,
processData: false,
contentType: false,
dataType: 'json',
success: function(response) {
$('#inp_leavebalance').val(response.lvb);
$('#inp_leavedaytype').val(response.ltp);
$('#inp_leavecompany').val(response.lvc);
$('#inp_leaveisurgent').val(response.lur);
if (response.lvc == "N") {
$("#inp_leavebalanceR").show();
} else {
$("#inp_leavebalanceR").hide();
if (response.lur == '1') {
$("#tr_inp_leaveisurgent").show();
} else {
$("#tr_inp_leaveisurgent").hide();
$("#tr_inp_urgent_reason").hide();
if (response.ltp == 'HD') {
$("#inp_hdtype_starttime_con2").show();
$("#inp_hdtype_starttime2").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime").hide();
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name",
"hidden");
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name",
"inp_hdtype_starttime");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2").setAttribute("name",
"inp_hdtype_starttime2");
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"hidden");
$("#inp_hdtype_starttime_con2").hide();
$("#inp_hdtype_starttime2").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime2_declare").hide();
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
$("#inp_hdtype_starttime_con2").hide();
$("#inp_hdtype_starttime2").show();
$("#inp_hdtype_starttime_full_day").show();
$("#inp_hdtype_starttime").hide();
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name",
"inp_hdtype_starttime");
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2").setAttribute("name",
"inp_hdtype_starttime2");
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"hidden");
$("#inp_hdtype_starttime_con2").show();
$("#inp_hdtype_starttime2").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime2_declare").hide();
//
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name","inp_hdtype_star
ttime");
// document.getElementById("inp_hdtype_starttime_con2").setAttribute("name",
"hidden");
// document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
// document.getElementById("inp_hdtype_starttime2").setAttribute("name", "hidden");
// document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"inp_hdtype_starttime2");
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name",
"hidden");
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name",
"inp_hdtype_starttime");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"inp_hdtype_starttime2");
$("#HD").hide();
$("#inp_hdtype_starttime").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime_con2").hide();
$("#inp_starttime").hide();
$("#inp_endtime").hide();
} else if (response.ltp == 'PD') {
$("#HD").hide();
$("#inp_hdtype_starttime").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime_con2").hide();
$("#inp_starttime").show();
$("#inp_endtime").show();
} else {
$("#HD").hide();
$("#inp_hdtype_starttime").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime_con2").hide();
$("#inp_starttime").hide();
$("#inp_endtime").hide();
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$('#modal_leave_start').bootstrapMaterialDatePicker({
time: false,
clearButton: true
});
$('#modal_leave_end').bootstrapMaterialDatePicker({
time: false,
clearButton: true
});
$('#inp_starttime').bootstrapMaterialDatePicker({
date: false,
format: 'HH:mm'
});
$('#inp_endtime').bootstrapMaterialDatePicker({
date: false,
format: 'HH:mm'
});
});
</script>
function isi_otomatis() {
$.ajax({
url: 'ajax_cek.php?emp_id=16-1466',
}).success(function(data) {
alert(objs.nama);
$('#inp_nickname').val(objs.nama);
$('#nik').val(objs.nik);
});
</script> -->
function isi_otomatis_leaves() {
var inp_hdtype_starttime_full_day =
document.getElementById("inp_hdtype_starttime_full_day").value;
$.ajax({
url: 'ajax_cek3_mysql.php?emp_id=16-1466',
data: {
modal_emp: modal_emps,
modal_leave: modal_leave,
modal_urgent: modal_urgent
},
}).success(function(data) {
obj = JSON.parse(json);
$('#inp_leavebalance').val(obj.lvb);
$('#inp_leavedaytype').val(obj.ltp);
$('#inp_leavecompany').val(obj.lvc);
$('#inp_leaveisurgent').val(obj.lur);
if(obj.lvc == "N"){
$("#inp_leavebalanceR").show();
} else {
$("#inp_leavebalanceR").hide();
if (obj.lur == '1') {
$("#tr_inp_leaveisurgent").show();
} else {
$("#tr_inp_leaveisurgent").hide();
$("#tr_inp_urgent_reason").hide();
if (obj.ltp == 'HD') {
$("#inp_hdtype_starttime_con2").show();
$("#inp_hdtype_starttime2").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime").hide();
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name","hidden");
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name",
"inp_hdtype_starttime");
document.getElementById("inp_hdtype_starttime").setAttribute("name",
"hidden");
document.getElementById("inp_hdtype_starttime2").setAttribute("name",
"inp_hdtype_starttime2");
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name", "hidden");
$("#inp_hdtype_starttime_con2").hide();
$("#inp_hdtype_starttime2").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime2_declare").hide();
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime").setAttribute("name",
"hidden");
$("#inp_hdtype_starttime_con2").hide();
$("#inp_hdtype_starttime2").show();
$("#inp_hdtype_starttime_full_day").show();
$("#inp_hdtype_starttime").hide();
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name",
"inp_hdtype_starttime");
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name","hidden");
document.getElementById("inp_hdtype_starttime").setAttribute("name",
"hidden");
document.getElementById("inp_hdtype_starttime2").setAttribute("name",
"inp_hdtype_starttime2");
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name", "hidden");
$("#inp_hdtype_starttime_con2").show();
$("#inp_hdtype_starttime2").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime2_declare").hide();
//
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name","inp_hdtype_star
ttime");
//
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name", "hidden");
// document.getElementById("inp_hdtype_starttime").setAttribute("name",
"hidden");
// document.getElementById("inp_hdtype_starttime2").setAttribute("name",
"hidden");
//
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"inp_hdtype_starttime2");
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name","hidden");
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name",
"inp_hdtype_starttime");
document.getElementById("inp_hdtype_starttime").setAttribute("name",
"hidden");
document.getElementById("inp_hdtype_starttime2").setAttribute("name",
"hidden");
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"inp_hdtype_starttime2");
$("#HD").hide();
$("#inp_hdtype_starttime").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime_con2").hide();
$("#inp_starttime").hide();
$("#inp_endtime").hide();
$("#HD").hide();
$("#inp_hdtype_starttime").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime_con2").hide();
$("#inp_starttime").show();
$("#inp_endtime").show();
} else {
$("#HD").hide();
$("#inp_hdtype_starttime").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime_con2").hide();
$("#inp_starttime").hide();
$("#inp_endtime").hide();
});
</script> -->
<script>
$(document).ready(function() {
$('#modal_emp').on('blur', function() {
if (inp_nickname == '') {
alert("Invalid lookup");
return false;
} else {
$("#tr_inp_leaveisurgent").hide();
});
$('#modal_emp').on('change', function() {
if (inp_nickname == '') {
alert("Invalid lookup");
return false;
} else {
$("#tr_inp_leaveisurgent").hide();
}
});
});
</script>
$(document).ready(function() {
$(".close_modal").click(function(e) {
$("#ModalEdits1").hide();
$('#ModalEdits1').find('.close').remove();
$('#ModalEdits1').unbind('click');
});
});
</script> -->
<script>
$(document).ready(function() {
$("#show_preview").click(function() {
$("#boxifblur").hide();
if (statusTxt == "success") {
$("#box").show();
$("#show_preview").show();
$("#show_preview2").hide();
if (statusTxt == "error") {
});
});
});
</script>
<script>
$(document).ready(function() {
$('#inp_nickname').on('change', function() {
$("#show_preview2").click(function() {
$("#box").hide();
$("#boxifblur").show();
if (statusTxt == "success") {
$("#boxifblur").show();
if (statusTxt == "error") {
});
});
$("#show_preview").hide();
$("#show_preview2").show();
});
});
</script>
<script>
function HrmsValidationForm() {
return false;
return false;
return false;
return false;
return false;
return false;
return false;
// return false;
// } else {
// $('#submit_add').hide();
// $('#submit_add2').show();
// }
if (modal_leave_starts == modal_leave_ends) {
return false;
} else {
$('#submit_add').hide();
$('#submit_add2').show();
$('#submit_add').hide();
$('#submit_add2').show();
}
} else {
$('#submit_add').hide();
$('#submit_add2').show();
</script>
<script>
uploadField.onchange = function() {
this.value = "";
};
};
</script>
<script>
// doc,jpg,ods,png,txt,doc,pdf
var allowedFiles = [".doc", ".jpg", ".ods", ".png", ".txt", ".docx", ".pdf", ".jpeg"];
uploadField.onchange = function() {
if (this.files[0].size > 3145728) {
this.value = "";
this.value = "";
};
};
</script>
<script type="text/javascript">
$(document).ready(function() {
$(".modal_leave").change(function() {
$.ajax({
type: "POST",
url: "ajax_cek4_leavetype.php?emp_id=16-1466",
data: post_id,
cache: false,
success: function(urgent_reason_print) {
$(".urgent_reason").html(
urgent_reason_print
);
});
});
});
</script>
<html>
<head>
</head>
<body> -->
<script type="text/javascript">
function isi_otomatis_leave() {
$.ajax({
url: 'ajax.php',
data: {
modal_emp: modal_emps,
modal_leave: modal_leave,
modal_urgent: modal_urgent
},
}).success(function(data) {
obj = JSON.parse(json);
$('#inp_leavebalance').val(obj.lvb);
$('#inp_leavedaytype').val(obj.ltp);
$('#inp_leavecompany').val(obj.lvc);
$('#inp_leaveisurgent').val(obj.lur);
if (obj.lvc == "N") {
$("#inp_leavebalanceR").show();
} else {
$("#inp_leavebalanceR").hide();
if (obj.lur == '1') {
$("#tr_inp_leaveisurgent").show();
} else {
$("#tr_inp_leaveisurgent").hide();
$("#tr_inp_urgent_reason").hide();
if (obj.ltp == 'HD') {
$("#inp_hdtype_starttime_con2").show();
$("#inp_hdtype_starttime2").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime").hide();
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name",
"inp_hdtype_starttime");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2").setAttribute("name",
"inp_hdtype_starttime2");
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"hidden");
$("#inp_hdtype_starttime_con2").hide();
$("#inp_hdtype_starttime2").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime2_declare").hide();
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
$("#inp_hdtype_starttime_con2").hide();
$("#inp_hdtype_starttime2").show();
$("#inp_hdtype_starttime_full_day").show();
$("#inp_hdtype_starttime").hide();
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name",
"inp_hdtype_starttime");
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2").setAttribute("name",
"inp_hdtype_starttime2");
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"hidden");
$("#inp_hdtype_starttime_con2").show();
$("#inp_hdtype_starttime2").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime2_declare").hide();
//
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name","inp_hdtype_star
ttime");
// document.getElementById("inp_hdtype_starttime_con2").setAttribute("name", "hidden");
// document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
// document.getElementById("inp_hdtype_starttime2").setAttribute("name", "hidden");
// document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"inp_hdtype_starttime2");
document.getElementById("inp_hdtype_starttime_full_day").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime_con2").setAttribute("name",
"inp_hdtype_starttime");
document.getElementById("inp_hdtype_starttime").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2").setAttribute("name", "hidden");
document.getElementById("inp_hdtype_starttime2_declare").setAttribute("name",
"inp_hdtype_starttime2");
$("#HD").hide();
$("#inp_hdtype_starttime").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime_con2").hide();
$("#inp_starttime").hide();
$("#inp_endtime").hide();
$("#HD").hide();
$("#inp_hdtype_starttime").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime_con2").hide();
$("#inp_starttime").show();
$("#inp_endtime").show();
} else {
$("#HD").hide();
$("#inp_hdtype_starttime").hide();
$("#inp_hdtype_starttime_full_day").hide();
$("#inp_hdtype_starttime_con2").hide();
$("#inp_starttime").hide();
$("#inp_endtime").hide();
});
</script>
<!-- </body>
</html> --></div>
</div>
</div>
</div>
<div class="modal-content">
<div class="modal-header">
<span aria-hidden="true">×</span>
</button>
</div>
<!-- <div class="card-body table-responsive p-0" style="width: 100vw; height: 89vh; width:
100%; margin: 5px; overflow: scroll;"> -->
<div id="tampil_view_app">
<tbody>
<tr>
Request Number :
</td>
LVR2024022422101937 </td>
</tr>
<tr>
Request Status:
</td>
</td>
</tr>
<tr>
</td>
</tr>
</tbody>
</table>
<table cellpadding="1" cellspacing="1" style="width:100%">
<tbody><tr>
Step 1 :
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
</td>
Remark : </td>
</tr>
<tr>
Step 2 :
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
</td>
Remark : </td>
</tr>
</tbody></table>
<br>
<br>
</div></div>
</div>
</div>
</div>
$(document).ready(function() {
// Loader
mymodalss.style.display = "block";
// Loader
// alert(nc);
$.ajax({
url: "modal_add.php?emp_id=16-1466",
type: "POST",
data: {
},
success: function(ajaxData) {
$("#tampil_tambah").html(ajaxData);
// Loader
mymodalss.style.display = "none";
document.getElementById("msg").innerHTML = "Data refreshed";
return false;
// Loader
});
});
// Preview approval
// Loader
mymodalss.style.display = "block";
// Loader
$('#title_modal').html('Detail Approval');
var nc = $(this).attr('id');
// alert(nc);
$.ajax({
url: "modal_appsetting_lvu.php",
type: "POST",
data: {
nc: nc,
},
success: function(ajaxData) {
$("#tampil_view_app").html(ajaxData);
// Loader
mymodalss.style.display = "none";
return false;
// Loader
});
});
});
</script>
<script>
$(document).ready(function() {
formData.append('req_no', req_no);
if(confirmAction){
$.ajax({
type: 'POST',
url: "ajax/submit_cancelled.php",
data: formData,
cache: false,
processData: false,
contentType: false,
alert(msg);
window.location.href = window.location.href;
});
})
})
</script>
$(document).ready(function() {
bsCustomFileInput.init();
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$(".id").change(function() {
var id = $(this).val();
$.ajax({
type: "POST",
url: "fetch_filter_v2.php",
data: post_id,
cache: false,
success: function(cities) {
$(".module").html(cities);
});
});
});
</div>
</div>
</div>
</div>
<div class="modals-content">
<p></p><table width="100%">
Close
</button>
</td></tr>
</tbody></table>
<p></p>
</div>
</div>
<script>
span_href.onclick = function() {
modals_href.style.display = "none";
window.location.href = '';
</script>
<div class="modals-content">
<p></p><table width="100%">
Close
</button>
</td></tr>
</tbody></table>
<p></p>
</div>
</div>
<script>
span.onclick = function() {
modals.style.display = "none";
window.onclick = function(event) {
if (event.target == modals) {
modals.style.display = "none";
</script>
<div class="modals-content-loader">
<p></p><table width="100%">
</tbody></table>
<p></p>
</div>
</div>
<script>
span.onclick = function() {
modalss.style.display = "none";
window.onclick = function(event) {
if (event.target == modalss) {
modalss.style.display = "none";
</script>
<div class="modals-content">
<p></p><table width="100%">
Close
</button> -->
Close
</button>
</td></tr>
</tbody></table>
<p></p>
</div>
</div>
<script>
function myFunctionForClose() {
document.getElementById("mymodals2").style.display = "none";
</script>
<!-- /**
* '||''|. '||
* || || || '|.| || || || || || | ||
* ||
*/
//NOTIFIKASI
//NOTIFIKASI -->
<!-- <script>
$(document).ready(function() {
var start = 0;
$.ajax({
url: "../../view/no/VMNotificationList.php",
method: "POST",
data: {
limit: limit,
},
cache: false,
success: function(data) {
$('#notifications').append(
data);
if (data == '') {
$('#example3_message')
.html(
);
action = 'active';
} else {
$('#example3_message')
.html(
);
action = "inactive";
}
}
});
if (action == 'inactive') {
action = 'active';
load_country_data_s(limit, start);
$(window).scroll(function() {
action = 'active';
setTimeout(function() {
load_country_data_s(
limit,
start);
}, 1000);
});
});
</script> -->
<!-- /**
* '||''|. '||
* || || || '|.| || || || || || | ||
* ||
//NOTIFIKASI
//NOTIFIKASI -->
<br>
<br>
<style>
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: #fff;
color: grey;
text-align: center;
z-index: 2;
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: #fff;
color: grey;
text-align: right;
z-index: 2;
</style>
<!-- footer -->
</div>
</div>
<script src="../../asset/admus/jquery.js"></script>
<script src="../../asset/admus/popper.js"></script>
<script src="../../asset/admus/bootstrap.js"></script>
<script src="../../asset/admus/app.js"></script>
<script src="../../asset/admus/app_002.js"></script>
<script src="../../asset/admus/app-style-switcher.js"></script>
<script src="../../asset/admus/perfect-scrollbar.js"></script>
<script src="../../asset/admus/sparkline.js"></script>
<script src="../../asset/admus/waves.js"></script>
<script src="../../asset/admus/sidebarmenu.js"></script>
<script src="../../asset/admus/custom.js"></script>
<script src="../../asset/admus/chartist.js"></script>
<script src="../../asset/admus/chartist-plugin-tooltip.js"></script>
<script src="../../asset/admus/d3.js"></script>
<script src="../../asset/admus/c3.js"></script>
<script src="../../asset/admus/dashboard6.js"></script>
<script>
document.onreadystatechange = function () {
if (state == 'interactive') {
document.getElementById('contents').style.visibility="hidden";
setTimeout(function(){
document.getElementById('interactive');
document.getElementById('divBlockSpace').style.visibility="hidden";
document.getElementById('contents').style.visibility="visible";
},100);
</script>
<script>
function startloadmore() {
$(document).ready(function() {
lockModal.css("display", "block");
loadingCircle.css("display", "block");
form.children("input").each(function() {
$(this).attr("readonly", true);
});
setTimeout(function() {
lockModal.css("display", "none");
loadingCircle.css("display", "none");
}, 500);
});
};
</script>
<script>
function startload() {
$(document).ready(function() {
loadingCircle.css("display", "block");
form.children("input").each(function() {
$(this).attr("readonly", true);
});
setTimeout(function() {
lockModal.css("display", "none");
loadingCircle.css("display", "none");
}, 35000);
});
};
</script>
<script>
function stopload() {
$(document).ready(function() {
lockModal.css("display", "none");
loadingCircle.css("display", "none");
});
};
</script>
<script>
$(function () {
$("#example1").DataTable();
$("#example3").DataTable({
"ordering" : false,
$('#example2').DataTable({
"paging": false,
"lengthChange": false,
"searching": false,
"ordering": false,
"info": true,
"autoWidth": true,
});
});
$('.toastsDefaultFull').click(function() {
$(document).Toasts('create', {
subtitle: 'Subtitle',
})
});
</script>
<script type="text/javascript">
$(document).ready(function () {
bsCustomFileInput.init();
});
</script>
<!--
<script src="../../asset/admus/custom.js"></script>
<script src="../../asset/admus/chartist.js"></script>
<script src="../../asset/admus/chartist-plugin-tooltip.js"></script>
<script src="../../asset/admus/d3.js"></script>
<script src="../../asset/admus/c3.js"></script>
<script src="../../asset/admus/dashboard6.js"></script>-->
<script src="../../asset/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="../../asset/admus/perfect-scrollbar.js"></script>
<script src="../../asset/admus/sparkline.js"></script>
<script src="../../asset/admus/waves.js"></script>
<script src="../../asset/admus/popper.js"></script>
<script src="../../asset/admus/bootstrap.js"></script>
<script src="../../asset/admus/app.js"></script>
<script src="../../asset/admus/app_002.js"></script>
<script src="../../asset/admus/app-style-switcher.js"></script>
<script src="../../asset/admus/perfect-scrollbar.js"></script>
<script src="../../asset/admus/sparkline.js"></script>
<script src="../../asset/admus/chartist.js"></script>
<script src="../../asset/admus/chartist-plugin-tooltip.js"></script>
<script src="../../asset/admus/d3.js"></script>
<script src="../../asset/admus/c3.js"></script>
<script src="../../asset/vendor/bootstrap/js/bootstrap.min.js"></script>
<link rel="stylesheet"
href="../../asset/gt_developer/gt_datepicker_20211002/materialDateTimePicker.css">
<script type="text/javascript"
src="../../asset/gt_developer/gt_datepicker_20211002/materialDateTimePicker.js">
</script>
<script type="text/javascript">
$(document).ready(function() {
$('#inp_birthdate').bootstrapMaterialDatePicker({
time: false,
clearButton: true
});
$('#inp_joindate').bootstrapMaterialDatePicker({
time: false,
clearButton: true
});
$('#inp_starttime').bootstrapMaterialDatePicker({
date: false,
format: 'HH:mm'
});
$('#inp_endtime').bootstrapMaterialDatePicker({
date: false,
format: 'HH:mm'
});
});
</script>
<script type="text/javascript"
src="../../asset/sdk_datatables_core/gt_dist/jquery.dataTables.min.js"></script>