<!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>
<title>会员中心 -<?php echo $cfg_webname; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<link href="templets/style/index.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $cfg_cmspath; ?>/statics/css/index.css" rel="stylesheet" type="text/css" />
<link href="templets/style/boxy.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templets/js/j.js"></script>
<script type="text/javascript"> 
function changeAuthCode() {
	var num = 	new Date().getTime();
	var rand = Math.round(Math.random() * 10000);
	num = num + rand;
	$('#ver_code').css('visibility','visible');
	if ($("#vdimgck")[0]) {
		$("#vdimgck")[0].src = "../include/vdimgck.php?tag=" + num;
	}
	return false;	
}
  function checkSubmit()
{
	if(document.form2.vdcode.value=="")
	{
		document.form2.vdcode.focus();
		alert("验证码不能为空！");
		return false;
	}
}

</script>
<script src="templets/js/webcalendar.js" type="text/javascript"></script>
</head>
<body>
<?php
   alltemp("header_member.htm");
?>
<div id="content" class="w960 clearfix">
  <?php include(DEDEMEMBER."/templets/menu.php"); ?>
  <div class="setting_box fl">
        <div class="settings_title"><b>个人资料</b></div>
      <div id="mainCp">
        <div class="postForm">
        <p><label>用户名：</label><?php echo $cfg_ml->M_LoginID; ?></p>
        <p><label>积&nbsp;&nbsp;分：</label><em><?php echo $cfg_ml->M_Scores; ?></em> 分</p>
        <form action="profile.php" method="post" enctype="multipart/form-data" name="form2" onsubmit="return checkSubmit();">
     <input type="hidden" name="dopost" value="save" />
          <p>
            <label>邮&nbsp;&nbsp;箱：</label>
            <em><?php echo $cfg_ml->fields['email']; ?></em> <i style="font-size:12px;">(<?php if($cfg_ml->fields['checkmail']=='-1') echo "未验证,<a href='join.php?fmdo=sendMail'>点击验证</a>";else echo "已验证" ?>)</i>
          </p>
            <p><label>联系QQ：</label> <input name="qq" type="text" id="qq" class="intxt" value="<?php echo $cfg_ml->fields['qq']; ?>"  /></p>
             <p>
            <label>性&nbsp;&nbsp;别：</label>
			<input type="radio" name="sex" value="男" <?php if($cfg_ml->fields['sex']=='男') echo " checked='checked' "; ?>/>
             男 &nbsp;
            <input type="radio" name="sex" value="女" <?php if($cfg_ml->fields['sex']=='女') echo " checked='checked' "; ?>/>
             女 &nbsp;
          </p>
          <p>
            <label>验证码：</label>
			<input name="vdcode" type="text" id="vdcode" style='width:50px;text-transform:uppercase;' class="intxt" />
           <img id="vdimgck" src="../include/vdimgck.php" align="absmiddle" alt="看不清？点击更换" style="cursor:pointer" onclick="this.src=this.src+'?'" /><a href="javascript:void(0)" onclick="changeAuthCode();">点击更换</a>
          </p>
          <p>
            <button class="btn" style="margin-left:105px;" type="submit">更新</button>
          </p> </form>  
    </div>
      </div>
       
  </div>
</div>
<?php
   alltemp("footer.htm");
?>
</body>
</html>