<?php
					
					 $id=$_REQUEST['edit'];
					 
					 
					
					
					   	//Include database connection details
	              require_once('Connection/conn.php');
				  $addadmin = mysql_query("select * from tracking where id = '$id'");
				if(!$addadmin){
					echo("error accur in performating the query" . mysql_error());
					}
                     while($row=mysql_fetch_array($addadmin)) {
						
					 $id = $row['id'];
					 $num= $row['num'];
					 $shipdat= $row['ship_date'];
					 $estimate_dat=$row['Estimated_Date'];
					 $ship_type=$row['Shipment_type'];
					 $content=$row['Content'];
					 $receive=$row['receiver_name'];
					 $address=$row['receiver_address'];
					 $country=$row['country'];
					 $phone=$row['telephone'];
					 $ddate=$row['Estimated_Date']; 
					 $message=$row['message']; 
					 $status=$row['status']; 
					 $dtime =$row['dtime']; 
					  
					 
					}
					
?>
<style type="text/css">
<!--
.style13 {font-family: Arial, "Arial Black", "Times New Roman";
	font-size: 12px;
}
-->
</style>
<form action="view.php" method="post" name="addtrack">
  <table width="400" border="0" align="center" cellpadding="0" cellspacing="3">
    <tr>
      <td>&nbsp;</td>
      <td><input name="id" type="hidden" id="id" value="<?php echo $id;?>"></td>
    </tr>
    <tr>
      <td width="28%"><span class="style13">Tracking Number </span></td>
      <td width="72%"><label>
        <input name="num" type="text" id="num" size="25" value="<?php echo $num;?>">
      </label></td>
    </tr>
    <tr>
      <td><span class="style13">Country:</span></td>
      <td><input name="country" type="text" id="country" size="25" value="<?php echo $country;?>" /></td>
    </tr>
    <tr>
      <td valign="top">Delivery <span class="style13">Time</span></td>
      <td><input type="text" name="dtime" id="dtime" value="<?php echo $dtime;?>" /></td>
    </tr>
    <tr>
      <td valign="top"><span class="style13">Message:</span></td>
      <td><textarea name="message" cols="25" rows="4" id="message"><?php echo $message;?></textarea></td>
    </tr>
    <tr>
      <td class="style13">Delivery Date</td>
      <td><input name="ddate" type="text" id="ddate" size="25" value="<?php echo $ddate;?>" /></td>
    </tr>
    <tr>
      <td class="style13">Status</td>
      <td><input name="status" type="text" id="status" size="25" value="<?php echo $status;?>" /></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><label>
        <input name="updatebtn" type="submit" id="updatebtn" value="Update">
      </label></td>
    </tr>
  </table>
</form>					
