[php] hosting
Viewer
- <?php
- echo "<div class=\"page-header\">\r\n\t<div class=\"page-title mt-0 mb-0\">\r\n\t\t<h3>Hosting Paketleri</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 "\">Hosting Yönetimi</a></li>\r\n\t\t\t\t<li class=\"active\"><a href=\"";
- echo $sayfalink;
- echo "\">Hosting Paketleri</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=\"hosting-paket-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> Yeni Paket Ekle\r\n\t\t\t\t\t</a>\r\n\t\t\t\t\t<div class=\"dropdown\">\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=\"hosting_paket_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=\"hosting_paket_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=\"hosting_paket_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</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>Başlık</th>\r\n\t\t\t\t\t\t\t\t<th>Tutar</th>\r\n\t\t\t\t\t\t\t\t<th>Periyod</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></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/hosting_paketler.php\",\r\n\t\t\t\ttype:\"post\"\r\n\t\t\t},\r\n\t\t\t\"aLengthMenu\": [\r\n\t\t\t\t[5, 10, 15, 5000],\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, 6] },\r\n\t\t\t\t{ \"className\": \"secili\", targets: [1, 2, 3, 4, 5] },\r\n\t\t\t\t{ \"className\": \"text-center\", targets: [6] }\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\"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";
- if ($_SESSION["hosting_ekle"] == "yes") {
- echo "\r\n\t<script>\r\n\t\t\$.toast({\r\n\t\t heading: 'Başarılı!',\r\n\t\t text: 'Başarı ile eklenmiştir.',\r\n\t\t showHideTransition: 'slide',\r\n\t\t icon: 'success',\r\n\t\t loaderBg: '#fff',\r\n\t\t position: 'top-right'\r\n\t\t})\r\n\t</script>";
- unset($_SESSION["hosting_ekle"]);
- }
- if ($_SESSION["hostingpaketsil"] == "yes") {
- echo "\r\n\t<script>\r\n\t\t\$.toast({\r\n\t\t heading: 'Başarılı!',\r\n\t\t text: 'Başarı ile silinmiştir.',\r\n\t\t showHideTransition: 'slide',\r\n\t\t icon: 'success',\r\n\t\t loaderBg: '#fff',\r\n\t\t position: 'top-right'\r\n\t\t})\r\n\t</script>";
- unset($_SESSION["hostingpaketsil"]);
- }
- if ($_SESSION["hostingpaketsil"] == "no") {
- echo "\r\n\t<script>\r\n\t\t\$.toast({\r\n\t\t heading: 'Hata!',\r\n\t\t text: 'Hata oluştu tekrar deneyiniz.!',\r\n\t\t showHideTransition: 'slide',\r\n\t\t icon: 'error',\r\n\t\t loaderBg: '#fff',\r\n\t\t position: 'top-right'\r\n\t\t})\r\n\t</script>";
- unset($_SESSION["hostingpaketsil"]);
- }
- if ($_SESSION["hosting_paket_tumu"] == "yes") {
- echo "\r\n\t<script>\r\n\t\t\$.toast({\r\n\t\t heading: 'Başarılı!',\r\n\t\t text: 'Seçilen kayıtlar başarıyla silinmiştir.',\r\n\t\t showHideTransition: 'slide',\r\n\t\t icon: 'success',\r\n\t\t loaderBg: '#fff',\r\n\t\t position: 'top-right'\r\n\t\t})\r\n\t</script>";
- unset($_SESSION["hosting_paket_tumu"]);
- }
- if ($_SESSION["hosting_paket_tumu"] == "no") {
- echo "\r\n\t<script>\r\n\t\t\$.toast({\r\n\t\t heading: 'Hata!',\r\n\t\t text: 'Hata oluştu tekrar deneyiniz.!',\r\n\t\t showHideTransition: 'slide',\r\n\t\t icon: 'error',\r\n\t\t loaderBg: '#fff',\r\n\t\t position: 'top-right'\r\n\t\t})\r\n\t</script>";
- unset($_SESSION["hosting_paket_tumu"]);
- }
- if ($_SESSION["hosting_paket_aktif"] == "yes") {
- echo "\r\n\t<script>\r\n\t\t\$.toast({\r\n\t\t heading: 'Başarılı!',\r\n\t\t text: 'Bilgileriniz başarıyla güncellendi.',\r\n\t\t showHideTransition: 'slide',\r\n\t\t icon: 'success',\r\n\t\t loaderBg: '#fff',\r\n\t\t position: 'top-right'\r\n\t\t})\r\n\t</script>";
- unset($_SESSION["hosting_paket_aktif"]);
- }
- if ($_SESSION["hosting_paket_aktif"] == "no") {
- echo "\r\n\t<script>\r\n\t\t\$.toast({\r\n\t\t heading: 'Hata!',\r\n\t\t text: 'Hata oluştu tekrar deneyiniz.!',\r\n\t\t showHideTransition: 'slide',\r\n\t\t icon: 'error',\r\n\t\t loaderBg: '#fff',\r\n\t\t position: 'top-right'\r\n\t\t})\r\n\t</script>";
- unset($_SESSION["hosting_paket_aktif"]);
- }
- if ($_SESSION["hosting_paket_pasif"] == "yes") {
- echo "\r\n\t<script>\r\n\t\t\$.toast({\r\n\t\t heading: 'Başarılı!',\r\n\t\t text: 'Bilgileriniz başarıyla güncellendi.',\r\n\t\t showHideTransition: 'slide',\r\n\t\t icon: 'success',\r\n\t\t loaderBg: '#fff',\r\n\t\t position: 'top-right'\r\n\t\t})\r\n\t</script>";
- unset($_SESSION["hosting_paket_pasif"]);
- }
- if ($_SESSION["hosting_paket_pasif"] == "no") {
- echo "\r\n\t<script>\r\n\t\t\$.toast({\r\n\t\t heading: 'Hata!',\r\n\t\t text: 'Hata oluştu tekrar deneyiniz.!',\r\n\t\t showHideTransition: 'slide',\r\n\t\t icon: 'error',\r\n\t\t loaderBg: '#fff',\r\n\t\t position: 'top-right'\r\n\t\t})\r\n\t</script>";
- unset($_SESSION["hosting_paket_pasif"]);
- }
- if ($_SESSION["secim"] == "secimyok") {
- echo "\r\n\t<script>\r\n\t\t\$.toast({\r\n\t\t heading: 'Uyarı!',\r\n\t\t text: 'Hiç bir şey seçmediniz. Lütfen işlem yapmak istediğiniz eylemi ve ID leri seçin.',\r\n\t\t showHideTransition: 'slide',\r\n\t\t icon: 'warning',\r\n\t\t loaderBg: '#fff',\r\n\t\t position: 'top-right'\r\n\t\t})\r\n\t</script>";
- unset($_SESSION["secim"]);
- }
- echo "\t\r\n\r\n";
- ?>
Editor
You can edit this paste and save as new: