📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv3.demodesign.com.tr
/
yonetim
📝
sepetlerekle.php
← Geri Dön
<?php if($_GET['ok']=="gn") { $id = intval($_GET['id']); $verial = $DB->query("select * from sepet where sepetId=$id group BY ip DESC")->fetch(PDO::FETCH_ASSOC); $ip = $verial['ip']; $uyebak = $verial['uyeId']; $uyem = $DB->query("select * from uyeler where durum='1' and uyeId='$uyebak'")->fetch(PDO::FETCH_ASSOC); } if(isset($_POST['sepetguncelle'])){ $sbildirim = $_POST['sbildirim']; $ebildirim = $_POST['ebildirim']; $email = $_POST['email']; $tel = $_POST['telefon']; $isim = $_POST['isim']; $url = $modul['url']; if($sbildirim=='1'){ $dakikkadi = trim($modul['dakikkadi']); $dakiksifre = trim($modul['dakiksifre']); $dakikbaslik = trim($modul['dakikbaslik']); if($modul['smsapi']=='1'){ if($yontemm=='Kapıda Ödeme' | $ydurum== 'Kargolandı'){ $metin='Sayın '.$verial['isim'].', Siparişiniz '.$ydurum.' olarak güncellenmiştir. Kargo Bilgileriniz '.$krg.' Takip Numaranız : '.$takip.' . Kargo görevlisine '.$verial['toplam'].' TL ödeme yaparak kargonuzu alabilirsiniz. İyi günler dileriz.'; } else { if($ydurum=='Kargolandı'){ $metin='Sayın '.$verial['isim'].', Siparişiniz '.$ydurum.' olarak güncellenmiştir. Kargo Bilgileriniz '.$krg.' Takip Numaranız : '.$takip.' . İyi günler dileriz.'; } else { $metin='Sayın '.$verial['isim'].', Siparişiniz '.$ydurum.' olarak güncellenmiştir. İyi günler dileriz.'; } } $xml = '<SMS>'. '<oturum>'. '<kullanici>'.$dakikkadi.'</kullanici>'. '<sifre>'.$dakiksifre.'</sifre>'. '</oturum>'. '<mesaj>'. '<baslik>'.$dakikbaslik.'</baslik>'. '<metin>'.$metin.'</metin>'. '<alicilar>'.$tel.'</alicilar>'. '</mesaj>'. '<izin_link>true</izin_link>'. '<izin_telefon>true</izin_telefon>'. '</SMS>'; $sonuc = sendRequest('http://www.dakikapi.com/api/tr/xml_api_ileri.php', $xml); } else { $mesaj='Sayın '.$uyem['isim'].', Sepetinizdeki ürünleri sizler için sakladık. Sepetinize bakmak için '.$url.'/sepet.html. İyi günler dileriz.'; $baslik = trim($modul['netbaslik']); $mesaj = html_entity_decode($mesaj, ENT_COMPAT, "UTF-8"); $mesaj = rawurlencode($mesaj); $baslik = html_entity_decode($baslik, ENT_COMPAT, "UTF-8"); $baslik = rawurlencode($baslik); sendsms($mesaj,$tel,$baslik); } } if($ebildirim=='1'){ $url = $modul['url']; $sunucu = htmlspecialchars(trim($modul['sunucu'])); $posta = htmlspecialchars(trim($modul['eposta'])); $esifre = htmlspecialchars(trim($modul['sifre'])); $port = htmlspecialchars(trim($modul['port'])); $type = htmlspecialchars(trim($modul['type'])); $siteadi = htmlspecialchars(trim($ayar['siteadi'])); include("mail/PHPMailerAutoload.php"); $mail = new PHPMailer; $mail->IsSMTP(); //$mail->SMTPDebug = 1; // hata ayiklama: 1 = hata ve mesaj, 2 = sadece mesaj $mail->SMTPAuth = true; $mail->SMTPSecure = "$type"; // Güvenli baglanti icin ssl normal baglanti icin tls $mail->Host = "$sunucu"; // Mail sunucusuna ismi $mail->Port = "$port"; // Gucenli baglanti icin 465 Normal baglanti icin 587 $mail->IsHTML(true); $mail->SetLanguage("tr", "phpmailer/language"); $mail->CharSet ="utf-8"; $mail->Username = "$posta"; // Mail adresimizin kullanicı adi $mail->Password = "$esifre"; // Mail adresimizin sifresi $mail->SetFrom($mail->Username, ''.$siteadi.''); $mail->AddAddress($email); // Maili gonderecegimiz kisi yani alici $mail->addReplyTo($email, $siteadi); $mail->Subject = "Sepetinizdeki ürünleri sizler için sakladık."; // Konu basligi $mail->Body = " <div style='background-color: rgb(249, 249, 249); margin: 0px; padding: 0px; font-family: "Trebuchet MS", Arial, Helvetica, sans-serif, serif, "EmojiFont"; color: rgb(51, 51, 51);'> <img data-imagetype='External' src='".$url."/img/arka.gif' alt='' style='display:none' border='0'> <table width='600' cellspacing='0' cellpadding='0' border='0' align='center'> <tbody> <tr> <td valign='middle' align='center'> </td> </tr> <tr> <td valign='middle' bgcolor='#FFFFFF' align='center'> <table style='font-family:'Trebuchet MS',Arial' width='560' cellspacing='0' cellpadding='0' border='0' align='center'> <tbody> <tr> <td style='font-size:13px; color:#888'> <table style='font-family:'Trebuchet MS',Arial' width='560' cellspacing='0' cellpadding='0' border='0' align='center'> <tbody> <tr> </tr> <tr> <td valign='middle' bgcolor='#FFFFFF'> <table style='border-bottom:#c8e6c9 1px solid' width='560' cellspacing='0' cellpadding='0' border='0' align='center'> <tbody> <tr> <td width='201' valign='middle' height='95' align='left'><a href='".$url."' target='_blank' rel='noopener noreferrer'><img data-imagetype='External' src='".$url."/images/ayarlar/".$ayar['logo']."' alt='".$siteadi."' width='185' height='40'></a></td> <td width='171'> </td> <td width='188' valign='middle' align='right'> <table width='160' cellspacing='0' cellpadding='0' border='0'> <tbody> <tr> <td valign='middle' align='right'><a href='".$ayar['facebook']."' target='_blank' rel='noopener noreferrer'><img data-imagetype='External' src='".$url."/img/facebook.gif' width='30' height='30'></a></td> <td valign='middle' align='right'><a href='".$ayar['twitter']."' target='_blank' rel='noopener noreferrer'><img data-imagetype='External' src='".$url."/img/twitter.gif' width='30' height='30'></a></td> <td valign='middle' align='right'><a href='".$ayar['pinterest']."' target='_blank' rel='noopener noreferrer'><img data-imagetype='External' src='".$url."/img/gplus.gif' width='30' height='30'></a></td> <td valign='middle' align='right'><a href='".$ayar['instagram']."' target='_blank' rel='noopener noreferrer'><img data-imagetype='External' src='".$url."/img/instagram.png' width='30' height='30'></a></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> <tr> <td bgcolor='#FFFFFF'> </td> </tr> <tr> <td bgcolor='#FFFFFF'> <div style='font-family: "Trebuchet MS", Arial, serif, "EmojiFont"; font-size: 15px; line-height: 22px; color: rgb(51, 51, 51);'> <strong>Merhaba, Sayın ".$isim."</strong><br> <br> Sepetinizdeki ürünlerinizi sizler için sakladık <a href='".$url."/sepet.html'>buraya tıklayarak </a> alışverişinizi tamamlayabilirsiniz.<br> <br> </div> </td> </tr> <tr> <td style='border-bottom:#c8e6c9 1px solid' bgcolor='#FFFFFF'> </td> </tr> <tr> <td style='font-size:13px; color:#888' height='120'> <table style='font-size:13px; color:#888; line-height:22px' width='100%' cellspacing='0' cellpadding='0' border='0'> <tbody> <tr> <td width='44%' valign='top'><strong>".$ayar['slogan']."<br> ".$url." </strong></td> <td width='23%' valign='top'><strong> Telefon<br> E-Posta<br> İletişim Adresimiz </strong></td> <td width='37%' valign='bottom'>: ".$ayar['tel']."<br> : <a href='mailto:".$ayar['email']."' target='_blank' rel='noopener noreferrer'>".$ayar['email']."</a><br> : ".$ayar['adres']." </td> </tr> </tbody> </table> </td> </tr> <tr> <td> </td> </tr> </tbody> </table> </td> <tr> <td style='border-bottom:1px solid #d3d3d3' valign='middle' align='center'> </td> <td valign='middle' align='center'> </td> </tr> <tr> <td style='font-family:Tahoma,Arial,Helvetica,sans-serif; font-size:8pt; color:#888' valign='middle' align='center'> Siparişiniz ile ilgili detaylı bilgiyi <a href='".$url."/siparis-sorgulama.html' target='_blank' rel='noopener noreferrer' style='color:#888; text-decoration:underline; line-height:18px'>buradan</a> alabilirsiniz.<br> Banka hesaplarımızı görmek için <a href='".$url."/banka-hesaplari.html' target='_blank' rel='noopener noreferrer' style='color:#888; text-decoration:underline; line-height:18px'>tıklayın.</a> <br> Ödeme bildirimi yapmak için <a href='".$url."/odeme-bildirimi.html' target='_blank' rel='noopener noreferrer' style='color:#888; text-decoration:underline; line-height:18px'>tıklayın.</a> <br> Bizimle site üzerinden irtibat kurmak için <a href='".$url."/iletisim.html' target='_blank' rel='noopener noreferrer' style='color:#888; text-decoration:underline; line-height:18px'>tıklayın.</a> <br> <br> ".$ayar['copy']." </td> </tr> </tbody> </table> </div> "; // Mailin icerigi if(!$mail->Send()){ }else { } } echo "<script type='text/javascript'>alert('Tebrikler. Sepet Bildirimi Başarıyla yapıldı.');</script>" ; } $sepetkontrol = $DB->prepare("SELECT * FROM sepet WHERE ip=?"); $sepetkontrol->execute(array($ip)); if ($sepetkontrol->rowCount()) { $uysepet = $DB->prepare("SELECT * FROM urunler INNER JOIN sepet ON urunler.urunid = sepet.urunid WHERE sepet.ip=? group BY ip DESC"); $uysepet->execute(array($ip)); foreach ($uysepet as $sepet) { $sepFiy = $sepet['fiyat']+$sepet['ekfiyat']; $sepetFiyat = number_format($sepFiy, 2, ',', '.'); ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Sepet Detayları </h1> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="index.html"><i class="fa fa-home"></i> Anasayfa</a></li> <li class="breadcrumb-item"><a href="sepetler.html"> Sepet Yönetimi</a></li> <li class="breadcrumb-item active">Sepet Detayları</li> </ol> İP Adresi : <?php echo $ip;?> </section> <section class="invoice printableArea"> <!-- title row --> <div class="row"> <div class="col-12"> <h2 class="page-header" style="text-align: center; border: 2px solid #304b81; border-radius: 4px; padding-top: 20px;"> <img src="../images/ayarlar/<?php echo $ayar['logo'];?>"/> <small><?php echo $ayar['tel']; ?> <?php echo $ayar['email']; ?><br><?php echo $ayar['adres']; ?></small> <span class="text-danger"><br> <small style="color: #304b81;" class="font-weight-400"> </small> </span> </h2> </div> <div class="col-12"> <h2 class="page-header"> <br> <?php echo $uyem['isim']; ?> <span class="text-danger"><br> <small style="color: #304b81;" class="font-weight-400"> <?php echo $uyem['telefon']; ?> / <?php echo $uyem['email']; ?></small> </span> </h2> </div> <!-- /.col --> </div> <link rel="stylesheet" type="text/css" href="../css/style.css" media="all"> <link rel="stylesheet" type="text/css" href="../css/oziy.css" media="all"> <!-- Table row --> <div class="row"> <div class="col-12 table-responsive"> <ul id="cart-sidebar" class="mini-products-list" style="padding:0px !important;"> <?php $sepetkontrol = $DB->prepare("SELECT * FROM sepet WHERE ip=?"); $sepetkontrol->execute(array($ip)); if ($sepetkontrol->rowCount()) { $uysepet = $DB->prepare("SELECT * FROM urunler INNER JOIN sepet ON urunler.urunid = sepet.urunid WHERE sepet.ip=? ORDER BY sepet.sepetId DESC"); $uysepet->execute(array($ip)); foreach ($uysepet as $sepet) { $sepFiy = $sepet['fiyat']+$sepet['ekfiyat']; $sepetFiyat = number_format($sepFiy, 2, ',', '.'); ?> <li class="item odd"> <a href="../urunler/<?php echo $sepet['seo'] ?>-<?php echo $sepet['urunid'] ?>.html" title="<?php echo $sepet['urunAdi'] ?>" class="product-image"> <img width="65px" height="65px" src="../images/urunler/<?php echo $sepet['resim'] ?>" alt="<?php echo $sepet['urunAdi'] ?>"></a> <div class="product-details"> <p class="product-name"> <a href="../urunler/<?php echo $sepet['seo'] ?>-<?php echo $sepet['urunid'] ?>.html"> <?php echo $sepet['urunAdi'] ?></a> </br><b><?php echo $sepet['uoz'] ?> <?php echo $sepet['urunozellik'] ?></b></p> <strong><?php echo $sepet['urunAdet'] ?></strong> x <span class="price"><?php $sonbak = $sepet['fiyat']+$sepet['ekfiyat']; echo $sombak = number_format($sonbak,2,",",".");?> TL</span> </div> </li> <?php }?> </ul> <div class="top-subtotal">Toplam Tutar: <span class="price"> <?php $sepetkontrol = $DB->prepare("SELECT * FROM sepet WHERE ip=?"); $sepetkontrol->execute(array($ip)); if ($sepetkontrol->rowCount()) { foreach ($sepetkontrol as $value) { $urFiyat += ($value['fiyat']+$value['ekfiyat'])* $value['urunAdet']; } $topFiyat = $urFiyat; echo $ytutar = number_format($topFiyat,2,",","."); } ?> TL</span> </div> <?php }}}?> </div> <!-- /.col --> </div> <!-- /.row --> <form action="" method="POST"/> <input type="hidden" name="email" value="<?php echo $uyem['email'];?>"/> <input type="hidden" name="isim" value="<?php echo $uyem['isim'];?>"/> <input type="hidden" name="telefon" value="<?php echo $uyem['telefon'];?>"/> <div class="form-group"> <h5>Eposta Bildirim</h5> <div class="controls"> <input value="1" name="ebildirim" data-toggle="toggle" type="checkbox"> </div> </div> <div class="form-group"> <h5>SMS Bildirim</h5> <div class="controls"> <input value="1" name="sbildirim" data-toggle="toggle" type="checkbox"> </div> </div> <!-- this row will not appear when printing --> <div class="row no-print"> <div class="col-12"> <button style="width: 200px; background-color: red; font-weight: bold; height: 60px; font-size: 16px; " type="submit" class="btn btn-warning" type="button" name="sepetguncelle"> <span>Sepet Bildirimi Yap</span> </button> </form> </div> </div> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <!-- include summernote css/js-->
💾 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