<? ob_start(); ?>
<?php
/*
Author: Javed Ur Rehman
Website: https://www.allphptricks.com/
*/
 
require('db.php');
include("auth.php");
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>View Records</title>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div class="viewsup">
<div class="topit" align="center"><a href="dashboard.php">Home</a> | <a href="insert.php">Create New Tracking</a> | <a href="receipt.html">Print Airwaybill</a> | <a href="logout.php">Logout</a></div>
<h2>Tracking Records Created</h2>
<table width="100%" border="1" style="border-collapse:collapse;">
<thead>
<tr>
<th><strong>Nos</strong></th>
<th><strong>Tacking Number</strong></th>
<th><strong>Receiver Name</strong></th>
<th><strong>Receiver Number</strong></th>
<th><strong>Receiver Address</strong></th>
<th><strong>Sender Name</strong></th>
<th><strong>Sender Number</strong></th>
<th><strong>Sender Address</strong></th>
<th><strong>Country of Origin</strong></th>
<th><strong>Destination Country</strong></th>
<th><strong>Departure Date</strong></th>
<th><strong>Arrival Date</strong></th>
<th><strong>Transport Mode</strong></th>
<th><strong>Shipping Fee</strong></th>
<th><strong>Parcel Items Nos</strong></th>
<th><strong>Parcel Weight</strong></th>
<th><strong>First Report</strong></th>
<th><strong>Content</strong></th>
<th><strong>Current Location</strong></th>
<th><strong>Goods Status</strong></th>
<th><strong>Edit</strong></th>
<th><strong>Delete</strong></th></tr>
</thead>
<tbody>
<?php
$count=1;
$sel_query="Select * from new_record ORDER BY id desc;";
$result = mysqli_query($con,$sel_query);
while($row = mysqli_fetch_assoc($result)) { ?>
<tr><td align="center"><?php echo $count; ?></td>
<td align="center"><?php echo $row["tracknumber"]; ?></td>
<td align="center"><?php echo $row["receivername"]; ?></td>
<td align="center"><?php echo $row["receivernos"]; ?></td>
<td align="center"><?php echo $row["receiveradd"]; ?></td>
<td align="center"><?php echo $row["sendername"]; ?></td>
<td align="center"><?php echo $row["sendernos"]; ?></td>
<td align="center"><?php echo $row["senderadd"]; ?></td>
<td align="center"><?php echo $row["origin"]; ?></td>
<td align="center"><?php echo $row["destination"]; ?></td>
<td align="center"><?php echo $row["datesent"]; ?></td>
<td align="center"><?php echo $row["deliverydate"]; ?></td>
<td align="center"><?php echo $row["mode"]; ?></td>
<td align="center"><?php echo $row["invoice"]; ?></td>
<td align="center"><?php echo $row["itemdescript"]; ?></td>
<td align="center"><?php echo $row["weight"]; ?></td>
<td align="center"><?php echo $row["report"]; ?></td>
<td align="center"><?php echo $row["content"]; ?></td>
<td align="center"><?php echo $row["location1"]; ?></td>
<td align="center"><?php echo $row["goodsstatus"]; ?></td>
<td align="center"><a href="edit.php?id=<?php echo $row["id"]; ?>">Edit</a></td>
<td align="center"><a href="delete.php?id=<?php echo $row["id"]; ?>">Delete</a></td></tr>
<?php $count++; } ?>
</tbody>
</table>

<br /><br /><br /><br />
</div>
</body>
</html>
<? ob_flush(); ?>