110 lines
3.7 KiB
PHP
Executable File
110 lines
3.7 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" style="position: relative; bottom: 25px;">
|
|
<div class="col-12">
|
|
<div class="card-body">
|
|
<ul class="nav nav-pills navtab-bg">
|
|
<li class="nav-item">
|
|
<a href="#general-q-tab" data-toggle="tab" aria-expanded="false" class="nav-link px-3 py-2 active" 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">
|
|
<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">
|
|
<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>
|
|
</ul>
|
|
<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>
|