亚洲欧美第一页_禁久久精品乱码_粉嫩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     ----計數單位
'***********************************************
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一区二区三区免费野_久草精品视频
亚洲激情av在线| 日韩精品一区二区三区中文不卡| 免费观看一级特黄欧美大片| 亚洲成人一区二区| 亚洲国产精品麻豆| 午夜视频久久久久久| 亚洲动漫第一页| 日韩中文字幕区一区有砖一区| 亚洲午夜视频在线| 日韩精品国产欧美| 久久激五月天综合精品| 黑人巨大精品欧美黑白配亚洲| 久草精品在线观看| 国产成人午夜视频| www.激情成人| 欧美吻胸吃奶大尺度电影| 欧美日高清视频| 欧美一级二级三级蜜桃| 久久综合资源网| 国产精品久久久久久户外露出| 国产精品久久久久久亚洲毛片| 中文字幕一区二区不卡| 亚洲曰韩产成在线| 久久国产福利国产秒拍| 成人性生交大片免费看中文 | av男人天堂一区| 色视频一区二区| 911精品国产一区二区在线| 欧美大度的电影原声| 欧美国产激情一区二区三区蜜月| 亚洲精品视频在线| 蜜臀av一区二区在线免费观看| 国产a视频精品免费观看| 在线观看视频一区二区欧美日韩| 精品视频一区二区三区免费| 欧美精品一区二区三区视频 | 亚洲国产视频a| 久久99国产乱子伦精品免费| a级精品国产片在线观看| 欧美理论片在线| 亚洲国产高清在线| 美女爽到高潮91| 色久优优欧美色久优优| 久久久久高清精品| 亚洲第一福利一区| 99热在这里有精品免费| 色一情一伦一子一伦一区| 久久亚洲综合色一区二区三区| 亚洲色图欧美偷拍| 国产酒店精品激情| 欧美日韩www| 亚洲一区国产视频| 不卡视频免费播放| 欧美精品一区二区久久婷婷| 天堂成人国产精品一区| 99久久精品久久久久久清纯| 欧美videossexotv100| 亚洲一区二区精品久久av| 国产成人精品综合在线观看| 日韩精品一区二区三区在线播放 | 日韩一级黄色片| 亚洲国产日日夜夜| 色狠狠色噜噜噜综合网| 国产精品久久久99| 高清免费成人av| 久久久蜜桃精品| 久久国产夜色精品鲁鲁99| 69堂成人精品免费视频| 亚洲一区二区三区四区在线| 91麻豆.com| 最新国产精品久久精品| 不卡的av网站| 国产女人18毛片水真多成人如厕| 另类的小说在线视频另类成人小视频在线 | 国产精品国模大尺度视频| 久久99精品久久只有精品| 欧美一区二区三区免费在线看| 亚洲一级二级在线| 4hu四虎永久在线影院成人| 亚洲一区二区三区在线播放| 精品视频一区三区九区| 日韩国产一二三区| 欧美一级欧美三级在线观看| 免费在线观看日韩欧美| 日韩欧美一卡二卡| 国产精品综合av一区二区国产馆| 久久久亚洲国产美女国产盗摄| 国产成人在线观看| 中文字幕亚洲一区二区va在线| 成人精品一区二区三区中文字幕| 国产精品女主播av| 一本到高清视频免费精品| 亚洲一级片在线观看| 欧美一区二区三区免费视频| 国产尤物一区二区在线| 国产蜜臀av在线一区二区三区| 成人午夜短视频| 亚洲国产视频在线| 日韩欧美三级在线| 国产乱码精品一区二区三区五月婷| 国产婷婷色一区二区三区| 色综合婷婷久久| 麻豆成人免费电影| 国产精品欧美经典| 欧美日韩在线一区二区| 成人黄色在线视频| 亚洲欧洲成人自拍| 欧美一区午夜精品| 成人黄色一级视频| 蜜臀va亚洲va欧美va天堂 | 91在线小视频| 日本欧美在线观看| 国产精品丝袜久久久久久app| 色老头久久综合| 国产馆精品极品| 亚洲va天堂va国产va久| 日本一区二区三区电影| 91福利资源站| 国产福利一区二区三区在线视频| 一片黄亚洲嫩模| 久久久久久久久久久久久夜| 欧美揉bbbbb揉bbbbb| 国产成a人无v码亚洲福利| 亚洲国产aⅴ天堂久久| 国产亲近乱来精品视频| 欧美一区二区三区在线| 91在线视频官网| 精品一区二区免费在线观看| 亚洲一区精品在线| 成人欧美一区二区三区小说| 欧美videos大乳护士334| 欧美亚洲一区二区在线| 成人性生交大片| 韩国女主播一区| 奇米精品一区二区三区在线观看 | 懂色av中文一区二区三区| 日韩精品一二三| 亚洲精品中文在线影院| 国产欧美综合在线| 日韩视频免费观看高清完整版在线观看 | 日本伊人午夜精品| 一区二区三区四区不卡视频| 中文在线免费一区三区高中清不卡| 欧美日韩国产一区| 久久综合九色综合欧美98| 欧美日产国产精品| 欧美精品久久久久久久多人混战 | 蜜臀av一区二区三区| 亚洲午夜三级在线| 亚洲电影第三页| 亚洲一区二区欧美| 天天色图综合网| 日韩二区三区在线观看| 亚洲五月六月丁香激情| 亚洲国产精品久久不卡毛片| 一区二区三区毛片| 亚洲综合在线第一页| 亚洲大片精品永久免费| 亚洲视频免费观看| 一区二区视频免费在线观看| 亚洲自拍偷拍麻豆| 亚洲一区国产视频| 婷婷综合另类小说色区| 亚洲福中文字幕伊人影院| 亚洲国产aⅴ天堂久久| 日韩有码一区二区三区| 日韩电影在线一区| 国产一区二区三区免费| 国产在线视视频有精品| 国产大片一区二区| av电影天堂一区二区在线 | 蜜桃免费网站一区二区三区| 日韩vs国产vs欧美| 国产在线播精品第三| 成人h动漫精品| 在线观看一区日韩| 日韩欧美在线观看一区二区三区| 日韩一级片网站| 国产精品视频一二三| 亚洲精品久久久久久国产精华液| 亚洲第一福利一区| 国产一区二区三区国产| 色综合色综合色综合色综合色综合| 91福利国产精品| 91精品欧美久久久久久动漫| 久久九九久久九九| 亚洲精品国产精华液| 日韩精品国产欧美| 国产精品一区二区久久不卡| 91啪亚洲精品| 精品国产91洋老外米糕| 亚洲色欲色欲www| 国产揄拍国内精品对白| 日本韩国欧美在线| 26uuu久久天堂性欧美| 亚洲码国产岛国毛片在线| 美女免费视频一区二区| 99re视频这里只有精品| 久久综合久久鬼色| 视频一区免费在线观看|