<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/Function.asp"-->
<!--#include file="../inc/Config.asp"-->
<%
Call ChkLogin(session("WebAdminsUserName"))
Call ConnectionDataBase(2)
Action = Request("Action")
Select Case Action
	Case "AddFriendLink"
		Call AddFriendLink
End Select
'添加友情链接
Sub AddFriendLink()
	LnkType = Request.Form("LinkType")
	LinkName = Request.Form("LinkName")
	FilePath = Request.Form("FilePath")	
	Url = Request.Form("Url")
	Content = Request.Form("Content")
	SortID = Request.Form("SortID")
	ID = Request.Form("ID")	
	Call ChkIsNumber(ID,"参数类型错误!")
	Call ChkIsNumber(LnkType,"参数类型错误!")
	Call ChkIsNull(Url,"请输入链接地址!")
	Call ChkIsNumber(SortID,"参数类型错误!")
	strSql = "Select * From T_FriendLink Where ID=" & ID
	SetRs Rs,strSql,conn,1,3
	IF Rs.EOF Then	Rs.Addnew()
	Rs("LinkType") = LnkType
	Rs("LinkName") = LinkName	
	Rs("PicPath") = FilePath	
	Rs("Url") = Url	
	Rs("Content") = Content	
	Rs("SortID") = SortID	
	Rs.Update
	DisRs Rs
	Call CloseDatabase
	Call Success("信息提交成功!",Request.ServerVariables("HTTP_REFERER"))
End Sub
%>
