232 lines
		
	
	
		
			8.6 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			232 lines
		
	
	
		
			8.6 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php /*a:3:{s:69:"E:\Demos\DemoOwns\PHP\yunzer\app\admin\view\yunzeradmin\admininfo.php";i:1746709977;s:61:"E:\Demos\DemoOwns\PHP\yunzer\app\admin\view\public\header.php";i:1746849526;s:59:"E:\Demos\DemoOwns\PHP\yunzer\app\admin\view\public\tail.php";i:1746709977;}*/ ?>
 | |
| <!DOCTYPE html>
 | |
| <html>
 | |
| 	<head>
 | |
| 		<title><?php echo htmlentities((string) $config['admin_name']); ?></title>
 | |
| 		<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.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
 | |
| 		<link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css" media="all"/>
 | |
| 		<link rel="stylesheet" type="text/css" href="/static/css/moban.css" media="all"/>
 | |
| 		<link rel="stylesheet" type="text/css" href="/static/css/wangeditor.css" media="all"/>
 | |
| 		<style type="text/css">
 | |
| 			.header span{background:#009688;margin-left:30px;padding:10px;color:#ffffff;}
 | |
| 			.header div{border-bottom:solid 2px #009688;margin-top: 8px;}
 | |
| 			.header button{float:right;margin-top:-5px;}
 | |
| 			.pagination {
 | |
| 				display: inline-block;
 | |
| 				padding-left: 0;
 | |
| 				margin: 20px 0;
 | |
| 				border-radius: 4px;
 | |
| 			}
 | |
| 			.pagination > li {
 | |
| 				display: inline;
 | |
| 			}
 | |
| 			.pagination > li > a,
 | |
| 			.pagination > li > span {
 | |
| 				position: relative;
 | |
| 				float: left;
 | |
| 				padding: 6px 12px;
 | |
| 				margin-left: -1px;
 | |
| 				line-height: 1.42857143;
 | |
| 				color: #337ab7;
 | |
| 				text-decoration: none;
 | |
| 				background-color: #fff;
 | |
| 				border: 1px solid #ddd;
 | |
| 			}
 | |
| 			.pagination > li:first-child > a,
 | |
| 			.pagination > li:first-child > span {
 | |
| 				margin-left: 0;
 | |
| 				border-top-left-radius: 4px;
 | |
| 				border-bottom-left-radius: 4px;
 | |
| 			}
 | |
| 			.pagination > li:last-child > a,
 | |
| 			.pagination > li:last-child > span {
 | |
| 				border-top-right-radius: 4px;
 | |
| 				border-bottom-right-radius: 4px;
 | |
| 			}
 | |
| 			.pagination > li > a:hover,
 | |
| 			.pagination > li > span:hover,
 | |
| 			.pagination > li > a:focus,
 | |
| 			.pagination > li > span:focus {
 | |
| 				z-index: 2;
 | |
| 				color: #23527c;
 | |
| 				background-color: #eee;
 | |
| 				border-color: #ddd;
 | |
| 			}
 | |
| 			.pagination > .active > a,
 | |
| 			.pagination > .active > span,
 | |
| 			.pagination > .active > a:hover,
 | |
| 			.pagination > .active > span:hover,
 | |
| 			.pagination > .active > a:focus,
 | |
| 			.pagination > .active > span:focus {
 | |
| 				z-index: 3;
 | |
| 				color: #fff;
 | |
| 				cursor: default;
 | |
| 				background-color: #337ab7;
 | |
| 				border-color: #337ab7;
 | |
| 			}
 | |
| 			.pagination > .disabled > span,
 | |
| 			.pagination > .disabled > span:hover,
 | |
| 			.pagination > .disabled > span:focus,
 | |
| 			.pagination > .disabled > a,
 | |
| 			.pagination > .disabled > a:hover,
 | |
| 			.pagination > .disabled > a:focus {
 | |
| 				color: #777;
 | |
| 				cursor: not-allowed;
 | |
| 				background-color: #fff;
 | |
| 				border-color: #ddd;
 | |
| 			}
 | |
| 			.close-img { background: url(/static/images/close_img.png); background-size: 20px 20px; width:20px; height: 20px; position: absolute; right: 5px; top: 5px; z-index: 2;}
 | |
| 		</style>
 | |
| 		<script type="text/javascript" src="/static/layui/layui.js"></script>
 | |
| 		<script type="text/javascript">
 | |
| 			layui.use(['layer','form','table','laydate','element','upload'],function(){
 | |
| 				layer = layui.layer;		// layui 弹框
 | |
| 				form = layui.form;			// layui form表单
 | |
| 				table = layui.table;		// layui 表格
 | |
| 				laydate = layui.laydate;	// layui 时间框
 | |
| 				element = layui.element;	// layui element
 | |
| 				upload = layui.upload;		// layui 上传
 | |
| 				$ = layui.jquery;			// layui jquery
 | |
| 			})
 | |
| 		</script>
 | |
| 	</head>
 | |
| 	<body style="padding:10px; box-sizing: border-box;">
 | |
| <form class="layui-form" style="padding:0 20%;">
 | |
| 	<div class="layui-tab">
 | |
| 		<ul class="layui-tab-title">
 | |
| 			<li class="layui-this">个人信息</li>
 | |
| 			<li>密码信息</li>
 | |
| 			<li>其它信息</li>
 | |
| 		</ul>
 | |
| 		<div class="layui-tab-content">
 | |
| 			<div class="layui-tab-item layui-show">
 | |
| 				<div style="padding:15px;">
 | |
| 					<label class="layui-form-label">账户</label>
 | |
| 					<div class="layui-input-block">
 | |
| 						<div class="layui-form-label" style="color:#3881fd;text-align:left;width:100%;"><?php echo htmlentities((string) $aUser['account']); ?></div>
 | |
| 					</div>
 | |
| 				</div>
 | |
| 				<div style="padding:15px;">
 | |
| 					<label class="layui-form-label">说明</label>
 | |
| 					<div class="layui-input-block">
 | |
| 						<div class="layui-form-label" style="width:100%;text-align:left;color:#999;">账户用于登录系统的账号,不能修改</div>
 | |
| 					</div>
 | |
| 				</div>
 | |
| 				<div style="padding:15px;">
 | |
| 					<label class="layui-form-label">姓名</label>
 | |
| 					<div class="layui-input-block">
 | |
| 						<input type="text" class="layui-input" name="name" placeholder="请输入真实姓名" value="<?php echo htmlentities((string) $aUser['name']); ?>">
 | |
| 					</div>
 | |
| 				</div>
 | |
| 				<div style="padding:15px;">
 | |
| 					<label class="layui-form-label">手机号</label>
 | |
| 					<div class="layui-input-block">
 | |
| 						<input type="text" class="layui-input" name="phone" placeholder="请输入手机号" value="<?php echo htmlentities((string) $aUser['phone']); ?>">
 | |
| 					</div>
 | |
| 				</div>
 | |
| 				<div style="padding:15px;">
 | |
| 					<label class="layui-form-label">QQ号</label>
 | |
| 					<div class="layui-input-block">
 | |
| 						<input type="text" class="layui-input" name="qq" placeholder="请输入QQ号" value="<?php echo htmlentities((string) $aUser['qq']); ?>">
 | |
| 					</div>
 | |
| 				</div>
 | |
| 				<div style="padding:15px;">
 | |
| 					<label class="layui-form-label">性别</label>
 | |
| 					<div class="layui-input-block">
 | |
| 						<input type="radio" name="sex" value="1" title="男" <?php echo $aUser['status']==1 ? 'checked' : ''; ?>>
 | |
| 						<input type="radio" name="sex" value="2" title="女" <?php echo $aUser['status']==2 ? 'checked' : ''; ?>>
 | |
| 					</div>
 | |
| 				</div>
 | |
| 			</div>
 | |
| 			<div class="layui-tab-item">
 | |
| 				<div style="padding:15px;">
 | |
| 					<label class="layui-form-label">老密码</label>
 | |
| 					<div class="layui-input-block">
 | |
| 						<input type="text" class="layui-input" name="old_pw" placeholder="请输入老密码,不修改不填写">
 | |
| 					</div>
 | |
| 				</div>
 | |
| 				<div style="padding:15px;">
 | |
| 					<label class="layui-form-label">新密码</label>
 | |
| 					<div class="layui-input-block">
 | |
| 						<input type="text" class="layui-input" name="new_pw" placeholder="请输入新密码,不修改不填写">
 | |
| 					</div>
 | |
| 				</div>
 | |
| 			</div>
 | |
| 			<div class="layui-tab-item">
 | |
| 				<div style="padding:15px;">
 | |
| 					<label class="layui-form-label">登陆次数</label>
 | |
| 					<div class="layui-input-block">
 | |
| 						<div class="layui-form-label" style="text-align:left;width:100%;"><?php echo htmlentities((string) $aUser['login_count']); ?>次</div>
 | |
| 					</div>
 | |
| 				</div>
 | |
| 				<div style="padding:15px;">
 | |
| 					<label class="layui-form-label">注册时间</label>
 | |
| 					<div class="layui-input-block">
 | |
| 						<div class="layui-form-label" style="text-align:left;width:100%;"><?php echo date('Y-m-d H:i:s',$aUser['create_time']); ?></div>
 | |
| 					</div>
 | |
| 				</div>
 | |
| 				<div style="padding:15px;">
 | |
| 					<label class="layui-form-label">登陆时间</label>
 | |
| 					<div class="layui-input-block">
 | |
| 						<div class="layui-form-label" style="text-align:left;width:100%;"><?php echo date('Y-m-d H:i:s',$aUser['update_time']); ?></div>
 | |
| 					</div>
 | |
| 				</div>
 | |
| 			</div>
 | |
| 		</div>
 | |
| 	</div>
 | |
| </form>
 | |
| <div class="layui-form-item" style="margin-top:10px;">
 | |
| 	<div class="layui-input-block" style="text-align:center;">
 | |
| 		<button type="button" class="layui-btn" onclick="save()">保存</button>
 | |
| 	</div>
 | |
| </div>
 | |
| <script type="text/javascript">
 | |
| 	layui.use(['layer','form','element'],function(){
 | |
| 		var form = layui.form;
 | |
| 		element = layui.element;
 | |
| 		layer = layui.layer;
 | |
| 		$ = layui.jquery;
 | |
| 	});
 | |
| 	function save(){
 | |
| 		$.post("<?php echo htmlentities((string) $config['admin_route']); ?>yunzeradmin/admininfo",$('form').serialize(),function(res){
 | |
| 			if(res.code>0){
 | |
| 				layer.msg(res.msg,{'icon':2});
 | |
| 			}else{
 | |
| 				layer.msg(res.msg,{'icon':1});
 | |
| 				setTimeout(function(){parent.window.location.reload();},1000);
 | |
| 			}
 | |
| 		},'json');
 | |
| 	}
 | |
| </script>
 | |
| 	</body>
 | |
| </html>
 | |
| <script type="text/javascript">
 | |
| 	// 显示图片
 | |
| 	function show_img(obj){
 | |
| 		var imgurl = $(obj).attr('src');
 | |
| 		var res = getMousePos();
 | |
| 		var html = '<div style="background:#fff;position:absolute;width:200px;border:solid 1px #cdcdcd;border-radius:6px;padding:2px;left:'+res.x+'px;top:'+res.y+'px;z-index:1000" id="preview">\
 | |
| 				<img style="width:100%;border-radius:6px;" src="'+imgurl+'">\
 | |
| 			</div>';
 | |
| 		$('body').append(html);
 | |
| 	}
 | |
| 	// 隐藏图片
 | |
| 	function hide_img(){
 | |
| 		$('#preview').remove();
 | |
| 	}
 | |
| 	// 图片位置计算
 | |
| 	function getMousePos(event) {
 | |
| 		var e = event || window.event;
 | |
| 		var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
 | |
| 		var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
 | |
| 		var x = e.pageX || e.clientX + scrollX;
 | |
| 		var y = e.pageY || e.clientY + scrollY;
 | |
| 		return { 'x': x, 'y': y };
 | |
| 	}
 | |
| 	// 删除图片
 | |
| 	function deleteImage(path,obj){
 | |
| 		$(obj).closest('.upload_pic_li').remove();
 | |
| 	}
 | |
| </script>
 |