01.
<?php
do
{ ?>
02.
<tr>
03.
<td height=
"53"
align=
"center"
><?php
echo
$row_order
[
'order_id'
]; ?></td>
04.
<td><?php
echo
$row_order
[
'order_date'
]; ?></td>
05.
<td><?php
echo
$row_order
[
'order_name'
]; ?></td>
06.
<td align=
"center"
><?php
echo
$row_order
[
'order_sum'
];?></td>
07.
<td align=
"center"
><a href=
"order_detail.php?order_id=<?php echo $row_order['order_id']; ?>"
><img src=
"../imanges/File-Search-icon.png"
width=
"24"
height=
"24"
/></a></td>
08.
<td align=
"center"
><form id=
"form2"
name=
"form2"
method=
"POST"
action=
"<?php echo $editFormAction; ?>"
>
09.
<select name=
"status"
id=
"status"
class
=
"select-status"
>
10.
<?php
11.
do
{
12.
?>
13.
<option value=
"<?php echo $row_status['status_id']?>"
<?php
if
(!(
strcmp
(
$row_status
[
'status_id'
],
$row_order
[
'status_id'
]))) {
echo
"selected=\"selected\""
;} ?>><?php
echo
$row_status
[
'status_name'
]?></option>
14.
<?php
15.
}
while
(
$row_status
= mysql_fetch_assoc(
$status
));
16.
$rows
= mysql_num_rows(
$status
);
17.
if
(
$rows
> 0) {
18.
mysql_data_seek(
$status
, 0);
19.
$row_status
= mysql_fetch_assoc(
$status
);
20.
}
21.
?>
22.
</select>
23.
<input name=
"hiddenField2"
type=
"hidden"
id=
"hiddenField2"
value=
"<?php echo $row_order['order_id']; ?>"
/>
24.
<input type=
"image"
name=
"button2"
id=
"button2"
value=
"Submit"
src=
"../imanges/Save-icon.png"
width=
"24"
height=
"24"
/>
25.
<input type=
"hidden"
name=
"MM_update"
value=
"form2"
/>
26.
</form></td>
27.
<td align=
"right"
valign=
"middle"
><form id=
"form1"
name=
"form1"
method=
"POST"
action=
"<?php echo $editFormAction; ?>"
>
28.
<input name=
"hiddenField"
type=
"hidden"
id=
"hiddenField"
value=
"<?php echo $row_order['order_id']; ?>"
/>
29.
<input type=
"text"
class
=
" texems"
name=
"ems"
id=
"ems"
value=
"<?php echo $row_order['order_ems']; ?>"
/>
30.
<input type=
"image"
name=
"button2"
id=
"button2"
value=
"Submit"
src=
"../imanges/Save-icon.png"
width=
"24"
height=
"24"
/>
31.
<input type=
"hidden"
name=
"MM_update"
value=
"form1"
/>
32.
</form></td>
33.
<td align=
"center"
><a href=
"del_order.php?order_id=<?php echo $row_order['order_id']; ?>"
class
=
"ask-custom"
><img src=
"../imanges/delete-icon.png"
border=
"0"
align=
"absbottom"
/> </a>
34.
<script type=
"text/javascript"
>
35.
36.
$(document).ready(
function
() {
37.
38.
39.
$(
'.ask-plain'
).click(
function
(e) {
40.
41.
e.preventDefault();
42.
thisHref = $(this).attr(
'href'
);
43.
44.
if
(confirm(
'Are you sure'
)) {
45.
window.location = thisHref;
46.
}
47.
48.
});
49.
50.
$(
'.ask-custom'
).jConfirmAction({question :
"ลบใบสั่งซื้อสินค้า?"
, yesAnswer :
"Yes"
, cancelAnswer :
"Cancel"
});
51.
$(
'.ask'
).jConfirmAction();
52.
});
53.
54.
</script></td>
55.
</tr>
56.
<tr>
57.
<td colspan=
"8"
><img src=
"../imanges/line.png"
width=
"100%"
height=
"1"
/></td>
58.
</tr>
59.
<?php }
while
(
$row_order
= mysql_fetch_assoc(
$order
)); ?>
60.
</table></td>
61.
</tr>
62.
<tr>
63.
<td height=
"24"
> </td>
64.
</tr>
65.
</table></td>
66.
</tr>
67.
</table>