📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv3.demodesign.com.tr
📝
destekdetay.php
← Geri Dön
<?php require('ust.php');?> <title>Destek Oku - <?php echo $ayar['siteadi']; ?></title> <meta name="description" content="<?php echo $ayar['des']; ?>"> <meta name="keywords" content="<?php echo $ayar['keyw']; ?>"> <?php require('menu.php');?> <?php ob_start(); session_start(); if($_SESSION['uyegiris'] == 'true'){?> <?php $id = intval($_GET['id']); $ticket = $DB->query("select * from destek where id=$id")->fetch(PDO::FETCH_ASSOC); $userid=$ticket["uye"]; $ticket = $id; $uyid = $_SESSION["uyeId"];?> <?php $ticketsor = $DB->query("select * from destek_cevap where destekid=$id")->fetch(PDO::FETCH_ASSOC); ?> <?php if (isset($_POST["uyeticketcevapver"])) { $uye=$_POST["uye"]; $destekid=$_POST["destekid"]; $sino=$_POST["sino"]; $konu=$_POST["konu"]; $mesaj=$_POST["mesaj"]; $tarih=date("d.m.Y h:i"); $mid=$_POST["mid"]; $email=$_POST["email"]; $durum=0; $ticketcevapver = $DB-> prepare("insert into destek_cevap set uye=?, destekid=?, sino=?, konu=?, mesaj=?, tarih=?, mid=?, email=?, durum=?"); $ticketcevapver -> execute(array($uye,$destekid,$sino,$konu,$mesaj,$tarih,$mid,$email,$durum)); if ($ticketcevapver) { $ticketguncelle = $DB->prepare("update destekler set durum='$durum' where id='$destekid'"); header("Location:destekdetay?id=$id"); }else{ header("Location:destekdetay?id=$id"); } }?> <div class="breadcrumbs"> <div class="container"> <div class="row"> <div class="col-xs-12"> <ul> <li class="home"> <a title="Anasayfa" href="index">Anasayfa</a><span>»</span></li> <li class="home"> <a title="Hesabım" href="uyelik-profilim">Hesabım</a><span>»</span></li> <li class="category13"><strong>Destek Hattı </strong></li> </ul> </div> </div> </div> </div> <div class="main-content shop-page main-content-blog"> <div class="container"> <div class="login-register-form content-form row"> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="login-form"> <h4 style="background-color: <?php echo $ayar['renk1'];?>; height: 60px; padding-top: 20px; color: white; font-weight: 400; padding-left: 20px;margin-top:10px;"> Sipariş No : <b style="padding-right: 40px; color: white; font-weight;"><?php echo $ticketsor['sino']; ?> </b> Destek Konusu : <b style="padding-right: 40px; font-weight: bold;"><?php echo $ticketsor['konu']; ?></b> </h4> <?php $destek = $DB->query("select * from destek_cevap where destekid='$ticket' order by id asc")->fetchAll(PDO::FETCH_ASSOC); foreach($destek as $kdestek){?> <div class="comment-item" style="border: 1px solid #e4e4e4; padding: 10px;"> <div class="head"> <?php if($kdestek['uye'] =="00"){?> <div style="border:1px solid <?php echo $ayar['renk1'];?>;padding:10px;border-radius:5px;"> <span class="name"><img style=" max-width: 120px; margin-bottom: 20px;" src="images/ayarlar/<?php echo $ayar['logo']; ?>"></span> <span class="time" style="float:right; margin-top: 60px;"> Gönderilme Tarihi <?php echo $kdestek['tarih']; ?></span> </br> <p class="comment" style="margin-top: -10px;margin-bottom: 50px;"><?php echo $kdestek['mesaj']; ?></p> </div> </div> </div> <?php }else {?> <span class="name"><b><?php echo $_SESSION['isim']; ?> </b></span> </br> <span class="time" style="float: right;"> Gönderilme Tarihi <?php echo $kdestek['tarih']; ?></span> </br> </div> <p class="comment"><?php echo $kdestek['mesaj']; ?></p> </div> <?php }?> <?php } ?> <form action="" method="post"> <div class="login-form"> <textarea name="mesaj" class="input-info input-note" required></textarea> <input type="hidden" name="uye" value="<?php echo $uyid; ?>"> <input type="hidden" name="destekid" value="<?php echo $ticketsor['destekid']; ?>"> <input type="hidden" name="sino" value="<?php echo $ticketsor['sino']; ?>"> <input type="hidden" name="konu" value="<?php echo $ticketsor['konu']; ?>"> <input type="hidden" name="mid" value="<?php echo $ticketsor['mid']; ?>"> <input type="hidden" name="email" value="<?php echo $ticketsor['email']; ?>"> <?php $dene = $ticketsor['destekid']; ?> <?php $dee = $DB->query("select * from destek where id='$dene' limit 1")->fetchAll(PDO::FETCH_ASSOC); foreach($dee as $see){ ?> <?php if($see['durum'] =="3"){?> <div class="group-button" > <b>DESTEK KAPATILDIĞI İÇİN CEVAP VERİLEMEZ</b> </div> <?php }else {?> <div class="group-button" > <button class="bubbly-button" type="submit" name="uyeticketcevapver">CEVAPLA</button> </div> <?php }} ?> </div> </form> </div> </div> </div> </div> <?php } else { echo "<meta http-equiv='refresh' content='0; url=index'>"; } ?> <?php require('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