📄 photoview.asp
字号:
<!--#include file="config.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!--#include file="head.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=Sitename%>-相册</title>
<LINK href="css.css" type=text/css rel=stylesheet>
<script language="JavaScript" src="photoview.js"></script>
</head>
<body>
<%sitehead
if lockphoto=1 and session("xyluserid")="" then ShowError("相册暂时禁止游客访问,请登录后再查看")%>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr>
<td height="291" valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr>
<td height="25"> <img src="skins/1/xb3.gif"> 当前位置:<a href="index.asp">首页</a> >> <a href="photo.asp">相册</a> >> 查看照片</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
<tr>
<td height="20">
<div align="right">相册分类:
<%rs.open "select * from piclb order by id",conn,1,1
If Rs.eof and Rs.bof Then
Response.Write("暂无分类")
else
do while not rs.eof
Response.Write("<a href='photo.asp?piclb="&rs(0)&"'>"&rs(1)&"</a> <img src='skins/1/navspacer.gif' width='7' height='18' align='absmiddle'> ")
rs.movenext
loop
end if
rs.close%>
</div></td>
</tr>
</table>
<%Select Case request("type2")
Case "edit":
Call edit
Case "edit2":
Call edit2
Case "del":
Call del
Case "del2":
Call del2
Case "add":
Call add
Case Else:
call show
End Select
sub show
picid=clng(request("id"))
if picid="" or picid<1 then ShowError("访问图片不存在")
rs.open "select top 1 * from photo where id="&picid&"",conn,1,3
rs("dianji")=rs("dianji")+1
rs.update
If Rs.eof Then ShowError("访问图片不存在")%>
<table width="760" border="0" align="center" cellpadding="1" cellspacing="1" bordercolor="#CCCCCC" class="tableborder">
<tr>
<td width="69%" height="22" bgcolor="#FFFFFF"> 标题:<%=rs(2)%></td>
<td width="31%" bgcolor="#FFFFFF">添加日期:<%=rs("pubtime")%></td>
</tr>
<tr bgcolor="#FFFFFF" height="300">
<td colspan="2">
<div align="center"><a href='upphoto/<%=rs(1)%>' target="_blank"><img src="upphoto/<%=rs(1)%>" alt="点击查看全图" name=photo <%if rs("width")>750 then response.write "width=750" end if%> onload="javascript:if(this.width>750) this.width=750" border="0" class="picborder"></a></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" height="20"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="60%" height="20"> 状态栏:查看:<%=rs("dianji")%> 回复:<%=rs("liuyanshu")%> 宽度:<%=rs("width")%> 高度:<%=rs("height")%> 大小:<%=rs("photosize")/1000%>K</td>
<td width="26%"><%Set rs3 = Server.CreateObject("Adodb.Recordset")
rs3.open "select top 1 id from photo where id<"&picid&" and type2=3 order by lastupdatetime desc",conn,1,1
if not rs3.eof then%>
<a href="?id=<%=rs3(0)%>"><img src="image/p_pre.gif" alt="上一张" border="0"></a>
<%end if
rs3.close
rs3.open "select top 1 id from photo where id>"&picid&" and type2=3 order by lastupdatetime desc",conn,1,1
if not rs3.eof then%>
<a href="?id=<%=rs3(0)%>"><img src="image/p_next.gif" alt="下一张" border="0"></a> <%end if
rs3.close:set rs3=nothing%><a href="upphoto/<%=rs(1)%>"><img src="image/p_full.gif" alt="全图" width="18" height="18" border="0"></a> <A onfocus="this.blur()" href="javascript:fitpage(<%=rs("width")%>,<%=rs("height")%>)"><img src="image/p_fit.gif" alt="实际大小" width="18" height="18" border="0"></A> <A onfocus="this.blur()" href="javascript:zoomin()"><img src="image/p_zoomin.gif" alt="放大" width="18" height="18" border="0"></A> <A onfocus="this.blur()" href="javascript:zoomout()"><img src="image/p_zoomout.gif" alt="缩小" width="18" height="18" border="0"></A>
<%if session("xyluserid")<>"" then
if session("sitejob")=3 or rs("userid")=session("xyluserid") then%> <a onfocus="this.blur()" onclick="return confirm('确定要删除这张相片吗?')" href="?type2=del&id=<%=rs("id")%>"><img src="image/p_del.gif" alt="删除" width="18" height="18" border="0"></a> <a href="bjphotoadd.asp?type2=edit&id=<%=rs("id")%>&bid=<%=rs("bjid")%>"><img src="image/p_edit.gif" alt="编辑" width="18" height="18" border="0"></a>
<%end if
end if%></td>
<td width="14%"><a href="#addhf">添加回复</a></td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2"><table width="100%" height="30" border="0" align="center" cellpadding="1" cellspacing="1" class="tableborder">
<tr bgcolor="#FFFFFF">
<td width="21%"><%if rs("userid")<>"" then
Set rc = Server.CreateObject("Adodb.Recordset")
set rc=conn.execute ("select realname,sitemoney,bbscount,bbsjob,face,width,height,joindate,printcm,email,homepage,msn,qq from user where id ="&rs("userid")&"")
if rc.eof then
response.write "此人已被删除"
else%> <b><A href="datum.asp?userid=<%=rs("userid")%>"><%=rc("realname")%></a></b><br>
<%=rc("bbsjob")%><BR> <%=obj.rank(rc("sitemoney"))%><BR> <%=obj.exportface(rc("face"),rc("width"),rc("height"),siteskins)%>
<BR>
积分:<%=rc("sitemoney")%><BR> 注册:<%=rc("joindate")%>
<%end if
printcm=rc("printcm")
rc.close
else
response.write "发布人帐号丢失"
end if%></td>
<td width="79%" valign="top" bgcolor="#FFFFFF"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="100" valign="top"><%=rs("remark")%></td>
</tr>
<tr>
<td height="60" valign="top"><img src="skins/1/bbsface/sigline.gif" width="363" height="16"><br>
<%=printcm%> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="760" border="0" cellpadding="0" cellspacing="0" class="border">
<tr>
<td height="20" bgcolor="#FFCCCC"><div align="center">照片回复</div></td>
</tr>
</table>
<%rs.close
rs.open "select * from photo2 where picid="&picid&" order by id",conn,1,1
If Rs.eof and Rs.bof Then
Response.write("<center>暂无回复</center>")
else
dim strFileName,i,j,totalPut,CurrentPage,TotalPages
totalPut=rs.recordcount
const MaxPerPage=10
strFileName="?id="&picid&""
if request("page")<>"" then
currentPage=cint(request("page"))
else
currentPage=1
end if
if currentPage<>1 and (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
else
currentPage=1
end if
i=0
mm=0
if currentPage>1 then mm=(currentPage-1)*10
do while not rs.eof
mm=mm+1%>
<table width="760" border="0" align="center" cellpadding="1" cellspacing="1" class="tableborder">
<tr bgcolor="#F7F7F7">
<td width="160" height="160" valign="top" bgcolor="#F7F7F7"><%if rs("userid")<>"" then
set rc=conn.execute ("select realname,sitemoney,bbscount,bbsjob,face,width,height,joindate,printcm,email,homepage,msn,qq from user where id ="&rs("userid")&"")
if rc.eof then
response.write "此人已被删除"
else%> <b><A href="datum.asp?userid=<%=rs("userid")%>"><%=rc("realname")%></a></b><br>
<%=rc("bbsjob")%><BR> <%=obj.rank(rc("sitemoney"))%><BR> <%=obj.exportface(rc("face"),rc("width"),rc("height"),siteskins)%>
<BR>
积分:<%=rc("sitemoney")%><BR> 注册:<%=rc("joindate")%>
<%printcm=rc("printcm")
end if
else
response.write "发布人帐号丢失"
end if%></td>
<td width="600" valign="top" bgcolor="#F7F7F7">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -