<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../conn.asp"-->
<%
id = request("id")
Set rs = server.CreateObject("adodb.recordset")
    sql = "select * from news_image where id="&id
    rs.Open sql, conn, 1, 3
    title = request.Form("title")
	thumbnail = request.Form("thumbnail")
	order_id = request.Form("order_id")
    If title = "" Then
        response.Write("<script language=javascript>alert('标题不能为空！');history.go(-1)</script>")
        response.End
    End If
    rs("title") = title
    rs("thumbnail") = thumbnail
    rs("order_id") = order_id
    rs.update
    rs.Close
    Set rs = Nothing
    conn.Close
    Set rs = Nothing
response.Write "<script language=javascript>alert('修改成功！');window.location.href='news_image.asp';</script>"
%>
