// this is my code
<?php $mabill = $_POST["mabill"]; ?>
<?php include "command.php"; ?>
<?php $table='vandon';?>
<?php
include "connect.php";
?>
<center>
<?php
$sql = "SHOW COLUMNS FROM $table";
$result = mysqli_query($conn,$sql);
$i=0;
$sql = "select * from $table where mabill='$mabill'";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
//van don
$mabill=$row["mabill"];$ngay=$row["ngay"];$khachgui = $row["khachgui"];$nguoinhan = $row["nguoinhan"];
$tinhden = $row["tinhden"];$diachinhan = $row["diachinhan"];$trongluong = $row["trongluong"];$thuho = $row["thuho"];
$dichvu = $row["dichvu"];$tinhtrangdonhang = $row["tinhtrangdonhang"];$tenkynhan = $row["tenkynhan"];$ghichu = $row["ghichu"];
//echo "<td >". $row["tenvattu"]. "</td>";
//echo "<td style='padding-left:10px'>". $row["mavattu"]. "</td>";
//echo "<td style='padding-left:10px'>". $row["2"]. "</td>";
//echo "<td style='padding-left:10px'>". $row["donvitinh"]. "</td>";
//echo "<td style='padding-left:10px'>". $row["madoanhnghiep"]. "</td>";
//echo "<td style='padding-left:10px' height='200' width='200'>". <img src=".$row["duongdan"]." />. "</td>";
//echo "<td style='padding-left:10px'><div id='resize'><center><img src=".$row["duongdan"]." height='50px' width='50px' /></center></div></td>";
//echo "<td style='padding-left:10px'><div id='resize'><center><a href='index.php?form=".$row["donvitinh"]."'><img src=".$row["duongdan"]." height='55px' width='55px' /></a></center></div></td>";
}
}
?>
<div class="container">
<br>
<?php echo "<font size='+2'>THÔNG TIN VẬN ĐƠN</font>"; ?>
<br><br>
<center>
<form id="doupdate" action="./doupdate.php#doupdate" method="post" enctype="multipart/form-data">
<table border='0' style="width:100%">
<tr>
<td width='17%'>Mã bill</td>
<td><input type="text" name="mabill" class="" style="width:100%" value="<?php echo $mabill; ?>"/></td>
</tr>
<tr>
<td>Ngày</td>
<td><input type="text" name="ngay" class="" style="width:100%" value="<?php echo $ngay; ?>"/></td>
</tr>
<tr>
<td>Khách gửi</td>
<td><input type="text" name="khachgui" class="" style="width:100%" value="<?php echo $khachgui; ?>"/></td>
</tr>
<tr>
<td>Người nhận</td>
<td><input type="text" name="nguoinhan" class="" style="width:100%" value="<?php echo $nguoinhan; ?>"/></td>
</tr>
<tr>
<td>Tỉnh đến</td>
<td><input type="text" name="tinhden" class="" style="width:100%" value="<?php echo $tinhden; ?>"/></td>
</tr>
<tr>
<td>Địa chỉ nhận</td>
<td><input type="text" name="diachinhan" class="" style="width:100%" value="<?php echo $diachinhan; ?>"/></td>
</tr>
<tr>
<td>Trọng lượng</td>
<td><input type="text" name="trongluong" class="" style="width:100%" value="<?php echo $trongluong." KG"; ?>"/></td>
</tr>
<tr>
<td>Thu hộ</td>
<td><input type="text" name="thuho" class="" style="width:100%" value="<?php echo $thuho; ?>"/></td>
</tr>
<tr>
<td>Dịch vụ</td>
<td><input type="text" name="dichvu" class="" style="width:100%" value="<?php echo $dichvu; ?>"/></td>
</tr>
<tr>
<td>Tình trạng đơn hàng</td>
<td><input type="text" name="tinhtrangdonhang" style="width:100%" class="" value="<?php echo $tinhtrangdonhang; ?>"/></td>
</tr>
<tr>
<td>Tên ký nhận</td>
<td><input type="text" name="tenkynhan" class="" style="width:100%" value="<?php echo $tenkynhan; ?>"/></td>
</tr>
<tr>
<td>Ghi chú</td>
<td><input type="text" name="tenkynhan" class="" style="width:100%" value="<?php echo $ghichu; ?>"/></td>
</tr>
</table>
</form>
</center>
</div>
<?php $table='vandon';?>
<?php
include "connect.php";
?>
<center>
<?php include 'lastupdate.php';?>
No comments:
Post a Comment