亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
精品一区二区三区在线观看 | 国产剧情一区二区三区| 日本一区二区免费在线观看视频| 91福利区一区二区三区| 久久草av在线| 天天免费综合色| 国产精品福利一区| 欧美电视剧免费全集观看| 91论坛在线播放| 国产乱对白刺激视频不卡| 亚洲国产视频在线| 国产精品久久久99| 欧美精品一区二区三区在线| 欧美性色aⅴ视频一区日韩精品| 国产麻豆视频精品| 日韩成人午夜电影| 亚洲视频综合在线| 国产三区在线成人av| 正在播放一区二区| 欧美自拍丝袜亚洲| 成人app下载| 国产一区二区三区美女| 日韩在线一二三区| 亚洲一区在线播放| 自拍偷拍欧美激情| 欧美国产丝袜视频| 久久先锋资源网| 欧美一区二区大片| 51午夜精品国产| 欧美日韩高清在线播放| 93久久精品日日躁夜夜躁欧美| 国产成人在线免费| 国产传媒久久文化传媒| 久久成人免费网| 美女视频一区二区| 麻豆成人久久精品二区三区红 | 国产欧美日韩视频一区二区| 日韩精品一区二区三区视频播放| 欧美一级爆毛片| 欧美一区二区播放| 精品蜜桃在线看| 日韩欧美一区二区久久婷婷| 欧美一区二区三区思思人| 欧美一级欧美三级| 欧美成人r级一区二区三区| 欧美一级爆毛片| 精品国产乱码久久久久久闺蜜| 欧美一区二区三区在| 日韩一区二区在线免费观看| 在线电影欧美成精品| 51精品国自产在线| 日韩欧美国产系列| 国产亚洲欧美日韩俺去了| 久久久99精品免费观看不卡| 国产视频一区不卡| 国产精品乱码一区二区三区软件| 国产精品天美传媒| 一区二区三区在线播| 亚洲在线观看免费视频| 亚洲二区在线观看| 日本vs亚洲vs韩国一区三区二区| 视频一区二区中文字幕| 久久国产剧场电影| 国产69精品久久777的优势| jlzzjlzz亚洲日本少妇| 91福利社在线观看| 欧美一区二区三区在线看| 久久网这里都是精品| 国产精品视频免费| 一区二区三区在线影院| 日韩vs国产vs欧美| 国产精品1024| 91视视频在线观看入口直接观看www | 色天使色偷偷av一区二区| 欧美中文一区二区三区| 欧美一级欧美一级在线播放| 久久精品免费在线观看| 亚洲精品中文字幕在线观看| 日韩二区三区在线观看| 国产精品一区在线| 色婷婷av一区| 精品国产一区二区三区不卡| 国产精品久久毛片a| 亚洲高清免费观看高清完整版在线观看| 日韩vs国产vs欧美| 不卡的看片网站| 制服丝袜亚洲网站| 国产农村妇女毛片精品久久麻豆 | 国产蜜臀av在线一区二区三区| 伊人夜夜躁av伊人久久| 美女视频网站久久| 色综合天天综合在线视频| 日韩小视频在线观看专区| 中文成人av在线| 天堂va蜜桃一区二区三区漫画版| 国产99久久久精品| 日韩一区二区免费在线观看| 国产精品麻豆视频| 男男gaygay亚洲| 色综合欧美在线视频区| 欧美r级在线观看| 一区二区成人在线| 国产成人免费视| 777午夜精品免费视频| 国产精品区一区二区三区| 日韩av一二三| 91国产丝袜在线播放| 久久久精品中文字幕麻豆发布| 亚洲国产一二三| 99在线精品一区二区三区| 久久综合国产精品| 天天操天天干天天综合网| heyzo一本久久综合| 欧美成人精品高清在线播放| 香蕉加勒比综合久久| 99视频一区二区三区| 久久久国产精品午夜一区ai换脸| 亚洲国产精品一区二区www| 成人动漫中文字幕| 久久这里只有精品6| 日韩va亚洲va欧美va久久| 欧美三级视频在线播放| 亚洲图片欧美激情| av中文字幕在线不卡| 国产午夜一区二区三区| 久草精品在线观看| 欧美一级生活片| 日韩二区三区四区| 在线播放日韩导航| 亚洲高清不卡在线| 91官网在线免费观看| 亚洲欧美视频一区| 91丨porny丨蝌蚪视频| 亚洲欧洲国产日本综合| 成年人国产精品| 国产精品丝袜在线| a在线欧美一区| 中文字幕av一区 二区| 国产精品99久久久久久久vr | 久久久一区二区| 国产精品中文有码| 国产欧美一区二区精品婷婷| 国产一区二区三区四区五区入口| 精品免费国产一区二区三区四区| 青青草国产成人99久久| 91精品国产综合久久久久| 婷婷开心激情综合| 欧美一区二区三区白人| 久久99日本精品| 久久久久久久久久电影| 国产精一区二区三区| 久久久久久久久久久电影| 国产91富婆露脸刺激对白| 久久久精品蜜桃| 成人国产精品免费网站| 亚洲品质自拍视频| 欧美日韩视频专区在线播放| 五月综合激情网| 欧美mv日韩mv国产网站| 国产激情91久久精品导航 | 亚洲成人免费电影| 91精品国产91久久综合桃花 | 国产一区二区调教| 国产精品美女久久福利网站| 色综合久久久久综合体| 一区二区不卡在线视频 午夜欧美不卡在 | 图片区小说区国产精品视频| 日韩欧美一二区| 国产91精品免费| 亚洲第一精品在线| 久久婷婷国产综合国色天香| 成人午夜电影小说| 亚洲成人av电影在线| 欧美精品一区男女天堂| 成人伦理片在线| 亚洲va欧美va国产va天堂影院| 久久综合精品国产一区二区三区| 不卡的av电影在线观看| 性做久久久久久免费观看欧美| 精品久久人人做人人爽| 91麻豆国产福利精品| 久久福利视频一区二区| 亚洲欧美日韩国产成人精品影院| 日韩欧美一区在线| www.日韩精品| 久久国产福利国产秒拍| 亚洲精品中文在线| 26uuuu精品一区二区| 一本色道久久综合亚洲精品按摩| 婷婷丁香激情综合| 国产日韩精品一区二区三区| 免费欧美高清视频| 亚洲免费视频中文字幕| 欧美一级久久久| 91麻豆免费观看| 国内精品国产成人国产三级粉色| 国产精品久久久久影院| 精品sm捆绑视频| 日本韩国欧美在线| 国产一区二区三区四区五区美女|