01.
print(
"<form action=\"\" method=\"POST\" enctype=\"multipart/form-data\" accept-charset=\"utf-8\">"
);
02.
print(
"<table border=\"1\" style=\"position:relative; left:14px; top:5px; width:400mm;\" class=\"radio-toolbar\" id=\"products\">"
);
03.
print(
"<tr>"
);
04.
print(
"<td colspan=\"9\" style=\"text-align:center;\">"
);
05.
print(
"<input type=\"hidden\" name=\"motor_id\" value=\""
.
$get_pic_check
[0][
'motor_name_id'
] .
"\" >"
);
06.
print(
"<div id=\"name_motor2\">Motor Number : "
.
$get_pic_check
[0][
'motor_name_id'
] .
" ("
.
$get_pic_check
[0][
'name'
] .
")</div>"
);
07.
08.
print(
"</td>"
);
09.
print(
"</tr>"
);
10.
print(
"<thead"
);
11.
print(
"<tr style=\"text-align:center;\">"
);
12.
13.
$get_check_list
= getlist(
"SELECT * FROM check_list where motor_code_id="
.
$get_pic_check
[0][
'motor_name_id'
] .
" AND checklist_status='1'"
);
14.
for
(
$i
= 0;
$i
< sizeof(
$get_check_list
);
$i
++) {
15.
16.
print(
"<tr style=\"text-align:center;\">"
);
17.
print(
"<td style=\"width:12%;\">"
. (
$i
+ 1) .
"."
.
$get_check_list
[
$i
][
'checklist_name'
] .
"</td>"
);
18.
$get
= getlist(
"SELECT * FROM mac_statuscheck "
);
19.
for
(
$k
= 0;
$k
< sizeof(
$get
);
$k
++) {
20.
print(
"<td style=\"width:15%;\">"
);
21.
print(
"<input type=\"radio\" id='$i-$k' name=\"status_check["
.
$get_check_list
[
$i
][
'checklist_id'
] .
"]\" value=\""
.
$get
[
$k
][
'id_status'
] .
"\" >"
);
22.
print(
"<label for=\"$i-$k\" style='cursor:pointer;margin-bottom:0px;'> "
.
$get
[
$k
][
'status_name'
] .
"</label>"
);
23.
print(
"<br>"
);
24.
print(
"</td>"
);
25.
}
26.
print(
"<td style=\"width:12%;\">"
);
27.
print(
"<input style=\"width:100%;\" type=\"text\" name=\"comment["
.
$get_check_list
[
$i
][
'checklist_id'
] .
"]\" value=\"\" >"
);
28.
print(
"</td>"
);
29.
print(
"<td style=\"width:12%;\">"
);
30.
print(
"<input style=\"width:100%;\" type=\"file\" value=\"\" name=\"picture["
.
$get_check_list
[
$i
][
'checklist_id'
] .
"]\" id=\"picture\" accept=\".jpg,.png\" multiple >"
);
31.
print(
"</td>"
);
32.
print(
"<td style=\"width:12%;\">"
);
33.
print(
"<a onclick=\"window.open('machine_check.php?id="
.
$get_check_list
[
$i
]['checklist_id
'] . "'
,
''
,
'menuber=no,toorlbar=no,location=no,scrollbars=no, status=no,resizable=no,width=800,height=500,top=60,left=500'
)\"
class
=\"btn btn-warning\" >สถานะ</i></a>");
34.
print(
"</td>"
);
35.
print(
"</tr>"
);
36.
}
37.
print(
"<tr>"
);
38.
print(
"<td colspan=\"9\" style=\"text-align:center;\">"
);
39.
print(
"<input type='submit' name='submit_check' value='บันทึก' style='width:40%;height:20%;' class='myButton'"
);
40.
print(
"</td>"
);
41.
print(
"</tr>"
);
42.
print(
"</table>"
);
43.
print(
"</form>"
);