<!-- #include file="skin.asp" -->
<!-- #include file="jk_nsort.asp" -->
<!-- #include file="jk_page_cute.asp" -->
<!-- #include file="jk_pagecute.asp" -->
<%
dim pageurl,nummer,sqladd,page,rssum,thepages,viewpage,keyword,sea_type,id,sk_jt,upload_file,pic_width,pic_height,tim,remark
sk_jt="fk0"
rssum=0:nummer=split(web_dim(12),1):thepages=0:viewpage=1:upload_file=web_dim(13)
id=trim(request.querystring("id"))
if not(isnumeric(id)) then id=0
index_url="flea":n_sort="busin"
tit_fir=format_menu(index_url)
call cid_sid()

sub flea_main()
%>
<TABLE width="98%" border=0 align="center">
  <TR><TD align=middle>
<TABLE width="98%">
<TBODY>
<TR>
<TD align=middle>
<FIELDSET style="WIDTH: 100%" align=center><LEGEND>
<TABLE style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid" cellSpacing=0 cellPadding=0 width=200 border=0>
<TBODY>
<TR><TD vAlign=bottom align=middle height=18><FONT color=#ff0000><B>请您仔细阅读下面的郑重声明</B></FONT></TD></TR>
</TBODY></TABLE></LEGEND>
<TABLE cellSpacing=0 cellPadding=0 width="98%" align=right border=0>
<TBODY>
<TR><TD height=5></TD></TR>
<TR>
<TD class=htd>1、禁止发布含有色情和反动言论以及与国家法律法规相抵触的任何信息；禁止发布在网上对他人进行人身攻击评议的言论……等信息。
<BR>2、信息发布者提供的信息必须是真实可靠的，不得有欺骗行为否则后果自负；每条信息的发布不得超过二百五十个字节；敬请不要进行重复发布。
<BR>3、这里的信息发布是全免费的，<%response.write web_dim(1)%>对其不负任何的法律责任（由发布者自负责任敬请郑重），<%response.write web_dim(1)%>有选择和删除权。</TD></TR>
<TR><TD align=middle height=30>
<INPUT onclick="location.href='user_put.asp?action=flea';" type=button value=同意以上声明，我要发布市场信息></TD></TR>
<TR><TD height=5></TD></TR>
</TBODY></TABLE></FIELDSET> 
</TD></TR></TBODY></TABLE>
</TD></TR></TBODY></TABLE>
<TABLE border=0>
<TBODY></table>
<%
end sub

sub business_left()
  response.write "<table width='100%' align=center border=0><tr><td class=td0><font class=end><b>栏目公告</b></font></td></tr></table>"
  response.write "<table border=0 width='100%' cellspacing=0 cellpadding=4 align=center>"
  response.write "<tr><td height=5 width='100%'></td></tr>"
  response.write "<tr><td colspan=2 align=left><table border=0 width='98%'>"
  response.write "<tr><td>　　请您遵守中华人民共和国有关法律、法规；</td></tr>"
  response.write "<tr><td>　　尊重网上道德并遵守诚实信用原则；</td></tr>"
  response.write "<tr><td>　　请勿发表与本站栏目内容无关的话题和不法言论。</td></tr>"
  response.write "<tr><td><a href='user_put.asp?action=flea'><img src='images/flea/flea_put.gif' title='发布我的交易信息' border=0></a>"
  response.write "</table></td></tr>"
  response.write "</td></tr></table>"

end sub

sub flea1_site_type()
  sql="select * from flea where id="&id
  set rs=conn.execute(sql)
%>
<table cellspacing=1 cellpadding=4 class=table>
<tr><td class=bg_td align=center>
  <table border=0 width='100%' class=tf>
  <tr><td class=bw align=center><font size=3 class=blue><b><font class=red>[<%=rs("types")%>]<%response.write joekoe_cms.code_js(joekoe_cms.code_html(rs("name"),1,0),4)%></b></font></td></tr>
  </table>
</td></tr>
<tr><td height=1 background='images/bg_dian.gif'></td></tr>
<tr><td align=center>
  <table border=0 width='100%'>
  <tr>
  <td width='25%'><%response.write pic_fk(rs("pic"),2,"")%></td>
  <td width='75%' valign=top>
    <table border=0 width='98%' class=tf>
    <tr><td class=bw><font class=htd><%response.write rs("remark")%></font></td></tr>
    </table>
  </td>
  </tr>
  </table>
</td></tr>
<tr><td class=td0>联系信息</td></tr>
<tr><td class=bg_td align=right>
  <table border=0 width='98%' class=tf>
  <tr>  <td width='45%'>相关价格：<font class=red><%=rs("price")%></font></td>
  <td width='55%'>发布于：<%response.write joekoe_cms.time_type(rs("tim"),4)%></td>
  </tr>
  <tr><td>联系地址：<%=rs("url")%></td></tr>
  <tr><td>联 系 人：<a href='user_view.asp?username=<%=rs("nname")%>' target=_blank><%=rs("nname")%></td><td>联系电话：<%=rs("phone")%></td></tr>
  <tr><td>电子邮件：<a href='mailto:<%=rs("email")%>'><%=rs("email")%></a></td><td></td></tr>

  </table>
</td></tr>
<tr><td class=td0>相关评论</td></tr>
</table>
<%
end sub

sub flea2_site_type()
%>
  <tr><td colspan=2  background='images/flea/b.gif'>
<table width='98%' border=0 align="right" cellpadding=0 cellspacing=0>
      <tr class=bg_td>
        <td width="65%" height="25"> <b><font color="#FF0000">[<%=rs("types")%>]</font> 
          <a href="flea_view.asp?c_id=<%response.write cid%>&s_id=<%response.write sid%>&id=<%=rs("id")%>" "atb"> 
          <%response.write joekoe_cms.code_js(joekoe_cms.code_html(rs("name"),1,0),4)%>
          </a></b></td>
        <td width="24%">发布于： 
          <%response.write joekoe_cms.time_type(rs("tim"),4)%>
        </td>
        <td width="11%" align=right>[<a href='javascript:;' onclick="javascript:open_view('flea_view.asp?c_id=<%response.write cid%>&s_id=<%response.write sid%>&id=<%=rs("id")%>',1);" alt='点击浏览更详细的信息'><font class=gray>详细信息</font></a>] 
        </td>
      </tr>
    </table>
  </td></tr>
  <tr><td colspan=2 align=center>
        <table width="98%" border="0" align="right" cellpadding="0" cellspacing="0">
      <tr> 
        <td width="15%">联系地址：</td>
        <td width="50%" height="20"><%=rs("url")%></td>
        <td width="20%"><a href='mailto:<%=rs("email")%>'></a>&nbsp; 联 系 人：</td>
        <td width="15%"> <%=rs("nname")%> </td>
      </tr>
      <tr> 
        <td colspan="4"> 
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="14%">相关价格：</td>
              <td width="19%" height="20"><%=rs("price")%></td>
              <td width="14%">联系电话：</td>
              <td width="19%"><%=rs("phone")%></td>
              <td width="14%">电子邮件：</td>
              <td width="20%"><a href='mailto:<%=rs("email")%>'><%=rs("email")%></a></td>
            </tr>
          </table></td>
      </tr>
    </table></td>
</tr>
  <tr class=bg>
  <td colspan=2 align=center></td>
</tr>
<%
end sub

sub top_flea(vname,vgen,c_num,w_num)
  dim nname,osql
  select case vgen
  case "hot"
    osql=" order by counter desc,id desc"
  case "good"
    osql=" and isgood=1 order by id desc"
  case else
    osql=" order by id desc"
  end select
%>
<table cellspacing=0 cellpadding=4 class=table>
<tr><td class=td0>栏目列表</td></tr>
<tr><td>

<A href="flea_list.asp?c_id=104"><font color="#0000FF">【电脑网络】</font></A><br><A href="flea_list.asp?c_id=104">台式机、笔记本、电脑配件、外设、软件、网络产品、其他等。</A><table cellspacing=0 cellpadding=0 class=table>
<tr><td height=10></td></tr></table>
<A href="flea_list.asp?c_id=105"><font color="#0000FF">【房产楼盘】</font></A><br><A href="flea_list.asp?c_id=105">房屋出售、求购、出租、求租、二手房源、其他等。</A><table cellspacing=0 cellpadding=0 class=table>
<tr><td height=10></td></tr></table>
<A href="flea_list.asp?c_id=106"><font color="#0000FF">【求职招聘】</font></A><br><A href="flea_list.asp?c_id=106">人才是知识经济的关键，为你拓宽了就业和竞争的机会。</A><table cellspacing=0 cellpadding=0 class=table>
<tr><td height=10></td></tr></table>
<A href="flea_list.asp?c_id=107"><font color="#0000FF">【手机通讯】</font></A><br><A href="flea_list.asp?c_id=107">GSM手机、CDMA手机、小灵通、手机配件、手机号码、其他。</A><table cellspacing=0 cellpadding=0 class=table>
<tr><td height=10></td></tr></table>
<A href="flea_list.asp?c_id=108"><font color="#0000FF">【家用电器】</font></A><br><A href="flea_list.asp?c_id=108">个人护理、音响、随身视听、空调电视、照像摄像、其他。</A><table cellspacing=0 cellpadding=0 class=table>
<tr><td height=10></td></tr></table>
<A href="flea_list.asp?c_id=109"><font color="#0000FF">【居家生活】</font></A><br><A href="flea_list.asp?c_id=109">家具、家政、日常用品、食品、文具、健身、装饰、其他 。</A><table cellspacing=0 cellpadding=0 class=table>
<tr><td height=10></td></tr></table>
<A href="flea_list.asp?c_id=110"><font color="#0000FF">【儿童用品】</font></A><br><A href="flea_list.asp?c_id=110">童车、童床、服饰、玩具、幼教用品、其他。</A><table cellspacing=0 cellpadding=0 class=table>
<tr><td height=10></td></tr></table>
<A href="flea_list.asp?c_id=111"><font color="#0000FF">【汽车交通】</font></A><br><A href="flea_list.asp?c_id=111">汽车转让、汽车配件、自行车、电动车、摩托车、其他。</A><table cellspacing=0 cellpadding=0 class=table>
<tr><td height=10></td></tr></table>
<A href="flea_list.asp?c_id=112"><font color="#0000FF">【音像乐器】</font></A><br><A href="flea_list.asp?c_id=112">CD/DVD/VCD、磁带、键盘、管弦乐、打击乐器、其他。</A><table cellspacing=0 cellpadding=0 class=table>
<tr><td height=10></td></tr></table>
<A href="flea_list.asp?c_id=113"><font color="#0000FF">【礼品艺术】</font></A><br><A href="flea_list.asp?c_id=113">古董、钟表、字画、书籍、工艺品、邮票、珠宝、其他。</A>
</td></tr>
</table>
<%
end sub

sub flea_sousuo()
%>
<TABLE width="100%" border=0>
<TBODY>
<TR>
<TD class=bg_2 vAlign=bottom align=middle height=25>
<TABLE width="100%" border=0>
<TBODY>
<TR align=middle>
<TD><A href="flea_list.asp?c_id=104">电脑网络</A></TD>
<TD><A href="flea_list.asp?c_id=105">房产楼盘</A></TD>
<TD><A href="flea_list.asp?c_id=106">求职招聘</A></TD>
<TD><A href="flea_list.asp?c_id=107">手机通讯</A></TD>
<TD><A href="flea_list.asp?c_id=108">家用电器</A></TD>
<TD><A href="flea_list.asp?c_id=109">居家生活</A></TD>
<TD><A href="flea_list.asp?c_id=110">儿童用品</A></TD>
<TD><A href="flea_list.asp?c_id=111">汽车交通</A></TD>
<TD><A href="flea_list.asp?c_id=112">音像乐器</A></TD>
<TD><A href="flea_list.asp?c_id=113">礼品艺术</A></TD>
</TR></TBODY></TABLE></TD></TR>
<TR><TD background="images/bg_dian.gif" height=1></TD></TR>
<TR><TD align=middle bgColor=#effbff height=30>
<TABLE cellSpacing=0 cellPadding=2 width="100%" border=0>
<TBODY><TR align=middle>
<TD><A href="flea_list.asp?keyword=供方&sea_type=types"><b>供方信息</b></a></TD>
<TD><A href="flea_list.asp?keyword=求方&sea_type=types"><b>求方信息</b></a></TD>
<TD><A href="flea_list.asp"><b>所有信息</b></a></TD>
<TD>关键字：</TD>
<form action='flea_list.asp?' method=get>
<input type=hidden name=action value='<%response.write action%>'>
<input type=hidden name=c_id value='<%response.write cid%>'>
<input type=hidden name=s_id value='<%response.write sid%>'>
<input type=hidden name=page value='<%response.write viewpage%>'>
<TD><input type=text name=keyword value='<%response.write keyword%>' size=25 maxlength=58></TD>
<TD><SELECT name=sea_type size=1> 
<option value='name'<%if sea_type="name" then response.write " selected"%> selected>信息标题</option>
<option value='price'<%if sea_type="price" then response.write " selected"%>>价格</option>
<option value='nname'<%if sea_type="nname" then response.write " selected"%>>联系人</option>
<option value='username'<%if sea_type="username" then response.write " selected"%>>发布用户</option>
<option value='phone'<%if sea_type="phone" then response.write " selected"%>>联系电话</option>
<option value='url'<%if sea_type="url" then response.write " selected"%>>联系地址</option>
<option value='email'<%if sea_type="email" then response.write " selected"%>>电子邮件</option>
<option value='remark'<%if sea_type="remark" then response.write " selected"%>>详细描述</option>
</SELECT></TD>
<td> <input type=submit value='搜索'></td></FORM></TR></TBODY></TABLE></TD></TR></table>
<%
end sub

sub flea_ck1()
pageurl="?c_id="&cid&"&s_id="&sid&"&action="&action&"&"
keyword=request.querystring("keyword")
sea_type=request.querystring("sea_type")
call cid_sid_sql(2,sea_type)
if cid>0 then
  sqladd=" and c_id="&cid
  if sid>0 then sqladd=sqladd&" and s_id="&sid
end if

sql="select * from flea where hidden=1"&sqladd
select case action
case "counter"
  sql=sql&" order by counter desc,id desc"
case "tim"
  sql=sql&" order by tim desc"
case "id"
  sql=sql&" order by id"
case else
  sql=sql&" order by id desc"
end select

set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if not(rs.eof and rs.bof) then
  rssum=rs.recordcount
end if
call format_pagecute()
%>
<table border=0 width='100%'>
<tr><td colspan=3 height=1></td></tr>
</td></tr>
<%
if int(viewpage)>1 then
  rs.move (viewpage-1)*nummer
end if
for i=1 to nummer
  if rs.eof then exit for
  dim nid,name
  nid=rs("id"):name=rs("name")
%>
<tr><td><%flea2_site_type()%></td></tr>
<tr><td height=1></td></tr>
<tr><td height=1 background='images/bg_dian.gif'></td></tr>
<%
  rs.movenext
next
rs.close:set rs=nothing
%>
<tr><td bgcolor=#effbff height=30>
  <table border=0 width='100%' cellspacing=0 cellpadding=0>
  <tr align=center valign=bottom><td width='30%'>现在有<font class=red><%response.write rssum%></font>条信息┋每页<font class=red><%response.write nummer%></font>条</td>
  <td width='70%'>页次：<font class=red><%response.write viewpage%></font>/<font class=red><%response.write thepages%></font> 分页：<%response.write jk_pagecute(nummer,thepages,viewpage,pageurl,5,"#ff0000")%></td></tr>
  </table>
      <table border=0 width='100%' class=bg_2>
        <tr> 
          <td width=2></td>
          <td class=red_2>说明：</td>
          <td width=5></td>
          <td> 详细说明和相关图片要 <a href='login.asp?action=register'>注册</a> 并 <a href='login.asp'>登陆</a> 
            才可正常浏览和使用</td>
          <td width=2></td>
        </tr>
      </table>
</table>
<%
end sub
%>