<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=gb2312">
<title>更改会员资料</title>
<link href="newskin.css" rel="stylesheet" type="text/css">
<script language='javascript'src='area.js'></script>
<script>
function checkSubmit()
{
if(document.form2.email.value=="")
{
  document.form2.email.focus();
  alert("Email不能为空！");
  return false;
}
if(document.form2.uname.value=="")
{
  document.form2.uname.focus();
  alert("用户昵称不能为空！");
  return false;
}
if(document.form2.vdcode.value=="")
{
  document.form2.vdcode.focus();
  alert("验证码不能为空！");
  return false;
}
}
</script>	
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<?php  include(dirname(__FILE__)."/head.htm"); ?>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="160" height="216" valign="top"> 
      <?php include(dirname(__FILE__)."/menu.php");?>
    </td>
    <td width="10">&nbsp;</td>
    <td  valign="top">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:3px">
         <tr> 
            <td background="img/nnnbg.gif" height="25" class="gdt2">
			<strong>　&nbsp;更改个人资料：</strong>
			</td>
          </tr>
	  </table> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="mainbody">
        <form name="form2" action="index_do.php" method="post" onSubmit="return checkSubmit();">
          <input type="hidden" name="fmdo" value="user" />
          <input type="hidden" name="dopost" value="editUser" />
          <tr> 
            <td width="17%" height="25" align="right" >登陆用户名：</td>
            <td width="83%" height="25" > 
              <?php echo $row['userid']?>            </td>
          </tr>
          <tr> 
            <td height="25" align="right" >原登录密码：</td>
            <td height="25" ><input type="password" name="oldpwd" style="width:120;height:20" >
              *（不正确不允许更改任何资料）</td>
          </tr>
          
          <tr> 
            <td height="25" align="right" >你的Email：</td>
            <td height="25" ><input name="email" type="text" id="email" value="<?php echo $row['email']?>" style="width:150;height:20" > 
              &nbsp;*</td>
          </tr>
          <tr> 
            <td height="25" align="right" >网上昵称：</td>
            <td height="25" ><input name="uname" type="text" value="<?php echo $row['uname']?>" id="uname" size="20" style="width:150;height:20" > 
              &nbsp;*性别： 
              <input type="radio" name="sex" value="男"<?php if($row['sex']=="男" ) echo" checked" ;?>>
              男&nbsp; <input type="radio" name="sex" value="女"<?php if($row['sex']=="女" ) echo" checked" ;?>>
              女</td>
          </tr>
          <tr> 
            <td height="25" align="right" >验证码：</td>
            <td height="25" ><table width="200" border="0" cellspacing="0" cellpadding="0" >
                <tr> 
                  <td width="84" ><input name="vdcode" type="text" id="vdcode" size="10" ></td>
                  <td width="116" ><img src='../include/vdimgck.php' width='50' height='20'></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td height="25" colspan="2" ><hr width="80%" size="1" noshade> </td>
          </tr>
          <tr> 
            <td height="25" align="right" >你的生日：</td>
            <td height="25" ><input name="birthday" type="text" id="birthday" size="20" value="<?php echo $row['birthday']?>" >            </td>
          </tr>
          <tr> 
            <td height="25" align="right" >你的体型：</td>
            <td height="25" > <select name="weight" >
                <option value='<?php echo $row['weight']?>'> 
                <?php echo $row['weight']?>
                </option>
                <option value='平均'>平均</option>
                <option value='苗条/纤细'>苗条/纤细</option>
                <option value='健壮'>健壮</option>
                <option value='略胖'>略胖</option>
                <option value='大型'>大型</option>
              </select> &nbsp;身高： 
              <input name="height" value="<?php echo $row['height']?>" type="text" id="height" size="5" >
              厘米</td>
          </tr>
          <tr> 
            <td height="25" align="right" >你的职业：</td>
            <td height="25" ><input type="radio" name="job" value="学生" <?php if($row['job']=="学生" ) echo" checked" ;?>>
              学生 
              <input type="radio" name="job" value="职员" <?php if($row['job']=="职员" ) echo" checked" ;?>>
              职员 
              <input type="radio" name="job" value="白领" <?php if($row['job']=="白领" ) echo" checked" ;?>>
              白领 
              <input type="radio" name="job" value="失业中" <?php if($row['job']=="失业中" ) echo" checked" ;?>>
              失业中</td>
          </tr>
          <tr> 
            <td height="25" align="right" >所在地区：</td>
            <td height="25" > 
			<select name="province" size="1" id="province" width="4" onChange="javascript:selNext(this.document.form2.city,this.value)" style="width:85">
                <option value="0">--不限--</option>
				 <?php 
				 $dsql->SetQuery("Select * From #@__area where rid=0");
				 $dsql->Execute();
				 while($rowa = $dsql->GetArray()){
				    if($row['province']==$rowa['eid'])
					{ echo "<option value='".$rowa['eid']."' selected>".$rowa['name']."</option>\r\n"; }
					else
					{ echo "<option value='".$rowa['eid']."'>".$rowa['name']."</option>\r\n"; }
				 }
				 ?>
              </select>
			   &nbsp;城市： 
              <select id="city" name="city" width="4" style="width:85" >
                <option value="0">--不限--</option>
				<?php 
				 if(!empty($row['province'])){
				 $dsql->SetQuery("Select * From #@__area where rid=".$row['province']);
				 $dsql->Execute();
				 while($rowa = $dsql->GetArray()){
				    if($row['city']==$rowa['eid'])
					{ echo "<option value='".$rowa['eid']."' selected>".$rowa['name']."</option>\r\n"; }
					else
					{ echo "<option value='".$rowa['eid']."'>".$rowa['name']."</option>\r\n"; }
				 }}
				 ?>
              </select>			  </td>
          </tr>
          <tr> 
            <td height="25" align="right" >个人说明：</td>
            <td height="25" >[少于是125中文字]&nbsp;</td>
          </tr>
          <tr> 
            <td height="25" align="right" >&nbsp;</td>
            <td height="25" ><textarea name="myinfo" cols="40" rows="3" id="myinfo" ><?php echo $row['myinfo']?></textarea></td>
          </tr>
          <tr> 
            <td height="25" align="right" ><strong>详细介绍：</strong></td>
            <td height="25" >&nbsp;</td>
          </tr>
          <tr align="center"> 
            <td height="260" colspan="2" > <table width="96%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td> 
                    <?php 
	          GetEditor("fullinfo",$row['fullinfo'],250,"MemberLit");
              ?>                  </td>
                </tr>
              </table> </td>
          </tr>
          <tr> 
            <td height="25" align="right" >联系方式： </td>
            <td height="25" > <input type="radio" name="showaddr" value="0"<?php if($row['showaddr']==0) echo " checked";?>>
              不显示 
              <input type="radio" name="showaddr" value="1"<?php if($row['showaddr']==1) echo " checked";?>>
              显示</td>
          </tr>
          <tr> 
            <td height="25" align="right" >个人主页：</td>
            <td height="25" ><input name="homepage" value="<?php echo $row['homepage']?>" type="text" id="homepage2" size="25" ></td>
          </tr>
          <tr> 
            <td height="25" align="right" >OICQ号码：</td>
            <td height="25" ><input name="oicq" type="text" value="<?php echo $row['oicq']?>" id="oicq" size="20" style="width:150;height:20" >            </td>
          </tr>
          <tr> 
            <td height="25" align="right" >联系电话：</td>
            <td height="25" ><input name="tel" type="text" value="<?php echo $row['tel']?>" id="tel" size="20" style="width:150;height:20" >            </td>
          </tr>
          <tr> 
            <td height="25" align="right" >详细地址：</td>
            <td height="25" ><input name="address" value="<?php echo $row['address']?>" type="text" id="address" size="25" >            </td>
          </tr>
          <tr> 
            <td height="67" align="right" >&nbsp;</td>
            <td height="67" > <input type="submit" name="Submit2" value="确定修改" > 
              &nbsp;&nbsp; <input type="reset" name="Submit222" value="重置" > </td>
          </tr>
        </form>
      </table>
    </td>
  </tr>
</table>
<?php 
if(isset($dsql) && is_object($dsql)) $dsql->Close();
include(dirname(__FILE__)."/foot.htm");
?>
</div>
</body>
</html>
