CLIENTCONTROLLERREECHOTORETURN : AADHAVAN
This commit is contained in:
parent
d0dbf35644
commit
5d8c500874
@ -156,9 +156,11 @@ class ClientController extends AdminController
|
|||||||
$insert = $this->clientModel->insert($data);
|
$insert = $this->clientModel->insert($data);
|
||||||
if($insert){
|
if($insert){
|
||||||
$client_data = $this->clientModel->where(['id' => $insert, 'is_active' => 1])->first();
|
$client_data = $this->clientModel->where(['id' => $insert, 'is_active' => 1])->first();
|
||||||
echo json_encode(array("status" => true , 'data' => $client_data));
|
return $this->respond(['status' => true,'code' => 200,'data' => $client_data], 200);
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
echo json_encode(array("status" => false));
|
return $this->respond(['status' => false,'code' => 404,'message' => 'no data found'], 200);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -170,9 +172,9 @@ class ClientController extends AdminController
|
|||||||
$data['updated_by'] = get_session_userid();
|
$data['updated_by'] = get_session_userid();
|
||||||
$update = $this->clientModel->update($id,$data);
|
$update = $this->clientModel->update($id,$data);
|
||||||
if($update){
|
if($update){
|
||||||
echo json_encode(array("status" => true , 'data' => $data));
|
return $this->respond(['status' => true,'code' => 200,'data' => $data], 200);
|
||||||
}else{
|
}else{
|
||||||
echo json_encode(array("status" => false));
|
return $this->respond(['status' => false,'code' => 404,'message' => 'no data found'], 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -191,9 +193,9 @@ class ClientController extends AdminController
|
|||||||
if($insert){
|
if($insert){
|
||||||
|
|
||||||
$kycDocs = $this->clientKYCDocsModel->where('client_id',$this->request->getPost('client_id'))->findAll();
|
$kycDocs = $this->clientKYCDocsModel->where('client_id',$this->request->getPost('client_id'))->findAll();
|
||||||
echo json_encode(array("status" => true , 'data' => $kycDocs, 'file_name' => $File));
|
return $this->respond(['status' => true,'code' => 200,'data' => $kycDocs, 'file_name' => $File], 200);
|
||||||
}else{
|
}else{
|
||||||
echo json_encode(array("status" => false));
|
return $this->respond(['status' => false,'code' => 404,'message' => 'no data found'], 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -212,9 +214,10 @@ class ClientController extends AdminController
|
|||||||
$insert = $this->clientKYCDocsModel->insert($data);
|
$insert = $this->clientKYCDocsModel->insert($data);
|
||||||
if($insert){
|
if($insert){
|
||||||
$kycDocs = $this->clientKYCDocsModel->getKycDocsName($id);
|
$kycDocs = $this->clientKYCDocsModel->getKycDocsName($id);
|
||||||
echo json_encode(array("status" => true , 'data' => $kycDocs));
|
return $this->respond(['status' => true,'code' => 200,'data' => $kycDocs], 200);
|
||||||
}else{
|
}else{
|
||||||
echo json_encode(array());
|
return $this->respond(['status' => false,'code' => 404,'message' => 'no data found'], 200);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -223,9 +226,9 @@ class ClientController extends AdminController
|
|||||||
|
|
||||||
$delete = $this->clientKYCDocsModel->where('kyc_doc_type_id', $id)->delete();
|
$delete = $this->clientKYCDocsModel->where('kyc_doc_type_id', $id)->delete();
|
||||||
if($delete){
|
if($delete){
|
||||||
echo json_encode(array("status" => true, 'id' => $id ));
|
return $this->respond(['status' => true,'code' => 200,'id' => $id], 200);
|
||||||
}else{
|
}else{
|
||||||
echo json_encode(array("status" => false));
|
return $this->respond(['status' => false,'code' => 404,'message' => 'no data found'], 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -234,9 +237,9 @@ class ClientController extends AdminController
|
|||||||
|
|
||||||
$delete = $this->clientKYCDocsModel->where('id', $id)->delete();
|
$delete = $this->clientKYCDocsModel->where('id', $id)->delete();
|
||||||
if($delete){
|
if($delete){
|
||||||
echo json_encode(array("status" => true, 'id' => $id ));
|
return $this->respond(['status' => true,'code' => 200,'id' => $id], 200);
|
||||||
}else{
|
}else{
|
||||||
echo json_encode(array("status" => false));
|
return $this->respond(['status' => false,'code' => 404,'message' => 'no data found'], 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -270,9 +273,9 @@ class ClientController extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($inserted) {
|
if ($inserted) {
|
||||||
echo json_encode(array("status" => true, 'data' => $this->request->getPost()));
|
return $this->respond(['status' => true,'code' => 200,'data' => $this->request->getPost()], 200);
|
||||||
} else {
|
} else {
|
||||||
echo json_encode(array("status" => false));
|
return $this->respond(['status' => false,'code' => 404,'message' => 'no data found'], 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -322,9 +325,9 @@ class ClientController extends AdminController
|
|||||||
$lastQuery = $this->clientRMModel->getLastQuery();
|
$lastQuery = $this->clientRMModel->getLastQuery();
|
||||||
|
|
||||||
if ($inserted) {
|
if ($inserted) {
|
||||||
echo json_encode(array("status" => true, 'data' => $this->request->getPost(), "place" => 'edit'));
|
return $this->respond(['status' => true,'code' => 200,'data' => $this->request->getPost(), "place" => 'edit'], 200);
|
||||||
} else {
|
} else {
|
||||||
echo json_encode(array("status" => false, "place" => 'edit'));
|
return $this->respond(['status' => false,'code' => 404,"place" => 'edit', 'message' => 'no data found'], 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -354,9 +357,9 @@ class ClientController extends AdminController
|
|||||||
|
|
||||||
if($insert){
|
if($insert){
|
||||||
$branchData = $this->clientBranchModel->where('client_id', $this->request->getPost('client_id'))->findAll();
|
$branchData = $this->clientBranchModel->where('client_id', $this->request->getPost('client_id'))->findAll();
|
||||||
echo json_encode(array("status" => true , 'data' => $branchData));
|
return $this->respond(['status' => true,'code' => 200,'data' => $branchData], 200);
|
||||||
}else{
|
}else{
|
||||||
echo json_encode(array("status" => false));
|
return $this->respond(['status' => false,'code' => 404, 'message' => 'no data found'], 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -391,9 +394,9 @@ class ClientController extends AdminController
|
|||||||
|
|
||||||
if($insert){
|
if($insert){
|
||||||
$branchData = $this->clientBranchModel->where('client_id', $client_id)->findAll();
|
$branchData = $this->clientBranchModel->where('client_id', $client_id)->findAll();
|
||||||
echo json_encode(array("status" => true , 'data' => $branchData));
|
return $this->respond(['status' => true,'code' => 200,'data' => $branchData], 200);
|
||||||
}else{
|
}else{
|
||||||
echo json_encode(array("status" => false));
|
return $this->respond(['status' => false,'code' => 404, 'message' => 'no data found'], 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -441,9 +444,9 @@ class ClientController extends AdminController
|
|||||||
$insert = $this->clientPolicyModel->insert($data);
|
$insert = $this->clientPolicyModel->insert($data);
|
||||||
if($insert){
|
if($insert){
|
||||||
$clientPoliceData = $this->clientPolicyModel->getClientPolicyByClientId($this->request->getPost('client_id'));
|
$clientPoliceData = $this->clientPolicyModel->getClientPolicyByClientId($this->request->getPost('client_id'));
|
||||||
echo json_encode(array("status" => true , 'data' => $clientPoliceData, 'method' => 'CERATE'));
|
return $this->respond(['status' => true,'code' => 200,'data' => $clientPoliceData, 'method' => 'CERATE'], 200);
|
||||||
}else{
|
}else{
|
||||||
echo json_encode(array("status" => false));
|
return $this->respond(['status' => false,'code' => 404, 'message' => 'no data found'], 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -493,9 +496,9 @@ class ClientController extends AdminController
|
|||||||
|
|
||||||
if($insert){
|
if($insert){
|
||||||
$clientPoliceData = $this->clientPolicyModel->getClientPolicyByClientId($client_id);
|
$clientPoliceData = $this->clientPolicyModel->getClientPolicyByClientId($client_id);
|
||||||
echo json_encode(array("status" => true , 'data' => $clientPoliceData , 'method' => 'EDIT'));
|
return $this->respond(['status' => true,'code' => 200,'data' => $clientPoliceData, 'method' => 'EDIT'], 200);
|
||||||
}else{
|
}else{
|
||||||
echo json_encode(array("status" => false));
|
return $this->respond(['status' => false,'code' => 404, 'message' => 'no data found'], 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -571,9 +574,10 @@ class ClientController extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($insert){
|
if($insert){
|
||||||
echo json_encode(array("status" => true , 'data' => $data));
|
return $this->respond(['status' => true,'code' => 200,'data' => $data], 200);
|
||||||
}else{
|
}else{
|
||||||
echo json_encode(array("status" => false , 'data' => $data));
|
return $this->respond(['status' => false,'code' => 404, 'data' => $data,'message' => 'no data found'], 200);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -589,11 +593,11 @@ class ClientController extends AdminController
|
|||||||
$this->myLogger->logme('error','getKycDocsById function called');
|
$this->myLogger->logme('error','getKycDocsById function called');
|
||||||
if($id){
|
if($id){
|
||||||
$kyc_docs_data = $this->kycDocsModel->where(['kyc_type_id' => $id, 'is_active' => 1])->findAll();
|
$kyc_docs_data = $this->kycDocsModel->where(['kyc_type_id' => $id, 'is_active' => 1])->findAll();
|
||||||
echo json_encode(array("status" => true , 'data' => $kyc_docs_data));
|
|
||||||
$this->myLogger->logme('error','getKycDocs status TRUE');
|
$this->myLogger->logme('error','getKycDocs status TRUE');
|
||||||
|
return $this->respond(['status' => true,'code' => 200,'data' => $kyc_docs_data], 200);
|
||||||
}else{
|
}else{
|
||||||
echo json_encode(array("status" => false));
|
|
||||||
$this->myLogger->logme('error','getKycDocs status FALSE');
|
$this->myLogger->logme('error','getKycDocs status FALSE');
|
||||||
|
return $this->respond(['status' => false,'code' => 404, 'message' => 'no data found'], 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -602,9 +606,9 @@ class ClientController extends AdminController
|
|||||||
$this->myLogger->logme('error','getPolicesByInsurerId function called');
|
$this->myLogger->logme('error','getPolicesByInsurerId function called');
|
||||||
if($id){
|
if($id){
|
||||||
$police_data = $this->policesModel->where(['insurer_id' => $id, 'is_active' => 1])->findAll();
|
$police_data = $this->policesModel->where(['insurer_id' => $id, 'is_active' => 1])->findAll();
|
||||||
echo json_encode(array("status" => true , 'data' => $police_data));
|
return $this->respond(['status' => true,'code' => 200,'data' => $police_data], 200);
|
||||||
}else{
|
}else{
|
||||||
echo json_encode(array("status" => false));
|
return $this->respond(['status' => false,'code' => 404, 'message' => 'no data found'], 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -615,9 +619,9 @@ class ClientController extends AdminController
|
|||||||
if($id){
|
if($id){
|
||||||
$branch_data = $this->clientBranchModel->where(['id' => $id, 'is_active' => 1])->first();
|
$branch_data = $this->clientBranchModel->where(['id' => $id, 'is_active' => 1])->first();
|
||||||
$branch_contact_data = $this->levelContactModel->where(['ref_id' => $id, 'contact_type'=>'client', 'is_active' => 1])->findAll();
|
$branch_contact_data = $this->levelContactModel->where(['ref_id' => $id, 'contact_type'=>'client', 'is_active' => 1])->findAll();
|
||||||
echo json_encode(array("status" => true , 'data' => $branch_data, 'contact' => $branch_contact_data));
|
return $this->respond(['status' => true,'code' => 200,'data' => $branch_data, 'contact' => $branch_contact_data], 200);
|
||||||
}else{
|
}else{
|
||||||
echo json_encode(array("status" => false));
|
return $this->respond(['status' => false,'code' => 404, 'message' => 'no data found'], 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -629,9 +633,9 @@ class ClientController extends AdminController
|
|||||||
$client_policy_data = $this->clientPolicyModel->where(['id' => $id, 'is_active' => 1])->first();
|
$client_policy_data = $this->clientPolicyModel->where(['id' => $id, 'is_active' => 1])->first();
|
||||||
$insurer_id = $client_policy_data['insurer_id'];
|
$insurer_id = $client_policy_data['insurer_id'];
|
||||||
$polices = $this->policesModel->where(['insurer_id' => $insurer_id, 'is_active' => 1])->findAll();
|
$polices = $this->policesModel->where(['insurer_id' => $insurer_id, 'is_active' => 1])->findAll();
|
||||||
echo json_encode(array("insurer_id" => $client_policy_data['insurer_id'], "status" => true , 'data' => $client_policy_data, 'policy' => $polices));
|
return $this->respond(['status' => true,'code' => 200,'data' => $client_policy_data, "insurer_id" => $client_policy_data['insurer_id'], 'policy' => $polices], 200);
|
||||||
}else{
|
}else{
|
||||||
echo json_encode(array("status" => false));
|
return $this->respond(['status' => false,'code' => 404, 'message' => 'no data found'], 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -642,8 +646,6 @@ class ClientController extends AdminController
|
|||||||
$policy_id = $this->request->getGet('policy_id');
|
$policy_id = $this->request->getGet('policy_id');
|
||||||
$client_id = $this->request->getGet('client_id');
|
$client_id = $this->request->getGet('client_id');
|
||||||
|
|
||||||
echo $policy_id;
|
|
||||||
echo $client_id;
|
|
||||||
|
|
||||||
$data = $this->policesModel->getPolicyPremium($policy_id);
|
$data = $this->policesModel->getPolicyPremium($policy_id);
|
||||||
$pattern = '/gmc/i';
|
$pattern = '/gmc/i';
|
||||||
@ -667,7 +669,7 @@ class ClientController extends AdminController
|
|||||||
// echo '<pre>';
|
// echo '<pre>';
|
||||||
// print_r($results);
|
// print_r($results);
|
||||||
// print_r($data[0]->policy_type); die;
|
// print_r($data[0]->policy_type); die;
|
||||||
echo json_encode(array("status" => true , 'data' => $results, 'premiumData' => $premiumData));
|
return $this->respond(['status' => true,'code' => 200,'data' => $results, 'premiumData' => $premiumData], 200);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -736,10 +738,6 @@ class ClientController extends AdminController
|
|||||||
$data['special_condition_label'] = $this->request->getPost("special_condition_label") ?? [];
|
$data['special_condition_label'] = $this->request->getPost("special_condition_label") ?? [];
|
||||||
$data['special_condition_input'] = $this->request->getPost("special_condition_input") ?? [];
|
$data['special_condition_input'] = $this->request->getPost("special_condition_input") ?? [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// print_r($this->request->getPost());
|
|
||||||
// die();
|
|
||||||
|
|
||||||
$jsonData = json_encode($data);
|
$jsonData = json_encode($data);
|
||||||
$dataa = array(
|
$dataa = array(
|
||||||
@ -751,16 +749,16 @@ class ClientController extends AdminController
|
|||||||
if ($record) {
|
if ($record) {
|
||||||
$update = $this->clientPolicyModel->update($record['id'], $dataa);
|
$update = $this->clientPolicyModel->update($record['id'], $dataa);
|
||||||
if ($update) {
|
if ($update) {
|
||||||
echo json_encode(array('message' => 'Data updated successfully'));
|
return $this->respond(['status' => true,'code' => 200,'message' => 'Data updated successfully'], 200);
|
||||||
} else {
|
} else {
|
||||||
echo json_encode(array('message' => 'Failed to update data'));
|
return $this->respond(['status' => false,'code' => 404, 'message' => 'Failed to update data'], 200);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
$insert = $this->clientPolicyModel->insert($dataa);
|
$insert = $this->clientPolicyModel->insert($dataa);
|
||||||
if ($insert) {
|
if ($insert) {
|
||||||
echo json_encode(array('message' => 'Data stored successfully'));
|
return $this->respond(['status' => true,'code' => 200,'message' => 'Data stored successfully'], 200);
|
||||||
} else {
|
} else {
|
||||||
echo json_encode(array('message' => 'Failed to store data'));
|
return $this->respond(['status' => false,'code' => 404, 'message' => 'Failed to store data'], 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|||||||
@ -154,11 +154,13 @@ $(document).ready(function () {
|
|||||||
console.log(res);
|
console.log(res);
|
||||||
$('#client_id').val(res.data.id);
|
$('#client_id').val(res.data.id);
|
||||||
$('#client_id_relation').val(res.data.id);
|
$('#client_id_relation').val(res.data.id);
|
||||||
|
$('#relation_PrimaryKey').val(res.data.id);
|
||||||
$('#client_id_branch').val(res.data.id);
|
$('#client_id_branch').val(res.data.id);
|
||||||
$('#branch_PrimaryKey').val(res.data.id);
|
$('#branch_PrimaryKey').val(res.data.id);
|
||||||
$('#client_id_policy').val(res.data.id);
|
$('#client_id_policy').val(res.data.id);
|
||||||
$('#policy_PrimaryKey').val(res.data.id);
|
$('#policy_PrimaryKey').val(res.data.id);
|
||||||
$('#client_id_kyc').val(res.data.id);
|
$('#client_id_kyc').val(res.data.id);
|
||||||
|
$('#kyc_PrimaryKey').val(res.data.id);
|
||||||
$('#entity_type').val(res.data.entity_type_id);
|
$('#entity_type').val(res.data.entity_type_id);
|
||||||
$('#kyc_tab').click();
|
$('#kyc_tab').click();
|
||||||
|
|
||||||
|
|||||||
@ -105,7 +105,9 @@
|
|||||||
$(document).on('click', '.submit', function(e) {
|
$(document).on('click', '.submit', function(e) {
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
kycPrimaryKey = $('#kyc_PrimaryKey').val();
|
// kycPrimaryKey = $('#kyc_PrimaryKey').val();
|
||||||
|
kycPrimaryKey = $('#client_id_kyc').val();
|
||||||
|
|
||||||
|
|
||||||
var form = $(this).closest('form');
|
var form = $(this).closest('form');
|
||||||
var formData = new FormData(form[0]);
|
var formData = new FormData(form[0]);
|
||||||
@ -149,8 +151,8 @@
|
|||||||
processData: false,
|
processData: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
res = JSON.parse(res)
|
// res = JSON.parse(res)
|
||||||
console.log(res);
|
// console.log(res);
|
||||||
form.trigger('reset')
|
form.trigger('reset')
|
||||||
$.each(res.data, function (index, item) {
|
$.each(res.data, function (index, item) {
|
||||||
|
|
||||||
|
|||||||
@ -279,7 +279,7 @@ $(document).ready(function () {
|
|||||||
var url = "<?= base_url("util/police-by-insurer/") ?>" + secondPart;
|
var url = "<?= base_url("util/police-by-insurer/") ?>" + secondPart;
|
||||||
|
|
||||||
$.get(url, function(res) {
|
$.get(url, function(res) {
|
||||||
res = JSON.parse(res)
|
// res = JSON.parse(res)//
|
||||||
console.log(res)
|
console.log(res)
|
||||||
var OptionsHTML = '';
|
var OptionsHTML = '';
|
||||||
OptionsHTML += '<option value="" selected>Select Policy</option>';
|
OptionsHTML += '<option value="" selected>Select Policy</option>';
|
||||||
|
|||||||
@ -95,18 +95,18 @@
|
|||||||
</div>
|
</div>
|
||||||
<div style="display:none; margin-top: 27px;margin-bottom: 7px; margin-left: 31px;">
|
<div style="display:none; margin-top: 27px;margin-bottom: 7px; margin-left: 31px;">
|
||||||
<div>
|
<div>
|
||||||
<input type="checkbox" name="family_floaters[]" value="Self" id="Self"> Self
|
<input type="checkbox" name="family_floaters[]" value="self" id="self"> Self
|
||||||
<input type="checkbox" name="family_floaters[]" value="Spouse" id="Spouse"> Spouse
|
<input type="checkbox" name="family_floaters[]" value="spouse" id="spouse"> Spouse
|
||||||
<input type="checkbox" name="family_floaters[]" value="Child1" id="Child1"> Child 1
|
<input type="checkbox" name="family_floaters[]" value="child1" id="child1"> Child 1
|
||||||
<input type="checkbox" name="family_floaters[]" value="Child2" id="Child2"> Child 2
|
<input type="checkbox" name="family_floaters[]" value="child2" id="child2"> Child 2
|
||||||
<input type="checkbox" name="family_floaters[]" value="Child3" id="Child3"> Child 3
|
<input type="checkbox" name="family_floaters[]" value="child3" id="child3"> Child 3
|
||||||
<input type="checkbox" name="family_floaters[]" value="Child4" id="Child4"> Child 4
|
<input type="checkbox" name="family_floaters[]" value="child4" id="child4"> Child 4
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top:10px">
|
<div style="margin-top:10px">
|
||||||
<input type="checkbox" name="family_floaters[]" value="Parent1" id="Parent1"> Parent 1
|
<input type="checkbox" name="family_floaters[]" value="parent1" id="parent1"> Parent 1
|
||||||
<input type="checkbox" name="family_floaters[]" value="Parent2" id="Parent2"> Parent 2
|
<input type="checkbox" name="family_floaters[]" value="parent2" id="parent2"> Parent 2
|
||||||
<input type="checkbox" name="family_floaters[]" value="Parent_In_Law1" id="Parent_In_Law1"> Parent-In-Law 1
|
<input type="checkbox" name="family_floaters[]" value="parent_in_law1" id="parent_in_law1"> Parent-In-Law 1
|
||||||
<input type="checkbox" name="family_floaters[]" value="Parent_In_Law2" id="Parent_In_Law2"> Parent-In-Law 2
|
<input type="checkbox" name="family_floaters[]" value="parent_in_law2" id="parent_in_law2"> Parent-In-Law 2
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -384,42 +384,6 @@ $('.close').click(function(){
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// $(document).ready(function() {
|
|
||||||
|
|
||||||
// if ($('input[name="waiverofpreexistingdiseases"]').val() == '1') {
|
|
||||||
// var element = $('input[name="waiverofpreexistingdiseases"]').parent().parent().next()[0];
|
|
||||||
// $(element).css("display", "");
|
|
||||||
// var element2 = $('input[name="waiverofpreexistingdiseases"]').parent().parent().next().next()[0];
|
|
||||||
// $(element2).css("display", "");
|
|
||||||
// var element3 = $('input[name="waiverofpreexistingdiseases"]').parent().parent().next().next().next()[0];
|
|
||||||
// $(element3).css("display", "");
|
|
||||||
// var element4 = $('input[name="waiverofpreexistingdiseases"]').parent().parent().next().next().next().next()[0];
|
|
||||||
// $(element4).css("display", "");
|
|
||||||
// } else {
|
|
||||||
// var element = $('input[name="waiverofpreexistingdiseases"]').parent().parent().next()[0];
|
|
||||||
// $(element).css("display", "none");
|
|
||||||
// var element2 = $('input[name="waiverofpreexistingdiseases"]').parent().parent().next().next()[0];
|
|
||||||
// $(element2).css("display", "none");
|
|
||||||
// var element3 = $('input[name="waiverofpreexistingdiseases"]').parent().parent().next().next().next()[0];
|
|
||||||
// $(element3).css("display", "none");
|
|
||||||
// var element4 = $('input[name="waiverofpreexistingdiseases"]').parent().parent().next().next().next().next()[0];
|
|
||||||
// $(element4).css("display", "none");
|
|
||||||
// }
|
|
||||||
|
|
||||||
// console.log("Family_floater");
|
|
||||||
// console.log($('input[name="family_floater"]').val());
|
|
||||||
// if ($('input[name="family_floater"]').val() == '1') {
|
|
||||||
// var element = $('input[name="family_floater"]').parent().next()[0];
|
|
||||||
// $(element).css("display", "");
|
|
||||||
// var element2 = $('input[name="family_floater"]').parent().parent().parent().next()[0];
|
|
||||||
// $(element2).css("display", "");
|
|
||||||
// } else {
|
|
||||||
// var element = $('input[name="family_floater"]').parent().next()[0];
|
|
||||||
// $(element).css("display", "none");
|
|
||||||
// var element2 = $('input[name="family_floater"]').parent().parent().parent().next()[0];
|
|
||||||
// $(element2).css("display", "none");
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
|
|
||||||
$('input[name="waiverofpreexistingdiseases"]').change(function() {
|
$('input[name="waiverofpreexistingdiseases"]').change(function() {
|
||||||
if ($(this).val() == '1') {
|
if ($(this).val() == '1') {
|
||||||
@ -608,331 +572,9 @@ $('body').on('click', '.btnPolicyMaster', function () {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// $.ajax({
|
|
||||||
// url: '<?= base_url("util/policy-premium") ?>' ,
|
|
||||||
// type: "GET",
|
|
||||||
// data: { policy_id: policy_id, client_id: client_id },
|
|
||||||
// dataType: 'json',
|
|
||||||
// success: function (res) {
|
|
||||||
// console.log('responce :', res);
|
|
||||||
|
|
||||||
// if (res.status === false) {
|
|
||||||
// toastr.error(res.status);
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
// var policy_grid_id_value = '';
|
|
||||||
// if (res.premiumData && res.premiumData.length > 0 && res.premiumData[0].policy_grid_id) {
|
|
||||||
// policy_grid_id_value = res.premiumData[0].policy_grid_id;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// $('#grid_content_input').empty();
|
|
||||||
// var policeGridOptionHTML = '';
|
|
||||||
// policeGridOptionHTML += ` <option value="">Select Premium Type</option>`;
|
|
||||||
// $.each(res.data, function(index, item) {
|
|
||||||
// policeGridOptionHTML += '<option data-id="'+ item.ui_type +'" value="' + item.id + '" ' + (policy_grid_id_value === item.id ? 'selected="selected"' : '') + '>' + item.policy_grid_type + '</option>';
|
|
||||||
// });
|
|
||||||
// $('#grid').html(policeGridOptionHTML);
|
|
||||||
|
|
||||||
|
|
||||||
// console.log('Length', res.premiumData.length)
|
|
||||||
// if (res.premiumData && res.premiumData.length > 0) {
|
|
||||||
|
|
||||||
// addGridHTML(false, res.premiumData[0], res.premiumData[0].policy_grid_id);
|
|
||||||
|
|
||||||
// res.premiumData.shift();
|
|
||||||
// console.log(res.premiumData)
|
|
||||||
// $.each(res.premiumData, function(index, item){
|
|
||||||
// console.log('premiumData index :',index)
|
|
||||||
// appendGridtHtml(item.policy_grid_id, item);
|
|
||||||
// });
|
|
||||||
|
|
||||||
// } else {
|
|
||||||
// console.log("res.premiumData is undefined, null, or empty.");
|
|
||||||
// }
|
|
||||||
|
|
||||||
// $('#bs-example-modal-sm').modal('show');
|
|
||||||
// },
|
|
||||||
// error: function (xhr, status, error) {
|
|
||||||
// console.error(xhr.responseText);
|
|
||||||
// console.error(status, error);
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
var Count = 1
|
|
||||||
function appendGridtHtml(ui_type = false, data = false,) {
|
|
||||||
|
|
||||||
var html = '';
|
|
||||||
console.log('appendGridtHtml function called ');
|
|
||||||
// console.log('Grid Content',data)
|
|
||||||
console.log('UI TYPE :', ui_type);
|
|
||||||
Count++;
|
|
||||||
var container = document.getElementById('grid_content_input');
|
|
||||||
|
|
||||||
if(ui_type == '3'){
|
|
||||||
|
|
||||||
html = `
|
|
||||||
<div class="form-row" id="removeChild_${Count}">
|
|
||||||
<div class="form-group col-md-5">
|
|
||||||
<label for="mobile">Sum Insured</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Sum Insured" name="si[]" id="gpa_si" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-5">
|
|
||||||
<label for="mobile">Premium</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Premium" name="premium[]" id="gpa_premium" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<button style="margin-top: 29px;" type="button" class="btn btn-primary" id="gmc_add_more_${Count}" onclick="appendGridtHtml(3)">+</button>
|
|
||||||
<button style="margin-top: 29px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(${Count})">x</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
`;
|
|
||||||
|
|
||||||
}else if(ui_type == '4'){
|
|
||||||
|
|
||||||
|
|
||||||
html =`
|
|
||||||
<div class="form-row" id="removeChild_${Count}">
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">From Age</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.age_from : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter From Age" name="age_from[]" id="age_from" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">To Age</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.age_from : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter TO Age" name="age_to[]" id="age_to" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">Premium</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<button style="margin-top: 29px;" type="button" class="btn btn-primary" id="gmc_add_more_${Count}" onclick="appendGridtHtml(4)">+</button>
|
|
||||||
<button style="margin-top: 29px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(${Count})">x</button>
|
|
||||||
</div>
|
|
||||||
</div>`;
|
|
||||||
|
|
||||||
}else if(ui_type == '5'){
|
|
||||||
|
|
||||||
|
|
||||||
html = `
|
|
||||||
<div class="form-row" id="removeChild_${Count}">
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">Sum Insured</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2">
|
|
||||||
<label for="mobile">From Age</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.age_from : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter From Age" name="age_from[]" id="age_from" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2">
|
|
||||||
<label for="mobile">To Age</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.age_to : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter TO Age" name="age_to[]" id="age_to" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">Premium</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<button style="margin-top: 29px;" type="button" class="btn btn-primary" id="gmc_add_more_${Count}" onclick="appendGridtHtml(5)">+</button>
|
|
||||||
<button style="margin-top: 29px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(${Count})">x</button>
|
|
||||||
</div>
|
|
||||||
</div>`;
|
|
||||||
|
|
||||||
}else if(ui_type == '6'){
|
|
||||||
|
|
||||||
html =`
|
|
||||||
<div class="form-row" id="removeChild_${Count}">
|
|
||||||
<div class="form-group col-md-4">
|
|
||||||
<label for="mobile">Sum Insured</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-row">
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">From Age</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.age_from : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter From Age" name="age_from[]" id="age_from" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">To Age</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.age_to : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter TO Age" name="age_to[]" id="age_to" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">Premium</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<button style="margin-top: 29px;" type="button" class="btn btn-primary" id="gmc_add_more" onclick="appendGridtHtml(6)">+</button>
|
|
||||||
<button style="margin-top: 29px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(${Count})">x</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>`;
|
|
||||||
|
|
||||||
}else if(ui_type == '7'){
|
|
||||||
|
|
||||||
html = `
|
|
||||||
<div class="form-row" id="removeChild_${Count}">
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">Sum Insured</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2">
|
|
||||||
<label for="mobile">From Age</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.age_from : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter From Age" name="age_from[]" id="age_from" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2">
|
|
||||||
<label for="mobile">To Age</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.age_to : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter TO Age" name="age_to[]" id="age_to" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">Premium</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<button style="margin-top: 29px;" type="button" class="btn btn-primary" id="gmc_add_more" onclick="appendGridtHtml(7)">+</button>
|
|
||||||
<button style="margin-top: 29px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(${Count})">x</button>
|
|
||||||
</div>
|
|
||||||
</div>`;
|
|
||||||
|
|
||||||
}else if(ui_type == '8'){
|
|
||||||
|
|
||||||
html = `
|
|
||||||
<div class="form-row" id="removeChild_${Count}">
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">Sum Insured</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">Grade/Band</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.grade : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Grade/Band " name="grade[]" id="grade" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">Premium</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<button style="margin-top: 29px;" type="button" class="btn btn-primary" id="gmc_add_more" onclick="appendGridtHtml(8)">+</button>
|
|
||||||
<button style="margin-top: 29px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(${Count})">x</button>
|
|
||||||
</div>
|
|
||||||
</div>`;
|
|
||||||
|
|
||||||
}else if(ui_type == '9'){
|
|
||||||
|
|
||||||
html = `
|
|
||||||
<div class="form-row" id="removeChild_${Count}">
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">Sum Insured</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">Grade/Band</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.grade : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Grade/Band " name="grade[]" id="grade" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">Premium</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<button style="margin-top: 29px;" type="button" class="btn btn-primary" id="gmc_add_more" onclick="appendGridtHtml(9)">+</button>
|
|
||||||
<button style="margin-top: 29px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(${Count})">x</button>
|
|
||||||
</div>
|
|
||||||
</div>`;
|
|
||||||
|
|
||||||
}else if(ui_type == '10'){
|
|
||||||
|
|
||||||
html = `
|
|
||||||
<div class="form-row" id="removeChild_${Count}">
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">Sum Insured</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2">
|
|
||||||
<label for="mobile">From Age</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.age_from : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter From Age" name="age_from[]" id="age_from" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2">
|
|
||||||
<label for="mobile">To Age</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.age_to : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter TO Age" name="age_to[]" id="age_to" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">Premium</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<button style="margin-top: 29px;" type="button" class="btn btn-primary" id="gmc_add_more" onclick="appendGridtHtml(10)">+</button>
|
|
||||||
<button style="margin-top: 29px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(${Count})">x</button>
|
|
||||||
</div>
|
|
||||||
</div>`;
|
|
||||||
|
|
||||||
}else if(ui_type == '11'){
|
|
||||||
|
|
||||||
html = `
|
|
||||||
<div class="form-row" id="removeChild_${Count}">
|
|
||||||
<div class="form-group col-md-2">
|
|
||||||
<label for="mobile">Sum Insured</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Sum Insured" name="si[]" id="sum_insured" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">Grade/Band</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.grade : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Grade/Band " name="grade[]" id="grade" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="mobile">Premium</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Premium" name="premium[]" id="premium" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2">
|
|
||||||
<label for="mobile">Max SI</label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.max_si : ''}" type="text" class="form-control form-control-client-policy-master" placeholder="Enter Max SI" name="max_si" id="max_si[]" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<button style="margin-top: 29px;" type="button" class="btn btn-primary" id="gmc_add_more" onclick="appendGridtHtml(11)">+</button>
|
|
||||||
<button style="margin-top: 29px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(${Count})">x</button>
|
|
||||||
</div>
|
|
||||||
</div>`;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
container.insertAdjacentHTML('beforeend', html);
|
|
||||||
$('#gmc_add_more').hide()
|
|
||||||
$('#gmc_remove').show()
|
|
||||||
// console.log('count 1',Count)
|
|
||||||
Count--
|
|
||||||
// console.log('count 2',Count)
|
|
||||||
$('#gmc_add_more_'+Count).hide()
|
|
||||||
Count++
|
|
||||||
// console.log('count 3',Count)
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function removebutton(index, type) {
|
|
||||||
|
|
||||||
if(index == 0){
|
|
||||||
var inputs = document.querySelectorAll('#grid_'+ type +' input');
|
|
||||||
inputs.forEach(function(input) {
|
|
||||||
input.value = '';
|
|
||||||
});
|
|
||||||
}else{
|
|
||||||
|
|
||||||
var element = document.getElementById('removeChild_'+ index);
|
|
||||||
var gridContentDiv = document.getElementById('grid_content_input');
|
|
||||||
var count = gridContentDiv.childElementCount;
|
|
||||||
|
|
||||||
if (element) {
|
|
||||||
element.remove();
|
|
||||||
}
|
|
||||||
|
|
||||||
if(count == 2){
|
|
||||||
$('#gmc_add_more').show();
|
|
||||||
}
|
|
||||||
|
|
||||||
index--;
|
|
||||||
$('#gmc_add_more_'+index).show();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
@ -956,7 +598,7 @@ function removebutton(index, type) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Policy terms Add Special Condition -->
|
||||||
<script>
|
<script>
|
||||||
document.getElementById('myButtonSpecialCondition').addEventListener('click', function(event) {
|
document.getElementById('myButtonSpecialCondition').addEventListener('click', function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
@ -987,6 +629,8 @@ function removebutton(index, type) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Close the Policy terms
|
||||||
|
|
||||||
$(document).on('click', '#policyGMCTermsClose', function() {
|
$(document).on('click', '#policyGMCTermsClose', function() {
|
||||||
$('#policyGMCTerms').css('display', 'none');
|
$('#policyGMCTerms').css('display', 'none');
|
||||||
$('#police-tab').css('display', '');
|
$('#police-tab').css('display', '');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user