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

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

?? function222.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組件發送郵件
'參  數:MailtoAddress  ----收信人地址
'        MailtoName    -----收信人姓名
'        Subject       -----主題
'        MailBody      -----信件內容
'        FromName      -----發信人姓名
'        MailFrom      -----發信人地址
'        Priority      -----信件優先級
'**************************************************
function SendMail(MailtoAddress,MailtoName,Subject,MailBody,FromName,MailFrom,Priority)
	on error resume next
	Dim JMail
	Set JMail=Server.CreateObject("JMAIL.Message")
	if err then
		SendMail= "<br><li>沒有安裝JMail組件</li>"
		err.clear
		exit function
	end if	
	JMail.Charset="gb2312"          '郵件編碼
	JMail.silent=true
	JMail.ContentType = "text/html"     '郵件正文格式
	JMail.ServerAddress=MailServer     '用來發送郵件的SMTP服務器
   	'如果服務器需要SMTP身份驗證則還需指定以下參數
	JMail.MailServerUserName = MailServerUserName    '登錄用戶名
   	JMail.MailServerPassWord = MailServerPassword        '登錄密碼
    JMail.MailDomain = MailDomain       '域名(如果用“name@domain.com”這樣的用戶名登錄時,請指明domain.com
	
	JMail.AddRecipient MailtoAddress,MailtoName     '收信人
	JMail.Subject=Subject         '主題
	JMail.HMTLBody=MailBody       '郵件正文(HTML格式)
	JMail.Body=MailBody          '郵件正文(純文本格式)
	JMail.FromName=FromName         '發信人姓名
	JMail.From = MailFrom         '發信人Email
	JMail.Priority=Priority              '郵件等級,1為加急,3為普通,5為低級
	JMail.Send(MailServer)
	SendMail =JMail.ErrorMessage
	JMail.Close
	Set JMail=nothing
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:history.back()'>【返 回】</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.欧美精品一二区| 精品国产一区二区三区久久久蜜月 | 欧美巨大另类极品videosbest | 欧美va天堂va视频va在线| 日韩美女久久久| 成人免费高清在线| 国产网红主播福利一区二区| 日韩电影在线观看电影| 欧美综合一区二区三区| 国产精品短视频| 99精品久久99久久久久| 国产精品私人影院| 国产成人精品1024| 久久精品视频一区| 国产剧情一区在线| 久久久久国色av免费看影院| 另类中文字幕网| 欧美成人精品福利| 久久国产三级精品| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 一区二区三区在线视频观看| 91一区二区三区在线观看| 亚洲特黄一级片| 色综合久久天天| 一区二区三区在线不卡| 91久久精品日日躁夜夜躁欧美| 中文字幕一区二区三区四区| 欧美三级蜜桃2在线观看| 亚洲精品视频在线观看网站| 欧美嫩在线观看| 亚洲天堂久久久久久久| 91免费视频观看| 一区二区三区在线视频观看 | 99久久夜色精品国产网站| 国产精品女人毛片| 99久久99久久精品免费观看| 一区二区三区四区视频精品免费 | 精品美女一区二区三区| 国产永久精品大片wwwapp| 精品国产免费一区二区三区四区| 国产精品亚洲一区二区三区妖精| 国产午夜精品福利| 色久综合一二码| 久久久久久一二三区| 日韩欧美资源站| 国产精品久久午夜夜伦鲁鲁| 亚洲综合另类小说| 3atv在线一区二区三区| 精品一区二区在线播放| 欧美激情综合五月色丁香| 一本到高清视频免费精品| 天堂久久一区二区三区| 精品国产麻豆免费人成网站| 国产成人精品三级| 一区二区高清视频在线观看| 精品国产乱码久久久久久图片| 国产传媒日韩欧美成人| 亚洲色图在线看| 日韩精品一区二区三区在线播放 | 99精品一区二区三区| 亚洲综合激情网| 欧美xxxx在线观看| 97久久超碰精品国产| 欧美一级一区二区| 天堂资源在线中文精品| 99re热这里只有精品免费视频| 精品国产乱码久久| 99精品在线免费| 精品亚洲国内自在自线福利| 中文av字幕一区| 日韩一区二区三区视频在线观看| kk眼镜猥琐国模调教系列一区二区 | 欧美电视剧在线观看完整版| 成人av在线电影| 久久国产精品无码网站| 亚洲激情图片qvod| 国产精品视频一二三| 欧美一区二区网站| 欧美性色欧美a在线播放| 高清国产一区二区三区| 美腿丝袜亚洲色图| 亚洲国产毛片aaaaa无费看 | 亚洲国产欧美一区二区三区丁香婷| 久久精品视频在线免费观看| 欧美一区二区三区在线视频| 91福利区一区二区三区| 国产成人午夜99999| 老司机精品视频一区二区三区| 17c精品麻豆一区二区免费| 欧美一级片免费看| 成人在线视频一区二区| 26uuu色噜噜精品一区二区| 一区二区三区久久| 国产日产欧美精品一区二区三区| 在线播放一区二区三区| 91久久精品国产91性色tv| 99精品久久免费看蜜臀剧情介绍| 国产精品18久久久久久久久久久久| 天堂va蜜桃一区二区三区| 一区二区在线免费观看| 亚洲美女淫视频| 亚洲欧美一区二区久久| 亚洲私人黄色宅男| 国产精品久久久久久久浪潮网站| 国产亚洲午夜高清国产拍精品| 精品国产乱码久久久久久1区2区| 日韩一本二本av| 日韩精品一区二区三区四区| 日韩免费视频一区二区| 26uuu欧美| 国产午夜精品一区二区 | 国产欧美一区二区精品久导航| 精品免费99久久| 欧美一卡二卡在线| 99久久精品久久久久久清纯| 国产视频一区不卡| 精品国一区二区三区| 日韩午夜电影av| 日韩欧美视频在线| 久久综合九色综合久久久精品综合| 日韩精品中午字幕| 国产午夜精品久久久久久久 | 日本aⅴ免费视频一区二区三区| 免费观看30秒视频久久| 精品一区二区三区久久久| 国产盗摄精品一区二区三区在线| 99综合电影在线视频| 在线视频你懂得一区二区三区| 欧美三级视频在线| 日韩欧美在线综合网| 国产女人水真多18毛片18精品视频| 国产精品女主播av| 亚洲国产cao| 美女精品自拍一二三四| 成人一区二区三区在线观看 | 亚洲最新在线观看| 国产精品久久久久永久免费观看 | 五月激情六月综合| 经典一区二区三区| 99久久99久久免费精品蜜臀| 欧美日韩一区不卡| 久久久国产精华| 亚洲va欧美va人人爽午夜| 精品一区二区影视| 在线看日本不卡| 精品久久久久香蕉网| 亚洲日本电影在线| 精品一区二区影视| 欧美日韩综合不卡| 国产精品久线观看视频| 免费成人在线播放| 一本到三区不卡视频| 久久综合给合久久狠狠狠97色69| 自拍偷拍国产精品| 久久国产精品色| 精品视频免费看| 亚洲欧洲精品成人久久奇米网| 日本不卡一二三| 欧美在线免费视屏| 日本一区二区动态图| 日韩不卡一二三区| 欧美伊人久久久久久午夜久久久久| 久久久久国产精品人| 日韩精品成人一区二区在线| 成人国产精品免费观看视频| 欧美v国产在线一区二区三区| 一区二区欧美国产| 99精品热视频| 亚洲国产精品精华液ab| 激情另类小说区图片区视频区| 在线观看精品一区| 日韩一区欧美小说| 成人爱爱电影网址| 欧美国产精品专区| 国产一区91精品张津瑜| 日韩精品中文字幕在线不卡尤物| 亚洲成va人在线观看| 欧美性感一区二区三区| 亚洲视频免费观看| hitomi一区二区三区精品| 国产欧美综合色| 亚洲欧美日韩国产综合在线| 日韩一区二区在线观看| 成人免费福利片| 亚洲摸摸操操av| jiyouzz国产精品久久| 国产色产综合色产在线视频| 久久国产人妖系列|