Examination_system/Examination_system-1/.svn/pristine/a1/a1b71bfbc8e2c260c5f1a22197c...

111 lines
2.5 KiB
Plaintext

<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fns" uri="/WEB-INF/tlds/fns.tld" %>
<!DOCTYPE html>
<html>
<head>
<%@include file="../baseset.jsp" %>
<%@include file="../systemset.jsp" %>
<title></title>
<style type="text/css">
.p{
margin:4% 2% 0 1%;
}
.flag{
width:10%;
text-align: right;
}
.flag>span{
padding-right:1em;
}
.con{
width:15%;
text-align: left;
}
.lang{
valign:middle;
width:40%;
text-align: left;
}
.inp{
width:50%;
}
</style>
</head>
<body>
<div class="p">
<form id="addRoleForm" method="POST" onsubmit="return false;" >
<table id="bigTable" cellspacing="0" cellpadding="0" border="0" class="customTable">
<input type="hidden" id="roleId" name="id" value="${role.id}" />
<tbody>
<tr class="FormData">
<td class="CaptionTD"><font color="red">*</font>名称:</td>
<td class="DataTD">&nbsp;
<input style="width:50%;" type="text" jyValidate="required" name="name" value="${role.name}" class="FormElement ui-widget-content ui-corner-all"></td>
</tr>
<tr class="FormData">
<td class="CaptionTD">描述:</td>
<td class="DataTD">&nbsp;
<textarea style="width:50%;" id="describtion" name="describtion" class="FormElement ui-widget-content ui-corner-all">${role.describtion}</textarea>
</td>
</tr>
<tr class="FormData">
<td class="CaptionTD">备注:</td>
<td class="DataTD">&nbsp;
<textarea style="width:50%;" name="remarks" class="FormElement ui-widget-content ui-corner-all">${role.remarks}</textarea>
</td>
</tr>
</tbody>
</table>
</form>
</div>
<script type="text/javascript">
$(function () {
$.fn.modal.Constructor.prototype.enforceFocus = function(){};
$(".js-example-basic-single").select2({
"language": "zh-CN"
});
laydate.render({
elem: '#needTime' //指定元素
,theme: '#393D49'
,min:-7
,showBottom: false
,trigger: 'click'
});
});
/**
* @author 姜山
* @date 2019-07-31
* @function 父页面回调函数
* @returns
*/
function getInfo(){
var obj = JY.Object.serialize($("#addRoleForm"));
return obj;
}
/**
* @author 无畏
* @date 2019-06-25
* @function 验证表单信息
* @returns
*/
function formValid(){
return JY.Validate.form("addRoleForm");
}
</script>
</body>
</html>