01.
<?php
02.
session_start();
03.
ob_start();
04.
05.
include_once
"connect099.inc.php"
;
06.
$rid
=
$_REQUEST
[
'id'
];
07.
08.
$sql
=
"SELECT * FROM historygen WHERE history_id like '$rid'"
;
09.
mysql_query(
'SET NAMES utf8'
);
10.
$qsql
=mysql_query(
$sql
);
11.
12.
$row
=mysql_fetch_array(
$qsql
);
13.
?>
14.
15.
<body bgcolor=
"#FFFF00"
>
16.
17.
<form action=
"edited_history.php"
method=
"post"
>
18.
<table width=
"714"
height=
"467"
border=
"1"
>
19.
20.
<tr>
21.
<td width=
"183"
>ชื่อยุคสมัย</td>
22.
<td width=
"515"
><input name=
"name"
type=
"text"
id=
"name"
value=
"<?php echo $row["
history_name
"]; ?>"
/></td>
23.
</tr>
24.
25.
<tr>
26.
<td height=
"91"
>เนื้อหาประวัติศาสตร์</td>
27.
<td>
28.
<textarea name=
"detail"
id=
"detail"
cols=
"45"
rows=
"5"
><?php
echo
$row
[
"history_detail"
];
29.
?></textarea>
30.
</td>
31.
</tr>
32.
<tr>
33.
<td valign=
"top"
>รูปภาพ</td>
34.
<td><label
for
=
"picture"
></label>
35.
<img src=
"picture/<?=$row["
history_picture
"];?>"
><br>
36.
37.
Picture : <input type=
"file"
name=
"filUpload"
><br>
38.
<input type=
"hidden"
name=
"hdnOldFile"
value=
"<?=$row["
history_picture
"];?>"
></td></tr>
39.
</td>
40.
</tr>
41.
<tr>
42.
<td>คลิปวีดีโอ</td>
43.
<td><label
for
=
"video"
></label> <video src=
"clip/<?=$row["
history_clip
"];?>"
><br>
44.
45.
Clip : <input type=
"file"
name=
"filUpload"
><br>
46.
<input type=
"hidden"
name=
"hdnOldFile"
value=
"<?=$row["
history_clip
"];?>"
>
47.
48.
</td>
49.
</tr>
50.
<tr>
51.
<td>ไฟล์เอกสารความรู้</td>
52.
<td><label
for
=
"doc"
></label> <video src=
"clip/<?=$row["
history_doc
"];?>"
><br>
53.
54.
Clip : <input type=
"file"
name=
"filUpload"
><br>
55.
<input type=
"hidden"
name=
"hdnOldFile"
value=
"<?=$row["
history_doc
"];?>"
>
56.
57.
</td>
58.
</tr>
59.
<input name=
"id"
type=
"hidden"
id=
"id"
value=
"<?php echo $row["
history_id
"]; ?>"
/>
60.
<tr>
61.
<td colspan=
"2"
align=
"center"
>
62.
<input name=
"submit"
type=
"submit"
id=
"submit"
value=
"Submit"
/>
63.
<input name=
"reset"
type=
"reset"
id=
"reset"
value=
"Reset"
/>
64.
</td>
65.
</tr>
66.
</table>
67.
</body>
68.
</html>
69.
70.
<html>
71.
<head>
72.
<title></title>
73.
</head>
74.
<body>