  <?php include_once('../fn/connect.php');  ?><?php  session_start();   error_reporting(0); if( ( empty($_SESSION['adminemailSession'])) && ( empty($_SESSION['adminpassSession']))){  header('location:index.php');}?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
     <?php include_once("tiltlechange.php"); ?>
     
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="css/bootstrap-markdown.min.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="css/bootstrap-select.css">
    <link href="css/admin.css" rel="stylesheet" type="text/css">
   
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <script src="js/bootstrap.min.js" type="text/javascript"></script>
    <script src="js/bootstrap-markdown.js" type="text/javascript"></script>
     <script src="js/bootstrap-select.js"></script>
    <script src="js/custom.js" type="text/javascript"></script>
    
     <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.15/css/jquery.dataTables.min.css">
	 <script type="text/javascript" language="javascript" src="https://code.jquery.com/jquery-1.12.3.min.js">	</script> 
	<script type="text/javascript" language="javascript" src="https://cdn.datatables.net/1.10.15/js/jquery.dataTables.min.js">
	</script>
	 
	<script type="text/javascript" language="javascript" class="init">
	
$(document).ready(function() {
	$('#example').DataTable( {
		"order": [[ 0, "desc" ]]
	} );
} ); 
	</script>
     <style> 
#example tr:nth-child(2n) {
  background-color: #F3F3F3;
}

 
#example tr {
  background-color: white;
}
 
</style>       
  </head>
  <body>
  
   <?php include_once('header.php'); ?>
  
  <!--headerpart-end--> 
<section class="clientdashh">
<div class="container"> 
<div class="listservisdata">
<h3>List of Order</h3>
<div class="table-responsive"> 
<table id="example" class="table table-hover" cellspacing="0" width="100%">
				<thead>
					<tr>
      <th>Order ID</th>
      <th>Client ID</th>
       <th>Client Name</th>
      <th>Payment Method</th> 
        <th>Date</th> 
        <th>Price</th>
         <th>Payment Status</th>
          <th>Status</th>
         <th>Action</th>
    </tr>
				</thead> 
				<tbody>
   <!--`user_rid`, `domain_name`, `plan_name`, `transectiondate`, `oderid`, `transactionid`, `paymethod`, `total`, `status`-->
   <?php $queser=mysqli_query($con,"SELECT * FROM `user_hostingpay` where  ordercancel='0'");  $rowcount=mysqli_num_rows($queser); 
   			while($rowser=mysqli_fetch_array($queser)){ ?>
    <tr>
      <td>   <h4><a href="manage-order.php?edit=<?php echo base64_encode($rowser['id']) ?>"><?php echo $rowser['oderid'];?></a></h4>  </td>
     
     <td><h4><a href="clientprofile.php?1=<?php echo base64_encode($rowser['user_rid']) ?>"><?php echo $uerid=$rowser['user_rid'];?></a></h4></td>
       <?php $queClient=mysqli_query($con,"SELECT * FROM `user_ragistration` where  id='$uerid'");  $rowClient=mysqli_fetch_array($queClient);?>
      <td><h4><a href="clientprofile.php?1=<?php echo base64_encode($rowClient['id']) ?>"><?php echo $rowClient['fname']." ".$rowClient['fname']; ?></a></h4></td>  
       <td><?php echo $rowser['paymethod'];?></td>
       <td><?php echo $rowser['transectiondate'];?></td> 
       <?php if($rowser['total'] == '0'){?>
       <td><span style="color:#FF0000">Unpaid</span></td>  
<?php } else{?>
  <td>Paid</td>
 <?php } ?>
 <?php if($rowser['status'] == '0'){?> 
  
<td><button class="btn btn-warning form-control">Pending</button></td>
<?php } else{?>

 <td><button class="btn btn-default form-control">Active</button></td>

 <?php } ?>
    
       <td><h4>&dollar;<?php echo $rowser['total'];?></h4></td>       
       <td><a  href="deleteOrder.php?cl=<?php echo $rowser['id'];  ?>"><button class="btn btn-danger">Delete</button></a></td></td>
       
    </tr>
    <?php } ?> 
   
  </tbody>
			</table>
</div> 
</div>  
</div> 
</section>


 
 
 <!--home--contant----end--->
  <?php include_once('footer.php'); ?>
 <!----------footer---end------->
 

  

  </body>
</html>