Repository navigation
Expand file tree
/
Copy pathmuahang.php
More file actions
49 lines (47 loc) · 1.53 KB
/
Copy pathmuahang.php
File metadata and controls
49 lines (47 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
if(isset($_POST['btnMua'])){
ThemDonHang();
LuuDonHangChiTiet();
header("location:index.php?page=muahangxong");
}
?>
<form id="form1" name="form1" method="post" action="">
<table width="500" border="1" cellspacing="0" cellpadding="4">
<caption>
THÔNG TIN MUA HÀNG
</caption>
<tr>
<th scope="col">Tên người nhận</th>
<th align="left" scope="col"><input name="TenNguoiNhan" type="text" id="TenNguoiNhan" value="<?php if(isset($_SESSION['kt_HoTen'])) echo $_SESSION['kt_HoTen']; else echo ''?>" /></th>
</tr>
<tr>
<td>Thời điểm giao hàng</td>
<td align="left"><input type="text" name="ThoiDiemGiaoHang" id="ThoiDiemGiaoHang" /></td>
</tr>
<tr>
<td>Địa điểm giao hàng</td>
<td align="left"><input type="text" name="DiaDiemGiaoHang" id="DiaDiemGiaoHang" /></td>
</tr>
<tr>
<td>Ghi chú</td>
<td align="left"><input type="text" name="GhiChu" id="GhiChu" /></td>
</tr>
<tr>
<td>Tình trạng</td>
<td align="left"><label>
<input type="text" name="TinhTrang" id="TinhTrang" />
</label></td>
</tr>
</table>
<p>
<label>
<input type="submit" name="btnMua" id="btnMua" value="MuaHang" />
</label>
</p>
<p>
<input name="idUser" type="hidden" id="idUser" value="<?php echo $_SESSION['kt_login_id'];?>" />
<input name="ThoiDiemDatHang" type="hidden" id="ThoiDiemDatHang" value="<?php echo date('Y-m-d')?>" />
</p>
</form>
<p><?php require_once('hiengiohang2.php'); ?>
</p>