<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!-- 검색조건 -->
	<!-- container 시작 -->
	<div id="container">
		<!-- 좌측메뉴 시작 -->
		<!-- //좌측메뉴 끝 -->
		<!-- content 시작 -->
		<div id="content_pop" class="content main_content">
			<div id="board_wrap">
				<!-- 내실적 조회 -->
				<!-- 게시판 -->
				<div class="board m-right m-top" style="margin-right : 10px;">
					<p class="btn_more">
						<a href="/bbs/list.do?bbsId=notice"></a>
					</p>
					<div class="inner">
						<h3 class="h1">공지사항</h3>
						<div class="board_content">
							<ul>
							<c:forEach items="${noticeList}" var="item">
								<li><a href="/bbs/view.do?bbsId=notice&bdIdx=${item.bdIdx}">${item.bdSubject}</a> <span class="date"><fmt:formatDate value="${item.bdRegdate}" pattern="yyyy-MM-dd" /></span></li>
							</c:forEach>
							</ul>
						</div>
					</div>
				</div>
				<!-- 자료실-->
				<div class="board m-right m-top">
					<p class="btn_more">
						<a href="/bbs/list.do?bbsId=report"></a>
					</p>
					<div class="inner">
						<h3 class="h1">해양정세리포트</h3>
						<div class="board_content">
							<ul>
								<c:forEach items="${stateList}" var="item">
								<li><a href="/bbs/view.do?bbsId=report&bdIdx=${item.bdIdx}">${item.bdSubject}</a> <span class="date"><fmt:formatDate value="${item.bdRegdate}" pattern="yyyy-MM-dd" /></span></li>
								</c:forEach>
							</ul>
						</div>
					</div>
				</div>
				<div class="board m-right m-top">
					<p class="btn_more">
						<a href="/bbs/list.do?bbsId=confer"></a>
					</p>
					<div class="inner">
						<h3 class="h1">국제회의</h3>
						<div class="board_content">
							<ul>
							<c:forEach items="${conferList}" var="item">
								<li><a href="/bbs/view.do?bbsId=confer&bdIdx=${item.bdIdx}">${item.bdSubject}</a> <span class="date"><fmt:formatDate value="${item.bdRegdate}" pattern="yyyy-MM-dd" /></span></li>
							</c:forEach>
							</ul>
						</div>
					</div>
				</div>
				
				<div class="board m-top" style="margin-left : 10px;">
					<p class="btn_more">
						<a href="/report/myList.do"></a>
					</p>
					<div class="inner">
						<h3 class="h1">내 실적조회</h3>
						<div class="board_content">
							<ul>
							<c:forEach items="${reportList}" var="item">
								<li><a href="/report/updateMyReport.do?inSeq=${item.inSeq}">${item.inSubject}</a> <span class="date"><fmt:formatDate value="${item.inInfodate}" pattern="yyyy-MM-dd" /></span></li>
								</c:forEach>
							</ul>
						</div>
					</div>
				</div>
			</div>
			<!-- board_wrap end -->
		</div>
		<!-- //content 끝-->
	</div>
	
	<script type="text/javascript" defer="defer">
	$(document).ready(function(){
		
		<c:forEach items="${noticePopList}" var="item">
		if (!getCookie('popup_window${item.npIdx}')) {
			window.open('/notice/popup.do?npIdx=${item.npIdx}', 'popup_window${item.npIdx}', 'width=${item.npWidth}, height=${item.npHeight}');
		}
		</c:forEach>
		
	});
	
	function getCookie(name) {
		var cname = name + '=';
		if(document.cookie.length>0) {
			begin = document.cookie.indexOf(cname);
			if(begin!=-1) {
				begin += cname.length;
				var end = document.cookie.indexOf(';',begin);
				if(end==-1)	{
					end = document.cookie.length;
				}
				return unescape(document.cookie.substring(begin,end));
			}
		}
		return;
	}
	</script>
<!-- board_wrap end -->