|
|
<%@ page language="java" pageEncoding="UTF-8"%>
|
|
|
|
|
|
<%@ taglib uri="/struts-tags" prefix="s"%>
|
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
|
|
<%
|
|
|
String path = request.getContextPath();
|
|
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
|
|
%>
|
|
|
<!DOCTYPE html>
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
<meta charset="utf-8" />
|
|
|
<title>公共租赁住房租赁管理系统</title>
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
|
|
|
<!-- App favicon -->
|
|
|
<link rel="shortcut icon" href="<%=basePath %>static/assets/images/favicon.ico">
|
|
|
|
|
|
<!-- plugins -->
|
|
|
<link href="<%=basePath %>static/assets/libs/flatpickr/flatpickr.min.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
|
<!-- App css -->
|
|
|
<link href="<%=basePath %>static/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
|
|
<link href="<%=basePath %>static/assets/css/icons.min.css" rel="stylesheet" type="text/css" />
|
|
|
<link href="<%=basePath %>static/assets/css/app.min.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
|
</head>
|
|
|
|
|
|
<body class="container_12">
|
|
|
<div class="box round first" style="margin:15px;">
|
|
|
|
|
|
<h2>用户资料</h2>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="block">
|
|
|
<form method="POST" action="<%=basePath%>admin/update_profile.do" enctype="multipart/form-data">
|
|
|
|
|
|
<table class="form">
|
|
|
|
|
|
<tbody><tr>
|
|
|
|
|
|
<td class="col1">
|
|
|
|
|
|
<label>
|
|
|
|
|
|
用户名</label>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
<td class="col2">
|
|
|
|
|
|
<input readonly value="${user.username}" type="text" id="grumble">
|
|
|
<input type="hidden" name="id" value="${user.id}"/>
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td class="col1">
|
|
|
|
|
|
<label>
|
|
|
|
|
|
照片</label>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
<td class="col2">
|
|
|
<a target="_blank" href="<%=basePath %>${user.thumb }">
|
|
|
VIEW
|
|
|
</a>
|
|
|
<br/>
|
|
|
<input name="file" value="" type="file" id="grumble">
|
|
|
<input type="hidden" name="thumb" value="${user.thumb }"/>
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<td>
|
|
|
<label>
|
|
|
姓名</label>
|
|
|
</td>
|
|
|
<td>
|
|
|
<input value="${user.realname}" type="text" name="realname" class="">
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<td>
|
|
|
<label>
|
|
|
身份证</label>
|
|
|
</td>
|
|
|
<td>
|
|
|
<input value="${user.ecard}" type="text" name="ecard" class="">
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<label>
|
|
|
|
|
|
性别</label>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
<td>
|
|
|
<select id="select" name="sex">
|
|
|
|
|
|
<option <c:if test="${user.sex eq '1' }">selected</c:if> value="1">男</option>
|
|
|
|
|
|
<option <c:if test="${user.sex eq '2' }">selected</c:if> value="2">女</option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<td>
|
|
|
<label>
|
|
|
年龄</label>
|
|
|
</td>
|
|
|
<td>
|
|
|
<input value="${user.age}" type="number" name="age" class="">
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<td>
|
|
|
<label>
|
|
|
电话</label>
|
|
|
</td>
|
|
|
<td>
|
|
|
<input value="${user.tel}" type="text" name="tel" class="">
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
<td>
|
|
|
<label>
|
|
|
邮箱</label>
|
|
|
</td>
|
|
|
<td>
|
|
|
<input value="${user.email}" type="text" name="email" class="">
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
<td>
|
|
|
<label>
|
|
|
qq</label>
|
|
|
</td>
|
|
|
<td>
|
|
|
<input value="${user.qq}" type="text" name="qq" class="">
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<td>
|
|
|
<label>
|
|
|
地址</label>
|
|
|
</td>
|
|
|
<td>
|
|
|
|
|
|
<select style="width:68px;" id="province" name="pid">
|
|
|
<option value="${user.pid }">${user.provinceName }</option>
|
|
|
</select>
|
|
|
<select style="width:68px;" id="city" name="cid">
|
|
|
<option value="${user.cid }">${user.cityName }</option>
|
|
|
</select>
|
|
|
<select style="width:119px;" id="area" name="aid">
|
|
|
<option value="${user.aid }">${user.areaName }</option>
|
|
|
</select>
|
|
|
<br/>
|
|
|
|
|
|
<input value="${user.address}" type="text" name="address" class="medium">
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
<td></td>
|
|
|
<td colspan="">
|
|
|
<button type="submit" class="btn btn-blue">提交数据</button>
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
</tbody></table>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
<!-- Vendor js -->
|
|
|
<script src="<%=basePath %>static/assets/js/vendor.min.js"></script>
|
|
|
|
|
|
<!-- optional plugins -->
|
|
|
<script src="<%=basePath %>static/assets/libs/moment/moment.min.js"></script>
|
|
|
<script src="<%=basePath %>static/assets/libs/apexcharts/apexcharts.min.js"></script>
|
|
|
<script src="<%=basePath %>static/assets/libs/flatpickr/flatpickr.min.js"></script>
|
|
|
|
|
|
<!-- page js -->
|
|
|
<script src="<%=basePath %>static/assets/js/pages/dashboard.init.js"></script>
|
|
|
|
|
|
<!-- App js -->
|
|
|
<script src="<%=basePath %>static/assets/js/app.min.js"></script>
|
|
|
<script src="<%=basePath %>static/js.js"></script>
|
|
|
|
|
|
|
|
|
<script>
|
|
|
$(document).ready(function(){
|
|
|
loadRegion("province",1);
|
|
|
loadRegion("city",${user.pid});
|
|
|
loadRegion("area",${user.cid});
|
|
|
$("#province,#city,#area").change(function(){
|
|
|
sel = $(this).next("select").attr("id");
|
|
|
loadRegion(sel,$(this).val());
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
function loadRegion(sel,parentId)
|
|
|
{
|
|
|
//sel=="city"?$("#area").html(""):false
|
|
|
$("#"+sel).html("");
|
|
|
$.get("<%=basePath%>rg.sl?id="+parentId,function(e){
|
|
|
$("#"+sel).html(e);
|
|
|
sel=="city"?reload():false;
|
|
|
})
|
|
|
}
|
|
|
function reload()
|
|
|
{
|
|
|
sel = "area";
|
|
|
loadRegion(sel,$("#city").val());
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<link href="<%=basePath %>static/toastr-master/toastr.min.css" rel="stylesheet" type="text/css" />
|
|
|
<script src="<%=basePath %>static/toastr-master/toastr.min.js"></script>
|
|
|
<script>
|
|
|
<c:if test="${!empty state }">
|
|
|
toastr.${state}('${message}', '提示');
|
|
|
setTimeout(function(){
|
|
|
window.location.href = "<%=basePath%>${url}";
|
|
|
},1500)
|
|
|
</c:if>
|
|
|
</script>
|
|
|
|
|
|
</html>
|
|
|
|
|
|
|