%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/public_html/website_93b53270/ |
Upload File : |
<?php include('header.php');
if(!isset($_SESSION['user_id'])){
echo "<script>window.location='login.php'</script>";
}
?>
<section id="chng-pwd">
<div class="container">
<div class="row">
<div class="col-md-4">
<?php include('user-sidebar.php'); ?>
</div>
<div class="col-md-8">
<div class="bg-white p-5 br-20 my-5 box-shadow">
<div class="row">
<table class="table table-striped table-hover">
<tr>
<!-- <th><input type="checkbox" id="some1" data-check-pattern="[name^='delete']" /></th> -->
<th>Sr.no</th>
<th>Order ID</th>
<th>Amount</th>
<th>Order date </th>
<th>Status </th>
<th>Action </th>
</tr>
<?php
$query=mysqli_query($conn,"SELECT * FROM `order_tbl` WHERE user_id='".$_SESSION['user_id']."' ORDER BY ID DESC");
$n=1;
while($fetch_row=mysqli_fetch_array($query)){
?>
<tr>
<!-- <td><input type='checkbox' name='delete[]' value="<?=$fetch_row['id']; ?>"></td> -->
<td><?=$n; $n++; ?></td>
<td><?=$fetch_row['order_id'];?></td>
<td><?=$currencyType?> <?=$fetch_row['totle_amount'];?></td>
<td><?=$fetch_row['recieve_date'];?></td>
<?php if($fetch_row['status']==0){ ?>
<td><a class="btn btn-secondary btn-sm">Pending</a></td>
<?php } if($fetch_row['status']==1){ ?>
<td><a class="btn btn-success btn-sm">Success</a></td>
<?php } if($fetch_row['status']==2){ ?>
<td><a class="btn btn-danger btn-sm">Cancel</a></td>
<?php } ?><!-- ['order_id'] -->
<td><?php echo '<a href="finvoice?order_id='.$fetch_row['order_id'].'" class="btn btn-primary btn-sm" target="_blank">View</a>'; ?>
</td>
</tr>
<?php } ?>
</table>
</div>
</div>
</div>
</div>
</div>
</section>
<?php include('footer.php'); ?>