<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
if (isset($_GET['no'])) {
    $diaryboard = new ImageBoard('diaryBoard');
    $diaryboard->addHitCounter($_GET['no']);
    $posting = $diaryboard->loadPost($_GET['no']);
    $comments = $diaryboard->loadComments($_GET['no'], 'diaryboard');
    $images = $diaryboard->loadImages($_GET['no']);
}
login();
navigation();
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<!--header end-->
	<!--sidebar start-->
	<!--sidebar end-->
	<!-- 글번호를 GET으로 받아와서 고고싱하기로 하겠습니다 -->
	<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>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
if (isset($_GET['no'])) {
    $boxinglibrary = new ImageBoard('boxingLib');
    $boxinglibrary->addHitCounter($_GET['no']);
    $posting = $boxinglibrary->loadPost($_GET['no']);
    $comments = $boxinglibrary->loadComments($_GET['no'], 'boxingLib');
    $images = $boxinglibrary->loadImages($_GET['no']);
    $video = $boxinglibrary->loadVideo($_GET["no"]);
}
login();
navigation();
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<!--header end-->
	<!--sidebar start-->
	<!--sidebar end-->
	<!-- 글번호를 GET으로 받아와서 고고싱하기로 하겠습니다 -->
	<section id="main-content">
		<section class="wrapper">
			<!-- <div class="col-lg-12 mt"> -->
			<div class="container">
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
if (isset($_GET['no'])) {
    $crossfitlibrary = new ImageBoard('crossfitLib');
    $crossfitlibrary->addHitCounter($_GET['no']);
    $posting = $crossfitlibrary->loadPost($_GET['no']);
    $comments = $crossfitlibrary->loadComments($_GET['no'], 'crossfitLibrary');
    $images = $crossfitlibrary->loadImages($_GET['no']);
    $video = $crossfitlibrary->loadVideo($_GET["no"]);
}
login();
navigation();
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<!--header end-->
	<!--sidebar start-->
	<!--sidebar end-->
	<!-- 글번호를 GET으로 받아와서 고고싱하기로 하겠습니다 -->
	<section id="main-content">
		<section class="wrapper">
			<!-- <div class="col-lg-12 mt"> -->
			<div class="container">
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
if (isset($_GET['no'])) {
    $freeboard = new ImageBoard('freeboard');
    $freeboard->addHitCounter($_GET['no']);
    //조회수 ++
    $posting = $freeboard->loadPost($_GET['no']);
    $comments = $freeboard->loadComments($_GET['no'], 'freeBoard');
    $images = $freeboard->loadImages($_GET['no']);
}
login();
navigation();
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<!--header end-->
	<!--sidebar start-->
	<!--sidebar end-->
	<!-- 글번호를 GET으로 받아와서 고고싱하기로 하겠습니다 -->
	<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>
<head>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
if (isset($_GET['no'])) {
    $review = new ImageBoard('exerciseEpilogue');
    $posting = $review->loadPost($_GET['no']);
    $comments = $review->loadComments($_GET['no'], 'review');
    $images = $review->loadImages($_GET['no']);
}
login();
navigation();
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<!--header end-->
	<!--sidebar start-->
	<!--sidebar end-->
	<!-- 글번호를 GET으로 받아와서 고고싱하기로 하겠습니다 -->
	<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>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
if (isset($_GET['no'])) {
    $crossfitlecture = new ImageBoard('crossfitLec');
    $crossfitlecture->addHitCounter($_GET['no']);
    $posting = $crossfitlecture->loadPost($_GET['no']);
    $comments = $crossfitlecture->loadComments($_GET['no'], 'crossfitLec');
    $images = $crossfitlecture->loadImages($_GET['no']);
    $video = $crossfitlecture->loadVideo($_GET["no"]);
}
login();
navigation();
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<!--header end-->
	<!--sidebar start-->
	<!--sidebar end-->
	<!-- 글번호를 GET으로 받아와서 고고싱하기로 하겠습니다 -->
	<section id="main-content">
		<section class="wrapper">
			<!-- <div class="col-lg-12 mt"> -->
			<div class="container">
		<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'];
            }
        } else {
            $thumbnail = $video['thumbnail'];
        }
        ?>
							<div class="col-sm-3 mt">
								<a href="view.php?page=<?php 
        echo $page;
        ?>
&amp;no=<?php 
			<!-- <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'];
            }
        } else {
            $thumbnail = $video['thumbnail'];
        }
        ?>
						<div class="col-sm-3 mt">
							<a href="view.php?page=<?php 
        echo $page;
        ?>
&amp;no=<?php 
	<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 
        echo $post['no'];
        ?>
'>
								<div class='panel panel-default' id='item'>
									<div class='panel-body item'>
										<img src='<?php 
        echo empty($images) ? "/resources/crossfit.jpg" : "upload/files/" . $images[0]['fileName'];
        ?>
' height ='100%'/>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '../css/breatheboard.css', '/common/css/table-responsive.css', '/community/css/community.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
if (isset($_GET['no'])) {
    $breatheboard = new ImageBoard('breatheBoard');
    $breatheboard->addHitCounter($_GET['no']);
    $posting = $breatheboard->loadPost($_GET['no']);
    $comments = $breatheboard->loadComments($_GET['no'], 'breatheBoard');
    $images = $breatheboard->loadImages($_GET['no']);
}
login();
navigation();
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<!--header end-->
	<!--sidebar start-->
	<!--sidebar end-->
	<!-- 글번호를 GET으로 받아와서 고고싱하기로 하겠습니다 -->
	<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>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
if (isset($_GET['no'])) {
    $boxinglecture = new ImageBoard('boxingLec');
    $boxinglecture->addHitCounter($_GET['no']);
    $posting = $boxinglecture->loadPost($_GET['no']);
    $comments = $boxinglecture->loadComments($_GET['no'], 'boxingLec');
    $images = $boxinglecture->loadImages($_GET['no']);
    $video = $boxinglecture->loadVideo($_GET["no"]);
}
login();
navigation();
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<!--header end-->
	<!--sidebar start-->
	<!--sidebar end-->
	<!-- 글번호를 GET으로 받아와서 고고싱하기로 하겠습니다 -->
	<section id="main-content">
		<section class="wrapper">
			<!-- <div class="col-lg-12 mt"> -->
			<div class="container">