<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="inc/function.asp"-->
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="inc/Conn_User.asp"-->

<%
const ChannelID=1
%>
<%
photoid=request("photoid")
if photoid="" then 
FoundErr=True
	ErrMsg=ErrMsg & "<br><li>请指定图片ID</li><br>"
	call WriteErrMsg()
else 
end if
set rs=server.createobject("adodb.recordset")
rs.open "select * from photo where photoid="&photoid&" order by photoid desc",conn,1,3
rs("hits")=rs("hits")+1
rs.update%>





<%if rs.eof then
response.write "没有找到指定图片!"
end if%><%

	response.write "<img name='images1'  src='" & rs("PhotoUrl") & "' border='0'  id='aa' id='aa' alt='关闭' onClick='window.close()' style='cursor:hand' style='"&rs("styletype")&"'>"

%>
