📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
belediyescripti.demodesign.com.tr
/
yonetim
/
data
📝
aidatlar.php
← Geri Dön
<?php if (!empty($_SERVER["HTTP_X_REQUESTED_WITH"]) && strtolower($_SERVER["HTTP_X_REQUESTED_WITH"]) == "xmlhttprequest") { session_start(); require_once "../../_class/baglan.php"; require_once "../../_class/fonksiyon.php"; $_SESSION["guvenlik"] = ["aidat_odendi" => kod(), "aidat_odenmedi" => kod(), "aidat_tumu" => kod(), "aidattumunusil" => kod(), "aidatsil" => kod()]; $request = $_REQUEST; $col = ["id", "sira", "adi", "tc", "tariha", "ucret", "oucret", "odeme", "islem"]; $sql = "SELECT * FROM aidatlar"; $totalFilter = $db->query($sql)->rowCount(); $sql = "SELECT * FROM aidatlar WHERE 1=1"; if (!empty($request["search"]["value"])) { $sql .= " AND (id LIKE '" . $request["search"]["value"] . "%' "; $sql .= " OR adi LIKE '" . $request["search"]["value"] . "%' "; $sql .= " OR ucret LIKE '" . $request["search"]["value"] . "%' "; $sql .= " OR oucret LIKE '" . $request["search"]["value"] . "%' "; $sql .= " OR tc LIKE '" . $request["search"]["value"] . "%' )"; } $totalData = $db->query($sql)->rowCount(); $sql .= " ORDER BY " . $col[$request["order"][0]["column"]] . " " . $request["order"][0]["dir"] . " LIMIT " . $request["start"] . " ," . $request["length"] . " "; $query = $db->prepare($sql); $query->execute(); $islem = $query->fetchALL(PDO::FETCH_ASSOC); $data = []; $say = $request["start"] + 1; foreach ($islem as $row) { if ($row["odeme"] == 0) { $odeme = "<div class=\"badge badge-outline-danger\">Ödenmedi</div>"; } if ($row["odeme"] == 1) { $odeme = "<div class=\"badge badge-outline-success\">Ödendi</div>"; } $subdata = []; $subdata[] = "<div class=\"form-check mb-0 mt-0\"><label class=\"form-check-label\"><input type=\"checkbox\" name=\"id[]\" value=\"" . $row["id"] . "\" class=\"form-check-input checkbox\"><i class=\"input-helper\"></i></label></div>"; $subdata[] = $row["id"]; $subdata[] = "<a href=\"aidat-duzenle/" . $row["id"] . ".html\" class=\"renk_baslik\" title=\"Düzenle\">" . $row["adi"] . "</a>"; $subdata[] = $row["tc"]; $subdata[] = ay_yil_panel($row["tariha"]); $subdata[] = $row["ucret"] ? $row["ucret"] . " TL" : ""; $subdata[] = $row["oucret"] ? $row["oucret"] . " TL" : ""; $subdata[] = $odeme; $subdata[] = "<a href=\"aidat-duzenle/" . $row["id"] . ".html\" class=\"btn btn-inverse-primary btn-sm\"><i class=\"ti-pencil-alt\" title=\"Düzenle\"></i></a>\r\n\t\t\t\t\t<a href=\"../_class/yonetim_islem.php?aidatsil=ok&id=" . $row["id"] . "\" class=\"btn btn-inverse-danger btn-sm popconfirm\" data-original-title=\"\" title=\"Sil\"><i class=\"ti-trash\"></i></a>"; $data[] = $subdata; } $json_data = ["draw" => intval($request["draw"]), "recordsTotal" => intval($totalData), "recordsFiltered" => intval($totalFilter), "data" => $data]; echo json_encode($json_data); } else { exit("Erişim engellendi"); } ?>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula