Commit 23e9d3d2 by Java-李昕颖

jsp验证修改

parent d1158b53
......@@ -187,7 +187,7 @@
$("#userList").html($(data));
},
error:function(){
alert("数据错误!");
alert("请选择需要移交的数据!");
},
complete: function () {
$("#btnSearch").removeAttr("disabled");
......
......@@ -9,12 +9,17 @@
$(document).ready(function () {
$("#inputForm").validate({
submitHandler: function (form) {
submitCount += 1;
if(submitCount == 1){
loading('正在提交,请稍等...');
form.submit();
}else{
return false;
if ($("#reportContent").val() == ""){
top.$.jBox.tip('请填写内容', 'warning');
}else {
submitCount += 1;
if (submitCount == 1) {
$("#checkFile").hide();
loading('正在提交,请稍等...');
form.submit();
} else {
return false;
}
}
},
errorContainer: "#messageBox",
......@@ -62,6 +67,7 @@
<label class="control-label">内容:</label>
<div class="controls">
<form:textarea id="reportContent" htmlEscape="true" path="reportContent" rows="4" maxlength="500" class="input-xxlarge"/>
<span class="help-inline"><font color="red">*</font> </span>
</div>
</div>
</div>
......@@ -78,22 +84,19 @@
<div class="control-group">
<label class="control-label">姓名:</label>
<div class="controls">
<form:input path="reportPersonName" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
<span class="help-inline"><font color="red">*</font> </span>
<form:input path="reportPersonName" htmlEscape="false" maxlength="200" class="input-xlarge"/>
</div>
</div>
<div class="control-group">
<label class="control-label">手机号:</label>
<div class="controls">
<form:input path="reportPersonTel" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
<span class="help-inline"><font color="red">*</font> </span>
<form:input path="reportPersonTel" htmlEscape="false" maxlength="200" class="input-xlarge"/>
</div>
</div>
<div class="control-group">
<label class="control-label">Email:</label>
<div class="controls">
<form:input path="reportPersonEmail" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
<span class="help-inline"><font color="red">*</font> </span>
<form:input path="reportPersonEmail" htmlEscape="false" maxlength="200" class="input-xlarge"/>
</div>
</div>
<div class="control-group">
......
......@@ -53,10 +53,7 @@
<c:forEach items="${noticePage.list}" var="notice" varStatus="vs">
<tr>
<td>${vs.count}</td>
<td>
<c:if test="${isAdmin eq 'Y'}"><a href="${ctx}/notice/view?id=${notice.id}&reportId=${notice.reportId}">${notice.title}。</a></c:if>
<c:if test="${isAdmin eq 'N'}"><a href="${ctx}/notice/view?id=${notice.id}&reportId=${notice.reportId}">${notice.title}。</a></c:if>
</td>
<td><a href="${ctx}/notice/view?id=${notice.id}&reportId=${notice.reportId}">${notice.title}。</a></td>
<td>${notice.sendTime}</td>
<td>${notice.sendFromId}</td>
<td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment