<!--#include file="../conn/conn1.asp"-->
<!--#include file="inc.asp"-->
<!--#include file="../config.asp"-->
<!--#include file="../inc/articlechar.inc"-->
<%
if request.form("title")="" then 
response.write "错误提示:请输入影片名称!"
response.end
end if
if request.form("no")="" then 
no=1
end if
for j=1 to int(request.form("no"))+int(request("count"))
if request.form("url"&j)="" then 
response.write "错误提示:请输入影片地址!"
response.end
end if
next
if request.form("dog")="" then 
response.write "错误提示:请输入演员名称!"
response.end
end if
if request.form("zzname")="" then 
response.write "错误提示:请输入作者名称!"
response.end
end if
if request.form("content")="" then 
response.write "错误提示:请输入内容简介!"
response.end
end if
if request.form("typeid")="" then 
response.write "错误提示:所属类别不能为空!"
response.end
end if
url=htmlencode2(request.form("url1"))
title=htmlencode2(request.form("title"))
content=htmlencode2(request.form("content"))
no=htmlencode2(request.form("no"))
images=htmlencode2(request.form("images"))
dog=htmlencode2(request.form("dog"))
zzname=htmlencode2(request.form("zzname"))
best=request.form("best")
dim zhuid,typename
zhuid=request.form("zhuid")
typename=request.form("typename")
set rs=server.createobject("adodb.recordset")
sql="select * from film where (id is null)" 
rs.open sql,conn,1,3
rs.addnew
rs("typeid")=Request.Form("typeid")
rs("title")=title
rs("content")=content
rs("flvurl")=url
rs("yanyuan")=dog
rs("zzname")=zzname
rs("images")=images
rs("best")=best
rs("dateandtime")=date()
rs.update
filmid=rs("id")
rs.close

%><head>
</head>
<div align="center">
  <table border="1" cellspacing="0" width="50%" bordercolorlight="#333333">
    <tr bgcolor="#660066"> 
      <td width="100%" height="20"> 
        <p align="center"><font color="#FFFFFF">添加影片成功</font> 
      </td>
    </tr>
    <tr>
      <td width="100%"> 
        <p align="left"><br>
          影片名称为：
          <%response.write title%>
        </p>
    <p align="center">是否继续添加？<br>
    <br>
          <a href="addfilm.asp"> 是</a>&nbsp;&nbsp; 
          <a href="mimi.asp">否</a><br>
    <br>
    </p>
        </td>
    </tr>
    </table>
</div>