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

<!-- 여기가 본 페이지이다 -->
<div class="row">
	<div class="col-lg-8">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h4><i class="fa fa-desktop fa-fw"></i> 개별 게시판</h4>
			</div>
			<div class="panel-body">
				<div class="row">
					<div class="col-lg-12">
						<a class="btn btn-default btn-outline" href="boardWriteForm.bor">새글쓰기</a>
					</div>
				</div>
				<!-- row -->
	   			<div class="table-responsive">
					<table class="table table-bordered table-hover table-striped">
						<thead>
							<tr>
								<td>글 번호</td>
								<td>글 제목</td>
								<td>작성자</td>
								<td>작성일</td>
								<td>작성시간</td>
								<td>조회수</td>
								<td>답글수</td>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${boardList}" var="dto">
								<tr>
									<td>
										<a href="boardRead.bor?num=${dto.num}">${dto.num}</a>
									</td>
									<td>
										<c:forEach begin="1" end="${dto.lev}">
											<%= "&nbsp;&nbsp;" %>
										</c:forEach>
										<a href="boardRead.bor?num=${dto.num}">${dto.subject}</a>
									</td>
									<td>${dto.name}</td>
									<td>${dto.writeDate}</td>
									<td>${dto.writeTime}</td>
									<td>${dto.readCnt}</td>
									<td>${dto.childCnt}</td>
								</tr>
							</c:forEach>
						</tbody>
						<tfoot>
						</tfoot>
					</table>
				</div>
				<!-- table-responsive -->
				<div	class="text-center">
				<a class="btn2 btn-default btn-outline" href="boardWriteForm.bor">새글쓰기</a>
					<!--  <a class="btn btn-default btn-outline" href="boardList.bor?curPage=1">첫 페이지로</a>-->
				</div>
			</div>
			<!-- panel-body -->
		</div>
		<!-- panel panel-default -->
	</div>
	<!-- col-lg-12 -->
</div>
<!-- row -->
<!-- /#page-wrapper -->
