1
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<!--#include file="fuction.asp"-->


<%dim shopid,shopname,syh
shopid=nosql(request("id"))
shopname=nosql(request("shopname"))
pingji=nosql(request("pingji"))
pinglunname=nosql(request("pinglunname"))
pingluntitle=nosql(request("pingluntitle"))
pingluncontent=nosql(request("pingluncontent"))
shenhe=1


set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_pinglun",conn,1,3
rs.addnew
rs("shopid")=shopid
rs("pingji")=pingji
rs("pinglunname")=pinglunname
rs("pingluntitle")=pingluntitle
rs("pingluncontent")=pingluncontent
rs("ip")=Request.servervariables("REMOTE_ADDR")
rs("pinglundate")=now()
if shenhe=1 then
rs("shenhe")=1
else
rs("shenhe")=0
end if
rs.update
rs.close
set rs=nothing
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from wygkcn_shop where shopid="&shopid,conn,1,3
rs("pingji")=rs("pingji")+1
rs("pingjizong")=rs("pingjizong")+request("pingji")
rs.update
rs.close
set rs=nothing

response.write "<script language=javascript>alert('Message has been recorded. ');history.go(-1);</script>"
%>