<!--#Include File="Connection.Asp"-->
<%
dim rs,sql,sex,age1,age2,province,city,photo,online,tmpif,total,bl,currpage
'if request("action")="search" then
	sex=trim(request("sex"))
	age1=trim(request("age1"))
	age2=trim(request("age2"))
	province=trim(request("province"))
	city=trim(request("city"))
	photo=cint(request("photo"))
	online=cint(request("Online"))
	if online=1 and photo=1 then
		sql="select * from v_photoline"
	elseif online=1 then
		sql="select * from v_userline"
	elseif photo=1 then
		sql="select * from v_userphoto"
	else
		sql="select * from jauser"
	end if
	if sex="男" then
		tmpif=tmpif+"JaSex='男'"
		bl=true
	elseif sex="女" then
		tmpif=tmpif+"JaSex='女'"
		bl=true
	end if
	

	if age1<>"" and age2<>"" then
		if bl then
			tmpif=tmpif+" and "
		end if
			tmpif=tmpif+" Jaage between "&age1&" and "&age2
			bl=true
	elseif age1<>"" then
		if bl then
			tmpif=tmpif+" and "
		end if
			tmpif=tmpif+"Jaage>"&age1
			bl=true
	elseif age2<>"" then
		if bl then
			tmpif=tmpif+" and "
		end if
			tmpif=tmpif+"Jaage<"&age2
			bl=true
	end if	
	
	if province<>"" then
		if bl then
			tmpif=tmpif+" and "
		end if
		tmpif=tmpif+"province='"&province&"' and city='"&city&"'"
		bl=true
	end if
	
	if bl then
		tmpif=" where "+tmpif
	end if
	sql=sql+tmpif
'else
	'sql="select * from jauser" 
'end if
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1

rs.pagesize=20
total=rs.pagecount
'if not rs.eof then
	if not isempty(request("Pageno")) and not isnull(request("Pageno"))then
		if cint(request("Pageno"))=-1 then
			session("Pageno")=cint(session("Pageno"))-1
		elseif cint(request("pageno"))=1 then
			session("Pageno")=cint(session("Pageno"))+1
		end if
		Rs.AbsolutePage=session("pageno")
	else
		rs.absolutepage=1
		session("pageno")=1
	end if
	currpage=rs.absolutepage	
	if Rs.absolutepage=rs.pagecount then
		Rs.pagesize=Rs.recordcount-Rs.pagesize*(Rs.absolutepage-1)
	end if
'else
	'currpage=0	
'end if		
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="newimages/main.css" type=text/css 
rel=stylesheet>
<title>会员信息搜索-互动-个性交友-在线聊天-装扮小屋</title>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<script language="JavaScript">
function checknum()
{if(document.form1.age1.value!=""){
	if (isNaN(document.form1.age1.value))
	{
		alert("不是数字");
		return false;
	}
	else
	{	var str=new String(document.form1.age1.value);
		if (str.indexOf(".")>0)
		{
			alert("年龄请输入一个正整数");
			return false;
		}
		else
		{
			if(document.form1.age1.value<15)
			{
				alert("年龄只能在15-60之间");
				return false;
			}
		}
	}
}	
if (document.form1.age2.value!=""){	
	if (isNaN(document.form1.age2.value))
		{
			alert("不是数字");
			return false;
		}
		else
		{	var str=new String(document.form1.age2.value);
			if (str.indexOf(".")>0)
			{
				alert("年龄请输入一个正整数");
				return false;
			}
			else
			{
				if(document.form1.age2.value>60)
				{
					alert("年龄只能在15-60之间");
					return false;
				}
			}
		}
	}
}
</script>
<TABLE cellSpacing=0 cellPadding=0 width=980 align=center border=0>
  <TBODY>
    <TR> 
      <TD><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td width="64%" background="newimages/left_bg_01.gif">&nbsp;</td>
            <td width="3%"><img src="newimages/comm_img_01.gif" width="31" height="22"></td>
            <td width="7%" align="center" background="newimages/right_bg_01.gif"><a href="default.asp">首页</a></td>
            <td width="1%"><img src="newimages/comm_img_02.gif" width="13" height="22"></td>
            <td width="7%" background="newimages/right_bg_01.gif"> <img src="newimages/comm_ico_01.gif" width="3" height="7"><a href="reg.asp">注册会员</a></td>
            <td width="1%"><img src="newimages/comm_img_02.gif" width="13" height="22"></td>
            <td width="5%" background="newimages/right_bg_01.gif"> <img src="newimages/comm_ico_02.gif" width="9" height="9"><a href="login.htm">登录</a></td>
            <td width="12%" background="newimages/right_bg_01.gif"><img src="newimages/comm_img_02.gif" width="13" height="22"></td>
          </tr>
        </table></TD>
    </TR>
    <TR> 
      <TD> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
          <TBODY>
            <TR> 
              <TD width=150><IMG height=90 alt=myzone 
      src="newimages/logo.gif" width=150></TD>
              <TD width=192>&nbsp;</TD>
              <TD vAlign=bottom width=215><img src="newimages/195_mall.gif" width="195" height="30"> 
              </TD>
              <TD width="423" align="right" valign="bottom"><table width="400" border="0" cellspacing="0" cellpadding="0">
                  <tr> 
                    <td><a href="reg.Asp"><img src="newimages/ad.gif" width="400" height="35" border="0"></a></td>
                  </tr>
                </table></TD>
            </TR>
          </TBODY>
        </TABLE></TD>
    </TR>
    <TR> 
      <TD height=38> <TABLE cellSpacing=0 cellPadding=0 width=980 border=0>
          <TBODY>
            <TR> 
              <TD width=15><IMG height=38 src="newimages/top_l1.gif" 
            width=15></TD>
              <TD width=525><a href="default.asp"><img src="newimages/01n.gif" width="105" height="38" border="0"></a><a href="log.asp"><img src="newimages/02.gif" width="105" height="38" border="0"></a><a href="hot.asp"><img src="newimages/03n.gif" width="105" height="38" border="0"></a><a href="hzone.asp"><img src="newimages/04n.gif" width="105" height="38" border="0"></a><a href="mall.asp"><img src="newimages/05n.gif" width="105" height="38" border="0"></a></TD>
              <TD width=15><IMG height=38 src="newimages/top_l2.gif" 
            width=15></TD>
              <TD><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr> 
                    <td height="38" background="newimages/top_bg.gif">&nbsp;</td>
                  </tr>
                </table></TD>
              <TD width=180><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr> 
                    <td><a href="help.htm"><IMG height=38 src="newimages/top_right.gif" 
            width=180 useMap=#Map2Map border=0></a></td>
                  </tr>
                </table></TD>
              <TD width=10 valign="top"><IMG height=38 src="newimages/top_l3.gif" 
            width=10></TD>
            </TR>
          </TBODY>
        </TABLE></TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=980 align=center border=0>
  <TBODY>
    <TR> 
      <TD bgColor=#f5f5f5 colSpan=3 height=5></TD>
    </TR>
    <TR> 
      <TD align=middle width=190 bgColor=#f5f5f5 height=26><IMG height=26 
      src="newimages/txt.gif" width=180></TD>
      <TD width=570 bgColor=#f5f5f5 height=26>&nbsp;</TD>
      <TD 
    style="PADDING-RIGHT: 17px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px" 
    align=right width=220 bgColor=#f5f5f5 height=26>&nbsp; </TD>
    </TR>
  </TBODY>
</TABLE>
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="238" valign="top" bgcolor="#eaf0f4"> 
      <form name="form1" method="post" action="search.asp" onSubmit="return checknum();" target="_self">
        <table width="238" height="237" border="0" cellpadding="0" cellspacing="4" bgcolor="#eaf0f4">
          <tr> 
            <td width="258" align="center">高级搜索</td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td>性别
<select name="sex">
                <option value="不限" selected>不限</option>
                <option value="男">男</option>
                <option value="女">女</option>
              </select> </td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td>年龄
<input name="age1" type="text" size="5" maxlength="6">
              到 
              <input name="age2" type="text" id="age2" size="5">
              岁</td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td height="27">地区 
              <SELECT onchange=setcity(); name=province>
                <OPTION value="" selected>不限</OPTION>
                <OPTION value=安徽>安徽</OPTION>
                <OPTION value=北京>北京</OPTION>
                <OPTION value=重庆>重庆</OPTION>
                <OPTION value=福建>福建</OPTION>
                <OPTION 
                          value=甘肃>甘肃</OPTION>
                <OPTION value=广东>广东</OPTION>
                <OPTION value=广西>广西</OPTION>
                <OPTION 
                          value=贵州>贵州</OPTION>
                <OPTION value=海南>海南</OPTION>
                <OPTION value=河北>河北</OPTION>
                <OPTION 
                          value=黑龙江>黑龙江</OPTION>
                <OPTION value=河南>河南</OPTION>
                <OPTION value=香港>香港</OPTION>
                <OPTION 
                          value=湖北>湖北</OPTION>
                <OPTION value=湖南>湖南</OPTION>
                <OPTION value=江苏>江苏</OPTION>
                <OPTION 
                          value=江西>江西</OPTION>
                <OPTION value=吉林>吉林</OPTION>
                <OPTION value=辽宁>辽宁</OPTION>
                <OPTION 
                          value=澳门>澳门</OPTION>
                <OPTION value=内蒙古>内蒙古</OPTION>
                <OPTION value=宁夏>宁夏</OPTION>
                <OPTION 
                          value=青海>青海</OPTION>
                <OPTION value=山东>山东</OPTION>
                <OPTION value=上海>上海</OPTION>
                <OPTION 
                          value=山西>山西</OPTION>
                <OPTION value=陕西>陕西</OPTION>
                <OPTION value=四川>四川</OPTION>
                <OPTION 
                          value=台湾>台湾</OPTION>
                <OPTION value=天津>天津</OPTION>
                <OPTION value=新疆>新疆</OPTION>
                <OPTION 
                          value=西藏>西藏</OPTION>
                <OPTION value=云南>云南</OPTION>
                <OPTION value=浙江>浙江</OPTION>
                <OPTION 
                          value=海外>海外</OPTION>
              </SELECT>
              省 
              <SELECT 
name=city onChange="text()">
              </SELECT> <SCRIPT 
             src="js/getcity.js"></SCRIPT> <SCRIPT>initprovcity('','');</SCRIPT>
              市</td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td> <input type="checkbox" name="photo" value="1">
              有照片 
              <input type="checkbox" name="online" value="1">
              在线 </td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td align="center">
<input type=image height=20 width=56 
                  src="newimages/btn_search_off.gif" align=middle value=开始查找 
                  name=Submit>
            </td>
          </tr>
        </table>
      </form> </td>
    <td width="742" valign="top" bgcolor="#f5f5f5"> 
      <table width="100%" border="0" cellspacing="0">
        <tr> 
          <td colspan="6" align="center"><TABLE width="100%" border=0 cellPadding=0 cellSpacing=0 bgcolor="#FFFFFF">
              <TBODY>
                <TR> 
                  <TD width=28 height=45><IMG height=19 src="newimages/star.gif" 
            width=21></TD>
                  <TD align="center">搜索列表</TD>
                  <TD align=right>&nbsp;</TD>
                </TR>
                <TR> 
                  <TD background=newimages/bg_title.gif colSpan=3 
        height=5></TD>
                </TR>
              </TBODY>
            </TABLE></td>
        </tr>
        <tr> 
          <td width="71" height="36" align="center">地盘ID</td>
          <td width="140" align="center">地盘名称</td>
          <td width="36" align="center">年龄</td>
          <td width="38" align="center">性别</td>
          <td width="102" align="center">省份</td>
          <td width="127" align="center">城市</td>
        </tr>
        <%flag=1
		do while not rs.eof and flag<=rs.pagesize %>
        <tr> 
          <td align="center"> 
            <%response.write(rs("jaUId"))%>
          </td>
          <td align="center"><a href="index.asp?jauid=<%=rs("jauid")%>" target="_blank">
            <%response.write(rs("jazonename"))%></a>
          </td>
          <td align="center"> 
            <%response.write(rs("jaage"))%>
          </td>
          <td align="center"> 
            <%response.write(rs("jasex"))%>
          </td>
          <td align="center"> 
            <%response.write(rs("province"))%>
          </td>
          <td align="center"> 
            <%response.write(rs("city"))%>
          </td>
        </tr>        <%flag=flag+1
  rs.movenext
  loop
  %>

        <tr align="right"> 
          <td height="21" colspan="6">共 
            <%response.write total%>
            页 当前是第<%response.write currpage%>页 <%if cint(session("pageno"))>1 then%><a href="?sex=<%=sex%>&age1=<%=age1%>&age2=<%=age2%>&province=<%=province%>&city=<%=city%>&Online=<%=online%>&photo=<%=photo%>&pageno=-1">[上页]</a><%else%>[上页]<%end if%>
			<%if cint(session("pageno"))<total then%><a href="?sex=<%=sex%>&age1=<%=age1%>&age2=<%=age2%>&province=<%=province%>&city=<%=city%>&Online=<%=online%>&photo=<%=photo%>&pageno=1">[下页]</a><%else%>[下页]<%end if%></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<TABLE style="BORDER-TOP: #ffffff 6px solid" cellSpacing=0 cellPadding=0 
width=980 align=center border=0>
  <TBODY>
    <TR> 
      <TD width=5><IMG height=5 
      src="newimages/bottom_table_01.gif" width=5></TD>
      <TD width=772 
    background="newimages/bottom_table_09.gif"></TD>
      <TD width=5><IMG height=5 
      src="newimages/bottom_table_02.gif" width=5></TD>
    </TR>
    <TR> 
      <TD background="newimages/bottom_table_12.gif"></TD>
      <TD> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
          <TBODY>
            <TR> 
              <TD vAlign=top align=left width=6><IMG height=4 
            src="newimages/bottom_table_05.gif" width=4></TD>
              <TD></TD>
              <TD vAlign=top align=right width=7><IMG height=4 
            src="newimages/bottom_table_06.gif" width=4></TD>
            </TR>
            <TR> 
              <TD></TD>
              <TD> <TABLE cellSpacing=0 cellPadding=0 width="99%" align=center 
border=0>
                  <TBODY>
                    <TR> 
                      <TD height=28><IMG height=17 
                  src="newimages/arrow.gif" width=17 
                  align=absMiddle>&nbsp; <B>myzone:您的交友平台!!缘分由这里开始..</B> <FONT color=#999999>|</FONT> 
                      </TD>
                      <TD align=right width=220 height=28><a href="#"><IMG height=19 
                  alt="网站地图 SiteMap" 
                  src="newimages/btn_sitemap.gif" width=74 
                  border=0></a> <A href="javascript:void(0)"><IMG class=hand 
                  onclick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://myzone');" 
                  height=19 alt=设置为浏览器主页 
                  src="newimages/btn_bookmark.gif" width=137 
                  border=0></A></TD>
                    </TR>
                    <TR> 
                      <TD bgColor=#d5d5d5 colSpan=2 height=1></TD>
                    </TR>
                  </TBODY>
                </TABLE>
                <table style="BORDER-TOP: #ffffff 7px solid" cellspacing=8 
            cellpadding=3 width="100%" border=0>
                  <tbody>
                    <tr> 
                      <td colspan=2><img height=11 
                  src="newimages/mark_arrow.gif" width=9 
                  align=absMiddle> <b><a 
                  href="log.asp"><font 
                  color=#006699>最新日志</font></a></b> <img height=11 
                  src="newimages/mark_arrow.gif" width=9 
                  align=absMiddle> <a href="mall.asp"><b><font 
                  color=#006699>虚拟物品商城</font></b></a> <img height=11 
                  src="newimages/mark_arrow.gif" width=9 
                  align=absMiddle> <a 
                  href="hot.asp"><b><font 
                  color=#006699>帖图精选</font></b></a> <img height=11 
                  src="newimages/mark_arrow.gif" width=9 
                  align=absMiddle> <a href="Help.htm"><b><font 
                  color=#006699>问题帮助中心</font></b></a></td>
                    </tr>
                    <tr> 
                      <td valign=top width="50%"> <p><img height=2 src="newimages/bullet_01.gif" 
                  width=2 align=absMiddle> <b><a 
                  href="mall.asp">物 品</a></b> &nbsp;&nbsp;<a 
                  href="mall.asp?type=1">背景</a> <a 
                  href="mall.asp?type=2">鼠标</a> <a 
                  href="mall.asp?type=4">挂件</a> <a href="mall.asp?type=5">漂浮</a> 
                          <a href="Mall.asp?type=7">公告栏</a> <a href="Mall.asp?type=8">播放器</a></td>
                      <td valign=top width="50%"><img height=2 
                  src="newimages/bullet_01.gif" width=2 
                  align=absMiddle> <b><a href="log.asp">日 志</a></b> &nbsp;&nbsp;原创文学 
                        情感天地 休闲搞笑 游戏动漫</td>
                    </tr>
                    <tr> 
                      <td valign=top width="50%"><img height=2 
                  src="newimages/bullet_01.gif" width=2 
                  align=absMiddle> <b><a href="hzone.asp">小 屋</a></b> &nbsp;&nbsp;<a 
                  href="z_home_show.asp">家园</a> <a 
                  href="z_visual.asp">形象</a> <a 
                  href="petcenter.asp">宠物</a> <a href="plus_love.asp">幸福恋人</a></td>
                      <td valign=top width="50%"><img height=2 
                  src="newimages/bullet_01.gif" width=2 
                  align=absMiddle> <b>社 区</b> &nbsp;&nbsp;电影电视 音乐天堂 文学茶座 爱情故事 
                        网络纪事</td>
                    </tr>
                  </tbody>
                </table></TD>
              <TD></TD>
            </TR>
            <TR> 
              <TD vAlign=bottom align=left><IMG height=4 
            src="newimages/bottom_table_07.gif" width=4></TD>
              <TD></TD>
              <TD vAlign=bottom align=right><IMG height=4 
            src="newimages/bottom_table_08.gif" width=4></TD>
            </TR>
            <TR> 
              <TD width=6><IMG height=29 
            src="newimages/bottom_bar_left.gif" width=6></TD>
              <TD align="center" 
          background="newimages/bottom_bar_middle.gif" 
          style="PADDING-RIGHT: 0px; PADDING-LEFT: 12px; PADDING-BOTTOM: 0px; PADDING-TOP: 6px"><A 
            class=Ttitle href="about.htm">关于我们</A> <FONT 
            color=#999999>|</FONT> <A class=Ttitle 
            href="reg.Asp">注册会员</A><FONT 
            color=#999999> |</FONT> <A class=Ttitle 
            href="Help.htm">帮助中心</A> <FONT 
            color=#999999>|</FONT> <A class=Ttitle 
            href="zhaopin.htm">网站招聘</A> <FONT 
            color=#999999>|</FONT> <A class=Ttitle 
            href="contact.htm" target=_blank>联系我们</A> <FONT 
            color=#999999>|</FONT> &nbsp;&nbsp;<SPAN class=engsmall><FONT 
            color=#ffffff><B>Where the Fun Begins!</B></FONT></SPAN></TD>
              <TD width=7><IMG height=29 
            src="newimages/bottom_bar_right.gif" 
        width=7></TD>
            </TR>
          </TBODY>
        </TABLE></TD>
      <TD background="newimages/bottom_table_10.gif"></TD>
    </TR>
    <TR> 
      <TD><IMG height=5 src="newimages/bottom_table_03.gif" 
      width=5></TD>
      <TD width=772 
    background="newimages/bottom_table_11.gif"></TD>
      <TD><IMG height=5 src="newimages/bottom_table_04.gif" 
      width=5></TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=980 align=center border=0>
  <TBODY>
    <TR> 
      <TD align="center" ><a href="icp.jpg">增值电信业务经营许可证00001号</a></TD>
    </TR>
    <TR> 
      <TD align="center" class=base><BR> <SCRIPT language=JavaScript 
      src="newimages/copyrights.js"></SCRIPT> </TD>
    </TR>
  </TBODY>
</TABLE>
</body>
</html>
