<!--#include file="top.asp"-->
<%function HTMLEncode(fString)
if not isnull(fString) then
    fString = replace(fString, ">", "&gt;")
    fString = replace(fString, "<", "&lt;")
    fString = Replace(fString, CHR(32), "&nbsp;")
    fString = Replace(fString, CHR(9), "&nbsp;")
    fString = Replace(fString, CHR(34), "&quot;")
    fString = Replace(fString, CHR(39), "&#39;")
    fString = Replace(fString, CHR(13), "")
    fString = Replace(fString, CHR(10) & CHR(10), "</P><P> ")
    fString = Replace(fString, CHR(10), "<BR> ")
    HTMLEncode = fString
end if
end function
dim fox
fox=request("fox")
dim rs,sql,dqsj,ggg
set rs=server.createobject("adodb.recordset")
sql = "select * from FOX_xinxi where id="&fox&" and yz=1 and ts=1"
rs.open sql,conn,1,3
if rs.eof then
response.write "该纪录未通过或者已被删除！"
response.end
end if
rs("llcs")=rs("llcs")+1
rs.update
%>
<script language="JavaScript">
function DrawImage(ImgD){
   var image=new Image();
   image.src=ImgD.src;
   if(image.width>0 && image.height>0){
    flag=true;
    if(image.width/image.height>= 120/80){
     if(image.width>120){  
     ImgD.width=80;
     ImgD.height=(image.height*80)/image.width;
     }else{
     ImgD.width=image.width;  
     ImgD.height=image.height;
     }

     }
    else{
     if(image.height>80){  
     ImgD.height=80;
     ImgD.width=(image.width*80)/image.height;     
     }else{
     ImgD.width=image.width;  
     ImgD.height=image.height;
     }

     }
    }
   /*else{
    ImgD.src="";
    ImgD.alt=""
    }*/
   }
function CheckAll(form)
  {
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.name != 'chkall' )
       e.checked = form.chkall.checked;
    }
  }
 function loadThreadFollow(t_id,b_id){
	var targetImg =eval("document.all.followImg" + t_id);
	var targetDiv =eval("document.all.follow" + t_id);
	
	if ("object"==typeof(targetImg)){
		if (targetDiv.style.display!='block'){
			targetDiv.style.display="block";
			
		}else{
			targetDiv.style.display="none";
		}
	}
}
</script>

<script LANGUAGE="JavaScript">
<!--
function checkMobile(){
	var sMobile = document.mobileform.mobile.value
	if(!(/^13[0-9]\d{4,8}$/.test(sMobile))){
		alert("不是完整的11位手机号或者正确的手机号前七位");
		document.mobileform.mobile.focus();
		return false;
	}
	window.open('', 'mobilewindow', 'height=197,width=350,status=yes,toolbar=no,menubar=no,location=no')
}
//-->
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=rs("company")%>--广告张贴--<%=title%>--<%=web%></title>
</head>

<body>

<div align="center">
<table cellSpacing="0" cellPadding="0" width="760" border="0" id="table1">
		<tr bgColor="#d9ebe5">
			<td  height="25" bgcolor="#C0C0C0" colspan="3"><b>&nbsp;<img border="0" src="images/z1.gif" width="50" height="18"> 您的位置  
			<font color="#FFFFFF">-></font> <a class="scap1" href="index.htm"><%=title%></a>
			<font color="#FFFFFF">-></font> 广告张贴频道： <%=rs("company")%></b>
			</td>
		</tr>
		
		<tr bgColor="#d9ebe5">
			<td  height="25" bgcolor="#FFFFFF" width="504" valign="top">
<table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table63">
			<tr>
				<td width="6">
				<img height="6" src="images/idxtable01.gif" width="6"></td>
				<td class="titles01" vAlign="bottom" background="images/idxtdheadbg01.gif" rowSpan="2">
				<img border="0" src="images/more.gif" width="16" height="13"> 
				详细内容：</td>
				<td align="right" width="52" rowSpan="2">
				<img height="24" src="images/idxtbhead01.gif" width="52"></td>
				<td width="6">
				<img height="6" src="images/idxtable02.gif" width="6"></td>
			</tr>
			<tr>
				<td bgColor="#ff6c3b">
				<img height="18" src="images/_scap.gif" width="6"></td>
				<td bgColor="#ff6c3b">
				<img height="18" src="images/_scap.gif" width="6"></td>
			</tr>
		</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#C0C0C0" style="border-collapse: collapse" id="table169">
            <tr bgcolor="#CCCCCC">
              <td height="1"></td>
            </tr> 
            </table>
<table border="1" width="100%" cellpadding="0" bgcolor="#FFFFFF" bordercolorlight="#D9EBE5" bordercolordark="#D9EBE5" style="border-collapse: collapse">
<%dim rsq,sqlq,class1c,class2c,leixingc,shengc,shic
set rsq=server.createobject("adodb.recordset") 
sqlq = "select class1 from [FOX_class1] where id="&rs("class1")&""
rsq.open sqlq,conn,1,1
class1c=rsq("class1")
rsq.close
set rsq=nothing
set rsq=server.createobject("adodb.recordset") 
sqlq = "select class2 from [FOX_class2] where id="&rs("class2")&""
rsq.open sqlq,conn,1,1
class2c=rsq("class2")
rsq.close
set rsq=nothing
set rsq=server.createobject("adodb.recordset") 
sqlq = "select sheng from [FOX_sheng] where id="&rs("sheng")&""
rsq.open sqlq,conn,1,1
shengc=rsq("sheng")
rsq.close
set rsq=nothing
set rsq=server.createobject("adodb.recordset") 
sqlq = "select shi from [FOX_shi] where id="&rs("shi")&""
rsq.open sqlq,conn,1,1
shic=rsq("shi")
rsq.close
set rsq=nothing
set rsq=server.createobject("adodb.recordset") 
sqlq = "select leixing from [FOX_lei] where id="&rs("leixing")&""
rsq.open sqlq,conn,1,1
leixingc=rsq("leixing")
rsq.close
set rsq=nothing
%>	
<tr>
		<td height="22" colspan="5" bgcolor="#D9EBE5">
		&nbsp; 
		[友情提示]信誉度依次为：<font color="#FF0000"><%=cname%>会员</font> ＞ <font color="#FF0000"><%=bname%>会员</font> ＞ <font color="#FF0000"><%=aname%>会员</font></td>
	</tr>
<tr>
		<td width="4%" height="22">
		<img border="0" src="images/dot8.gif" width="14" height="14"></td>
		<td width="13%" height="25">
		<font color="#FF0000">张贴ID：</font></td>
		<td height="25" colspan="2"><font color="#008080"><%=rs("xxid")%></font> [发布者：<%if rs("huitype")=0 then%><font color="#FF0000"><%=aname%>会员</font><%elseif rs("huitype")=1 then%><font color="#FF0000"><%=bname%>会员</font><%else%><font color="#FF0000"><%=cname%>会员</font><%end if%>]</td>
		<td height="25"><font color="#FF0000">类型：
		</font>&nbsp;&nbsp;[ <a href="adindex.asp?leixing=<%=rs("leixing")%>"><font color="#008080"> <%=leixingc%></font></a> ]</td>
	</tr>
<tr>
		<td width="4%" height="22">
		　</td>
		<td width="13%" height="25">
		<font color="#FF0000">有效期至：</font></td>
		<td height="25" colspan="2"><font color="#FF0000"><b><%=rs("dqsj")%></b></font> </td>
<%dqsj=cdate(year(rs("dqsj"))&"-"&month(rs("dqsj"))&"-"&day(rs("dqsj")))
ggg=dqsj-date()
%>	
		<td height="25"><font color="#FF0000"><b>
		<img border="0" src="images/face7.gif" width="20" height="20"></b>还剩：</font>[<b><font color="#FF0000"><%=ggg%></font></b>]&nbsp;<font color="#FF0000">天到期</font></td>
	</tr>
	<tr>
		<td width="4%" height="22" valign="top">
		<img border="0" src="images/Nav_Icon.gif" width="12" height="16"></td>
		<td width="13%" height="25">
		张贴标题：</td>
		<td height="25" colspan="2"><b><%=rs("company")%></b></td>
		<td height="175" rowspan="7" bgcolor="#D9EBE5" width="150" align="center">
		<%if rs("xinxipic")="0" then%><img border="0" src="images/nopic.gif" width="145" height="165"><%else%><img border="0" src="xinxiupfiles/<%=rs("xinxipic")%>" width="145" height="165"><%end if%></td>
	</tr>
<tr>
		<td width="4%" height="22" valign="top">
		<img border="0" src="images/Nav_Icon.gif" width="12" height="16"></td>
		<td width="13%" height="25">
		张贴类别：</td>
		<td height="25" colspan="2"><a href="adindex.asp?class1=<%=rs("class1")%>"><%=class1c%></a> -> 
		<a href="adindex.asp?=<%=rs("class2")%>"> <%=class2c%></a></td>
	</tr>
	<tr>
		<td width="4%" height="22" valign="top">
		<img border="0" src="images/Nav_Icon.gif" width="12" height="16"></td>
		<td width="13%" height="25">
		张贴属地：</td>
		<td height="25" colspan="2"><a href="adindex.asp?=<%=rs("sheng")%>"><%=shengc%></a> -> 
		<a href="adindex.asp?=<%=rs("shi")%>"> <%=shic%></a></td>
	</tr>
	<tr>
		<td width="4%" height="22" valign="top">
		<img border="0" src="images/Nav_Icon.gif" width="12" height="16"></td>
		<td width="13%" height="25">
		交易价格：</td>
		<td height="25" colspan="2"><%if rs("jiage")=0 then%><font color="#008080">面 议</font><%else%><font color="#FF0000"><%=rs("jiage")%></font> 元<%end if%></td>
	</tr>
	<tr>
		<td width="4%" height="22" valign="top">
		<img border="0" src="images/Nav_Icon.gif" width="12" height="16"></td>
		<td width="13%" height="25">
		联系人：</td>
		<td height="25" colspan="2"><%=rs("lxrname")%></td>
	</tr>
	<tr>
		<td width="4%" height="22" valign="top">
		<img border="0" src="images/Nav_Icon.gif" width="12" height="16"></td>
		<td width="13%" height="25">
		联系电话：</td>
		<td height="25" colspan="2"><%=rs("usertel")%></td>
	</tr>
	<tr>
		<td width="4%" height="22" valign="top">
		<img border="0" src="images/Nav_Icon.gif" width="12" height="16"></td>
		<td width="13%" height="25">
		联系手机：</td>
		<td height="25" colspan="2"><%=rs("phone")%> 
			[<font color="#FF0000"><span id="followImg1" style="CURSOR: hand" onclick="loadThreadFollow(1,5)">手机查询</span></font>]</td>
	</tr>
	<tr  style="display:none" id="follow1">
		<td width="4%" height="22" valign="top">
		<img border="0" src="images/Nav_Icon.gif" width="12" height="16"></td>
		<td width="13%" height="25">
		手机查询：</td>
		<td height="25" width="52%" colspan="2"><form action="http://www.ip138.com:8080/search.asp" method="post" onsubmit="return checkMobile();" target="mobilewindow" name="mobileform">  
           <input type="hidden" name="action" value="mobile">
            手机号码<font color="#0000FF">: 
           <input class="inputa" maxLength="11" name="mobile" size="15" value="<%=rs("phone")%>"> 
           <input class="inputb" type="submit" value="提交">
            </form></td>
		<td height="25">　</td>
	</tr>
	<tr>
		<td width="4%" height="22" valign="top">
		<img border="0" src="images/Nav_Icon.gif" width="12" height="16"></td>
		<td width="13%" height="25">
		IP所属地：</td>
		<td height="25" width="52%" colspan="2"><FORM METHOD=POST ACTION="http://www.ip138.com/ips.asp" name="ipform" target="_blank"><SPAN class=style2222>
              <input type="text" name="ip" size="15" value="<%=rs("ip")%>" style="border: 1px solid #FFFFFF"></span></font><span style="background-color: #000000"><INPUT type=submit value=查看IP name=Submit style="border:1px solid #FFFFFF; background-color:#FFFFFF"></span><INPUT TYPE="hidden" name="action" value="2"></td></FORM></td>
		<td height="25">邮编：&nbsp; <%=rs("code")%></td>
	</tr>
	<tr>
		<td width="4%" height="22" valign="top">
		<img border="0" src="images/Nav_Icon.gif" width="12" height="16"></td>
		<td width="13%" height="25">
		EMAIL：</td>
		<td height="25" width="37%"><%=rs("email")%></td>
		<td height="25" width="15%">
		<p align="right">QQ号码：</td>
		<td height="25"><%if rs("qq")=0 then%><img src="images/foxqq1.gif"><%else%><img src=images/foxqq.gif border=0 align=middle>&nbsp; <a class='qqa' target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=<%=rs("qq")%>&Site=<%=title%>&Menu=yes' title='我要联系'><%=rs("qq")%></a><%end if%></td>
	</tr>
	<tr>
		<td width="4%" height="22" valign="top">
		<img border="0" src="images/Nav_Icon.gif" width="12" height="16"></td>
		<td width="13%" height="25">
		联系地址：</td>
		<td height="25" width="52%" colspan="2"><%=rs("dizhi")%></td>
		<td height="25">浏览回复 <font color="#FF0000"> <%=rs("llcs")%></font> /<font color="#FF0000"> <%=rs("hfcs")%></font> 次</td>
	</tr>
	<tr>
		<td width="4%" height="22" valign="top">
		　</td>
		<td width="13%" height="25">
		张贴内容：</td>
		<td height="25" colspan="3"><font color="#FF0000"><%=rs("ad")%></font></td>
	</tr>
	<tr>
		<td width="4%" height="22" valign="top">
		<img border="0" src="images/Nav_Icon.gif" width="12" height="16"></td>
		<td width="13%" height="25" valign="top">
		详细说明：</td>
		<td height="25" colspan="3"><%=HTMLEncode(rs("memo"))%></td>
	</tr>
	<tr>
		<td height="40" valign="bottom" colspan="5" align="right">
		　      <INPUT class="inputb" TYPE=button VALUE="我要回复留言" ONCLICK="window.open('xinxi_hf.asp?id=<%=rs("id")%>&ts=<%=rs("ts")%>','Sample','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=355,height=275,left=300,top=100')">
                <INPUT class="inputb" TYPE=button VALUE="发邮件给用户" ONCLICK="window.open('xinxi_mail.asp?id=<%=rs("id")%>','Sample','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=355,height=328,left=300,top=100')">
                <INPUT class="inputb" TYPE=button VALUE="加入收藏" ONCLICK="window.external.addFavorite('<%=web%>/adinfo.asp?fox=<%=rs("id")%>','<%=rs("company")%>')" title="<%=rs("company")%>--<%=title%>">
                <INPUT class="inputb" TYPE=button VALUE="我要打印" ONCLICK="window.print()">
                </td>
	</tr>
	<%if rs("hfcs")>0 then%><tr>
		<td height="22" colspan="5">
		<img border="0" src="images/d03.jpg" width="50" height="50">&nbsp; 
		注意：此张贴广告有<img border="0" src="images/mail.gif" width="87" height="45"> 
		<font color="#FF0000"> <%=rs("hfcs")%></font> 条</td>
	</tr>
<%else%><%end if%>
</table>
<%rs.close
set rs=nothing%>
</td>
			<td  height="25" bgcolor="#FFFFFF" width="4">　</td>
			<td  height="25" bgcolor="#FFFFFF" width="252" valign="top">
		<table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table70">
			<tr>
				<td width="6">
				<img height="6" src="images/idxtable01.gif" width="6"></td>
				<td class="titles02" vAlign="bottom" background="images/idxtdheadbg01.gif" rowSpan="2">
				<a class="scap" target="_blank" href="adv/">
				<font color="#fff4e1">推荐广告张贴</font></a></td>
				<td align="right" width="62" rowSpan="2">
				<img height="24" src="images/idxtdheadbg01.gif" width="10"><img height="24" src="images/idxtbhead01.gif" width="52"></td>
				<td width="6">
				<img height="6" src="images/idxtable02.gif" width="6"></td>
			</tr>
			<tr>
				<td bgColor="#ff6c3b">
				<img height="18" src="images/_scap.gif" width="6"></td>
				<td bgColor="#ff6c3b">
				<img height="18" src="images/_scap.gif" width="6"></td>
			</tr>
		</table>
		<table cellSpacing="0" cellPadding="0" width="100%" bgColor="#ff6c3b" border="0" id="table71">
			<tr>
				<td vAlign="bottom" align="right" width="10">
				<img height="6" src="images/idxtable06.gif" width="6"></td>
				<td bgColor="#f5f5f5">
				<img height="6" src="images/_scap.gif" width="160"></td>
				<td vAlign="bottom" width="10">
				<img height="6" src="images/idxtable07.gif" width="6"></td>
			</tr>
			<tr>
				<td background="images/idxtable10.gif" width="10">
				<img height="150" src="images/idxtable10.gif" width="10"></td>
				<td class="tdtxt02" bgColor="#f5f5f5" valign="top">
				<table><%dim rsfox,sqlfox,ns1
set rsfox=server.createobject("adodb.recordset")
sqlfox="select top 20 * from FOX_xinxi where yz=1 and ts=1 and tj=1 order by fbsj desc"
rsfox.open sqlfox,conn,1,1
if rsfox.eof then
response.write "还没有...！"
else
do while not rsfox.eof
%>
<%dim rsfoxf,sqlfoxf
set rsfoxf=server.createobject("adodb.recordset")
sqlfoxf="select sheng from FOX_sheng where id="&rsfox("sheng")&""
rsfoxf.open sqlfoxf,conn,1,1
%><tr><td class="tdtxt06">
<font color="#FF6C3B">·</font>[<a href="adindex.asp?sheng=<%=rsfox("sheng")%>"><font color="#FF0000"><%=rsfoxf("sheng")%></font></a>] <A href="adinfo.asp?fox=<%=rsfox("id")%>" title="<%=rsfox("company")%>"><%=left(rsfox("company"),12)%></a>
</td></tr><%
ns1=ns1+1
if ns1>=20 then exit do
rsfox.movenext
loop
end if
rsfoxf.close
set rsfoxf=nothing
rsfox.close
set rsfox=nothing
%></table></td>
				<td background="images/idxtable11.gif" width="10">
				<img height="10" src="images/idxtable11.gif" width="10"></td>
			</tr>
			<tr>
				<td align="right" width="10">
				<img height="6" src="images/idxtable08.gif" width="6"></td>
				<td bgColor="#f5f5f5">
				<img height="6" src="images/_scap.gif" width="160"></td>
				<td width="10">
				<img height="6" src="images/idxtable09.gif" width="6"></td>
			</tr>
		</table>
		<table cellSpacing="0" cellPadding="0" width="100%" bgColor="#ff6c3b" border="0" id="table72">
			<tr>
				<td width="180" colSpan="3">
				<img height="4" src="images/_scap.gif" width="180"></td>
			</tr>
		</table>
		 </td>
		</tr>
		
</table>
</div>

</body>
<!--#include file="bottom.asp"--></body></html>