]]jkjjgdjffksdkdxmnvbcbcvbvcbbbbbbbbbvcbcbvcbmnmbnwqeqwewqskfgj
במ12[cvbnvbnvcvbcvbcvbvvvccccccccccccccvbcvbcvbnmnmqewv;'
/
home
/
u729855735
/
domains
/
stylebyou.com
/
public_html
/
admin
/
Upload FileeE
HOME
<?php require('inc/header.php'); $cou = "SELECT * FROM coupons ORDER BY coupon_id DESC"; $run = mysqli_query($conn,$cou); ?> <style> .import{ color:#00b67a; border:1px solid #00b67a; padding: 6px 20px; font-size: 15px; font-weight: 600; border-radius: 3px; } .import:hover{ color:#00b67a; text-decoration:none; border:1px solid #00b67a; } </style> <div class="page-wrapper mdc-toolbar-fixed-adjust"> <main class="content-wrapper"> <div class="mdc-layout-grid"> <div class="mdc-layout-grid__inner"> <div class="mdc-layout-grid__cell stretch-card mdc-layout-grid__cell--span-12"> <div class="mdc-card p-0"> <h6 class="card-title card-padding pb-0">View all coupons <a class="import" href="add_coupon.php">Add new</a></h6> <div class="table-responsive"> <table class="table table-hoverable"> <thead> <tr> <th class="text-left">#</th> <th>Coupon</th> <th>Discount(%)</th> <th>Expiry date</th> <th>Action</th> </tr> </thead> <tbody> <?php if(mysqli_num_rows($run) > 0){ while($dt = mysqli_fetch_assoc($run)){ ?> <tr> <td class="text-left"><?php echo $dt['coupon_id'];?></td> <td style="color:#ed6525;font-weight:600"><?php echo $dt['coupon'];?></td> <td><?php echo $dt['amount'];?></td> <td><?php echo $dt['expiry_date'];?></td> <td><a style="color:red" href='delete_coupon.php?id=<?php echo $dt['coupon_id'];?>' onclick = "return confirm('Are you sure want to delete?')">Delete</a></td> </tr> <?php } } else{ $msg = "No coupons.";}?> </tbody> </table> </div> </div> </div> </div> </div> </main> </div> <?php require('inc/footer.php'); ?>