<!-- #include file="../inc/conn.asp" -->
<%
id=request("id")
kind=request("kind")
mode=request("mode")
select case kind
	case "1"'主题图片
		select case mode
			case "1"'图片1
				str="select bbs_img as img,bbs_img_text as img_text from bbstitle where id="&id
			case "2"'图片2
				str="select img_url as img,img_url_text as img_text from bbstitle where id="&id
		end select
	case "2"'回复图片
		select case mode
			case "1"'图片1
				str="select bbs_img as img,bbs_img_text as img_text from bbsmenu where id="&id
			case "2"'图片2
				str="select img_url as img,img_url_text as img_text from bbsmenu where id="&id
		end select

end select

set rs=server.createobject("adodb.recordset")
rs.open str,conn,1,1
%>
<html>
<head>
<title>楼市你我谈--图片</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<table width="500" border="0" align="center">
  <tr align=center>
    <td>
	<%
	if mode=1 then'图片1
	%>
	<IMG SRC="../html/upfile/<%=rs("img")%>" BORDER=0 ALT="">
	<%else'图片2%>
		<IMG SRC="../html/upfile/<%=rs("img")%>" BORDER=0 ALT="">
	<%end if%>
	</td>
  </tr>
  <tr>
    <td>
      <div align="center"><%=rs("img_text")%></div>
    </td>
  </tr>
</table>
</body>
</html>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>