復制代碼 代碼如下:
<%
Sub Admin_ShowChannel_Name(ChannelID)
Dim Sqlc
ChannelID=Clng(ChannelID)
Sqlc =
Set Rsc=server
OpenConn : Rsc
If Rsc
TempStr=
Else
TempStr=Rsc(
End if
Rsc
response
End Sub
Sub Admin_ShowChannel_Option(ChannelID)
Dim Sqlc
ChannelID=Clng(ChannelID)
Sqlc =
ChannelType<
Set Rsc=server
OpenConn : Rsc
TempStr=
If Rsc
TempStr=TempStr &
Else
Do while not Rsc
TempStr=TempStr &
If ChannelID=Rsc(
TempStr=TempStr &
End If
TempStr=TempStr &
TempStr=TempStr &
Rsc
Loop
End if
Rsc
Set Rsc=Nothing
Response
End sub
Sub Admin_ShowClass_Name(ChannelID
Dim SqlC
ChannelID=Clng(ChannelID)
ClassID=Clng(ClassID)
Sqlc =
Set RsC=server
OpenConn : RsC
If RsC
TempStr=
Else
TempStr=RsC(
End if
RsC
Response
End Sub
Sub Admin_ShowSpecial_Name(ChannelID
Dim Sqlc
ChannelID=Clng(ChannelID)
SpecialID=Clng(SpecialID)
Sqlc =
Set Rsc=server
OpenConn : Rsc
If Rsc
TempStr=
Else
TempStr=Rsc(
End if
Rsc
Response
End Sub
Sub Admin_ShowItem_Name(ItemID)
Dim Sqlc
ItemID=Clng(ItemID)
Sqlc =
Set Rsc=server
Rsc
If Rsc
TempStr=
Else
TempStr=Rsc(
End if
Rsc
Response
End Sub
Sub Admin_ShowItem_Option(ItemID)
Dim SqlI
ItemID=Clng(ItemID)
SqlI =
Set RsI=server
RsI
TempStr=
If RsI
TempStr=TempStr &
Else
TempStr=TempStr &
Do while not RsI
TempStr=TempStr &
If ItemID=RsI(
TempStr=TempStr &
End If
TempStr=TempStr &
TempStr=TempStr &
RsI
Loop
End if
RsI
Set RsI=Nothing
TempStr=TempStr &
Response
End sub
Function GetHttpPage(HttpUrl)
If IsNull(HttpUrl)=True Or Len(HttpUrl)<
GetHttpPage=
Exit Function
End If
Dim Http
On Error Resume Next
Set Http=server
Http
Http
If Http
Set Http=Nothing
GetHttpPage=
Exit function
End if
GetHTTPPage=bytesToBSTR(Http
Set Http=Nothing
If Err
End Function
Function BytesToBstr(Body
Dim Objstream
On Error Resume Next
Set Objstream = Server
objstream
objstream
objstream
objstream
objstream
objstream
objstream
BytesToBstr = objstream
objstream
set objstream = Nothing
End Function
Function PostHttpPage(RefererUrl
Dim xmlHttp
Dim RetStr
On Error Resume Next
Set xmlHttp = CreateObject(
xmlHttp
XmlHTTP
xmlHttp
xmlHttp
xmlHttp
If Err
Set xmlHttp=Nothing
PostHttpPage =
Exit Function
End If
PostHttpPage=bytesToBSTR(xmlHttp
Set xmlHttp = Nothing
End Function
Function UrlEncoding(DataStr)
Dim StrReturn
StrReturn =
For Si =
ThisChr = Mid(DataStr
If Abs(Asc(ThisChr)) < &HFF Then
StrReturn = StrReturn & ThisChr
Else
InnerCode = Asc(ThisChr)
If InnerCode <
InnerCode = InnerCode + &H
End If
Hight
Low
StrReturn = StrReturn &
End If
Next
UrlEncoding = StrReturn
End Function
Function GetBody(ConStr
If ConStr=
OverStr=
GetBody=
Exit Function
End If
Dim ConStrTemp
Dim Start
ConStrTemp=Lcase(ConStr)
StartStr=Lcase(StartStr)
OverStr=Lcase(OverStr)
Start = InStrB(
If Start<=
GetBody=
Exit Function
Else
If IncluL=False Then
Start=Start+LenB(StartStr)
End If
End If
Over=InStrB(Start
If Over<=
GetBody=
Exit Function
Else
If IncluR=True Then
Over=Over+LenB(OverStr)
End If
End If
GetBody=MidB(ConStr
End Function
Function GetArray(Byval ConStr
If ConStr=
(StartStr)=True Or IsNull(OverStr)=True Then
GetArray=
Exit Function
End If
Dim TempStr
TempStr=
Set objRegExp = New Regexp
objRegExp
objRegExp
objRegExp
Set Matches =objRegExp
For Each Match in Matches
TempStr=TempStr &
Next
Set Matches=Nothing
If TempStr=
GetArray=
Exit Function
End If
TempStr=Right(TempStr
If IncluL=False then
objRegExp
TempStr=objRegExp
End if
If IncluR=False then
objRegExp
TempStr=objRegExp
End if
Set objRegExp=Nothing
Set Matches=Nothing
TempStr=Replace(TempStr
TempStr=Replace(TempStr
TempStr=Replace(TempStr
TempStr=Replace(TempStr
TempStr=Replace(TempStr
If TempStr=
GetArray=
Else
GetArray=TempStr
End if
End Function
From:http://tw.wingwit.com/Article/program/Web/201404/30645.html