You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
151 lines
6.6 KiB
151 lines
6.6 KiB
<?php /*a:2:{s:58:"E:\waibao\ahbcqz\server\app\admin\view\user\user\edit.html";i:1679478874;s:51:"E:\waibao\ahbcqz\server\app\admin\view\layout2.html";i:1679478874;}*/ ?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title><?php echo url(); ?></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" href="/static/lib/layui/css/layui.css?v=<?php echo htmlentities($front_version); ?>">
|
|
<link rel="stylesheet" href="/static/admin/css/app.css?v=<?php echo htmlentities($front_version); ?>">
|
|
<link rel="stylesheet" href="/static/admin/css/like.css?v=<?php echo htmlentities($front_version); ?>">
|
|
<script src="/static/lib/layui/layui.js?v=<?php echo htmlentities($front_version); ?>"></script>
|
|
<script src="/static/admin/js/app.js"></script>
|
|
</head>
|
|
<body style="background-color: #FFFFFF;">
|
|
<?php echo $js_code; ?>
|
|
<script src="/static/admin/js/jquery.min.js"></script>
|
|
<script src="/static/admin/js/function.js"></script>
|
|
|
|
<style>
|
|
.reqRed::before {
|
|
content: '*';
|
|
color: red;
|
|
}
|
|
</style>
|
|
<div class="layui-form" lay-filter="layuiadmin-form-user" id="layuiadmin-form-user" style="padding: 20px 30px 0 0;">
|
|
<input type="hidden" name="id" value="<?php echo htmlentities($info['id']); ?>">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">用户编号:</label>
|
|
<div class="layui-input-inline" style="margin-top:10px">
|
|
<?php echo htmlentities($info['sn']); ?>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label reqRed">用户昵称:</label>
|
|
<div class="layui-input-inline" style="width: 380px;">
|
|
<input class="layui-input" value="<?php echo htmlentities($info['nickname']); ?>" name="nickname" type="text" placeholder="请输入会员昵称" >
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label reqRed">用户头像:</label>
|
|
<div class="layui-input-block">
|
|
<div class="like-upload-image">
|
|
<?php if($info['avatar']): ?>
|
|
<div class="upload-image-div">
|
|
<img src="<?php echo htmlentities($info['avatar']); ?>" alt="img">
|
|
<input type="hidden" name="avatar" value="<?php echo htmlentities($info['avatar']); ?>">
|
|
<div class="del-upload-btn">x</div>
|
|
</div>
|
|
<div class="upload-image-elem" style="display:none;"><a class="add-upload-image" id="avatar"> + 添加图片</a></div>
|
|
<?php else: ?>
|
|
<div class="upload-image-elem"><a class="add-upload-image" id="avatar"> + 添加图片</a></div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"></label>
|
|
<span style="color: #a3a3a3;font-size: 9px">建议尺寸:宽200像素*高200像素的jpg,jpeg,png图片</span>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">手机号码:</label>
|
|
<div class="layui-input-inline" style="width: 380px;">
|
|
<input class="layui-input" value="<?php echo htmlentities($info['mobile']); ?>" name="mobile" type="text" placeholder="请输入手机号码" >
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">性别:</label>
|
|
<div class="layui-input-block">
|
|
<input type="radio" name="sex" value="0" title="未知" <?php if($info['sex'] == 0): ?>checked<?php endif; ?> >
|
|
<input type="radio" name="sex" value="1" title="男" <?php if($info['sex'] == 1): ?>checked<?php endif; ?> >
|
|
<input type="radio" name="sex" value="2" title="女" <?php if($info['sex'] == 2): ?>checked<?php endif; ?> >
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">禁用状态:</label>
|
|
<div class="layui-input-block">
|
|
<input type="radio" name="disable" value="0" title="启用" <?php if($info['disable'] == 0): ?>checked<?php endif; ?> >
|
|
<input type="radio" name="disable" value="1" title="禁用" <?php if($info['disable'] == 1): ?>checked<?php endif; ?> >
|
|
</div>
|
|
<div class=" layui-form-mid layui-word-aux">禁用后用户将无法正常登录</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">生日:</label>
|
|
<div class="layui-input-inline" style="width: 380px;">
|
|
<input class="layui-input" value="<?php echo htmlentities($info['birthday']); ?>" autocomplete="off" name="birthday" id="birthday" type="text" placeholder="请输入生日" >
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">会员标签</label>
|
|
<div class="layui-input-block" style="width: 380px;">
|
|
<div id="tagList"></div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">备注</label>
|
|
<div class="layui-input-block" style="width: 380px">
|
|
<textarea name="remark" class="layui-textarea"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item layui-hide">
|
|
<input type="button" lay-submit lay-filter="edit-submit" id="edit-submit" value="确认">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
layui.config({
|
|
version:"<?php echo htmlentities($front_version); ?>",
|
|
base: '/static/lib/' //静态资源所在路径
|
|
}).extend({
|
|
xmSelect: 'xmSelect/xm-select'
|
|
}).use(['form','laydate', 'xmSelect'], function(){
|
|
var $ = layui.$,form = layui.form,laydate = layui.laydate;
|
|
var xmSelect = layui.xmSelect;
|
|
var tag_list = '<?php echo $tag_list; ?>';
|
|
var initValue = '<?php echo $info['tag_ids']; ?>';
|
|
|
|
laydate.render({
|
|
elem: '#birthday'
|
|
,format: 'yyyy-MM-dd'
|
|
,value: "<?php echo htmlentities($info['birthday']); ?>"
|
|
,trigger: 'click'
|
|
});
|
|
|
|
var xmIns = xmSelect.render({
|
|
el: '#tagList',
|
|
language: 'zn',
|
|
data: JSON.parse(tag_list),
|
|
prop: {
|
|
value: 'id'
|
|
},
|
|
initValue: JSON.parse(initValue)
|
|
})
|
|
|
|
// 图片上传
|
|
like.delUpload();
|
|
$(document).on("click", "#avatar", function () {
|
|
like.imageUpload({
|
|
limit: 1,
|
|
field: "avatar",
|
|
that: $(this)
|
|
});
|
|
})
|
|
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|