wxFeedbackForm.jsp
1.82 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
<%@ 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() {
if('${wxFeedback.isopen}'!='1'){
$("input:checkbox[id='open']").attr('checked',false);
}else{
$("input:checkbox[id='open']").attr('checked',true);
}
$("#open").click(function(){
if(document.getElementById('open').checked){
document.getElementById('isopen').value ='1';
}else{
document.getElementById('isopen').value ='0';
}
});
});
</script>
</head>
<body>
<form:form id="inputForm" modelAttribute="wxFeedback" action="${ctx}/wechat/wxFeedback/save" method="post" class="form-horizontal">
<form:hidden path="id"/>
<form:hidden path="fdid"/>
<form:hidden path="kes"/>
<form:hidden path="isopen"/>
<sys:message content="${message}"/>
<div class="control-group">
<label class="control-label">问题:</label>
<div class="controls">
<form:textarea path="question" htmlEscape="false" rows="3" maxlength="300" class="input-xlarge required"/>
</div>
</div>
<div class="control-group">
<label class="control-label">回答:</label>
<div class="controls">
<form:textarea path="answer" htmlEscape="false" rows="3" maxlength="300" class="input-xlarge required"/>
</div>
</div>
<div class="form-actions">
<input type="checkbox" name="open" id="open">是否公开
<shiro:hasPermission name="wechat:wxFeedback:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/> </shiro:hasPermission>
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1);"/>
</div>
</form:form>
</body>
</html>