📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
belediyescripti.demodesign.com.tr
/
yonetim
/
sayfalar
📝
ihale_ekle.php
← Geri Dön
<?php $_SESSION["guvenlik"] = ["ihale_ekle" => kod()]; if (isset($_GET["islem"]) == "duzenle") { $durum = "duzenle"; $Sorgu = $db->prepare("SELECT * FROM ihaleler WHERE id = ?"); $Sorgu->execute([$_GET["id"]]); if ($Sorgu->rowCount()) { $Sonuc = $Sorgu->fetch(PDO::FETCH_ASSOC); $_SESSION["guvenlik"] = ["ihale_guncelle" => kod(), "ihaleresimsil" => kod(), "ihaledosyasil" => kod()]; } else { header("Location:" . $url . "/404.html"); unset($_SESSION["guvenlik"]); exit; } } echo "<div class=\"page-header\">\r\n\t<div class=\"page-title mt-0 mb-0\">\r\n\t\t<h3>"; echo $admindil["txt66"]; 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["txt65"]; echo "</a></li>\r\n\t\t\t\t<li class=\"active\"><a href=\""; echo $sayfalink; echo "\">"; echo $admindil["txt66"]; 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=\"row\">\r\n\t<div class=\"col-md-12 grid-margin\">\r\n\t\t<div class=\"card\">\r\n\t\t\t<div class=\"card-body\">\r\n\t\t\t\t<form class=\"forms-sample\" method=\"post\" action=\"../_class/yonetim_islem.php\" enctype=\"multipart/form-data\">\r\n\t\t\t\t<input id=\"id\" name=\"id\" type=\"hidden\" value=\""; echo $Sonuc["id"]; echo "\">\r\n\t\t\t\t\t<div class=\"form-group row col-md-6\">\r\n\t\t\t\t\t\t<label for=\"sira\">Sıra</label>\r\n\t\t\t\t\t\t<input type=\"number\" class=\"form-control form-control-sm\" min=\"0\" name=\"sira\" id=\"sira\" value=\""; echo isset($_GET["islem"]) == "duzenle" ? $Sonuc["sira"] : ""; echo "\" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"form-group\">\r\n\t\t\t\t\t\t<label for=\"adi\">Başlık</label>\r\n\t\t\t\t\t\t<input type=\"text\" class=\"form-control form-control-sm\" name=\"adi\" id=\"adi\" value=\""; echo isset($_GET["islem"]) == "duzenle" ? $Sonuc["adi"] : ""; echo "\" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t<div class=\"form-group col-md-6\">\r\n\t\t\t\t\t\t\t<label for=\"birim\">İlgili Birim</label>\r\n\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control form-control-sm\" name=\"birim\" id=\"birim\" value=\""; echo isset($_GET["islem"]) == "duzenle" ? $Sonuc["birim"] : ""; echo "\" />\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class=\"form-group col-md-6\">\r\n\t\t\t\t\t\t\t<label for=\"ihale_durum\">İhale Durumu</label>\r\n\t\t\t\t\t\t\t<select class=\"js-example-basic-single form-control-sm\" name=\"ihale_durum\" id=\"ihale_durum\" style=\"width:100%\">\r\n\t\t\t\t\t\t\t\t<option value=\"0\" "; echo $Sonuc["ihale_durum"] == "0" ? "selected" : ""; echo ">Sonuçlanmadı</option>\r\n\t\t\t\t\t\t\t\t<option value=\"1\" "; echo $Sonuc["ihale_durum"] == "1" ? "selected" : ""; echo ">Sonuçlandı</option>\r\n\t\t\t\t\t\t\t\t<option value=\"2\" "; echo $Sonuc["ihale_durum"] == "2" ? "selected" : ""; echo ">İptal Edildi</option>\r\n\t\t\t\t\t\t\t\t<option value=\"3\" "; echo $Sonuc["ihale_durum"] == "3" ? "selected" : ""; echo ">Ertelendi</option>\r\n\t\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class=\"form-group col-md-3\">\r\n\t\t\t\t\t\t\t<label>İhale Başlangıç Tarihi</label>\r\n\t\t\t\t\t\t\t<div class=\"input-group date datepicker datetimepicker ihale-tarih\">\r\n\t\t\t\t\t\t\t\t<input type=\"text\" autocomplete=\"off\" name=\"baslama_tarih\" value=\""; echo isset($_GET["islem"]) == "duzenle" ? $Sonuc["baslama_tarih"] : ""; echo "\" class=\"form-control form-control-sm\" />\r\n\t\t\t\t\t\t\t\t<span class=\"input-group-addon input-group-append border-left\" style=\"height: 35px;\">\r\n\t\t\t\t\t\t\t\t <span class=\"mdi mdi-calendar input-group-text\"></span>\r\n\t\t\t\t\t\t\t\t</span>\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<div class=\"form-group col-md-3\">\r\n\t\t\t\t\t\t\t<label for=\"baslatma_saat\">İhale Başlangıç Saati</label>\r\n\t\t\t\t\t\t\t<div class=\"input-group date\" id=\"timepicker-baslangic\" data-target-input=\"nearest\">\r\n\t\t\t\t\t\t\t\t<div class=\"input-group\" data-target=\"#timepicker-baslangic\" data-toggle=\"datetimepicker\">\r\n\t\t\t\t\t\t\t\t\t<input type=\"text\" autocomplete=\"off\" name=\"baslatma_saat\" id=\"baslatma_saat\" class=\"form-control form-control-sm datetimepicker-input\" value=\""; echo isset($_GET["islem"]) == "duzenle" ? $Sonuc["baslatma_saat"] : ""; echo "\" data-target=\"#timepicker-baslangic\" />\r\n\t\t\t\t\t\t\t\t\t<div class=\"input-group-addon input-group-append\" style=\"height: 37px;\"><i class=\"mdi mdi-clock input-group-text\"></i></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<div class=\"form-group col-md-3\">\r\n\t\t\t\t\t\t\t<label>İhale Bitiş Tarihi</label>\r\n\t\t\t\t\t\t\t<div class=\"input-group date datepicker datetimepicker ihale-tarih\">\r\n\t\t\t\t\t\t\t\t<input type=\"text\" autocomplete=\"off\" name=\"bitis_tarih\" value=\""; echo isset($_GET["islem"]) == "duzenle" ? $Sonuc["bitis_tarih"] : ""; echo "\" class=\"form-control form-control-sm\" />\r\n\t\t\t\t\t\t\t\t<span class=\"input-group-addon input-group-append border-left\" style=\"height: 35px;\">\r\n\t\t\t\t\t\t\t\t <span class=\"mdi mdi-calendar input-group-text\"></span>\r\n\t\t\t\t\t\t\t\t</span>\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<div class=\"form-group col-md-3\">\r\n\t\t\t\t\t\t\t<label for=\"bitis_saat\">İhale Bitiş Saati</label>\r\n\t\t\t\t\t\t\t<div class=\"input-group date\" id=\"timepicker-bitis\" data-target-input=\"nearest\">\r\n\t\t\t\t\t\t\t\t<div class=\"input-group\" data-target=\"#timepicker-bitis\" data-toggle=\"datetimepicker\">\r\n\t\t\t\t\t\t\t\t\t<input type=\"text\" autocomplete=\"off\" name=\"bitis_saat\" id=\"bitis_saat\" class=\"form-control form-control-sm datetimepicker-input\" value=\""; echo isset($_GET["islem"]) == "duzenle" ? $Sonuc["bitis_saat"] : ""; echo "\" data-target=\"#timepicker-bitis\" />\r\n\t\t\t\t\t\t\t\t\t<div class=\"input-group-addon input-group-append\" style=\"height: 37px;\"><i class=\"mdi mdi-clock input-group-text\"></i></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\t\t\t\t\t\t\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t"; if (isset($_GET["islem"]) == "duzenle") { echo "\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t"; if ($Sonuc["resim"]) { echo "\t\t\t\t\t\t<div class=\"form-group row col-md-2\">\r\n\t\t\t\t\t\t\t<div id=\"lightgallery\" class=\"row lightGallery\">\r\n\t\t\t\t\t\t\t\t<a href=\"../"; echo tema; echo "/uploads/ihaleler/"; echo $Sonuc["resim"]; echo "\"><img src=\"../"; echo tema; echo "/uploads/ihaleler/"; echo $Sonuc["resim"]; echo "\" class=\"img-responsive img-thumbnail\" style=\"margin-bottom:2px;width:100%;\"></a>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<a style=\"width: 100%;\" class=\"btn btn-danger btn-sm popconfirm\" title=\"Resim Sil\" href=\"../_class/yonetim_islem.php?ihaleresimsil=ok&sid="; echo $Sonuc["id"]; echo "\"><i class=\"fal fa-trash\"></i> Resim Sil</a>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t"; } echo "\t\t\t\t\t\t"; if ($Sonuc["dosya"]) { echo "\t\t\t\t\t\t<div class=\"form-group col-md-2\">\r\n\t\t\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t\t\t<a class=\"btn btn-primary btn-sm mr-2\" target=\"_blank\" href=\"../"; echo tema; echo "/uploads/ihaleler/dosya/"; echo $Sonuc["dosya"]; echo "\"><i class=\"fa fa-download\" aria-hidden=\"true\"></i></a>\r\n\t\t\t\t\t\t\t\t<a class=\"btn btn-danger btn-sm popconfirm\" title=\"Dosya Sil\" href=\"../_class/yonetim_islem.php?ihaledosyasil=ok&sid="; echo $Sonuc["id"]; echo "\"><i class=\"fal fa-trash\"></i> Dosya Sil</a>\r\n\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t"; } echo "\t\t\t\t\t\t\r\n\t\t\t\t\t"; } echo "\t\t\t\t\t<div class=\"form-group row col-md-6\">\r\n\t\t\t\t\t<label>Listeleme Görseli</label>\r\n\t\t\t\t\t\t<input type=\"file\" name=\"resim\" class=\"file-upload-default\">\r\n\t\t\t\t\t\t<div class=\"input-group col-xs-12\">\r\n\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control file-upload-info form-control-sm\" disabled=\"\" placeholder=\"Resim dosyası seçiniz\">\r\n\t\t\t\t\t\t\t<span class=\"input-group-append\">\r\n\t\t\t\t\t\t\t\t<button class=\"file-upload-browse btn btn-primary btn-sm\" type=\"button\"><i class=\"icon-cloud-upload font-12\"></i> Dosya Seç</button>\r\n\t\t\t\t\t\t\t</span>\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 col-md-6\">\r\n\t\t\t\t\t<label>İhale dökümanı</label>\r\n\t\t\t\t\t\t<input type=\"file\" name=\"dosya\" class=\"file-upload-default\">\r\n\t\t\t\t\t\t<div class=\"input-group col-xs-12\">\r\n\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control file-upload-info form-control-sm\" disabled=\"\" placeholder=\"Dosya seçiniz\">\r\n\t\t\t\t\t\t\t<span class=\"input-group-append\">\r\n\t\t\t\t\t\t\t\t<button class=\"file-upload-browse btn btn-primary btn-sm\" type=\"button\"><i class=\"icon-cloud-upload font-12\"></i> Dosya Seç</button>\r\n\t\t\t\t\t\t\t</span>\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 mb-2\">\t\t\t\t\t\t\r\n\t\t\t\t\t\t"; if (isset($_GET["islem"]) == "duzenle") { echo "\t\t\t\t\t\t<label class=\"switch\">\r\n\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"durum\" id=\"durum\" value=\"1\" "; if ($Sonuc["durum"] == "1") { echo " checked "; } echo ">\r\n\t\t\t\t\t\t\t<span class=\"slider\"></span>\r\n\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t"; } else { echo "\t\t\t\t\t\t<label class=\"switch\">\r\n\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"durum\" id=\"durum\" value=\"1\" checked>\r\n\t\t\t\t\t\t\t<span class=\"slider\"></span>\r\n\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t"; } echo "\t\t\t\t\t\t<label class=\"d-inline-block\" style=\"line-height: 34px;\" for=\"durum\">Durum</label>\t\t\t\t\t\t\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"form-group mb-2\">\t\t\t\t\t\t\r\n\t\t\t\t\t\t"; if (isset($_GET["islem"]) == "duzenle") { echo "\t\t\t\t\t\t<label class=\"switch\">\r\n\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"anasayfa\" id=\"anasayfa\" value=\"1\" "; if ($Sonuc["anasayfa"] == "1") { echo " checked "; } echo ">\r\n\t\t\t\t\t\t\t<span class=\"slider\"></span>\r\n\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t"; } else { echo "\t\t\t\t\t\t<label class=\"switch\">\r\n\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"anasayfa\" id=\"anasayfa\" value=\"1\" checked>\r\n\t\t\t\t\t\t\t<span class=\"slider\"></span>\r\n\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t"; } echo "\t\r\n\t\t\t\t\t\t<label class=\"d-inline-block\" style=\"line-height: 34px;\" for=\"anasayfa\">Anasayfada Göster</label>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t\r\n\t\t\t\t\t<div class=\"form-group\">\r\n\t\t\t\t\t\t<label for=\"myTextarea\">İçerik</label>\r\n\t\t\t\t\t\t<textarea name=\"aciklama\" id=\"myTextarea\">"; echo isset($_GET["islem"]) == "duzenle" ? $Sonuc["aciklama"] : ""; echo "</textarea>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"card mb-4\">\r\n\t\t\t\t\t\t<div class=\"card-header\">\r\n\t\t\t\t\t\t\tSEO AYARLARI\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class=\"card-body\">\r\n\t\t\t\t\t\t\t<div class=\"form-group\">\r\n\t\t\t\t\t\t\t\t<label for=\"maxlength-textarea\">SEO Açıklama (Description)</label>\r\n\t\t\t\t\t\t\t\t<textarea id=\"maxlength-textarea\" name=\"description\" class=\"form-control\" maxlength=\"260\" rows=\"2\">"; echo isset($_GET["islem"]) == "duzenle" ? $Sonuc["description"] : ""; echo "</textarea>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class=\"form-group mb-0\">\r\n\t\t\t\t\t\t\t\t<label for=\"tags\">SEO Kelimeler (Keywords) <small>(Kelimenin sonuna virgül koyunuz)</small></label>\r\n\t\t\t\t\t\t\t\t<input name=\"keywords\" id=\"tags\" value=\""; echo isset($_GET["islem"]) == "duzenle" ? $Sonuc["keywords"] : ""; echo "\" />\r\n\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t"; if (isset($_GET["islem"]) == "duzenle") { echo "\t\t\t\t\t<button type=\"submit\" name=\"ihale_guncelle\" class=\"btn btn-success btn-icon-text btn-sm\">\r\n\t\t\t\t\t\t<i class=\"mdi mdi-reload btn-icon-prepend\"></i> \r\n\t\t\t\t\t\tGÜNCELLE\r\n\t\t\t\t\t</button>\r\n\t\t\t\t\t"; } else { echo "\t\t\t\t\t<button type=\"submit\" name=\"ihale_ekle\" class=\"btn btn-primary btn-icon-text btn-sm\">\r\n\t\t\t\t\t\t<i class=\"mdi mdi-file-check btn-icon-prepend\"></i>\r\n\t\t\t\t\t\tKAYDET\r\n\t\t\t\t\t</button>\r\n\t\t\t\t\t"; } echo "\t\t\t\t</form>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n\r\n</div>\r\n"; mesaj("ihale_ekle", 2, "no", "Hata oluştu tekrar deneyiniz.!"); mesaj("ihale_guncelle", 1, "yes", "Başarı ile guncellenmiştir."); mesaj("ihale_guncelle", 2, "no", "Hata oluştu tekrar deneyiniz.!"); mesaj("ihaleresimsil", 1, "yes", "Başarı ile siinmiştir."); mesaj("ihaleresimsil", 2, "no", "Hata oluştu tekrar deneyiniz.!"); mesaj("ihaledosyasil", 1, "yes", "Başarı ile siinmiştir."); mesaj("ihaledosyasil", 2, "no", "Hata oluştu tekrar deneyiniz.!"); echo "\t\t\r\n"; ?>
💾 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