Files
WrenchBoradWeb/www/application/views/users/view_recipient.php
T
2019-05-31 11:26:35 -04:00

68 lines
2.1 KiB
PHP

<!-- Main content -->
<div class="content-wrapper">
<?php include('common/userstrip.php'); ?>
<!-- Marketing campaigns -->
<div class="panel panel-flat">
<div class="panel-heading">
<h5 class="panel-title">Linked Bank Account(s)</h5>
</div>
</div>
<!-- /marketing campaigns -->
<form method="post" name="post_nav_find" action="/member/addrecipient">
<input type="hidden" name="addreccipient" value="">
</form>
<script type="text/javascript">
<!--
function post_nav_find_action(what, value) {
document.post_nav_find.action = what + '';
document.post_nav_find.addreccipient.value = value;
document.post_nav_find.submit();
return false;
}
// -->
</script>
<!-- Marketing campaigns -->
<div class="panel panel-flat">
<div class="panel-heading">
<form class="form-horizontal" action="/member/recipient" method='POST'>
<div class="row"> <input type=submit onclick="return post_nav_find_action('addreccipient', 1)" name="addreccipient" class="btn btn-info btn-xs" value="Add Bank Account"> </div>
<div class="panel-body">
<div class="row">
<?php echo $recipient_table; ?>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- /marketing campaigns -->
<script type="text/javascript">
<!--
function delAccount(link_id) {
if (confirm("Are you sure you want to delete this recipient account ?")) {
// do something
} else {
return false;
}
$('#selected_acc' + link_id).html('Processing...');
$('#dacc' + link_id).prop('disabled', true);
$.ajax({
url: "/member/recipprocess?proc=DELETE&recipient_id=" + link_id
}).done(function (data) {
$('#selected_acc' + link_id).html(data);
document.offer_individual.rec_email.value = '';
$('#dacc' + link_id).prop('disabled', false);
});
return false;
}
// -->
</script>