<%if Session("weight")<>5 then 
Response.Redirect "error.asp?cause=4"
 end if
%>
<object runat=server id=conn1 progid="adodb.connection"></object>
<%application.Lock
conn1.Open Application("p_jyzx")
Application.UnLock
%>
<%
 set rs=server.CreateObject ("ADODB.recordset")
   rs.Supports ( adUpdate )
   sql="select * from party where id="&Request("id")
   rs.Open sql,conn1,2,3

	rs("party_type")=Request("party_type")
	rs("party_time")=Request("party_time")
	rs("party_name")=Request("party_name")
	rs("max_num")=Request("max_num")
	rs("address")=Request("address")
	rs("province")=Request("province")
	rs("contact")=replace(Request("contact"),chr(10),"<br>",1,-1,1)
	rs("aa_expenses")=Request("aa_expenses")
	rs("other_expenses")=Request("other_expenses")
	
	rs("party_content")=replace(Request("party_content"),chr(10),"<br>",1,-1,1)
	
	rs.update
	
	Response.Redirect "party_update_party.asp?id="&Request("id")
%>
