📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
esnafbul.demodesign.com.tr
📝
hizmetler.php
← Geri Dön
<?php include "includes/header.php"; $firmaid = $_GET['firmaid']; $uyeid = $_GET['uyeid']; $uyesor=$db->prepare("SELECT * FROM uyeler where id=:id"); $uyesor->execute(array('id' => $_SESSION['id'])); $uyecek=$uyesor->fetch(PDO::FETCH_ASSOC); $firmasor=$db->prepare("SELECT * FROM uyefirma where id=:id"); $firmasor->execute(array('id' => $firmaid)); $firmacek=$firmasor->fetch(PDO::FETCH_ASSOC); ?> <?php if(empty($_SESSION['oturum'])) { header("Location:$ayar[site_url]"); } ?> <title>Hizmetler (<?=$firmacek['firmaismi']?>)</title> <!-- Banner --> <div class="section-space--sm bg-neutral-900"> <div class="container"> <div class="row g-4 align-items-center"> <div class="col-md-6"> <h1 class="d4 clr-neutral-0 mb-3"> Hizmetler (<?=$firmacek['firmaismi']?>)</h1> <ul class="list list-row list-arrow align-items-center"> <li> <a href="#" class="link d-inline-block clr-neutral-0 :clr-tertiary-300"> Anasayfa </a> </li> <li> <a href="#" class="link d-inline-block clr-tertiary-300"> Hizmetler (<?=$firmacek['firmaismi']?>) </a> </li> </ul> </div> <div class="col-md-6"> <div class="text-md-end"> <a href="cikis.php" class="link d-inline-flex align-items-center gap-2 py-3 px-6 rounded-pill bg-neutral-700 :bg-primary-300"> <span class="material-symbols-outlined mat-icon clr-neutral-0"> logout </span> <span class="d-inline-block clr-neutral-0 fw-semibold"> Çıkış Yap </span> </a> </div> </div> </div> </div> </div> <!-- /Banner --> <!-- Dashboard --> <div class="section-space--sm pt-0 position-relative z-1"> <span class="w-100 h-30 position-absolute start-0 end-0 top-0 z-n1 bg-neutral-900"></span> <div class="container"> <div class="row g-4"> <?php include "includes/sidebar.php"; ?> <div class="col-md-7 col-lg-8 col-xl-9"> <div class="p-6 p-xl-10 rounded-4 bg-neutral-0 shadow-3"> <div class="d-flex flex-wrap justify-content-between align-items-center gap-4"> <h3 class="mb-0 flex-grow-1"> Hizmetler <span style="color: #0d6efd">(<?=$firmacek['firmaismi']?>)</span> </h3> <a href="hizmetekle?firmaid=<?=$firmaid?>&uyeid=<?=$uyeid?>" class="btn btn-outline-primary py-3 px-6 rounded-pill d-inline-flex align-items-center gap-1 fw-semibold flex-shrink-0"> <i class="fa fa-plus"></i> Yeni Ekle </a> </div> <div class="hr-line my-6"></div> <div class="table-responsive"> <table class="table table-borderless mb-0"> <thead class="table-light table-primary-50"> <tr> <th class="px-5 py-4 fw-medium text-center"> Görsel </th> <th class="px-5 py-4 fw-medium text-center"> Hizmet Başlık </th> <th class="px-5 py-4 fw-medium text-center"> İşlemler </th> </tr> </thead> <tbody> <?php $refsor=$db->prepare("select * from firmahizmet where uye_id='$uyeid' and firma_id='$firmaid' order by id ASC"); $refsor->execute(); if ($refsor->rowCount()){ while ($ser=$refsor->fetch(PDO::FETCH_ASSOC)) { ?> <tr> <td class="px-5 py-3 text-center"> <?php if ($ser['gorsel'] == NULL || $ser['gorsel'] == ""){?> <div class="property-card__img"> <img src="images/resimyok.png" class="img-fluid" style="width: 100px;height: 70px;object-fit: cover;"> </div> <?php } else {?> <div class="property-card__img"> <img src="images/hizmet/<?=$ser['gorsel']?>" class="img-fluid" style="width: 100px;height: 70px;object-fit: cover;"> </div> <?php }?> </td> <td class="px-5 py-3 text-center" style="vertical-align: middle"> <h5 style="font-size: 1.2em"> <?php echo $ser['baslik'] ?> </h5> </td> <td class="px-5 py-3 text-center"> <a onclick="deletebutton('<?=$ser['id']?>')" class="link d-inline-block text-center clr-neutral-500 :clr-primary-300 p-2 lh-1" style="cursor: pointer;"> <span class="material-symbols-outlined mat-icon"> delete </span> </a> <a href="hizmet/<?php echo seo($ser['id'])?>/<?php echo seo($ser['baslik']) ?>?firmaid=<?=$firmaid?>&uyeid=<?=$uyeid?>" class="link d-inline-block text-center clr-neutral-500 :clr-primary-300 p-2 lh-1"> <span class="material-symbols-outlined mat-icon"> edit </span> </a> </td> </tr> <?php }?> <?php }else{?> <div class="col-xl-12 col-lg-12"> <h5>Henüz içerik eklenmedi...</h5> </div> <?php }?> </tbody> </table> </div> </div> </div> </div> </div> </div> <!-- /Dashboard --> <script type="text/javascript"> function deletebutton(firmahizmetid){ swal({ title: "Silmek İstediğinize Emin Misiniz?", text: "Seçtiğiniz içerik kalıcı olarak silinecektir", type: "warning", showCancelButton: true, confirmButtonColor: "#af0000", confirmButtonText: "Sil", cancelButtonText: "İptal", closeOnConfirm: false, closeOnCancel: false }, function(isConfirm){ if (isConfirm) { window.location.href = "includes/post/firmahizmet-sil.php?firmaid=<?=$firmaid?>&uyeid=<?=$uyeid?>&firmahizmet=success&id="+firmahizmetid; } else { swal("İptal Edildi", "Seçtiğiniz içerik silinmemiştir", "error"); } }); } </script> <?php include "includes/footer.php"; ?>
💾 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