001.
<td valign=
"top"
class
=
"style1"
>ประเภทอาหาร :</td>
002.
<td><div id=
"Accordion1"
class
=
"Accordion"
tabindex=
"0"
>
003.
<div
class
=
"AccordionPanel"
>
004.
<div
class
=
"AccordionPanelTab"
><span
class
=
"style2"
> อาหารจานเดียว</span></div>
005.
<div
class
=
"AccordionPanelContent"
>
006.
<table width=
"398"
border=
"0"
>
007.
<tr>
008.
<td width=
"28"
> </td>
009.
<td width=
"158"
class
=
"style2"
>รายการอาหาร</td>
010.
<td width=
"60"
class
=
"style1"
>ราคา</td>
011.
<td width=
"50"
class
=
"style1"
> </td>
012.
<td width=
"80"
align=
"center"
class
=
"style2"
>จำนวน</td>
013.
</tr>
014.
<?php
015.
$sql
=
"select * from tbl_food where id_type = '00001' order by price_food "
;
016.
$result
= mysql_query(
$sql
)
or
die
(mysql_error());
017.
$num
= mysql_num_rows(
$result
);
018.
if
(
$num
> 0){
019.
while
(
$data
= mysql_fetch_array(
$result
)){
020.
?>
021.
<tr>
022.
<td> </td>
023.
<td
class
=
"style2"
><input type=
"checkbox"
name=
"in_food[]"
id=
"in_food[]"
value=
"<?=$data["
id_food
"]?>"
/>
024.
<label
for
=
"in_food[]"
><?=
$data
[
"name_food"
]?></label></td>
025.
<td
class
=
"style1"
align=
"right"
><?=
$data
[
"price_food"
]?></td>
026.
<td
class
=
"style2"
> บาท</td>
027.
<td align=
"center"
class
=
"style2"
><label
for
=
"in_qty"
></label>
028.
<select name=
"in_qty"
id=
"in_qty"
>
029.
<option value=
"1"
>1</option>
030.
<option value=
"2"
>2</option>
031.
<option value=
"3"
>3</option>
032.
<option value=
"4"
>4</option>
033.
<option value=
"5"
>5</option>
034.
</select></td>
035.
</tr>
036.
<?
037.
}
038.
}
039.
?>
040.
</table>
041.
</div>
042.
</div>
043.
<div
class
=
"AccordionPanel"
>
044.
<div
class
=
"AccordionPanelTab"
><span
class
=
"style2"
> อาหารเป็นอย่าง</span></div>
045.
<div
class
=
"AccordionPanelContent"
>
046.
<table width=
"398"
border=
"0"
>
047.
<tr>
048.
<td width=
"28"
> </td>
049.
<td width=
"158"
class
=
"style2"
>รายการอาหาร</td>
050.
<td width=
"60"
class
=
"style1"
>ราคา</td>
051.
<td width=
"50"
class
=
"style1"
> </td>
052.
<td width=
"80"
align=
"center"
class
=
"style2"
>จำนวน</td>
053.
</tr>
054.
<?php
055.
$sql
=
"select * from tbl_food where id_type = '00002' order by price_food "
;
056.
$result
= mysql_query(
$sql
)
or
die
(mysql_error());
057.
$num
= mysql_num_rows(
$result
);
058.
if
(
$num
> 0){
059.
while
(
$data
= mysql_fetch_array(
$result
)){
060.
?>
061.
<tr>
062.
<td> </td>
063.
<td
class
=
"style2"
><input type=
"checkbox"
name=
"in_food[]"
id=
"in_food[]"
value=
"<?=$data["
id_food
"]?>"
/>
064.
<label
for
=
"in_food[]"
><?=
$data
[
"name_food"
]?></label></td>
065.
<td
class
=
"style1"
align=
"right"
><?=
$data
[
"price_food"
]?></td>
066.
<td
class
=
"style2"
> บาท</td>
067.
<td align=
"center"
class
=
"style2"
><label
for
=
"in_qty"
></label>
068.
<select name=
"in_qty"
id=
"in_qty"
>
069.
<option value=
"1"
>1</option>
070.
<option value=
"2"
>2</option>
071.
<option value=
"3"
>3</option>
072.
<option value=
"4"
>4</option>
073.
<option value=
"5"
>5</option>
074.
</select></td>
075.
</tr>
076.
<?
077.
}
078.
}
079.
?>
080.
</table>
081.
</div>
082.
</div>
083.
<div
class
=
"AccordionPanel"
>
084.
<div
class
=
"AccordionPanelTab"
><span
class
=
"style2"
> ของหวาน</span></div>
085.
<div
class
=
"AccordionPanelContent"
>
086.
<table width=
"398"
border=
"0"
>
087.
<tr>
088.
<td width=
"28"
> </td>
089.
<td width=
"158"
class
=
"style2"
>รายการอาหาร</td>
090.
<td width=
"60"
class
=
"style1"
>ราคา</td>
091.
<td width=
"50"
class
=
"style1"
> </td>
092.
<td width=
"80"
align=
"center"
class
=
"style2"
>จำนวน</td>
093.
</tr>
094.
<?php
095.
$sql
=
"select * from tbl_food where id_type = '00003' order by price_food "
;
096.
$result
= mysql_query(
$sql
)
or
die
(mysql_error());
097.
$num
= mysql_num_rows(
$result
);
098.
if
(
$num
> 0){
099.
while
(
$data
= mysql_fetch_array(
$result
)){
100.
?>
101.
<tr>
102.
<td> </td>
103.
<td
class
=
"style2"
><input type=
"checkbox"
name=
"in_food[]"
id=
"in_food[]"
value=
"<?=$data["
id_food
"]?>"
/>
104.
<label
for
=
"in_food[]"
><?=
$data
[
"name_food"
]?></label></td>
105.
<td
class
=
"style1"
align=
"right"
><?=
$data
[
"price_food"
]?></td>
106.
<td
class
=
"style2"
> บาท</td>
107.
<td align=
"center"
class
=
"style2"
><label
for
=
"in_qty"
></label>
108.
<select name=
"in_qty"
id=
"in_qty"
>
109.
<option value=
"1"
>1</option>
110.
<option value=
"2"
>2</option>
111.
<option value=
"3"
>3</option>
112.
<option value=
"4"
>4</option>
113.
<option value=
"5"
>5</option>
114.
</select></td>
115.
</tr>
116.
<?
117.
}
118.
}
119.
?>
120.
</table>
121.
</div>
122.
</div>
123.
<div
class
=
"AccordionPanel"
>
124.
<div
class
=
"AccordionPanelTab"
><span
class
=
"style2"
> เครื่องดื่ม</span></div>
125.
<div
class
=
"AccordionPanelContent"
>
126.
<table width=
"398"
border=
"0"
>
127.
<tr>
128.
<td width=
"28"
> </td>
129.
<td width=
"158"
class
=
"style2"
>รายการอาหาร</td>
130.
<td width=
"60"
class
=
"style1"
>ราคา</td>
131.
<td width=
"50"
class
=
"style1"
> </td>
132.
<td width=
"80"
align=
"center"
class
=
"style2"
>จำนวน</td>
133.
</tr>
134.
<?php
135.
$sql
=
"select * from tbl_food where id_type = '00004' order by price_food "
;
136.
$result
= mysql_query(
$sql
)
or
die
(mysql_error());
137.
$num
= mysql_num_rows(
$result
);
138.
if
(
$num
> 0){
139.
while
(
$data
= mysql_fetch_array(
$result
)){
140.
?>
141.
<tr>
142.
<td> </td>
143.
<td
class
=
"style2"
><input type=
"checkbox"
name=
"in_food[]"
id=
"in_food[]"
value=
"<?=$data["
id_food
"]?>"
/>
144.
<label
for
=
"in_food[]"
><?=
$data
[
"name_food"
]?></label></td>
145.
<td
class
=
"style1"
align=
"right"
><?=
$data
[
"price_food"
]?></td>
146.
<td
class
=
"style2"
> บาท</td>
147.
<td align=
"center"
class
=
"style2"
><label
for
=
"in_qty"
></label>
148.
<select name=
"in_qty"
id=
"in_qty"
>
149.
<option value=
"1"
>1</option>
150.
<option value=
"2"
>2</option>
151.
<option value=
"3"
>3</option>
152.
<option value=
"4"
>4</option>
153.
<option value=
"5"
>5</option>
154.
</select></td>
155.
</tr>
156.
<?
157.
}
158.
}
159.
?>
160.
</table>
161.
</div>
162.
</div>
163.
</div></td>
164.
<td> </td>
165.
</tr>
166.
<tr>
167.
<td> </td>
168.
<td valign=
"top"
class
=
"style1"
> </td>
169.
<td> </td>
170.
<td align=
"center"
><input type=
"submit"
name=
"button"
id=
"button"
value=
"เลือกรายการ"
/></td>
171.
</tr>
172.
</table>
173.
<br />
174.
<table width=
"400"
border=
"1"
align=
"center"
>
175.
<tr>
176.
177.
<td colspan=
"4"
class
=
"style1"
>โต๊ะที่ :</td>
178.
<td width=
"79"
> </td>
179.
</tr>
180.
<tr>
181.
<td width=
"23"
class
=
"style2"
> </td>
182.
<td width=
"144"
class
=
"style2"
>รายการอาหาร</td>
183.
<td width=
"51"
class
=
"style1"
>ราคา</td>
184.
<td width=
"69"
class
=
"style1"
> </td>
185.
<td align=
"center"
class
=
"style2"
>จำนวน</td>
186.
</tr>
187.
<tr>
188.
<td
class
=
"style2"
> </td>
189.
<td
class
=
"style2"
> </td>
190.
<td
class
=
"style2"
> </td>
191.
<td align=
"left"
class
=
"style2"
> บาท</td>
192.
<td align=
"center"
class
=
"style2"
> </td>
193.
</tr>
194.
</table>