01.
<head>
02.
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=windows-874"
/>
03.
<title>เพิ่มคลิป</title>
04.
<?
05.
06.
mysql_connect(
"localhost"
,
"root"
,
"root"
)
or
die
(mysql_error());
07.
mysql_select_db(
"cbdb"
);
08.
?>
09.
</head>
10.
11.
<body>
12.
<form name=
"form1"
method=
"post"
action=
"add_save.php"
enctype=
"multipart/form-data"
>
13.
<table width=
"40%"
height=
"308"
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
>
14.
<tr>
15.
<td width=
"27%"
>เลือกประเภท</td>
16.
<td colspan=
"2"
> <select name=
"typeclip"
>
17.
<option value=
"none"
><----เลือกประเภท----></option>
18.
<option value=
"funny"
>ตลก</option>
19.
<option value=
"sport"
>กีฬา</option>
20.
<option value=
"horr"
>สยอง</option>
21.
<option value=
"master"
>สื่อการสอน</option>
22.
<option value=
"tech"
>เทคโนโลยี</option>
23.
<option value=
"news"
>ข่าว</option>
24.
</select></td>
25.
</tr>
26.
<tr>
27.
<td>ชื่อคลิป</td>
28.
<td colspan=
"2"
><input type=
"text"
name=
"txtname"
></td>
29.
</tr>
30.
<tr>
31.
<td>สถาณะ</td>
32.
<td colspan=
"2"
><select name=
"type_status"
>
33.
<option value=
"none"
><----ว่าง-----></option>
34.
<option value=
"woow.gif"
>ว้าวว</option>
35.
<option value=
"sudsud.gif"
>สุดๆ</option>
36.
<option value=
"ao.gif"
>โอ้</option>
37.
</select>
38.
</td>
39.
</tr>
40.
<tr>
41.
<td height=
"44"
>คลิป</td>
42.
<td colspan=
"2"
><textarea name=
"txtdetail"
cols=
"40"
rows=
"5"
id=
"detail"
></textarea></td>
43.
</tr>
44.
<tr>
45.
<td height=
"22"
rowspan=
"2"
>รูปภาพ </td>
46.
<td width=
"60%"
height=
"11"
><input name=
"rdo1"
type=
"radio"
value=
"Y"
checked onClick=
"javaScript:if(this.checked){document.form1.fileUpload.disabled=false;}"
>
47.
มีรูป
48.
<input name=
"rdo1"
type=
"radio"
value=
"N"
onClick=
"javaScript:if(this.checked){document.form1.fileUpload.disabled=true;}"
>
49.
ไม่มีรูป</td>
50.
<td width=
"13%"
> </td>
51.
</tr>
52.
<tr>
53.
<td height=
"22"
colspan=
"2"
><input type=
"file"
name=
"fileUpload"
></td>
54.
</tr>
55.
<tr>
56.
<td>คำค้นหา </td>
57.
<td colspan=
"2"
><input type=
"text"
name=
"txtkey"
>
58.
คำค้นหา,คำค้นหา</td>
59.
</tr>
60.
<tr>
61.
<td><input name=
"txtdate"
type=
"hidden"
size=
"25"
value=
"<? echo date("
d-m-y H:i
");?>"
></td>
62.
<td colspan=
"2"
> </td>
63.
</tr>
64.
<tr>
65.
<td><input name=
"txtuser"
type=
"hidden"
size=
"25"
value=
"<?=$objResult["
username
"];?>"
></td>
66.
<td colspan=
"2"
> </td>
67.
</tr>
68.
<tr>
69.
<td> </td>
70.
<td colspan=
"2"
><input type=
"submit"
name=
"Submit"
value=
"save"
></td>
71.
</tr>
72.
</table>
73.
74.
75.
</form>
76.
</body>
77.
</html>