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

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

?? b2b_fsys1.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'><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:window.location='" & strUrl & "page=" & "'+this.options[this.selectedIndex].value;"">"   
    	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></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

'------------------檢查某一目錄是否存在-------------------
Function CheckDir(FolderPath)
	dim fso
	folderpath=Server.MapPath(".")&"\"&folderpath
	Set fso1 = Server.CreateObject("Scripting.FileSystemObject")
	If fso.FolderExists(FolderPath) then
	'存在
		CheckDir = True
	Else
	'不存在
		CheckDir = False
	End if
	Set fso = nothing
End Function

'-------------根據指定名稱生成目錄---------
Function MakeNewsDir(foldername)
	dim fso,f
	Set fso = Server.CreateObject("Scripting.FileSystemObject")
    Set f = fso.CreateFolder(foldername)
    MakeNewsDir = True
	Set fso = nothing
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><br><br>" & vbcrlf
	strErr=strErr & "<table cellpadding=2 cellspacing=1 border=0 width=400 class='border' align=center>" & vbcrlf
	strErr=strErr & "  <tr align='center' class='title'><td height='22'><strong>錯誤信息</strong></td></tr>" & vbcrlf
	strErr=strErr & "  <tr class='tdbg'><td height='100' valign='top'><b>產生錯誤的可能原因:</b>" & errmsg &"</td></tr>" & vbcrlf
	strErr=strErr & "  <tr align='center' class='tdbg'><td><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><br><br>" & vbcrlf
	strSuccess=strSuccess & "<table cellpadding=2 cellspacing=1 border=0 width=400 class='border' align=center>" & vbcrlf
	strSuccess=strSuccess & "  <tr align='center' class='title'><td height='22'><strong>恭喜你!</strong></td></tr>" & vbcrlf
	strSuccess=strSuccess & "  <tr class='tdbg'><td height='100' valign='top'><br>" & SuccessMsg &"</td></tr>" & vbcrlf
	strSuccess=strSuccess & "  <tr align='center' class='tdbg'><td>&nbsp;</td></tr>" & vbcrlf
	strSuccess=strSuccess & "</table>" & vbcrlf
	strSuccess=strSuccess & "</body></html>" & vbcrlf
	response.write strSuccess
end sub

'**************************************************
'函數名:CheckUserLogined
'作  用:檢查用戶是否登錄
'參  數:無
'返回值:True ----已經登錄
'        False ---沒有登錄
'**************************************************
function CheckUserLogined()
	dim Logined,UserName,Password,UserLevel,rs,sql
	Logined=True
	UserName=Request.Cookies("asp163")("UserName")
	Password=Request.Cookies("asp163")("Password")
	UserLevel=Request.Cookies("asp163")("UserLevel")
	if UserName="" then
		Logined=False
	end if
	if Password="" then
		Logined=False
	end if
	if UserLevel="" then
		Logined=False
	end if
	if Logined=True then
		username=replace(trim(username),"'","")
		password=replace(trim(password),"'","")
		UserLevel=Cint(trim(UserLevel))
		set rs=server.createobject("adodb.recordset")
		sql="select * from [User] where LockUser=False and username='" & username & "' and password='" & password &"'"
		rs.open sql,conn,1,1
		if rs.bof and rs.eof then
			Logined=False
		else
			if password<>rs("password") or UserLevel<rs("UserLevel") then
				Logined=False
			end if
		end if
		rs.close
		set rs=nothing
	end if
	CheckUserLogined=Logined
end function

'**************************************************
'函數名:ReplaceBadChar
'作  用:過濾非法的SQL字符
'參  數:strChar-----要過濾的字符
'返回值:過濾后的字符
'**************************************************
function ReplaceBadChar(strChar)
	if strChar="" then
		ReplaceBadChar=""
	else
		ReplaceBadChar=replace(replace(replace(replace(replace(replace(replace(strChar,"'",""),"*",""),"?",""),"(",""),")",""),"<",""),".","")
	end if
end function


'=================================================
'過程名:ShowSearchForm
'作  用:顯示文章搜索表單
'參  數:ShowType ----顯示方式。1為簡潔模式,2為標準模式,3為高級模式
'=================================================
sub ShowSearchForm(Action,ShowType)
	if ShowType<>1 and ShowType<>2 and ShowType<>3 then
		ShowType=1
	end if
	response.write "<table border='0' cellpadding='0' cellspacing='0'>"
	response.write "<form method='Get' name='SearchForm' action='" & Action & "'>"
	response.write "<tr><td height='28' align='center'>"
	if ShowType=1 then
		response.write "<input type='text' name='keyword'  size='15' value='關鍵字' maxlength='50' onFocus='this.select();'>&nbsp;"
		response.write "<input type='hidden' name='field' value='Title'>"
		response.write "<input type='submit' name='Submit'  value='搜索'>"
		'response.write "<br><br>高級搜索"
	elseif Showtype=2 then
		response.write "<select name='Field' size='1'>"
    	response.write "<option value='Title' selected>文章標題</option>"
	    response.write "<option value='Content'>文章內容</option>"
    	response.write "<option value='Author'>文章作者</option>"
    	response.write "<option value='Editor'>編輯姓名</option>"
		response.write "</select>&nbsp;"
		response.write "<select name='ClassID'><option value=''>所有欄目</option>"
		call Admin_ShowClass_Option(1,0)
		response.write "</select>&nbsp;<input type='text' name='keyword'  size='20' value='關鍵字' maxlength='50' onFocus='this.select();'>&nbsp;"
		response.write "<input type='submit' name='Submit'  value=' 搜索 '>"
	elseif Showtype=3 then
	
	end if
	response.write "</td></tr></form></table>"
end sub
%>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人免费视频网站在线观看| 亚洲福利国产精品| 亚洲最大成人综合| 天堂成人免费av电影一区| 免费一级欧美片在线观看| 福利视频网站一区二区三区| 一本大道久久a久久综合婷婷 | 国产精品传媒入口麻豆| 亚洲国产视频在线| 久久99在线观看| 91视频免费播放| 欧美一区二区三区人| 国产精品丝袜91| 午夜在线电影亚洲一区| 国产精品主播直播| 欧美日韩免费在线视频| 国产欧美日韩另类一区| 亚洲一区二区精品视频| 国产伦精一区二区三区| 欧美性大战久久久久久久| 久久蜜臀精品av| 爽好多水快深点欧美视频| 国产91精品精华液一区二区三区| 欧美日韩国产一区| 亚洲国产高清在线观看视频| 热久久国产精品| 91亚洲国产成人精品一区二区三 | 麻豆成人91精品二区三区| 91麻豆精东视频| 久久日韩粉嫩一区二区三区| 亚洲成人激情综合网| 成人avav影音| 337p日本欧洲亚洲大胆精品| 亚洲国产日韩精品| 成人禁用看黄a在线| 精品1区2区在线观看| 亚洲成a人片在线观看中文| 成人黄色免费短视频| 精品国产伦一区二区三区观看方式| 亚洲资源中文字幕| 99久久伊人久久99| 日韩欧美在线一区二区三区| 亚洲一区二区在线免费看| 暴力调教一区二区三区| 久久久久一区二区三区四区| 男男视频亚洲欧美| 欧美视频在线不卡| 亚洲欧美一区二区三区极速播放| 国产一本一道久久香蕉| 欧美成人性战久久| 日本免费新一区视频| 欧美日韩免费一区二区三区视频| 亚洲精品欧美激情| www.亚洲色图.com| 国产精品美女久久久久久久| 国产自产高清不卡| 337p日本欧洲亚洲大胆色噜噜| 免费观看久久久4p| 日韩午夜在线影院| 天堂va蜜桃一区二区三区漫画版| 91福利区一区二区三区| 亚洲欧美综合在线精品| 99久久婷婷国产综合精品| 国产精品福利一区二区| 成人av资源在线观看| 国产精品国产三级国产aⅴ入口| 国产成+人+日韩+欧美+亚洲| 久久综合久色欧美综合狠狠| 国产呦萝稀缺另类资源| 2023国产一二三区日本精品2022| 久久精品99国产精品日本| 精品久久久久久久久久久久久久久| 免费人成在线不卡| 精品久久一二三区| 韩国毛片一区二区三区| 久久免费午夜影院| 成人精品高清在线| 亚洲视频狠狠干| 在线精品国精品国产尤物884a| 亚洲午夜精品17c| 日韩一区国产二区欧美三区| 精品一区二区三区影院在线午夜| 精品国产成人系列| 成人一区在线观看| 一区二区三区四区在线播放| 欧美在线啊v一区| 午夜视黄欧洲亚洲| 日韩欧美国产三级| 国产激情视频一区二区三区欧美| 亚洲国产精品二十页| 色婷婷综合久久久久中文一区二区 | 亚洲永久精品大片| 欧美日韩国产中文| 精品一区二区三区视频在线观看| 国产午夜亚洲精品羞羞网站| 盗摄精品av一区二区三区| 亚洲欧美偷拍三级| 777午夜精品免费视频| 精一区二区三区| 久久精品人人做人人综合| eeuss鲁片一区二区三区在线看| 亚洲九九爱视频| 欧美一级国产精品| 成人午夜视频在线观看| 亚洲精品成人在线| 日韩一区二区麻豆国产| 国产福利一区二区| 洋洋成人永久网站入口| 日韩三级免费观看| caoporn国产精品| 亚洲成年人影院| 久久精品亚洲一区二区三区浴池| 99精品久久只有精品| 日韩国产欧美三级| 中文字幕第一区第二区| 欧美少妇一区二区| 国产乱人伦偷精品视频免下载| 亚洲免费在线看| 欧美不卡一区二区三区| 99久久免费视频.com| 久久精品999| 亚洲男女一区二区三区| 欧美大片一区二区三区| 99在线视频精品| 精品亚洲aⅴ乱码一区二区三区| 亚洲三级小视频| 精品对白一区国产伦| 欧美性色黄大片手机版| 国产乱码精品一区二区三区五月婷| 亚洲综合色在线| 亚洲国产精品黑人久久久 | 激情伊人五月天久久综合| 亚洲免费av高清| 久久精品男人的天堂| 9191国产精品| 99久久99久久免费精品蜜臀| 捆绑变态av一区二区三区| 亚洲欧美日韩国产中文在线| 久久蜜桃av一区二区天堂| 欧美三级蜜桃2在线观看| 国产成都精品91一区二区三| 日韩电影在线免费观看| 一区二区三区欧美| 国产精品入口麻豆九色| 精品999在线播放| 欧美一区午夜视频在线观看| 色成年激情久久综合| 国产成人av电影在线观看| 青青草视频一区| 亚洲一区二区免费视频| 亚洲视频 欧洲视频| 国产日韩欧美综合在线| 欧美v亚洲v综合ⅴ国产v| 欧美人与z0zoxxxx视频| 日本乱人伦一区| 成人免费观看男女羞羞视频| 狠狠色伊人亚洲综合成人| 日韩专区在线视频| 亚洲第一激情av| 亚洲一区二区视频在线观看| 亚洲视频免费在线观看| 中文字幕av一区二区三区免费看 | 成人一区二区三区视频在线观看| 日产国产高清一区二区三区| 亚洲成人综合视频| 一区二区三区在线观看视频| 中文字幕在线不卡视频| 国产精品全国免费观看高清| 日本一区二区三区电影| 久久精品亚洲一区二区三区浴池| 精品国产一区二区国模嫣然| 日韩欧美一区二区不卡| 日韩一级二级三级| 日韩欧美在线1卡| 欧美大片一区二区三区| 精品人在线二区三区| 精品少妇一区二区三区在线播放| 日韩精品午夜视频| 香蕉成人啪国产精品视频综合网| 亚洲成人免费在线| 午夜久久久影院| 三级欧美在线一区| 婷婷丁香激情综合| 视频一区二区三区中文字幕| 日韩国产一区二| 蜜桃久久久久久久| 狠狠色丁香婷婷综合| 国产精品123区| 高清成人在线观看| 99久久99久久精品免费看蜜桃| 91一区二区在线观看| 欧洲在线/亚洲| 欧美性一区二区| 欧美三级中文字| 欧美一级一区二区| 精品欧美一区二区久久| 欧美极品xxx| 亚洲免费在线电影| 亚洲成人黄色小说| 日本亚洲天堂网|