01.
<?
02.
$list_id
=
$_REQUEST
[
'list_id'
];
03.
$total
[
$a
]=
$_REQUEST
[
'total'
];
04.
$price
=
$_REQUEST
[
'price'
];
05.
$sumtotal_uct
=
$_REQUEST
[
'sumtotal_uct'
];
06.
$isselect
=
$_REQUEST
[
'isselect'
];
07.
$pro_id
=
$_REQUEST
[
'pro_id'
];
08.
$order_date
=
$_REQUEST
[
'order_date'
];
09.
$mng_approve
=
$_REQUEST
[
'mng_approve'
];
10.
$order_id
=
$_REQUEST
[
'order_id'
];
11.
$emp_name
=
$_SESSION
[
'emp_name'
];
12.
?>
13.
14.
<form name=
"form"
method=
"post"
action=
"index.php?module=<?=$module?>&mode=checkrequier"
>
15.
<p>
16.
<?
17.
$sq
=
"SELECT * FROM tbl_order_list as a, tbl_product as b WHERE a.pro_id=b.pro_id and a.order_id =$order_id"
;
18.
$q
=mysql_query(
$sq
);
19.
20.
21.
22.
?>
23.
</p>
24.
<table width=
"50%"
border=
"0"
align=
"center"
bordercolor=
"#006600"
>
25.
<tr>
26.
<td colspan=
"4"
align=
"center"
bgcolor=
"#99CCFF"
>ใบรายการเบิก</td>
27.
<tr>
28.
<td colspan=
"4"
align=
"right"
bgcolor=
"#99CCFF"
>เลขที่ใบเบิก:<?=
$order_id
?><br />
29.
วันที่
30.
31.
:<?=
$db
[
'order_date'
]?> </td>
32.
<tr bgcolor=
"#FFFFFF"
>
33.
<td colspan=
"4"
align=
"left"
><?=
$db
[
'emp_name'
]?></td>
34.
<tr>
35.
36.
<th align=
"center"
width=
"42"
bgcolor=
"#555555"
><b><font color=
"#EEEEEE"
size=
"2"
>ลำดับ</font></b></th>
37.
<th align=
"center"
width=
"68"
bgcolor=
"#555555"
><b><font color=
"#EEEEEE"
size=
"2"
>รหัสสินค้า</font></b></th>
38.
<th align=
"center"
width=
"86"
bgcolor=
"#555555"
><b><font color=
"#EEEEEE"
size=
"2"
>ชื่ออุปกรณ์</font></b></th>
39.
<th align=
"center"
width=
"103"
bgcolor=
"#555555"
><b><font color=
"#EEEEEE"
size=
"2"
>รูปภาพสินค้า</font></b></th>
40.
<?
41.
$i
=1;
42.
$f
=0;
43.
$total
= 0;
44.
45.
46.
47.
while
(
$b
=mysql_fetch_array(
$q
)){
48.
49.
50.
51.
?>
52.
53.
<tr bgcolor=
"#FFFFFF"
>
54.
<td align=
"center"
><?=
$i
?></td>
55.
<td align=
"center"
><?=
$b
[
'pro_id'
]?></td>
56.
<td align=
"center"
><?=
$b
[
'pro_name'
]?></td>
57.
<td align=
"center"
><?
if
(
$db
[
'pro_img'
]!=
''
){?>
58.
<img src=
"images/product/<?=$b['pro_img']?>"
width=
"26"
height=
"27"
heigth=
"40px"
/>
59.
<? }
else
{?>
60.
<img src=
"images/nopic.gif"
width=
"26"
height=
"27"
/>
61.
<? }?></td>
62.
</tr>
63.
<?
64.
$i
++;
65.
}
66.
67.
?>
68.
<tr bgcolor=
"#99CCFF"
>
69.
<td colspan=
"4"
align=
"center"
><input name=
"mng_approve"
type=
"radio"
id=
"radio"
value=
"1"
/>
70.
<label
for
=
"mng_approve"
>อนุมัติ
71.
<input name=
"mng_approve"
type=
"radio"
id=
"radio2"
value=
"2"
/>
72.
ไม่อนุมัติ</label></td>
73.
</tr>
74.
<tr>
75.
<td colspan=
"4"
align=
"center"
bgcolor=
"#555555"
>
76.
77.
<input type=
"submit"
name=
"button"
id=
"button"
value=
"เสร็จสิ้น"
/>
78.
<input type=
"hidden"
name=
"mode"
value=
"checkrequier"
>
79.
<input type=
"hidden"
name=
"action"
value=
"yes"
>
80.
<input type=
"hidden"
name=
"order_id"
value=
"<?=$order_id?>"
>
81.
82.
</td>
83.
</tr>
84.
85.
</table>
86.
87.
</form>