?? showinfo.asp
字號(hào):
<!--#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>無標(biāo)題文檔</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">信息標(biāo)題: </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">發(fā)布時(shí)間:<%=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">交易價(jià)格: </div></th>
<td colspan="2"><div align="left"><%=rs(6)%></div></td>
</tr>
<tr>
<th bgcolor="#CCCCCC" scope="row"> <div align="left">交易地區(qū): </div></th>
<td colspan="2"><div align="left"><%=rs(7)%></div></td>
</tr>
<tr>
<th bgcolor="#CCCCCC" scope="row"> <div align="left">聯(lián) 系 人: </div></th>
<td colspan="2"><div align="left"><%=rs("name")%></div></td>
</tr>
<tr>
<th height="24" bgcolor="#CCCCCC" scope="row"> <div align="left">聯(lián)系電話: </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>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -