f_name=request("f_name")
f_position=request("f_position")
tvtype=request("tvtype")
f_url=request("f_url")
f_maker=request("f_maker")
f_img=request("f_img")
f_keyword=request("f_keyword")
f_alt=request("f_alt")
if f_name="" then
response.write"alert('名字不能为空')"
response.write"history.go(-1)"
response.end
end if
if f_position="" then
response.write"alert('请选择文件所在目录')"
response.write"history.go(-1)"
response.end
end if
if tvtype="" then
response.write"alert('播放格式不能为空')"
response.write"history.go(-1)"
response.end
end if
if f_alt="" then
response.write"alert('播放地址不能为空')"
response.write"history.go(-1)"
response.end
end if
sql="select * from jsfiles"
rs.open sql,conn,1,3
rs.addnew
rs("f_name")=f_name
rs("f_position")=f_position
rs("tvtype")=tvtype
rs("f_url")=f_url
rs("f_maker")=f_maker
rs("f_img")=f_img
rs("f_keyword")=f_keyword
rs("f_alt")=f_alt
rs("f_adate")=now
rs("f_edate")=now
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write "" & chr(13)
response.write "alert('播放地址添加成功!');" & Chr(13)
response.write "window.document.location.href='tvadd.asp';"&Chr(13)
response.write "" & Chr(13)
response.end
%>