<!--#include file="inc/conn.asp"-->
<!--#include file="inc/safe.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>红嫂视屏交友情缘网</title>
<meta name="keywords" content="情感,在线,新新,照片,动感影片,诗歌,爱情,纯洁,心连心">
<meta name="description" content="红嫂视屏交友情缘 情感在线">
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	background-image: url();
}
.STYLE8 {
	color: #CC0099;
	font-size: 12px;
	font-weight: bold;
}
.STYLE31 {color: #666666; font-size: 12px;}
.STYLE81 {	color: #60A7E5;
	font-size: 12px;
	font-weight: bold;
}
-->
</style>
 <script language="javascript" src="js/area1.js"></script>
</head>
<body>
<%
dim sexy,age1,age2,prov,city,sex1
sexy=replacebadchar(request("sex"))
age1=replacebadchar(request("age1"))
age2=replacebadchar(request("age2"))
prov=replacebadchar(request("sheng"))
city=replacebadchar(request("shi"))
if sexy="1" then
  sex1="男"
else
  sex1="女"
end if
%>
<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="top.asp"--></td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="787" align="center" valign="top" bgcolor="#FFFFFF"><div align="left">
        <table width="778" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="200" align="center" valign="top"><div align="left">
                <table width="190" border="0" cellpadding="0" cellspacing="0" style="border-left:#C7C8CC 1px solid;border-right:#C7C8CC 1px solid">
                  <tr>
                    <td height="32" background="image/tiao_1.gif">&nbsp;&nbsp;<span style="font-weight: bold">会员登录</span></td>
                  </tr>
                  <tr>
                    <td height="112" align="center" valign="middle" ><table width="150" border="0" cellpadding="0" cellspacing="0" class="style30">
                        <form name="frmlog" method="post" action="chklogin.asp" onSubmit="return chklog();">
                          <tr>
                            <td width="51" height="30" align="center">用户名</td>
                            <td width="99" height="30"><input name="userid" type="text" id="userid" style="height:20px; width:90px;"></td>
                          </tr>
                          <tr>
                            <td height="30" align="center">密&nbsp; 码</td>
                            <td height="30"><input name="userpass" type="password" id="userpass" style="height:20px; width:90px;"></td>
                          </tr>
                          <tr>
                            <td height="30" colspan="2" align="center"><input type="image" name="imageField" src="image/login2.gif">
                                <a href="newsreg.asp"><img src="image/reg2.gif" width="48" height="20" border="0"></a></td>
                          </tr>
                        </form>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="30" background="image/tiao_1.gif">&nbsp;&nbsp;<span style="font-weight: bold">交友搜索</span></td>
                  </tr>
                  <tr>
                    <td height="174" align="center"  ><table width="154" border="0" cellpadding="0" cellspacing="0" class="STYLE1">
                        <form name="form21" method="post" action="sim_search.asp">
                          <tr>
                            <td height="28" align="center" class="STYLE1">年龄：<span class="white1">
                              <select name="age1" id="age1" style="height:20px;">
                                <%for j=18 to 70
    response.Write "<option value="""& j &""""
	if j=18 then response.Write " selected"
	response.Write ">"& j &"</option>"
	next
  %>
                              </select>
                              -
                              <select name="age2" id="age2" style="height:20px;">
                                <%for j=18 to 70
    response.Write "<option value="""& j &""""
	if j=40 then response.Write " selected"
	response.Write ">"& j &"</option>"
	next
  %>
                              </select>
                            </span></td>
                          </tr>
                       
                          <tr>
                            <td height="28" align="center"><INPUT 
      id=photo type=checkbox value=1 name=photo>
                                <font color="#FF0000">有照片</font></td>
                          </tr>
                          <tr>
                            <td height="28" align="center"><input type="radio" name="radiobutton" value="1">
                                <img src="image/man.gif" width="8" height="12"> &nbsp;
                                <input type="radio" name="radiobutton" value="2">
                                <img src="image/women.gif" width="8" height="12"></td>
                          </tr>
                          <tr>
                            <td height="35" align="center"><input type="image" name="imageField3" src="image/s2.gif"></td>
                          </tr>
                        </form>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="176">&nbsp;</td>
                  </tr>
                  <tr>
                    <td height="11"><img src="images/lg_5.gif" width="190" height="11"></td>
                  </tr>
                </table>
            </div></td>
            <td align="center" valign="top" style="border-left:#C7C8CC 1px solid;border-right:#C7C8CC 1px solid;border-bottom:#C7C8CC 1px solid"><table width="565" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td><TABLE width="100%" border=0 
            cellPadding=0 cellSpacing=0 bgColor=white class="STYLE4" >
                      <TBODY>
                        <TR>
                          <TD align=center width="2%"><img src="image/tiao_3.gif" width="10" height="31"></TD>
                          <TD height="20" align=center background="image/tiao_4.gif"><table width="95%" border="0" cellpadding="0" cellspacing="3" class="STYLE4">
                              <tr>
                                <td class="pgd">征友信息</td>
                                <td width="80" align="right">&nbsp;</td>
                              </tr>
                          </table></TD>
                          <TD width="2%" align="center"><img src="image/tiao_2.gif" width="10" height="31"></TD>
                        </TR>
                      </TBODY>
                  </TABLE></td>
                </tr>
                <tr>
                  <td height="299" valign="top" style="border-left:#C7C8CC 1px solid;border-right:#C7C8CC 1px solid;border-bottom:#C7C8CC 1px solid"><br>
                    <table width="520" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                      <tr>
                        <td height="15" align="center"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="STYLE4">
                            <form name="form2" method="post" action="searchzy.asp">
                              <tr>
                                <td width="74%" align="center"><span class="white1">
                                  <SELECT class=STYLE1 id=sex name=sex>
                                    <OPTION value=1>男性</OPTION>
                                    <OPTION value=2 selected>女性</OPTION>
                                  </SELECT>
              年龄
              <SELECT class=STYLE1 id=age1 name=age1>
                <%for j=18 to 70
    response.Write "<option value="""& j &""""
	if j=18 then response.Write " selected"
	response.Write ">"& j &"</option>"
	next
  %>
              </SELECT>
              －
              <select name="age2" id="age2" class="STYLE1">
                <%for j=18 to 70
    response.Write "<option value="""& j &""""
	if j=40 then response.Write " selected"
	response.Write ">"& j &"</option>"
	next
  %>
              </select>
              所在地
              <select name="sheng" class="STYLE1" onChange="setField(sheng,shi);">
                <option value="0" selected>不限</option>
                <%
					set rs=server.CreateObject("adodb.recordset")
					sql="select id,sheng from sheng order by id"					
					rs.open sql,conn,1
					do while not rs.eof
					  response.Write "<option value="""& rs("id") &""">"& rs("sheng")&"</option>"
					  rs.movenext
					loop
					rs.close
					set rs=nothing
					%>
              </select>
              <select class="STYLE1" name="shi">
                <option value="0" selected>不限</option>
              </select>
&nbsp;</span></td>
                                <td width="26%" height="30"><input type="image" name="imageField2" src="image/so.gif"></td>
                              </tr>
                              <tr>
                                <td height="30" colspan="2" class="STYLE1" align="center">您的查询条件是：性别 <b><%=sex1%></b> 年龄 <b><%=age1%>-<%=age2%></b> 所在地 <b>
                                  <%if prov=0 then 
		  response.Write "不限"
		  else
		    response.Write GetProv(prov) &" "& GetCity(city)
		  end if
		  %>
                                </b></td>
                              </tr>
                            </form>
                        </table></td>
                      </tr>
                      <tr>
                        <td align="center"><table width="520" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                              <td align="center"><table width="520" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td height="8"></td>
                                  </tr>
                                  <tr>
                                    <td height="1" bgcolor="#60A7E5"></td>
                                  </tr>
                                  <tr>
                                    <td height="10" align="center" bgcolor="#FFFFFF" class="style895">&nbsp;</td>
                                  </tr>
                                  <tr>
                                    <td height="28" align="center" bgcolor="#FFFFFF" class="STYLE31"><%
set rs=server.CreateObject("adodb.recordset")
sql="select a.* from finfo_info as a inner join user_info as b on a.userid=b.userid where b.sex='"& sex1 &"' and (b.age between "&age1&" and "&age2&")"
if prov<>0 then
 sql=sql+" and prov="&prov&""
end if
if city<>0 then
 sql=sql+" and city="&city &""
end if
sql=sql+" order by a.id desc"
rs.open sql,conn,1
if rs.eof and rs.bof then
   response.Write "<p class='style4'><br>暂无信息！<br><br></p>"
else
               rs.pagesize=10
			   msg_per_page=rs.pagesize
			   page=request("page")
			   if page<1 or page="" then page=1
			   if clng(page)>clng(rs.pagecount) then page=clng(rs.pagecount)
			   page=clng(page)
			   rs.absolutepage=page
			   rowcount=rs.pagesize
			   pcount=clng(rs.pagecount)	
			   precordcount=rs.recordcount
			   do while not rs.eof and rowcount>0
%>
                                        <table width="96%" border="1" cellpadding="2" cellspacing="2" bordercolor="#FFFFFF" bgcolor="#FFFFFF" class="STYLE4">
                                          <tbody>
                                            <tr>
                                              <td bordercolorlight="#60A7E5" bordercolordark="#60A7E5"><table width="100%" border="0" cellpadding="0" cellspacing="3" class="STYLE4">
                                                  <tbody>
                                                    <tr>
                                                      <td colspan="2" class="style30"><%=rs("liuyan")%></td>
                                                    </tr>
                                                    <tr bgcolor="#FFECEC">
                                                      <td height="1" colspan="2"></td>
                                                    </tr>
                                                    <tr>
                                                      <td width="50%" height="20"><font color="#999999">发布人：<a href="userinfo.asp?user_id=<%=rs("userid")%>" target="_blank" class="a4"><%=rs("username")%></a></font></td>
                                                      <td width="50%" align="right"><font color="#999999">发布时间：<%=formatdatetime(rs("dtime"),2)%></font> </td>
                                                    </tr>
                                                  </tbody>
                                              </table></td>
                                            </tr>
                                          </tbody>
                                        </table>
                                        <br>
                                        <%
rs.movenext
rowcount=rowcount-1
loop
end if%>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td height="8"></td>
                                  </tr>
                              </table></td>
                            </tr>
                          </table>
                            <%if pcount>1 then%>
                            <table width="520" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td height="25"><%
  response.Write "<TABLE align='center' class='STYLE4'>"
response.Write "<form name='form1' method='post' action='searchzy.asp'>"
response.Write "<TBODY><TR><TD>"
if page>1 then
    response.Write "<a href='searchzy.asp?page=1' class='b2'>首页</a>&nbsp;"
	response.Write "<a href='searchzy.asp?page="& page-1 &"' class='b2'>上一页</a>&nbsp;"
else
    response.Write "首页&nbsp;上一页&nbsp;"
end if			 
if page<pcount then
    response.Write "<a href='searchzy.asp?page="& page+1 &"' class='b2'>下一页</a>&nbsp;"
	response.Write "<a href='searchzy.asp?page="& pcount &"' class='b2'>尾页</a>&nbsp;"
else
    response.Write "下一页&nbsp;尾页&nbsp;"
end if	

response.Write "页次:<STRONG><font color='#FF0000'>"&page&"</font>/"&pcount&"</STRONG>页&nbsp; <strong>"&rs.pagesize&"</strong>条/页&nbsp;共<strong>"& precordcount &"</strong>条&nbsp;转到:"
response.Write "<input name='page' type='text' id='page' size='2' style='height:18px;' maxlength='5' value='"&page&"'>"
response.Write "<input name='submit' type='submit' style='height:20px;' id='submit' value='GO'>"
response.Write "</TD></TR></TBODY></form></TABLE>"
			%></td>
                              </tr>
                            </table>
                            <%end if
 rs.close
 set rs=nothing
 conn.close
 set conn=nothing
 %></td>
                      </tr>
                      <tr>
                        <td align="center">&nbsp;</td>
                      </tr>
                    </table>
                  </td>
                </tr>
            </table></td>
          </tr>
        </table>
    </div></td>
    <td width="163" align="center" valign="top" bgcolor="#FFFFFF"><!--#include file="fenlei.asp"--></td>
  </tr>
  <tr>
    <td height="1" valign="top"></td>
    <td valign="top" ></td>
  </tr>
</table>
<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="root.asp"--></td>
  </tr>
</table>
</body>
</html>
