<%--
    Document   : main_popup
    Created on : 2011. 6. 30, 오후 1:36:45
    Author     : Kts
--%>
<%@ page contentType="text/html; charset=UTF-8"
       import="java.net.URLDecoder" import="java.net.URLEncoder"
	import="java.util.Iterator" import="java.util.List"
	import="javax.jdo.PersistenceManager"
	import="kr.co.kihyun.beans.entity.*"
	import="kr.co.kihyun.beans.entity.util.*"
	import="kr.co.kihyun.beans.user.HttpSSOLogin"
	import="kr.co.kihyun.text.html.ServletUtil"
	import="kr.co.kihyun.moumi.MoumiConfig" import="kr.co.kihyun.lang.MString"
	import="kr.co.kihyun.lang.MLong"
	import="kr.co.kihyun.beans.totsys.menu.MenuBean"
	import="kr.co.kihyun.moumi.doc.MDoc"
	import="kr.co.kihyun.moumi.report.MReport"
	import="kr.co.kihyun.lang.MInteger"
       import="kr.co.kihyun.beans.entity.TotDoc"%>

<%@ include file="/totsys/common/inc/sec/secure.inc.jsp"%>

<%
    String gName = request.getParameter("gName");
    String id=gName.substring(5);

    //28.크로스사이트 스크립트(Reflected)_CWE-80 : Add by KWON,HAN
    if (id !=null) {
        id = id.replaceAll("<","&lt");
        id = id.replaceAll(">","&gt");
    }
    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%>
<html>
<head>
<title>- 자료집계 -</title>
<style type="text/css">
    html, body {overflow: hidden; margin: 0;width:100%;height: 100%;}
    .popup_content {height: 363px; overflow-y: auto;}
/*    .popup_footer{position: relative; bottom:0; width:100%; font-size: 10pt; font-family: Dotum, arial; background-color: #ccc; text-align: right; margin:5px 0 0 0;}*/
    .popup_footer{position: absolute; bottom:0; width:100%; font-size: 10pt; font-family: Dotum, arial; background-color: #ccc; text-align: right; margin:0 0 0 0;}
    .popup_footer label, input {cursor: pointer;}
    .popup_footer label {margin:0 10px 0 0;}
</style>
<script type="text/javascript" src="/totsys/common/js/jquery-1.12.4.min.js"></script>
<script type="text/javascript">
$(function(){
	$('.frameblock').remove();
});
</script>
</head>
<body>
<div class="frameblock" style="text-align: center; color: #000; background-color: #fff; font-family: dotum; font-size: 13px; font-weight: bold;position: absolute;top:0;left:0;width:100%;height:100%; z-index: 1001; opacity: 0.5;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=50);filter:alpha(opacity=50);"><div style="margin-top:30%;opacity: 1;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);filter:alpha(opacity=100);"><img src="/totsys/common/js/img/ajax-loader1.gif">&nbsp;처리중입니다...</div></div>
    <div class="popup_content">
        <jsp:include page="/totsys/sysadm/board/board_view2.jsp" flush="true">
            <jsp:param value='<%= id %>' name="boardID" />
        </jsp:include>
    </div>
    <div class="popup_footer">
        <label for="popup_donotshow_1">
            <input type="checkbox" name="NOTICE2" id="popup_donotshow_1" onClick="closePopup2('<%=gName%>',1);">&nbsp;오늘 하루 안 보기
        </label>
        <label for="popup_donotshow_7">
            <input type="checkbox" name="NOTICE2" id="popup_donotshow_7" onClick="closePopup2('<%=gName%>',7);">&nbsp;일주일간 안 보기
        </label>
    </div>
</body>
<script type="text/javascript">
<!--
// 쿠키생성
function setCookie2( name, value, expiredays ) {
    var todayDate = new Date();
    todayDate.setDate( todayDate.getDate() + expiredays );
    document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

// 팝업닫기
function closePopup2(name,value) {
    if(name==null) return;
    setCookie2(name, "no" , value);
    self.close();
}
//-->
</script>
</html>
