118 lines
4.4 KiB
PHP
Executable File
118 lines
4.4 KiB
PHP
Executable File
<style>
|
|
.table th,
|
|
.table td {
|
|
padding: 8px;
|
|
}
|
|
|
|
table.dataTable tbody td {
|
|
padding: 4px 4px !important;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
var client_list = ''; // local variable for storing the client branch list
|
|
var branch_list = ''; // local variable for storing the client branch list
|
|
var policy_list = ''; // local variable for storing the client policy list
|
|
var branch_policy = '';
|
|
|
|
$(document).ready(function() {
|
|
getClientAndBranchAndPolicy();
|
|
})
|
|
|
|
//featch client and branch and policy
|
|
function getClientAndBranchAndPolicy() {
|
|
$.ajax({
|
|
url: '<?= base_url("/util/getClientAndBranchAndPolicy") ?>',
|
|
type: "GET",
|
|
dataType: 'json',
|
|
success: function(res) {
|
|
|
|
console.log('getClientAndBranchAndPolicy', res);
|
|
if (res.status == true) {
|
|
|
|
client_list = res.client_data;
|
|
branch_list = res.branch_data;
|
|
policy_list = res.policy_data;
|
|
|
|
appendClients(res.client_data);
|
|
appendClients2(res.client_data);
|
|
appendClients3(res.client_data);
|
|
|
|
} else {
|
|
console.log('No data found');
|
|
}
|
|
|
|
},
|
|
error: function(xhr, status, error) {
|
|
console.error(xhr.responseText);
|
|
console.error(status, error);
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
|
|
<div class="row" id="client_add">
|
|
|
|
<div class="col-12">
|
|
<div class="card-body">
|
|
<div class="tab-wrapper position-relative">
|
|
<ul class="nav nav-pills navtab-bg " id="myTab">
|
|
<li class="nav-item d-flex justify-content-center align-items-center">
|
|
<button class="scroll-btn left-btn" type="button">◀</button>
|
|
</li>
|
|
<li class="nav-item d-flex justify-content-center align-items-center">
|
|
<a href="#general-q-tab" data-toggle="tab" aria-expanded="false" class="nav-link px-3 py-2 active-tab " id="general_tab">
|
|
<span class="mr-1"><i class="mdi mdi-contacts"></i></span>
|
|
<span class="d-none d-sm-inline-block ">Data From Client</span>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item d-flex justify-content-center align-items-center">
|
|
<a href="#KYC-DOC-tab" data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-2" id="kyc_tab">
|
|
<span class="mr-1"><i class="mdi mdi-file"></i></span>
|
|
<span class="d-none d-sm-inline-block ">Insurer or TPA Data</span>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item d-flex justify-content-center align-items-center">
|
|
<a href="#HR-DOC-tab" data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-2" id="hr_tab">
|
|
<span class="mr-1"><i class="mdi mdi-file"></i></span>
|
|
<span class="d-none d-sm-inline-block ">HR Uploaded Files</span>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item d-flex justify-content-center align-items-center">
|
|
<!-- Right Arrow -->
|
|
<button class="scroll-btn right-btn" type="button">▶</button>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="tab-content">
|
|
<?php include('employee_upload.php'); ?>
|
|
<?php include('insurer_or_tpa_data.php'); ?>
|
|
<?php include('hr_file_upload.php'); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
|
|
if (window.location.hash === '#KYC-DOC-tab') {
|
|
console.log('url hash :', window.location.hash)
|
|
$('#kyc_tab').click();
|
|
}
|
|
|
|
if (window.location.hash === '#HR-DOC-tab') {
|
|
console.log('url hash :', window.location.hash)
|
|
$('#hr_tab').click();
|
|
}
|
|
|
|
})
|
|
|
|
function formatTextToCamelCase(str) {
|
|
return str
|
|
.replace(/_/g, ' ') // replace underscores with spaces
|
|
.toLowerCase() // convert everything to lowercase
|
|
.replace(/\b\w/g, char => char.toUpperCase()); // capitalize each word
|
|
}
|
|
</script>
|