<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>KGCMS企业应用管理平台 - Powered by KGCMS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<!-- <meta http-equiv="cache-control" content="no-siteapp" /> -->
<link rel="stylesheet" type="text/css" href="{{kg['tpl_url']}}style/user_update.css">
<script src="{{kg['tpl_url']}}script/jquery.min.js"></script>
<script src="{{kg['tpl_url']}}script/cropper.min.js"></script>
<script src="{{kg['tpl_url']}}script/amazeui.datetimepicker.min.js"></script>
<script src="{{kg['server']['HTTP_HOST']}}/tools/amazeui/js/amazeui.min.js"></script>
<script src="{{kg['tpl_url']}}script/common.js"></script>
<script src="{{kg['tpl_url']}}script/user_update.js"></script>
</head>
<body data-type="generalComponents">
	{% include 'component_header.tpl' %}
	<div class="tpl-page-container tpl-page-header-fixed">
		<div class="scrollbar-wrap">
		{% include 'component_left.tpl' %}
		<div class="tpl-content-wrapper">
			<div class="tpl-content-page-title">
				会员中心管理
			</div>
			<ol class="am-breadcrumb">
				<li><a href="./" class="am-icon-home">首页</a></li>
				<li><a href="user_manage">会员管理</a></li>
				<li class="am-active">修改会员资料</li>
			</ol>
			<div class="tpl-portlet-components">
				<div class="portlet-title">
					<div class="caption font-green bold">
						<span class="am-icon-code"></span>&nbsp;修改会员资料
					</div>
				</div>
				<div class="tpl-block">
					<div class="am-g">
						<div class="tpl-form-body tpl-form-line">
							<form class="am-form tpl-form-line-form" method="post" action="#" enctype="multipart/form-data">
								<div class="am-form-group am-form-icon am-form-feedback">
									<label for="user-name" class="am-u-sm-3 am-form-label">登录用户名&nbsp;<span class="tpl-form-line-small-title">Username
										</span>
									</label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" placeholder="用户名由5 - 20个字符组成，只能使用数字、字母和下划线组成，且必须以字母开头" id="user-name" name="user-name" value="{{data['username']}}">
										<i class=""></i>
									</div>
								</div>
								<div class="am-form-group am-form-icon am-form-feedback">
									<label for="password" class="am-u-sm-3 am-form-label">登录密码&nbsp;<span class="tpl-form-line-small-title">Password
										</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="password" class="tpl-form-input" id="password" placeholder='5 - 20个字符组成，只能使用数字、字母和下划线' name="password" value="">
										<i class=""></i>
									</div>
								</div>
								<div class="am-form-group am-form-icon am-form-feedback">
									<label for="password_" class="am-u-sm-3 am-form-label">确认密码&nbsp;<span class="tpl-form-line-small-title">Confirm
										</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="password" class="tpl-form-input" id="password_" placeholder="请再次输入一次密码" name="password_" value="">
										<i class=""></i>
									</div>
								</div>
								<div class="am-form-group am-form-icon am-form-feedback">
									<label for="email" class="am-u-sm-3 am-form-label">注册邮箱&nbsp;<span class="tpl-form-line-small-title">Email
										</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" id="email" placeholder='5 - 20个字符组成，只能使用数字、字母和下划线' name="email" value="{{data['email']}}">
										<i class=""></i>
									</div>
								</div>
								<div class="am-form-group">
									<label for="qq" class="am-u-sm-3 am-form-label">腾讯QQ&nbsp;<span class="tpl-form-line-small-title">QQ</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" id="qq" name="qq" value="{{data['qq']}}">
									</div>
								</div>
								<div class="am-form-group">
									<label for="contact" class="am-u-sm-3 am-form-label">密码保护问题&nbsp;<span class="tpl-form-line-small-title">Contact</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" id="contact" name="contact" value="{{data['problem']}}">
									</div>
								</div>
								<div class="am-form-group">
									<label for="daan" class="am-u-sm-3 am-form-label">密码保护答案&nbsp;<span class="tpl-form-line-small-title">Info</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" id="daan" name="daan" value="{{data['answer']}}">
									</div>
								</div>
								<div class="am-form-group">
									<label for="companyname" class="am-u-sm-3 am-form-label">公司名称&nbsp;<span class="tpl-form-line-small-title">Info</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" id="companyname" name="companyname" value="{{data['companyname']}}">
									</div>
								</div>
								<div class="am-form-group">
									<label for="url" class="am-u-sm-3 am-form-label">网址&nbsp;<span class="tpl-form-line-small-title">Info</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" id="url" name="url" value="{{data['companyweb']}}">
									</div>
								</div>
								<div class="am-form-group">
									<label for="site" class="am-u-sm-3 am-form-label">地址&nbsp;<span class="tpl-form-line-small-title">Info</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" id="site" name="site" value="{{data['companyaddress']}}">
									</div>
								</div>
								<div class="am-form-group">
									<label for="twiceIP" class="am-u-sm-3 am-form-label">最后两次登录IP&nbsp;<span class="tpl-form-line-small-title">Info</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" id="twiceIP" value="{{data['login_ip']}}">
									</div>
								</div>
								<div class="am-form-group">
									<label for="twiceTime" class="am-u-sm-3 am-form-label">最后两次登录时间&nbsp;<span class="tpl-form-line-small-title">Info</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" id="twiceTime" value="{{data['login_time']}}" readonly>
									</div>
								</div>
								<div class="am-form-group">
									<label class="am-u-sm-3 am-form-label">注册验证&nbsp;<span class="tpl-form-line-small-title">Info</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<label class="am-radio-inline">
											<input type="radio" value="0" name="audit" {% if data['audit']==0 %}checked="checked" {% endif %}>&nbsp;已通过验证
										</label>
										<label class="am-radio-inline">
											<input type="radio" name="audit" value="1" {% if data['audit']==1 %}checked="checked" {% endif %}>&nbsp;等待邮件验证
										</label>
										<label class="am-radio-inline">
											<input type="radio" name="audit" value="2" {% if data['audit']==2 %}checked="checked" {% endif %}>&nbsp;等待管理员验证
										</label>
									</div>
								</div>
								<div class="am-form-group">
									<label class="am-u-sm-3 am-form-label">会员类型&nbsp;<span class="tpl-form-line-small-title">Info</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<label class="am-radio-inline">
											<input type="radio" value="0" name="type" {% if data['type']==0 %}checked="checked" {% endif %}>&nbsp;个人会员
										</label>
										<label class="am-radio-inline">
											<input type="radio" name="type" value="1" {% if data['type']==1 %}checked="checked" {% endif %}>&nbsp;企业会员
										</label>
									</div>
								</div>
								<div class="am-form-group">
									<label class="am-u-sm-3 am-form-label">性别&nbsp;<span class="tpl-form-line-small-title">Info</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<label class="am-radio-inline">
											<input type="radio" name="sex" value="0" {% if data['sex']==0 %}checked="checked" {% endif %}>&nbsp;女
										</label>
										<label class="am-radio-inline">
											<input type="radio" name="sex" value="1" {% if data['sex']==1 %}checked="checked" {% endif %}>&nbsp;男
										</label>
										<label class="am-radio-inline">
											<input type="radio" name="sex" value="2" {% if data['sex']==2 %}checked="checked" {% endif %}>&nbsp;保密
										</label>
									</div>
								</div>
								<div class="am-form-group">
									<label for="balance" class="am-u-sm-3 am-form-label">账户余额&nbsp;<span class="tpl-form-line-small-title">Info</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" id="balance" name="balance" value="{{data['money']}}">
									</div>
								</div>
								<div class="am-form-group">
									<label for="energy" class="am-u-sm-3 am-form-label">已消费金额&nbsp;<span class="tpl-form-line-small-title">Info</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" id="energy" name="energy" value="{{data['usemoney']}}">
									</div>
								</div>
								<div class="am-form-group">
									<label for="integral" class="am-u-sm-3 am-form-label">积分&nbsp;<span class="tpl-form-line-small-title">Info</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" id="integral" name="integral" value="{{data['scores']}}">
									</div>
								</div>
								<div class="am-form-group">
									<label for="nickname" class="am-u-sm-3 am-form-label">昵称&nbsp;<span class="tpl-form-line-small-title">Sort </span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" id="nickname" name="nickname" value="{{data['nickname']}}">
									</div>
								</div>
								<div class="am-form-group">
									<label class="am-u-sm-3 am-form-label">会员级别&nbsp;<span class="tpl-form-line-small-title">Sort </span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										{% for row in rank %}
										{% if row['id'] in data['level'] %}<input type="hidden" name="level_edit" value="{{row['id']}}" />{% endif %}
										{% endfor %}
										<input type="hidden" name="level_source" value="{{data['level']}}" />
										<select data-am-selected="{btnSize: 'sm'}" name="level" style="display: none;">
											<option value="0">请选择会员级别</option>
											{% for row in rank %}
											<option {% if row['id'] in data['level'] %} selected="selected" {% endif %} value="{{row['id']}}">{{row['rankname']}}</option>
											{% endfor %}
										</select>
									</div>
								</div>
								<div class="am-form-group am-form-icon am-form-feedback">
									<label for="phone" class="am-u-sm-3 am-form-label">电话号码&nbsp;<span class="tpl-form-line-small-title">Sort </span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" placeholder="请输入手机号" id="phone" value="{{data['phone']}}" name="phone">
										<i class=""></i>
									</div>
								</div>
								<div class="am-form-group">
									<label for="fax" class="am-u-sm-3 am-form-label">传真&nbsp;<span class="tpl-form-line-small-title">Sort </span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" id="fax" value="{{data['fax']}}" name="fax">
									</div>
								</div>
								<div class="am-form-group">
									<label for="logins" class="am-u-sm-3 am-form-label">登录次数&nbsp;<span class="tpl-form-line-small-title">Sort </span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" id="logins" value="{{data['frequency']}}" name="logins">
									</div>
								</div>
								<div class="am-form-group">
									<label for="regdate" class="am-u-sm-3 am-form-label">注册时间&nbsp;<span class="tpl-form-line-small-title">Sort </span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" id="regdate" value="{{data['jointime']}}" name="regdate">
									</div>
								</div>
								<div class="am-form-group">
									<label for="registered" class="am-u-sm-3 am-form-label">注册IP&nbsp;<span class="tpl-form-line-small-title">Sort </span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" id="registered" value="{{data['joinip']}}" name="registered">
									</div>
								</div>
								<div class="am-form-group">
									<label class="am-u-sm-3 am-form-label">账号状态</label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<label class="am-radio-inline">
											<input type="radio" id="login" value="1" name="effective" {% if data['effective']==1 %}checked="checked" {% endif %}>&nbsp;允许登录
										</label>
										<label class="am-radio-inline">
											<input type="radio" name="effective" value="0" {% if data['effective']==0 %}checked="checked" {% endif %}>&nbsp;禁止登录
										</label>
									</div>
								</div>
								<input type='hidden' name='action' value="submit">
								<div class="am-form-group">
									<div class="am-u-sm-9 am-u-sm-push-3">
										<button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success" id="ngme-Yjs-sublime">保存修改</button>
									</div>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
			{% include 'component_footer.tpl' %}
		</div>
		</div><!-- /.scrollbar-wrap -->
	</div>
</body>
</html>