
<!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">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>SB Admin 2 - Bootstrap Admin Theme</title>

    <!-- Bootstrap Core CSS -->
   

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    
    
    <SCRIPT type="text/javascript">


function confirmDelete()
{
var agree=confirm("Are you sure you wish to continue?");
if (agree)
	return true ;
else
	return false ;
}
// -->
</script>

</head>

<body>

    
                            <p>&nbsp;</p>
                            <table width="100%" border="1" class="">
                                <thead>
                                    <tr>
                                        <th>Tracking No.</th>
                                        <th>Shippers Address</th>
                                        <th>Receivers Address</th>  
                                        <th>Buttons for Modifications </th>
                                        
                                    </tr>
                                </thead>
                              <tbody>
                                <?php 
	include ('include/conn.php');

$query="SELECT * from trackings ORDER BY id ASC";
$result = mysqli_query($login, $query);



		while($row=mysqli_fetch_array($result)) {

$id = $row['id'];
$num = $row['num'];
$receiveradd = $row['receiveradd'];
$status = $row['status'];
$destination = $row['destination'];
$exptdelvrydate = $row['exptdelvrydate'];

		?>
                                <tr class="">
                                        <td><?php echo $num ?></td>
                                        <td><?php echo $receiveradd ?></td>
                                        <td><?php echo nl2br($receiveradd)?></td>
 
                                        <td> <?php echo"<a href='dashboard.php?trackdetails=$id''>[ Info] </a>&nbsp; <a href='dashboard.php?edittrack=$id''>Edit</a> &nbsp;  <a href='dashboard.php?deletestudbtn=$id' onclick='return confirmDelete()'>[ Del ]</a>"; ?></td>
                                    </tr>
                                    <?php  } ?>	
                                </tbody>
                            </table>
                            <!-- /.table-responsive -->
                     
   

 

</body>

</html>
