www.gusucode.com > 维六酷博客管理系统 1.1源码程序 > photoShow.asp

    <!-- #include file="conn.asp" -->
<!--#include file="include.asp"-->
<!-- #include file="inc/function.asp" -->
<%
id=RequestQueryNum("id")
If id<>0 Then
	Set rs=conn.execute("Select * From photo Where id="& id &"")
	If rs.bof And rs.eof Then
		Response.Write "param error!"
		Response.End
	End If
	If Not rs.eof Then
		strTitle=rs("title")
		cid=rs("categoryid")
		strImg="<a href="""& rs("path") &""" target=""_blank"" ><img src="""& rs("path") &""" border=""0"" alt=""点击查看原图"" onload='javascript:if (this.height>400) {this.height=400;};'/></a>"
		strContent=rs("content")
	End If

	Set rs=conn.Execute("Select top 1 id from photo Where id < "& id &" and categoryid="& cid &" order by id desc")
	If rs.bof And rs.eof Then
		linkNext="<img src=""images/pnext.jpg"" width=""76"" height=""30"" border=""0"">"
	Else
		linkNext="<a href=""?id="& rs("id") &"""><img src=""images/photoshow_r4_c7.jpg"" width=""76"" height=""30"" border=""0""></a>"
	End If

	Set rs=conn.Execute("Select top 1 id from photo Where id > "& id &" and categoryid="& cid &" order by id asc")
	If rs.bof And rs.eof Then
		linkPre="<img src=""images/ppre.jpg"" width=""76"" height=""30"" border=""0"">"
	Else
		linkPre="<a href=""?id="& rs("id")&"""><img src=""images/photoshow_r4_c2.jpg"" width=""76"" height=""30"" border=""0""></a>"
	End If
End If
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>photoshow</title>
<style type="text/css">
<!--
body,td,th {
	font-family: Arial, Helvetica, sans-serif;
}
body {
	background-color: #000000;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #FFFFFF;
	font-weight: bold;
	font-size: 14px;
}
.STYLE2 {
	color: #FFFFFF;
	font-size: 12px;
}
-->
</style>
</head>
<body>
<p>&nbsp;</p>
<table width="352" height="400" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="400" colspan="3" align="center">
		<table width="82%" height="397" border="0" cellpadding="0" cellspacing="0">
		  <tr>
			<td align="center">
				<table bgcolor="#202020"><tr><td><%=strImg%></td></tr></table>
			</td>
		  </tr>
		</table>
	</td>
  </tr>
  <tr>
    <td colspan="3" align="center"><span class="STYLE1"><%=strTitle%></span></td>
  </tr>
  <tr>
    <td height="25" colspan="3"><span class="STYLE2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;说明:<%=strContent%></span><p>&nbsp;</p></td>
  </tr>
 </table>
<table width="352" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="25" colspan="3">&nbsp;</td>
  </tr>
  <tr>
    <td width="126" align="right"><%=linkPre%></td>
    <td width="128" align="center"><a href="photoClass.asp?cid=<%=cid%>" ><img src="images/photoshow_r3_c5.jpg" width="60" height="30" border="0"></a></td>
    <td width="127"><%=linkNext%></td>
  </tr>
</table>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="611" align="right"><img src="images/photoshow_r7_c3.jpg" width="208" height="26"></td>
    <td width="389" align="right"><a href="photo.asp?cid=<%=cid%>"><img src="images/photoshow_r8_c11.jpg" width="188" height="13" border="0"></a></td>
  </tr>
</table>

</body>
</html>