<!--#include file="inc_top.asp" -->
<table width="762" bgcolor=#f7f7f7 align="center" cellpadding="0" cellspacing="0" class="pian">
<tr><td width=760>
<table width="100%" align="center" cellpadding="0" cellspacing="0">
<tr>
<%	set rs = conn.execute("select * from lb order by lbid")
	j=0
	while not rs.eof%>
<TD height=24 width=735><font color=#ff3300>＋</font>&nbsp;<a href="?lbid=<%=rs("lbid")%>"><%=rs("lbname")%></a></td>
	<% rs.movenext
	j=j+1
	if j mod 5=0 then response.write "</tr><tr>"
	wend
	rs.close
	set rs=nothing %>
</tr>
</table>
</td></tr></table>
<table width="762" bgcolor="#FF9900" align="center" cellpadding="0" cellspacing="1">
	<% 
	lbid=nohack(Request("lbid"))
	if lbid="" or isempty("lbid") then
	set rs = conn.execute("select * from user_name where zt=1 order by tui DESC, id DESC")
	else
	lbid=cint(Request("lbid"))
	set rs = conn.execute("select * from user_name where zt=1 and lbid='"&lbid&"' order by tui DESC")
	end if
	if rs.eof then
		response.write "<font color=red>本类暂时没有品牌店</font>"
		rs.close
		set rs=nothing
	else
		rs.pagesize = 20
		if request("page")=""  or isempty(request("page")) then
		page = 1
		else
		page=cint(request("page"))
		end if
		if page>rs.pagecount then
		page=rs.pagecount
		end if
		if not rs.BOF then
		Rs.Move Rs.PageSize*(page-1)
		end if
		i=1
%>
        <tr height="30" valign="middle"> 
	<td width=148 align=center valign="middle" bgcolor="#FF9900"><font color=#FFFFFF><strong>店铺标志</strong></font></td>
	<td width=608 bgcolor="#FF9900"><font color=#ff3300>　　　　　　　　　<font color="#FFFFFF"><strong>店铺简介</strong></font></font>
　　　　　　　　　　　　　　　　　<strong><font color="#FFFFFF">商户星级</font>	</strong>  </tr>
	<tr><td height=0 colspan=3 bgcolor=#FF9900></td><tr>
<%	do while not rs.eof and i<=rs.pagesize
%>
	<tr height="80" bgcolor=#f9f9f9 onMouseOver=this.style.backgroundColor='#EDF6FF' onMouseOut=this.style.backgroundColor='#f9f9f9'>
	<td width=148 align=center valign="middle" bgcolor="#FFFFFF" valgin=middle>
<%	if rs("logo")<>"" then
	response.write "<a href=user/index.asp?userid="&rs("id")&" target=_blank><img src=user/"&rs("logo")&" width=120 height=50 border=0></a>"
	else
	response.write "<img src=image/noshoplogo.gif width=120 height=50 border=0>"
	end if
%>
	</td>
	<td width=577 align=center valign="middle" bgcolor="#FFFFFF" valgin=top><table width=100%>
	  <tr>
	    <td width="64%">　<a href=user/index.asp?userid=<%=rs("id")%> target=_blank><strong><%=rs("name")%></strong></a>&nbsp;&nbsp;　　　　　　　　　　　　　　　　　　　　　　 　<br>
	      　
二级域名：
          <% 	if rs("erji")<>"" then
	response.write "<a href=http://"&rs("erji")&".onshp.com target=_blank><font color=#ff3300>http://"&rs("erji")&".onshp.com</font>&nbsp;<a href=javascript:window.external.AddFavorite('http://"&rs("erji")&".onshp.com','"&rs("name")&"')>收藏本店</a>"
	else
	response.write "二级域名未开通"
	end if
%>
          　　　　　　　　　　　　　　　　　　　　　　</td>
	    <td width="36%"><img src=image/xing/<%=rs("xing")%>stars.gif border=0></td>
	  </tr></table>
      <%
	rs.movenext
	i=i+1
	loop
%>


</table>
<table width="98%" height="30" align="center" cellpadding="0" cellspacing="0">
        <form name=form method=post action=?lbid=<%=request("lbid")%>>
          <tr> 
            <td valign="middle" align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <%
if rs.recordcount<>0 then
if page-1 mod 10=0 then
		p=(page-1) \ 10
	else
		p=(page-1) \ 10
	end if

	response.write " >> 分页："

	if p*10>0 then response.write "<a href='?lbid="&request("lbid")&"&page="&p*10&"' title=上十页>[&lt;&lt;]</a>   "
    uming_i=1
	for ii=p*10+1 to P*10+10
		   if ii=page then
	          response.write "<font color=#ff0000>["+Cstr(ii)+"]</font> "
		   else
		      response.write "<a href='?lbid="&request("lbid")&"&page="&ii&"'>["+Cstr(ii)+"]</a>   "
		   end if
		if ii=rs.pagecount then exit for
		 uming_i=uming_i+1
	next
	if ii<=rs.pagecount and uming_i=11 then response.write "<a href='?lbid="&request("lbid")&"&page="&ii&"' title=下十页>[&gt;&gt;]</a>   "
response.write(" 　跳页：<input type=text name=page size=2 maxlength=3 class=wenbenkuang> <input type=submit name=Submit2 value=Go class=go-wenbenkuang>")
end if
rs.close
set rs=nothing%> </td>
          </tr>
        </form>
</table>
<table width="0" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr><% end if%>
</table>
<!--#include file="inc_end.asp" -->