<!--#include file="inc/ubbcode.asp"-->
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/Conn_User.asp"-->
<!--#include file="inc/function.asp"-->

<html>
<head>
<%
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%>
<style type="text/css">
BODY {
	scrollbar-face-color:#DDDDDD;
	scrollbar-highlight-color: #cccccc;
	scrollbar-shadow-color: #CCCCCC;
	scrollbar-3dlight-color: #F5F5F5;
	scrollbar-darkshadow-color: #F5F5F5;
	scrollbar-track-color: #F0F0F0;
	scrollbar-arrow-color: #FFFFFF;
	margin-left: 10px;
	margin-top: 10px;
	margin-right: 10px;
	margin-bottom: 10px;
	background-color: #FFFFFF;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=rs("photoname")%></title>

<link href="new/css.CSS" rel="stylesheet" type="text/css">
</head>

<body leftmargin="0" topmargin="0" marginheight="0">
<%if photoid<>"" then%>
<br>
<table border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#E1E1E1">
  <tr>
    <td bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="1" height="1"></td>
        <td height="1" bgcolor="#BCBCBC"></td>
        <td width="1" height="1"></td>
      </tr>
      <tr>
        <td bgcolor="bcbcbc"></td>
        <td height="25" align="center" bgcolor="#Fafafa"><strong><font color="#ff6600">---&nbsp;<font color="#ff6600"><%=rs("PhotoName")%></font>&nbsp;---</font></strong></td>
        <td bgcolor="#BCBCBC"></td>
      </tr>
    </table>
      <table width="137" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="1" height="1" bgcolor="#BCBCBC"></td>
          <td height="1" background="user/li_x_02.gif"></td>
          <td width="1" height="1" bgcolor="#BCBCBC"></td>
        </tr>
        <tr>
          <td bgcolor="#BCBCBC"><img src="img0415/space.gif"></td>
          <td height="28" align="left" bgcolor="#FFFFFF"><table width="100%" height="10"  border="0" cellpadding="10" cellspacing="0" bgcolor="#bcbcbc">
              <tr>
                <td bgcolor="#FFFFFF" align=center><%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")&"'>"

%>
                  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td><p><font style='FONT-SIZE: 11px' color='#666666'><%=ubbcode(dvHTMLEncode(rs("PhotoIntro")))%></font></p></td>
                    </tr>
                  </table></td>
              </tr>
          </table></td>
          <td bgcolor="#BCBCBC"><img src="img0415/space.gif" width="1" height="1"></td>
        </tr>
        <tr>
          <td width="1" height="1" bgcolor="#BCBCBC"></td>
          <td height="1" background="user/li_x_02.gif"></td>
          <td width="1" height="1" bgcolor="#BCBCBC"></td>
        </tr>
      </table>
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      
        <tr>
          <td bgcolor="bcbcbc"></td>
          <td height="25" align="left" bgcolor="fafafa"><%
set rsf=server.createobject("adodb.recordset")
rsf.open "select * from [user] where username='"&rs("editor")&"' order by userid desc",conn_user,1,1 
%>&nbsp;&nbsp;&nbsp;<font style='FONT-SIZE: 11px' color='#666666'><img src="img0415/b1.gif">&nbsp;<a href=user.asp?userid=<%=rsf("userid")%> target="_blank"><%=rs("editor")%></a></font></td>
          <td align="right" bgcolor="fafafa"><font style='FONT-SIZE: 11px' color='#666666'><%=year(rs("UpdateTime"))%>-<%=month(rs("UpdateTime"))%>-<%=day(rs("UpdateTime"))%></font>&nbsp;&nbsp;&nbsp;</td>
          <td bgcolor="#BCBCBC"></td>
        </tr>
		  <tr>
          <td width="1" height="1"></td>
          <td height="1" colspan="2" bgcolor="#BCBCBC"></td>
          <td width="1" height="1"></td>
        </tr>
      </table></td>
  </tr>
</table><br><%end if%>
</body>
</html>
<%
rs.close
set rs=nothing
%>