<!--#include file="user_Fun.asp" -->
<!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=add&UID=<%=UID%>" class="form-horizontal" id="contentform">
        <div class="col-sm-12">
          <div class="ibox float-e-margins"> <a class="collapse-link">
            <div class="ibox-title">
              <h5>添加管理员</h5>
              <div class="ibox-tools"> <i class="fa fa fa-chevron-up"></i> </div>
            </div>
            </a>
            <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="" class="form-control">
                </div>

                <label class="col-sm-2 control-label">会员姓名</label>
                <div class="col-sm-4">
                  <input type="text" value="" 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="" required name="Password" id="Password" 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="" 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="" 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">              
                  <select name='U_GID' id='U_GID' class="form-control" >
                 <%=getGroupOption(U_GID,1)%>
                  </select>                 
                </div>  </div>
               <div class="form-group">
                <label class="col-sm-2 control-label">头像</label>   
                  <div class="col-sm-4"  id="parentIframe">
                  <img src="<%=sitepath%>images/face/noface.png" width="120" onClick="layer.open({type: 2, area:  ['80%', '90%'],content: 'setface.asp?action=addface'});">
                    <input name="face" id="face" value="noface.png" type="hidden">
                  </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>
