<%--
  Class Name : EgovPopupDetail.jsp
  Description : 팝업창관리 상세보기
  Modification Information
 
      수정일         수정자                   수정내용
    -------    --------    ---------------------------
     2009.09.16    장동한          최초 생성
 
    author   : 공통서비스 개발팀 장동한
    since    : 2009.09.16
   
    Copyright (C) 2009 by MOPAS  All right reserved.
--%>
<%@ 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="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ImgUrl" value="${pageContext.request.contextPath}/images/egovframework/com/cmm/" />
<c:set var="CssUrl" value="${pageContext.request.contextPath}/css/egovframework/com/" />
<%pageContext.setAttribute("crlf", "\r\n"); %>
<!DOCTYPE html>
<html lang="ko">
<head>
<title>팝업창관리 관리</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link type="text/css" rel="stylesheet" href="${CssUrl}com.css">
<link type="text/css" rel="stylesheet" href="${CssUrl}button.css">
<script type="text/javaScript" language="javascript">
/* ********************************************************
 * 초기화
 ******************************************************** */
function fn_egov_init_PopupManage(){

}
/* ********************************************************
 * 목록 으로 가기
 ******************************************************** */
function fn_egov_list_PopupManage(){
	location.href = "<c:url value='/uss/ion/pwm/listPopup.do' />";
}
/* ********************************************************
 * 저장처리화면
 ******************************************************** */
function fn_egov_modify_PopupManage(){
	var vFrom = document.PopupManageForm;
	vFrom.cmd.value = '';
	vFrom.action = "<c:url value='/uss/ion/pwm/updtPopup.do' />";;
	vFrom.submit();

}
/* ********************************************************
 * 삭제처리
 ******************************************************** */
function fn_egov_delete_PopupManage(){
	var vFrom = document.PopupManageForm;
	if(confirm("삭제 하시겠습니까?")){
		vFrom.cmd.value = 'del';
		vFrom.action = "<c:url value='/uss/ion/pwm/detailPopup.do' />";
		vFrom.submit();
	}else{
		vFrom.cmd.value = '';
	}
}
</script>
</head>
<body onLoad="fn_egov_init_PopupManage();">
<form:form commandName="authorManage" method="post" >
	<div class="post_main1_div">
		<div class="main1_div1">
			<span class="sub_title1"><c:out value="${registerFlagName}"/></span><span class="title_path">HOME&gt; 내부서비스관리&gt; 사용자관리&gt; 권한관리</span>
		</div>
		
		<!-- 검색조건 유지 -->
					<c:if test="${registerFlag == 'UPDATE'}">
					<input type="hidden" name="searchCondition" value="<c:out value='${authorManageVO.searchCondition}'/>"/>
					<input type="hidden" name="searchKeyword" value="<c:out value='${authorManageVO.searchKeyword}'/>"/>
					<input type="hidden" name="pageIndex" value="<c:out value='${authorManageVO.pageIndex}'/>"/>
					</c:if>
		<div class="main1_div2">
			<table class="main1_table">
				<tr>
					<th class="td_title1"><span class="star_t">*</span>권한  코드</th>
					<td colspan="3">
						<input name="authorCode" id="authorCode" type="text" readonly="readonly" value="<c:out value='${authorManage.authorCode}'/>" size="40" title="권한코드" />
						<form:errors path="authorCode" />
					</td>
				</tr>
				
				<tr>
					<th class="td_title1"><span class="star_t">*</span>권한 명</th>
					<td colspan="3">
						<input name="authorNm" id="authorNm" type="text" value="<c:out value='${authorManage.authorNm}'/>" maxLength="50" size="40" title="권한명" />
						<form:errors path="authorNm" />
					</td>
				</tr>
				
				<tr>
					<th class="td_title1"><span class="star_t"></span>설명</th>
					<td colspan="3">
						<input name="authorDc" id="authorDc" type="text" value="<c:out value='${authorManage.authorDc}'/>" maxLength="50" size="50" title="설명" />
					</td>
				</tr>
				<c:if test="${registerFlag == 'UPDATE'}">
				<tr>
					<th class="td_title1"><span class="star_t"></span>등록일자</th>
					<td colspan="3">
						<input name="authorCreatDe" id="authorCreatDe" type="text" value="<c:out value='${authorManage.authorCreatDe}'/>" maxLength="50" size="20" readonly="readonly" title="등록일자"/>
					</td>
				</tr>
				</c:if>
			</table>
		
			<c:if test="${registerFlag == 'INSERT'}">
				<button class="main1_btn" onclick="fncSelectAuthorList(); return false;" style="right: 190px;">목 록</button>
				<button class="main1_btn" id="main1_save_btn" onclick="fncAuthorInsert(); return false;">저 장</button>
			</c:if>
			<c:if test="${registerFlag == 'UPDATE'}">
				<button class="main1_btn" onclick="fncSelectAuthorList(); return false;" style="right: 190px;">목 록</button>
				<button class="main1_btn" id="main1_auth_delete_btn" onclick="fncAuthorDelete(); return false;" style="left:-24px;">삭 제 </button>
				<button class="main1_btn" id="main1_save_btn" onclick="fncAuthorUpdate(); return false;" style="left: 140px;">수 정 </button>
			</c:if>
		</div>
	</div>
	</form:form>
</body>
</html>
