<?php mymps_admin_tpl_global_head();?>
<script language='javascript'>
function checkSubmit()
{
	 if(document.form1.userid.value==""){
	     alert("用户名不能为空！");
	     document.form1.userid.focus();
	     return false;
     }
     return true;
}
</script>
<div id="<?=MPS_SOFTNAME?>" style=" padding-bottom:0">
    <div class="mpstopic-category">
        <div class="panel-tab">
            <ul class="clearfix tab-list">
                <li><a title="增加个人会员" href="?part=add" <?php if(!$if_corp){?>class="current"<?php }?>>个人</a></li>
                <?php if($mymps_global[cfg_if_corp] == 1){?><li><a title="增加商家会员" href="?part=add&if_corp=1" <?php if($if_corp == 1){?>class="current"<?php }?>>商家</a></li><?php }?>
            </ul>
        </div>
    </div>
</div>
<form name="form1" action="member.php?do=member&part=<?=$action?>" method="post" onSubmit="return checkSubmit();">
<?if ($part == 'edit'){ ?>
<input type="hidden" name="id" value="<?=$id?>" />
<input type="hidden" name="if_corp" value="<?=$edit['if_corp']?>" />
<?} ?>
<div id="<?=MPS_SOFTNAME?>">
<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="vbm">
	<tr class="firstr">
		<td colspan="2">帐号信息</td>
	</tr>
     <tr bgcolor="#f5fbff">
      <td height="30">用户帐号：</td>
      <td><input name="userid" type="text" class="text" value="<?=$edit[userid]?>"/> <?php if($edit){?>【非必要，请勿修改<font color="red"><b>特别是整合其他系统（如：ucenter）之后</b></font>】<?php }?></td>
     </tr>
      <tr bgcolor="#f5fbff">
        <td width="16%" height="30">用户姓名：</td>
        <td width="84%">
        <input name="cname" type="text" class="text" value="<?=$edit[cname]?>"/>
        </td>
      </tr>

    <tr bgcolor="#f5fbff">
        <td height="30">电子邮箱：</td>
        <td>
            <input name="email" type="text" class="text" value="<?=$edit[email]?>"/>
        </td>
    </tr>
    <tr bgcolor="#f5fbff">
            <td height="30">所在用户组</td>
            <td>
				<?php echo get_member_level($edit[levelid]);?>
                【<a href="member.php?do=group">设置用户组权限</a>】
		    </td>
        </tr>
    <tr bgcolor="#f5fbff">
      <td height="30">登录密码：</td>
      <td><input name="userpwd" type="text" class="text" /> <?if($part == 'edit'){?>【若不修改请留空】<?}?></td>
    </tr>
	<tr class="firstr">
      <td height="30" colspan="2">其它信息</td>
    </tr>
    <tr bgcolor="#f5fbff">
      <td height="30">个人身份证认证：</td>
      <td>
      <select name="per_certify">
      	<option value="1" <?php if($edit['per_certify'] == 1) echo 'selected style="background-color:#6EB00C;color:white"';?>>通过验证</option>
        <option value="0" <?php if(empty($edit['per_certify'])) echo 'selected style="background-color:#6EB00C;color:white"';?>>未通过验证</option>
      </select></td>
    </tr>
 <tr bgcolor="#f5fbff">
      <td height="30">拥有金币：</td>
      <td><input name="money_own" type="text" class="txt" value="<?=$edit[money_own]?>"/> <img src="../member/images/mymps_icon_incomes.gif" align="absmiddle"></td>
    </tr>
    <tr bgcolor="#f5fbff">
      <td height="30">积分：</td>
      <td><input name="score" type="text" class="txt" value="<?=$edit[score]?>"/></td>
    </tr>
    <tr bgcolor="#f5fbff">
      <td height="30">信用值：</td>
      <td><input name="credit" type="text" class="txt" value="<?=$edit[credit]?>"/> 
	  <?php if($edit[credits]){?>
	  <img src="../images/credit/<?=$edit[credits]?>.gif" align="absmiddle">
	  <?} ?>
	  </td>
    </tr>
</table>
</div>
<center><input type="submit" class="mymps large" value="提 交">
                　<input type="button" onClick="location.href='member.php'"  class="gray large" value="返 回"></center>
</form>
<?php mymps_admin_tpl_global_foot();?>