<!--#include file="../prohead.asp"-->
<!--#include file="../checkrole.asp"-->
<%
call checkuser("gjj")
if issession=0 then
	gsid=Replace_Text(request.Cookies("Yxmemberid"))
else
	gsid=session("id")
end if
%>
<% 
dim action,spid
action=trim(request("action"))
spid=trim(request("id"))
if action=1 then
	on error resume next
	sqlgq="update yixiang_info set priceid=0,toprice=0 where info_id="&spid&""
	'response.Write sqlgq
'	response.end
	conn.execute sqlgq
	if err.number<>0 then
		response.Write("<script language='javascript'>alert('未知错误');location.href='toprice.asp';</script>")
		response.end
	else
		response.Write("<script language='javascript'>alert('撤销成功');location.href='toprice.asp';</script>")
	end if
else
	sqlga="update yixiang_productshow set priceid=0,toprice=0 where id="&spid&""
	conn.execute sqlga
	if err.number<>0 then
		response.Write("<script language='javascript'>alert('未知错误');location.href='toprice.asp';</script>")
		response.end
	else
		response.Write("<script language='javascript'>alert('撤销成功');location.href='toprice.asp';</script>")
	end if
end if
%>