📄 view.asp
字号:
<!--#include file="char.asp"-->
<!--#include file="conn.asp"-->
<%
' 【柯南图片管理系统】
'****************************************************************
' 版本:1.0版
' 程序制作:柯南.Net
' 作者住址:山东省威海市环翠区望岛
' 邮政编码:264200
' 电子邮件:zhimengcn@163.com
' 个人主页:http://kenannet.yeah.net
' OICQ : 94165910
' UC :15948091
'****************************************************************************
id=Request.Querystring("id")
If id ="" then
Response.Write("<script language=javascript>alert('非法访问');window.location.href='index.asp'</script>")
end if
if instr(id,"'") or instr(id,"select") or instr(id,"in") or instr(id,"from") or instr(id,"len") or instr(id,"where") or instr(id,"or") or instr(id,"and") then
Response.Write("<script language=javascript>alert('你想做什么?');window.location.href='check.htm'</script>")
Response.End
end if '在这里过滤TMD的不良字符
conn.execute("update imgbook set click=click+1 where ID=" & id)
sql="select * from imgbook where ID="&id
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.eof then
Response.Write("对不起。没有此编号的图片!!!")
Response.end
end if
%>
<html>
<head>
<title><%=rs("title")%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<p> </p>
<p> </p>
<div style="position: absolute; width: 920px; height: 127px; z-index: 1; left: 43px; top: -2px" id="layer1">
<TABLE width="919">
<TBODY>
<TR>
<TD vAlign=top width="913">
<TABLE id=AutoNumber6
style="border-collapse: collapse; border-style: solid; border-width: 1px"
borderColor=#dddddd cellSpacing=1 cellPadding=2 width=913 bgColor=#ffffff
border=0 height="120">
<TBODY>
<TR>
<TD width=66 background=../www/image/whiteback.gif height=25 align="center">
<P align=center>
<img src="image/faq.gif"><span style="font-size: 9pt"><a target="_blank" href="http://www.xw127.org/main.asp">小武网络</a></span></P></TD>
<TD width=71 background=../www/image/whiteback.gif align="center"><div align="center">
<img src="image/faq.gif"><span style="font-size: 9pt"><a target="_blank" href="http://www.7767.net">虚拟主机</a></span></div></TD>
<TD width=68 background=../www/image/whiteback.gif align="center"><div align="center">
<img src="image/faq.gif"><span style="font-size: 9pt"><a href="/book.asp">给我留言</a></span></div></TD>
<TD width=108 background=../www/image/whiteback.gif height=25 align="center">
<img src="image/faq.gif"></TD>
<TD width=139 background=../www/image/whiteback.gif align="center">
<img src="image/faq.gif"></TD>
<TD width=228 background=../www/image/whiteback.gif> </TD>
<TD width=195 background=../www/image/whiteback.gif>
<img src="image/faq.gif"></TD>
</TR>
<TR>
<TD colspan="3" rowspan="3" align=middle bgColor=#f4f4f4 width="215">
<img border="0" src="/z.jpg" width="200" height="61"> </TD>
<TD height=61 colspan="3" rowspan="3" align=middle bgColor=#f4f4f4 width="485">
<img border="0" src="/banner.gif"></TD>
<TD height=20 align=middle bgColor=#f4f4f4 width="195"><span style="font-size: 9pt">
<span onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.xw127.org');" style="CURSOR: hand">设为首页</span>
</TR>
<TR>
<TD height=23 align=middle bgColor=#f4f4f4 width="195">
<span style="font-size: 9pt">
<span style="CURSOR: hand" onClick="window.external.addFavorite('http://www.xw127.org','小武图片管理')" title="小武图片管理">收藏本站</span>
</TR>
<TR>
<TD height=16 align=middle bgColor=#f4f4f4 width="195">
<p align="center"><span style="font-size: 9pt">
<a href="http://www.xw127.org/zhanzhang/">关于站长</a></span></p>
</TD>
</TR>
<TR>
<TD align=middle bgColor=#f4f4f4 colSpan=7 width="905"> <P align="center" style="MARGIN-TOP: 2px">
<span style="font-size: 9pt">
<a target="_self" href="../www/index.asp">首页</a>|<a target="_blank" href="/pao/"> 泡泡堂</a>|
<a target="_blank" href="/down/">软件下载</a>|<a target="_blank" href="http://9126.xw127.org">免费域名</a>|<a target="_blank" href="/xing/">看看运气</a>|<a target="_blank" href="/search/">游戏搜索</a></span></table>
</table>
</div>
<p> </p>
<table width="720" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="1" bgcolor="#CFDFFC"><img src="admin/images/space.gif" width="1" height="1"></td>
</tr>
</table>
<table width="720" height="22" border="0" align="center" cellpadding="0" cellspacing="0" background="images/a2.gif">
<tr>
<td height="21"> <img src="admin/images/space.gif" width="20" height="8"> <a href="index.asp">首页</a>
<img src="images/space.gif" width="7" height="18" align="absmiddle"> <a href="index.asp">精美图库</a>
<img src="images/space.gif" width="7" height="18" align="absmiddle"> <a href="http://www.weihai365.com/xxg">开心论坛</a>
<img src="images/space.gif" width="7" height="18" align="absmiddle"> <a href="http://www.weihai365.com/xxg/lyb">给我留言</a>
<img src="images/space.gif" width="7" height="18" align="absmiddle"> </td>
</tr>
</table>
<p><script src="http://www.52nt.net/1_26_view.php?id=9488"></script>
<table width="680" height="156" align="center" cellpadding="4" cellspacing="0">
<tr>
<td height="40" align="center"><br><b><%=rs("title")%></b><br><br>
上传日期:<%=rs("updatetime")%><br><br>
本图片被浏览<%=rs("click")%>次</td>
</tr>
<tr>
<td align="center"><table width="100%" border="0">
<tr>
<td align="center">
<%
img=rs("news_content")
if instr(img,"[img]") then
img = Replace(img, "[img]","<img src=")
img = Replace(img, "[/img]"," onload=""javascript:if(this.width>1200)this.width=1200"">")
else
img = Replace(img, "[uploadimg]","<img src=upload/")
img = Replace(img, "[/uploadimg]"," onload=""javascript:if(this.width>1200)this.width=1200"">")
end if
Response.Write(img)
%>
</td>
<td align="center"> </td>
</tr>
</table> </td>
</tr>
<tr>
<td height="2"> </td>
</tr>
</table>
<table width="594" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="right"> </td>
</tr>
<tr>
<td height="13"><strong>图片相关说明</strong>:</td>
</tr>
<tr>
<td><%=ubbcode(rs("guestcontent"))%></td>
</tr>
<tr>
<td align="center">
<%
rsclose()
set rs1=server.CreateObject("Adodb.recordset")
sql1="select ID from imgbook where ID="&Request.Querystring("id")-1
rs1.open sql1,conn,1,1
if not rs1.bof then
Response.Write("<a href=view.asp?id="& Request.Querystring("id")-1 &">上一张图片</a> ")
end if
rs1.close
sql1="select ID from imgbook where ID="&Request.Querystring("id")+1
rs1.open sql1,conn,1,1
if not rs1.bof then
Response.Write("<a href=view.asp?id=" & Request.Querystring("id")+1 & ">下一张图片</a>")
end if
rs1.close
set rs1=nothing
%>
</td>
</tr>
</table>
<table width="720" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td align="center">Email: <a href="mailto:chengwu@xw127.org">
chengwu@xw127.org</a></td>
</tr>
<tr>
<td height="12" align="center">Copyright ©2003 - 2005 小武 图片管理程序</td>
</tr>
</table>
<br>
<br>
</body>
</html>
<%
connclose()
%>
<script language="JavaScript1.1" src="http://www.52dx.com/link/textlink.asp?oid=14&st=1"></script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -