<!--#include file="inc/config.asp"-->
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/function.asp"-->
<%
'''''''''''''''''''''''''''''''''''''''''''''''
dim id,rs1,robotadd
if request.querystring("id")<>"" then 
	id=Clng(request.QueryString("id"))
else
	id=1
end if
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
dim InfoTypeId,ParentId,CatalogId,Photo,Title,Price,Province,City,ContactMan,QQ,Tel,Content,Demons,PubDate,ExpireDate,PubIp,Hits,SavePath,DelPass,InfoType,HomePage,Area
set rs=server.CreateObject("adodb.recordset") 
rs.open "select InfoTypeId,ParentId,CatalogId,Photo,Title,Price,Province,City,ContactMan,QQ,Tel,Content,Demons,PubDate,ExpireDate,PubIp,Hits,SavePath,DelPass,HomePage,Area from t_info where id="&id,conn,3,1		
'获得参数
if not rs.eof then
	InfoTypeId=rs("InfoTypeId")
	ParentId=rs("ParentId")
	CatalogId=rs("CatalogId")
	Photo=rs("Photo")
	Title=rs("Title")
	Price=rs("Price")
	Province=rs("Province")
	City=rs("City")
	ContactMan=rs("ContactMan")
	QQ=rs("QQ")
	Tel=rs("Tel")
	Content=rs("Content")
	Demons=rs("Demons")
	PubDate=rs("PubDate")
	ExpireDate=rs("ExpireDate")
	PubIp=rs("PubIp")
	Hits=rs("Hits")
	SavePath=rs("SavePath")
	DelPass=rs("DelPass")
	HomePage=rs("HomePage")
	Area=rs("Area")
else
	response.Write("没有记录")
	response.End()
end if
rs.close
set rs=nothing
dim ptitle,ctitle
ptitle=getIndustryTitle(ParentId)
ctitle=getIndustryTitle(CatalogId)
if(InfoTypeId=1) then
	InfoType="[供]"
elseif(InfoType=2) then
	InfoType="[求]"
end if
if(Clng(Price)=0) then
	Price="面议"
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=Title%>-<%=SiteName%></title>
<link href="style/index.css" rel="stylesheet" type="text/css" />
<meta name="keywords" content="<%=ckeywords%>" />
<meta name="description" content="<%=cdescription%>" />
<script type="text/javascript" src="/js/common.js"></script>
<style type="text/css">
<!--
.s1 {}
.style1 {color: #006666;
	font-weight: bold;
}
-->
</style>
</head>
<body>
<!--#include file="head.asp"-->
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="24">当前位置：<a href="/">首页</a>&gt;<a href="list.asp?pid=<%=ParentId%>"><%=ptitle%></a>&gt;<a href="list.asp?pid=<%=ParentId%>&cid=<%=CatalogId%>"><%=ctitle%></a></td>
  </tr>
</table>
<div class="br"></div>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"><div id="left">
      <h2 class="show_title"><%=Title%></h2>
      <div class="br"></div>
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E8EBF2" class="s1">
        <tr>
          <td width="16%" bgcolor="#FFFFFF" class="pad_5">交易类别：</td>
          <td width="52%" bgcolor="#FFFFFF" class="pad_5"><%=InfoType%></td>
          <td width="32%" rowspan="8" bgcolor="#FFFFFF" class="padd5"><div align="center"><a href="<%=Photo%>" target="_blank"><img src="<%if(Photo<>"") then response.Write(Photo) else response.Write("/images/nopic.gif") end if%>" alt="<%=Title%>" width="196" height="163" border="0" /></a></div></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" class="pad_5">价格：</td>
          <td bgcolor="#FFFFFF" class="pad_5"><%=Price%></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" class="pad_5">地区：</td>
          <td bgcolor="#FFFFFF" class="pad_5"><%=Province%>-<%=City%></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" class="pad_5">信息分类：</td>
          <td bgcolor="#FFFFFF" class="pad_5"><span class="position"><a href="list.asp?pid=<%=ParentId%>&cid=<%=CatalogId%>"><%=Area%></a></span></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" class="pad_5">发布日期：</td>
          <td bgcolor="#FFFFFF" class="pad_5"><%=PubDate%></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" class="pad_5">截止日期：</td>
          <td bgcolor="#FFFFFF" class="pad_5"><%=ExpireDate%></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" class="pad_5">IP：</td>
          <td bgcolor="#FFFFFF" class="pad_5"><%=PubIp%></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" class="pad_5">点击：</td>
          <td bgcolor="#FFFFFF" class="pad_5"><span id="InfoHits"><%=Hits%></span></td>
        </tr>
      </table>
      <br />
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E8EBF2" class="s1">
        <tr>
          <td bgcolor="#F8F8F9" class="pad_5"><strong>详细信息介绍：</strong></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" class="content"><span class="show_content"><%=Content%></a></td>
        </tr>
      </table>
      <br />
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E8EBF2" class="s1">
        <tr>
          <td colspan="2" bordercolor="#F9F9F9" bgcolor="#F8F8F9" class="pad_5"><strong>联系方式：</strong></td>
        </tr>
        <tr>
          <td width="16%" bgcolor="#FFFFFF" class="pad_5">联系人：</td>
          <td width="84%" bgcolor="#FFFFFF" class="pad_5"><%=ContactMan%></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" class="pad_5">QQ：</td>
          <td bgcolor="#FFFFFF" class="pad_5"><%=QQ%></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" class="pad_5">网址：</td>
          <td bgcolor="#FFFFFF" class="pad_5"><%=HomePage%></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" class="pad_5">电话：</td>
          <td bgcolor="#FFFFFF" class="pad_5"><%=Tel%></td>
        </tr>
      </table>
      <br />
      <form id="form" name="form2" method="post" action="/info_del.asp">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#DEE3ED">
          <tr>
            <td height="24" colspan="2" bgcolor="#F8F8F9"><div align="center" class="style1">删除此信息</div></td>
          </tr>
          <tr>
            <td width="16%" height="35" bgcolor="#FFFFFF" class="pad_5">信息密码：</td>
            <td width="84%" bgcolor="#FFFFFF"><div align="left">
              <input name="DelPass" type="password" id="DelPass" />
              <a href="#">
                <input type="hidden" value="<%=id%>" name="id" />
                </a>
              <input type="submit" name="Submit3" value="提交" />
            </div></td>
          </tr>
        </table>
      </form>
      <!--start-->
    </div></td>
    <td width="5" valign="top">&nbsp;</td>
    <td width="261" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
      <tr>
        <td height="56" align="center" bgcolor="#FFF9E3"><a href="/publish.asp" target="_blank"><img src="images/fbxx.gif" alt="发布信息" width="171" height="45" border="0" /></a></td>
      </tr>
    </table>
      <div class="br"></div>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
        <tr>
          <td class="table_th"><span class="table_title"><a href="#">热点推荐</a></span></td>
        </tr>
        <tr>
          <td valign="top" class="pad_5"><div class="txts_12">
            <ul>
              <%=getInfo(10,16,CatalogId,0,0,0,"",0,1,0,0)%>
            </ul>
          </div></td>
        </tr>
      </table>
      <div class="br"></div>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
        <tr>
          <td class="table_th"><span class="table_title"><a href="#">点击排行</a></span></td>
        </tr>
        <tr>
          <td valign="top" class="pad_5"><div class="txts_12">
            <ul>
              <%
							set rs=server.CreateObject("adodb.recordset")
							rs.open "select top 10 id,Title from t_info where CatalogId="&CatalogId&" order by Hits desc,id desc",conn,3,1
							while not rs.eof
							%>
              <li> &middot; <a href="show.asp?id=<%=rs(0)%>" title="<%=rs(1)%>" target="_blank"><%=rs(1)%></a></li>
              <%
								rs.movenext
							wend
							rs.close
							set rs=nothing
							%>
            </ul>
          </div></td>
        </tr>
      </table></td>
  </tr>
</table>
</td>
  </tr>
</table>
<!--#include file="root.asp"-->
<%
conn.execute("update t_info set Hits=Hits+1 where id="&id)
%>
</body>
</html>
<%
call connclose()
%>