<!--#include virtual="/inc/conn.asp"-->
<!--#include virtual="/inc/chkuser.asp"-->

<%
call logquanxian("d1",1)
%>
<%
'response.End()
id=request.QueryString("id")
act=request.QueryString("act")

			if request.QueryString("act")="edit" and request.QueryString("cact")="good" then
			sql="select aygoodid,goodxx,goodbuyxx from aygood where aygoodid="&id&"" 
			rs.open sql,conn,1,3
			if not(rs.bof and rs.eof) then
			
			goodxx=request.Form("goodxx")
			goodbuyxx=request.Form("goodbuyxx")
			
			if trim(goodxx)<>"" then
			rs("goodxx")=goodxx
			end if
			
			if trim(goodbuyxx)<>"" then
			rs("goodbuyxx")=goodbuyxx
			end if
			
			rs.update
			end if
			rs.close
			response.Write "修改成功"
			response.end
			end if

			if request.QueryString("act")="edit" and request.QueryString("cact")="jmedit" then
			jgoodpic1=request.Form("jgoodpic1")
			jgoodpic2=request.Form("jgoodpic2")
			jgoodpic3=request.Form("jgoodpic3")
			jgoodpic4=request.Form("jgoodpic4")
			jgoodpic5=request.Form("jgoodpic5")
			jgoodms=request.Form("jgoodms")
			
			sql="select * from jgood where jgoodid="&id&"" 
			rs.open sql,conn,1,3
			if not(rs.bof and rs.eof) then
			
			if trim(jgoodpic1)<>"" then rs("jgoodpic1")=jgoodpic1
			if trim(jgoodpic2)<>"" then rs("jgoodpic2")=jgoodpic2
			if trim(jgoodpic3)<>"" then rs("jgoodpic3")=jgoodpic3
			if trim(jgoodpic4)<>"" then rs("jgoodpic4")=jgoodpic4
			if trim(jgoodpic5)<>"" then rs("jgoodpic5")=jgoodpic5
			if trim(jgoodms)<>"" then rs("jgoodms")=jgoodms
			
			rs.update
			end if
			rs.close
			response.Write "修改成功"
			response.end
			end if






if act="jm" then

sql="select * from jgood where jgoodid="&id&"" 
rs.open sql,conn,1,1
if not(rs.bof and rs.eof) then%>
<form name="form1" method="post" action="?act=edit&id=<%=id%>&cact=jmedit">
jgoodpic1<input name="jgoodpic1" type="text" size="35" value="<%if trim(rs("jgoodpic1"))<>"" then%><%=server.HTMLEncode(trim(rs("jgoodpic1")))%><%end if%>"/><br>
jgoodpic2<input name="jgoodpic2" type="text" size="35"  value="<%if trim(rs("jgoodpic2"))<>"" then%><%=server.HTMLEncode(trim(rs("jgoodpic2")))%><%end if%>"/><br>
jgoodpic3<input name="jgoodpic3" type="text" size="35"  value="<%if trim(rs("jgoodpic3"))<>"" then%><%=server.HTMLEncode(trim(rs("jgoodpic3")))%><%end if%>"/><br>
jgoodpic4<input name="jgoodpic4" type="text" size="35"  value="<%if trim(rs("jgoodpic4"))<>"" then%><%=server.HTMLEncode(trim(rs("jgoodpic4")))%><%end if%>"/><br>
jgoodpic5<input name="jgoodpic5" type="text" size="35"  value="<%if trim(rs("jgoodpic5"))<>"" then%><%=server.HTMLEncode(trim(rs("jgoodpic5")))%><%end if%>"/><br>
<br><br>
<textarea name="jgoodms" cols="220" rows="8" id="jgoodms"><%if trim(rs("jgoodms"))<>"" then%><%=server.HTMLEncode(trim(rs("jgoodms")))%><%end if%></textarea>
<br>
<input type="submit" name="Submit" value="提交">
</form>
<%end if
rs.close


else




sql="select aygoodid,goodxx,goodbuyxx from aygood where aygoodid="&id&"" 
rs.open sql,conn,1,1
if not(rs.bof and rs.eof) then%>
<form name="form1" method="post" action="?act=edit&id=<%=id%>&cact=good">
<textarea name="goodxx" cols="220" rows="8" id="goodxx"><%if trim(rs("goodxx"))<>"" then%><%=server.HTMLEncode(trim(rs("goodxx")))%><%end if%></textarea>
<br><br>
<textarea name="goodbuyxx" cols="220" rows="8" id="goodbuyxx"><%if trim(rs("goodbuyxx"))<>"" then%><%=server.HTMLEncode(trim(rs("goodbuyxx")))%><%end if%></textarea>
<br>
<input type="submit" name="Submit" value="提交">
</form>
<%end if
rs.close




end if


%>