
<%
sub dindan()
if request.Cookies("bjx")("username")="" then
response.Redirect "user.asp"
response.End
end if
%> 
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr> 
<td width="100%" align="right"> 
<select name="zhuangtai" onChange="var jmpURL=this.options[this.selectedIndex].value ; if(jmpURL!='') {window.location=jmpURL;} else {this.selectedIndex=0 ;}" >
<option value="user.asp?action=dindan&zhuangtai=0" selected>==请选择查讯状态==</option>
<option value="user.asp?action=dindan&zhuangtai=0" >全部订单状态</option>
<option value="user.asp?action=dindan&zhuangtai=1" >未作任何处理</option>
<option value="user.asp?action=dindan&zhuangtai=2" >用户已经划出款</option>
<option value="user.asp?action=dindan&zhuangtai=3" >服务商已经收到款</option>
<option value="user.asp?action=dindan&zhuangtai=4" >服务商已经发货</option>
<option value="user.asp?action=dindan&zhuangtai=5" >用户已经收到货</option>
</select>
</td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cccccc">
	<tr bgcolor="#cccccc" align="center"> 
	<td><strong><font color="#ffffff">订单号</font></strong></td>
	<td><strong><font color="#ffffff">货款</font></strong></td>
	<td><strong><font color="#ffffff">费用</font></strong></td>
	<td><strong><font color="#ffffff">订单状态</font></strong></td>
	</tr>
  <%set rs=server.CreateObject("adodb.recordset")
  dim zhuangtai
  zhuangtai=request.QueryString("zhuangtai")
  if zhuangtai=0 or zhuangtai="" then
  select case zhuangtai
  case "0"
  rs.open "select distinct(dingdan),userzhenshiname,actiondate,shouhuoname,songhuofangshi,zhifufangshi,zhuangtai from BJX_action where username='"&request.Cookies("bjx")("username")&"' and zhuangtai<7 order by actiondate desc",conn,1,1
  case ""
  rs.open "select distinct(dingdan),userzhenshiname,actiondate,shouhuoname,songhuofangshi,zhifufangshi,zhuangtai from BJX_action where username='"&request.Cookies("bjx")("username")&"' and zhuangtai<5 order by actiondate desc",conn,1,1
  end select
  else
  rs.open "select distinct(dingdan),userzhenshiname,actiondate,shouhuoname,songhuofangshi,zhifufangshi,zhuangtai from BJX_action where username='"&request.Cookies("bjx")("username")&"' and zhuangtai="&zhuangtai&" order by actiondate",conn,1,1
  end if

  do while not rs.eof
   %>
	<tr bgcolor="#FFFFFF" align="center"> 
	<td> 
	<a href="dingdan.asp?dan=<%=trim(rs("dingdan"))%>" target="_blank"><%=trim(rs("dingdan"))%></a></div>
    </td>
    <td > 
        <%dim bjx,rs2
	'////
	set bjx=server.CreateObject("adodb.recordset")
	bjx.open "select sum(zonger) as zonger from BJX_action where dingdan='"&trim(rs("dingdan"))&"' ",conn,1,1
	response.write "<font color=#FF6600>"&bjx("zonger")&"元</font>"
	bjx.close
	set bjx=nothing%>
	</td>
	<td> 
        <%
	set bjx=server.CreateObject("adodb.recordset")
	bjx.open "select feiyong from BJX_action where dingdan='"&trim(rs("dingdan"))&"' ",conn,1,1
	response.write "<font color=#FF6600>"&bjx("feiyong")&"元</font>"
	bjx.close
	set bjx=nothing%>
    </td>
    <td> 
        <%select case rs("zhuangtai")
	case "1"
	response.write "未作任何处理"
	case "2"
	response.write "用户已经划出款"
	case "3"
	response.write "服务商已经收到款"
	case "4"
	response.write "服务商已经发货"
	case "5"
	response.write "用户已经收到货"
	case "6"
	response.write "用户已经完成评价"
	end select%>
	</td>
	</tr>
  <%
   rs.movenext
  loop
  rs.close
  set rs=nothing%>
</table><br>
<%
end sub

sub myinfo()
if request.Cookies("bjx")("username")<>"" then
%>
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cccccc">
	<tr align="center"> 
	<td colspan="2"><strong><font color=#FFFFFF>我的统计信息</font></strong></td>
	</tr>
  <%
	set bjx=server.CreateObject("adodb.recordset")
	bjx.open "select * from bjx_User where username='"&request.Cookies("bjx")("username")&"' ",conn,1,1
	ky_jifen=bjx("jifen")
	%>
  <tr bgcolor="#ffffff" align="center"> 
    <td width="50%">用户类型：</td>
    <td width="50%"><font color=red> 
		<%if request.Cookies("bjx")("reglx")="2" then%>
	VIP用户 
	<%else%>
	普通会员 
	<%end if%>
	</font>
		<%if request.Cookies("bjx")("reglx")="2" then%>
	期限：<%=bjx("vipdate")%> 
	<%end if%><%if bjx("yanzheng")=1 then%><a href="user_yanzheng.asp"><font color=red>（还未通过验证）</font></a><%end if%></td>
  </tr>
  <tr bgcolor="#ffffff" align="center">  
    <td>登录次数：</td>
    <td><%=bjx("logins")%></td>
  </tr>
  <tr bgcolor="#ffffff" align="center"> 
    <td>累计积分：</td>
    <td><%=bjx("jifen")%></td>
  </tr>
  <%
	set bjx1=server.CreateObject("adodb.recordset")
	bjx1.open "select sum(zonger) as sum_jine from BJX_action where username='"&request.Cookies("bjx")("username")&"' and zhuangtai<=5",conn,1,1
	%>
  <tr bgcolor="#ffffff" align="center"> 
    <td>总购物金额：</td>
    <td><%=bjx1("sum_jine")%></td>
  </tr>
  <%bjx1.close
	set bjx1=nothing%>
  <tr bgcolor="#ffffff" align="center"> 
    <td><font color="#FF0000">预存款：</font></td>
    <td><%=bjx("yucun")%></td>
  </tr>
  <%if request.Cookies("bjx")("reglx")="2" then%>
  <tr bgcolor="#ffffff" align="center"> 
    <td>VIP期限：</td>
    <td><%=bjx("vipdate")%></td>
  </tr>
  <%end if%>
  <%
	set bjx1=server.CreateObject("adodb.recordset")
	bjx1.open "select count(*) as rec_count from BJX_action where username='"&request.Cookies("bjx")("username")&"' and zhuangtai=6",conn,1,1
	%>
  <tr bgcolor="#ffffff" align="center"> 
    <td>收藏的商品数：</td>
    <td><%=bjx1("rec_count")%></td>
  </tr>
  <%bjx1.close
	set bjx1=nothing%>
  <%bjx.close
	set bjx=nothing%>
</table>
<%else%>
<table width="90%" height="60"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#cccccc">
  <tr>
    <td bgcolor="#FFFFFF"><div align="center">请登陆后操作</div></td>
  </tr>
</table>
<%end if%>
<br>
<%
end sub

sub jifen()
if request.Cookies("bjx")("username")="" then
response.Redirect "user.asp"
response.End
end if
%>
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cccccc">
	<tr  align="center"> 
    <td><strong><font color=#FFFFFF>积分兑换奖品说明</font></strong>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF" align="center"> 
    <td> 
      <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
          <td>
            <%set rs=server.createobject("adodb.recordset")
                              rs.open "select jfhj from BJX_config ",conn,1,1
                              response.write rs("jfhj")
                              rs.close
                              set rs=nothing
                              %>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td align="center"><strong><font color=#FFFFFF>我的积分情况</font></strong>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF" align="center"> 
    <td> 
        <table width="95%" height="24" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
        <%
	set bjx=server.CreateObject("adodb.recordset")
	bjx.open "select jifen from bjx_User where username='"&request.Cookies("bjx")("username")&"' ",conn,1,1
	ky_jifen=bjx("jifen")
	bjx.close
	set bjx=nothing%>
	<td width="50%">我的可用积分：<font color=#FF0000><%=ky_jifen%></font></td>
        <%
	set bjx=server.CreateObject("adodb.recordset")
	bjx.open "select sum(zonger) as sum_jine from BJX_action where username='"&request.Cookies("bjx")("username")&"' and zhuangtai<=5",conn,1,1
	ky_jifen=bjx("sum_jine")
	bjx.close
	set bjx=nothing%>
	<td width="50%">累计购物金额(不含费用)：<font color=#FF0000><%=ky_jifen%></font> 元</td>
	</tr>
	</table>
    </td>
  </tr>
	
	  <tr> 
    <td align="center"><strong><font color=#FFFFFF>积分与预存款换算</font></strong></td>
  </tr>
  <tr bgcolor="#FFFFFF" align="center"> 
    <td> 
        <table width="100%" height="24" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr><form name="form2" method="post" action="huansuan.asp">
	<td>
  把
      <input name="jifen" type="text" id="jifen" size="10">
积分换算成预存款
<input type="submit" name="Submit" value="换算">
<input name="act" type="hidden" id="act" value="jifen">
    </td></form>
	<form name="form2" method="post" action="huansuan.asp">
	<td>
  把
      <input name="cunkuan" type="text" id="cunkuan" size="10">
  元预存款换算成积分
  <input type="submit" name="Submit" value="换算">
  <input name="act" type="hidden" id="act" value="cunkuan">
            </td></form>
	</tr>
	        <tr>
	          <td colspan="2"><div align="center"><font color="#FF0000">换算:1元=2积分</font></div></td>
	          <%
	set bjx=server.CreateObject("adodb.recordset")
	bjx.open "select sum(zonger) as sum_jine from BJX_action where username='"&request.Cookies("bjx")("username")&"' and zhuangtai<=5",conn,1,1
	ky_jifen=bjx("sum_jine")
	bjx.close
	set bjx=nothing%>
          </tr>
	</table>
    </td>
  </tr>
	
  <tr align="center"> 
    <td align=center><strong><font color=#FFFFFF>奖品清单</font></strong></td>
  </tr>
  <tr bgcolor="#FFFFFF" align="center"> 
    <td> 
      <table width="95%" border="0">
        <tr align="center"> 
          <td height="24">奖品名称</td>
          <td height="24">需要积分</td>
          <td height="24">操作</td>
        </tr>
        <%
	set bjx=server.CreateObject("adodb.recordset")
	bjx.open "select * from BJX_jiangpin where xianshi=1",conn,1,1
	while not bjx.eof%>
        <tr>
          <td height="24"><div align="center"><a href="iheeo_jp.asp?id=<%=bjx("bookid")%>" ><%=bjx("bookname")%></a></div></td>
          <td align="center" height="24"><%=bjx("jifen")%></td>
          <td align="center" height="24"><a href="jifen.asp?id=<%=bjx("bookid")%>&action=add">选择此项</a></td>
        </tr>
        <%
	bjx.movenext
	wend
	bjx.close
	set bjx=nothing%>
      </table>
    </td>
  </tr>
  <%
	set bjx=server.CreateObject("adodb.recordset")
	bjx.open "select * from BJX_action_jp where username='"&request.Cookies("bjx")("username")&"' and zhuangtai=7",conn,1,1
	if bjx.recordcount>0 then%>
  <tr align="center"> 
    <td><strong><font color=#FFFFFF>您已选择的奖品清单</font></strong></td>
  </tr>
  <tr bgcolor="#FFFFFF" align="center"> 
    <td> 
      <table width="95%" border="0">
        <tr align="center"> 
          <td height="25">奖品名称</td>
          <td height="25">使用积分</td>
          <td height="25">操作</td>
        </tr>
        <%
	while not bjx.eof%>
        <tr>
          <td height="23">
            <div align="center">
              <%
	set bjx1=server.CreateObject("adodb.recordset")
	bjx1.open "select * from BJX_jiangpin where bookid="&bjx("bookid"),conn,1,1
	if bjx1.recordcount=1 then
	response.write "<a href='iheeo_jp?id="&bjx("bookid")&"' >"&bjx1("bookname")&"</a>"
	end if
	bjx1.close
	set bjx1=nothing%>
            </div></td>
          <td align="center" height="23"><%=bjx("jifen")%></td>
          <td align="center" height="23"><a href="jifen.asp?actionid=<%=bjx("actionid")%>&action=del">删除此项</a></td>
        </tr>
        <%
	bjx.movenext
	wend%>
      </table>
    </td>
  </tr>
  <%end if
	bjx.close
	set bjx=nothing%>
</table><br>
<%
end sub

sub shoucang()
if request.Cookies("bjx")("username")="" then
response.Redirect "user.asp"
response.End
end if
%>
<script language="JavaScript">
<!--
var newWindow = null
function windowOpener(loadpos)
{	
  newWindow = window.open(loadpos,'newwindow','width=450,height=350,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');
	newWindow.focus();
}

//-->
</script>
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cccccc">
<tr><td align=right><strong><font color=#FFFFFF>您最多只能收藏十种商品</font></strong></td></tr></table>
<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select bjx_action.actionid,bjx_action.bookid,BJX_goods.bookname,BJX_goods.shichangjia,BJX_goods.huiyuanjia,BJX_goods.vipjia,BJX_goods.dazhe from BJX_goods inner join  bjx_action on BJX_goods.bookid=bjx_action.bookid where bjx_action.username='"&request.Cookies("bjx")("username")&"' and bjx_action.zhuangtai=6",conn,1,1 
%>
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cccccc">
  <form action="sctogw.asp" target="newwindow" method=post name=form1 onsubmit="windowOpener('')">
    <tr bgcolor="#FFFFFF" align="center"> 
      <td width=8%>选择</td>
      <td width=42%>商品名称</td>
      <td width=14%>市场价</td>
      <td width=14%>会员价</td>
      <td width=14%>VIP 价</td>
      <td width=8%>删除</td>
    </tr>
    <%do while not rs.eof%>
    <tr bgcolor="#ffffff" align=center> 
      <td><input name=bookid type=checkbox checked value="<%=rs("bookid")%>" ></td>
      <td align=left><a href=goodsview.asp?bjxGid=<%=rs("bookid")%> ><%=rs("bookname")%></a></td>
      <td><s><%=rs("shichangjia")%></s>元</td>
      <td><%=rs("huiyuanjia")%>元</td>
      <td><%=rs("vipjia")%>元</td>
      <td><a href=shoucang.asp?action=del&actionid=<%=rs("actionid")%>&ll=1><img src=images/trash.gif width=15 height=17 border=0></a>
      </td>
    </tr>
    <%
rs.movenext
loop
rs.close
set rs=nothing
%>
	<tr bgcolor="#ffffff" align=center>
	<td height=25 colspan=6> 
	<input class="go-wenbenkuang" onFocus="this.blur()" type=submit name="submit" value=" 加入购物车 ">
	</td>
	</tr>
  </form>
</table><br>
<%
end sub

sub savepass()
if request.Cookies("bjx")("username")="" then
response.Redirect "user.asp"
response.End
end if
%>
<script language=JavaScript>
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
function passcheck()
{
    if(document.userpass.userpassword.value.length < 6 || document.userpass.userpassword.value.length >20) {
	document.userpass.userpassword.focus();
    alert("密码长度不能不能这空，在6位到20位之间，请重新输入！");
	return false;
  }
   if(document.userpass.userpassword.value!==document.userpass.userpassword2.value) {
	document.userpass.userpassword.focus();
    alert("对不起，两次密码输入不一样！");
	return false;
  }
}
</script>
<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from bjx_User where username='"&request.Cookies("bjx")("username")&"' ",conn,1,1
%>
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cccccc">
  <form name="userpass" method="post" action="saveuserinfo.asp?action=savepass">
    <tr> 
      <td colspan=2 align="center"><strong><font color=#FFFFFF>尊敬的用户，我们向您承诺：以下信息将被严格保密，绝对不提供给第三方或用作它用!</font></strong></td>
    </tr>
    <tr> 
      <td width="30%" bgcolor=#ffffff align="right">用 户 名：</td>
      <td width="70%" bgcolor=#ffffff><font color=#FF6600><%=request.Cookies("bjx")("username")%></font></td>
	</tr>
    <tr> 
      <td bgcolor=#ffffff align="right">新 密 码：</td>
      <td bgcolor=#ffffff><input name="userpassword" class="wenbenkuang"; type="password" value="" size="18">
	  <font color="#FF0000">**</font> 不修改请为空</td>
    </tr>
    <tr> 
      <td bgcolor=#ffffff align="right">密码确认：</td>
      <td bgcolor=#ffffff><input name="userpassword2" class="wenbenkuang" type="password" value="" size="18">
	  <font color="#FF0000">**</font></td>
    </tr>
    <tr align="center"> 
      <td height=25 bgcolor=#ffffff colspan="2">
	  <input class="go-wenbenkuang" onclick="return passcheck();" type="submit" name="submit" value=" 提交保存 ">
	  <input class="go-wenbenkuang" onclick="ClearReset()" type=reset name="Clear" value=" 重新填写 ">
      </td>
    </tr>
  </form>
</table><br>
<%rs.close
set rs=nothing
end sub

sub userziliao()
if request.Cookies("bjx")("username")="" then
response.Redirect "user.asp"
response.End
end if
%>
<script language=JavaScript>
<%dim sql,i,j
	set rs_s=server.createobject("adodb.recordset")
	sql="select * from BJX_Sheng order by shengorder"
	rs_s.open sql,conn,1,1
%>
	var selects=[];
	selects['xxx']=new Array(new Option('请选择城市……','xxx'));
<%
	for i=1 to rs_s.recordcount
%>
	selects['<%=rs_s("ShengNo")%>']=new Array(
<%
	set rs_s1=server.createobject("adodb.recordset")
	sql="select * from BJX_Shi where shengid="&rs_s("id")&" order by shiorder"
	rs_s1.open sql,conn,1,1
	if rs_s1.recordcount>0 then 
		for j=1 to rs_s1.recordcount
		if j=rs_s1.recordcount then 
%>
		new Option('<%=trim(rs_s1("shiname"))%>','<%=trim(rs_s1("shiNo"))%>'));
<%		else
%>
		new Option('<%=trim(rs_s1("shiname"))%>','<%=trim(rs_s1("shiNo"))%>'),
<%
		end if
		rs_s1.movenext
		next
	else 
%>
		new Option('','0'));
<%
	end if
	rs_s1.close
	set rs_s1=nothing
	rs_s.movenext
	next
rs_s.close
set rs_s=nothing
%>
	function chsel(){
		with (document.userinfo){
			if(szSheng.value) {
				szShi.options.length=0;
				for(var i=0;i<selects[szSheng.value].length;i++){
					szShi.add(selects[szSheng.value][i]);
				}
			}
		}
	}
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
function checkuserinfo()
{
 if(document.userinfo.useremail.value.length!=0)
  {
    if (document.userinfo.useremail.value.charAt(0)=="." ||        
         document.userinfo.useremail.value.charAt(0)=="@"||       
         document.userinfo.useremail.value.indexOf('@', 0) == -1 || 
         document.userinfo.useremail.value.indexOf('.', 0) == -1 || 
         document.userinfo.useremail.value.lastIndexOf("@")==document.userinfo.useremail.value.length-1 || 
         document.userinfo.useremail.value.lastIndexOf(".")==document.userinfo.useremail.value.length-1)
     {
      alert("Email地址格式不正确！");
      document.userinfo.useremail.focus();
      return false;
      }
   }
 else
  {
   alert("Email不能为空！");
   document.userinfo.useremail.focus();
   return false;
   }
   if(checkspace(document.userinfo.userzhenshiname.value)) {
	document.userinfo.userzhenshiname.focus();
    alert("对不起，请填写您的真实姓名！");
	return false;
  }
   if(checkspace(document.userinfo.sfz.value)) {
	document.userinfo.sfz.focus();
    alert("对不起，请填写您的身份证号码！");
	return false;
  }
  
  
  if((document.userinfo.sfz.value.length!=15)&&(document.userinfo.sfz.value.length!=18)) {
	document.userinfo.sfz.focus();
    alert("对不起，请正确填写身份证号码！");
	return false;
  } 
  if(checkspace(document.userinfo.shouhuodizhi.value)) {
	document.userinfo.shouhuodizhi.focus();
    alert("对不起，请填写您的详细地址！");
	return false;
  }
  if(checkspace(document.userinfo.youbian.value)) {
	document.userinfo.youbian.focus();
    alert("对不起，请填写邮编！");
	return false;
  }
  if(document.userinfo.youbian.value.length!=6) {
	document.userinfo.youbian.focus();
    alert("对不起，请正确填写邮编！");
	return false;
  } 
    if(checkspace(document.userinfo.usertel.value)) {
	document.userinfo.usertel.focus();
    alert("对不起，请留下您的联系电话！");
	return false;
  }
}
</script>

<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from bjx_User where username='"&request.Cookies("bjx")("username")&"' ",conn,1,1
%>
    
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cccccc">
  <form name="userinfo" method="post" action="saveuserinfo.asp?action=userziliao">
    <tr> 
      <td colspan=2 align="center"><strong><font color=#FFFFFF>尊敬的用户，我们向您承诺：以下信息将被严格保密，绝对不提供给第三方或用作它用!</font></strong></td>
    </tr>
    <tr bgcolor="#ffffff"> 
      <td width="30%" align="right">用 户 名：</td>
      <td width="70%"><font color=#FF6600>
	  <%=request.Cookies("bjx")("username")%>　( 
		<%if rs("reglx")=2 then %>
		VIP用户　期限：<%=rs("vipdate")%> 
		<%else%>
		普通会员 
		<%end if%>
		)</font></td>
    </tr>
    <tr bgcolor="#ffffff"> 
      <td align="right">电子邮件：</td>
      <td> 
        <input name=useremail class="wenbenkuang" type=text value="<%=trim(rs("useremail"))%>">
		<font color="#FF0000">**</font></td>
    </tr>
    <tr bgcolor="#ffffff"> 
      <td align="right">是否公开邮箱地址：</td>
      <td> 
        <input type="radio" name="ifgongkai" value="1" <%if rs("ifgongkai")=1 then%>checked<%end if%>>
        公开　
        <input type="radio" name="ifgongkai" value="0" <%if rs("ifgongkai")=0 then%>checked<%end if%>>
        不公开</td>
    </tr>
    <tr bgcolor="#ffffff"> 
      <td align="right">真实姓名：</td>
      <td> 
        <input name=userzhenshiname class="wenbenkuang" type=text value="<%=trim(rs("userzhenshiname"))%>" size="10">
		<font color="#FF0000">**</font></td>
    </tr>
    <tr bgcolor="#ffffff"> 
      <td align="right">身份证号码：</td>
      <td> 
        <input name=sfz type=text class="wenbenkuang" value="<%=trim(rs("sfz"))%>" size="30" maxlength="18">
		<font color="#FF0000">**</font></td>
    </tr>
    <tr bgcolor="#ffffff"> 
      <td align="right">性别： </td>
      <td> 
        <input type="radio" name="shousex" value="1" <%if rs("sex")=1 then%>checked<%end if%>>
        男　
        <input type="radio" name="shousex" value="0" <%if rs("sex")=0 then%>checked<%end if%>>
        女　
        <input type="radio" name="shousex" value="2" <%if rs("sex")=2 then%>checked<%end if%>>
        保密</td>
    </tr>
    <tr bgcolor="#ffffff"> 
      <td align="right">年龄：</td>
      <td> 
        <input name=nianling type=text class="wenbenkuang" value="<%=trim(rs("nianling"))%>" size="4" maxlength="2">
      </td>
    </tr>
    <tr bgcolor="#ffffff"> 
      <td align="right">所在城市：</td>
      <td> 
        <select size="1" class="wenbenkuang" name="szSheng" onChange=chsel()>
          <option value="xxx" selected>请选择省份……</option>
          <%dim tmpShengid
tmpShengid=0
set rs_s=server.createobject("adodb.recordset")
sql="select * from BJX_Sheng  order by shengorder"
rs_s.open sql,conn,1,1
while not rs_s.eof
     if rs("szSheng")=rs_s("ShengNo") then
          tmpShengid=rs_s("id")
%>
          <option value="<%=rs_s("ShengNo")%>" selected ><%=trim(rs_s("ShengName"))%></option>
          <%
     else
%>
          <option value="<%=rs_s("ShengNo")%>" ><%=trim(rs_s("ShengName"))%></option>
          <%
     end if
    rs_s.movenext
wend
rs_s.close
set rs_s=nothing
%>
        </select>
        <select size="1" class="wenbenkuang" name="szShi">
          <%
set rs_s=server.createobject("adodb.recordset")
sql="select * from BJX_Shi where shengid="&tmpShengid&" order by shiorder"
rs_s.open sql,conn,1,1
while not rs_s.eof
%>
          <option value="<%=rs_s("ShiNo")%>" <%if rs("szShi")=rs_s("ShiNo") then%>selected<%end if%>><%=trim(rs_s("ShiName"))%></option>
          <%
    rs_s.movenext
wend
rs_s.close
set rs_s=nothing
%>
        </select>
		<font color="#FF0000">**</font></td>
    </tr>
    <tr bgcolor="#ffffff"> 
      <td align="right">详细地址：</td>
      <td> 
        <input name=shouhuodizhi type=text class="wenbenkuang" value="<%=trim(rs("shouhuodizhi"))%>" size="30">
		<font color="#FF0000">**</font></td>
    </tr>
    <tr bgcolor="#ffffff"> 
      <td align="right">联系电话：</td>
      <td> 
        <input name=usertel type=text class="wenbenkuang" value="<%=trim(rs("usertel"))%>" size="12">
		<font color="#FF0000">**</font></td>
    </tr>
    <tr bgcolor="#ffffff"> 
      <td align="right">邮编： </td>
      <td> 
        <input name=youbian type=text class="wenbenkuang" value="<%=trim(rs("youbian"))%>" ONKEYPRESS="event.returnValue=IsDigit();" size="12">
		<font color="#FF0000">**</font></td>
    </tr>
    <tr bgcolor="#ffffff"> 
      <td align="right">QQ：</td>
      <td> 
        <input name=QQ type=text class="wenbenkuang" value="<%=trim(rs("oicq"))%>" size="12" maxlength="12">
      </td>
    </tr>
    <tr bgcolor="#ffffff"> 
      <td align="right">个人主页：</td>
      <td> 
        <input name=homepage type=text class="wenbenkuang" value="<%=trim(rs("homepage"))%>" size="30">
      </td>
    </tr>
    <tr bgcolor="#ffffff"> 
      <td align="right">自我介绍：</td>
      <td> 
        <textarea name="content" cols="30" rows="5" class="wenbenkuang"><%=trim(rs("content"))%></textarea>
      </td>
    </tr>
    <tr align="center"> 
      <td height=25 bgcolor=#ffffff colspan="2">
	  <input class="go-wenbenkuang" onclick="return checkuserinfo();" type="submit" name="submit" value=" 提交保存 ">
	  <input class="go-wenbenkuang" onclick="ClearReset()" type=reset name="Clear" value=" 重新填写 ">
      </td>
    </tr>
  </form>
</table><br>
<%rs.close
set rs=nothing
end sub
%>