严智鑫
2025-11-13 945bc394f40d8af1072a53da9a94f24207124e6d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
 
<html>
<head>
    <title>用户管理</title>
</head>
 
<body>
    <form id="inputForm" action="${ctx}/admin/user/update" method="post" class="form-horizontal">
        <input type="hidden" name="id" value="${user.id}"/>
        <fieldset>
            <legend><small>用户管理</small></legend>
            <div class="control-group">
                <label class="control-label">登录名:</label>
                <div class="controls">
                    <input type="text" value="${user.loginName}" class="input-large" disabled="" />
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">用户名:</label>
                <div class="controls">
                    <input type="text" id="name" name="name" value="${user.name}" class="input-large required"/>
                </div>
            </div>
            <div class="control-group">
                <label for="plainPassword" class="control-label">密码:</label>
                <div class="controls">
                    <input type="password" id="plainPassword" name="plainPassword" class="input-large" placeholder="...Leave it blank if no change"/>
                </div>
            </div>
            <div class="control-group">
                <label for="confirmPassword" class="control-label">确认密码:</label>
                <div class="controls">
                    <input type="password" id="confirmPassword" name="confirmPassword" class="input-large" equalTo="#plainPassword" />
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">注册日期:</label>
                <div class="controls">
                    <span class="help-inline" style="padding:5px 0px"><fmt:formatDate value="${user.registerDate}" pattern="yyyy年MM月dd日  HH时mm分ss秒" /></span>
                </div>
            </div>
            <div class="form-actions">
                <input id="submit_btn" class="btn btn-primary" type="submit" value="提交"/>&nbsp;    
                <input id="cancel_btn" class="btn" type="button" value="返回" onclick="history.back()"/>
            </div>
        </fieldset>
    </form>
    
    <script>
        $(document).ready(function() {
            //聚焦第一个输入框
            $("#name").focus();
            //为inputForm注册validate函数
            $("#inputForm").validate();
        });
    </script>
</body>
</html>