<%@ 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>
				<!-- row -->
	   			<div class="table-responsive">
					<table class="table table-bordered table-hover table-striped">
						<thead>
							<tr>
								<td>번호</td>
								<td>제목</td>
								<td>글쓴이</td>
								<td>날짜</td>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${ShareBoardList }" var="temp" varStatus="i">
								<tr>								
									<td class="col-lg-1">${temp.num }</td>
									<td class="col-lg-2"><a href="IdcShareBoardReadForm.main?code=${temp.code }">${temp.title }</a></td>
									<td class="col-lg-1">${temp.id }</td>
									<td class="col-lg-1">${temp.write_date }</td>
								</tr>
							</c:forEach>
						</tbody>
						<tfoot>
						</tfoot>
					</table>
				</div>
				<!-- table-responsive -->
				<div class="input-group-btn">
					<a class="btn btn-primary btn-outline" href="IdcShareBoardWriteForm.main">등록</a>
				</div>
				<div align="center">
					<ul class="pagination" style="margin: 0px;">
						<li><a class="btn btn-outline btn-default"
							href="IdcShareBoardListForm.main?curPage=1"> <i
								class="fa fa-angle-double-left "></i>
						</a></li>
						<c:forEach var="i" begin="${firstPage }" end="${pageCnt }">
							<li><a class="btn btn-outline btn-defualt"
								href="IdcShareBoardListForm.main?curPage=${i }">${i}</a></li>
						</c:forEach>
						<li>
							<a class="btn btn-outline btn-default" href="IdcShareBoardListForm.main?curPage=${pageCnt }"> 
								<i class="fa fa-angle-double-right "></i>
							</a>
						</li>
					</ul>
					<!-- ul -->
				</div>
				<!-- pagination div -->
			</div>
			<!-- panel-body -->
		</div>
		<!-- panel panel-default -->
	</div>
	<!-- col-lg-12 -->
</div>
<!-- row -->
<!-- /#page-wrapper -->
