<!--#include file="conn.asp"-->
<!--#include file="denlu.asp"-->
<%
set rs=server.createobject("adodb.recordset")
if trim(request("Sorts"))=0 then
ParentId=0
Levels=0
else
ParentId=trim(request("Sorts"))
Levels=1
end if

sql="select * from productsort where id=0"
rs.open sql,conn,3,2
rs.addnew
rs("SortName")=trim(request("SortName"))
rs("SortName_eng")=trim(request("SortName_eng"))
rs("ParentId")=ParentId
rs("Levels")=Levels
rs("OrderId")=request("OrderId")
rs.update
rs.close

response.write "<script>alert('你已经增加成功！');window.location.href='cbxn.asp';</script>"
%>