<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="inc/function.asp"-->
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="inc/Conn_User.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"  xml:lang="zh-CN" lang="zh-CN">

		<script type=text/javascript>var xijuan={channel:"index"}</script>
	<script type=text/javascript src="Inc/main.js"></script>
<!--#include file="top.asp"-->
<script language="JavaScript" type="text/javascript">
	function chkfrm(){
		
		if (document.Myform.Keywords.value==""){
			alert('请输入要检索的关键字！');
			document.Myform.Keywords.focus();
			return false;
		}
		
		
			var Obj = document.getElementsByName("mysort");
			for(i=0;i<Obj.length;i++){
				if(Obj[i].selected){
					if (Obj[i].value=="flv"){
						document.Myform.action="flv_search.asp";
					}else if (Obj[i].value=="zone"){
						document.Myform.action="user_search.asp";
					}else if (Obj[i].value=="blog"){
						document.Myform.action="blog_search.asp";
					}else if (Obj[i].value=="photo"){
						document.Myform.action="photo_search.asp";
					}else{
						document.Myform.action="user_search.asp";
					}
				}
			}

		
		return true;
	}
</script>
<form id="Myform" name="Myform" onSubmit="return chkfrm();" action="" method=post>
    <div id=SearchBlock>
      <div id=search>
<input name="Keywords" type="text" id="Keywords" class="input2"size="45" value="请输入关键字" onMouseOver="this.focus()" onFocus="this.select()" onClick="if (this.value=='请输入关键字') this.value=''"  />


             <select name="mysort" id="mysort" size="1" class="input2"> 
             <option selected value="zone" name="mysort" id="mysort">用户家园</option>
             <option value="photo" name="mysort" id="mysort">用户相册</option>
             <option value="flv" name="mysort" id="mysort">用户视屏</option>
             <option value="blog" name="mysort" id="mysort">用户日志</option>
             </select> &nbsp;
      </div>
     <input class=input_btn value="" type=submit src=Inc/global/images/btn_search.gif name=submit style="cursor:hand;" />
    </div>
    <div class=keywords>
      <ul>
        <li class=key1>热门搜索:
        </li>
      </ul>
    </div>
  </form>
</div><!-- Container -->
<div class="main">
	<div class="main_l">
		<!--Start myshow -->


KKKKKKKKKKKKKKKKKKKKK




<!-- Main start -->






     </div>
<style type="text/css">
<!--
.STYLE1 {
	color: #FF6600;
	font-weight: bold;
}
-->
</style>
	<div class="frm700">
        <!-- video list-->
		<div class="frm700_t">
			<span class="black_bold"><font color="#FF6600" class="no"><strong>空间列表</strong></font></span>
	  	</div>
	    <div class="frm700_m">
			<div id="allcontext" style="width:680px;">
				
<DIV id=allcontext style="WIDTH: 680px">
                      <%
keywords=Request("keywords")
myPagesize=10

set rs=server.createobject("adodb.recordset")

rs.open "select * from [user] where username like '%"&keywords&"%' order by userid desc",conn_user,1,1 
call myPages(rs,myPagesize)


%>
                      <%if  rs.eof then
response.Write "<td><center><br><br><br><font color='#FF6600' style='font-size:16'><strong>暂无会员&nbsp;&nbsp;</strong></font><br><br><br></center></td>"
end if%>
                      <%line=myPagesize
								i=1
do while not rs.eof and line>0
%>


<DIV class=unt_index_lst>




<DIV class=info_lst_l>

<a href="user.asp?userid=<%=rs("userid")%>&mdid=indexd" target="_blank"><img class="img" src="<%if rs("UserPhoto")<>"" then%><%=rs("UserPhoto")%><%else 
   response.Write "images/nopic2.jpg"end if%>" width="130px" height="98px"/></a>

</A></DIV>
<DIV class=info_r>

<LI> <a href=video_play.asp?photoid=<%=rs("photoID")%> target="_blank"><%=left(rs("photoname"),5)%></A></LI>
<LI>用户： <a href="user.asp?userid=<%=rs("userid")%>&mdid=indexd" target="_blank" ><%=left(rs("username"),5)%></a></LI>
<LI>性别：                                     <%
			if rs("Sex")=1 then
				response.write " <a href=zone2.asp?sex=1><img src=isky/boy.gif border=0 alt=男></a> "
			else
				response.write " <a href=zone2.asp?sex=0><img src=isky/girl.gif border=0 alt=女></a> "
			end if
		  %></LI>
<LI>介绍:                                     <%if rs("intor")<>"" then
							   response.write left(rs("intor"),25)
							   if len(rs("intor"))>25 then
							   response.Write "..."
							   end if
							   else
							   response.write "暂无个人介绍"
							   end if%>
                                    </font>
</LI></UL></DIV></DIV>
                      <%if i mod 2=0 then%>
                      <%else%>
                      <%end if%>
                      <%rs.movenext
line=line-1
i=i+1
loop
rs.close
set rs=nothing%>
<DIV class=dashed>
</DIV>

<DIV class=paginator id=newpaginator align=right>

 
<table width="100%" height="0" border="0" cellpadding="0" cellspacing="0">


                <td width="1" ><img src="img0415/space.gif" width="1" height="1"></td>
                <td height="" align="center" >
                  <%call listpages(mycondition)%>
                  <%rs.close
set rs=nothing%>
                </td>
                <td width="1" ><img src="img0415/space.gif" width="1" height="1"></td>
              </tr>
              <tr> 
                <td width="1" height="1"><img src="img0415/space.gif" width="1" height="1"></td>
                <td ></td>
                <td width="1"></td>
              </tr>
            </table>


            <table width="100%" height="" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td height=""><img src="img0415/space.gif"></td>
              </tr>
            </table>
            </td>
        </tr>
      </table> </td>
    <td width="1" ><img src="img0415/space.gif" width="1" height="1"><img src="img0415/space.gif"></td>
    <td width="5" bgcolor="f2f2f2"></td>
  </tr>
</table>
<%sub listpages(mycondition)

	response.write "<table height=22  border=0 cellpadding=0 cellspacing=0><Tr><td><table width='100%' border=0 cellspacing=0 cellpadding=0><tr><td height=3></td></tr></table>"
	if pages<1 then
		exit sub
	end if
	
	
	if p>0 then
		response.write	"<a href="&request.ServerVariables("script_name")&"?action="&request("action")&"&city="&request("city")&"&sex="&request("sex")&"&currentpage=10&p="&p-1&mycondition&"><img src=user/prepre.gif alt=前十页 border=0></a>&nbsp;&nbsp;&nbsp;"
    else
	response.write	"<img src=user/prepre.gif alt=前十页 border=0>&nbsp;&nbsp;&nbsp;"
    end if
	'-------------------下面写出当前十个页码
	response.write "</td><td><img src=user/lined.gif border=0><img src=user/k.gif border=0 width=5>"
	for i=1 to 10
		if (p*10+i)>pages then exit for
		if currentpage=i then
		
			response.write "<b><a style='color:ff6600'"
		else
			response.write "<a"
		end if 
		dates=request("dates")
		response.write " href="&request.ServerVariables("script_name")&"?action="&request("action")&"&city="&request("city")&"&sex="&request("sex")&"&currentpage="&i&"&p="&p&mycondition&"><font class=no >"&(p*10+i)&"</font></a></b>&nbsp;&nbsp;<img src=user/lined.gif border=0><img src=user/k.gif width=5 border=0>"	
     next
	 response.write "</td><td><table width='100%' border=0 cellspacing=0 cellpadding=0><tr><td height=3></td></tr></table>"
	 '--------------------察看下十页的连接
    if (p*10+10)<pages then
		response.write "<img src=user/k.gif border=0><a href="&request.ServerVariables("script_name")&"?action="&request("action")&"&city="&request("city")&"&sex="&request("sex")&"&currentpage=1&p="&p+1&mycondition&"><img src=user/nextnext.gif alt=后十页 border=0></a>" 
		else
		response.write "<img src=user/k.gif border=0><img src=user/nextnext.gif alt=后十页 border=0>"
	end if
	'-----------------------------------------------上下页导航
	response.write "</td>"
	

	  response.write "</tr></table>"
end sub

sub myPages(myRS,mysize)  '------mysize为内部变量（主页面没有定义），myRS为主页面传递过来的RS对象（地址传递）
	if myRS.eof and myRS.bof then str="没有纪录"
	if str="" then
		if mysize="" or NOT IsNumeric(mysize) then
			mysize=15
		end if
		myRS.PageSize=mysize
		pages=myRS.pagecount
		records=myRS.recordcount
		On Error Resume Next '取得数字
		currentPage=request("currentPage")
		if currentPage="" then
			currentPage=1
		end if
		currentPage=CInt(currentPage)
		if Err.Number <> 0 Then
			currentPage=1
			Err.Clear
		end if
		if currentPage<1 then
			currentPage=1
		elseIf currentPage>10 then
			currentPage=10
		end if
		'----------------处理p
		p=request("p")
		if p="" then
			p=0
		end if
		p=CLng(p)
		if Err.Number <> 0 Then
			p=0
			Err.Clear
		end if
		if p<0 then
			p=0
		end if
		'--判断是否出了页数范围
		nowPage=p*10+currentPage
		if nowPage>pages then
			p=(pages-1)\10
			currentPage=((pages-1) mod 10)+1
		end if
		myRS.absolutepage=p*10+currentPage
	else
	   currentPage=1
	   records=0
	   pages=1
	end if
end sub

dim pages,records,currentPage,p '--------定义变量，这些变量在主页面中，进行地址传递%>




</DIV>
</DIV>
			
</div>
    </div>
    <div class="frm700_b"></div>
		<!-- list end -->
	</div>
	<!-- sidebar -->
	<div class="frm245">
    <div class="frm245_t"><span class="blue_bold">频道分类</span></div>
    <div class="frm245_m" id="ListSort">
                        <table width="100%" border="0" cellspacing="0" cellpadding="3">
                          <tr> 
                            <td align="center">&raquo;<a href="zone.asp?city=北京">北京</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=天津">天津</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=河北">河北</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=吉林">吉林</a></td>
                          </tr>
                          <tr bgcolor="#F7F7F7"> 
                            <td align="center">&raquo;<a href="zone.asp?city=山西">山西</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=内蒙古">内蒙古</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=辽宁">辽宁</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=安徽">安徽</a></td>
                          </tr>
                          <tr> 
                            <td align="center">&raquo;<a href="zone.asp?city=山东">山东</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=黑龙江">黑龙江</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=上海">上海</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=浙江">浙江</a></td>
                          </tr>
                          <tr bgcolor="f7f7f7"> 
                            <td align="center">&raquo;<a href="zone.asp?city=江苏">江苏</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=江西">江西</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=湖南">湖南</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=福建">福建</a></td>
                          </tr>
                          <tr> 
                            <td align="center">&raquo;<a href="zone.asp?city=甘肃">甘肃</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=青海">青海</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=宁夏">宁夏</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=贵州">贵州</a></td>
                          </tr>
                          <tr bgcolor="f7f7f7"> 
                            <td align="center">&raquo;<a href="zone.asp?city=河南">河南</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=湖北">湖北</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=陕西">陕西</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=四川">四川</a></td>
                          </tr>
                          <tr> 
                            <td align="center">&raquo;<a href="zone.asp?city=广东">广东</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=广西">广西</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=海南">海南</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=重庆">重庆</a></td>
                          </tr>
                          <tr bgcolor="f7f7f7"> 
                            <td align="center">&raquo;<a href="zone.asp?city=云南">云南</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=西藏">西藏</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=新疆">新疆</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=香港">香港</a></td>
                          </tr>
                          <tr> 
                            <td align="center">&raquo;<a href="zone.asp?city=台湾">台湾</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=澳门">澳门</a></td>
                            <td align="center">&raquo;<a href="zone.asp?city=国外">国外</a></td>
                            <td align="center">&nbsp;</td>
                          </tr>
                        </table></td>
                    </tr>
                  </table>
    </div>
    <div class="frm245_b"></div>
</div>
<div class="frm245">
    <div > </div>
    <div >
<table >


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




	<!-- sidebar end -->
</div>
<div ></div>
<div >
</div>


<div >


</div>
	</div>
<!-- sidebar end -->
<!--#include file="end.asp"-->
<script type=text/javascript>try{__xijuan__.include("foot");}catch(e){}</script>
</div></div></div>
<SCRIPT TYPE="TEXT/JAVASCRIPT">
	$(function(){
		$.get("/recorderall/pagecount.js",function(script){
			eval(script);
			$("#allcontext").load("/recorderall/recorderall"+pagecount+".html");
		});
		$.compatible({moveeffect:{random:20}});
	});
</SCRIPT>
</body>
</html>