<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=gb2312">
<title>更改会员资料</title>
<link href="newskin.css" rel="stylesheet" type="text/css">
<link href="company_style.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="820" 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:5px;">
         <tr> 
            <div class="manage_company_right_title" style="margin-top:10px;">
                	<ul><li>更改个人资料：</li></ul>
                </div>
          </tr>
	  </table> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="mainbody" style="text-align:left;">
        <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" >你的Email：</td>
            <td height="25" ><input name="email" type="text" id="email" value="<?php echo $row['email']?>"  class="company_manage_form_label" /> 
              &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"  class="company_manage_form_label" /> 
              &nbsp;*性别： 
              <input type="radio" name="sex" value="男"<?php if($rowper['sex']=="男" ) echo" checked" ;?>>
              男&nbsp; <input type="radio" name="sex" value="女"<?php if($rowper['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" class="yanzhengma" ></td>
                  <td width="116" ><img src='../include/vdimgck.php' width='50' height='20'></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td height="25" align="right" >你的生日：</td>
            <td height="25" ><input name="birthday" type="text" id="birthday" size="20" value="<?php echo $rowper['birthday']?>" class="company_manage_form_label" />            </td>
          </tr>
          <tr> 
            <td height="25" align="right" >你的体型：</td>
            <td height="25" > <select name="weight" class="company_manage_form_option" >
                <option value='<?php echo $rowper['weight']?>'> 
                <?php echo $rowper['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 $rowper['height']?>" type="text" id="height" size="5" class="yanzhengma" >
              厘米</td>
          </tr>
          <tr> 
            <td height="25" align="right" >你的职业：</td>
            <td height="25" ><input type="radio" name="job" value="学生" <?php if($rowper['job']=="学生" ) echo" checked" ;?>>
              学生 
              <input type="radio" name="job" value="职员" <?php if($rowper['job']=="职员" ) echo" checked" ;?>>
              职员 
              <input type="radio" name="job" value="白领" <?php if($rowper['job']=="白领" ) echo" checked" ;?>>
              白领 
              <input type="radio" name="job" value="失业中" <?php if($rowper['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" class="company_manage_form_option" >
                <option value="0">--不限--</option>
				 <?php 
				 $dsql->SetQuery("Select * From #@__area where reid=0");
				 $dsql->Execute();
				 while($rowa = $dsql->GetArray()){
				    if($rowper['province']==$rowa['id'])
					{ echo "<option value='".$rowa['id']."' selected>".$rowa['name']."</option>\r\n"; }
					else
					{ echo "<option value='".$rowa['id']."'>".$rowa['name']."</option>\r\n"; }
				 }
				 ?>
              </select>
			   &nbsp;城市： 
              <select id="city" name="city" width="4" style="width:85" class="company_manage_form_option" >
                <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($rowper['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" class="company_manage_form_label1" style="width:400px;"><?php echo $rowper['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",$rowper['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($rowper['showaddr']==0) echo " checked";?>>
              不显示 
              <input type="radio" name="showaddr" value="1"<?php if($rowper['showaddr']==1) echo " checked";?>>
              显示</td>
          </tr>
          <tr> 
            <td height="25" align="right" >个人主页：</td>
            <td height="25" ><input name="homepage" value="<?php echo $rowper['homepage']?>" type="text" id="homepage2" size="25" class="company_manage_form_label" ></td>
          </tr>
          <tr> 
            <td height="25" align="right" >OICQ号码：</td>
            <td height="25" ><input name="oicq" type="text" value="<?php echo $rowper['oicq']?>" id="oicq" size="20" style="width:150;height:20" class="company_manage_form_label" >            </td>
          </tr>
          <tr> 
            <td height="25" align="right" >联系电话：</td>
            <td height="25" ><input name="tel" type="text" value="<?php echo $rowper['tel']?>" id="tel" size="20" style="width:150;height:20" class="company_manage_form_label" >            </td>
          </tr>
          <tr> 
            <td height="25" align="right" >详细地址：</td>
            <td height="25" ><input name="address" value="<?php echo $rowper['address']?>" type="text" id="address" size="25" class="company_manage_form_label"  >            </td>
          </tr>
          <tr> 
            <td height="67" align="right" >&nbsp;</td>
            <td height="67" > <input type="submit" name="Submit2" value="确定修改" class="button"> 
              &nbsp;&nbsp; <input type="reset" name="Submit222" value="重置" class="button01"> </td>
          </tr>
        </form>
      </table>
    </td>
  </tr>
</table>
<?php 
if(isset($dsql) && is_object($dsql)) $dsql->Close();
include(dirname(__FILE__)."/foot.htm");
?>
</div>
</body>
</html>
