📄 lookphotos.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<!--#include file="mfk_body.asp"-->
<!--#include file="system/ubb.asp"-->
<html>
<head>
<title><%=title1%>--景点图片</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<%
call pagestart
dim id
id=trim(request("id"))
if id="" or not isnumeric(id) then
response.Redirect("error.asp?errormsg=<li>错误的参数传递,你确定你从有效链接进入!</li>")
end if
set rs=conn.execute("select * from photos where id="&id)
if rs.eof or rs.bof then
closers(rs)
response.Redirect("error.asp?errormsg=<li>没有找到你指定的图片,请重试!</li>")
end if
conn.execute("update photos set pclick=pclick+1 where id="&id)
%>
<table width="755" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="27"><img src="skins/mfk_skin(<%=skin%>)/mfk_lefttitle1.gif"></td>
<td width="701" background="skins/mfk_skin(<%=skin%>)/mfk_midtitle1.gif"> </td>
<td width="27"><img src="skins/mfk_skin(<%=skin%>)/mfk_righttitle1.gif"></td>
</tr>
</table>
<table width="755" border="0" align="center" cellpadding="0" cellspacing="0" class="lefttablebox">
<tr>
<td height="30"><table width="186" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30"> </td>
<td width="156">景 点 图 片 欣 赏</td>
</tr>
</table></td>
</tr>
<tr>
<td height="500" align="center" class="tablebg"><a href="<%=rs("ppath")%>" target="_blank"><img src="<%=rs("ppath")%>" alt="点击原始大小查看" width="740" height="486" border="0"></a></td>
</tr>
<tr>
<td height="30" class="titletable"><table width="748" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="374" height="26">图片名称:<%=rs("pname")%></td>
<%
set uprs=conn.execute("select pname,id from photos where id>"&id&" order by id desc")
%>
<td width="374" height="26">上一图片:
<%
if uprs.bof or uprs.eof then
response.write ("没有上一张图片了!")
else
response.write ("<a href='?id="&uprs("id")&"'>"&uprs("pname")&"</a>")
end if
uprs.close
set uprs=nothing
%></td>
</tr>
<tr>
<td height="26">图片加入日期:<%=rs("ptime")%></td>
<td height="26">下一图片:
<%
set uprs=conn.execute("select pname,id from photos where id<"&id&" order by id desc")
if uprs.bof or uprs.eof then
response.write ("没有下一张图片了!")
else
response.write ("<a href='?id="&uprs("id")&"'>"&uprs("pname")&"</a>")
end if
uprs.close
set uprs=nothing
%> </td>
</tr>
<tr>
<td height="26">图片点击次数:<%=rs("pclick")%></td>
<td height="26">图片说明:</td>
</tr>
<tr>
<td height="30" colspan="2" style="line-height: 18pt;word-break:break-all;"> <%=ubbcode(rs("pbio"))%></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="755" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
</table>
<%
closers(rs)
call pageend
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -