<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/common/taglibs.jspf"%>
<script type="text/javascript"
	src="${ctx}/static/js/system/user/edit.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"<%-- action="${ctx}/user/save.shtml" --%>>
		<input id="adminId" type="hidden" class="form-control"
			value="${user.adminId}" name="adminId" id="adminId">
		<section class="panel panel-default">
		<div class="panel-body">
			<div class="form-group">
				<label class="col-sm-3 control-label checkacc">用户名</label>
				<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入用户名"
						value="${user.uname}" name="uname" id="uname" readonly="readonly">
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">姓名</label>
				<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入账号"
						value="${user.name}" name="name" id="name" readonly="readonly">
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">Email</label>
				<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请填写安全邮箱"
						value="${user.email}" name="email" id="email">
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">电话号</label>
				<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请填写联系电话"
						value="${user.phone}" name="phone" id="phone">
				</div>
			</div>
			
			<div class="line line-dashed line-lg pull-in"></div>
			<div id="selGroup"
				data-url="/system/role/selRole.shtml?userId=${user.adminId}"></div>
				
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">状态</label>
				<div class="col-sm-9">
					<select id="status">
						<option value="1" <c:if test="${user.status eq 1}"> selected="selected" </c:if>>正常</option>
						<option value="0" <c:if test="${user.status eq 0}"> selected="selected" </c:if>>锁定</option>
					</select>
				</div>
			</div>
		</div>
		<footer class="panel-footer text-right bg-light lter">
		<button type="button" class="btn btn-success btn-s-xs" id="submitBtn">保存</button>
		</footer> </section>
	</form>
	<script type="text/javascript">
		onloadurl();
	</script>
</body>
</html>