亚洲欧美第一页_禁久久精品乱码_粉嫩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  ----網址
'返回值:加了 ? 或 & 的網址
'pos=InStr(1,"abcdefg","cd") 
'則pos會返回3表示查找到并且位置為第三個字符開始。
'這就是“查找”的實現,而“查找下一個”功能的
'實現就是把當前位置作為起始位置繼續查找。
'***********************************************
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)'>【返回】</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:history.go(-1)'>【返回】</a></td></tr>" & vbcrlf
	strSuccess=strSuccess & "</table>" & vbcrlf
	strSuccess=strSuccess & "</body></html>" & vbcrlf
	response.write strSuccess
end sub

function getFileExtName(fileName)
    dim pos
    pos=instrrev(filename,".")
    if pos>0 then 
        getFileExtName=mid(fileName,pos+1)
    else
        getFileExtName=""
    end if
end function 

sub ShowAnnounce(AnnounceNum)
	dim sqlAnnounce,rsAnnounce,i
	if AnnounceNum>0 and AnnounceNum<=10 then
		sqlAnnounce="select top " & AnnounceNum
	else
		sqlAnnounce="select top 10"
	end if
	sqlAnnounce=sqlAnnounce & " * from affiche order by ID Desc"	
	Set rsAnnounce= Server.CreateObject("ADODB.Recordset")
	rsAnnounce.open sqlAnnounce,conn,1,1
	if rsAnnounce.bof and rsAnnounce.eof then 
		AnnounceCount=0
		response.write "<p>&nbsp;&nbsp;沒有公告</p>" 
	else 
		AnnounceCount=rsAnnounce.recordcount		
			do while not rsAnnounce.eof   
				response.Write "&nbsp;&nbsp;<a href='#' onclick=""javascript:window.open('Affiche.asp?ID=" & rsAnnounce("id") &"', 'newwindow', 'height=300, width=400, toolbar=no, menubar=no, scrollbars=auto, resizable=no, location=no, status=no')"" title='" & rsAnnounce("Content") & "'><font color='#FF0000'>" &rsAnnounce("title") & "</font></a>"
				rsAnnounce.movenext
				i=i+1				  
			loop       		
	end if  
	rsAnnounce.close
	set rsAnnounce=nothing
end sub
%>


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩一区精品| 国产精品国产a| 日韩国产成人精品| 欧美最猛性xxxxx直播| 欧美一区二区精品| 日本一区二区三区久久久久久久久不| 国产亚洲一区二区在线观看| 麻豆精品在线播放| 欧美一级精品在线| 国内精品免费**视频| 久久丝袜美腿综合| 国产成人8x视频一区二区 | 一区二区三区毛片| 91视频在线看| 亚洲大片一区二区三区| 一本久久a久久免费精品不卡| 亚洲欧洲日韩av| 欧美性猛交xxxx乱大交退制版| 夜夜亚洲天天久久| 91精品国产欧美一区二区成人| 极品少妇xxxx精品少妇偷拍| 国产日韩精品一区| 欧美日韩在线综合| 精品一区二区在线观看| 亚洲少妇最新在线视频| 91麻豆精品国产综合久久久久久| 日本不卡一区二区三区高清视频| 久久久一区二区| 在线观看亚洲成人| 国产精品一二一区| 午夜精品一区二区三区电影天堂| 久久久一区二区| 欧美日韩五月天| 日本高清无吗v一区| 国产一区视频导航| 亚洲v中文字幕| 综合久久久久久| 国产亚洲综合在线| 欧美精品一区二区三区四区| 欧美在线观看一区二区| av资源站一区| 国产一区二区三区在线看麻豆| 肉色丝袜一区二区| 一区二区欧美视频| 亚洲你懂的在线视频| 国产精品麻豆久久久| 精品播放一区二区| 精品国产一区二区三区不卡 | 欧美mv和日韩mv的网站| 欧美日韩中文一区| 色婷婷激情综合| 91色在线porny| 99re在线视频这里只有精品| 国产成人精品午夜视频免费| 激情文学综合丁香| 国产精品一线二线三线精华| 国产一区二区毛片| 国产精品一区免费视频| 国产成人免费视频网站| 国产美女精品人人做人人爽| a在线播放不卡| 欧美在线不卡视频| 大白屁股一区二区视频| 久久99国产乱子伦精品免费| 国产精品自拍毛片| 91视频你懂的| 91精品婷婷国产综合久久| 欧美一区二区三区四区在线观看| 欧美一区二区三区男人的天堂| 精品国产不卡一区二区三区| 久久无码av三级| 亚洲情趣在线观看| 日日嗨av一区二区三区四区| 国产一区在线看| 欧美三级电影在线看| 久久久噜噜噜久久中文字幕色伊伊 | 午夜精品影院在线观看| 国产精一品亚洲二区在线视频| 色婷婷一区二区| 日韩欧美美女一区二区三区| 69久久99精品久久久久婷婷 | 国产aⅴ综合色| 成人在线视频一区二区| 欧美性猛片xxxx免费看久爱| 91精品久久久久久蜜臀| 欧美国产综合色视频| 亚洲一区二区在线视频| 久久er精品视频| 在线视频欧美区| 国产日产欧美精品一区二区三区| 一区二区三区四区高清精品免费观看| 日韩不卡手机在线v区| 高清成人免费视频| 日韩美女在线视频| 亚洲最新在线观看| youjizz久久| 久久久91精品国产一区二区精品| 亚洲一区二区三区不卡国产欧美| 日韩成人午夜电影| 欧美综合一区二区三区| 精品国产在天天线2019| 一区二区三区在线视频免费| 日本亚洲视频在线| 欧美日韩高清一区二区不卡 | 精品一区二区三区免费播放| 成人18精品视频| 国产女人18水真多18精品一级做| 五月婷婷激情综合网| 在线观看欧美日本| 亚洲成人一区在线| 欧美日韩国产高清一区二区三区| 亚洲一区二区三区不卡国产欧美| 91影视在线播放| 欧美激情中文不卡| 波多野结衣欧美| 亚洲免费在线看| 欧美日韩高清不卡| 麻豆精品在线视频| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 国内精品久久久久影院一蜜桃| 欧美色综合影院| 蜜桃av噜噜一区| 精品欧美黑人一区二区三区| 国产综合色视频| 久久久久久久久久久久久女国产乱 | 国产一区二区在线视频| 亚洲特黄一级片| 欧美福利一区二区| 久久成人综合网| 国产精品国产三级国产普通话蜜臀 | 麻豆精品一区二区三区| 国产视频亚洲色图| 91豆麻精品91久久久久久| 久久久久久久av麻豆果冻| 成人精品在线视频观看| 一区二区三区日韩精品视频| 欧美一区二区播放| 国产一区二区三区四区五区美女 | 麻豆精品视频在线| 国产亚洲欧美一区在线观看| 在线视频国内一区二区| 蜜臀av一级做a爰片久久| 成人免费小视频| 精品日韩一区二区三区| 成人美女在线视频| 久久国产欧美日韩精品| 亚洲成人av资源| 亚洲色图.com| 亚洲国产精品成人久久综合一区| 欧美日本国产视频| 色婷婷av一区二区三区大白胸| 激情综合色播激情啊| 日韩制服丝袜先锋影音| 亚洲一区欧美一区| 久久久久久久久久久黄色| 欧美www视频| 欧美tk—视频vk| 日韩国产在线观看一区| 国产亚洲精品bt天堂精选| 91精品国产手机| 欧洲视频一区二区| 91网站最新网址| 色国产精品一区在线观看| 99精品1区2区| 欧美性极品少妇| 欧美色国产精品| 欧洲一区二区三区在线| 欧美三级电影精品| 在线播放中文一区| 精品蜜桃在线看| 久久精品亚洲精品国产欧美| 欧美国产禁国产网站cc| 亚洲欧美另类小说| 久久国产精品72免费观看| 国产激情偷乱视频一区二区三区| 成人污视频在线观看| 91麻豆福利精品推荐| 欧美xfplay| 亚洲一二三四区| 久久精品国产亚洲aⅴ| 成人一区在线看| 91精品国产91久久综合桃花 | 一区二区三区四区av| 亚洲成av人片在线观看无码| 精品在线一区二区| 在线观看国产91| 国产欧美一区二区精品性色 | 日本韩国一区二区三区视频| 日韩欧美国产系列| 一卡二卡三卡日韩欧美| 国产白丝网站精品污在线入口| 日本高清成人免费播放| 欧美极品少妇xxxxⅹ高跟鞋| 亚洲成a人v欧美综合天堂| caoporn国产一区二区| 久久精品视频免费观看| 国内偷窥港台综合视频在线播放| 91精品久久久久久蜜臀| 国产精品入口麻豆九色| 午夜a成v人精品|