<!--#include file="../conn/conn1.asp"-->
<!--#include file="inc.asp"-->
<!--#include file="../inc/ubbcode.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

if request.form("url1")="" then 
response.write "错误提示:请输入视频地址!"
response.end
end if

if request.form("dog")="" 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"))
dateandtime=trim(request.form("dateandtime"))
no=int(request.form("no"))+int(request("count"))
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")
'response.write request("id")
sql="select * from film where id ="&request("id") 
rs.open sql,conn,1,3
rs("typeid")=Request.Form("typeid")
rs("dateandtime")=dateandtime
rs("title")=title
rs("content")=content
rs("flvurl")=url
rs("yanyuan")=dog
rs("zzname")=zzname
rs("images")=images
rs("best")=best
rs.update
filmid=rs("id")
rs.close

set rs=server.createobject("adodb.recordset")
for i=1 to request("count")
if not isempty(request("del"&i)) then
conn.execute"delete from url where id="&request("id"&i)
else
Conn.execute"update url set flvurl='"&request("url"&i)&"' where id="&request("id"&i)
end if

rs.update

next

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="editfilm.asp?id=<%=request("id")%>">是</a>&nbsp;&nbsp; 
          <a href="mimi.asp">否</a><br>
    <br>
    </p>
        </td>
    </tr>
    </table>
</div>