<?php


echo "<div class=\"content\">\r\n\t<div class=\"container\">\r\n\r\n\t\t<!-- Page-Title -->\r\n\t\t<div class=\"row\">\r\n\t\t\t<div class=\"col-sm-12\">\r\n\t\t\t\t<div class=\"btn-group pull-right m-t-15\">\r\n\t\t\t\t\t<button type=\"button\" class=\"btn btn-default dropdown-toggle waves-effect waves-light\" data-toggle=\"dropdown\" aria-expanded=\"false\">Düzenleme Dili <strong>";
echo $mevcutDil["adi"];
echo "</strong></button>\r\n\t\t\t\t\t<div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"btnGroupDrop1\">\r\n\t\t\t\t\t\t";
$DILSorgu = $db->prepare("SELECT * FROM diller ORDER BY sira ASC");
$DILSorgu->execute();
$DILislem = $DILSorgu->fetchALL(PDO::FETCH_ASSOC);
echo "\t\t\t\t\t\t\t";
foreach ($DILislem as $DILSonuc) {
    echo "\t\t\t\t\t\t\t<a class=\"dropdown-item\" href=\"arac-rezervasyonlari.html?dil=";
    echo $DILSonuc["id"];
    echo "\">";
    echo $DILSonuc["adi"];
    echo "</a>\r\n\t\t\t\t\t\t\t";
}
echo "\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<h4 class=\"page-title\">";
echo $admindil["txt11"];
echo "</h4>\r\n\t\t\t\t<ol class=\"breadcrumb\">\r\n\t\t\t\t\t<li>\r\n\t\t\t\t\t\t<a href=\"index.html\">";
echo $admindil["txt1"];
echo "</a>\r\n\t\t\t\t\t</li>\r\n\t\t\t\t\t<li class=\"active\">\r\n\t\t\t\t\t\t";
echo $admindil["txt11"];
echo "\t\t\t\t\t</li>\r\n\t\t\t\t</ol>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t\r\n\t\t<div class=\"row\">\r\n\t\t\t<div class=\"col-sm-12\">\r\n\t\t\t\t<div class=\"card-box\">\r\n\t\t\t\t\t\r\n\t\t\t\t\t<table id=\"demo-foo-filtering\" class=\"table table-striped toggle-circle m-b-0\" data-page-size=\"7\">\r\n\t\t\t\t\t\t<thead>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th data-toggle=\"true\">Sıra</th>\r\n\t\t\t\t\t\t\t\t<th>Adı Soyadı</th>\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t<th>Telefon</th>\r\n\t\t\t\t\t\t\t\t<th>Kiralanan Araç</th>\r\n\t\t\t\t\t\t\t\t<th>Tarih</th>\r\n\t\t\t\t\t\t\t\t<th style=\"width:150px\">İşlem</th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t<div class=\"form-inline m-b-20\">\r\n\t\t\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t\t\t<div class=\"col-sm-6 text-xs-center\">\r\n\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t<div class=\"col-sm-6 text-xs-center text-right\">\r\n\t\t\t\t\t\t\t\t\t<div class=\"form-group\">\r\n\t\t\t\t\t\t\t\t\t\t<input id=\"demo-foo-search\" type=\"text\" placeholder=\"Arama\" class=\"form-control input-sm\" autocomplete=\"on\">\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<tbody>\r\n\t\t\t\t\t\t";
$Sorgu = $db->prepare("SELECT * FROM rezervasyon ORDER BY id DESC");
$Sorgu->execute();
$Say = 1;
$islem = $Sorgu->fetchALL(PDO::FETCH_ASSOC);
echo "\t\t\t\t\t\t";
foreach ($islem as $Sonuc) {
    echo "\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td>";
    echo $Say++;
    echo "</td>\r\n\t\t\t\t\t\t\t\t<td>";
    echo $Sonuc["Adi"];
    echo " ";
    echo $Sonuc["Soyadi"];
    echo "</td>\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t<td>";
    echo $Sonuc["Gsm"];
    echo "</td>\r\n\t\t\t\t\t\t\t\t<td>";
    echo $Sonuc["aracadi"];
    echo "</td>\r\n\t\t\t\t\t\t\t\t<td>";
    echo $Sonuc["tarih"];
    echo "</td>\r\n\t\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t<a class=\"btn btn-danger btn-xs waves-effect waves-light\" id=\"\"  href=\"javascript:;\" onclick=\"\$.Notification.confirm('success','top right', 'Silmek istediğinize emin misiniz ?','../system/panel_islemler.php?rezervasyonsil=ok&id=";
    echo $Sonuc["id"];
    echo "&url=";
    echo $_SERVER["REQUEST_URI"];
    echo "')\"><i class=\"fa fa-trash\"></i> Sil</a>\r\n\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-info btn-xs waves-effect waves-light\" data-toggle=\"modal\" data-target=\".bs-example-modal-lg-";
    echo $Sonuc["id"];
    echo "\"><i class=\"fa fa-eye\"></i> Detaylar</button>\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\t\t\t\t\t\t\r\n\t\t\t\t\t\t";
}
echo "\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t\t<tfoot>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td colspan=\"8\">\r\n\t\t\t\t\t\t\t\t\t<div class=\"text-right\">\r\n\t\t\t\t\t\t\t\t\t\t<ul class=\"pagination pagination-split m-t-30 m-b-0\"></ul>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</tfoot>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>\t\r\n";
$Sorgu = $db->prepare("SELECT * FROM rezervasyon ORDER BY id DESC");
$Sorgu->execute();
$islem = $Sorgu->fetchALL(PDO::FETCH_ASSOC);
foreach ($islem as $Sonuc) {
    echo "<!--  Modal content for the above example -->\r\n<div class=\"modal fade bs-example-modal-lg-";
    echo $Sonuc["id"];
    echo "\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myLargeModalLabel\" aria-hidden=\"true\" style=\"display: none;\">\r\n\t<div class=\"modal-dialog modal-md\">\r\n\t\t<div class=\"modal-content\">\r\n\t\t\t<div class=\"modal-header\">\r\n\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\">×</button>\r\n\t\t\t\t<h4 class=\"modal-title\">";
    echo $admindil["txt11"];
    echo "</h4>\r\n\t\t\t</div>\r\n\t\t\t<div class=\"modal-body\">\r\n\t\t\t\t<form role=\"form\" action=\"../system/panel_islemler.php\" method=\"POST\">\r\n\t\t\t\t\t<div class=\"form-group row ik\">\r\n\t\t\t\t\t\t<label class=\"col-md-5 col-form-label\">Başvuru Tarihi</label>\r\n\t\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t\t";
    echo $Sonuc["tarih"];
    echo "\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"form-group row ik\">\r\n\t\t\t\t\t\t<label class=\"col-md-5 col-form-label\">Araç Adı</label>\r\n\t\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t\t";
    echo $Sonuc["aracadi"];
    echo "\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"form-group row ik\">\r\n\t\t\t\t\t\t<label class=\"col-md-5 col-form-label\">TC. No veya Pasaport No</label>\r\n\t\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t\t";
    echo $Sonuc["TcKimlikNo"];
    echo "\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"form-group row ik\">\r\n\t\t\t\t\t\t<label class=\"col-md-5 col-form-label\">Adı Soyadı</label>\r\n\t\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t\t";
    echo $Sonuc["Adi"];
    echo " ";
    echo $Sonuc["Soyadi"];
    echo "\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\t\r\n\t\t\t\t\t<div class=\"form-group row ik\">\r\n\t\t\t\t\t\t<label class=\"col-md-5 col-form-label\">Dogum Tarihi</label>\r\n\t\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t\t";
    echo $Sonuc["DogumTarihi"];
    echo "\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"form-group row ik\">\r\n\t\t\t\t\t\t<label class=\"col-md-5 col-form-label\">Ehliyet Veriliş Tarihi</label>\r\n\t\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t\t";
    echo $Sonuc["EhliyetTarihi"];
    echo "\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"form-group row ik\">\r\n\t\t\t\t\t\t<label class=\"col-md-5 col-form-label\">E-Posta</label>\r\n\t\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t\t";
    echo $Sonuc["Email"];
    echo "\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"form-group row ik\">\r\n\t\t\t\t\t\t<label class=\"col-md-5 col-form-label\">Cep Telefonu</label>\r\n\t\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t\t";
    echo $Sonuc["Gsm"];
    echo "\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\t\t\t\t\t\r\n\t\t\t\t\t<div class=\"form-group row ik\">\r\n\t\t\t\t\t\t<label class=\"col-md-5 col-form-label\">Uyruk</label>\r\n\t\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t\t";
    echo $Sonuc["uyruk"];
    echo "\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"form-group row ik\">\r\n\t\t\t\t\t\t<label class=\"col-md-5 col-form-label\">Alış Yeri</label>\r\n\t\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t\t";
    echo $Sonuc["alis"];
    echo "\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"form-group row ik\">\r\n\t\t\t\t\t\t<label class=\"col-md-5 col-form-label\">Alış Tarihi</label>\r\n\t\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t\t";
    echo $Sonuc["alistarih"];
    echo "\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"form-group row ik\">\r\n\t\t\t\t\t\t<label class=\"col-md-5 col-form-label\">Dönüş Yeri</label>\r\n\t\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t\t";
    echo $Sonuc["donus"];
    echo "\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\t\t\t\t\t\r\n\t\t\t\t\t<div class=\"form-group row ik\">\r\n\t\t\t\t\t\t<label class=\"col-md-5 col-form-label\">Dönüş Tarihi</label>\r\n\t\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t\t";
    echo $Sonuc["donustarih"];
    echo "\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t";
    if ($Sonuc["extra"]) {
        echo "\t\t\t\t\t<div class=\"form-group row ik\">\r\n\t\t\t\t\t\t<label class=\"col-md-5 col-form-label\">Ek Seçenekler</label>\r\n\t\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t\t";
        echo $Sonuc["extra"];
        echo "\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t";
    }
    echo "\t\t\t\t\t<div class=\"form-group row ik\">\r\n\t\t\t\t\t\t<label class=\"col-md-5 col-form-label\">Kiralanacak Gün Sayısı</label>\r\n\t\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t\t";
    echo $Sonuc["gun"];
    echo " Gün\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"form-group row ik\">\r\n\t\t\t\t\t\t<label class=\"col-md-5 col-form-label\">Toplam Fiyat</label>\r\n\t\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t\t";
    echo $Sonuc["fiyat"];
    echo "\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<button type=\"button\" data-dismiss=\"modal\" class=\"btn btn-danger waves-effect waves-light\"><i class=\"fa fa-times\" aria-hidden=\"true\"></i> Kapat</button>\r\n\t\t\t\t</form>\r\n\t\t\t</div>\r\n\t\t</div><!-- /.modal-content -->\r\n\t</div><!-- /.modal-dialog -->\r\n</div><!-- /.modal -->\r\n<style>\r\n.ik{\r\n\tborder-bottom: 1px solid #f1f1f1;\r\n    width: 100%;\r\n    margin-left: 0px !important;\r\n\tmargin-bottom: 5px;\r\n}\r\n.ik label{\r\n\tpadding-left: 0;\r\n}\r\n</style>\t\r\n";
}
echo "\r\n";
if ($_SESSION["iksil"] == "yes") {
    echo "\r\n\t<script>\r\n\t\$(document).ready(function () {\r\n\t\t\$.Notification.autoHideNotify('success', 'top right', 'Başarılı!','Başarı ile silinmiştir.')\r\n\t});\r\n\t</script>";
    unset($_SESSION["iksil"]);
}
if ($_SESSION["iksil"] == "no") {
    echo "\r\n\t<script>\r\n\t\$(document).ready(function () {\r\n\t\t\$.Notification.autoHideNotify('error', 'top right', 'Hata!','Hata oluştu tekrar deneyiniz.!')\r\n\t});\r\n\t</script>";
    unset($_SESSION["iksil"]);
}
echo "\t\r\n";

?>