<!--#include file="book_conn.asp"-->
<%
if request("shop_name")="" then
response.write "<script LANGUAGE='javascript'>alert('请输入房间名称！');history.go(-1);</script>"
response.End
end if
if request("eng_name")="" then
response.write "<script LANGUAGE='javascript'>alert('请输入英文名称！');history.go(-1);</script>"
response.End
end if
if request("shop_msj")="" then
response.write "<script LANGUAGE='javascript'>alert('请输入门市价！');history.go(-1);</script>"
response.End
end if


if request("shop_jg")="" then
response.write "<script LANGUAGE='javascript'>alert('请输入会员价！');history.go(-1);</script>"
response.End
end if

if request("shop_sm")="" then
response.write "<script LANGUAGE='javascript'>alert('请输入房间说明！');history.go(-1);</script>"
response.End
end if

Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "SELECT * From shop where id="&request("id"),conn,1,3
rs("shop_name")=request("shop_name")
rs("prodid")=request("shop_bh")
rs("eng_name")=request("eng_name")
rs("shoppic")=request("shoppic")
rs("ss")=request("ss")
'rs("shop_lx")=request("shop_lx")
rs("shop_msj")=request("shop_msj")
rs("shop_jg")=request("shop_jg")
'rs("shop_dw")=request("shop_dw")
'rs("shop_sl")=request("shop_sl")
'rs("shop_jj")=request("shop_jj")
'rs("shop_tp")=request("bookpic1")
rs("shop_sm")=request("shop_sm")
'if request("shop_tj") <> "" then
'rs("shop_tj")=request("shop_tj")
'else 
'rs("shop_tj")=false
'end if 
'if request("shop_tbtj") <> "" then
'rs("shop_tbtj")=request("shop_tbtj")
'else 
'rs("shop_tbtj")=false
'end if 
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write "<script language='javascript'>"
response.write "alert('修改成功！');"
response.write "location.href='shop.asp';"			
response.write "</script>"
%>
 
