<!--#include file="geditop.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="930" border="0" id="table1" class="tdtop">
		<tr>
			<td  height="25" colspan="3"><b>&nbsp;&gt;&gt; 您的位置  
			<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="634" valign="top">
<table border="0" width="100%" id="table170" cellspacing="0" cellpadding="0" class="tdbg2">
	<tr>
		<td height="24">&nbsp; 详细信息</td>
	</tr>
</table>
<table class="table2" width="634" cellspacing="0" cellpadding="0">
<%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="6" class="tdbg4">
		&nbsp; 
		[友情提示]信誉度依次为：<font color="#FF0000"><%=cname%>会员</font> ＞ <font color="#FF0000"><%=bname%>会员</font> ＞ <font color="#FF0000"><%=aname%>会员</font> ＞  
		<font color="#FF0000">一般游客</font></td>
	</tr>
<tr>
		<td width="27" height="22" align="center">
		<img border="0" src="<%=css%>dot3.gif"></td>
		<td width="82" height="25">
		<font color="#FF0000">信息ID：</font></td>
		<td height="25" width="350" colspan="3"><font color="#008080"><%=rs("xxid")%></font> </td>
		<td height="200" width="172" rowspan="3" class="tdbg4">
		<%if rs("xinxipic")="0" then%><img border="0" src="<%=css%>nopic.gif" width="165" height="165"><%else%><img border="0" src="<%if left(rs("xinxipic"),4)="http" then%><%=rs("xinxipic")%><%else%>xinxiupfiles/<%=rs("xinxipic")%><%end if%>" width="165" height="165"><%end if%></td>
	</tr>
	<tr>
		<td width="27" height="11" align="center">
		<img border="0" src="<%=css%>dot3.gif"></td>
		<td height="13">
		发布性质：</td>
		<td height="13" width="118"><%if rs("huitype")=0 then%><font color="#FF0000"><%=aname%>会员</font><%elseif rs("huitype")=1 then%><font color="#FF0000"><%=bname%>会员</font><%elseif rs("huitype")=5 then%><font color="#FF0000">一般游客</font><%else%><font color="#FF0000"><%=cname%>会员</font><%end if%></td>
		<td height="13" width="65">可信度：</td>
		<td height="13" width="170"><%if rs("huitype")=0 then%><img border="0" src="<%=css%>star2.gif"><%elseif rs("huitype")=1 then%><img border="0" src="<%=css%>star3.gif"><%elseif rs("huitype")=5 then%><img border="0" src="<%=css%>star1.gif"><%else%><img border="0" src="<%=css%>star4.gif"><%end if%></td>
	</tr>
	<tr>
		<td height="11" valign="top" colspan="5" align="center">
<table class="table2" width="99%" id="table5">
	<tr>
		<td width="34" height="22" class="tdbg2" align="center"><img border="0" src="<%=css%>dot4.gif"></td>
		<td height="25" class="tdbg2" colspan="4">
		广告标题：<font class="z4"> <b><%=rs("company")%></b></font></td>
	</tr>
<tr>
		<td width="34" height="26">
		<img border="0" src="<%=css%>mycon.gif"></td>
		<td height="26">
		广告类别：</td>
		<td height="26"><a href="adindex.asp?class1=<%=rs("class1")%>"><%=class1c%></a> -> 
		<a href="adindex.asp?class2=<%=rs("class2")%>"> <%=class2c%></a></td>
		<td height="26" width="80">广告属地：</td>
		<td height="26" width="101"><a href="adindex.asp?sheng=<%=rs("sheng")%>"><%=shengc%></a> -> 
		<a href="adindex.asp?shi=<%=rs("shi")%>"> <%=shic%></a></td>
	</tr>
	<tr>
		<td width="34" height="26">
		<img border="0" src="<%=css%>mycon.gif"></td>
		<td height="26">
		交易类型：</td>
		<td height="26" width="152">[ <a href="adindex.asp?leixing=<%=rs("leixing")%>"><font color="#008080"> <%=leixingc%></font></a> ]</td>
		<td height="26" width="80">交易价格：</td>
		<td height="26" width="101"><%if rs("jiage")=0 then%><font color="#008080">面 议</font><%else%><font color="#FF0000"><%=rs("jiage")%></font> 元<%end if%></td>
	</tr>
	<tr>
		<td width="34" height="26">
		<img border="0" src="<%=css%>mycon.gif"></td>
		<td height="26">
		浏览次数：</td>
		<td height="26" width="152"><font color="#FF0000"> <%=rs("llcs")%></font> 次</td>
		<td height="26" width="80">回复次数：</td>
		<td height="26" width="101"><font color="#FF0000"> <%=rs("hfcs")%></font> 次</td>
	</tr>
	<tr>
		<td width="34" height="26">
		<img border="0" src="<%=css%>mycon.gif"></td>
		<td height="26">
		有效期至：</td>
		<td height="26" width="152"><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="26" width="80">还剩天数：</td>
		<td height="26" width="101"><%if ggg>=0 then%>[<b><font color="#FF0000"><%=ggg%></font></b>]&nbsp;天<%else%><font color="#FF0000">已经过期！<%end if%></font></td>
	</tr>
</table>
		</td>
	</tr>
	<tr>
		<td valign="top" colspan="6" align="center" width="99%">
		<table width="99%" id="table171" class="table2">
			<tr>
				<td class="tdbg2" width="30" align="center" valign="top"><br>
				<b>详<br>
				细<br>
				内<br>
				容</b></td>
				<td><textarea name="a" cols="80" rows="7" style="border:1px solid #FFFFFF; background-color:#FFFFFF"><%=rs("memo")%></textarea></td>
			</tr>
		</table>
		<table border="0" width="50%" id="table172" cellspacing="0" cellpadding="0" height="5">
			<tr>
				<td></td>
			</tr>
		</table>
		<table class="table2" width="99%" id="table1">
	<tr>
		<td width="611" height="22" colspan="5" class="tdbg2">
		&nbsp; 联系方式</td>
		
	</tr>
	<tr>
		<td width="26" height="22" valign="top">
		<img border="0" src="<%=css%>mycon.gif"></td>
		<td width="69" height="25">
		联系人：</td>
		
		<td height="25" width="516" colspan="3">
		<%=rs("lxrname")%>&nbsp;
		<%dim rst,sqlt
set rst=server.createobject("adodb.recordset")
sqlt = "select * from FOX_dian where username='"&rs("username")&"' and yz=1"
rst.open sqlt,conn,1,1
if not rst.eof then%>
<img border="0" src="dianimages/dianb.gif" width="15" height="15"><a href="mydian.asp?fox=<%=rst("username")%>"><%=rst("company")%></a>
<%end if
rst.close
set rst=nothing%></td>
		
	</tr>
	<tr>
		<td width="26" height="22" valign="top">
		<img border="0" src="<%=css%>mycon.gif"></td>
		<td width="69" height="25">
		手机：</td>
		<td height="25" width="244"><font color="#FF0000"><%=rs("phone")%></font></td>
		<td height="25" width="66">电话：</td>
		<td height="25" width="212"><font color="#FF0000"><%=rs("usertel")%></font></td>
	</tr>
	<%if rs("phone")<>"" then%><tr>
		<td width="26" height="22" valign="top">
		<img border="0" src="<%=css%>mycon.gif"></td>
		<td width="69" height="25">
		手机查询：</td>
		<td height="25" width="244"><form action="http://www.ip138.com:8080/search.asp" method="post" onsubmit="return checkMobile();" target="mobilewindow" name="mobileform" style="margin:0"><SPAN class=style2222>
           <input type="hidden" name="action" value="mobile"><input class="inputa" maxLength="11" name="mobile" size="15" value="<%=rs("phone")%>" style="border: 1px solid #FFFFFF"> 
           <input class="inputb" type="submit" value="查询此号属地" style="border:1px solid #FFFFFF; background-color:#FFFFFF"></form></td>
		<td height="25" width="272" colspan="2">　</td>
	</tr>
	<%end if%>
	<tr>
		<td width="26" height="22" valign="top">
		<img border="0" src="<%=css%>mycon.gif"></td>
		<td width="69" height="25">
		IP所属地：</td>
		<td height="25" width="244"><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>
		<td height="25" width="272" colspan="2">邮编：&nbsp; <%=rs("code")%></td>
	</tr>
	<tr>
		<td width="26" height="22" valign="top">
		<img border="0" src="<%=css%>mycon.gif"></td>
		<td width="69" height="25">
		EMAIL：</td>
		<td height="25"><%=rs("email")%></td>
		<td height="25" width="66">QQ号码：</td>
		<td height="25" width="212"><%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="26" height="22" valign="top">
		<img border="0" src="<%=css%>mycon.gif"></td>
		<td width="69" height="25">
		联系地址：</td>
		<td height="25" width="516" colspan="3"><%=rs("dizhi")%></td>
	</tr>
</table>
                </td>
	</tr>
	<tr>
		<td valign="bottom" colspan="6" align="right">
		<%function sshu()
dim rsshu
rsshu=conn.execute("Select Count(id) from FOX_xiaog where xiaoid="&fox&"")
sshu=rsshu(0)
set rsshu=nothing
if isnull(sshu) then sshu=0
end function
%><INPUT class="inputb" TYPE=button VALUE="举报处(<%=sshu%>)" ONCLICK="window.open('xinxi_jb.asp?id=<%=rs("id")%>&ts=<%=rs("ts")%>&tt=<%=rs("company")%>','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')">
		　      <%if rs("huitype")=5 then%><font color="#FF6C3B">请注意：这是一般游客发布的广告。</font><%else%><INPUT class="inputb" TYPE=button VALUE="我要回复留言" ONCLICK="window.open('xinxi_hf.asp?id=<%=rs("id")%>&ts=<%=rs("ts")%>&m=<%=rs("username")%>','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')">
                <%end if%><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="6">
		<img border="0" src="<%=css%>d03.jpg">&nbsp; 
		注意：此发布广告有<a href="myhf.asp"><img border="0" src="<%=css%>mail.gif"></a> 
		<font color="#FF0000"> <%=rs("hfcs")%></font> 条</td>
	</tr>
<%else%><%end if%>
</table>
<%rs.close
set rs=nothing%>
</td>
			<td  height="25" bgcolor="#FFFFFF" width="35" valign="top">
			<img border="0" src="<%=css%>bgfox1.jpg" width="25" height="280"></td>
			<td  height="25" bgcolor="#FFFFFF" width="260" valign="top" align="right">
		<table id="table488" width="98%" class="table2">
<tr><td height="24" class="tdbg2">&nbsp; 推荐广告</td></tr>
<%dim ns2,rsfox,sqlfox
set rsfox=server.createobject("adodb.recordset")
sqlfox="select top 36 * 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,rsx,sqlx
set rsfoxf=server.createobject("adodb.recordset")
sqlfoxf="select sheng from FOX_sheng where id="&rsfox("sheng")&""
rsfoxf.open sqlfoxf,conn,1,1
set rsx=server.createobject("adodb.recordset")
sqlx="select leixing from FOX_lei where id="&rsfox("leixing")&""
rsx.open sqlx,conn,1,1
%><tr><td height="23"><a href="adindex.asp?sheng=<%=rsfox("sheng")%>"><font color="#FF0000">[<%=rsfoxf("sheng")%>]</font></a> 
[<a href="adindex.asp?leixing=<%=rsfox("leixing")%>"><font class="z4"><%=rsx("leixing")%></font></a>] 
<A href="adinfo.asp?fox=<%=rsfox("id")%>" title="<%=rsfox("company")%>"><%=left(rsfox("company"),18)%></a>
</td></tr><%
ns2=ns2+1
if ns2>=20 then exit do
rsfox.movenext
loop
end if
rsx.close
set rsx=nothing
rsfoxf.close
set rsfoxf=nothing
rsfox.close
set rsfox=nothing
%></table></td>
		</tr>
		
</table>
</div>

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