<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.SMS_find" %>
<%On Error Resume Next%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>查找好友</title>
<noscript><iframe src="*.html"></iframe></noscript> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="main.css" rel="stylesheet" type="text/css" />
<script type="Text/JavaScript" language="JavaScript" src="js/findselect.js"></script>
<script type="Text/JavaScript" language="JavaScript">
function checkfind(){
if(reg.checkvalue.value==2){
if((reg.M_userid.value=="")&&(reg.M_email.value=="")&&(reg.cname.value=""))
{alert("请输入查询条件！");
return false;
}}
}
function setcontrol(id){
var str1="<fieldset style='width:100%'><br>登 录 名：<input type='text' name='M_userid'><br>"
  +"公司名称：<input type='text' name='cname'><br>"
  +"电子邮箱：<input type='text' name='M_email'><br><br><br></fieldset>"
var str2="<fieldset style='width:100%'><br><table border=0 cellspacing=3 width=100%><tr><td>会员类别：<select size='1' name='M_usertype'>"
+"  <option selected value=''>-不 限-</option>"
+"  <option value='buyer'>买家</option>"
+"  <option value='seller'>卖家</option>"
+"</select>性 别：<select size='1' name='M_sex'>"
+"  <option slected value=''>-不 限-</option>"
+"  <option value='先生'>先生</option>"
+"  <option value='女士'>女士</option>"
+"</select><br><br>省份：<select name='prov' onChange='javascript:selectcity()'>"
+"<optionv selected value=''>-不 限-</option></select>"
+"城市：<select name='city'><option selected value=''>-不 限-</option></select></td></tr></table><br></fieldset>"

switch(id){
case 1:reg.checkvalue.value=1;findcontrol.innerHTML="<fieldset style='width:100%'><br><table border=0 cellspacing=3 width=100%><tr><td>　　用此方式可以查找所有在线人员，但是离线人员就不能查找了，要查找离线人员请选用其它的查找方式！</td></tr></table><br></fieldset>";break;
case 2:findcontrol.innerHTML=str1;reg.checkvalue.value=2;break;
case 3:findcontrol.innerHTML=str2;reg.checkvalue.value=3;ProvinceOptionMenu();break;
}
}
</script>
</head>
<body onload="setcontrol(1)" oncontextmenu="return false" ondragstart="return false" onselectstart="return false" onkeydown='if(event.ctrlKey)return false;'>
<form action="fresiult.aspx" method="get" name="reg" id="reg" onsubmit="return checkfind()">
  <table style="height:300; width:400" border="1" cellpadding="0" cellspacing="1" bordercolor="#CCCCCC">
    <tr> 
      <td style="height:250" align="center">
        <table style="height:100%; width:90%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td style="height:44%" align="center"><br><fieldset style="width:100%"><legend>请选择查找方式</legend> <table style="width:50%" border="0" cellspacing="0" cellpadding="2">
                <tr> 
                  <td style="width:100%"><label style="cursor:hand"><input name="find" type="radio" onclick="setcontrol(1)" value="1" checked="checked" />
                  看看谁在线</label></td>
                </tr>
                <tr> 
                  <td style="width:100%"><label style="cursor:hand"><input type="radio" onclick="setcontrol(2)" name="find" value="2" />
                    自定义查找</label></td>
                </tr>
                <tr> 
                  <td style="width:100%"><label style="cursor:hand"><input type="radio" onclick="setcontrol(3)" name="find" value="3" />
                    高级查找</label>
                      <input name="checkvalue" type="hidden" id="checkvalue" value="1" /></td>
                </tr>
              </table>
              <br>
              </fieldset><br><br>
            </td>
          </tr>
          <tr>
            <td style="height:56%" align="center" valign="top" id="findcontrol">
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr> 
      <td style="height:24" align="center"> 
        <input name="Button" type="button" class="button" value="上一步(B)" disabled="disabled" /> 
        <input type="submit" class="button" value="下一步(N)" /> <input type="button" class="button1" value="关闭(C)" onclick="window.close()" /> 
      </td>
    </tr>
  </table>
</form>
</body>
</html>
