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

📄 listzt.asp

📁 21世纪人才www.51zy.net 网站源码
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=webname%>--商品专题</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
body,td,th {
	font-size: 12px;
}
strong {
	font-size: 13px;
}
-->
</style></head>
<%if IsNumeric(request.QueryString("id"))=False then
response.write("<script>alert(""非法访问!"");location.href=""index.asp"";</script>")
response.end
end if
dim id
id=request.QueryString("id")
if not isinteger(id) then
response.write"<script>alert(""非法访问!"");location.href=""index.asp"";</script>"
end if%>
<body>
<table width="383" border="0" cellpadding="0" cellspacing="0">
<tr> 
<td width="100%" valign="top"> 
        <%set rs=server.createobject("adodb.recordset")
		rs.open "select * from zhuanti where newsid="&request("id"),conn,1,1
		title=trim(rs("title"))
		UpdateTime=trim(rs("UpdateTime"))
		News_Content=rs("Content")
		'News_Content=replace(News_Content,"uploadpic/","/uploadpic/")
		if trim(rs("titlecolor"))<>"" then 
			titlecolor=trim(rs("titlecolor"))
		else
			titlecolor="#FF0000"
		end if
		if trim(rs("titlesize"))<>"" then 
			titlesize=trim(rs("titlesize"))
		else
			titlesize="2"
		end if
		if trim(rs("titleface"))<>"" then 
			titleface=trim(rs("titleface"))
		else
			titleface="黑体_gb2312"
		end if
		if trim(rs("titletype"))<>"" then 
			titletype=trim(rs("titletype"))
		else
			titletype="b"
		end if
		rs.Close
		set rs=nothing
			%>
<table width="95%" border="0" cellspacing="0" cellpadding="5" align="center">
<tr> 
<td align="center" style="font-size:12px" height="25">
<%
tmp_center="<font color="&titlecolor&"><strong>"
if titletype="0" then
tmp_center=tmp_center&title
end if
if titletype="1" then
tmp_center=tmp_center&""&title&""
end if
if titletype="b" then
tmp_center=tmp_center&""&title&""
end if
if titletype="i" then
tmp_center=tmp_center&""&title&""
end if
if titletype="u" then
tmp_center=tmp_center&""&title&""
end if
tmp_center=tmp_center&"<strong></strong></font>"&VbCrLf
response.write tmp_center
%>
</td>
</tr>
<tr> 
	<td><%=HtmlSelfEnCode(News_Content)%></td>
</tr>
</table>
<%
Function HtmlSelfEnCode(content)
TempContent=content
TempContent=replace(TempContent,"<IMG src=","<P align=center><IMG  onload='javascript:if(this.width>screen.width-333)this.width=screen.width-333' src=")
HtmlSelfEnCode=TempContent
End Function
%>
</td>
</tr>
</table>

</body>
</html>

⌨️ 快捷键说明

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