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

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

?? function.asp

?? 唐網公司企業網站管理系統源碼 雙數據庫 sql access 功能強大 易于擴展
?? 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(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一区二区三区免费野_久草精品视频
午夜激情综合网| 国产欧美精品区一区二区三区 | 精品福利二区三区| 97se亚洲国产综合自在线观| 免费在线观看成人| 亚洲视频在线一区二区| 精品乱人伦一区二区三区| 91色九色蝌蚪| 丁香婷婷综合五月| 看国产成人h片视频| 亚洲影视资源网| 国产精品欧美极品| 久久亚洲精品小早川怜子| 欧美片网站yy| 91九色02白丝porn| 成人va在线观看| 国产成人自拍在线| 久久激情五月激情| 日本欧美大码aⅴ在线播放| 亚洲免费高清视频在线| 中文字幕欧美激情一区| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美性大战xxxxx久久久| av一区二区三区四区| 丁香五精品蜜臀久久久久99网站| 精品制服美女久久| 免费在线观看一区| 天天av天天翘天天综合网 | 日本电影亚洲天堂一区| 国产成人av自拍| 国产毛片精品国产一区二区三区| 日韩1区2区日韩1区2区| 亚洲成a人v欧美综合天堂下载| 亚洲美女在线国产| 亚洲天堂av一区| 亚洲乱码国产乱码精品精可以看| 中文字幕在线视频一区| 国产精品乱码久久久久久| 国产欧美一区二区精品性色超碰| 2021国产精品久久精品| 精品国产乱码久久久久久1区2区| 麻豆国产欧美一区二区三区| 欧美精品一区男女天堂| 日韩欧美一级二级| 亚洲精品在线三区| 久久精品亚洲麻豆av一区二区| 久久久精品国产99久久精品芒果| 久久精品综合网| 国产精品动漫网站| 亚洲视频免费在线| 亚洲第一福利一区| 麻豆一区二区三| 国产精品一区二区你懂的| 国产suv精品一区二区6| jlzzjlzz亚洲日本少妇| 91女厕偷拍女厕偷拍高清| 91国产免费观看| 91 com成人网| 久久久99精品久久| 亚洲嫩草精品久久| 午夜一区二区三区视频| 美女精品一区二区| 国产成人啪午夜精品网站男同| 播五月开心婷婷综合| 在线这里只有精品| 日韩小视频在线观看专区| 国产日韩欧美一区二区三区乱码| 欧美国产在线观看| 亚洲国产精品久久久男人的天堂| 日本欧美久久久久免费播放网| 国产激情偷乱视频一区二区三区| 不卡av在线免费观看| 欧美日韩国产精品自在自线| 久久先锋资源网| 一个色综合av| 狠狠久久亚洲欧美| 色狠狠av一区二区三区| 日韩欧美一级二级三级| ...xxx性欧美| 美女视频黄久久| 99热精品国产| 日韩欧美国产系列| 亚洲激情校园春色| 国产精品夜夜嗨| 欧美日韩精品欧美日韩精品| 久久久久久9999| 午夜一区二区三区视频| 成人高清伦理免费影院在线观看| 欧美欧美欧美欧美首页| 一区在线观看免费| 美国欧美日韩国产在线播放| 91免费看`日韩一区二区| 欧美一区三区四区| 亚洲欧美色图小说| 国产精品一级二级三级| 欧美精品三级日韩久久| 最新成人av在线| 国产一区二区三区在线观看免费视频| 在线免费亚洲电影| 国产精品高清亚洲| 久久99精品国产麻豆不卡| 欧美色网一区二区| 亚洲欧美在线视频| 国产成人鲁色资源国产91色综 | 久久久欧美精品sm网站| 欧美乱妇一区二区三区不卡视频 | 亚洲与欧洲av电影| 国产91丝袜在线观看| 日韩欧美国产1| 亚洲国产美女搞黄色| 成人免费看片app下载| 日韩精品一区二区三区在线播放| 亚洲综合在线观看视频| 成人av电影在线播放| 久久毛片高清国产| 日本伊人精品一区二区三区观看方式| 91丨九色丨黑人外教| 欧美韩国一区二区| 国产精品99久久久久久有的能看| 欧美一区二区在线视频| 亚洲国产成人av好男人在线观看| av中文字幕亚洲| 国产精品国产自产拍高清av| 国产精华液一区二区三区| 精品国产乱码久久久久久夜甘婷婷| 日韩制服丝袜先锋影音| 欧美三级韩国三级日本一级| 亚洲精品成人精品456| 97久久久精品综合88久久| 国产精品视频你懂的| 国产精品白丝jk黑袜喷水| 国产日韩在线不卡| 国产·精品毛片| 国产精品看片你懂得| av不卡免费在线观看| 国产精品成人一区二区三区夜夜夜| 福利电影一区二区| 中文字幕视频一区二区三区久| 成人国产精品免费| 成人欧美一区二区三区视频网页| 成人av在线影院| 亚洲精品一卡二卡| 91国产视频在线观看| 亚洲国产精品影院| 欧美蜜桃一区二区三区| 日韩av中文字幕一区二区| 欧美一区二区福利视频| 久久国产人妖系列| 久久久99免费| 99国产精品99久久久久久| 亚洲视频免费看| 欧美日韩精品一区视频| 蜜臀av性久久久久蜜臀av麻豆| 精品国产免费一区二区三区四区| 国产一区二三区好的| 国产女主播一区| 91久久人澡人人添人人爽欧美| 婷婷中文字幕综合| 精品人伦一区二区色婷婷| 国产成人在线看| 一区二区中文字幕在线| 欧美日韩成人一区二区| 极品少妇一区二区三区精品视频| 国产日韩精品视频一区| 色狠狠av一区二区三区| 毛片不卡一区二区| 国产精品免费看片| 欧美少妇一区二区| 韩国一区二区视频| 亚洲另类色综合网站| 日韩一区二区电影网| 成人高清免费观看| 天天操天天综合网| 中文字幕精品一区二区精品绿巨人 | 国产在线不卡视频| 中文字幕一区二区三| 欧美视频在线不卡| 国内精品视频666| 亚洲精品国产一区二区精华液| 56国语精品自产拍在线观看| 国产成人在线网站| 午夜不卡av免费| 国产精品久久久久久久久晋中| 欧美日韩免费电影| 成人综合在线网站| 麻豆国产精品一区二区三区| 中文字幕欧美一| 欧美精品一区二区在线观看| 欧美色爱综合网| 高清国产午夜精品久久久久久| 亚洲国产美国国产综合一区二区| 久久免费的精品国产v∧| 欧美影院精品一区| 国产精品小仙女| 日韩av中文字幕一区二区| 亚洲欧美日韩中文播放| www国产成人| 欧美精品18+| 欧洲一区在线观看| 岛国av在线一区|