01.
<div
class
=
"row"
>
02.
03.
<table
class
=
"table table-striped table-bordered"
>
04.
<thead>
05.
<tr>
06.
<th ><center>ชื่อสินค้า</center></th>
07.
<th style=
"width: 100px"
><center>โหล</center></th>
08.
<th style=
"width: 100px"
><center>ชิ้น</center></th>
09.
<th style=
"width: 100px"
><center>ส่วนลด</center></th>
10.
<th style=
"width: 100px"
><center>ราคา</center></th>
11.
<th style=
"width: 200px"
><center>สถานะ</center></th>
12.
</tr>
13.
</thead>
14.
<tbody>
15.
<?php
16.
include
'connectdbPHP.php.'
;
17.
18.
$sql
= mysql_query("SELECT id,id_cart,name_product,amount1,amount2,discount,list_discount,sum FROM tb_cart_detail
19.
LEFT JOIN tb_product ON (tb_cart_detail.id_product = tb_product.id_product)
20.
WHERE tb_cart_detail.id_cart =
'" . $_GET['
id_cart
'] . "'
");
21.
$detailorder
=
array
();
22.
while
(
$row
= mysql_fetch_array(
$sql
)) {
23.
$detailorder
[] =
$row
;
24.
}
25.
26.
foreach
(
$detailorder
as
$row
) {
27.
echo
'<tr>'
;
28.
echo
'<td>'
.
$row
[
'name_product'
] .
'</td>'
;
29.
echo
'<td>'
.
$row
[
'amount1'
] .
'</td>'
;
30.
echo
'<td>'
.
$row
[
'amount2'
] .
'</td>'
;
31.
echo
'<td>'
.
$row
[
'discount'
] .
$row
[
'list_discount'
] .
'</td>'
;
32.
echo
'<td>'
.
$row
[
'sum'
] .
'</td>'
;
33.
echo
'<td ><input type="radio" onclick="alerrt()" style="text-align:center;" name="radios" id="radio1"><lable> มีของ </lable> '
34.
.
'<input type="radio" onclick="alerrt()" style="text-align:center;" name="radios" id="radio2"><lable> ไม่มีของ</lable> '
35.
.
'<input type="radio" onclick="alerrt()" style="text-align:center;" name="radios" id="radio3"><lable> รอของ</lable></td>'
;
36.
echo
'</tr>'
;
37.
}
38.
39.
?>
40.
41.
</tbody>
42.
</table>