<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!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=utf-8" />
<title>Powered by 9416.cn</title>


<!--#include file="../inc/conn.asp"-->

<script type="text/javascript" src="../ui/jquery.js"></script>
 <link rel="stylesheet" href="../ui/layui/css/layui.css" type="text/css"  />

<script type="text/javascript" src="../ui/layui/layui.js"></script>

<script type="text/javascript" src="../ui/pc.js"></script>

</head>


<body>


  
   <div class="mec_div" style="padding:20px;">
 <%jianbook.qxmsg()
sql="select * from [user] where id="&request("id")
  rs.open sql,conn,3,3%>
        <form id="form1" name="form1" class="layui-form"  method="post" action="?act=add&id=<%=request("id")%>">
  	   <table width="100%" border="0" cellspacing="0" cellpadding="0"  >
    <tr>
      <td width="110" height="40">会员账号：</td>
      <td><%=rs("email")%></td>
    </tr>
    
    <tr>
      <td width="110" height="40">昵称：</td>
      <td><input name="username" type="text" class="layui-input"  style="width:200px"  lay-verify="required" value="<%=rs("username")%>" placeholder="" /></td>
    </tr>
    
    <tr>
      <td height="40">登陆密码：</td>
      <td><input name="psw" type="text" class="layui-input" style="width:200px"   placeholder="不修改留空 "/></td>
    </tr>
    <tr>
      <td height="40">是否审核</td>
      <td><input type="checkbox" <%if rs("zt")=1 then%>checked="checked"<%end if%> name="zt" lay-skin="switch" lay-filter="switchTest"  value="1" lay-text="是|否"></td>
    </tr>
    
       
        <tr>
          <td height="50"></td>
          <td><input type="submit" class="layui-btn" value="保存资料" lay-submit="lay-submit" /></td>
         </tr>
       </table>
 
  </form>
    
 
 
	
</div> 
 

<%

  if request("act")="add" then
  jianbook.demomsg()
if trim(request("psw"))<>"" then
  if len(request("psw"))>=6 then
  
  rs("code")=MD5(request("psw"))
  else
  response.Write"<script>alert('密码要大于6位字符'); </script>"
response.End()
  end if
  
 end if

rs("username")=request("username")
if request.form("zt")=1 then
rs("zt")=1
else
rs("zt")=0
end if


	
        rs.update
		rs.close
	
jianbook.mgbox "保存成功","user_edit.asp?id="&request("id")
end if
	

 
 
%>

		

</body>

</html>
