<!--#include file="main.asp" -->
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>圈圈搜索_圈网_经商网</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>

<body background="images/bj0.gif">
<!--#include file="top.asp" -->
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="171"><table class="border2" cellspacing="0" cellpadding="0" width="780" align="center" 
bgcolor="white" border="0">
  <tbody>    
    <tr align="left" height="40">
          <td width="100%" colspan="3"><table class="border2" cellspacing="0" cellpadding="0" width="780" align="center" 
bgcolor="white" border="0">
            <tbody>
              <tr align="left" height="40">
                <td width="100%" colspan="3"><table cellspacing="0" cellpadding="0" width="100%" border="0">
                    <form action="group_search.asp" method="post" name="form1" id="form1">
                      <tr>
                        <td height="5"></td>
                      </tr>
                      <tr>
                        <td bgcolor="#a6d688" colspan="3" height="1"></td>
                      </tr>
                      <tr align="left" height="20">
                        <td width="1" bgcolor="#a6d688"></td>
                        <td width="345" bgcolor="#EDEEDB">&nbsp;导航：&nbsp;<a class="blue3ln" 
            href="index.asp">网站首页</a>&gt;&gt;<a class="blue3ln" 
            href="user/">我的管理中心</a>&gt;&gt;
                            <%
			two=request("two")
			if two<>"" then %>
                          <%=two%>
                          <%else%>
                          圈子列表
                          <%end if%></td>
                        <td width="402" bgcolor="#EDEEDB"><p id="status_bar"><span class="float_right">
                            <input name="word" id="word" 
      maxlength="60" />
                            <input type="submit" value="搜索圈子" name="Submit2" />
                        </span></p></td>
                        <td width="1" bgcolor="#a6d688"></td>
                      </tr>
                      <tr>
                        <td bgcolor="#a6d688" colspan="3" height="1"></td>
                      </tr>
                      <tr>
                        <td height="5"></td>
                      </tr>
                    </form>
                </table></td>
              </tr>
            </tbody>
          </table></td>
    </tr>
  </tbody>
</table>
<table width="780" 
border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="white" class="border2">
  <tbody>
    <tr>
      <td height="10"></td>
    </tr>
    <tr bgcolor="#ff5500">
      <td height="2" colspan="4"></td>
      </tr>
  </tbody>
</table>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="white" class="border3">
  <tbody>
<DIV class=col_body><UL>
<%
if addone<>"" then
sql="select * from t_club where F_name like'%"&request("word")&"%' and F_ypaddone="&request("addone")&" order by F_id desc"
else
sql="select * from t_club where F_name like'%"&request("word")&"%' order by F_id desc"
end if
set rs=server.createobject("adodb.recordset")                     
rs.open sql,conn,1,1                     
if rs.eof and rs.bof then                     
	response.write "<tr><td height=194 colspan=5 align=center>暂无内容</td></tr>"
else  
'分页的实现 
listnum=20
Rs.pagesize=listnum
page=Request("page")
if (page-Rs.pagecount) > 0 then
page=Rs.pagecount
elseif page = "" or page < 1 then
page = 1
end if
Rs.absolutepage=page
'编号的实现
j=rs.recordcount
j=j-(page-1)*listnum%>
<%i=0
nn=request("page")
if nn="" then
n=0
else
nn=nn-1
n=listnum*nn
end if
do while not rs.eof and i<listnum
n=n+1
set rs1=server.createobject("adodb.recordset")
sql1="select * from T_ypxxtwo where xxtwo_id="&rs("F_ypxxtwo")
rs1.open sql1,conn,1,1
xxone=rs1("xxone")
xxtwo=rs1("xxtwo")
rs1.close
set rs1=server.createobject("adodb.recordset")
sql1="select * from ypaddtwo where addtwo_id="&rs("F_ypaddtwo")
rs1.open sql1,conn,1,1
addone=rs1("addone")
addtwo=rs1("addtwo")
rs1.close
'n=n+1%>
<tr height="25" bordercolor="#eeeeee">
      <td width="2%"></td>
      <td width="44%">&nbsp;<a class="blue6ln" 
      href="club.asp?id=<%=rs("F_id")%>" title="<%=rs("F_name")%>"><b><%=left(rs("F_name"),15)%></b></a></td>
      <td width="22%"><a class="gray2ln" 
      href="club.asp?id=<%=rs("F_id")%>" title="<%=rs("F_name")%>"><%=rs("F_username")%></a></td>
      <td width="15%"><%=xxone%> / <%=xxtwo%>&nbsp;</td>
      <td width="7%">
<%set rst=server.createobject("adodb.recordset")
rst.open "select * from T_club_member where F_club_id="&rs("F_id")&"",conn,1,1
culb=rst.recordcount
%><%=rst.recordcount%>人<%rst.close%> </td>
      <td width="8%"><a class="orange3" 
      href="save/user_group.asp?club=<%=rs("F_id")%>&key=<%=rs("F_key")%>">加入</a></td>
      <td width="2%"></td>
    </tr>
	 <tr>
      <td width="2%"></td>
      <td colspan="5" ><%=rs("F_content")%></td>
      <td width="2%"></td>
    </tr>
	  <TR>
    <TD width="2%"></TD>
    <TD bgColor=#d6d6d6 colSpan=5 height=1></TD>
    <TD width="2%"></TD></TR>
<%
'if n mod 2=0 then response.Write("</tr><tr>")
rs.movenext
i=i+1 
j=j-1
loop%></UL></DIV><tr>
<%filename="group_search.asp"%>
<td colspan=5 align=right height=20><span class="STYLE2">共 <%=Rs.pagecount%> 页 
      <% if page=1 then %>
      <%else%>
      <a href=<%=filename%>>|<<</a>&nbsp; 
      <a href=<%=filename%>?page=<%=page-1%>><<</a>&nbsp; 
      <a href=<%=filename%>?page=<%=page-1%>>[<%=page-1%>]</a>&nbsp;
      <%end if%>
      <% if Rs.pagecount=1 then %>
      <%else%>
      [<%=page%>]
      <%end if%>
	  <% if Rs.pagecount-page <> 0 then %>
      <a href=<%=filename%>?page=<%=page+1%>>[<%=page+1%>]</a>&nbsp; 
      <a href=<%=filename%>?page=<%=page+1%>>>></a>&nbsp; 
      <a href=<%=filename%>?page=<%=Rs.pagecount%>>>>|</a>&nbsp; 
	  <%end if %>
    &nbsp;</span>&nbsp;</td>
<%end if%></tr></table>
<table width="780" 
border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="white" class="border2">
  <tbody>
    <tr>
      <td height="10"></td>
    </tr>
    <tr align="left" height="25">
     
      <td width="11%" align="center" bgcolor="#d6d6d6" class="con1"><b>同城交友</b> </td>
      <td colspan="2" bgcolor="#d6d6d6"><%set rs=server.createobject("adodb.recordset")
sql="select * from ypaddone"
rs.open sql,conn,1,1
do while not rs.eof%>
          <a href="yp.asp?id=<%=rs("addone_id")%>" class="blue3ln"><%=rs("addone")%></a>
          <%
rs.movenext
loop
rs.close%></td>
      </tr>
    <tr bgcolor="#ff5500">
      <td height="2" colspan="4"></td>
      </tr>
  </tbody>
</table></td>
  </tr>
</table>

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