亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
欧美群妇大交群中文字幕| 国产米奇在线777精品观看| 日本乱人伦aⅴ精品| 国产精品理伦片| 一本一道波多野结衣一区二区| 成人视屏免费看| 亚洲欧美国产77777| 91福利在线免费观看| 日韩国产欧美在线视频| 久久综合色播五月| 国产a久久麻豆| 亚洲国产精品一区二区久久| 7777精品伊人久久久大香线蕉超级流畅 | 成人污污视频在线观看| 中文字幕在线不卡一区| 欧美色爱综合网| 国产一区美女在线| 亚洲欧美电影一区二区| 91精品国产全国免费观看| 激情国产一区二区| 日韩毛片精品高清免费| 91精品国产综合久久小美女| 国产在线精品免费av| 亚洲欧美另类小说视频| 日韩视频一区二区| 99久久er热在这里只有精品66| 午夜国产精品影院在线观看| 国产欧美日韩久久| 欧美精品少妇一区二区三区| 国产精品99久久久久| 亚洲精品成人天堂一二三| 精品国产一区二区三区忘忧草 | 亚洲欧美成人一区二区三区| 91精品国产手机| 99久久精品国产精品久久| 日韩国产精品久久久久久亚洲| 国产精品国产三级国产a | www欧美成人18+| 欧美久久一二三四区| 成人黄色777网| 黄一区二区三区| 亚洲国产精品自拍| 国产精品不卡一区二区三区| 精品1区2区在线观看| 欧美午夜不卡视频| 9i在线看片成人免费| 麻豆一区二区在线| 亚洲电影一区二区三区| 国产精品久久久久久久久免费丝袜 | 亚洲一区二区三区中文字幕| 国产亚洲欧洲997久久综合| 91精品在线麻豆| 色综合咪咪久久| 懂色av噜噜一区二区三区av| 老司机午夜精品99久久| 亚洲成人自拍网| 亚洲蜜桃精久久久久久久| 久久精品水蜜桃av综合天堂| 7777精品伊人久久久大香线蕉完整版| 91国在线观看| 91在线观看美女| youjizz国产精品| 丁香六月综合激情| 国产成人av一区二区三区在线观看| 奇米精品一区二区三区在线观看 | 综合激情成人伊人| 中文字幕第一区| 国产精品视频yy9299一区| 精品国产乱码91久久久久久网站| 51久久夜色精品国产麻豆| 色老汉av一区二区三区| 91社区在线播放| 色欧美乱欧美15图片| www.色综合.com| 99久久婷婷国产精品综合| 99久久精品免费| 色欧美片视频在线观看在线视频| 91免费版pro下载短视频| 99久久99久久久精品齐齐| av网站一区二区三区| av网站免费线看精品| 91麻豆视频网站| 欧美午夜影院一区| 91精品国产91综合久久蜜臀| 日韩亚洲欧美中文三级| 欧美精品一区男女天堂| 久久久久久久久久久久久女国产乱| 精品第一国产综合精品aⅴ| 久久久国产精品不卡| 欧美国产国产综合| 亚洲私人影院在线观看| 一区二区三区四区高清精品免费观看| 亚洲国产欧美在线| 天堂va蜜桃一区二区三区漫画版| 日本美女一区二区三区| 国产一区二区三区最好精华液| 国产一本一道久久香蕉| 97精品久久久午夜一区二区三区| 色欧美乱欧美15图片| 日韩视频123| 国产农村妇女毛片精品久久麻豆 | 亚洲国产精品传媒在线观看| 国产精品高潮久久久久无| 亚洲一区二区成人在线观看| 婷婷国产在线综合| 韩国一区二区视频| 色综合天天性综合| 久久亚洲一区二区三区四区| 国产精品毛片a∨一区二区三区| 一区二区三区产品免费精品久久75| 免费人成在线不卡| 成人精品免费看| 欧美男女性生活在线直播观看| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 6080日韩午夜伦伦午夜伦| 26uuu国产在线精品一区二区| 亚洲欧洲av另类| 日本亚洲欧美天堂免费| 成人美女视频在线观看18| 欧美日韩国产中文| 中文一区一区三区高中清不卡| 亚洲第一会所有码转帖| 国产麻豆一精品一av一免费 | 99国产精品久久久久久久久久| 在线不卡的av| 国产精品黄色在线观看| 六月丁香婷婷久久| 欧美中文字幕一区二区三区亚洲| 欧美精品一区二区三区很污很色的| 国产精品国产自产拍高清av王其| 麻豆国产欧美日韩综合精品二区| 一本久久a久久精品亚洲| 久久精品网站免费观看| 日本免费新一区视频| 欧美最新大片在线看| 日本一区二区不卡视频| 免费欧美在线视频| 欧美影院精品一区| ...xxx性欧美| 国产风韵犹存在线视精品| 日韩精品最新网址| 日韩精品亚洲一区| 欧美性videosxxxxx| 亚洲色图色小说| 成人一道本在线| 久久亚洲欧美国产精品乐播| 免费高清不卡av| 欧美乱妇15p| 亚洲高清免费观看高清完整版在线观看| 成人免费高清在线| 国产欧美日韩中文久久| 久久成人免费电影| 精品三级在线看| 裸体健美xxxx欧美裸体表演| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 成人免费高清在线观看| 久久看人人爽人人| 国产真实乱子伦精品视频| 日韩美女视频在线| 另类调教123区| 精品国产乱码久久久久久图片| 日本亚洲电影天堂| 日韩一区二区在线看| 日韩精品一区第一页| 欧美浪妇xxxx高跟鞋交| 五月开心婷婷久久| 日韩一区二区在线看| 欧美bbbbb| 久久亚洲一级片| 丰满白嫩尤物一区二区| 中文字幕欧美日本乱码一线二线 | 男女男精品视频网| 精品卡一卡二卡三卡四在线| 极品少妇xxxx精品少妇| 精品福利av导航| 成人a免费在线看| 亚洲免费观看高清完整版在线 | 精品国精品自拍自在线| 久久99国内精品| 国产女同性恋一区二区| 盗摄精品av一区二区三区| 亚洲婷婷综合久久一本伊一区| 色综合中文综合网| 久久九九久久九九| 成人免费毛片片v| 亚洲精品自拍动漫在线| 欧美日韩免费电影| 精品综合久久久久久8888| 国产午夜精品久久久久久久 | 中文一区一区三区高中清不卡| 成人av在线观| 亚洲一区二区三区中文字幕| 欧美精品1区2区3区| 久久se精品一区二区| 国产三级欧美三级日产三级99| 成人网在线免费视频| 亚洲综合免费观看高清在线观看| 欧美一级理论片| 丁香亚洲综合激情啪啪综合| 亚洲日本欧美天堂|