ERP-node/WebContent/WEB-INF/view/admin/auth/authGroupFormPopUp.jsp

91 lines
2.6 KiB
Plaintext

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="com.pms.common.utils.*"%>
<%@ page import="java.util.*"%>
<%@include file="/init.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="css/basic.css">
<title><%=Constants.SYSTEM_NAME%></title>
<script>
$(document).ready(function(){
//save
$("#btnSave").click(function(){
fn_save();
});
});
</script>
<script>
//검사명 저장
function fn_save(){
if(fnc_validate("form1")){
if(confirm("저장하시겠습니까?")){
$.ajax({
url:"/admin/saveAuthGroup.do",
type:"POST",
data:$("#form1").serialize(),
dataType:"json",
async:false,
success:function(data){
Swal.fire(data.msg);
if(data.result){
opener.fn_search();
self.close(0);
}
},
error: function(jqxhr, status, error){
}
});
}
}
}
</script>
</head>
<body>
<section id="commonSection">
<div class=admin_title>
<h2>권한그룹 등록</h2>
</div>
<div id="adminPopupFormWrap">
<form id="form1" name="form1" method="post">
<input type="hidden" name="OBJID" id="OBJID" value="${groupInfo.OBJID}">
<table id="adminPopupForm">
<colgroup>
<col width="37%" />
<col width="63%" />
</colgroup>
<tbody>
<tr>
<td><label>권한명</label></td>
<td><input type="text" title="권한명" name="AUTH_NAME" id="AUTH_NAME" value="${groupInfo.AUTH_NAME}" maxlength="10" required></td>
</tr>
<tr>
<td><label>권한CODE</label></td>
<td><input type="text" title="권한CODE" name="AUTH_CODE" id="AUTH_CODE" value="${groupInfo.AUTH_CODE}" maxlength="20" required></td>
</tr>
<tr>
<td><label for="">상태</label></td>
<td>
<select name="STATUS" id="STATUS" type="select" title="상태" required>
<option value="">선택</option>
<option value="active" ${groupInfo.STATUS eq 'active' ? 'selected' : ''}>활성화</option>
<option value="inActive" ${groupInfo.STATUS eq 'inActive' ? 'selected' : ''}>비활성화</option>
</select>
</td>
</tr>
</tbody>
</table>
</form>
</div>
<div class="btnCenterWrap">
<center class="center_btns_wrap">
<input type="button" value="저장" class="btns" id="btnSave">
<input type="button" value="닫기" name="" id="btn_close" class="btns" onclick="javascript:self.close();">
</center>
</div>
</secsion>
</body>
</html>