<!--#include file="user_Fun.asp" -->
<%getuser%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link href="<%=sitepath%>css/bootstrap.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/font-awesome.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/animate.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/style.min.css" rel="stylesheet">
<link href="<%=sitepath&adminPath%>css/adminstyle.css" rel="stylesheet">
<script src="<%=sitepath%>js/jquery.min.js"></script>
<script src="<%=sitepath%>plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<!--[if lte IE 9]>
<script src="<%=sitepath%>js/respond.min.js"></script>
<script src="<%=sitepath%>js/html5.js"></script>
<![endif]-->
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content">
  <div class="ibox float-e-margins">
    <div class="row m-t">
      <form method="post" action="?act=edit&UID=<%=UID%>" class="form-horizontal" id="contentform">
        <div class="col-sm-6">
          <div class="ibox float-e-margins"> 
            <div class="ibox-title">
              <h5>基本信息</h5>
             
            </div>
           
            <div class="ibox-content">
              <div class="form-group">
                <label class="col-sm-2 control-label">登录名</label>
                <div class="col-sm-4">
                  <input type="text" name="userName" required id="userName" value="<%=userName%>" class="form-control">
                </div>

                <label class="col-sm-2 control-label">会员名称</label>
                <div class="col-sm-4">
                  <input type="text" value="<%=TrueName%>" name="TrueName" id="TrueName" class="form-control">
                </div>
              </div>

              <div class="form-group">
                <label class="col-sm-2 control-label">修改密码</label>
                <div class="col-sm-4">
                  <input type="text" value="" placeholder="不修改留空即可" name="Password" id="Password" class="form-control">
                </div>
            
                <label class="col-sm-2 control-label">确认密码</label>
                <div class="col-sm-4">
                  <input type="text" value="" name="rePassword" id="rePassword" class="form-control">
                </div>
              </div>
              
              
              <div class="form-group">
                <label class="col-sm-2 control-label">密码问题</label>
                <div class="col-sm-4">
                  <input type="text" value="<%=Question%>" name="Question" id="Question" class="form-control">
                </div>

                <label class="col-sm-2 control-label">密码答案</label>
                <div class="col-sm-4">
                  <input type="text" value="<%=Answer%>" name="Answer" id="Answer" class="form-control">
                </div>
              </div>
              
              
              
              <div class="form-group">
                <label class="col-sm-2 control-label">电话</label>
                <div class="col-sm-4">
                  <input type="text" value="<%=tel%>" name="tel" id="tel" class="form-control">
                </div>
                <label class="col-sm-2 control-label">手机</label>
                <div class="col-sm-4">
                  <input type="text" value="<%=Mobile%>" name="Mobile" id="Mobile" class="form-control">
                </div>
              </div>
              
              <div class="form-group">
                <label class="col-sm-2 control-label">邮箱</label>
                <div class="col-sm-4">
                  <input type="text" value="<%=Email%>" name="Email" id="Email" class="form-control">
                </div>
                <label class="col-sm-2 control-label">QQ</label>
                <div class="col-sm-4">
                  <input type="text" value="<%=qq%>" name="qq" id="qq" class="form-control">
                </div>
              </div>
              
               <div class="form-group">
                <label class="col-sm-2 control-label">省市区</label>
                <div class="col-sm-4">                
                  <select class="form-control m-b" name="Province"  id="Province">                   
                      <option value="<%=Province%>" selected><%=Province%></option>
                      <%	
					  dim rs				
					  set rs=dbsql("select title,entitle from [dbpre]region where OnOff=1 and depth=1 order by R_order asc,entitle asc")
					  do while not rs.eof					  				
					   echo"<option value="&rs("title")&">"&rs("entitle")&rs("title")&"</option>"
					  rs.movenext
					  loop
					  %>
                     </select>
                </div>               
                <div class="col-sm-3">
                  <select class="form-control m-b" name="City"  id="City"> 
                        <option value="<%=City%>" selected><%=City%></option>                       
                   </select>
                </div>                
                <div class="col-sm-3">
                   <select class="form-control m-b" name="District"  id="District">      
                  		<option value="<%=District%>" selected><%=District%></option>
                    </select> 
                </div>
              </div>
              
              <div class="form-group">
                <label class="col-sm-2 control-label">地址</label>
                <div class="col-sm-4">
                  <input type="text" value="<%=Address%>" name="Address" id="Address" class="form-control">
                </div>
                <label class="col-sm-2 control-label">邮编</label>
                <div class="col-sm-4">
                  <input type="text" value="<%=Post%>" name="Post" id="Post" class="form-control">
                </div>
              </div>
                           
            </div>
          </div>
        </div>
        <div class="col-sm-6">
          <div class="ibox float-e-margins"> 
            <div class="ibox-title">
              <h5>更多内容</h5>
              
            </div>
           
            <div class="ibox-content" >
             <div class="form-group">
              <label class="col-sm-2 control-label">会员分组</label>
                <div class="col-sm-4">              
                  <select name='U_GID' id='U_GID' class="form-control" >
                 <%=getGroupOption(U_GID,2)%>
                  </select>
                </div>
                <label class="col-sm-2 control-label"><p>选择头像</p></label>
                  <div class="col-sm-4"> <a onClick="opennew('setface.asp?action=saveface&UID=<%=uid%>')">
                  <img src="<%=sitepath%>images/face/<%=iif(isnul(face),"noface.png",face)%>" width="120"></a> 
                   <input name="face" id="face" value="<%=face%>" type="hidden">
                  </div>
              </div>  
             <div class="form-group">
                <label class="col-sm-2 control-label">注册时间</label>
                <div class="col-sm-4">
             <p class="form-control-static"><%=RegTime%> </p> 
                </div>
                <label class="col-sm-2 control-label">登录时间</label>
                <div class="col-sm-4">
                <p class="form-control-static"><%=LastLoginTime%></p> 
                </div>  </div>
             <div class="form-group">
                 <label class="col-sm-2 control-label">最后登录ip</label>
                <div class="col-sm-4">
                  <p class="form-control-static"><%=LastLoginIP%> </p> 
                </div>
                 <label class="col-sm-2 control-label">登录次数</label>
                <div class="col-sm-4">
                   <p class="form-control-static"><%=LoginCount%>  </p> 
                </div> </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">会员简介<br>
                  描述</label>
                <div class="col-sm-10">
                  <textarea id="U_Desc" name="U_Desc" class="form-control"><%=U_Desc%></textarea>
                  </div>
              </div>
              </div>
            </div>
          </div>
        </div>
       
        <div class="col-sm-12">
          <div class=" col-sm-10 col-md-offset-1">
            <button class="btn btn-primary" type="submit"><i class="fa fa-floppy-o"></i>　保存内容</button>   
             <button class="btn btn-white" onclick="closelayer()" type="reset"><i class="fa fa-close"></i> 返回</button>       
          </div>
        </div>
      </form>
    </div>
  </div>
  <!-- End Panel Other --> 
</div>
<script src="<%=sitepath%>js/bootstrap.min.js"></script> 

<link href="<%=sitepath%>plugins/colorpicker/bootstrap-colorpicker.min.css" rel="stylesheet">
<script src="<%=sitepath%>plugins/switchery/switchery.js"></script>
<link href="<%=sitepath%>plugins/switchery/switchery.css" rel="stylesheet">
 

<script src="<%=sitepath%>plugins/layer/layer.min.js"></script>
<script>
$(function(){ 
$("#City").change(function(){ 
	var city=$(this).val()	
		$("#District").empty();
		$.get("user_Fun.asp?act=getcity&city="+city, function(result){$("#District").append(result); });			
	});
$("#Province").change(function(){ 
	var Province=$(this).val()
	//alert(Province)
		$("#City").empty();		
		$("#District").empty();
		$.get("user_Fun.asp?act=getcity&Province="+Province, function(result){$("#City").append(result); });			
	});
	
}) 
</script>
<script src="<%=sitepath&adminPath%>js/content.min.js"></script>
<script src="<%=sitepath&adminPath%>js/adminjs.js"></script>
</body>
</html>
