<%@ 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" src="${ctxStatic}/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="${ctxStatic}/ckeditor/config.js"></script>
<script type="text/javascript" src="${ctxStatic}/ckfinder/ckfinder.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#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}/com/functionReply/">功能回复列表</a></li>
<li class="active">
<a href="${ctx}/com/functionReply/form?id=${functionReply.id}">功能回复
<%-- <shiro:hasPermission name="com:functionReply:edit"> --%>
<%-- ${not empty functionReply.id?'修改':'添加'} --%>
<%-- </shiro:hasPermission> --%>
<%-- <shiro:lacksPermission name="com:functionReply:edit">查看</shiro:lacksPermission> --%>
</a>
</li>
</ul><br/>
<form:form id="inputForm" modelAttribute="functionReply" action="${ctx}/com/functionReply/save" method="post" class="form-horizontal">
<form:hidden path="id"/>
<form:hidden path="funId"/>
<sys:message content="${message}"/>
<!-- <div class="control-group" style="display: none"> -->
<!-- <label class="control-label">功能id:</label> -->
<!-- <div class="controls"> -->
<%-- <form:input path="funId" htmlEscape="false" maxlength="64" class="input-xlarge required"/> --%>
<!-- </div> -->
<!-- </div> -->
<div class="control-group">
<label class="control-label">描述:</label>
<div class="controls">
<form:input path="description" htmlEscape="false" maxlength="64" class="input-xlarge required"/>
<span class="help-inline"><font color="red">*</font> </span>
</div>
</div>
<div class="control-group">
<label class="control-label">内容:</label>
<div class="controls">
<form:textarea path="content" htmlEscape="false" rows="4" maxlength="64" class="input-xxlarge required"/>
<script type="text/javascript">CKEDITOR.replace('content');</script>
<%-- <c:if test="${functionReply.content == '' || functionReply.content == null}"> --%>
<%-- </c:if> --%>
</div>
</div>
<div class="control-group">
<label class="control-label">备注:</label>
<!-- <div class="controls"> -->
<div>
<form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="64" class="input-xxlarge "/>
</div>
</div>
<div class="form-actions">
<%-- <shiro:hasPermission name="com:functionReply:edit"> --%>
<input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>
<%-- </shiro:hasPermission> --%>
<input id="btnCancel" class="btn" type="button" value="返 回" οnclick="history.go(-1)"/>
</div>
</form:form>
</body>
</html>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>功能回复管理</title>
<meta name="decorator" content="default"/>
<script type="text/javascript" src="${ctxStatic}/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="${ctxStatic}/ckeditor/config.js"></script>
<script type="text/javascript" src="${ctxStatic}/ckfinder/ckfinder.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#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}/com/functionReply/">功能回复列表</a></li>
<li class="active">
<a href="${ctx}/com/functionReply/form?id=${functionReply.id}">功能回复
<%-- <shiro:hasPermission name="com:functionReply:edit"> --%>
<%-- ${not empty functionReply.id?'修改':'添加'} --%>
<%-- </shiro:hasPermission> --%>
<%-- <shiro:lacksPermission name="com:functionReply:edit">查看</shiro:lacksPermission> --%>
</a>
</li>
</ul><br/>
<form:form id="inputForm" modelAttribute="functionReply" action="${ctx}/com/functionReply/save" method="post" class="form-horizontal">
<form:hidden path="id"/>
<form:hidden path="funId"/>
<sys:message content="${message}"/>
<!-- <div class="control-group" style="display: none"> -->
<!-- <label class="control-label">功能id:</label> -->
<!-- <div class="controls"> -->
<%-- <form:input path="funId" htmlEscape="false" maxlength="64" class="input-xlarge required"/> --%>
<!-- </div> -->
<!-- </div> -->
<div class="control-group">
<label class="control-label">描述:</label>
<div class="controls">
<form:input path="description" htmlEscape="false" maxlength="64" class="input-xlarge required"/>
<span class="help-inline"><font color="red">*</font> </span>
</div>
</div>
<div class="control-group">
<label class="control-label">内容:</label>
<div class="controls">
<form:textarea path="content" htmlEscape="false" rows="4" maxlength="64" class="input-xxlarge required"/>
<script type="text/javascript">CKEDITOR.replace('content');</script>
<%-- <c:if test="${functionReply.content == '' || functionReply.content == null}"> --%>
<%-- </c:if> --%>
</div>
</div>
<div class="control-group">
<label class="control-label">备注:</label>
<!-- <div class="controls"> -->
<div>
<form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="64" class="input-xxlarge "/>
</div>
</div>
<div class="form-actions">
<%-- <shiro:hasPermission name="com:functionReply:edit"> --%>
<input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>
<%-- </shiro:hasPermission> --%>
<input id="btnCancel" class="btn" type="button" value="返 回" οnclick="history.go(-1)"/>
</div>
</form:form>
</body>
</html>