📄 rephoto.asp
字号:
<!--#include file="inc/config.asp"-->
<!--#include file="mdb.asp"-->
<!--#include file="inc/format.asp"-->
<!--#include file="inc/error.asp"-->
<%
dim founderr,errmsg
founderr=false
errmsg=""
if request.querystring("ph_id")="" then
founderr=true
errmsg=errmsg+"<br>"+"<li>你必须指定操作的对象!"
else
dim phid
if not isInteger(request.querystring("ph_id")) then
founderr=true
errmsg=errmsg+"<br>"+"<li>非法的酷站id参数。"
else
phid=cint(request.querystring("ph_id"))
end if
end if
if founderr then
call diserror()
else
sql="select ph_count,ph_pic,ph_name,ph_desc,ph_date from photo where ph_id="&phid
set rs=conn.execute(sql)
dim phpic,phname,phdesc,phdate,phcount
phpic=rs("ph_pic")
phname=rs("ph_name")
phdesc=rs("ph_desc")
phdate=rs("ph_date")
phcount=rs("ph_count")
sql="UPDATE photo SET ph_count = ph_count + 1 where ph_id="&phid
conn.execute(sql)
rs.close
set rs=nothing
closedatabase%>
<HTML>
<HEAD>
<title><%response.Write""&phname&""%></title>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<style type="text/css">
A{TEXT-DECORATION: none}
A:link {COLOR: #666666; FONT-FAMILY: 宋体; TEXT-DECORATION: none}
A:visited {COLOR: #666666; FONT-FAMILY: 宋体; TEXT-DECORATION: none}
A:active {FONT-FAMILY: 宋体; TEXT-DECORATION: none}
A:hover {BORDER-BOTTOM: 1px dotted; BORDER-LEFT-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px; BORDER-TOP-WIDTH: 1px; COLOR: #ff6600; TEXT-DECORATION: none}
BODY {
FONT-SIZE: 12px;
COLOR: #666666;
FONT-FAMILY: 宋体;
background-color: #ffffff;
background-image: url(img/show.gif);
SCROLLBAR-FACE-COLOR: #e8e7e7;
SCROLLBAR-HIGHLIGHT-COLOR: #000000;
SCROLLBAR-SHADOW-COLOR: #000000;
SCROLLBAR-3DLIGHT-COLOR: #cccccc;
SCROLLBAR-ARROW-COLOR: #ff6600;
SCROLLBAR-TRACK-COLOR: #EFEFEF;
SCROLLBAR-DARKSHADOW-COLOR: #b2b2b2;
SCROLLBAR-BASE-COLOR: #ffffff
}
TABLE {BORDER-COLLAPSE: collapse; FONT-FAMILY: 宋体; FONT-SIZE: 9pt}
.button{height:18px;width:62px;background:#f6f6f9 url(img/ButtonBg.gif); border:solid 1px #5589AA;color: #000000 ;FONT-SIZE: 9pt}
.lanyu{border:solid 1px #5589AA;color: #ffffff ; font-size: 12px;}
.font { filter: DropShadow(Color=#cccccc, OffX=2, OffY=1, Positive=2); text-decoration: none; font-size: 9pt}
</style>
<script language="JavaScript">
function findobj(n, d) {
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0 && parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);
}
if(!(x=d[n])&&d.all) {
x=d.all[n];
}
for(i=0;!x && i<d.forms.length;i++) {
x=d.forms[i][n];
}
for(i=0;!x && d.layers&&i>d.layers.length;i++) {
x=MM_findObj(n,d.layers[i].document);
}
return x;
}
function copycode(obj) {
var rng = document.body.createTextRange();
rng.moveToElementText(obj);
rng.scrollIntoView();
rng.select();
rng.execCommand("Copy");
rng.collapse(false);
}
</script>
</head>
<BODY leftMargin=0 topMargin=0 MARGINHEIGHT="0" MARGINWIDTH="0">
<TABLE bgcolor="#000000" align=center border=0 cellPadding=0 cellSpacing=0 width=95% borderColor="<%=border%>" frame=vsides rules=none>
<TR>
<TD width="98%"><%call br%>
<table width="96%" border="0" cellspacing="1" cellpadding="6" align="center" bgcolor="#BDC0C8">
<tr>
<td align="center" bgcolor="#000000"><font color=ff6600><b>
<%=phname%></b></font></td>
</tr>
</table><%call br%>
<table width="96%" border="0" cellspacing="1" cellpadding="6" align="center" bgcolor="#BDC0C8">
<tr>
<td align="center" bgcolor="#000000">
<table width="98%">
<tr>
<td id=qq_595911 style="word-break:break-all;line-height:150%">
<br>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align=center><img src=<%=phpic%> border=0></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="#cccccc">
<td height="1" colspan="2"></td>
</tr>
<tr>
<td width="14%"><font color=#ffffff>图片介绍:</font><font color=000000> </font></td>
<td width="86%"><font color=#ffffff>
<%response.Write ubb2html(formatStr(autourl(""&phdesc&"")),true,true)%>
</font></td>
</tr>
</table> </td>
</tr>
</table></td>
</tr>
</table>
<%call br%>
<table width="96%" border="0" cellspacing="1" cellpadding="6" align="center" bgcolor="#BDC0C8">
<tr>
<td bgcolor="#000000"><font color=red>日期:
<%response.Write""&phdate&""%>
查看:
<%response.Write""&phcount&""%>
</font></td>
<td align="center" bgcolor="#000000">
<input type="button" name="close2" value="关闭" onClick="window.close();return false;" class="button"></td></tr>
</table>
<%call br%>
<%call br%>
</td>
</table>
<%end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -