e1297aad817623647b49dffc1a98e21b03085062.svn-base
4.05 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>留言管理</title>
<meta name="decorator" content="default"/>
<script type="text/javascript">
$(document).ready(function() {
$("#reContent").focus();
$("#inputForm").validate({
submitHandler: function(form){
loading('正在提交,请稍等...');
form.submit();
},
errorContainer: "#messageBox",
errorPlacement: function(error, element) {
$("#messageBox").text("输入有误,请先更正。");
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
error.appendTo(element.parent().parent());
} else {
error.insertAfter(element);
}
}
});
});
</script>
</head>
<body>
<ul class="nav nav-tabs">
<li><a href="${ctx}/cms/guestbook/">留言列表</a></li>
<li class="active"><a href="${ctx}/cms/guestbook/form?id=${guestbook.id}">留言<shiro:hasPermission name="cms:guestbook:edit">${guestbook.delFlag eq '2'?'审核':'查看'}</shiro:hasPermission><shiro:lacksPermission name="cms:guestbook:edit">查看</shiro:lacksPermission></a></li>
</ul><br/>
<form:form id="inputForm" modelAttribute="guestbook" action="${ctx}/cms/guestbook/save" method="post" class="form-horizontal">
<form:hidden path="id"/>
<form:hidden path="delFlag"/>
<sys:message content="${message}"/>
<div class="control-group">
<label class="control-label">名称:</label>
<div class="controls">
<c:out value="${guestbook.name}"/>
</div>
</div>
<div class="control-group">
<label class="control-label">邮箱:</label>
<div class="controls">
<c:out value="${guestbook.email}"/>
</div>
</div>
<div class="control-group">
<label class="control-label">电话:</label>
<div class="controls">
<c:out value="${guestbook.phone}"/>
</div>
</div>
<div class="control-group">
<label class="control-label">单位:</label>
<div class="controls">
<c:out value="${guestbook.workunit}"/>
</div>
</div>
<div class="control-group">
<label class="control-label">留言分类:</label>
<div class="controls">
<span style="font-weight:bold;"><c:out value="${fns:getDictLabel(guestbook.type, 'cms_guestbook', '无')}"/></span>
</div>
</div>
<div class="control-group">
<label class="control-label">IP:</label>
<div class="controls">
<c:out value="${guestbook.ip}"/>
</div>
</div>
<div class="control-group">
<label class="control-label">留言时间:</label>
<div class="controls">
<fmt:formatDate value="${guestbook.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
</div>
</div>
<div class="control-group">
<label class="control-label">留言内容:</label>
<div class="controls">
<form:textarea path="content" htmlEscape="false" rows="4" maxlength="200" class="input-xxlarge" disabled="true"/>
</div>
</div>
<c:if test="${not empty guestbook.reUser}">
<div class="control-group">
<label class="control-label">回复人:</label>
<div class="controls">
<c:out value="${guestbook.reUser.name}"/>
</div>
</div>
<div class="control-group">
<label class="control-label">回复时间:</label>
<div class="controls">
<fmt:formatDate value="${guestbook.reDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
</div>
</div>
</c:if>
<div class="control-group">
<label class="control-label">回复内容:</label>
<div class="controls">
<form:textarea path="reContent" htmlEscape="false" rows="4" maxlength="200" class="required input-xxlarge"/>
</div>
</div>
<div class="form-actions"><c:if test="${guestbook.delFlag eq '2'}">
<shiro:hasPermission name="cms:guestbook:edit"><input id="btnSubmit" class="btn btn-success" type="submit" value="通 过" onclick="$('#delFlag').val('0')"/>
<input id="btnSubmit" class="btn btn-inverse" type="submit" value="驳 回" onclick="$('#delFlag').val('1')"/> </shiro:hasPermission></c:if>
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
</div>
</form:form>
</body>
</html>