003.
<head>
004.
<link rel=
"stylesheet"
type=
"text/css"
href=
"../../css/style.css"
>
005.
<link rel=
"stylesheet"
type=
"text/css"
href=
"../../css/css.css"
/>
006.
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=windows-874"
/>
007.
<title>Board</title>
008.
<script type=
"text/javascript"
src=
"../../ckeditor/ckeditor.js"
></script><!-- ckeditor -->
009.
<style type=
"text/css"
>
010.
<!--
011.
body {
012.
margin-left: 0px;
013.
margin-top: 0px;
014.
margin-right: 0px;
015.
margin-bottom: 0px;
016.
}
017.
-->
018.
</style>
019.
</head>
020.
<body>
021.
<table width=
"950"
height=
"30"
border=
"0"
class
=
"bglin2"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
>
022.
<tr>
023.
<th scope=
"col"
><img src=
"../../Them/002-158.jpg"
width=
"2555"
height=
"157"
/></th>
024.
</tr>
025.
<tr>
026.
<th scope=
"col"
> </th>
027.
</tr>
028.
</table>
029.
<?
030.
require
(
"../../config/config.inc.php"
);
031.
$id
=
$_GET
[
"id"
];
032.
$sql
=
"select * from board_post where id='$id'"
;
033.
$result
=mysql_query(
$sql
,
$dbcon
)
or
die
(mysql_error());
034.
$array
=mysql_fetch_array(
$result
);
035.
?>
036.
<table width=
"950"
height=
"103"
border=
"1"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
bgcolor=
"#FFFFFF"
bordercolor=
"#F2F2F2"
>
037.
<tr>
038.
<td height=
"81"
align=
"center"
valign=
"top"
scope=
"col"
><table width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
039.
<tr>
040.
<th width=
"162"
scope=
"col"
align=
"center"
>หัวข้อ</th>
041.
<th width=
"784"
scope=
"col"
align=
"left"
class
=
"style12"
><?=
$array
[
"title"
]?></th>
042.
</tr>
043.
</table>
044.
<table width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
045.
<tr>
046.
<th scope=
"col"
> </th>
047.
</tr>
048.
</table>
049.
<table width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
050.
<tr>
051.
<td width=
"130"
valign=
"top"
scope=
"col"
align=
"center"
><table width=
"100%"
border=
"0"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
>
052.
<tr>
053.
<th scope=
"col"
><img src=
"../../Them/cylane.gif"
width=
"47"
height=
"48"
/></th>
054.
</tr>
055.
</table>
056.
<table width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
057.
<tr>
058.
<td scope=
"col"
class
=
"style10"
>กระทู้ถาม</td>
059.
</tr>
060.
</table></td>
061.
<td width=
"620"
valign=
"top"
scope=
"col"
align=
"left"
class
=
"style1"
><?=
$array
[
"text"
]?></td>
062.
</tr>
063.
</table>
064.
<table width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
065.
<tr>
066.
<th scope=
"col"
> </th>
067.
</tr>
068.
</table>
069.
<table width=
"100%"
height=
"20"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
bgcolor=
"#F2F2F2"
>
070.
<tr>
071.
<th width=
"79"
scope=
"col"
align=
"right"
class
=
"style14"
>
Date
: </th>
072.
<td width=
"234"
scope=
"col"
align=
"left"
class
=
"style14"
><?=
$array
[
"date"
]?></td>
073.
<th width=
"134"
scope=
"col"
align=
"right"
class
=
"style14"
>Time : </th>
074.
<td width=
"192"
scope=
"col"
align=
"left"
class
=
"style14"
><?=
$array
[
"time"
]?></td>
075.
<th width=
"110"
scope=
"col"
align=
"right"
class
=
"style14"
>Post By : </th>
076.
<td width=
"197"
scope=
"col"
align=
"left"
class
=
"style14"
><?=
$array
[
"name"
]?></td>
077.
</tr>
078.
</table>
079.
</td>
080.
</tr>
081.
</table><br />
082.
<?
083.
$sql
=
"select * from board_reply where no='$id' order by id "
;
084.
$result
=mysql_query(
$sql
,
$dbcon
)
or
die
(mysql_error());
085.
while
(
$array
=mysql_fetch_array(
$result
)){
086.
?>
087.
<table width=
"950"
height=
"103"
border=
"1"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
bgcolor=
"#FFFFFF"
bordercolor=
"#F2F2F2"
>
088.
<tr>
089.
<td height=
"81"
align=
"center"
valign=
"top"
scope=
"col"
><table width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
090.
<tr>
091.
<th width=
"162"
scope=
"col"
align=
"center"
>อ้างอิงหัวข้อ</th>
092.
<th width=
"784"
scope=
"col"
align=
"left"
class
=
"style16"
><?=
$array
[
"title"
]?></th>
093.
</tr>
094.
</table>
095.
<table width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
096.
<tr>
097.
<th scope=
"col"
> </th>
098.
</tr>
099.
</table>
100.
<table width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
101.
<tr>
102.
<td width=
"130"
valign=
"top"
scope=
"col"
align=
"center"
><table width=
"100%"
border=
"0"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
>
103.
<tr>
104.
<th scope=
"col"
><img src=
"../../Them/cylane.gif"
width=
"47"
height=
"48"
/></th>
105.
</tr>
106.
</table>
107.
<table width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
108.
<tr>
109.
<td scope=
"col"
align=
"center"
class
=
"style10"
>กระทู้ตอบ</td>
110.
</tr>
111.
</table></td>
112.
<td width=
"620"
valign=
"top"
scope=
"col"
align=
"left"
class
=
"style1"
><?=
$array
[
"text"
]?></td>
113.
</tr>
114.
</table>
115.
<table width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
116.
<tr>
117.
<th scope=
"col"
> </th>
118.
</tr>
119.
</table>
120.
<table width=
"100%"
height=
"20"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
bgcolor=
"#F2F2F2"
>
121.
<tr>
122.
<th width=
"79"
scope=
"col"
align=
"right"
class
=
"style14"
>
Date
: </th>
123.
<td width=
"234"
scope=
"col"
align=
"left"
class
=
"style14"
><?=
$array
[
"date"
]?></td>
124.
<th width=
"134"
scope=
"col"
align=
"right"
class
=
"style14"
>Time : </th>
125.
<td width=
"192"
scope=
"col"
align=
"left"
class
=
"style14"
><?=
$array
[
"time"
]?></td>
126.
<th width=
"110"
scope=
"col"
align=
"right"
class
=
"style14"
>Reply By : </th>
127.
<td width=
"197"
scope=
"col"
align=
"left"
class
=
"style14"
><?=
$array
[
"name"
]?></td>
128.
</tr>
129.
</table>
130.
</td>
131.
</tr>
132.
</table><br />
133.
<? } ?>
134.
<table width=
"950"
border=
"0"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
>
135.
<tr>
136.
<th width=
"884"
scope=
"col"
> </th>
137.
<th width=
"66"
scope=
"col"
><a href=
"#"
><img src=
"../../Them/back3.png"
border=
"0"
title=
"Exit"
onclick=
"history.back();"
/></a></th>
138.
</tr>
139.
</table><br /><br />
140.
<table width=
"950"
border=
"0"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
>
141.
<tr>
142.
<th width=
"365"
scope=
"col"
class
=
"style12"
>แสดงความคิดเห็นผ่านแบบฟอร์มข้างล่างนี้</th>
143.
</tr>
144.
</table>
145.
<?
146.
require
(
"../../config/config.inc.php"
);
147.
$id
=
$_GET
[
"id"
];
148.
$sql
=
"select * from board_post where id='$id'"
;
149.
$result
=mysql_query(
$sql
,
$dbcon
)
or
die
(mysql_error());
150.
$array
=mysql_fetch_array(
$result
);
151.
include
(
"function.php"
);
152.
include
(
"../../function/function_date.php"
);
153.
?>
154.
<form id=
"form1"
name=
"form1"
method=
"post"
action=
"reply/reply_.php"
>
155.
<table width=
"950"
border=
"0"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
bgcolor=
"#D3D3D3"
>
156.
<tr>
157.
<td width=
"15%"
height=
"25"
scope=
"col"
align=
"right"
class
=
"style14"
> </td>
158.
<td width=
"85%"
height=
"25"
scope=
"col"
><input name=
"title"
type=
"hidden"
value=
"<?=$array["
title
"]?>"
/><input name=
"id"
type=
"hidden"
value=
"<?=$array["
id
"]?>"
/></td>
159.
</tr>
160.
<tr>
161.
<td width=
"15%"
height=
"25"
scope=
"col"
align=
"right"
class
=
"style14"
><span
class
=
"style11"
>*</span> จากคุณ : </td>
162.
<td width=
"85%"
height=
"25"
scope=
"col"
><input name=
"name"
type=
"text"
size=
"40"
maxlength=
"100"
title=
"กรอกชื่อคุณ"
/>
163.
<input name=
"date"
type=
"hidden"
value=
"<? echo thai_date($eng_date);?>"
size=
"20"
/></td>
164.
</tr>
165.
<tr>
166.
<td width=
"15%"
height=
"25"
scope=
"col"
align=
"right"
class
=
"style14"
><span
class
=
"style11"
>*</span> Email : </td>
167.
<td width=
"85%"
height=
"25"
scope=
"col"
>
168.
<input name=
"email"
type=
"text"
size=
"40"
maxlength=
"50"
title=
"ที่อยู่อีเมล์เพื่อติดต่อกลับ เช่น your@hotmail.com"
/> <span
class
=
"style11"
>ข้อมูลนี้จะไม่ถูกเผยแพร่</span>
169.
<input name=
"time"
type=
"hidden"
value=
"<? echo thai_time($eng_time);?>"
size=
"20"
/></td>
170.
</tr>
171.
<tr>
172.
<td width=
"15%"
height=
"25"
scope=
"col"
align=
"right"
class
=
"style14"
><span
class
=
"style11"
>*</span> เบอร์ติดต่อกลับ : </td>
173.
<td width=
"85%"
height=
"25"
scope=
"col"
><input name=
"phone"
type=
"text"
size=
"40"
maxlength=
"15"
title=
"เบอร์โทรศัทพ์ของคุณ เช่น 0811234567"
/> <span
class
=
"style11"
>ข้อมูลนี้จะไม่ถูกเผยแพร่</span></td>
174.
</tr>
175.
<tr>
176.
<td width=
"15%"
height=
"25"
align=
"right"
valign=
"top"
class
=
"style14"
scope=
"col"
>ข้อความ : </td>
177.
<td width=
"85%"
height=
"25"
scope=
"col"
><textarea name=
"text"
class
=
"ckeditor"
cols=
"80"
rows=
"10"
title=
"กรอกข้อมูลเพื่อสอบถาม"
></textarea></td>
178.
</tr>
179.
<tr>
180.
<td width=
"15%"
height=
"40"
scope=
"col"
align=
"right"
class
=
"style14"
> </td>
181.
<td width=
"85%"
height=
"40"
scope=
"col"
><img src=
"pic_text.php?str=<?=$ran_str?>"
></td>
182.
</tr>
183.
<tr>
184.
<td width=
"15%"
height=
"25"
scope=
"col"
align=
"right"
class
=
"style14"
>รหัสภาพ : </td>
185.
<td width=
"85%"
height=
"25"
scope=
"col"
><input name=
"code_input"
type=
"text"
class
=
"style10"
size=
"15"
maxlength=
"6"
title=
"กรุณาใส่รหัสภาพให้ถูกต้องด้วยค่ะ"
/><span
class
=
"style11"
> *กรุณากรอกรหัสให้ตรงกับภาพด้านบน</span><input type=
"hidden"
name=
"code_hidden"
value=
"<?=$ran_str?>"
></td>
186.
</tr>
187.
<tr>
188.
<td width=
"15%"
height=
"25"
scope=
"col"
align=
"right"
class
=
"style14"
> </td>
189.
<td width=
"85%"
height=
"25"
scope=
"col"
> </td>
190.
</tr>
191.
<tr>
192.
<td height=
"25"
colspan=
"2"
align=
"center"
class
=
"style14"
scope=
"col"
><a href=
"#"
onclick=
"history.back();"
><img src=
"../../Them/back2.gif"
border=
"0"
/></a>
193.
<input name=
"submit"
type=
"image"
src=
"../../Them/send2.gif"
border=
"0"
/></td>
194.
</tr>
195.
<tr>
196.
<td height=
"25"
scope=
"col"
align=
"right"
class
=
"style14"
> </td>
197.
<td height=
"25"
scope=
"col"
> </td>
198.
</tr>
199.
<tr>
200.
<td width=
"15%"
height=
"25"
scope=
"col"
align=
"right"
class
=
"style14"
> </td>
201.
<td width=
"85%"
height=
"25"
scope=
"col"
> </td>
202.
</tr>
203.
</table>
204.
</form>
205.
</body>
206.
</html>