<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/Function.asp"-->
<%
Call ChkLogin(session("WebAdminsUserName"))
Call ConnectionDataBase(2)
Action = Request("Action")
Select Case Action
	Case "ChangeSortID"
		Call ChangeSortID
	Case "ChangeBrandSortID"
		Call ChangeBrandSortID
End Select

Sub ChangeSortID()
	SortID = Request.QueryString("SortID")
	id = Request.QueryString("id")

	Call ChkNumber(SortID,"排序号必须为数字类型")
	Call ChkNumber(ID,"ID参数错误!")
	conn.execute("Update T_Tender Set SortID=" & SortID & " Where TenderID=" & id)
	Call CloseDatabase
	Response.Write "success"
End Sub

Sub ChangeBrandSortID()
	SortID = Request.QueryString("SortID")
	id = Request.QueryString("id")

	Call ChkNumber(SortID,"排序号必须为数字类型")
	Call ChkNumber(ID,"ID参数错误!")
	conn.execute("Update T_Brand Set SortID=" & SortID & " Where ID=" & id)
	Call CloseDatabase
	Response.Write "success"
End Sub
%>