Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/sattvicyug.com/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/sattvicyug.com/my-orders.php

<?php
	require_once("lib/functions.php");
	$db = new login_function();
	$flag = 0;
	$success_msg = 0;
	$emp_id="";
	$designation="";
	$emp_name="";
	$succ_msg = 0;
	$to_date="";
	$from_date = "";
	$category = "";
	// if(!isset($_SESSION['current_login_admin']))
	// {
	// 	header("Location:index.php");
	// }
	// if(isset($_SESSION['current_login_admin']))
	// {
	// 	$email	=	$_SESSION['current_login_admin'];
	// }
	
	
	// if(isset($_GET['delete_id']))
	// {
	// 	$del_id	=	$_GET['delete_id'];
	// 	$db->delete_order_product_info_from_user_checklist($del_id);
	// 	$db->delete_order_product_info_from_checklist($del_id);
	// 	$success_msg	=	2;
	// }
	// if($to_date == "")
	// {
	// 	$to_date = Date("d-m-Y");
	// }
	// if($from_date == "")
	// {
	// 	$from_date = Date("d-m-Y");
	// }
	// if(isset($_GET['d_id']))
	// {
	// 	$d_id	=	$_GET['d_id'];
	// 	$db->dispatch_product($d_id);
	// 	$success_msg	=	3;
	// }
	if(isset($_SESSION['login_email']))
	{
		$emails	=	$_SESSION['login_email'];
	}
?>
<?php
	require_once('header.php');
?>
  <link rel="stylesheet" href="/css/jquery-ui.css">
  <link rel="stylesheet" href="/resources/demos/style.css">
  <script src="/js/jquery-1.12.4.js"></script>
  <script src="/js/jquery-ui.js"></script>
  <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  <script>
  $( function() {
    $( "#datepicker" ).datepicker({ dateFormat: 'dd-mm-yy' });
  } );
  </script>
   <script>
  $( function() {
    $( "#datepicker1" ).datepicker({ dateFormat: 'dd-mm-yy' });
  } );
  </script>
<script src="src/jquery.table2excel.js"></script>
  <script type="text/javascript">
  $(document).ready(function(){
  $("#excel_btn").click(function(){
  $("#table2excel").table2excel({
  exclude: ".noExl",
  name: "Worksheet Name",
  filename: "pending Product Report" //do not include extension

  });

});

});

</script>

<div id="page-wrapper">
<div class="row">
	<div class="col-lg-12">
		<h1 class="page-header"> Pending Dispatch Product Report</h1>
					
	</div>
	
</div>
<?php
if($success_msg == 3)
{
?>
<div class="alert alert-success">
Product Dispatched Successfully.
</div>
<?php
}
?>
               <div class="row">
                 <div class="col-lg-12">
                    <div class="panel panel-default">
<div class="panel-heading">
Pending Dispatch Product Report
</div>
<div class="panel-body">
<div class="row">
<!-- <?php
	if(isset($_POST['add_btn']))
	{
		$from_date = $_POST['from_date'];
		$to_date = $_POST['to_date'];	
	}


?> -->
<form role="form" method="post" enctype="multipart/form-data">

	 <!-- <div class="col-lg-3" style="display:inline-table;">
		<input type="text" class="form-control" id="datepicker" placeholder="Enter Date From" name="from_date" value="<?php echo $from_date; ?>">

	  </div>
	  <div class="col-lg-3" style="display:inline-table;">
			<input type="text" class="form-control" id="datepicker1" placeholder="Enter Date to" name="to_date" value="<?php echo $to_date; ?>">

	  </div> -->

	<!-- <div class="col-lg-3" style="display:inline-table;">
		<button type="submit" class="btn btn-success" name="add_btn">search</button>
	</div> -->
</div>
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover" id="table2excel">
	<thead>
	<tr>
		<th colspan="13">Pending Product  Report</th>
	</tr>
		<tr class="noExl">
			<th>Sr. No</th>
			<th>Buyer Name</th>
			<th>Address</th>
			<th>Contact No</th>
			<th>Email</th>	
			<th>Amount</th>	
			<th>View</th>
			 <th>Status</th>
			<!--<th>Action</th>			 -->
		</tr>
	</thead>
	<tbody>
	<?php
		$total = 0;
		$status="Pending";
		$buyer_info = $db->order_history($emails);
		
				if(!empty($buyer_info))
				{
					$count = 0;
					foreach($buyer_info as $record)
					{
						$c_id			=	$buyer_info[$count][0];
						$buyer_name		=	$buyer_info[$count][1];
						$address		=	$buyer_info[$count][2];
						$contact_no		=	$buyer_info[$count][3];
						$email			=	$buyer_info[$count][4];
						$total_amount	=	$buyer_info[$count][5];
						$status			=	$buyer_info[$count][8];
	?>					
		<tr>
			<td><?php echo $count+1; ?></td>
			<td><?php echo $buyer_name; ?></td>
			<td><?php echo $address; ?></td>
			<td><?php echo $contact_no; ?></td>
			<td><?php echo $email; ?></td>
			<td> &#8377 <?php echo $total_amount; ?></td>
			<td><a href="view-details.php?tr_id=<?php echo $c_id; ?>"> View Details </a></td>
			<td><?php echo $status; ?></td>
			<!-- <td><a href="pending-product-report.php?d_id=<?php echo $c_id; ?>" style="color:green; font-weight:bold;">DISPATCH</a></td> -->
			<!-- <td><a href="pending-product-report.php?delete_id=<?php echo $c_id;?>" style="color:red; font-weight:bold;" onclick="return confirm('Are you sure For Delete Record?');">Delete Order</a></td> -->

		</tr>
	   <?php
			
			$total = $total + $total_amount;
			$count++;
				}
			
			
			
			?>
			<tr>
				<td colspan="5"><b>Total - </b></td>
				<td> &#8377 <b><?php echo $total; ?></b></td>
				<td colspan="3"></td>
			</tr>
		<?php
		}
		else
		{
		?>
		<td colspan="8">No Data Found...</td>
		<?php
		}
	   
	   
	   ?>
	</tbody>
</table>
	<!-- <button id="excel_btn" class="btn btn-success">Export</button> -->

</div>
<!-- /.table-responsive -->

	
	   
   
	
</div>

</div>

</div>

</div>

</div>

</div>


</div>
    

</body>

</html>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4