<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

        <!--contents-->
		<section class="sub-container">
			<article class="menu-history">
				<ul>
					<li><a href="/main/main.do" class="home">홈</a></li>
					<li><a href="/notice/noticeList.do">공지사항</a></li>
				</ul>
			</article>
			<article class="contents-wrap">
				<div class="title-box">
					<h2 class="h2-title">공지사항</h2>
					<p class="title-info">시민 중심 새로운 <span>평택 교통정보센터</span></p>
				</div>

				<div id="noticeCon">
					<div class="board-form">
						<div class="board-view-head">
							<p>${notice.bSubject}</p>
						</div>
						<div class="board-view">
							<div class="view-form">
								<div class="download">
									<c:if test="${not empty notice.attatchFiles && not empty notice.attatchFileIds}" >
										<c:forEach var="attatchFile" items="${notice.attatchFiles}" varStatus="status">
											<c:if test="${not empty attatchFile}">
												<a class="file${status.count}" onclick="fileDownload('${notice.attatchFileIds.get(status.index)}', '${attatchFile}')" style="cursor:pointer;">
													<img src="/images/icon_file.png" class='pt12 pr05' alt="첨부파일${status.count}" />${attatchFile}
												</a>
											</c:if>
										</c:forEach>
									</c:if>
								</div>
								<p class="day">${notice.regDate}</p>
							</div>
							<div class="content">
								${notice.bContent}
							</div>
						</div>
						<div class="prevnext">
							<p>
								<span><a href="/notice/noticeList.do">목록</a></span>
							</p>
						</div>
					</div>
				</div>
			</article>
		</section>
       <!--//contents-->