<?php

define("GUVENLIK", true);
session_start();
ob_start();
require_once "../system/baglan.php";
require_once "../system/fonk.php";
require_once "../language/admin_dil.php";
require_once "../system/panel_seo.php";
$oturumkontrol = $db->prepare("SELECT * FROM yonetici WHERE kadi = ? AND sifre = ?");
$oturumkontrol->execute([$_SESSION["yonetici_kullanici"], $_SESSION["yonetici_sifre"]]);
if ($oturumkontrol->rowCount()) {
    $Oturum = $oturumkontrol->fetch(PDO::FETCH_ASSOC);
} else {
    header("Location:index.php");
}
$transfer_formu_sayisi = $db->query("SELECT * FROM transfer_formu")->rowCount();
$arac_rezervasyonlari_sayisi = $db->query("SELECT * FROM rezervasyon")->rowCount();
$EbultenSayisi = $db->query("SELECT * FROM ebulten")->rowCount();
$MesajSayisi = $db->query("SELECT * FROM iletisim")->rowCount();
$url = "//" . $_SERVER["HTTP_HOST"] . dirname($_SERVER["PHP_SELF"]);
if (isset($_GET["dil"]) && is_numeric($_GET["dil"])) {
    $_SESSION["admin_dil"] = $_GET["dil"];
}
if (!isset($_SESSION["admin_dil"])) {
    $mevcutDil = $db->query("SELECT * FROM diller WHERE anadil = 1")->fetch(PDO::FETCH_ASSOC);
    $_SESSION["admin_dil"] = $mevcutDil["id"];
} else {
    $mevcutDil = $db->query("SELECT * FROM diller WHERE id = " . $_SESSION["admin_dil"]);
    $mevcutDil = $mevcutDil->fetch(PDO::FETCH_ASSOC);
    $_SESSION["admin_dil"] = $mevcutDil["id"];
}
echo "<!DOCTYPE html>\r\n<html>\r\n    <head>\r\n        <meta charset=\"utf-8\">\r\n\t\t<base href=\"";
echo $url;
echo "/\">\r\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n        <meta name=\"author\" content=\"Coderthemes\">\r\n\r\n        <link rel=\"shortcut icon\" href=\"assets/images/favicon_1.ico\">\r\n\r\n        <title>\r\n\t\t\t";
echo $title;
echo "\t\t</title>\r\n\t\t<meta name=\"description\" content=\"";
echo $description;
echo "\" />\r\n\t\t<meta name=\"keywords\" content=\"";
echo $keywords;
echo "\" />\r\n\t\t<!--Footable-->\r\n\t\t<link href=\"assets/plugins/footable/css/footable.core.css\" rel=\"stylesheet\">\r\n\t\t<link href=\"assets/plugins/bootstrap-select/dist/css/bootstrap-select.min.css\" rel=\"stylesheet\" />\r\n\t\t\r\n\t\t<!--calendar css-->\r\n        <link href=\"assets/plugins/fullcalendar/dist/fullcalendar.css\" rel=\"stylesheet\" />\r\n        <!--Morris Chart CSS -->\r\n\t\t<link rel=\"stylesheet\" href=\"assets/plugins/morris/morris.css\">\r\n\t\t<link href=\"assets/plugins/mjolnic-bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css\" rel=\"stylesheet\">\r\n\t\t<!--venobox lightbox-->\r\n        <link rel=\"stylesheet\" href=\"assets/plugins/magnific-popup/dist/magnific-popup.css\"/>\r\n\r\n        <link href=\"assets/css/bootstrap.min.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/css/core.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/css/components.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/css/icons.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/css/pages.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/css/responsive.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n\t\t\r\n\t\t<!-- Plugins css-->\r\n        <link href=\"assets/plugins/bootstrap-tagsinput/dist/bootstrap-tagsinput.css\" rel=\"stylesheet\" />\r\n        <link href=\"assets/plugins/switchery/dist/switchery.min.css\" rel=\"stylesheet\" />\r\n        <link href=\"assets/plugins/multiselect/css/multi-select.css\"  rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/plugins/select2/select2.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/plugins/bootstrap-select/dist/css/bootstrap-select.min.css\" rel=\"stylesheet\" />\r\n        <link href=\"assets/plugins/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.css\" rel=\"stylesheet\" />\r\n\t\t\r\n\t\t\r\n\r\n        <!-- HTML5 Shiv and Respond.js IE8 support of HTML5 elements and media queries -->\r\n        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->\r\n        <!--[if lt IE 9]>\r\n        <script src=\"https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js\"></script>\r\n        <script src=\"https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js\"></script>\r\n        <![endif]-->\r\n\r\n        <script src=\"assets/js/modernizr.min.js\"></script>\r\n\t\t<script src=\"assets/js/jquery.min.js\"></script>\r\n\r\n\r\n    </head>\r\n\r\n\r\n    <body>\r\n\r\n        <!-- Begin page -->\r\n        <div id=\"wrapper\">\r\n        <div class=\"dashboard-wrapper\">\r\n\r\n            <!-- Top Bar Start -->\r\n            <div class=\"topbar\">\r\n\r\n                <!-- LOGO -->\r\n                <div class=\"topbar-left\">\r\n                    <div class=\"text-center\">\r\n                        <a href=\"index.html\" class=\"logo\"><i class=\"icon-magnet icon-c-logo\"></i><span>YÖNETİM PANELİ</span></a>\r\n                    </div>\r\n                </div>\r\n\r\n                <!-- Button mobile view to collapse sidebar menu -->\r\n                <div class=\"navbar navbar-default\" role=\"navigation\">\r\n                    <div class=\"container\">\r\n                        <div class=\"\">\r\n                            <div class=\"pull-left\">\r\n                                <button class=\"button-menu-mobile open-left\">\r\n                                    <i class=\"ion-navicon\"></i>\r\n                                </button>\r\n                                <span class=\"clearfix\"></span>\r\n                            </div>\r\n\r\n\t\t\t\t\t\t\t<style>\r\n\t\t\t\t\t\t\t.nav>li{\r\n\t\t\t\t\t\t\t\t    float: left;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t</style>\r\n                            <ul class=\"nav navbar-nav navbar-right pull-right\">\r\n\t\t\t\t\t\t\t\t<li>\r\n                                    <a target=\"_blank\" href=\"../index.html\" class=\"waves-effect waves-light hidden-xs\"><i class=\"fa fa-eye\"></i> Site Önizleme</a>\r\n                                    <a target=\"_blank\" href=\"../index.html\" class=\"waves-effect waves-light hidden-md hidden-lg hidden-sm\"><i class=\"fa fa-eye\"></i></a>\r\n                                </li>\r\n\t\t\t\t\t\t\t\t";
$Bsorgu = $db->prepare("SELECT COUNT(*) FROM bildirimler");
$Bsorgu->execute();
$YeniBildirim = $Bsorgu->fetchColumn();
echo "                                <li class=\"dropdown hidden-xs\">\r\n                                    <a href=\"#\" data-target=\"#\" class=\"dropdown-toggle waves-effect waves-light\" data-toggle=\"dropdown\" aria-expanded=\"true\">\r\n                                        <i class=\"icon-bell\"></i> <span class=\"badge badge-xs badge-danger\">";
echo $YeniBildirim;
echo "</span>\r\n                                    </a>\r\n                                    <ul class=\"dropdown-menu dropdown-menu-lg\">\r\n                                        <li class=\"notifi-title\"><span class=\"label label-default pull-right\">YENİ ";
echo $YeniBildirim;
echo "</span>BİLDİRİMLER</li>\r\n                                        <li class=\"list-group nicescroll notification-list\">\r\n\t\t\t\t\t\t\t\t\t\t\t";
$Sorgu = $db->prepare("SELECT * FROM bildirimler ORDER BY id DESC");
$Sorgu->execute();
$islem = $Sorgu->fetchALL(PDO::FETCH_ASSOC);
echo "\t\t\t\t\t\t\t\t\t\t\t";
foreach ($islem as $Sonuc) {
    echo "                                           <!-- list item-->\r\n\t\t\t\t\t\t\t\t\t\t   <a href=\"javascript:void(0);\" class=\"list-group-item\">\r\n                                              <div class=\"media\">\r\n                                                 <div class=\"pull-left p-r-10\">\r\n                                                    <em class=\"";
    echo $Sonuc["icon"];
    echo " fa-2x text-custom\"></em>\r\n                                                 </div>\r\n                                                 <div class=\"media-body\">\r\n                                                    <h5 class=\"media-heading\">";
    echo $Sonuc["baslik"];
    echo " <small style=\"color:#337AB7;\">";
    echo $Sonuc["tarih"];
    echo "</small></h5>\r\n                                                    <p class=\"m-0\">\r\n                                                        <small>";
    echo $Sonuc["bildirim"];
    echo "</small>\r\n                                                    </p>\r\n                                                 </div>\r\n                                              </div>\r\n                                           </a>\r\n\t\t\t\t\t\t\t\t\t\t\t";
}
echo "                                        </li>\r\n                                        <li>\r\n                                            <a href=\"bildirimler.html\" class=\"list-group-item text-right\">\r\n                                                <small class=\"font-600\">Tüm bildirimleri gör</small>\r\n                                            </a>\r\n                                        </li>\r\n                                    </ul>\r\n                                </li>\r\n                                <li class=\"hidden-xs\">\r\n                                    <a href=\"#\" id=\"btn-fullscreen\" class=\"waves-effect waves-light\"><i class=\"icon-size-fullscreen\"></i></a>\r\n                                </li>\r\n                                <li class=\"dropdown\">\r\n                                    <a href=\"\" class=\"dropdown-toggle profile\" data-toggle=\"dropdown\" aria-expanded=\"true\">\r\n\t\t\t\t\t\t\t\t\t";
if ($Oturum["avatar"]) {
    echo "\t\t\t\t\t\t\t\t\t\t<img src=\"assets/images/users/";
    echo $Oturum["avatar"];
    echo "\" alt=\"user-img\" class=\"img-circle\">\r\n\t\t\t\t\t\t\t\t\t";
} else {
    echo "\t\t\t\t\t\t\t\t\t\t<img src=\"assets/images/users/avatar.jpg\" alt=\"user-img\" class=\"img-circle\">\r\n\t\t\t\t\t\t\t\t\t";
}
echo "\t\t\t\t\t\t\t\t\t</a>\r\n                                    <ul class=\"dropdown-menu\">\r\n                                        <li><a href=\"profil.html\"><i class=\"ti-user m-r-5\"></i> Profil </a></li>\r\n                                        <li><a href=\"site-ayar.html\"><i class=\"ti-settings m-r-5\"></i> Site Ayarları</a></li>\r\n                                        <li><a href=\"javascript:;\" onclick=\"\$.Notification.confirm('success','top right', 'Oturum Kapatılsınmı ?','../system/panel_islemler.php?cikis=ok')\"><i class=\"ti-power-off m-r-5\"></i> Oturumu Kapat</a></li>\r\n                                    </ul>\r\n                                </li>\r\n                            </ul>\r\n                        </div>\r\n                        <!--/.nav-collapse -->\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <!-- Top Bar End -->\r\n\r\n\r\n            <!-- ========== Left Sidebar Start ========== -->\r\n\r\n            <div class=\"left side-menu\">\r\n                <div class=\"sidebar-inner\">\r\n                    <!--- Divider -->\r\n                    <div id=\"sidebar-menu\">\r\n                        <ul>\r\n\r\n                        \t<li class=\"text-muted menu-title\">Menüler</li>\r\n\r\n                            <li>\r\n                                <a href=\"index.html\" class=\"waves-effect ";
echo $anasayfa;
echo "\"><i class=\"ti-home\"></i> <span> ";
echo $admindil["txt1"];
echo " </span> </a>\r\n                            </li>\r\n\r\n                            <li class=\"has_sub\">\r\n                                <a href=\"javascript:void(0)\" class=\"waves-effect ";
echo $sayfaekle;
echo " ";
echo $sayfalistele;
echo "\"><i class=\"ti-pencil-alt\"></i> <span> ";
echo $admindil["txt2"];
echo " </span> <span class=\"menu-arrow\"></span></a>\r\n                                <ul class=\"list-unstyled\">                                    \r\n                                    <li class=\"";
echo $sayfalistele;
echo "\"><a href=\"sayfa-listele.html\">";
echo $admindil["txt3"];
echo "</a></li>\r\n\t\t\t\t\t\t\t\t\t<li class=\"";
echo $sayfaekle;
echo "\"><a href=\"sayfa-ekle.html\">";
echo $admindil["txt4"];
echo "</a></li>\r\n                                </ul>\r\n                            </li>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<li class=\"has_sub\">\r\n                                <a href=\"javascript:void(0)\" class=\"waves-effect ";
echo $lokasyonekle;
echo " ";
echo $lokasyonlistele;
echo "\"><i class=\"ti-direction-alt\"></i> <span> ";
echo $admindil["txt5"];
echo " </span> <span class=\"menu-arrow\"></span></a>\r\n                                <ul class=\"list-unstyled\">                                    \r\n                                    <li class=\"";
echo $lokasyonlistele;
echo "\"><a href=\"lokasyon-listele.html\">";
echo $admindil["txt6"];
echo "</a></li>\r\n\t\t\t\t\t\t\t\t\t<li class=\"";
echo $lokasyonekle;
echo "\"><a href=\"lokasyon-ekle.html\">";
echo $admindil["txt7"];
echo "</a></li>\r\n                                </ul>\r\n                            </li>\t\r\n\r\n\t\t\t\t\t\t\t<li class=\"has_sub\">\r\n                                <a href=\"javascript:void(0)\" class=\"waves-effect ";
echo $ekstraekle;
echo " ";
echo $ekstralistesi;
echo "\"><i class=\"ti-layers\"></i> <span> ";
echo $admindil["txt8"];
echo " </span> <span class=\"menu-arrow\"></span></a>\r\n                                <ul class=\"list-unstyled\">                                    \r\n                                    <li class=\"";
echo $ekstralistesi;
echo "\"><a href=\"ekstra-listele.html\">";
echo $admindil["txt9"];
echo "</a></li>\r\n\t\t\t\t\t\t\t\t\t<li class=\"";
echo $ekstraekle;
echo "\"><a href=\"ekstra-ekle.html\">";
echo $admindil["txt10"];
echo "</a></li>\r\n                                </ul>\r\n                            </li>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<li class=\"has_sub\">\r\n                                <a href=\"javascript:void(0)\" class=\"waves-effect ";
echo $rehberekle;
echo " ";
echo $rehberlistele;
echo " ";
echo $topluemail;
echo " ";
echo $toplusms;
echo "\"><i class=\"ti-save\"></i> <span> ";
echo $admindil["txt58"];
echo " </span> <span class=\"menu-arrow\"></span></a>\r\n                                <ul class=\"list-unstyled\">                                    \r\n                                    <li class=\"";
echo $rehberlistele;
echo "\"><a href=\"rehber-listele.html\">";
echo $admindil["txt59"];
echo "</a></li>\r\n\t\t\t\t\t\t\t\t\t<li class=\"";
echo $rehberekle;
echo "\"><a href=\"rehber-ekle.html\">";
echo $admindil["txt60"];
echo "</a></li>\r\n\t\t\t\t\t\t\t\t\t<li class=\"";
echo $topluemail;
echo "\"><a href=\"toplu-email.html\">";
echo $admindil["txt61"];
echo "</a></li>\r\n\t\t\t\t\t\t\t\t\t<li class=\"";
echo $toplusms;
echo "\"><a href=\"toplu-sms.html\">";
echo $admindil["txt62"];
echo "</a></li>\r\n                                </ul>\r\n                            </li>\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<li>\r\n                                <a href=\"transfer-formu.html\" class=\"waves-effect ";
echo $transferformu;
echo "\"><i class=\"ti-receipt\"></i> <span class=\"label label-primary pull-right\">";
echo $transfer_formu_sayisi;
echo "</span> <span> ";
echo $admindil["txt18"];
echo " </span> </a>\r\n                            </li>\r\n\t\t\t\t\t\t\t<li>\r\n                                <a href=\"arac-rezervasyonlari.html\" class=\"waves-effect ";
echo $aracrezervasyonlari;
echo "\"><i class=\"ti-receipt\"></i> <span class=\"label label-primary pull-right\">";
echo $arac_rezervasyonlari_sayisi;
echo "</span> <span> ";
echo $admindil["txt11"];
echo " </span> </a>\r\n                            </li>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<li class=\"has_sub\">\t\t\t\t\t\t\t\t\r\n                                <a href=\"javascript:void(0)\" class=\"waves-effect ";
echo $aracekle;
echo " ";
echo $araclar;
echo " ";
echo $kategoriler;
echo "\"><i class=\"ti-car\"></i> <span> ";
echo $admindil["txt19"];
echo " </span> <span class=\"menu-arrow\"></span> </a>\r\n                                <ul class=\"list-unstyled\">\r\n\t\t\t\t\t\t\t\t\t<li class=\"";
echo $kategoriler;
echo "\"><a href=\"kategoriler.html\">";
echo $admindil["txt20"];
echo "</a></li>\r\n                                    <li class=\"";
echo $araclar;
echo "\"><a href=\"araclar.html\">";
echo $admindil["txt21"];
echo "</a></li>\r\n                                    <li class=\"";
echo $aracekle;
echo "\"><a href=\"arac-ekle.html\">";
echo $admindil["txt22"];
echo "</a></li>\r\n                                </ul>\r\n                            </li>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<li class=\"has_sub\">\t\t\t\t\t\t\t\t\r\n                                <a href=\"javascript:void(0)\" class=\"waves-effect ";
echo $transferekle;
echo " ";
echo $transferler;
echo "\"><i class=\"ti-map-alt\"></i> <span> ";
echo $admindil["txt23"];
echo " </span> <span class=\"menu-arrow\"></span> </a>\r\n                                <ul class=\"list-unstyled\">\r\n                                    <li class=\"";
echo $transferler;
echo "\"><a href=\"transferler.html\">";
echo $admindil["txt24"];
echo "</a></li>\r\n                                    <li class=\"";
echo $transferekle;
echo "\"><a href=\"transfer-ekle.html\">";
echo $admindil["txt25"];
echo "</a></li>\r\n                                </ul>\r\n                            </li>\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t<li class=\"has_sub\">\r\n                                <a href=\"javascript:void(0)\" class=\"waves-effect ";
echo $haberekle;
echo " ";
echo $haberlistele;
echo "\"><i class=\"ti-announcement\"></i> <span> ";
echo $admindil["txt26"];
echo " </span> <span class=\"menu-arrow\"></span></a>\r\n                                <ul class=\"list-unstyled\">                                    \r\n                                    <li class=\"";
echo $haberlistele;
echo "\"><a href=\"haber-listele.html\">";
echo $admindil["txt27"];
echo "</a></li>\r\n\t\t\t\t\t\t\t\t\t<li class=\"";
echo $haberekle;
echo "\"><a href=\"haber-ekle.html\">";
echo $admindil["txt28"];
echo "</a></li>\r\n\t\t\t\t\t\t\t\t</ul>\r\n                            </li>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<li class=\"has_sub\">\r\n                                <a href=\"javascript:void(0)\" class=\"waves-effect ";
echo $sliderekle;
echo " ";
echo $sliderlistele;
echo "\"><i class=\"fa fa-picture-o\"></i> <span> ";
echo $admindil["txt37"];
echo " </span> <span class=\"menu-arrow\"></span></a>\r\n                                <ul class=\"list-unstyled\">\r\n                                    <li class=\"";
echo $sliderekle;
echo "\"><a href=\"slider-ekle.html\">";
echo $admindil["txt38"];
echo "</a></li>\r\n                                    <li class=\"";
echo $sliderlistele;
echo "\"><a href=\"slider-listele.html\">";
echo $admindil["txt39"];
echo "</a></li>\r\n                                </ul>\r\n                            </li>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<li class=\"has_sub\">\r\n                                <a href=\"javascript:void(0)\" class=\"waves-effect ";
echo $dilekle;
echo " ";
echo $dillistele;
echo "\"><i class=\"ti-direction\"></i> <span> ";
echo $admindil["txt40"];
echo " </span> <span class=\"menu-arrow\"></span></a>\r\n                                <ul class=\"list-unstyled\">\r\n                                    <li class=\"";
echo $dilekle;
echo "\"><a href=\"dil-ekle.html\">";
echo $admindil["txt41"];
echo "</a></li>\r\n                                    <li class=\"";
echo $dillistele;
echo "\"><a href=\"dil-listele.html\">";
echo $admindil["txt42"];
echo "</a></li>\r\n                                </ul>\r\n                            </li>\r\n\t\t\t\t\t\t\t<li>\r\n                                <a href=\"mesajlar.html\" class=\"waves-effect ";
echo $mesajaktif;
echo "\"><i class=\"fa fa-envelope-o\"></i> <span class=\"label label-primary pull-right\">";
echo $MesajSayisi;
echo "</span> <span> ";
echo $admindil["txt45"];
echo " </span> </a>\r\n                            </li>\t\r\n\t\t\t\t\t\t\t<li>\r\n                                <a href=\"ebulten.html\" class=\"waves-effect ";
echo $ebulten;
echo "\"><i class=\"fa fa-envelope-o\"></i> <span class=\"label label-primary pull-right\">";
echo $EbultenSayisi;
echo "</span> <span> ";
echo $admindil["txt46"];
echo " </span> </a>\r\n                            </li>\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t<li class=\"text-muted menu-title\">";
echo $admindil["txt47"];
echo "</li>\r\n\r\n\t\t\t\t\t\t\t<li class=\"has_sub\">\r\n                                <a href=\"javascript:void(0)\" class=\"waves-effect ";
echo $menuayaraktif;
echo " ";
echo $modulayar;
echo " ";
echo $siteayaraktif;
echo " ";
echo $mailayaraktif;
echo " ";
echo $yoneticiekle;
echo " ";
echo $yoneticilistele;
echo " ";
echo $smsayaraktif;
echo " ";
echo $renkayaraktif;
echo "  ";
echo $limitayaraktif;
echo " ";
echo $footermenuayaraktif;
echo "\"><i class=\"ti-settings\"></i> <span> ";
echo $admindil["txt48"];
echo " </span> <span class=\"menu-arrow\"></span></a>\r\n                                <ul class=\"list-unstyled\">\r\n\t\t\t\t\t\t\t\t\t<li class=\"";
echo $siteayaraktif;
echo "\"><a href=\"site-ayar.html\">";
echo $admindil["txt49"];
echo "</a></li>\r\n\t\t\t\t\t\t\t\t\t<li class=\"";
echo $menuayaraktif;
echo "\"><a href=\"menu-ayar.html\">";
echo $admindil["txt50"];
echo "</a></li>\r\n\t\t\t\t\t\t\t\t\t<li class=\"";
echo $footermenuayaraktif;
echo "\"><a href=\"footer-menu-ayar.html\">";
echo $admindil["txt64"];
echo "</a></li>\r\n\t\t\t\t\t\t\t\t\t<li class=\"";
echo $limitayaraktif;
echo "\"><a href=\"limit-ayar.html\">";
echo $admindil["txt51"];
echo "</a></li>\r\n\t\t\t\t\t\t\t\t\t<li class=\"";
echo $renkayaraktif;
echo "\"><a href=\"renk-ayar.html\">";
echo $admindil["txt52"];
echo "</a></li>\r\n\t\t\t\t\t\t\t\t\t<li class=\"";
echo $smsayaraktif;
echo "\"><a href=\"sms-ayar.html\">";
echo $admindil["txt63"];
echo "</a></li>\r\n\t\t\t\t\t\t\t\t\t<li class=\"";
echo $modulayar;
echo "\"><a href=\"modul-ayar.html\">";
echo $admindil["txt53"];
echo "</a></li>\r\n\t\t\t\t\t\t\t\t\t<li class=\"";
echo $mailayaraktif;
echo "\"><a href=\"mail-ayar.html\">";
echo $admindil["txt54"];
echo "</a></li>\r\n                                    <li class=\"";
echo $yoneticiekle;
echo "\"><a href=\"yonetici-ekle.html\">";
echo $admindil["txt55"];
echo "</a></li>\r\n                                    <li class=\"";
echo $yoneticilistele;
echo "\"><a href=\"yonetici-listele.html\">";
echo $admindil["txt56"];
echo "</a></li>\r\n                                </ul>\r\n                            </li>\r\n\r\n\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t\t<a class=\"waves-effect\" href=\"javascript:;\" onclick=\"\$.Notification.confirm('success','top right', 'Oturum Kapatılsınmı ?','../system/panel_islemler.php?cikis=ok')\"><i class=\"ti-power-off\"></i> <span> ";
echo $admindil["txt57"];
echo " </span> </a>\r\n                            </li>\r\n\r\n                        </ul>\r\n                        <div class=\"clearfix\"></div>\r\n                    </div>\r\n                    <div class=\"clearfix\"></div>\r\n                </div>\r\n            </div>\r\n            <!-- Left Sidebar End -->\r\n\r\n\r\n\r\n            <!-- ============================================================== -->\r\n            <!-- Start right Content here -->\r\n            <!-- ============================================================== -->\r\n            <div class=\"content-page\">\r\n                <!-- Start content -->\r\n\t\t\t\t";
if ($mevcutDil["anadil"] != 1) {
    echo "                <div class=\"col-sm-12\" style=\"margin-top: 70px;\">\r\n                    <div class=\"alert alert-danger\">\r\n\t\t\t\t\t\t<p>Şuanda <strong>";
    echo $mevcutDil["adi"];
    echo "</strong> dil versiyonundasınız. Yaptığınız tüm işlemler <strong>";
    echo $mevcutDil["adi"];
    echo "</strong> dili için geçerli olacaktır.</p>\r\n                    </div> \r\n                </div>\r\n                ";
}
echo "\t\t\t";
if (isset($_GET["sayfa"])) {
    $s = $_GET["sayfa"];
    switch ($s) {
        case "anasayfa":
            require_once "pages/home.php";
            break;
        case "dil-ekle":
            require_once "pages/dil_ekle.php";
            break;
        case "dil-listele":
            require_once "pages/dil_listele.php";
            break;
        case "sayfa-ekle":
            require_once "pages/sayfa_ekle.php";
            break;
        case "sayfa-listele":
            require_once "pages/sayfa_listele.php";
            break;
        case "ekstra-ekle":
            require_once "pages/ekstra_ekle.php";
            break;
        case "ekstra-listele":
            require_once "pages/ekstra_listele.php";
            break;
        case "rehber-ekle":
            require_once "pages/rehber_ekle.php";
            break;
        case "rehber-listele":
            require_once "pages/rehber_listele.php";
            break;
        case "toplu-email":
            require_once "pages/toplu_email.php";
            break;
        case "toplu-sms":
            require_once "pages/toplu_sms.php";
            break;
        case "lokasyon-ekle":
            require_once "pages/lokasyon_ekle.php";
            break;
        case "lokasyon-listele":
            require_once "pages/lokasyon_listele.php";
            break;
        case "slider-ekle":
            require_once "pages/slider_ekle.php";
            break;
        case "slider-listele":
            require_once "pages/slider_listele.php";
            break;
        case "araclar":
            require_once "pages/araclar.php";
            break;
        case "arac-ekle":
            require_once "pages/arac_ekle.php";
            break;
        case "kategoriler":
            require_once "pages/kategoriler.php";
            break;
        case "transferler":
            require_once "pages/transferler.php";
            break;
        case "transfer-ekle":
            require_once "pages/transfer_ekle.php";
            break;
        case "haber-ekle":
            require_once "pages/haber_ekle.php";
            break;
        case "haber-listele":
            require_once "pages/haber_listele.php";
            break;
        case "yonetici-ekle":
            require_once "pages/yonetici_ekle.php";
            break;
        case "yonetici-listele":
            require_once "pages/yonetici_listele.php";
            break;
        case "not-defteri":
            require_once "pages/not_defteri.php";
            break;
        case "site-ayar":
            require_once "pages/site_ayar.php";
            break;
        case "footer-menu-ayar":
            require_once "pages/footer_menu_ayar.php";
            break;
        case "limit-ayar":
            require_once "pages/limit_ayar.php";
            break;
        case "mail-ayar":
            require_once "pages/mail_ayar.php";
            break;
        case "sms-ayar":
            require_once "pages/sms_ayar.php";
            break;
        case "renk-ayar":
            require_once "pages/renk_ayar.php";
            break;
        case "profil":
            require_once "pages/profil.php";
            break;
        case "mesajlar":
            require_once "pages/mesajlar.php";
            break;
        case "mesaj-oku":
            require_once "pages/mesaj_oku.php";
            break;
        case "menu-ayar":
            require_once "pages/menu_ayar.php";
            break;
        case "bildirimler":
            require_once "pages/bildirimler.php";
            break;
        case "transfer-formu":
            require_once "pages/transfer_formu.php";
            break;
        case "arac-rezervasyonlari":
            require_once "pages/arac_rezervasyonlari.php";
            break;
        case "modul-ayar":
            require_once "pages/modul_ayar.php";
            break;
        case "ebulten":
            require_once "pages/ebulten.php";
            break;
        case "404":
            require_once "pages/404.php";
            break;
        default:
            require_once "pages/home.php";
    }
} else {
    require_once "pages/home.php";
}
echo " \r\n\r\n\r\n            </div>\t\t\r\n\r\n\r\n            <!-- ============================================================== -->\r\n            <!-- End Right content here -->\r\n            <!-- ============================================================== -->\r\n\r\n\r\n        </div>\r\n        </div>\r\n        <!-- END wrapper -->\r\n\r\n\r\n\r\n        <script>\r\n            var resizefunc = [];\r\n        </script>\r\n\t\t\r\n\r\n        <!-- jQuery  -->\r\n        <script src=\"assets/js/bootstrap.min.js\"></script>\r\n        <script src=\"assets/js/detect.js\"></script>\r\n        <script src=\"assets/js/fastclick.js\"></script>\r\n        <script src=\"assets/js/jquery.slimscroll.js\"></script>\r\n        <script src=\"assets/js/jquery.blockUI.js\"></script>\r\n        <script src=\"assets/js/waves.js\"></script>\r\n        <script src=\"assets/js/wow.min.js\"></script>\r\n        <script src=\"assets/js/jquery.nicescroll.js\"></script>\r\n        <script src=\"assets/js/jquery.scrollTo.min.js\"></script>\r\n\t\t\r\n\t\t<!-- Page Specific JS Libraries -->\r\n\r\n        <script src=\"assets/plugins/peity/jquery.peity.min.js\"></script>\r\n\r\n        <!-- jQuery  -->\r\n        <script src=\"assets/plugins/waypoints/lib/jquery.waypoints.js\"></script>\r\n        <script src=\"assets/plugins/counterup/jquery.counterup.min.js\"></script>\r\n\r\n\r\n        <script src=\"assets/plugins/jquery-knob/jquery.knob.js\"></script>\r\n\t\t\r\n\t\t\r\n\t\t<script src=\"assets/plugins/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js\"></script>\r\n\t\t\r\n        <script src=\"assets/plugins/switchery/dist/switchery.min.js\"></script>\r\n        <script type=\"text/javascript\" src=\"assets/plugins/multiselect/js/jquery.multi-select.js\"></script>\r\n        <script type=\"text/javascript\" src=\"assets/plugins/jquery-quicksearch/jquery.quicksearch.js\"></script>\r\n        <script src=\"assets/plugins/select2/select2.min.js\" type=\"text/javascript\"></script>\r\n        <script src=\"assets/plugins/bootstrap-select/dist/js/bootstrap-select.min.js\" type=\"text/javascript\"></script>\r\n        <script src=\"assets/plugins/bootstrap-filestyle/src/bootstrap-filestyle.min.js\" type=\"text/javascript\"></script>\r\n        <script src=\"assets/plugins/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.js\" type=\"text/javascript\"></script>\r\n        <script src=\"assets/plugins/bootstrap-maxlength/bootstrap-maxlength.min.js\" type=\"text/javascript\"></script>\r\n\r\n        <script src=\"assets/js/jquery.core.js\"></script>\r\n        <script src=\"assets/js/jquery.app.js\"></script>\r\n\t\t\r\n\t\t<!--FooTable-->\r\n\t\t<script src=\"assets/plugins/footable/js/footable.all.min.js\"></script>\r\n\t\t<script src=\"assets/plugins/bootstrap-select/dist/js/bootstrap-select.min.js\" type=\"text/javascript\"></script>\r\n\t\t<!--FooTable Example-->\r\n\t\t<script src=\"assets/pages/jquery.footable.js\"></script>\r\n\t\t\r\n\t\t<script src=\"assets/plugins/notifyjs/dist/notify.min.js\"></script>\r\n        <script src=\"assets/plugins/notifications/notify-metro.js\"></script>\r\n\t\t\r\n\t\t<script src=\"assets/plugins/jquery-ui/jquery-ui.min.js\"></script>\r\n\t\t<!-- BEGIN PAGE SCRIPTS -->\r\n        <script src=\"assets/plugins/moment/moment.js\"></script>\r\n        <script src='assets/plugins/fullcalendar/dist/fullcalendar.min.js'></script>\r\n        <script src='assets/plugins/fullcalendar/dist/lang-all.js'></script>\r\n        <script src=\"assets/pages/jquery.fullcalendar.js\"></script>\r\n\t\t\r\n\t\t<script src=\"assets/plugins/bootstrap-inputmask/bootstrap-inputmask.min.js\" type=\"text/javascript\"></script>\r\n\t\t\r\n\t\t<script type=\"text/javascript\" src=\"assets/plugins/isotope/dist/isotope.pkgd.min.js\"></script>\r\n        <script type=\"text/javascript\" src=\"assets/plugins/magnific-popup/dist/jquery.magnific-popup.min.js\"></script>\r\n\t\t\r\n\t\t<script src=\"assets/plugins/bootstrap-inputmask/bootstrap-inputmask.min.js\" type=\"text/javascript\"></script>\r\n        <script src=\"assets/plugins/autoNumeric/autoNumeric.js\" type=\"text/javascript\"></script>\r\n\r\n        <script type=\"text/javascript\">\r\n            jQuery(document).ready(function(\$) {\r\n                \$('.counter').counterUp({\r\n                    delay: 100,\r\n                    time: 1200\r\n                });\r\n\r\n                \$(\".knob\").knob();\r\n\t\t\t\tvar bodyHeight = \$(\"body\").height();\r\n\t\t\t\tvar vwptHeight = \$(window).height();\r\n\t\t\t\tif (vwptHeight > bodyHeight) {\r\n\t\t\t\t\t\$(\"footer\").css(\"position\",\"absolute\").css(\"bottom\",0);\r\n\t\t\t\t}\r\n            });\r\n        </script>\r\n\t\t<!--form validation init-->\r\n        <script src=\"assets/plugins/tinymce/tinymce.min.js\"></script>\r\n\t\t<script type=\"text/javascript\">\r\n            \$(document).ready(function () {\r\n                if(\$(\"#aciklama\").length > 0){\r\n                    tinymce.init({\r\n                        selector: \"textarea#aciklama\",\r\n                        theme: \"modern\",\r\n\t\t\t\t\t\tlanguage: 'tr',\r\n\t\t\t\t\t\tbranding: false,\r\n                        height:300,\r\n\t\t\t\t\t\tfontsize_formats: \"8pt 10pt 12pt 14pt 18pt 24pt 36pt\",\r\n                        plugins: [\r\n                            \"advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker\",\r\n                            \"searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking\",\r\n                            \"save table contextmenu directionality emoticons template paste textcolor\"\r\n                        ],\r\n                        toolbar: \"insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l      ink image | print preview media fullpage | forecolor backcolor fontsizeselect emoticons\",\r\n\t\t\t\t\t\timage_advtab: true,\t\t\t\t\t\t\r\n\t\t\t\t\t\tstyle_formats: [\r\n                            {title: 'Bold text', inline: 'b'},\r\n                            {title: 'Red text', inline: 'span', styles: {color: '#ff0000'}},\r\n                            {title: 'Red header', block: 'h1', styles: {color: '#ff0000'}},\r\n                            {title: 'Example 1', inline: 'span', classes: 'example1'},\r\n                            {title: 'Example 2', inline: 'span', classes: 'example2'},\r\n                            {title: 'Table styles'},\r\n                            {title: 'Table row 1', selector: 'tr', classes: 'tablerow1'}\r\n                        ]\r\n                    });\r\n                }\r\n            });\r\n        </script>\r\n\t\t\r\n\t\t<script type=\"text/javascript\">\r\n            \$(document).ready(function () {\r\n                if(\$(\"#aciklama2\").length > 0){\r\n                    tinymce.init({\r\n                        selector: \"textarea#aciklama2\",\r\n                        theme: \"modern\",\r\n\t\t\t\t\t\tlanguage: 'tr',\r\n\t\t\t\t\t\tbranding: false,\r\n                        height:300,\r\n                        plugins: [\r\n                            \"advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker\",\r\n                            \"searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking\",\r\n                            \"save table contextmenu directionality emoticons template paste textcolor\"\r\n                        ],\r\n                        toolbar: \"insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l      ink image | print preview media fullpage | forecolor backcolor emoticons\",\r\n                        image_advtab: true,\r\n\t\t\t\t\t\tstyle_formats: [\r\n                            {title: 'Bold text', inline: 'b'},\r\n                            {title: 'Red text', inline: 'span', styles: {color: '#ff0000'}},\r\n                            {title: 'Red header', block: 'h1', styles: {color: '#ff0000'}},\r\n                            {title: 'Example 1', inline: 'span', classes: 'example1'},\r\n                            {title: 'Example 2', inline: 'span', classes: 'example2'},\r\n                            {title: 'Table styles'},\r\n                            {title: 'Table row 1', selector: 'tr', classes: 'tablerow1'}\r\n                        ]\r\n                    });\r\n                }\r\n            });\r\n        </script>\r\n\t\t\r\n\r\n        <script type=\"text/javascript\">\r\n            \$(document).ready(function() {\r\n                \$('.image-popup').magnificPopup({\r\n                    type: 'image',\r\n                    closeOnContentClick: true,\r\n                    mainClass: 'mfp-fade',\r\n                    gallery: {\r\n                        enabled: true,\r\n                        navigateByImgClick: true,\r\n                        preload: [0,1] // Will preload 0 - before current, and 1 after the current image\r\n                    }\r\n                });\r\n            });\r\n        </script>\r\n\t\t\r\n\t\t";
if ($_SESSION["giris"] == "yes") {
    echo "\r\n\t\t\t<script>\r\n\t\t\t\$(document).ready(function () {\r\n\t\t\t\t\$.Notification.autoHideNotify('success', 'top right', 'Başarılı!','Giriş yapılmıştır.')\r\n\t\t\t});\r\n\t\t\t</script>";
    unset($_SESSION["giris"]);
}
if ($_SESSION["demohesap"] == "no") {
    echo "\r\n\t\t\t<script>\r\n\t\t\t\$(document).ready(function () {\r\n\t\t\t\t\$.Notification.autoHideNotify('error', 'top right', 'Hata!','Demo hesapta işlem yapamassınız.!')\r\n\t\t\t});\r\n\t\t\t</script>";
    unset($_SESSION["demohesap"]);
}
echo "\t\t\r\n    </body>\r\n</html>\r\n";
ob_end_flush();

?>