<?php include_once 'config.php' ?>
<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8">
	<title>抽奖答题管理后台</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">

	<!-- The styles -->
	<link id="bs-css" href="css/bootstrap-cerulean.min.css" rel="stylesheet">

	<link href="css/charisma-app.css" rel="stylesheet">
	<link href='bower_components/fullcalendar/dist/fullcalendar.css' rel='stylesheet'>
	<link href='bower_components/fullcalendar/dist/fullcalendar.print.css' rel='stylesheet' media='print'>
	<link href='bower_components/chosen/chosen.min.css' rel='stylesheet'>
	<link href='bower_components/colorbox/example3/colorbox.css' rel='stylesheet'>
	<link href='bower_components/responsive-tables/responsive-tables.css' rel='stylesheet'>
	<link href='bower_components/bootstrap-tour/build/css/bootstrap-tour.min.css' rel='stylesheet'>
	<link href='css/jquery.noty.css' rel='stylesheet'>
	<link href='css/noty_theme_default.css' rel='stylesheet'>
	<link href='css/elfinder.min.css' rel='stylesheet'>
	<link href='css/elfinder.theme.css' rel='stylesheet'>
	<link href='css/jquery.iphone.toggle.css' rel='stylesheet'>
	<link href='css/uploadify.css' rel='stylesheet'>
	<link href='css/animate.min.css' rel='stylesheet'>
	<link href="bower_components/layui/css/layui.css" rel="stylesheet">
	<script src="bower_components/layui/layui.js"></script>
	<!-- jQuery -->
	<script src="bower_components/jquery/jquery.min.js"></script>

	<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

	<!-- The fav icon -->
	<link rel="shortcut icon" href="img/favicon.ico">
	<style type="text/css">
		.layui-table-cell {
			display: table-cell;
			vertical-align: middle;
			height: auto;
			overflow: visible;
			text-overflow: inherit;
			white-space: normal;
		}
	</style>
</head>

<body>

	<?php if (!isset($no_visible_elements) || !$no_visible_elements) { ?>
		<!-- topbar starts -->
		<div class="navbar navbar-default" role="navigation">

			<div class="navbar-inner">
				<button type="button" class="navbar-toggle pull-left animated flip">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>

				<!-- user dropdown starts -->
				<div class="btn-group pull-right">
					<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
						<i class="glyphicon glyphicon-user"></i><span class="hidden-sm hidden-xs"> admin</span>
						<span class="caret"></span>
					</button>
					<ul class="dropdown-menu">
						<li><a href="logout.php">注销</a></li>
					</ul>
				</div>
				<!-- user dropdown ends -->
			</div>
		</div>
		<!-- topbar ends -->
	<?php } ?>

	<div class="ch-container">
		<div class="row">
			<?php if (!isset($no_visible_elements) || !$no_visible_elements) { ?>

				<!-- left menu starts -->
				<div class="col-sm-2 col-lg-2">
					<div class="sidebar-nav">
						<div class="nav-canvas">
							<div class="nav-sm nav nav-stacked">

							</div>

							<ul class="nav nav-pills nav-stacked main-menu">
								<li class="nav-header">功能列表</li>

								<li>
									<a class="ajax-link" href="index.php">
										<i class="glyphicon glyphicon-th-list"></i>
										<span>&nbsp&nbsp问卷活动管理</span>
									</a>
								</li>
							</ul>
						</div>
					</div>
				</div>
				<!--/span-->
				<!-- left menu ends -->

				<noscript>
					<div class="alert alert-block col-md-12">
						<h4 class="alert-heading">Warning!</h4>

						<p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a>
							enabled to use this site.</p>
					</div>
				</noscript>

				<div id="content" class="col-lg-10 col-sm-10">
					<!-- content starts -->
				<?php } ?>