01.
<?php
$status
=
$objResult4
[
'status'
];
02.
if
(
$status
==
"ต้องการวัตถุดิบ"
){
03.
04.
echo
'<span style="color: red;">'
.
$status
.
'</span>'
;
05.
06.
}
else
if
(
$status
==
"ได้รับของแล้ว"
){
07.
08.
echo
'<span style="color: green;">'
.
$status
.
'</span>'
;
09.
10.
}
else
if
(
$status
==
"พักวัตถุดิบ"
){
11.
12.
echo
'<span style="color: blue;">'
.
$status
.
'</span>'
;
13.
14.
}
else
if
(
$status
==
"รับของแต่ยังไม่ครบ"
){
15.
16.
echo
'<span style="color: Purple;">'
.
$status
.
'</span>'
;
17.
}
18.
19.
20.
?>