wxFeedbackForm.jsp 1.82 KB
<%@ 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="保 存"/>&nbsp;</shiro:hasPermission>
			
			
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1);"/>
		</div>
	</form:form>
</body>
</html>