File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
<%--
Class Name : EgovLoginPolicyRegist.jsp
Description : EgovLoginPolicyRegist 화면
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2009.02.01 lee.m.j 최초 생성
2011.08.31 JJY 경량환경 버전 생성
author : 공통서비스 개발팀 lee.m.j
since : 2009.02.01
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Language" content="ko" >
<title>금지어 등록/수정</title>
<script type="text/javaScript" language="javascript">
function fn_insert() {
var varFrom = document.getElementById("modiForm");
if(!validate()){
return false;
}
varFrom.action = "<c:url value='/uss/ion/cnf/prohiInsert.do'/>";
if(confirm("저장 하시겠습니까?")){
varFrom.submit();
}
}
function validate() {
if($('#prohibitCn').val().trim()==""){
alert("금지어 내용에 내용을 넣어주세요");
return false;
}
var tempProhibitCn = $('#prohibitCn').val().replace(/ /g, '');
tempProhibitCn = tempProhibitCn.split(',') ;
for(var i=0; i < tempProhibitCn.length ; i++){
if(tempProhibitCn[i] == ""){
alert("금지어에 빈칸을 넣을수 없습니다.");
return false;
break;
}
if(tempProhibitCn[i] == "."){
alert("금지어 내용에 . 를 넣을수 없습니다.");
return false;
break;
}
}
$('#prohibitCn').val($('#prohibitCn').val().replace(/ /g, '')) ; //공백제거
return true;
}
function fn_update() {
var varFrom = document.getElementById("modiForm");
varFrom.action = "<c:url value='/uss/ion/cnf/prohiUpdate.do'/>";
if(!validate()){
return false;
}
if(confirm("저장 하시겠습니까?")){
varFrom.submit();
}
}
/* 삭제 */
function fn_delete(){
var varFrom = document.getElementById("modiForm");
if(!confirm("삭제하시겠습니까?")){
return false;
}
varFrom.action = "/uss/ion/cnf/prohiDelete.do";
varFrom.submit();
}
</script>
</head>
<body>
<noscript>자바스크립트를 지원하지 않는 브라우저에서는 일부 기능을 사용하실 수 없습니다.</noscript>
<form name="modiForm" id="modiForm" method="post" action="${pageContext.request.contextPath}/uat/uap/addLoginPolicy.do">
<!-- 검색조건 유지 -->
<input type="hidden" name="del" value="<c:out value='${prohibitVO.prohibitId}'/>" >
<input type="hidden" name="prohibitId" value="<c:out value='${prohibitVO.prohibitId}'/>" >
<!-- 검색조건 유지 -->
<div class="contWrap">
<div class="pageTitle">
<div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div>
<h2 class="titType1 c_222222 fwBold">금지어관리 수정/등록</h2>
<p class="tType6 c_999999">현재 사용중인 게시판의 이용 현황을 파악할 수 있으며, 게시판을 추가 및 설정, 삭제할 수 있습니다.</p>
</div>
<div class="pageCont">
<div class="listTop resisterList">
<p class="right block fwMd"><span class="tType4 c_e40000 fwBold">*</span>는 필수입력 항목입니다.</p>
</div>
<table class="tbType2">
<colgroup>
<col style="width: 20%">
<col style="width: 80%">
</colgroup>
<c:if test="${siteId eq 'super'}">
<tr>
<th><span class="reqArea">사이트</span></th>
<td>
<select name="siteId" title="권한">
<c:forEach var="resultList" items="${siteManageList}" varStatus="status">
<option value="<c:out value="${resultList.siteId}"/>"
<c:if test="${prohibitVO.siteId eq resultList.siteId}"> selected='selected' </c:if>>
<c:out value="${resultList.siteNm}"/>
</option>
</c:forEach>
</select>
</td>
</tr>
</c:if>
<tr>
<th><span class="reqArea">금지어</span></th>
<td>
<input type="text" name="prohibitCn" id="prohibitCn" value="${prohibitVO.prohibitCn}"/>
</td>
</tr>
<c:if test="${!empty prohibitVO.registerId }">
<tr>
<th><span class="reqArea">등록자</span></th>
<td>
<c:out value="${prohibitVO.registerId}" />
</td>
</tr>
</c:if>
<c:if test="${!empty prohibitVO.registPnttm }">
<tr>
<th><span class="reqArea">등록일</span></th>
<td>
<c:out value="${prohibitVO.registPnttm}" />
</td>
</tr>
</c:if>
<c:if test="${!empty prohibitVO.updtPnttm }">
<tr>
<th><span class="reqArea">수정일</span></th>
<td>
<c:out value="${prohibitVO.updtPnttm}" />
</td>
</tr>
</c:if>
<tr>
<th><span class="reqArea">사용여부</span></th>
<td>
<select id="useYn" name="useYn">
<option value="Y" <c:if test="${prohibitVO.useYn eq 'Y'}"> selected='selected' </c:if>>사용</option>
<option value="N" <c:if test="${prohibitVO.useYn eq 'N'}"> selected='selected' </c:if>>미사용</option>
</select>
</td>
</tr>
</table>
<div class="btnWrap">
<input type="button" class="btnType1 bg_888888" value="목 록" onclick="location.href='<c:url value='/uss/ion/cnf/prohiList.do'/>'; return false;">
<c:if test="${empty prohibitVO.prohibitCn}">
<input type="button" class="btnType1" value="등 록" onclick="fn_insert(); return false;">
</c:if>
<c:if test="${!empty prohibitVO.prohibitCn}">
<input type="button" class="btnType1 bg_ed4545" value="삭 제 " onclick="fn_delete(); return false;">
<input type="button" class="btnType1" value="수 정 " onclick="fn_update(); return false;">
</c:if>
</div>
</div>
</div>
</form>
<form name="searchForm" id="searchForm" method="get" action="<c:url value='/uat/uap/selectLoginPolicyList.do'/>" >
</form>
</body>
</html>