<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>">

<link href="images/style.css" rel="stylesheet" type="text/css">

<script language="javascript">

function chkform()

{

	if(document.form.password.value.length != '' && (document.form.password.value.length>30 || document.form.password.value.length<5) ){

		alert('新密码请控制在5~30字之间!');

		document.form.password.focus();

		return false;

	}

	if(document.form.repassword.value != document.form.password.value){

		alert('两次输入密码不相同');

		document.form.repassword.focus();

		return false;

	}

}

</script>

</head>

<body>

<p class="add"><a href="<?=$_SERVER[PHP_SELF]?><? if($userinfo['gid']>0){ ?>?gid=<?=$userinfo['gid']?><?}?>">返回列表</a></p>

<form method="post" onSubmit="return chkform()" name="form" action="member.php?act=update">

<div class="post_li">

	<ul>

		<li><h4>会员名称</h4><?=$userinfo[username]?></li>

		<li><h4>会员组</h4><select name="gid" id="gid" >

		<option value='0'<? if($userinfo[gid]==0){ ?> selected<?}?>>普通会员</option>

		<option value='1'<? if($userinfo[gid]==1){ ?> selected<?}?>>商家会员</option>

		</select></li>

		<li><h4>新密码</h4><input name="password" type="password" id="password" value=""></li>

		<li><h4>重复新密码</h4><input name="repassword" type="password" id="repassword" value=""></li>

		<li><h4>手机</h4><input name="phone" type="text" id="phone" value="<?=$userinfo[phone]?>"></li>

		<li><h4>邮箱</h4><input name="email" type="text" id="email" value="<?=$userinfo[email]?>"></li>

		<li><h4>头像</h4><?=$face?></li>
		<li><h4>性别</h4><?=$sex?></li>
		<li><h4>生日</h4><?=$shengris?></li>

		<li><h4>注册时间</h4><?=date('Y-m-d',$userinfo['registertime'])?></li>

		<?if($userinfo['regname']){?>

		<li><h4>注册邀请人</h4><?=$userinfo['regname']?></li>

		<?}?>

		<li><h4>最后登录时间</h4><?=date('Y-m-d',$userinfo['lastlogintime'])?></li>

		<li><h4>最后登录IP</h4><?=$userinfo['lastloginip']?></li>

		<li><h4>审核状态</h4><input name="status" type="radio" id="status" value="0" <?php if($userinfo['status']==0){?>checked<?}?> />未通过&nbsp;

			  <input name="status" type="radio" id="status" value="1" <?php if($userinfo['status']==1){?>checked<?}?> />通过&nbsp;

			  <input name="status" type="radio" id="status" value="2" <?php if($userinfo['status']==2){?>checked<?}?> />锁定</li>

	</ul>

	<div class="clear h_1"></div>

	<div class="tc">

		<input type="hidden" name="id" value="<?=$userinfo[userid]?>">

		<input type="submit" name="modifymember" value="提交" /> 

		<input type="reset" value="重置" > 

	</div>

</div>

	</form>

</body>

</html>