<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
<title>Factory 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/Factory/images/favicon.ico" >
<LINK rel="Shortcut Icon" href="/Public/Factory/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/Common/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>

	<!-- 主体 -->
	

<div class="pd-20">
	<form action="<?php echo U();?>" method="post" class="form form-horizontal" id="form-admin-update">
		<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" disabled >
			</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="length 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="Confirm password" 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"  datatype="m" 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" datatype="e" ignore="ignore">
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>current password：</label>
			<div class="formControls col-5">
				<input type="password" placeholder="" autocomplete="off" class="input-text" datatype="*" nullmsg="Can't be empty" id="oldpassword" name="oldpassword" />
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<div class="col-9 col-offset-3">
				<input type="hidden" name="id" value="<?php echo ($info["id"]); ?>" />
				<button class="btn btn-primary radius " id="submit" type="submit" ><i class="Hui-iconfont">&#xe632;</i>Submit</button>
			</div>
		</div>
	</form>
</div>

	<!-- /主体 -->
	
	<!-- 底部 -->
	<style>
	#tipbox{
	    display: none;
	    position: fixed;
	    height: 50px;
	    right: 30px;
		padding-top:20px;
		text-align:center;
	    bottom: 30px;
	    width: 200px;
	    background-color: #5a98de;
	    z-index: 9999;
	}
</style>
<div id="newMessageDIV" style="display:none"></div>
<div id="tipbox" >
	New order received. Please process it as soon as possible！
</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">
	function play(){
	    {
	        //IE9+,Firefox,Chrome均支持<audio/>
	        $('#newMessageDIV').html('<audio autoplay="autoplay"><source src="/Public/Factory/images/notify.mp3"'
	        + 'type="audio/wav"/><source src="/Public/Factory/images/notify.mp3" type="audio/mpeg"/></audio>');
	    }
	    $('#tipbox').css('display','block');

	}

	function refreshOrder(){
		var url = "/index.php?s=/Merchant/Index/hasNewOrder.html";
		$.get(url,function(data){
			if(data==1){
				play();
			}
		});
	}
	$(document).ready(function(){
		setInterval("refreshOrder()",10000);
	});
</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-update").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-update").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() {
						layer_close();
					}, 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>