亚洲欧美第一页_禁久久精品乱码_粉嫩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


'**************************************************
'函數名:Admin_ShowClass_Option
'作  用:用作菜單管理
'參  數:ShowType     ----顯示類型
'        CurrentID    -----當前ID
'        Language     -----語言
'**************************************************

sub Admin_ShowClass_Option(ShowType,CurrentID,Language)
	if ShowType=0 then
	    response.write "<option value='0'"
		if CurrentID=0 then response.write " selected"
		response.write ">無(作為一級欄目)</option>"
	end if
	dim rsClass,sqlClass,strTemp,tmpDepth,i
	dim arrShowLine(20)
	for i=0 to ubound(arrShowLine)
		arrShowLine(i)=False
	next
	sqlClass="Select * From MenuClass order by RootID,OrderID"
	set rsClass=server.CreateObject("adodb.recordset")
	rsClass.open sqlClass,conn,1,1
	if rsClass.bof and rsClass.bof then
		response.write "<option value=''>請先添加欄目</option>"
	else
		do while not rsClass.eof
			tmpDepth=rsClass("Depth")
			if rsClass("NextID")>0 then
				arrShowLine(tmpDepth)=True
			else
				arrShowLine(tmpDepth)=False
			end if
			if ShowType=1 then
				if rsClass("LinkUrl")<>"" then
					strTemp="<option value=''"
				else
					strTemp="<option value='" & rsClass("ClassID") & "'"
				end if
				strTemp=strTemp & "style='background-color:#ff0000'"
		
			elseif ShowType=2 then
				if rsClass("LinkUrl")<>"" then
					strTemp="<option value=''"
				else
					strTemp="<option value='" & rsClass("ClassID") & "'"
				end if
			  strTemp=strTemp & "style='background-color:#ff0000'"
	
			elseif ShowType=3 then
				if rsClass("Child")>0 then
					strTemp="<option value=''"
				elseif rsClass("LinkUrl")<>"" then
					strTemp="<option value='0'"
				else
					strTemp="<option value='" & rsClass("ClassID") & "'"
				end if			
				strTemp=strTemp & "style='background-color:#ff0000'"

			elseif ShowType=4 then
				if rsClass("Child")>0 then
					strTemp="<option value=''"
				elseif rsClass("LinkUrl")<>"" then
					strTemp="<option value='0'"				
				else
					strTemp="<option value='" & rsClass("ClassID") & "'"
				end if
			else
				strTemp="<option value='" & rsClass("ClassID") & "'"
			end if		
			strTemp=strTemp & ">"			
			if tmpDepth>0 then
				for i=1 to tmpDepth
					strTemp=strTemp & "&nbsp;&nbsp;"
					if i=tmpDepth then
						if rsClass("NextID")>0 then
							strTemp=strTemp & "├&nbsp;"
						else
							strTemp=strTemp & "└&nbsp;"
						end if
					else
						if arrShowLine(i)=True then
							strTemp=strTemp & "│"
						else
							strTemp=strTemp & "&nbsp;"
						end if
					end if
				next
			end if
			if Language=1 then
			  strTemp=strTemp & rsClass("ClassNameEn")
			else
			  strTemp=strTemp & rsClass("ClassName")
			end if    
			if rsClass("LinkUrl")<>"" then
				strTemp=strTemp & "(外)"
			end if
			strTemp=strTemp & "</option>"
			response.write strTemp
			rsClass.movenext
		loop
	end if
	rsClass.close
	set rsClass=nothing
end sub


'**************************************************
'函數名:SendMail
'作  用:用Jmail組件發送郵件
'參  數:MailtoAddress  ----收信人地址
'        MailtoName    -----收信人姓名
'        Subject       -----主題
'        MailBody      -----信件內容
'        FromName      -----發信人姓名
'        MailFrom      -----發信人地址
'        Priority      -----信件優先級
'**************************************************
function SendMail(Email,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
	JmailMsg.Logging = 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 Email,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='inc/Admin_Style.css' rel='stylesheet' type='text/css'></head><body>" & vbcrlf
	strErr=strErr & "<table cellpadding=0 cellspacing=1 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='inc/Admin_Style.css' rel='stylesheet' type='text/css'></head><body>" & vbcrlf
	strSuccess=strSuccess & "<table cellpadding=0 cellspacing=1 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一区二区三区免费野_久草精品视频
国产成人鲁色资源国产91色综| 日韩亚洲国产中文字幕欧美| 99视频精品在线| 国产亚洲一区二区三区| 91麻豆swag| 欧美激情中文字幕一区二区| 一本到不卡免费一区二区| 九九热在线视频观看这里只有精品| 欧美挠脚心视频网站| 91精品国产综合久久小美女| 亚洲精品你懂的| 欧美成人精精品一区二区频| 在线观看av一区| 懂色av一区二区在线播放| 日本亚洲天堂网| 一片黄亚洲嫩模| 久久综合999| 欧美日韩国产综合一区二区| 成人av电影在线观看| 国产自产视频一区二区三区| 日韩专区欧美专区| 亚洲高清一区二区三区| 国产精品美女久久久久高潮| 精品国产1区二区| 7799精品视频| 欧美日韩视频专区在线播放| 日本国产一区二区| 日本伦理一区二区| av一区二区三区黑人| 亚洲女子a中天字幕| 国产精品一区专区| 蜜臀av一区二区| 日韩精品视频网| 日韩av在线播放中文字幕| 亚洲一区二区五区| 一区二区三区精品在线观看| 亚洲欧美日韩久久精品| 自拍偷拍欧美激情| 最新久久zyz资源站| 国产精品电影一区二区| 中文一区在线播放| 国产农村妇女毛片精品久久麻豆| 精品一二三四区| 麻豆精品一区二区三区| 蓝色福利精品导航| 国产综合久久久久影院| 国产精品18久久久久久久网站| 亚洲欧美偷拍另类a∨色屁股| 777xxx欧美| 777a∨成人精品桃花网| 日韩视频免费观看高清完整版在线观看| 国产麻豆精品在线观看| 成人一区二区三区视频| av动漫一区二区| 欧美极品美女视频| 精品国产免费一区二区三区香蕉 | 国产精品每日更新| 久久日韩精品一区二区五区| 久久久久久久久免费| 国产精品久久久久一区二区三区 | 有码一区二区三区| 亚洲欧美偷拍三级| 性做久久久久久| 日本sm残虐另类| 国产精品99久久久久久似苏梦涵| 亚洲成人自拍一区| 男人的天堂亚洲一区| 国产在线视频一区二区三区| 国产99久久久国产精品免费看| 亚洲乱码精品一二三四区日韩在线| 久久综合五月天婷婷伊人| 欧美国产日韩a欧美在线观看| 日韩一区二区三区电影在线观看 | 中文天堂在线一区| 亚洲精品欧美激情| 亚洲大片免费看| 国产精品一区二区不卡| 色系网站成人免费| 日韩免费观看高清完整版| 一区视频在线播放| 日韩电影在线免费观看| 国产一区二区久久| 日本乱码高清不卡字幕| 日韩欧美中文字幕制服| 亚洲视频精选在线| 久久99精品国产麻豆婷婷| 91丝袜国产在线播放| 日韩三级伦理片妻子的秘密按摩| 欧美精品一级二级三级| 精品国产1区2区3区| 亚洲区小说区图片区qvod| 精品综合免费视频观看| 在线免费观看不卡av| 久久这里只有精品首页| 亚洲午夜久久久久久久久电影院 | 精品国产百合女同互慰| 国产精品青草久久| 秋霞影院一区二区| 99在线精品视频| 精品日韩一区二区三区免费视频| 91精品福利在线一区二区三区| 欧美理论电影在线| 国产精品国产自产拍高清av| 蜜臀av性久久久久蜜臀aⅴ流畅| 日韩在线一区二区| 色综合久久中文综合久久牛| 日韩欧美在线网站| 亚洲午夜久久久久中文字幕久| 亚洲大片精品永久免费| 成人国产免费视频| 久久日一线二线三线suv| 日日骚欧美日韩| 91国偷自产一区二区使用方法| 欧美三级韩国三级日本三斤 | 91精品国产aⅴ一区二区| 欧美国产成人在线| 国产中文一区二区三区| 欧美一二三区在线| 日韩av在线播放中文字幕| 在线视频欧美区| 亚洲男同性恋视频| 91网页版在线| 亚洲天堂精品在线观看| 国产白丝精品91爽爽久久| 精品成人在线观看| 麻豆高清免费国产一区| 日韩三级视频在线看| 日韩精品福利网| 欧美久久久一区| 首页亚洲欧美制服丝腿| 欧美日韩中文字幕一区二区| 亚洲精品五月天| 在线亚洲一区二区| 一区二区三区日韩在线观看| 在线亚洲免费视频| 亚洲国产一二三| 欧美美女黄视频| 欧美精品色一区二区三区| 亚洲成人午夜影院| 欧美偷拍一区二区| 午夜精品成人在线视频| 777亚洲妇女| 激情小说欧美图片| 久久婷婷久久一区二区三区| 国产精品影音先锋| 国产精品久久久久久妇女6080| 亚洲成人综合在线| 69av一区二区三区| 精品一区二区免费视频| 久久精品视频网| www.亚洲人| 亚洲成av人综合在线观看| 欧美精品成人一区二区三区四区| 国产日产欧美一区| 国产v综合v亚洲欧| 国产精品久久久久久久久久免费看 | 国产精品入口麻豆原神| 成人性生交大合| 一区二区三区在线播| 制服丝袜日韩国产| 蜜臀va亚洲va欧美va天堂| 久久午夜老司机| 97se亚洲国产综合自在线不卡| 欧美va日韩va| 成人精品免费网站| 一区二区三区四区在线播放| 欧美日韩一区二区三区视频| 玖玖九九国产精品| 国产精品毛片高清在线完整版| 国产一区二区三区四| 亚洲色图欧美偷拍| 欧美猛男男办公室激情| 国产乱码精品一区二区三区忘忧草| 777色狠狠一区二区三区| 黑人巨大精品欧美黑白配亚洲| 欧美日韩中文国产| 国产专区欧美精品| 一区二区三区四区激情| 亚洲精品一线二线三线 | 国产成人免费xxxxxxxx| 亚洲精品久久嫩草网站秘色| 日韩亚洲欧美成人一区| 9色porny自拍视频一区二区| 亚洲国产va精品久久久不卡综合| 91福利在线看| 国产乱码精品一区二区三区av| 日韩精品一区二区在线观看| 成人夜色视频网站在线观看| 日日噜噜夜夜狠狠视频欧美人| 51精品国自产在线| 91亚洲大成网污www| 免费人成精品欧美精品| 国产精品久久毛片a| 欧美一区二区三区在线电影| 成人免费av资源| 久久精品国产免费| 一区二区免费视频| 国产精品资源在线看| 国产精品久久久久一区二区三区| 亚洲国产日韩精品|