Response.end
end if
set rsRepeat = conn.execute("select domainame from midb where domainame='"&R_domainame&"'")
if not (rsRepeat.bof and rsRepeat.eof) then
response.write "<script language='javascript'>alert('" &R_domainame& " is exsited!');location.replace('"&request.servervariables("http_referer")&"');</script>"
response.End
End If
rsRepeat.close
set rsRepeat=Nothing
set rs=server.createobject("adodb.recordset")
rs.open "select * from midb",conn,3,2
rs.addnew
rs("houzhui")=R_houzhui
rs("domainame")=R_domainame
rs("ispic")=R_ispic
rs("istj")=R_istj
rs("typeid")=typeid
rs("zcsj")=R_zcsj
rs("dqsj")=R_dqsj
rs("yisi")=R_yisi
rs("cs")=R_cs
rs("detailyisi")=R_detailyisi
if R_status<>"" then
rs("status")=R_status
end if
rs("ykj")=R_ykj
rs("cb")=R_cb
rs("xf")=R_xf
rs("saledate")=R_saledate
if R_salejia<>"" then
rs("salejia")=R_salejia
end if
rs("adddate")=R_adddate
rs("pid")=R_pid
rs("qitajia")=R_qitajia
rs("hits")=R_hits
rs.update
rs.close
set rs=nothing
Response.Write("<script>alert('Add OK!');window.location='milist.asp';</script>")
Response.end
CASE "edit"
set rs=server.CreateObject("adodb.recordset")
sql="select * from midb where id="&id
rs.open sql,conn,1,3
rs("houzhui")=R_houzhui
rs("domainame")=R_domainame
rs("ispic")=R_ispic
rs("istj")=R_istj
rs("typeid")=typeid
rs("zcsj")=R_zcsj
rs("dqsj")=R_dqsj
rs("yisi")=R_yisi
rs("cs")=R_cs
rs("detailyisi")=R_detailyisi
rs("status")=R_status
rs("ykj")=R_ykj
rs("cb")=R_cb
rs("xf")=R_xf
rs("saledate")=R_saledate
rs("salejia")=R_salejia
rs("adddate")=R_adddate
rs("pid")=R_pid
rs("qitajia")=R_qitajia
rs("hits")=R_hits
rs.update
rs.close
set rs=nothing
Response.Write("<script>alert('Modify Sucessfully!');window.location='mi.asp?id="&id&"&typeid="&typeid&"';</script>")
Response.end
CASE "sale"
set rs=server.CreateObject("adodb.recordset")
sql="select * from midb where id="&id
rs.open sql,conn,1,3
rs("salejia")=rs("ykj")
rs("ykj")=0
rs("saledate")=date()
rs.update
rs.close
set rs=nothing
Response.Write("<script>alert('sell Sucessfully!');window.location='mi.asp?id="&id&"';</script>") |