<div class="container">
			<h3><i class="fa fa-angle-right"></i> 운동후기</h3>
				<div class="panel panel-default mt">
					<table class="table table-striped">
						<thead>
							<tr>
								<th class="hidden-phone">번호</th>
								<th>제목</th>
								<th>글쓴이</th>
								<th class="hidden-phone">작성일</th>
								<th>조회</th>
							</tr>
						</thead>
						<tbody>
							<?php 
$posts = $review->loadPostList($page, 15);
if (empty($posts)) {
    ?>
									<tr>
										<td colspan="5">게시글이 없습니다</td>
									</tr>
								<?php 
} else {
    foreach ($posts as $post) {
        ?>
									<tr>
										<td><?php 
        echo $post['no'];
        ?>
</td>
										<td><a href="view.php?page=<?php 
			<div class="container">
			<h3><i class="fa fa-angle-right"></i> 자유게시판</h3>
				<div class="panel panel-default mt">
					<table class="table table-striped">
						<thead>
							<tr>
								<th class="hidden-phone">번호</th>
								<th>제목</th>
								<th>글쓴이</th>
								<th class="hidden-phone">작성일</th>
								<th>조회</th>
							</tr>
						</thead>
						<tbody>
							<?php 
$posts = $freeboard->loadPostList($page, 15);
if (empty($posts)) {
    ?>
									<tr>
										<td colspan="5">게시글이 없습니다</td>
									</tr>
								<?php 
} else {
    foreach ($posts as $post) {
        ?>
									<tr>
										<td><?php 
        echo $post['no'];
        ?>
</td>
										<td><a href="view.php?page=<?php 
			<div class="container">
			<h3><i class="fa fa-angle-right"></i> 스파링영상</h3>
				<div class="panel panel-default mt">
					<table class="table table-striped">
						<thead>
							<tr>
								<th class="hidden-phone">번호</th>
								<th>제목</th>
								<th>글쓴이</th>
								<th class="hidden-phone">작성일</th>
								<th>조회</th>
							</tr>
						</thead>
						<tbody>
							<?php 
$posts = $sparring->loadPostList($page, 15);
if (empty($posts)) {
    ?>
									<tr>
										<td colspan="5">게시글이 없습니다</td>
									</tr>
								<?php 
} else {
    foreach ($posts as $post) {
        ?>
									<tr>
										<td><?php 
        echo $post['no'];
        ?>
</td>
										<td><a href="view.php?page=<?php 
	<?php 
//communityHeader();
?>
	<!--header end-->
	<!--sidebar start-->
	<?php 
//communitySidebar("exerciseInfo/crossfitlibrary");
?>
	<!--sidebar end-->
	<section id="main-content">
		<section class="wrapper">
			<div class="container">
				<h3><i class="fa fa-angle-right"></i> 크로스핏 자료실</h3>
				<div class="row">
				<?php 
$posts = $crossfitlibrary->loadPostList($page, 8);
if (empty($posts)) {
    ?>
						<div class='col-md-12 col-xs-12'>
							포스트가 없습니다.
						</div>
					<?php 
} else {
    foreach ($posts as $post) {
        $video = $crossfitlibrary->loadVideo($post['no']);
        $images = $crossfitlibrary->loadImages($post['no']);
        if (empty($video)) {
            if (empty($images)) {
                $thumbnail = "/resources/crossfit.jpg";
            } else {
                $thumbnail = $images[0]['fileName'];
			<div class="container">
			<h3><i class="fa fa-angle-right"></i> 복싱운동강좌</h3>
				<div class="panel panel-default mt">
					<table class="table table-striped">
						<thead>
							<tr>
								<th class="hidden-phone">번호</th>
								<th>제목</th>
								<th>글쓴이</th>
								<th class="hidden-phone">작성일</th>
								<th>조회</th>
							</tr>
						</thead>
						<tbody>
							<?php 
$posts = $boxinglecture->loadPostList($page, 15);
if (empty($posts)) {
    ?>
									<tr>
										<td colspan="5">게시글이 없습니다</td>
									</tr>
								<?php 
} else {
    foreach ($posts as $post) {
        ?>
									<tr>
										<td><?php 
        echo $post['no'];
        ?>
</td>
										<td><a href="view.php?page=<?php 
			<div class="container">
			<h3><i class="fa fa-angle-right"></i> 크로스핏 강좌</h3>
				<div class="panel panel-default mt">
					<table class="table table-striped">
						<thead>
							<tr>
								<th class="hidden-phone">번호</th>
								<th>제목</th>
								<th>글쓴이</th>
								<th class="hidden-phone">작성일</th>
								<th>조회</th>
							</tr>
						</thead>
						<tbody>
							<?php 
$posts = $crossfitlecture->loadPostList($page, 15);
if (empty($posts)) {
    ?>
									<tr>
										<td colspan="5">게시글이 없습니다</td>
									</tr>
								<?php 
} else {
    foreach ($posts as $post) {
        ?>
									<tr>
										<td><?php 
        echo $post['no'];
        ?>
</td>
										<td><a href="view.php?page=<?php 
?>
	<!--header end-->
	<!--sidebar start-->
	<?php 
//communitySidebar("exerciseInfo/boxingLibrary");
?>
	<!--sidebar end-->
	<section id="main-content">
		<section class="wrapper">

			<!-- <div class="col-lg-12 mt"> -->
			<div class="container">
			<h3><i class="fa fa-angle-right"></i> 복싱자료실</h3>
			<div class="row">
			<?php 
$posts = $boxinglibrary->loadPostList($page, 8);
if (empty($posts)) {
    ?>
					<div class='col-md-12 col-xs-12'>
						포스트가 없습니다.
					</div>
				<?php 
} else {
    foreach ($posts as $post) {
        $video = $boxinglibrary->loadVideo($post['no']);
        $images = $boxinglibrary->loadImages($post['no']);
        if (empty($video)) {
            if (empty($images)) {
                $thumbnail = "/resources/crossfit.jpg";
            } else {
                $thumbnail = $images[0]['fileName'];
<body>
	<!--<script src="/common/js/facebook.js"></script>-->
	<!-- 페이스북 SDK load -->
	<?php 
login();
navigation();
$breatheBoard = new ImageBoard('breatheBoard');
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>

	<section class='wrapper content'>
		<div class='container'>
			<h3><i class="fa fa-angle-right"></i> 브리드 이야기</h3>
			<div class='row'>
			<?php 
$posts = $breatheBoard->loadPostList($page, 8);
if (empty($posts)) {
    ?>
					<div class='col-md-12 col-xs-12'>
						포스트가 없습니다.
					</div>
				<?php 
} else {
    foreach ($posts as $post) {
        $images = $breatheBoard->loadImages($post['no']);
        ?>
						<div class='col-md-3 col-xs-12'>
							<a href='view.php?page=<?php 
        echo $page;
        ?>
&amp;no=<?php 
			<div class="container">
			<h3><i class="fa fa-angle-right"></i> 사부님의 노트</h3>
				<div class="panel panel-default mt">
					<table class="table table-striped">
						<thead>
							<tr>
								<th class="hidden-phone">번호</th>
								<th>제목</th>
								<th>글쓴이</th>
								<th class="hidden-phone">작성일</th>
								<th>조회</th>
							</tr>
						</thead>
						<tbody>
							<?php 
$posts = $diaryboard->loadPostList($page, 15);
if (empty($posts)) {
    ?>
									<tr>
										<td colspan="5">게시글이 없습니다</td>
									</tr>
								<?php 
} else {
    foreach ($posts as $post) {
        ?>
									<tr>
										<td><?php 
        echo $post['no'];
        ?>
</td>
										<td><a href="view.php?page=<?php 
						<blockquote cite="https://www.facebook.com/%EB%B8%8C%EB%A6%AC%EB%93%9C%EB%B3%B5%EC%8B%B1-680392418649439/">
							<a href="https://www.facebook.com/facebook">Facebook</a>
						</blockquote>
					</div>
				</div>
			</div>
		</div><!-- /.row -->
		<br/>
		<br/>
		<h1>> Breathe Diary<a href='./board/breatheBoard/index.php' class = 'btn btn-primary pull-right'>view details</a></h1>
		<!-- START THE FEATURETTES -->
		<br/>
		<div class='container mediaBox'>
			<?php 
$breatheBoard = new ImageBoard('breatheBoard');
$posts = $breatheBoard->loadPostList(1, 5);
if (empty($posts)) {
    ?>
					<div class='media'>
						<div class='media-body'>
							등록된 게시글이 없습니다
						</div>
					</div>
				<?php 
} else {
    foreach ($posts as $post) {
        $images = $breatheBoard->loadImages($post['no']);
        ?>
							<div class='media'>
								<div class='media-left'>
									<a href='#'>