<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
<title>Management platform</title>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/Public/Admin/images/favicon.ico" >
<LINK rel="Shortcut Icon" href="/Public/Admin/images/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="/Public/h-ui_v2.3/lib/html5.js"></script>
<script type="text/javascript" src="/Public/h-ui_v2.3/lib/respond.min.js"></script>
<script type="text/javascript" src="/Public/h-ui_v2.3/lib/PIE_IE678.js"></script>
<![endif]-->
<link href="/Public/h-ui_v2.3/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="/Public/h-ui_v2.3/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="/Public/h-ui_v2.3/skin/default/skin.css" rel="stylesheet" type="text/css" id="skin" />
<link href="/Public/h-ui_v2.3/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
<link href="/Public/Admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/Public/static/jquery-2.0.3.min.js"></script>

<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->

<link href="/Public/h-ui_v2.3/lib/icheck/icheck.css" rel="stylesheet" type="text/css" />


<!-- 页面header钩子，一般用于加载插件CSS文件和代码 -->
<?php echo hook('pageHeader');?>

</head>
<body>

	<!-- 主体 -->
	

<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> Home <span class="c-gray en">&gt;</span> <?php echo ($meta_title); ?> <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="refresh" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="pd-20">
	<form action="<?php echo U();?>" method="post" class="form form-horizontal" id="form-admin-add">
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>username：</label>
			<div class="formControls col-5">
				<input type="text" class="input-text" value="<?php echo ($info["username"]); ?>" placeholder="" id="username" name="username" datatype="*4-16" nullmsg="Can't be empty" <?php if(!empty($info["username"])): ?>readonly<?php endif; ?> >
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>password：</label>
			<div class="formControls col-5">
				<input type="password" placeholder="6-20" autocomplete="off" id="password" name="password" plugin="passwordStrength" value="" class="input-text" datatype="*6-20" nullmsg="Can't be empty" ignore="ignore" />
				<div class="passwordStrength">Strength： <span>weak</span><span>normal</span><span class="last">strong</span></div>
			</div>
			<div class="col-4"> <?php if(!empty($info["password"])): ?>Don't change when not filling in<?php endif; ?></div>
		</div>
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>Confirm password：</label>
			<div class="formControls col-5">
				<input type="password" placeholder="" autocomplete="off" class="input-text " errormsg="The new password you entered twice does not match！" datatype="*" nullmsg="Please enter new password again！" recheck="password" id="repassword" name="repassword" ignore="" />
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-3">mobile：</label>
			<div class="formControls col-5">
				<input type="text" class="input-text" value="<?php echo ($info["mobile"]); ?>" placeholder="" id="mobile" name="mobile" errormsg="Incorrect format" datatype="n" ignore="ignore">
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-3">email：</label>
			<div class="formControls col-5">
				<input type="text" class="input-text" value="<?php echo ($info["email"]); ?>" placeholder="@" name="email" id="email" errormsg="Incorrect format" datatype="e" ignore="ignore">
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-3">role：</label>
			<div class="formControls col-5 skin-minimal">
				<?php if(is_array($auth_groups)): $i = 0; $__LIST__ = $auth_groups;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="check-box">
	                    <input  class="auth_groups" type="checkbox" name="group_id[]" id="checkbox-<?php echo ($vo["id"]); ?>" value="<?php echo ($vo["id"]); ?>" <?php if(in_array(($vo["id"]), is_array($user_groups)?$user_groups:explode(',',$user_groups))): ?>checked<?php endif; ?> >
	                    <label for="checkbox-<?php echo ($vo["id"]); ?>"><?php echo ($vo["title"]); ?></label>
	                </div><?php endforeach; endif; else: echo "" ;endif; ?>
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-3">note：</label>
			<div class="formControls col-5">
				<textarea name="note" cols="" rows="" class="textarea"  placeholder="" dragonfly="true" onKeyUp="textarealength(this,100)"><?php echo ($info["note"]); ?></textarea>
				<p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<div class="col-9 col-offset-3">
				<input type="hidden" name="uid" value="<?php echo ($info["uid"]); ?>" />
				<input type="hidden" name="batch" value="true">
				<button class="btn btn-primary radius " id="submit" type="submit" ><i class="Hui-iconfont">&#xe632;</i>Submit</button>
				<button class="btn btn-default radius" onclick="javascript:history.back(-1);return false;">&nbsp;&nbsp;Back&nbsp;&nbsp;</button>
			</div>
		</div>
	</form>
</div>

	<!-- /主体 -->
	
	<!-- 底部 -->
	<script type="text/javascript" src="/Public/h-ui_v2.3/lib/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="/Public/h-ui_v2.3/lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="/Public/h-ui_v2.3/js/H-ui.js"></script>
<script type="text/javascript" src="/Public/h-ui_v2.3/js/H-ui.admin.js"></script>
<script type="text/javascript" src="/Public/Common/js/common.js"></script>
<script type="text/javascript">

</script>


<script type="text/javascript" src="/Public/h-ui_v2.3/lib/icheck/jquery.icheck.min.js"></script> 
<script type="text/javascript" src="/Public/h-ui_v2.3/lib/Validform/5.3.2/passwordStrength-min.js"></script> 
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	
	$("#form-admin-add").Validform({
		tiptype:2, 
		usePlugin:{
			passwordstrength:{minLen:6,	maxLen:18},
		},
		beforeCheck:function(curform){
			if($("#password").val()=='' && $("#password").attr('ignore')=='ignore')
				$("#repassword").attr('ignore','ignore');
		},
		callback:function(query){
			var target = $("#form-admin-add").attr('action');
			query = query.serialize();
			$.post(target,query).success(function(data){
				if (data.status == 1) {
					layer.msg(data.info + ' 页面即将自动跳转~', {
						icon : 1,
						time : 1500
					});
					setTimeout(function() {
						location.href = data.url;
					}, 1500);
				} else {
					layer.msg(data.info, {
						icon : 2,
						time : 1500
					});
				}
            });
			return false;
		}
	});
});
</script>
 <!-- 用于加载js代码 -->
<!-- 页面footer钩子，一般用于加载插件JS文件和JS代码 -->
<?php echo hook('pageFooter', 'widget');?>
<div class="hidden"><!-- 用于加载统计代码等隐藏元素 -->
	
</div>

	<!-- /底部 -->

</body>
</html>