亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? function.asp

?? 一個很精美,功能很齊全的網絡游戲交易站,自帶后臺,管理非常方便
?? ASP
字號:
<%
'*************************************************
'函數名:gotTopic
'作  用:截字符串,漢字一個算兩個字符,英文算一個字符
'參  數:str   ----原字符串
'       strlen ----截取長度
'返回值:截取后的字符串
'*************************************************
function gotTopic(str,strlen)
	if str="" then
		gotTopic=""
		exit function
	end if
	dim l,t,c, i
	str=replace(replace(replace(replace(str,"&nbsp;"," "),"&quot;",chr(34)),"&gt;",">"),"&lt;","<")
	l=len(str)
	t=0
	for i=1 to l
		c=Abs(Asc(Mid(str,i,1)))
		if c>255 then
			t=t+2
		else
			t=t+1
		end if
		if t>=strlen then
			gotTopic=left(str,i) & "…"
			exit for
		else
			gotTopic=str
		end if
	next
	gotTopic=replace(replace(replace(replace(gotTopic," ","&nbsp;"),chr(34),"&quot;"),">","&gt;"),"<","&lt;")
end function

'***********************************************
'函數名:JoinChar
'作  用:向地址中加入 ? 或 &
'參  數:strUrl  ----網址
'返回值:加了 ? 或 & 的網址
'***********************************************
function JoinChar(strUrl)
	if strUrl="" then
		JoinChar=""
		exit function
	end if
	if InStr(strUrl,"?")<len(strUrl) then 
		if InStr(strUrl,"?")>1 then
			if InStr(strUrl,"&")<len(strUrl) then 
				JoinChar=strUrl & "&"
			else
				JoinChar=strUrl
			end if
		else
			JoinChar=strUrl & "?"
		end if
	else
		JoinChar=strUrl
	end if
end function

'***********************************************
'過程名:showpage
'作  用:顯示“上一頁 下一頁”等信息
'參  數:sfilename  ----鏈接地址
'       totalnumber ----總數量
'       maxperpage  ----每頁數量
'       ShowTotal   ----是否顯示總數量
'       ShowAllPages ---是否用下拉列表顯示所有頁面以供跳轉。有某些頁面不能使用,否則會出現JS錯誤。
'       strUnit     ----計數單位
'***********************************************
public sub showpage(sfilename,totalnumber,maxperpage,ShowTotal,ShowAllPages,strUnit)
	dim n, i,strTemp,strUrl
	if totalnumber mod maxperpage=0 then
    	n= totalnumber \ maxperpage
  	else
    	n= totalnumber \ maxperpage+1
  	end if
  	strTemp= "<table align='center'><form name='showpages' method='Post' action='" & sfilename & "'><tr><td>"
	if ShowTotal=true then 
		strTemp=strTemp & "共 <b>" & totalnumber & "</b> " & strUnit & "&nbsp;&nbsp;"
	end if
	strUrl=JoinChar(sfilename)
  	if CurrentPage<2 then
    		strTemp=strTemp & "首頁 上一頁&nbsp;"
  	else
    		strTemp=strTemp & "<a href='" & strUrl & "page=1'>首頁</a>&nbsp;"
    		strTemp=strTemp & "<a href='" & strUrl & "page=" & (CurrentPage-1) & "'>上一頁</a>&nbsp;"
  	end if

  	if n-currentpage<1 then
    		strTemp=strTemp & "下一頁 尾頁"
  	else
    		strTemp=strTemp & "<a href='" & strUrl & "page=" & (CurrentPage+1) & "'>下一頁</a>&nbsp;"
    		strTemp=strTemp & "<a href='" & strUrl & "page=" & n & "'>尾頁</a>"
  	end if
   	strTemp=strTemp & "&nbsp;頁次:<strong><font color=red>" & CurrentPage & "</font>/" & n & "</strong>頁 "
    strTemp=strTemp & "&nbsp;<b>" & maxperpage & "</b>" & strUnit & "/頁"
	if ShowAllPages=True then
		strTemp=strTemp & "&nbsp;轉到:<select name='page' size='1' onchange='javascript:submit()'>"   
    	for i = 1 to n   
    		strTemp=strTemp & "<option value='" & i & "'"
			if cint(CurrentPage)=cint(i) then strTemp=strTemp & " selected "
			strTemp=strTemp & ">第" & i & "頁</option>"   
	    next
		strTemp=strTemp & "</select>"
	end if
	strTemp=strTemp & "</td></tr></form></table>"
	response.write strTemp
end sub

'********************************************
'函數名:IsValidEmail
'作  用:檢查Email地址合法性
'參  數:email ----要檢查的Email地址
'返回值:True  ----Email地址合法
'       False ----Email地址不合法
'********************************************
function IsValidEmail(email)
	dim names, name, i, c
	IsValidEmail = true
	names = Split(email, "@")
	if UBound(names) <> 1 then
	   IsValidEmail = false
	   exit function
	end if
	for each name in names
		if Len(name) <= 0 then
			IsValidEmail = false
    		exit function
		end if
		for i = 1 to Len(name)
		    c = Lcase(Mid(name, i, 1))
			if InStr("abcdefghijklmnopqrstuvwxyz_-.", c) <= 0 and not IsNumeric(c) then
		       IsValidEmail = false
		       exit function
		     end if
	   next
	   if Left(name, 1) = "." or Right(name, 1) = "." then
    	  IsValidEmail = false
	      exit function
	   end if
	next
	if InStr(names(1), ".") <= 0 then
		IsValidEmail = false
	   exit function
	end if
	i = Len(names(1)) - InStrRev(names(1), ".")
	if i <> 2 and i <> 3 then
	   IsValidEmail = false
	   exit function
	end if
	if InStr(email, "..") > 0 then
	   IsValidEmail = false
	end if
end function

'***************************************************
'函數名:IsObjInstalled
'作  用:檢查組件是否已經安裝
'參  數:strClassString ----組件名
'返回值:True  ----已經安裝
'       False ----沒有安裝
'***************************************************
Function IsObjInstalled(strClassString)
	On Error Resume Next
	IsObjInstalled = False
	Err = 0
	Dim xTestObj
	Set xTestObj = Server.CreateObject(strClassString)
	If 0 = Err Then IsObjInstalled = True
	Set xTestObj = Nothing
	Err = 0
End Function

'**************************************************
'函數名:strLength
'作  用:求字符串長度。漢字算兩個字符,英文算一個字符。
'參  數:str  ----要求長度的字符串
'返回值:字符串長度
'**************************************************
function strLength(str)
	ON ERROR RESUME NEXT
	dim WINNT_CHINESE
	WINNT_CHINESE    = (len("中國")=2)
	if WINNT_CHINESE then
        dim l,t,c
        dim i
        l=len(str)
        t=l
        for i=1 to l
        	c=asc(mid(str,i,1))
            if c<0 then c=c+65536
            if c>255 then
                t=t+1
            end if
        next
        strLength=t
    else 
        strLength=len(str)
    end if
    if err.number<>0 then err.clear
end function

'****************************************************
'函數名:SendMail
'作  用:用Jmail組件發送郵件
'參  數:ServerAddress  ----服務器地址
'        AddRecipient  ----收信人地址
'        Subject       ----主題
'        Body          ----信件內容
'        Sender        ----發信人地址
'****************************************************
function SendMail(MailServerAddress,AddRecipient,Subject,Body,Sender,MailFrom)
	on error resume next
	Dim JMail
	Set JMail=Server.CreateObject("JMail.SMTPMail")
	if err then
		SendMail= "<br><li>沒有安裝JMail組件</li>"
		err.clear
		exit function
	end if
	JMail.Logging=True
	JMail.Charset="gb2312"
	JMail.ContentType = "text/html"
	JMail.ServerAddress=MailServerAddress
	JMail.AddRecipient=AddRecipient
	JMail.Subject=Subject
	JMail.Body=MailBody
	JMail.Sender=Sender
	JMail.From = MailFrom
	JMail.Priority=1
	JMail.Execute 
	Set JMail=nothing 
	if err then 
		SendMail=err.description
		err.clear
	else
		SendMail="OK"
	end if
end function

'****************************************************
'過程名:WriteErrMsg
'作  用:顯示錯誤提示信息
'參  數:無
'****************************************************
sub WriteErrMsg()
	dim strErr
	strErr=strErr & "<html><head><title>錯誤信息</title><meta http-equiv='Content-Type' content='text/html; charset=gb2312'>" & vbcrlf
	strErr=strErr & "<link href='style.css' rel='stylesheet' type='text/css'></head><body>" & vbcrlf
	strErr=strErr & "<table cellpadding=2 cellspacing=2 border=0 width=400 class='border' align=center>" & vbcrlf
	strErr=strErr & "  <tr align='center'><td height='20' class='title'><strong>錯誤信息</strong></td></tr>" & vbcrlf
	strErr=strErr & "  <tr><td height='100' class='tdbg' valign='top'><b>產生錯誤的可能原因:</b><br>" & errmsg &"</td></tr>" & vbcrlf
	strErr=strErr & "  <tr align='center'><td class='title'><a href='javascript:history.go(-1)'>&lt;&lt; 返回上一頁</a></td></tr>" & vbcrlf
	strErr=strErr & "</table>" & vbcrlf
	strErr=strErr & "</body></html>" & vbcrlf
	response.write strErr
end sub

'****************************************************
'過程名:WriteSuccessMsg
'作  用:顯示成功提示信息
'參  數:無
'****************************************************
sub WriteSuccessMsg(SuccessMsg)
	dim strSuccess
	strSuccess=strSuccess & "<html><head><title>成功信息</title><meta http-equiv='Content-Type' content='text/html; charset=gb2312'>" & vbcrlf
	strSuccess=strSuccess & "<link href='style.css' rel='stylesheet' type='text/css'></head><body>" & vbcrlf
	strSuccess=strSuccess & "<table cellpadding=2 cellspacing=2 border=0 width=400 class='border' align=center>" & vbcrlf
	strSuccess=strSuccess & "  <tr align='center'><td height='20' class='title'><strong>恭喜你!</strong></td></tr>" & vbcrlf
	strSuccess=strSuccess & "  <tr><td height='100' class='tdbg' valign='top'><br>" & SuccessMsg &"</td></tr>" & vbcrlf
	strSuccess=strSuccess & "  <tr align='center'><td class='title'><a href='javascript:window.close()'>【關 閉】</a></td></tr>" & vbcrlf
	strSuccess=strSuccess & "</table>" & vbcrlf
	strSuccess=strSuccess & "</body></html>" & vbcrlf
	response.write strSuccess
end sub

%>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产麻豆精品在线观看| 99国产欧美另类久久久精品| 丁香五精品蜜臀久久久久99网站 | 国产精品久久久久桃色tv| 亚洲欧美另类综合偷拍| 美国三级日本三级久久99 | 欧美日韩国产首页| 国产三级欧美三级| 秋霞午夜鲁丝一区二区老狼| 色综合久久久久| 国产欧美日韩激情| 美女一区二区视频| 欧美日韩精品高清| 亚洲欧美激情视频在线观看一区二区三区 | 久久久久久久久岛国免费| 午夜欧美视频在线观看| 一本大道av伊人久久综合| 国产丝袜美腿一区二区三区| 美腿丝袜亚洲三区| 制服丝袜中文字幕亚洲| 一区二区三区日韩精品| 色噜噜偷拍精品综合在线| 亚洲国产岛国毛片在线| 国产一区二区三区精品欧美日韩一区二区三区 | 91啪在线观看| 中文字幕欧美区| 国产精品亚洲一区二区三区妖精| 日韩欧美激情在线| 久久成人精品无人区| 日韩午夜在线播放| 男人的j进女人的j一区| 欧美二区三区91| 首页国产欧美日韩丝袜| 欧美精品在线观看一区二区| 午夜久久久久久久久久一区二区| 欧美亚洲禁片免费| 亚洲成a人片综合在线| 欧美久久久一区| 免费看日韩a级影片| 欧美电影免费观看高清完整版在线 | 51午夜精品国产| 日本欧美一区二区| 精品国产不卡一区二区三区| 精品亚洲成a人在线观看 | 国产成人在线观看| 日本一区二区三区dvd视频在线| 国产传媒欧美日韩成人| 国产欧美日韩精品a在线观看| 白白色亚洲国产精品| 一区二区三区毛片| 欧美老女人在线| 九色综合狠狠综合久久| 日韩精品一区二区三区三区免费| 国产一区中文字幕| 亚洲日本va在线观看| 欧美日韩不卡在线| 国内外成人在线视频| 最近日韩中文字幕| 91精品久久久久久久99蜜桃| 精品无人码麻豆乱码1区2区 | 成人av资源在线观看| 一区二区免费在线| 欧美成人精品3d动漫h| av一本久道久久综合久久鬼色| 一区二区在线看| 精品久久久久久久久久久院品网 | 国产精品一区二区在线观看不卡 | 久久99久久99| 一区免费观看视频| 欧美一区二区三区四区五区| 国产成人免费在线观看不卡| 亚洲成av人在线观看| 久久影音资源网| 精品1区2区3区| 国产精品资源网| 亚洲高清免费一级二级三级| 国产欧美日韩在线| 欧美日韩一区二区三区不卡| 国产99久久久久久免费看农村| 亚洲亚洲精品在线观看| 久久精品一区二区三区不卡| 欧美精选一区二区| 成人免费视频一区二区| 男女性色大片免费观看一区二区| 国产精品超碰97尤物18| 337p粉嫩大胆色噜噜噜噜亚洲| 在线一区二区三区| 成人在线综合网站| 精品亚洲免费视频| 日韩高清在线电影| 亚洲综合清纯丝袜自拍| 国产人妖乱国产精品人妖| 欧美一级日韩不卡播放免费| 91蝌蚪porny| 懂色av噜噜一区二区三区av| 加勒比av一区二区| 婷婷中文字幕综合| 亚洲国产精品一区二区久久恐怖片 | 国产精品热久久久久夜色精品三区| 在线播放中文字幕一区| 91久久精品网| 91小视频在线免费看| 国产毛片精品一区| 黄页视频在线91| 青青草国产精品亚洲专区无| 午夜国产不卡在线观看视频| 一区二区三区四区不卡在线| 一区二区三区欧美亚洲| 亚洲免费在线观看| 亚洲女女做受ⅹxx高潮| 亚洲色欲色欲www| 国产精品不卡一区| 国产精品国产自产拍在线| 2021国产精品久久精品| 精品国产伦一区二区三区观看体验| 91麻豆精品国产91久久久使用方法 | 成人成人成人在线视频| 国产精品一级片| 国产一区二区调教| 国产精品一区免费视频| 成人综合在线网站| voyeur盗摄精品| 91蜜桃视频在线| 精品视频123区在线观看| 91精品欧美久久久久久动漫 | 欧美电影在线免费观看| 欧美精品丝袜中出| 欧美一区二区三区公司| 欧美成人免费网站| 欧美国产乱子伦| 亚洲精品高清在线| 亚洲国产你懂的| 日韩成人免费在线| 国产剧情av麻豆香蕉精品| 国产精品综合在线视频| av不卡免费在线观看| 欧美综合欧美视频| 91精品国产日韩91久久久久久| 精品88久久久久88久久久 | 久久亚洲精品小早川怜子| 中文字幕成人av| 亚洲国产裸拍裸体视频在线观看乱了 | 成人精品高清在线| 欧美系列日韩一区| 精品久久久久久久人人人人传媒| 欧美极品另类videosde| 亚洲一区二区美女| 久久国产尿小便嘘嘘| www.日本不卡| 日韩欧美www| 亚洲人成亚洲人成在线观看图片| 视频一区二区国产| 国产成人精品三级麻豆| 欧美日韩大陆一区二区| 国产亚洲精品久| 亚洲成人午夜影院| 国产白丝网站精品污在线入口| 欧美中文字幕一区二区三区亚洲| 日韩欧美在线一区二区三区| 亚洲丝袜另类动漫二区| 日本伊人午夜精品| 99麻豆久久久国产精品免费| 精品国产一区二区三区av性色| 亚洲三级免费电影| 欧美日韩小视频| 亚洲欧洲av在线| 韩国一区二区三区| 精品视频999| 亚洲精品视频免费观看| 国产呦精品一区二区三区网站| 欧美老年两性高潮| 国产精品国产三级国产aⅴ中文 | 欧美激情中文不卡| 日本不卡一区二区三区高清视频| 成人h动漫精品一区二区| 久久综合精品国产一区二区三区 | 亚洲自拍偷拍图区| 春色校园综合激情亚洲| 久久综合狠狠综合| 日本色综合中文字幕| 精品视频123区在线观看| 亚洲激情成人在线| 成人免费观看av| xvideos.蜜桃一区二区| 久久精品国产第一区二区三区| 欧美日韩精品三区| 亚洲成av人综合在线观看| 在线观看亚洲精品| 一区二区三区精品久久久| 菠萝蜜视频在线观看一区| 久久精品国产99| 欧美一区二区三区在| 日韩av电影天堂| 欧美美女视频在线观看| 亚洲成人一区在线| 97精品久久久久中文字幕| 国产精品久久久久7777按摩| 成人精品免费视频| 国产精品久线在线观看| 成人午夜视频在线|