154 lines
4.9 KiB
PHP
154 lines
4.9 KiB
PHP
<form method="post" name="post_nav_find" action="">
|
|
<input type="hidden" name="link_id" value="">
|
|
</form>
|
|
<!-- Main content -->
|
|
<div class="content-wrapper">
|
|
|
|
<!-- Main charts -->
|
|
<div class="row">
|
|
<div class="col-lg-6">
|
|
|
|
<!-- Quick stats boxes -->
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
|
|
<!-- Members online -->
|
|
<div class="panel bg-teal-400">
|
|
<div class="panel-body">
|
|
<h3 class="no-margin">Coupon Member ID: <?php echo $_SESSION['bko_selected_id']; ?></h3>
|
|
<h4>Username: <?=$_SESSION['bko_selected_username']?> | Firstname: <?=$_SESSION['bko_selected_row']->firstname?>
|
|
Lastname: <?=$_SESSION['bko_selected_row']->lastname?>
|
|
Added: <?=$_SESSION['bko_selected_row']->added?> </h4>
|
|
</div>
|
|
</div>
|
|
<!-- /members online -->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
<!-- /quick stats boxes -->
|
|
|
|
<!-- Traffic sources -->
|
|
<div class="panel panel-flat">
|
|
<div class="panel-heading">
|
|
<h6 class="panel-title"><b>Assign Coupon</b></h6>
|
|
<div class="heading-elements">
|
|
<form class="heading-form" action="#">
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<table class="table">
|
|
<tbody>
|
|
<tr>
|
|
<th scope="row">Coupon Range</th>
|
|
<td><input type="number" class="form-control" id="from_coupon" aria-describedby="emailHelp" value="1000" placeholder="Amount From"></td>
|
|
<td><input type="number" class="form-control" id="to_coupon" aria-describedby="emailHelp" value="10000" placeholder="Amount To"></td>
|
|
<td><button type="submit" onclick="findCoupon(0)" class="btn btn-primary">Submit</button></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div id="coupon_sec">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<!-- /traffic sources -->
|
|
|
|
</div>
|
|
<div class="col-lg-3">
|
|
|
|
<!-- Sales stats -->
|
|
<div class="panel panel-flat">
|
|
<div class="panel-heading">
|
|
<h6 class="panel-title"><b>Pending Coupons</b></h6>
|
|
<div class="heading-elements">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row text-left">
|
|
<?php echo $coupons_recent_alloc; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /sales stats -->
|
|
|
|
</div>
|
|
<div class="col-lg-3">
|
|
|
|
<!-- Sales stats -->
|
|
<div class="panel panel-flat">
|
|
<div class="panel-heading">
|
|
<h6 class="panel-title"><b>Redeemed Coupons</b></h6>
|
|
<div class="heading-elements">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row text-left">
|
|
<?php echo $coupons_redeem_alloc; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /sales stats -->
|
|
|
|
</div>
|
|
</div>
|
|
<!-- /main charts -->
|
|
|
|
|
|
|
|
|
|
</div>
|
|
<!-- /main content -->
|
|
<script type="text/javascript">
|
|
<!--
|
|
function findCoupon(coupon_id) {
|
|
|
|
var from_coupon = $('#from_coupon').val();
|
|
var to_coupon = $('#to_coupon').val();
|
|
|
|
$.ajax({
|
|
url: "/bkosmember/listcoupon?from_coupon=" + from_coupon + "&to_coupon=" +to_coupon
|
|
}).done(function (data) {
|
|
$('#coupon_sec').html(data);
|
|
// document.offer_individual.rec_email.value = '';
|
|
// $('#acc' + link_id).prop('disabled', false);
|
|
});
|
|
return false;
|
|
}
|
|
|
|
function assignCoupon(coupon_id) {
|
|
|
|
if (confirm("Are you sure you want to assign this coupon ?")) {
|
|
// do something
|
|
} else {
|
|
return false;
|
|
}
|
|
|
|
$.ajax({
|
|
url: "/bkosmember/assigncoupon?coupon_id=" + coupon_id
|
|
}).done(function (data) {
|
|
$('#c_sec'+coupon_id).html(data);
|
|
// document.offer_individual.rec_email.value = '';
|
|
// $('#acc' + link_id).prop('disabled', false);
|
|
});
|
|
|
|
return false;
|
|
}
|
|
|
|
// -->
|
|
</script>
|