<?php
session_start();
if(!$login){
	if(!$_SESSION['authadmin']){
	header('Location:index.php');
	exit;
	}
}
include('../connect.php');
include('class.php');
$website=get_value('site_url');
?>
<!DOCTYPE html>
<html>
<head>
	
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

	<title>UP`N`SELL</title>

	<meta name="viewport" content="width=device-width">

	<!-- Fonts -->
	<link rel="stylesheet" href="<?=$website?>/css/fonts.css">

	<!-- Stylesheet -->
	<link rel="stylesheet" href="<?=$website?>/css/normalize.min.css">
	<link rel="stylesheet" href="<?=$website?>/js/fancybox/jquery.fancybox.css?v=2.1.0" type="text/css" media="screen" />
	<link rel="stylesheet" href="<?=$website?>/css/style.css">
	<link rel="stylesheet" href="<?=$website?>/css/bootstrap.min.css">
	
	<!-- Javascript -->
	<script type="text/javascript" src="<?=$website?>/js/jquery-min.js"></script>
	<script type="text/javascript" src="<?=$website?>/js/dropkick.min.js"></script>
	<script type="text/javascript" src="<?=$website?>/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="<?=$website?>/js/ckeditor_source.js"></script>
	<script type="text/javascript" src="<?=$website?>/js/_source/jquery.js"></script>
	<script type="text/javascript" src="<?=$website?>/js/core.js"></script>
	<script type="text/javascript" src="<?=$website?>/js/fancybox/jquery.fancybox.pack.js?v=2.1.0"></script>
	
</head>
<body>

<!-- Second background -->
<div class="second_background"></div>

<!-- Top container -->
<div id="top_container">
	<div class="wrapper">

		<!-- Top navigation -->
		<ul id="top_navigation">
			<li><a href="<?=$website?>">Home</a></li>

		</ul>
	</div>
</div>

<div id="content_container">
	<div class="wrapper">

		<!-- Header -->
		<div id="header">
			<div class="logo"><a href="<?=$website?>/admin"><img src="../images/logo.png" /></a></div>
			<div class="heading">Administration panel</div>
		</div>
		<?php
			if(!$login){
		?>
		<div class="navbar">
			<div class="navbar-inner">
				<ul class="nav">
					<li <?php if($home){ echo "class=\"active\""; } ?>><a href="home.php">Home</a></li>
					<li <?php if($list){ echo "class=\"active\""; } ?>><a href="list.php">List Products</a></li>
					<li <?php if($members){ echo "class=\"active\""; } ?>><a href="members.php">Members</a></li>
					<li <?php if($settings){ echo "class=\"active\""; } ?>><a href="general.php">Settings</a></li>
				</ul>
			</div>
		</div>
		<?php
		}
		?>