📄 showinfo.asp
字号:
<!--#include file="conn.asp"-->
<!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>无标题文档</title>
<link href="xingxing.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #00FF00}
.style2 {color: #FF00FF}
.style3 {
font-size: 12px;
color: #FF0000;
}
-->
</style>
</head>
<body>
<div align="left">
<!--#include file=top.asp-->
</div>
<%
info_id=request.QueryString("info_id")
Set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from info where isdiposal=yes and info_id="& info_id
rs.open sql,conn
if rs.eof then
response.Write("该信息不存在")
else
%>
<table width="801" height="399" border="2">
<tr>
<th width="188" height="166" scope="col"><img src="infoimg/<%=rs("tupian")%>" width="169" height="135" align="left"></th>
<th width="545" scope="col"><div align="left">
</div>
<table width="100%" height="288" border="1">
<tr>
<th bordercolor="#CCCCCC" bgcolor="#CCCCCC" scope="col"> <div align="left">信息标题: </div> </th>
<th width="222" bordercolor="#CCCCCC" bgcolor="#CCCCCC" scope="col"><div align="left"><%=rs(4)%></div></th>
<th width="195" bordercolor="#CCCCCC" bgcolor="#CCCCCC" scope="col"><div align="right" class="style3">发布时间:<%=rs("date")%></div></th>
</tr>
<tr>
<th width="100" bgcolor="#CCCCCC" scope="row"> <div align="left">信息类别: </div></th>
<td colspan="2"><div align="left"><font size="-1" color="#FF00FF">
<%
Set class1=Server.CreateObject("ADODB.Recordset")
sql="select class1 from class1 where class1_id="& rs(2)
class1.open sql,conn
Set class2=Server.CreateObject("ADODB.Recordset")
sql2="select class2 from class2 where class2_id="& rs(3)
class2.open sql2,conn
%>
<%=class1(0)%>-><%=class2(0)%></font></div></td>
</tr>
<tr>
<th bgcolor="#CCCCCC" scope="row"> <div align="left">交易类型: </div></th>
<td colspan="2"> <div align="left">
<%
if rs(5)=0 then
%>
<span class="style1">求购</span>
<%else%>
<span class="style2">出售</span>
<%end if%>
</div></td>
</tr>
<tr>
<th bgcolor="#CCCCCC" scope="row"> <div align="left">交易价格: </div></th>
<td colspan="2"><div align="left"><%=rs(6)%></div></td>
</tr>
<tr>
<th bgcolor="#CCCCCC" scope="row"> <div align="left">交易地区: </div></th>
<td colspan="2"><div align="left"><%=rs(7)%></div></td>
</tr>
<tr>
<th bgcolor="#CCCCCC" scope="row"> <div align="left">联 系 人: </div></th>
<td colspan="2"><div align="left"><%=rs("name")%></div></td>
</tr>
<tr>
<th height="24" bgcolor="#CCCCCC" scope="row"> <div align="left">联系电话: </div></th>
<td colspan="2"><div align="left"><%=rs("tel")%></div></td>
</tr>
<tr>
<th height="25" bgcolor="#CCCCCC" scope="row"><div align="left">E-mail:</div></th>
<td colspan="2"><div align="left"><%=rs("email")%></div></td>
</tr>
<tr>
<th height="26" bgcolor="#CCCCCC" scope="row"><div align="left">I P地址:</div></th>
<td colspan="2"><div align="left"><%=rs("sender_ip")%></div></td>
</tr>
<tr>
<th height="45" bgcolor="#CCCCCC" scope="row"> <div align="left">信息说明: </div></th>
<td colspan="2"><div align="left"><%=rs("info")%></div></td>
</tr>
</table>
<%
end if
rs.close %>
</th>
<th width="44" scope="col"> </th>
</tr>
<tr>
<th height="85" scope="row"> </th>
<td><p> </p>
<p> </p></td>
<td> </td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -