199 lines
8.1 KiB
PHP
Executable File
199 lines
8.1 KiB
PHP
Executable File
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
|
?>
|
|
<!--sidebar end-->
|
|
<!--main content start-->
|
|
<div class="app-content content">
|
|
<section class="content-wrapper">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<h3 class="font-weight-bold">
|
|
<?php echo lang('Onboarding Disclosure List'); ?> | <a href="javascript:void(0)" class="badge badge-info">Email: <?=$email?></a>
|
|
</h3>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<hr class="mt-0 mb-0" />
|
|
<div class="card-content collapse show">
|
|
<div class="card-body card-dashboard">
|
|
<div class="panel-body">
|
|
<div class="adv-table editable-table ">
|
|
<div class="space15"></div>
|
|
<table class="table table-striped table-bordered dom-jQuery-events" id="editable-sample" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th>Sl.no</th>
|
|
<th>Name</th>
|
|
<th>Status</th>
|
|
<th class="no-print" style="width: 30%;">Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<?php
|
|
foreach($disclosure['data'] as $disclosure) {
|
|
|
|
$options1 = '<a class="btn btn-primary" target="_blank" title="' . lang('View') .'" href="'.$disclosure['pdf_link'].'" ><i class="fa fa-eye"></i>' . lang('View') .' </a>';
|
|
if($disclosure['verified_by_ionid']!=''){
|
|
$options2 = '<a class="btn btn-success verified" title="' . lang('verified') .'" href="javascript:void(0)" >' . lang('verified') .' </a>';
|
|
}else{
|
|
$options2 = '<a class="btn btn-danger verify" title="' . lang('Verify') .'" href="javascript:void(0)" data-short_code="'.$disclosure['short_code'].'" ><i class="la la-check-square"></i>' . lang('Verify') .' </a>';
|
|
}
|
|
?>
|
|
<tr>
|
|
<td><?php static $p=1; echo $p; $p++; ?></td>
|
|
|
|
<td><?php echo $disclosure['name']; ?></td>
|
|
<td>
|
|
<?php if($disclosure['signature'] == ""){ $options2=''; ?>
|
|
<span class="badge badge-success" style="background-color: #f1f1f1; color:#3c3c3c;">
|
|
Pending
|
|
<img src="<?=base_url()?>/common/img/pending.png" width="15px" height="auto" />
|
|
</span>
|
|
<?php } else { ?>
|
|
<span class="badge badge-success" style="background-color: #f1f1f1; color:#3c3c3c;">
|
|
Signed
|
|
<img src="<?=base_url()?>/common/img/completed.jpg" width="15px" height="auto" />
|
|
</span>
|
|
<?php } ?>
|
|
</td>
|
|
<td><?php echo $options1." ".$options2 ?></td>
|
|
</tr>
|
|
<?php } ?>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
|
|
<!--main content end-->
|
|
<!--footer start-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).on("click",".verify",function() {
|
|
var short_code=$(this).data("short_code");
|
|
var caregiver_id=<?=$cgid?>;
|
|
var this_btn=$(this);
|
|
$.ajax('<?=base_url()?>caregivers/verify_onboarding_disclosure', {
|
|
type: 'POST',
|
|
data: {
|
|
short_code: short_code,
|
|
caregiver_id: caregiver_id,
|
|
<?php echo $this->security->get_csrf_token_name(); ?>:'<?php echo $this->security->get_csrf_hash(); ?>'
|
|
},
|
|
async: false,
|
|
success: function (data, status, xhr) {
|
|
// data=JSON.parse(data);
|
|
if(status=='success'){
|
|
Swal.fire({
|
|
position: 'center',
|
|
icon: 'success',
|
|
title: 'Successfully Verified',
|
|
showConfirmButton: false,
|
|
timer: 2000
|
|
})
|
|
this_btn.html('verified');
|
|
this_btn.removeClass('btn-danger verify');
|
|
this_btn.addClass('btn-success');
|
|
}
|
|
},
|
|
error: function (jqXhr, textStatus, errorMessage) {
|
|
}
|
|
});
|
|
});
|
|
// function verify(cid,short_code){
|
|
// console.log('cid',cid);
|
|
// console.log('short_code',short_code);
|
|
// $.ajax('master_state_list/duplicateCheck', {
|
|
// type: 'POST', // http method
|
|
// data: { val: fldval,<?php echo $this->security->get_csrf_token_name(); ?>:'<?php echo $this->security->get_csrf_hash(); ?>'}, // data to submit
|
|
// async: false,
|
|
// success: function (data, status, xhr) {
|
|
// },
|
|
// error: function (jqXhr, textStatus, errorMessage) {
|
|
// }
|
|
// });
|
|
// }
|
|
</script>
|
|
|
|
<!-- <script>
|
|
$(document).ready(function () {
|
|
});
|
|
</script> -->
|
|
|
|
|
|
<?php
|
|
/*
|
|
if(isset($_SESSION['deleted'])){
|
|
?>
|
|
<script>
|
|
$(function(){
|
|
Swal.fire({
|
|
position: 'center',
|
|
icon: 'success',
|
|
title: 'Successfully Deleted',
|
|
showConfirmButton: false,
|
|
timer: 2000
|
|
})
|
|
})
|
|
</script>
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
<?php
|
|
if(isset($_SESSION['edited'])){
|
|
?>
|
|
<script>
|
|
$(function(){
|
|
Swal.fire({
|
|
position: 'center',
|
|
icon: 'success',
|
|
title: 'Successfully Edited',
|
|
showConfirmButton: false,
|
|
timer: 2000
|
|
})
|
|
})
|
|
</script>
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
<?php
|
|
if(isset($_SESSION['added'])){
|
|
?>
|
|
<script>
|
|
$(function(){
|
|
Swal.fire({
|
|
position: 'center',
|
|
icon: 'success',
|
|
title: 'Successfully Added',
|
|
showConfirmButton: false,
|
|
timer: 2000
|
|
})
|
|
})
|
|
</script>
|
|
<?php
|
|
}
|
|
*/
|
|
?>
|