01.
<form id=
"form1"
name=
"form1"
method=
"post"
action=
""
>
02.
03.
<?php
04.
foreach
(
$results
as
$result
) {?>
05.
06.
<td><?php
echo
$result
[
'id'
]?></td>
07.
<td>Staff</td>
08.
<?php
if
(
$result
[
'menu_booking'
] == 1) { ?>
09.
<td><input type=
"checkbox"
name=
"menu_booking"
checked=
"checked"
value=
"1"
/></td>
10.
<?php }
else
{ ?>
11.
<td><input type=
"checkbox"
name=
"menu_booking"
value=
"0"
/></td>
12.
<?php }?>
13.
14.
<?php
if
(
$result
[
'menu_changepayment_status'
] == 1) { ?>
15.
<td><input type=
"checkbox"
name=
"menu_changepayment_status"
checked=
"checked"
value=
"1"
/></td>
16.
<?php }
else
{ ?>
17.
<td><input type=
"checkbox"
name=
"menu_changepayment_status"
value=
"0"
/></td>
18.
<?php }?>
19.
20.
<?php
if
(
$result
[
'menu_report'
] == 1) { ?>
21.
<td><input type=
"checkbox"
name=
"menu_report"
checked=
"checked"
value=
"1"
/></td>
22.
<?php }
else
{ ?>
23.
<td><input type=
"checkbox"
name=
"menu_report"
value=
"0"
/></td>
24.
<?php }
25.
echo
"<th>"
?><center> <button type=
"submit"
class
=
"btn btn-success"
>บันทึก</button> </center> <?php
"</th>"
;
26.
}
27.
?>
28.
</form>