002.
<?
003.
$id_type_select
=
$_GET
[Type_ID];
004.
?>
006.
<head>
007.
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
008.
<title>::OilShop_E-commerch::</title>
009.
<link rel=
"stylesheet"
type=
"text/css"
href=
"sidebar.css"
>
010.
<style type=
"text/css"
>
011.
<!--
012.
#header {
013.
position:absolute;
014.
left:-3px;
015.
top:0px;
016.
width:1024px;
017.
height:500px;
018.
z-index:1;
019.
}
020.
#apDiv3 {
021.
position:fixed;
022.
left:0px;
023.
top:545px;
024.
width:1024px;
025.
height:45px;
026.
z-index:2;
027.
}
028.
#apDiv9 { position:absolute;
029.
left:216px;
030.
top:566px;
031.
width:459px;
032.
height:237px;
033.
z-index:1;
034.
}
035.
#apDiv2 { position:absolute;
036.
left:216px;
037.
top:566px;
038.
width:459px;
039.
height:237px;
040.
z-index:1;
041.
}
042.
#apDiv11 { position:absolute;
043.
left:216px;
044.
top:566px;
045.
width:459px;
046.
height:237px;
047.
z-index:1;
048.
}
049.
#apDiv15 {position:absolute;
050.
left:216px;
051.
top:566px;
052.
width:459px;
053.
height:237px;
054.
z-index:1;
055.
}
056.
#apDiv16 { position:absolute;
057.
left:216px;
058.
top:566px;
059.
width:459px;
060.
height:237px;
061.
z-index:1;
062.
}
063.
#apDiv18 {position:absolute;
064.
left:216px;
065.
top:566px;
066.
width:459px;
067.
height:237px;
068.
z-index:1;
069.
}
070.
#apDiv19 { position:absolute;
071.
left:216px;
072.
top:566px;
073.
width:459px;
074.
height:237px;
075.
z-index:1;
076.
}
077.
#apDiv20 {position:absolute;
078.
left:216px;
079.
top:566px;
080.
width:459px;
081.
height:237px;
082.
z-index:1;
083.
}
084.
#apDiv21 { position:absolute;
085.
left:216px;
086.
top:566px;
087.
width:459px;
088.
height:237px;
089.
z-index:1;
090.
}
091.
#apDiv22 {position:absolute;
092.
left:216px;
093.
top:566px;
094.
width:459px;
095.
height:237px;
096.
z-index:1;
097.
}
098.
#apDiv23 { position:absolute;
099.
left:216px;
100.
top:566px;
101.
width:459px;
102.
height:237px;
103.
z-index:1;
104.
}
105.
#apDiv24 {position:absolute;
106.
left:216px;
107.
top:566px;
108.
width:459px;
109.
height:237px;
110.
z-index:1;
111.
}
112.
#apDiv25 { position:absolute;
113.
left:216px;
114.
top:566px;
115.
width:459px;
116.
height:237px;
117.
z-index:1;
118.
}
119.
#apDiv26 {position:absolute;
120.
left:216px;
121.
top:566px;
122.
width:459px;
123.
height:237px;
124.
z-index:1;
125.
}
126.
#apDiv27 { position:absolute;
127.
left:216px;
128.
top:566px;
129.
width:459px;
130.
height:237px;
131.
z-index:1;
132.
}
133.
#apDiv28 {position:absolute;
134.
left:216px;
135.
top:566px;
136.
width:459px;
137.
height:237px;
138.
z-index:1;
139.
}
140.
#apDiv29 { position:absolute;
141.
left:216px;
142.
top:566px;
143.
width:459px;
144.
height:237px;
145.
z-index:1;
146.
}
147.
#apDiv30 {position:absolute;
148.
left:216px;
149.
top:566px;
150.
width:459px;
151.
height:237px;
152.
z-index:1;
153.
}
154.
#apDiv7 { position:absolute;
155.
left:216px;
156.
top:566px;
157.
width:459px;
158.
height:237px;
159.
z-index:1;
160.
}
161.
#apDiv31 {
162.
position:absolute;
163.
left:-2px;
164.
top:297px;
165.
width:1024px;
166.
height:45px;
167.
z-index:3;
168.
}
169.
#apDiv32 {
170.
position:absolute;
171.
left:258px;
172.
top:575px;
173.
width:822px;
174.
height:572px;
175.
z-index:4;
176.
}
177.
#apDiv4 {
178.
position:absolute;
179.
left:-1px;
180.
top:592px;
181.
width:1041px;
182.
height:1710px;
183.
z-index:4;
184.
}
185.
-->
186.
</style>
187.
</head>
188.
189.
<body>
190.
<div id=
"header"
>
191.
<?php
include
(
'header.php'
); ?>
192.
</div>
193.
<div id=
"apDiv31"
>
194.
<?php
include
(
'menu.php'
); ?>
195.
</div>
196.
<div id=
"apDiv4"
>
197.
<div id=
"sidebar"
>
198.
<?php
include
(
'sidebar.php'
); ?>
199.
200.
<table width=
"772"
height=
"330"
border =
"0"
align=
"center"
>
201.
<tr>
202.
<td width=
"300"
valign=
"400"
>
203.
204.
<td width=
"1060"
height=
"200"
valign=
"top"
><div align=
"center"
>
205.
<table width=
"65%"
border=
"0"
cellspacing=
"4"
>
206.
<?
207.
$sql
=
"Select * from product where ref_id_type ='$id_type_select' "
;
208.
$result
= mysql_db_query(
$dbname
,
$sql
);
209.
while
(
$rs
=mysql_fetch_array(
$result
))
210.
{
211.
$id_prd
=
$rs
[id_prd];
212.
$code
=sprintf(
"%05d"
,
$id_prd
);
213.
$name_prd
=
$rs
[name_prd];
214.
$detail_prd
=
$rs
[detail_prd];
215.
$ref_id_type
=
$rs
[ref_id_type];
216.
$price_prd
=
$rs
[price_prd];
217.
$photo_prd
=
$rs
[photo_prd];
218.
219.
if
(
$photo_prd
==
""
)
220.
{
221.
$photo_prd
=
"temp.jpg"
;
222.
}
223.
echo
"<tr>
224.
<TD WIDTH =
'20%'
VALIGN=
'top'
>
225.
<img src =
'photo/$photo_prd'
>
226.
</TD>
227.
<TD WIDTH =
'65%'
VALIGN =
'top'
>
228.
<B> รหัสสินค้า : </B>
$code
<BR>
229.
<B>ชื่อสินค้า : </B>
$name_prd
<BR>
230.
<B>ราคา : </B>
$price_prd
บาท <br><br>
231.
232.
233.
[ <a href =
'prd_view_cust.php?id_prd=$id_prd'
>แสดงรายละเอียด </a>]
234.
235.
</td>
236.
</tr>";
237.
}
238.
?>
239.
</table>
240.
<p> </p>
241.
<p> </p></td>
242.
</tr>
243.
</table>
244.
</div>
245.
<h2> </h2>
246.
</body>
247.
</html>