bkjxxxw/WebContent/webpage/ccqnsoft/task/remind/taskRemindForm.jsp

79 lines
2.8 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
<title>系统提醒管理</title>
<meta name="decorator" content="default"/>
<script type="text/javascript">
var validateForm;
function doSubmit(){//回调函数在编辑和保存动作时供openDialog调用提交表单。
if(validateForm.form()){
$("#inputForm").submit();
return true;
}
return false;
}
$(document).ready(function() {
validateForm = $("#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);
}
}
});
laydate({
elem: '#sendoutDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event: 'focus' //响应事件。如果没有传入event则按照默认的click
});
$('.summernote').summernote({
lang: 'zh-CN',
height: 180
});
});
</script>
</head>
<body>
<form:form id="inputForm" modelAttribute="taskRemind" action="${ctx}/remind/taskRemind/save" method="post" class="form-horizontal">
<form:hidden path="id"/>
<sys:message content="${message}"/>
<table class="table table-bordered table-condensed dataTables-example dataTable no-footer">
<tbody>
<tr>
<td class="width-15 active"><label class="pull-right">标题:</label></td>
<td class="width-35" colspan="3">
<form:input path="title" htmlEscape="false" maxlength="100" class="form-control "/>
</td>
</tr>
<tr>
<td class="width-15 active"><label class="pull-right">发件人:</label></td>
<td class="width-35">
<form:input path="sendName" htmlEscape="false" maxlength="255" class="form-control "/>
</td>
<td class="width-15 active"><label class="pull-right">发件时间:</label></td>
<td class="width-35">
<input id="sendoutDate" name="sendoutDate" type="text" maxlength="20" class="laydate-icon form-control layer-date "
value="<fmt:formatDate value="${taskRemind.sendoutDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
</td>
</tr>
<tr>
<td class="width-15 active"><label class="pull-right">内容:</label></td>
<td class="width-35" colspan="3" style="min-height: 260px;">
${fns:unescapeHtml(taskRemind.contents)}
</td>
</tr>
</tbody>
</table>
</form:form>
</body>
</html>