⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jpg.asp

📁 一个不错的企业网站源代码!
💻 ASP
字号:
<%@ LANGUAGE="VBscript" %>
<%
Response.Buffer=true
Response.Expires=0
%>
<!-- #include file="../dsn.asp" -->
<%
ids=Request.QueryString("id")
pic=cint(Request.QueryString("pic"))
if pic="" then pic=0
englishflag=Request.QueryString("englishflag")
if englishflag=1 then session("englishflag")=1
tabname=Request.QueryString("tabname")
if tabname="bbsuser" then
		filer="userid"
	else
		filer="id"
end if
set cn=server.CreateObject("adodb.connection")
cn.Open mycnstr
set rs=server.CreateObject("adodb.recordset")
sqltext="select * from "+tabname+" where "+filer+"="&ids
rs.Open sqltext,cn,1,1
if not rs.EOF then
		if pic=0 then
				Response.ContentType ="image/*"	
				Response.BinaryWrite rs("picfile")
		elseif pic=1 then
				Response.ContentType ="image/*"	
				Response.BinaryWrite rs("picfile1")
		elseif pic=2 then
				Response.ContentType ="image/*"	
				Response.BinaryWrite rs("picfile2")
		elseif pic=3 then
				Response.ContentType ="image/*"	
				Response.BinaryWrite rs("picfile3")
		end if
end if
rs.Close 
%>
<html>
<head>
<title>ͼƬ</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -