<?php /*a:3:{s:60:"/www/wwwroot/btn.millet-mirth.com/view/admin/admin/edit.html";i:1645089956;s:60:"/www/wwwroot/btn.millet-mirth.com/view/admin/common/top.html";i:1625466448;s:63:"/www/wwwroot/btn.millet-mirth.com/view/admin/common/bottom.html";i:1629163316;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title><?php echo config('common.CMS_NAME'); ?></title>
<link rel="stylesheet" href="/static/tqcms/css/common.css">
<link rel="stylesheet" href="/static/tqcms/layui/css/layui.css"><!--layui css-->
<link rel="stylesheet" href="/static/tqcms/css/skin.css">
<script src="/static/tqcms/js/jquery.js"></script>
</head>
<body>
<div class="body_content_view admin_h_view">

	<div class="admin_add">
    	<form action="" class="layui-form" id="admin" method="post" onsubmit="return TQsubmit();">
        <input name="id" type="hidden" value="<?php echo htmlentities($info['id']); ?>" />
    	<ul style="height:238px;">
            <li><label class="layui-form-label">账　　号</label><input type="text" name="name" placeholder="请输入账号" value="<?php echo htmlentities($info['name']); ?>" autocomplete="off" class="layui-input"></li>
            <li><label class="layui-form-label">密　　码</label><input type="password" name="password" placeholder="不改请留空" autocomplete="off" class="layui-input"></li>
            <li><label class="layui-form-label">昵　　称</label><input type="text" name="nickname" placeholder="请输入昵称" value="<?php echo htmlentities($info['nickname']); ?>" autocomplete="off" class="layui-input"></li>
            <li><label class="layui-form-label">确认密码</label><input type="password" name="pwd" placeholder="" autocomplete="off" class="layui-input"></li>
            <li>
                <label class="layui-form-label">账号类别</label>
                <div>
                    <input type="radio" name="is_super" value="1" title="普通账号" <?php if($info['is_super']==1): ?>checked<?php endif; ?>>
                    <div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon"></i><div>普通账号</div></div>
                    <input type="radio" name="is_super" value="2" title="超级账号" <?php if($info['is_super']==2): ?>checked<?php endif; ?>>
                    <div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><div>超级账号</div></div>
                </div>
            </li>
            <li>
                <label class="layui-form-label">账号状态</label>
                <div>
                    <input type="radio" name="is_effect" value="1" title="启用" <?php if($info['is_effect']==1): ?>checked<?php endif; ?>>
                    <div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon"></i><div>启用</div></div>
                    <input type="radio" name="is_effect" value="2" title="停用" <?php if($info['is_effect']==2): ?>checked<?php endif; ?>>
                    <div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><div>停用</div></div>
                </div>
            </li>
            <li><label class="layui-form-label">手机号码</label><input type="text" name="phone" placeholder="请输入手机号" value="<?php echo htmlentities($info['phone']); ?>" autocomplete="off" class="layui-input"></li>
            <li class="admin_select">
            	<label class="layui-form-label">权限分组</label>
                <div class="layui-input-block">
                    <select name="auth_id" lay-verify="required" lay-search>
                    	<?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
						<option value="<?php echo htmlentities($v['id']); ?>" <?php if($v['id']==$info['auth_id']): ?>selected<?php endif; ?>><?php echo htmlentities($v['name']); ?></option>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </select>
                    <div class="layui-unselect layui-form-select">
                    	<div class="layui-select-title"><input type="text" placeholder="请选择" value="" readonly="" class="layui-input layui-unselect"><i class="layui-edge"></i></div>
                            <dl class="layui-anim layui-anim-upbit"></dl>
                        </div>
                  </div>
            </li>
            <li class="admin_select">
            	<label class="layui-form-label">内容权限</label>
                <div class="layui-input-block">
                    <select name="content_auth_id" lay-verify="required" lay-search>
						<option value="0" <?php if($info['content_auth_id']==0): ?>selected<?php endif; ?>>全部栏目</option>
                    	<?php if(is_array($list_content) || $list_content instanceof \think\Collection || $list_content instanceof \think\Paginator): $i = 0; $__LIST__ = $list_content;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
						<option value="<?php echo htmlentities($v['id']); ?>" <?php if($v['id']==$info['content_auth_id']): ?>selected<?php endif; ?>><?php echo htmlentities($v['name']); ?></option>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </select>
                </div>
            </li>
        </ul>
        </form>
    </div>
</div>

<div class="iframe_foot">
<input name="" type="submit" onclick="TQsubmit();" class="layui-btn" />　　
<input name="" type="button" value="关闭" onclick="open_iframe_close();" class="layui-btn layui-btn-danger" />
</div>

<script>
function TQsubmit(){
	$.post('save',$("#admin").serialize(),function(data){
		console.log(data);
		if(data.ok==1){
			layer.msg(data['msg'], {icon:1,time:1000});
			$("body",parent.document).find('#open_iframe').val(1);
		}else{
			layer.msg(data['msg'], {icon:2,time:1100});
		}
    });
	return false;
}
</script>
<script src="/static/tqcms/layui/layui.js"></script><!--layui js-->
<script src="/static/tqcms/layui/laytq.js"></script><!--layui js-->
<script src="/static/tqcms/js/common.js"></script>
<script src="/static/tqcms/js/md5.js"></script>
<script src="/static/tqcms/js/url.js"></script>
</body>
</html>