<%@ 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: '#userBirthday', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
event: 'focus' //响应事件。如果没有传入event,则按照默认的click
|
});
|
});
|
</script>
|
|
</head>
|
<body>
|
<form:form id="inputForm" modelAttribute="userRegister" action="${ctx}/userregister/userRegister/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"><font color="red">*</font>学号/工号:</label></td>
|
<td class="width-35">
|
<form:input path="userId" htmlEscape="false" maxlength="64" class="form-control required "/>
|
</td>
|
<td class="width-15 active"><label class="pull-right"><font color="red">*</font>考勤卡编号:</label></td>
|
<td class="width-35">
|
<form:input path="cardId" htmlEscape="false" maxlength="64" class="form-control required"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="width-15 active"><label class="pull-right"><font color="red">*</font>姓名:</label></td>
|
<td class="width-35">
|
<form:input path="userName" htmlEscape="false" maxlength="64" class="form-control required"/>
|
</td>
|
<td class="width-15 active"><label class="pull-right"><font color="red">*</font>部门/年级:</label></td>
|
<td class="width-35">
|
<form:select path="depId" class="form-control required">
|
<form:option value="" label=""/>
|
<form:options items="${fns:getDictList('dep_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
</form:select>
|
</td>
|
</tr>
|
<tr>
|
<td class="width-15 active"><label class="pull-right"><font color="red">*</font>性别:</label></td>
|
<td class="width-35">
|
<form:radiobuttons path="usersex" items="${fns:getDictList('sex')}" itemLabel="label" itemValue="value" htmlEscape="false" class="i-checks required "/>
|
</td>
|
|
<td class="width-15 active"><label class="pull-right"><font color="red">*</font>职务:</label></td>
|
<td class="width-35">
|
<form:select path="userDuty" class="form-control required">
|
<form:option value="" label=""/>
|
<form:options items="${fns:getDictList('user_duty')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
</form:select>
|
</td>
|
</tr>
|
<tr>
|
<td class="width-15 active"><label class="pull-right"><font color="red">*</font>出生年月:</label></td>
|
|
<td class="width-35">
|
<input id="userBirthday" name="userBirthday" type="text" maxlength="20" class="laydate-icon form-control layer-date required"
|
value="<fmt:formatDate value="${userRegister.userBirthday}" pattern="yyyy-MM-dd"/>"/>
|
</td>
|
<td class="width-15 active"><label class="pull-right"><font color="red">*</font>班级:</label></td>
|
<td class="width-35">
|
<form:input path="userClass" htmlEscape="false" maxlength="64" class="form-control"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="width-15 active"><label class="pull-right">备注:</label></td>
|
<td class="width-35">
|
<form:textarea path="userOther" htmlEscape="false" rows="4" maxlength="64" class="form-control "/>
|
</td>
|
<td class="width-15 active"></td>
|
<td class="width-35" ></td>
|
</tr>
|
</tbody>
|
</table>
|
</form:form>
|
</body>
|
</html>
|