<?php


echo "<div class=\"page-header\">\r\n\t<div class=\"page-title mt-0 mb-0\">\r\n\t\t<h3>";
echo $admindil["txt69"];
echo "</h3>\r\n\t\t<div class=\"crumbs\">\r\n\t\t\t<ul id=\"breadcrumbs\" class=\"breadcrumb\">\r\n\t\t\t\t<li><a href=\"index.html\"><i class=\"icon-home menu-icon\"></i></a></li>\r\n\t\t\t\t<li><a href=\"";
echo $sayfalink;
echo "\">";
echo $admindil["txt67"];
echo "</a></li>\r\n\t\t\t\t<li class=\"active\"><a href=\"";
echo $sayfalink;
echo "\">";
echo $admindil["txt69"];
echo "</a></li>\r\n\t\t\t</ul>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n<div class=\"card\">\r\n\t<form action=\"../_class/yonetim_islem.php\" method=\"POST\">\r\n\t<div class=\"card-body\">\r\n\t\t<div class=\"row mb-3\">\r\n\t\t\t<div class=\"col-lg-12\">\r\n\t\t\t\t<div class=\"btn-toolbar\" role=\"toolbar\">\t\t\t\t\t\r\n\t\t\t\t\t<a href=\"referans-ekle.html\" class=\"btn btn-primary btn-sm mr-1\">\r\n\t\t\t\t\t\t<i class=\"icon-plus font-12\"></i> ";
echo $admindil["txt70"];
echo "\t\t\t\t\t</a>\r\n\t\t\t\t\t<div class=\"dropdown mr-1\">\r\n\t\t\t\t\t\t<button class=\"btn btn-primary btn-sm dropdown-toggle\" type=\"button\" id=\"dropdownMenuSizeButton3\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\r\n\t\t\t\t\t\t\t<i class=\"icon-options-vertical font-12\"></i> Seçilenlere Uygula\r\n\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t<div class=\"dropdown-menu p-0 min-width-full\" aria-labelledby=\"dropdownMenuSizeButton3\">\r\n\t\t\t\t\t\t\t<button class=\"dropdown-item p-2 cursor-pointer\" type=\"submit\" name=\"referans_aktif\"><i class=\"icon-check\"></i> Seçilenleri Aktif Et</button>\r\n\t\t\t\t\t\t\t<button class=\"dropdown-item p-2 cursor-pointer\" type=\"submit\" name=\"referans_pasif\"><i class=\"icon-close\"></i> Seçilenleri Pasif Et</button>\r\n\t\t\t\t\t\t\t<button class=\"dropdown-item p-2 cursor-pointer\" type=\"submit\" name=\"referans_tumu\"><i class=\"icon-trash\"></i> Seçilenleri Sil</button>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<a href=\"../_class/yonetim_islem.php?referanstumunusil=ok\" title=\"Tüm Veriyi Sil\" class=\"btn btn-danger btn-sm mr-1 popconfirm\">\r\n\t\t\t\t\t\t<i class=\"ti-trash font-12\"></i> Tüm Veriyi Sil\r\n\t\t\t\t\t</a>\r\n\t\t\t\t</div>\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-12\">\r\n\t\t\t\t<div class=\"table-responsive\">\r\n\t\t\t\t\t<table id=\"order-listingg\" class=\"table table-bordered table-hover\">\r\n\t\t\t\t\t\t<thead class=\"headbg\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th class=\"noshort\" style=\"width:20px;\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Tümünü Seç\">\r\n\t\t\t\t\t\t\t\t\t<input id=\"checkbox-4\" class=\"select-all checkbox-custom\" type=\"checkbox\" style=\"width:100px;\">\r\n\t\t\t\t\t\t\t\t\t<label for=\"checkbox-4\" class=\"checkbox-custom-label mb-0\"><span class=\"checktext\"></span></label>\r\n\t\t\t\t\t\t\t\t</th>\r\n\t\t\t\t\t\t\t\t<th style=\"width:30px;\">ID</th>\r\n\t\t\t\t\t\t\t\t<th>Başlık</th>\r\n\t\t\t\t\t\t\t\t<th style=\"width:70px;\">Anasayfa</th>\r\n\t\t\t\t\t\t\t\t<th style=\"width:70px;\">Durum</th>\r\n\t\t\t\t\t\t\t\t<th style=\"width:115px;\">İş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<tbody id=\"sortable\"></tbody>\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\t</form>\r\n</div>\r\n<script>\r\n\t\$(document).ready(function(){\r\n\t\tvar dataTable=\$('#order-listingg').DataTable({\r\n\t\t\t\"processing\": true,\r\n\t\t\t\"serverSide\":true,\r\n\t\t\t\"ajax\":{\r\n\t\t\t\turl:\"data/referanslar.php\",\r\n\t\t\t\ttype:\"post\"\r\n\t\t\t},\r\n\t\t\t\"order\": [[ 1, \"asc\" ]],\r\n\t\t\t\"aLengthMenu\": [\r\n\t\t\t\t[5, 10, 15, ";
echo tumu("referanslar");
echo "],\r\n\t\t\t\t[5, 10, 15, \"Tümü\"]\r\n\t\t\t],\r\n\t\t\t\"columnDefs\": [\r\n\t\t\t\t{ \"orderable\": false, \"targets\": [0, 5] },\r\n\t\t\t\t{ \"targets\": [ 1 ],\"visible\": false },\r\n\t\t\t\t{  \"className\": \"secili\", targets: [1, 2] },\r\n\t\t\t\t{  \"className\": \"secili text-center\", targets: [3, 4, 5] },\r\n\t\t\t\t{  \"className\": \"text-center\", targets: [5] }\r\n\t\t\t],\r\n\t\t\t\"iDisplayLength\": 10,\r\n\t\t\t\"language\": {\r\n\t\t\t\t\"url\":\"js/Turkish.json\"\r\n\t\t\t},\r\n\t\t\t\"fnCreatedRow\": function( nRow, aData, iDataIndex ) {\r\n\t\t\t\t\$(nRow).attr('id', 'item-'+aData[1]);\r\n\t\t\t},\r\n\t\t\t\"fnDrawCallback\": function( oSettings ) {\r\n\t\t\t\$(\".popconfirm\").popConfirm();\r\n\t\t    }\r\n\t\t});\r\n\t\t\$('#order-listingg').on('click', 'tbody tr td.secili', function(event) {\t\r\n\t\t\t\$(this).closest(\"tr\").find(\"td:eq(0)\").find(\"input[type=checkbox]\").trigger('click');\r\n\t\t\tif(\$(this).closest(\"tr\").find(\"input[type=checkbox]\").prop(\"checked\")){\r\n\t\t\t\t\$(this).closest(\"tr\").addClass('highlight');\r\n\t\t\t}else{\r\n\t\t\t\t\$(this).closest(\"tr\").removeClass('highlight');\r\n\t\t\t}\r\n\t\t});\r\n\t\t\$(\".select-all\").click(function () {\r\n\t\t\t\$(\"input:checkbox\").not(this).prop('checked', this.checked);\r\n\r\n\t\t\tif(this.checked){\r\n\t\t\t\t\$(\"input:checkbox\").not(this).closest(\"tr\").addClass('highlight');\r\n\t\t\t}else{\r\n\t\t\t\t\$(\"input:checkbox\").not(this).closest(\"tr\").removeClass('highlight');\r\n\t\t\t}\t\t\t\r\n\t\t});\r\n\t});\r\n</script>\r\n<style type=\"text/css\">\r\n.secili{\r\n\tcursor:move;\r\n}\r\n</style>\r\n<script src=\"vendors/js/jquery-ui.min.js\"></script>\r\n<script type=\"text/javascript\">\r\n\$(function(){\r\n\t\$(\"#sortable\").sortable({\r\n\t\trevert: true,\r\n\t\thandle: \".secili\",\r\n\t\tstop: function(event, ui){\r\n\t\t\tvar data = \$(this).sortable('serialize');\r\n\t\t\t\r\n\t\t\t\$.ajax({\r\n\t\t\t\ttype: \"POST\",\r\n\t\t\t\tdataType: \"json\",\r\n\t\t\t\tdata: data,\r\n\t\t\t\turl: \"../_class/yonetim_islem.php?referanssiralama=sira\",\r\n\t\t\t\tsuccess: function(msg){\r\n\t\t\t\t\tif(msg.islemMsj == \"Güncellendi\")\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\$.toast({\r\n\t\t\t\t\t\t  heading: 'Başarılı!',\r\n\t\t\t\t\t\t  text: msg.islemMsj,\r\n\t\t\t\t\t\t  showHideTransition: 'slide',\r\n\t\t\t\t\t\t  icon: 'success',\r\n\t\t\t\t\t\t  loaderBg: '#fff',\r\n\t\t\t\t\t\t  position: 'top-right'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(msg.islemMsj == \"İşlem başarısız\")\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\$.toast({\r\n\t\t\t\t\t\t  heading: 'Hata',\r\n\t\t\t\t\t\t  text: msg.islemMsj,\r\n\t\t\t\t\t\t  showHideTransition: 'slide',\r\n\t\t\t\t\t\t  icon: 'error',\r\n\t\t\t\t\t\t  loaderBg: '#fff',\r\n\t\t\t\t\t\t  position: 'top-right'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t});\r\n\t\t}\r\n\t});\r\n\t\$(\"#sortable\").disableSelection();\r\n});\r\n</script>\r\n";
mesaj("referans_ekle", 1, "yes", "Başarı ile eklenmiştir.");
mesaj("referanssil", 1, "yes", "Başarı ile silinmiştir.");
mesaj("referanssil", 2, "no", "Hata oluştu tekrar deneyiniz.!");
mesaj("referans_tumu", 1, "yes", "Seçilen kayıtlar başarıyla silinmiştir.");
mesaj("referans_tumu", 2, "no", "Hata oluştu tekrar deneyiniz.!");
mesaj("referanstumunusil", 1, "yes", "Tüm kayıtlar başarıyla silinmiştir.");
mesaj("referanstumunusil", 2, "no", "Hata oluştu tekrar deneyiniz.!");
mesaj("referans_aktif", 1, "yes", "Bilgileriniz başarıyla güncellendi.");
mesaj("referans_aktif", 2, "no", "Hata oluştu tekrar deneyiniz.!");
mesaj("referans_pasif", 1, "yes", "Bilgileriniz başarıyla güncellendi.");
mesaj("referans_pasif", 2, "no", "Hata oluştu tekrar deneyiniz.!");
mesaj("secim", 3, "secimyok", "Hiç bir şey seçmediniz. Lütfen işlem yapmak istediğiniz eylemi ve ID leri seçin.");

?>