<?php if ($mod==""){
	header('location:../../404.php');
}else{
?>
<!-- 
*******************************************************
	Include Header Template
******************************************************* 
-->
<?php include_once "po-content/$folder/header.php"; ?>


<!-- 
*******************************************************
	Main Content Template
******************************************************* 
-->
<?php
	$id = mysql_real_escape_string(stripslashes(strip_tags(htmlspecialchars($_GET['idp'],ENT_QUOTES))));
	$tablepag = new PoTable('pages');
	$currentPag = $tablepag->findByAnd(id_pages, $id, active, 'Y');
	$currentPag = $currentPag->current();
	$content = $currentPag->content;
	$content = html_entity_decode($content);
?>
<?php if ($currentPag != "0"){ ?>
	<div id="content" class="container">
		<div id="main" class="row-fluid">
			<div id="main-left" class="span8">
				<article class="page">
					<header class="entry-header">
						<h1 class="entry-title"><span>Tentang Kami</span></h1>
					</header><!-- .entry-header -->
					<div class="entry-content">
						<p><img alt="<?php echo $currentPag->title; ?>" src="po-content/po-upload/<?php echo $currentPag->picture; ?>" style="width:100%;"></p><br />
						<p><?php echo $content; ?></p>
					</div><!-- .entry-content -->
				</article>
			</div><!-- #main-left -->

			<!-- 
			*******************************************************
				Include Sidebar Template
			******************************************************* 
			-->
			<?php include_once "po-content/$folder/sidebar.php"; ?>

			<div class="clearfix"></div>
		</div><!-- #main -->
	</div><!-- #content -->
<?php }else{ ?>
	<div id="content" class="container">
		<div id="main" class="row-fluid">
			<div align="center">
				<header class="not-found-header">
					<h1>404</h1>
					<h2>Whoops! Terjadi kesalahan...
				</header><!-- .entry-header -->
				<article id="post-0" class="post not-found">
					<div class="entry-content">
						<p>Maaf halaman yang dicari tidak ditemukan,<br /> atau sudah dihapus. Kembali ke <a href="<?php echo $website_url; ?>" title="<?php echo $website_name; ?>" rel="home">halaman utama</a>.</p>
					</div><!-- .entry-content -->
				</article><!-- #post-0 -->
			</div>
			<div class="clearfix"></div>
		</div><!-- #main -->
	</div><!-- #content -->
<?php } ?>


<!-- 
*******************************************************
	Include Footer Template
******************************************************* 
-->
<?php include_once "po-content/$folder/footer.php"; ?>
<?php } ?>