<!--#include file="inc/conn.asp"-->
<!--#include file="inc/jle_sub.asp"-->
<%
set rs=server.createobject("adodb.recordset")
dim flid
flid=request("|")
jle=request("||")
%>
<!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>
<title><%=city%>贴贴墙-<%=city%>贴贴墙广告—<%=title%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="keywords" content="<%=metakey%>">
<meta name="description" content="<%=metades%>">
<link rel="icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language= "JavaScript" src="inc/menu.js"></script>
</head>
<body><%call top()%>
<br />
<table width="1300" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td >
<div style="margin-right:-6px; margin-top:6px;">
<%  	
dim rsnx1,jj,kk,ml
set rsnx1=server.createobject("adodb.recordset")
sqlnx1 = "select * from jle_info  where yz=1 and sj=1 order by b desc,fbsj desc,id desc"
rsnx1.open sqlnx1,conn,1,1
ml=4
rsnx1.pagesize=4*ml
pagenum=rsnx1.pagecount
%>
<table width="1300" border="0" style="padding-bottom: 1px" cellpadding="0">
  <%
If rsnx1.eof and rsnx1.bof Then
Response.Write("还没有贴贴墙！")
End If
pageno=cint(request("pageno"))
if pageno="" or pageno>pagenum or pageno=0 then
pageno=1
else
pageno=pageno
end if
if pageno<>1 then
rsnx1.move (pageno-1)*rsnx1.pagesize
end if
for jj=1 to ml%>
  <tr>
    <%
for kk=0 to 3
if rsnx1.eof then exit for
%>

    <td align="left" valign="top" style="padding:5px;background:url(img/tie/face<%=RndNumber(1,6)%>.png) no-repeat 0 0; width:315px; height:180px;"><div style="line-height:140%; margin-top:2px;">
          <ul style="padding:0; margin:0; list-style:none;">
          <li style="margin:5px; text-align:center; height:20px; padding:2px;"><A target="_blank" href="<%=rsnx1("xurl")%>" class="bar4"><font color="#CC0000"><b><%=left(rsnx1("biaoti"),12)%></b></font></a></li>
          <li style="height:120px; padding:3px 7px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=left(replace(replace(replace(rsnx1("memo"),"&nbsp;",""),chr(13)&chr(10),""),"<br>",""),105)%>..</li>
          <li>&nbsp;<img border="0" src="img/ren.gif" width="13" height="13">&nbsp;联系人：<font color="#0066CC"><%=rsnx1("name")%></font>&nbsp;&nbsp;<img border="0" src="image/telp.gif" width="13" height="13">&nbsp;<font color=#333333><b><%=rsnx1("dianhua")%></b></font></li>
        </ul>
      </div></td>
    <%
rsnx1.movenext
next%>
  </tr>
  <%
if rsnx1.eof then exit for
next%>
</table>
<div class="jle" align=center> <a href=?pageno=1>首页</a>
  <%
'显示数量设定
showpagenum=10
'上一页显示判断
if pageno>1 then      
response.write "<a href='?pageno="&pageno-1&"'>上一页</a> "
end if
if pagenum>showpagenum then
num_left=pageno-1
num_right=pagenum-pageno
if num_left>(showpagenum/2) then
 if num_right<(showpagenum/2) then
    page_left=pageno-(showpagenum-num_right)+1
    page_right=pagenum
 else
    page_left=pageno-(showpagenum/2)
    page_right=pageno+(showpagenum/2)
 end if
else
    page_left=1
    page_right=pageno+(showpagenum-num_left)-1
end if
'前项输出
for P=page_left to pageno-1
    response.write " <a href='?pageno="&p&"'>"&p&"</a> "
next
'当前项输出
'response.write " <span class=""current""><a href='?pageno="&pageno&"'>"&pageno&"</a></span> "
response.write " <span class=""current"">"&pageno&"</span> "

'后项输出
for f=pageno+1 to page_right
    response.write " <a href='?pageno="&f&"'>"&f&"</a> "
next
else
for i=1 to pagenum
 if i=pageno then
	'response.write " <span class=""current""><a href='?pageno="&i&"'>"&i&"</a></span> "
	response.write " <span class=""current"">"&i&"</span> "
	'response.end()
 else
	response.write " <a href='?pageno="&i&"'>"&i&"</a> "
	'response.end()
 end if
next
end if
'最后一页判断
if pageno<pagenum then
response.write "<a href='?pageno="&pageno+1&"'>下一页</a>"
end if
%>
  <a href=?pageno=<%=pagenum%>>尾页</a>
  <%
rsnx1.close
set rsnx1=nothing
%>
</div>

</div></td>
  </tr>
</table>

</div>
 <%
call bottom()
Call closedb()
%> 


</body>
</html>