<!--#include file="Conn.asp"-->
<%
	Set rsNews=Server.CreateObject("ADODB.RecordSet")
	Id=Request.Form("Id")
	If Id="" Then
		rsNews.Open "Select * from movie",conn,1,3
		rsNews.Addnew
	Else
		rsNews.Open "Select * from movie where Id="&Id,conn,1,3
	End If
	rsNews("name")=Request.Form("name")
	rsNews("ename")=Request.Form("ename")
	rsNews("lg")=Request.Form("lg")
	rsNews("who")=Request.Form("who")
	rsNews("zhuyan")=Request.Form("zhuyan")
	rsNews("school")=Request.Form("school")
	rsNews("class")=Request.Form("class")
	rsNews("photo")=Request.Form("photo")
	rsNews("movie")=Request.Form("movie")
	rsNews("introl")=Request.Form("introl")
	rsNews("AddTime")=Request.Form("AddTime")
	rsNews.Update
	If Id="" Then
		Response.Write "<script language=javascript>alert('添加视频成功!!');location.href='../AddNewsInfo.asp';</script>"
	Else
		Response.Write "<script language=javascript>alert('修改视频成功!!');location.href='../SetNewsInfo.asp';</script>"
	End If
%>