<%
'商易仿淘宝4.0(多用户)
'ACCESS版演示网站：http://www.ftaobao.com(商易仿淘宝商城)
'SQL版演示网站：http://sql.ftaobao.com
'电话：0571-56907100
'QQ：1147100
%>
<%qx=3%>
<!--#include file="check.asp"-->
<!--#include file="../include/conn.asp"-->
<%
Select case Request("action")
	case "step1"
		newTitle=shopnet("newTitle")
		topic=shopnet("topic")
		conn.execute("Insert into lb(lbname,topic)values('"& newTitle &"','"&topic&"')")
		Response.write "<script>alert(""添加成功"");window.history.go(-1);</script>"
		Response.End
	case "step2"
	
		newTitle=shopnet("newTitle")
		lbid = shopnet("lbid")
		conn.execute("Insert into xlb(xlbname,lbid)values('"& newTitle &"',"& lbid &")")
		Response.write "<script>alert(""添加成功"");window.history.go(-1);</script>"
		Response.End
	case "step3"
	
		newTitle =shopnet("newTitle")
		lbid = shopnet("lbid")
		xlbid = shopnet("xlbid")
		conn.execute("Insert into slb(slbname,lbid,xlbid)values('"& newTitle &"',"& lbid &","& xlbid &")")
		Response.write "<script>alert(""添加成功"");window.history.go(-1);</script>"
		Response.End
end Select
conn.close
set conn=nothing
%>
