<?
	ob_start();
	session_start();
	include_once("../sistem/database.php");
	include_once("sistem/admin.php");
	 $db     	= new database();
	 $admin		= new user(); 
	  $db->baglanti();
	  $login = $admin->giris();
	 if($login=="fail"){
        header("location: login.php");
    }else{
?>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
	<meta charset="utf-8" />
	<title>TICARETIUMbasic Admin Paneli</title>
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta content="" name="description" />
	<meta content="" name="author" />
	<link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
	<link href="assets/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" />
	<link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
	<link href="css/style.css" rel="stylesheet" />
	<link href="css/style_responsive.css" rel="stylesheet" />
	<link href="css/style_default.css" rel="stylesheet" id="style_color" />

	<link href="assets/fancybox/source/jquery.fancybox.css" rel="stylesheet" />
	<link rel="stylesheet" type="text/css" href="assets/uniform/css/uniform.default.css" />
	<link href="assets/fullcalendar/fullcalendar/bootstrap-fullcalendar.css" rel="stylesheet" />
	<link href="assets/jqvmap/jqvmap/jqvmap.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="fixed-top">
	<!-- BEGIN HEADER -->
	<div id="header" class="navbar navbar-inverse navbar-fixed-top">
		<!-- BEGIN TOP NAVIGATION BAR -->
		<div class="navbar-inner">
			<div class="container-fluid">
				<!-- BEGIN LOGO -->
				<a class="brand" href="index.php">
				    <img src="img/logo.png" alt="Admin Lab" />
				</a>
				<!-- END LOGO -->
				<!-- BEGIN RESPONSIVE MENU TOGGLER -->
				<a class="btn btn-navbar collapsed" id="main_menu_trigger" data-toggle="collapse" data-target=".nav-collapse">
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="arrow"></span>
				</a>
				<!-- END RESPONSIVE MENU TOGGLER --><!-- END  NOTIFICATION -->
                <div class="top-nav ">
                    <ul class="nav pull-right top-menu" >
                        <!-- BEGIN SUPPORT --><!-- END SUPPORT -->
						<!-- BEGIN USER LOGIN DROPDOWN -->
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            	<img src="img/yvzshn.jpg" alt="">
                                <span class="username"><?=$admin->admininfo($_SESSION['a_adminus']);?></span>
							<b class="caret"></b>
							</a>
							<ul class="dropdown-menu">
								
								<li><a href="logout.php"><i class="icon-key"></i> Çıkış Yap</a></li>
							</ul>
						</li>
						<!-- END USER LOGIN DROPDOWN -->
					</ul>
					<!-- END TOP NAVIGATION MENU -->
				</div>
			</div>
		</div>
		<!-- END TOP NAVIGATION BAR -->
	</div>
	<!-- END HEADER -->
	<!-- BEGIN CONTAINER -->
	<div id="container" class="row-fluid">
		<!-- BEGIN SIDEBAR -->
		<div id="sidebar" class="nav-collapse collapse">
			<!-- BEGIN SIDEBAR TOGGLER BUTTON -->
			<div class="sidebar-toggler hidden-phone"></div>
			<!-- BEGIN SIDEBAR MENU -->
			<ul class="sidebar-menu">
             	<li class="active"><a class="" href="index.php"><span class="icon-box"><i class="icon-dashboard"></i></span> Anasayfa</a></li>
                 <li><a class="" href="ayarlar.php"><span class="icon-box"><i class="icon-wrench"></i></span> Ayarlar</a></li>
                 <li><a class="" href="odeme.php"><span class="icon-box"><i class="icon-money"></i></span> Ödemeler</a></li>
				<li class="has-sub">
					<a href="javascript:;" class="">
					    <span class="icon-box"> <i class="icon-bookmark"></i></span> Sayfalar
                        <span class="arrow"></span>
                    </a>
                    <ul class="sub">
                        
                        <li><a class="" href="sayfa.php?p=tum">Tüm Sayfalar</a></li>

                    </ul>
				</li>
				
                <li><a class="" href="uyeler.php"><span class="icon-box"><i class="icon-group"></i></span> Üyeler</a></li>
			</ul>
			<!-- END SIDEBAR MENU -->
		</div>
		<!-- END SIDEBAR -->
		<!-- BEGIN PAGE -->
		<div id="main-content">
			<!-- BEGIN PAGE CONTAINER-->
			<div class="container-fluid">
				<!-- BEGIN PAGE HEADER-->
				<div class="row-fluid">
					<div class="span12">
						<!-- BEGIN PAGE TITLE & BREADCRUMB-->
						<ul class="breadcrumb">
							<li>
                                <a href="#"><i class="icon-home"></i></a><span class="divider">&nbsp;</span>
							</li>
                            <li>
                                <a href="index.php">TICARETIUMbasic</a> <span class="divider">&nbsp;</span>
                            </li>
							<li><a href="#">Görevlerim</a><span class="divider-last">&nbsp;</span></li>
						</ul>
						<!-- END PAGE TITLE & BREADCRUMB-->
					</div>
				</div>
				<!-- END PAGE HEADER-->
				<!-- BEGIN PAGE CONTENT-->
				<div id="page" class="dashboard">
                    <!-- BEGIN OVERVIEW STATISTIC BLOCKS--><!-- END OVERVIEW STATISTIC BLOCKS--><!-- BEGIN SQUARE STATISTIC BLOCKS-->
                    <div class="square-state"></div>
                    <!-- END SQUARE STATISTIC BLOCKS-->
                    <div class="row-fluid">
                      <div class="span12">
                        <!-- BEGIN NOTIFICATIONS PORTLET-->
                        <div class="widget">
                          <div class="widget-title">
                            <h4><i class="icon-bell"></i> Günlük Görevlerim</h4>
                            <span class="tools">
                            <a href="javascript:;" class="icon-chevron-down"></a>
                            </span>
                          </div>
                          <div class="widget-body">
                            <ul class="item-list scroller padding" data-height="200" data-always-visible="1">
                              <li> <span class="label label-important"><i class="icon-bolt"></i></span> <span>Kredi Kartı Ödemelerini Kontrol Et.</span></li>
                               <li> <span class="label label-important"><i class="icon-bolt"></i></span> <span>Havale/EFT Ödemelerini Kontrol Et.</span></li>
                               <li> <span class="label label-important"><i class="icon-bolt"></i></span> <span>Mobil Ödemeleri Kontrol Et.</span></li>
                               <li> <span class="label label-important"><i class="icon-bolt"></i></span> <span>Paypal Ödemelerini Kontrol Et.</span></li>
                              <li> <span class="label label-success"><i class="icon-bell"></i></span> <span>Yeni Üye Profillerini Kontrol Et.</span></li>
                              <li> <span class="label label-important"><i class="icon-bolt"></i></span> <span>Hata Kodlarını Kontrol Et.</span></li>
                              <li> <span class="label label-important"><i class="icon-bolt"></i></span> <span>Site Buglarını Kontrol Et.</span></li>
                              <li> <span class="label label-warning"><i class="icon-bullhorn"></i></span> <span>Profilleri Kontrol Ettir.</span></li>
                              <li> <span class="label label-warning"><i class="icon-bullhorn"></i></span> <span>Mesajları Kontrol Ettir.</span></li>
                              <li> <span class="label label-warning"><i class="icon-bullhorn"></i></span> <span>Mesajlara Cevap Yazdır.</span></li>
                            </ul>
                            <div class="space5"></div>
                            <div class="clearfix no-top-space no-bottom-space"></div>
                          </div>
                        </div>
                        <!-- END NOTIFICATIONS PORTLET-->
                      </div>
                  </div>
                    <div class="row-fluid">
                      <div class="span12">
                        <!-- BEGIN NOTIFICATIONS PORTLET-->
                        <div class="widget">
                          <div class="widget-title">
                            <h4><i class="icon-bell"></i> Reklam Görevlerim</h4>
                            <span class="tools"> <a href="javascript:;" class="icon-chevron-down"></a> </span> </div>
                          <div class="widget-body">
                            <ul class="item-list scroller padding" data-height="240" data-always-visible="1">
                              <li> <span class="label label-important"><i class="icon-bolt"></i></span> <span>Reklam Bütçelerini Kontrol Et</span></li>
                              <li> <span class="label label-important"><i class="icon-bolt"></i></span> <span>Reklam Kliklerini Kontrol Et</span></li>
                              <li> <span class="label label-important"><i class="icon-bolt"></i></span> <span>Reklam Dönüşümlerini Kontrol Et.</span></li>
                              <li> <span class="label label-important"><i class="icon-bolt"></i></span> <span>Tanıtım Mailleri Gönder.</span></li>
                              <li> <span class="label label-important"><i class="icon-bolt"></i></span> <span>Mail Dönüşümlerini Kontrol Et.</span></li>
                              <li> <span class="label label-important"><i class="icon-bolt"></i></span> <span>Yeni Reklam Alanları Bul.</span></li>
                              <li> <span class="label label-warning"><i class="icon-bullhorn"></i></span> <span>Raporlama Yap.</span></li>
                            </ul>
                            <div class="space5"></div>
                            <div class="clearfix no-top-space no-bottom-space"></div>
                          </div>
                        </div>
                        <!-- END NOTIFICATIONS PORTLET-->
                      </div>
                    </div>
				</div>
				<!-- END PAGE CONTENT-->
			</div>
			<!-- END PAGE CONTAINER-->
		</div>
		<!-- END PAGE -->
	</div>
	<!-- END CONTAINER -->
	<!-- BEGIN FOOTER -->
	<div id="footer">
		2013 &copy; TICARETIUMbasic Admin Paneli
		<div class="span pull-right">
			<span class="go-top"><i class="icon-arrow-up"></i></span>
		</div>
	</div>
	<!-- END FOOTER -->
	<!-- BEGIN JAVASCRIPTS -->
	<!-- Load javascripts at bottom, this will reduce page load time -->
	<script src="js/jquery-1.8.3.min.js"></script>
	<script src="assets/jquery-slimscroll/jquery-ui-1.9.2.custom.min.js"></script>
	<script src="assets/jquery-slimscroll/jquery.slimscroll.min.js"></script>
	<script src="assets/fullcalendar/fullcalendar/fullcalendar.min.js"></script>
	<script src="assets/bootstrap/js/bootstrap.min.js"></script>
	<script src="js/jquery.blockui.js"></script>
	<script src="js/jquery.cookie.js"></script>
	<!-- ie8 fixes -->
	<!--[if lt IE 9]>
	<script src="js/excanvas.js"></script>
	<script src="js/respond.js"></script>
	<![endif]-->
	<script src="assets/jqvmap/jqvmap/jquery.vmap.js" type="text/javascript"></script>
	<script src="assets/jqvmap/jqvmap/maps/jquery.vmap.russia.js" type="text/javascript"></script>
	<script src="assets/jqvmap/jqvmap/maps/jquery.vmap.world.js" type="text/javascript"></script>
	<script src="assets/jqvmap/jqvmap/maps/jquery.vmap.europe.js" type="text/javascript"></script>
	<script src="assets/jqvmap/jqvmap/maps/jquery.vmap.germany.js" type="text/javascript"></script>
	<script src="assets/jqvmap/jqvmap/maps/jquery.vmap.usa.js" type="text/javascript"></script>
	<script src="assets/jqvmap/jqvmap/data/jquery.vmap.sampledata.js" type="text/javascript"></script>
	<script src="assets/jquery-knob/js/jquery.knob.js"></script>

	<script src="js/jquery.peity.min.js"></script>
	<script type="text/javascript" src="assets/uniform/jquery.uniform.min.js"></script>
	<script src="js/scripts.js"></script>
	<script>
		jQuery(document).ready(function() {
			// initiate layout and plugins
			App.setMainPage(true);
			App.init();
		});
	</script>
	<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>
<?
	}
?>