📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv8.demodesign.com.tr
📝
shop-complete.php
← Geri Dön
<?php // +------------------------------------------------------------------------+ // | @author Ercan Agkaya (Themerig) // | @author_url 1: https://www.themerig.com // | @author_url 2: https://codecanyon.net/user/themerig // | @author_email: support@themerig.com // +------------------------------------------------------------------------+ // | Techno Cms - E-Commerce Script // | Copyright (c) 2018 Techno CMS. All rights reserved. // +------------------------------------------------------------------------+ include ('includes/head.php'); include ('includes/header.php'); use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'PHPMailer/src/Exception.php'; require 'PHPMailer/src/PHPMailer.php'; require 'PHPMailer/src/SMTP.php'; include 'xpanel/inc/smsyolla.php'; $smtp_settings = $dbh -> prepare("SELECT * FROM smtp_settings WHERE id = ?"); $smtp_settings-> execute(array(1)); $smtp_settings = $smtp_settings->fetch(PDO::FETCH_OBJ); $ayar = $dbh->query("SELECT * FROM general_settings WHERE id = 1 ", PDO::FETCH_ASSOC); if ($ayar->rowCount()) { foreach ($ayar as $ayar) { } } $SepetToplam = $_POST["toplam"] ; $SepetToplam = str_replace(",","",$SepetToplam); $SepetToplam = str_replace(".","",$SepetToplam); $stack = array(); if($_POST["radio-cash-2"] == "kart") { $rand_id_cart = $db->query("SELECT count(*) FROM cart WHERE rand_id = '" . $_COOKIE['COOKIE_KEY'] . "'")->fetchColumn(); $sira == 1; if ($rand_id_cart > "0") { $new_price_count = $db->query("SELECT SUM(t_price) as total FROM cart WHERE rand_id = '" . $_COOKIE['COOKIE_KEY'] . "'")->fetch(); $cart_price = number_format($new_price_count['total'], 2, ',', '.'); $cart = $db->prepare("SELECT * FROM cart WHERE rand_id = '" . $_COOKIE['COOKIE_KEY'] . "'"); $cart->execute(); if ($cart->rowCount()) { $string = "["; foreach ($cart as $row) { $gallery = $db->query("SELECT * FROM gallery WHERE item_id = '" . $row['item_id'] . "' AND que = 2")->fetch(); $items = $db->query("SELECT * FROM itemsy WHERE id = '" . $row['item_id'] . "'")->fetch(); $new_price = number_format($row['y_price'], 2, ',', '.'); $toplam = number_format($row['t_price'], 2, ',', '.'); $sira++; $string .= '{"item_id":"' . $row["item_id"] . '", "piece":"' . $row["piece"] . '", "y_price":"' . $row["y_price"] . '", "t_price":"' . $row["t_price"] . '", "option_name":"' . $row["option_name"] . '" }'; if ($rand_id_cart != $sira) { $string .= ","; } $itemName = $row["item_id"] . $items["code"] . ' - ' . $items["title"]; // PATR BASKET array_push($stack, array($itemName, $row["y_price"], $row["piece"])); } $string .= "]"; /* $db->query("INSERT INTO siparisler (user_id,isim, soyisim, firma, eposta, telefon, adres, sehir, posta, kargo_isim, kargo_soyisim, kargo_adres, kargo_sehir, kargo_posta, siparis_notu, tarih, urunler, yontem, durum,status) VALUES ('" . $_SESSION['session'] . "' , '" . $_POST['first-name'] . "' ,'" . $_POST['last-name'] . "' ,'" . $_POST['company-name'] . "' ,'" . $_POST['email-address'] . "' ,'" . $_POST['phone'] . "' ,'" . $_POST['address'] . "' ,'" . $_POST['town-city'] . "' , '" . $_POST['post-code'] . "' ,'" . $_POST['first-name-2'] . "' ,'" . $_POST['last-name-2'] . "' ,'" . $_POST['address-2'] . "' ,'" . $_POST['town-city-2'] . "' ,'" . $_POST['post-code-2'] . "' ,'" . $_POST['notes'] . "' , '".time()."' , '" . $string . "', 'PAYTR' , 'Ödeme Bekliyor' )");*/ $insert = $db->prepare("INSERT INTO siparisler SET user_id=?,isim=?, soyisim=?, firma=?, eposta=?, telefon=?, adres=?, sehir=?, posta=?, kargo_isim=?, kargo_soyisim=?, kargo_adres=?, kargo_sehir=?, kargo_posta=?, siparis_notu=?, tarih=?, urunler=?, yontem=?, durum=?,status=? "); $insert-> execute(array($_SESSION['session'], $_POST['first-name'] , $_POST['last-name'] , $_POST['company-name'] , $_POST['email-address'] , $_POST['phone'] , $_POST['address'] , $_POST['town-city'] , $_POST['post-code'], $_POST['first-name-2'] ,$_POST['last-name-2'] , $_POST['address-2'] , $_POST['town-city-2'] , $_POST['post-code-2'], $_POST['notes'] ,time(), $string, 'PAYTR' , 'Ödeme Bekliyor',0)); if ($insert) { $ok=1; $delete = $db->prepare("DELETE FROM cart WHERE rand_id = '" . $_COOKIE['COOKIE_KEY'] . "'"); $delete -> execute(array()); # $merchant_id = $settings['paytr_id']; $merchant_key = $settings['paytr_key']; $merchant_salt = $settings['paytr_salt']; /* $merchant_id = "122252"; $merchant_key = "ZR6KZQ3dgFzYTudx"; $merchant_salt = "9uWmJh5ANmmDgjsn";*/ # $email = $settings['paytr_email']; $payment_amount = $SepetToplam; //9.99 için 9.99 * 100 = 999 gönderilmelidir. $merchant_oid = $db->lastInsertId(); $user_name = $_POST["first-name"]. " ". $_POST["last-name"]; $user_address = $_POST["address"]; $user_phone = $_POST["phone"]; # ## Başarılı ödeme sonrası müşterinizin yönlendirileceği sayfa ## !!! Bu sayfa siparişi onaylayacağınız sayfa değildir! Yalnızca müşterinizi bilgilendireceğiniz sayfadır! ## !!! Siparişi onaylayacağız sayfa "Bildirim URL" sayfasıdır (Bakınız: 2.ADIM Klasörü). $merchant_ok_url = "http://".$_SERVER['HTTP_HOST']."/odeme_basarili.php?id=" . $db->lastInsertId(); # ## Ödeme sürecinde beklenmedik bir hata oluşması durumunda müşterinizin yönlendirileceği sayfa ## !!! Bu sayfa siparişi iptal edeceğiniz sayfa değildir! Yalnızca müşterinizi bilgilendireceğiniz sayfadır! ## !!! Siparişi iptal edeceğiniz sayfa "Bildirim URL" sayfasıdır (Bakınız: 2.ADIM Klasörü). $merchant_fail_url = "http://".$_SERVER['HTTP_HOST']."/odeme_hata.php"; # ## Müşterinin sepet/sipariş içeriği $user_basket = "aa"; # $user_basket = base64_encode(json_encode($stack)); ############################################################################################ ## Kullanıcının IP adresi if (isset($_SERVER["HTTP_CLIENT_IP"])) { $ip = $_SERVER["HTTP_CLIENT_IP"]; } elseif (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) { $ip = $_SERVER["HTTP_X_FORWARDED_FOR"]; } else { $ip = $_SERVER["REMOTE_ADDR"]; } $user_ip = $ip; $timeout_limit = "30"; $debug_on = 1; /* $test_mode = $settings['paytr_test'];*/ $test_mode = 1; $no_installment = 0; // Taksit yapılmasını istemiyorsanız, sadece tek çekim sunacaksanız 1 yapın ## Sayfada görüntülenecek taksit adedini sınırlamak istiyorsanız uygun şekilde değiştirin. ## Sıfır (0) gönderilmesi durumunda yürürlükteki en fazla izin verilen taksit geçerli olur. $max_installment = 0; $currency = "TL"; ####### Bu kısımda herhangi bir değişiklik yapmanıza gerek yoktur. ####### $hash_str = $merchant_id . $user_ip . $merchant_oid . $email . $payment_amount . $user_basket . $no_installment . $max_installment . $currency . $test_mode; $paytr_token = base64_encode(hash_hmac('sha256', $hash_str . $merchant_salt, $merchant_key, true)); $post_vals = array( 'merchant_id' => $merchant_id, 'user_ip' => $user_ip, 'merchant_oid' => $merchant_oid, 'email' => $email, 'payment_amount' => $payment_amount, 'paytr_token' => $paytr_token, 'user_basket' => $user_basket, 'debug_on' => $debug_on, 'no_installment' => $no_installment, 'max_installment' => $max_installment, 'user_name' => $user_name, 'user_address' => $user_address, 'user_phone' => $user_phone, 'merchant_ok_url' => $merchant_ok_url, 'merchant_fail_url' => $merchant_fail_url, 'timeout_limit' => $timeout_limit, 'currency' => $currency, 'test_mode' => $test_mode ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://www.paytr.com/odeme/api/get-token"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_vals); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_FRESH_CONNECT, true); curl_setopt($ch, CURLOPT_TIMEOUT, 20); $result = @curl_exec($ch); if (curl_errno($ch)) die("PAYTR IFRAME connection error. err:" . curl_error($ch)); curl_close($ch); $result = json_decode($result, 1); if ($result['status'] == 'success') $token = $result['token']; else die("PAYTR IFRAME failed. reason:" . $result['reason']); ######################################################################### } else { } } } else { // SEPET BOŞ } } else if ($_POST["radio-cash-2"] == "havale") { $rand_id_cart = $db->query("SELECT count(*) FROM cart WHERE rand_id = '" . $_COOKIE['COOKIE_KEY'] . "'")->fetchColumn(); $sira == 1; if ($rand_id_cart > "0") { $new_price_count = $db->query("SELECT SUM(t_price) as total FROM cart WHERE rand_id = '" . $_COOKIE['COOKIE_KEY'] . "'")->fetch(); $cart_price = number_format($new_price_count['total'], 2, ',', '.'); $cart = $db->prepare("SELECT * FROM cart WHERE rand_id = '" . $_COOKIE['COOKIE_KEY'] . "'"); $cart->execute(); if ($cart->rowCount()) { $string = "["; foreach ($cart as $row) { $gallery = $db->query("SELECT * FROM gallery WHERE item_id = '" . $row['item_id'] . "' AND que = 2")->fetch(); $items = $db->query("SELECT * FROM items WHERE id = '" . $row['item_id'] . "'")->fetch(); $new_price = number_format($row['y_price'], 2, ',', '.'); $toplam = number_format($row['t_price'], 2, ',', '.'); $sira++; $string .= '{"item_id":"' . $row["item_id"] . '", "piece":"' . $row["piece"] . '", "y_price":"' . $row["y_price"] . '", "t_price":"' . $row["t_price"] . '", "option_name":"' . $row["option_name"] . '" }'; if ($rand_id_cart != $sira) { $string .= ","; } $itemName = $row["item_id"] . $items["code"] . ' - ' . $items["title"]; // PATR BASKET array_push($stack, array($itemName, $row["y_price"], $row["piece"])); } $string .= "]"; if ($db->query("INSERT INTO siparisler (user_id,isim, soyisim, firma, eposta, telefon, adres, sehir, posta, kargo_isim, kargo_soyisim, kargo_adres, kargo_sehir, kargo_posta, siparis_notu, tarih, urunler, yontem, durum) VALUES ('" . $_SESSION['session'] . "' , '" . $_POST['first-name'] . "' ,'" . $_POST['last-name'] . "' ,'" . $_POST['company-name'] . "' ,'" . $_POST['email-address'] . "' ,'" . $_POST['phone'] . "' ,'" . $_POST['address'] . "' ,'" . $_POST['town-city'] . "' , '" . $_POST['post-code'] . "' ,'" . $_POST['first-name-2'] . "' ,'" . $_POST['last-name-2'] . "' ,'" . $_POST['address-2'] . "' ,'" . $_POST['town-city-2'] . "' ,'" . $_POST['post-code-2'] . "' ,'" . $_POST['notes'] . "' , '".time()."' , '" . $string . "', 'EFT/HAVALE' , 'Ödeme Bekliyor' )")) { $eftsonId = $db->lastInsertId(); $ok=1; $delete = $db->prepare("DELETE FROM cart WHERE rand_id = '" . $_COOKIE['COOKIE_KEY'] . "'"); $delete -> execute(array()); } } } else { // SEPET BOŞ } } if($ok==1){ $phone = $_POST["phone"]; $email = $_POST["email-address"]; if($sms_setting->sip_alindi==1){ smsyolla($phone,'Sayin kullanicimiz siparisiniz basari ile alinmistir. Bizi tercih ettiginiz icin tesekkür ederiz. '); } $mailm= '<!DOCTYPE html> <html lang="tr" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="x-apple-disable-message-reformatting"> <title>Ürününüz Kargolandı</title> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i" rel="stylesheet"> <style> html, body { margin: 0 auto !important; padding: 0 !important; height: 100% !important; width: 100% !important; } * { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; } div[style*="margin: 16px 0"] { margin:0 !important; } table, td { mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; } table { border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; } table table table { table-layout: auto; } img { -ms-interpolation-mode:bicubic; } *[x-apple-data-detectors], .x-gmail-data-detectors, .x-gmail-data-detectors *, .aBn { border-bottom: 0 !important; cursor: default !important; color: inherit !important; text-decoration: none !important; font-size: inherit !important; font-family: inherit !important; font-weight: inherit !important; line-height: inherit !important; } .a6S { display: none !important; opacity: 0.01 !important; } img.g-img + div { display:none !important; } .button-link { text-decoration: none !important; } @media only screen and (min-device-width: 375px) and (max-device-width: 413px) { .email-container { min-width: 375px !important; } } </style> <style> .button-td, .button-a { transition: all 100ms ease-in; } .button-td:hover, .button-a:hover { background: #555555 !important; border-color: #555555 !important; } @media screen and (max-width: 480px) { .fluid { width: 100% !important; max-width: 100% !important; height: auto !important; margin-left: auto !important; margin-right: auto !important; } .stack-column, .stack-column-center { display: block !important; width: 100% !important; max-width: 100% !important; direction: ltr !important; } .stack-column-center { text-align: center !important; } .center-on-narrow { text-align: center !important; display: block !important; margin-left: auto !important; margin-right: auto !important; float: none !important; } table.center-on-narrow { display: inline-block !important; } .email-container p { font-size: 17px !important; line-height: 22px !important; } } </style> </head> <body width="100%" bgcolor="#F1F1F1" style="margin: 0; mso-line-height-rule: exactly;"> <center style="width: 100%; background: #F1F1F1; text-align: left;"> <div style="max-width: 680px; margin: auto;" class="email-container"> <table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 680px;" class="email-container"> <tr> <td bgcolor="#17A2B8"> <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="padding: 30px 40px 30px 40px; text-align: center;" align="center"> <img src="'.$ayar["web_adress"].'/img/'.$ayar["foto"].'" alt="alt_text" border="0" style="height: auto; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;"> </td> </tr> </table> </td> </tr> <tr> <td background="background.png" bgcolor="#222222" align="center" valign="top" style="text-align: center; background-position: center center !important; background-size: cover !important;"> <div> <table role="presentation" border="0" cellpadding="0" cellspacing="0" align="center" width="100%" style="max-width:500px; margin: auto;"> <tr> <td height="20" style="font-size:20px; line-height:20px;"> </td> </tr> <tr> <td align="center" valign="middle"> <table> <tr> <td valign="top" style="text-align: center; padding: 20px 0 10px 20px;"> <h1 style="margin: 0; font-family: Open Sans, sans-serif; font-size: 30px; line-height: 36px; color: #ffffff; font-weight: bold;">SİPARİŞİNİZ ALINMIŞTIR.</h1> </td> </tr> </table> </td> </tr> <tr> <td height="20" style="font-size:20px; line-height:20px;"> </td> </tr> </table> </div> </td> </tr> <tr> <td bgcolor="#ffffff"> <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%"> <br><br> <tr> <td style="padding: 0px 40px 20px 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555; text-align: left; font-weight:normal;"> <p style="margin: 0;">Değerli kullanıcımız, siparişiniz başarı ile alınmıştır. Bizi tercih ettiğiniz için teşekkür ederiz.<br><br> </p> </td> </tr> <tr> <td style="padding: 0px 40px 20px 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555; text-align: left; font-weight:normal;"> <p style="margin: 0;">Siparişinizi değerlendirmek isterseniz <a href="https://search.google.com/local/writereview?placeid='.$ayar["business_link"].'">Buraya tıklayarak bizi hemen değerlendirebilirsiniz.</a></p> </td> </tr> <tr> <td style="padding: 0px 40px 20px 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555; text-align: left; font-weight:normal;"> <p style="margin: 0;">Güzel günler dileriz..</p> </td> </tr> </table> </td> </tr> <tr> <td bgcolor="#17A2B8"> <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="padding: 40px 40px 5px 40px; text-align: center;"> <h1 style="margin: 0; font-family: Open Sans, sans-serif; font-size: 20px; line-height: 24px; color: #ffffff; font-weight: bold;">BİLGİLENDİRME</h1> </td> </tr> <tr> <td style="padding: 0px 40px 20px 40px; font-family: sans-serif; font-size: 17px; line-height: 23px; color: #aad4ea; text-align: center; font-weight:normal;"> </td> </tr> <tr> <td valign="middle" align="center" style="text-align: center; padding: 0px 20px 40px 20px;"> <table role="presentation" align="center" cellspacing="0" cellpadding="0" border="0" class="center-on-narrow"> <tr> <td style="border-radius: 50px; background: #ffffff; text-align: center;" class="button-td"> <a href="'.$ayar["web_adress"].'bize-ulasin" style="background: #ffffff; border: 15px solid #ffffff; font-family: Open Sans, sans-serif; font-size: 14px; line-height: 1.1; text-align: center; text-decoration: none; display: block; border-radius: 50px; font-weight: bold;" class="button-a"> <span style="color:#17A2B8;" class="button-link"> BİZE ULAŞIN </span> </a> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td bgcolor="#ffffff"> <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="padding: 40px 40px 10px 40px; font-family: sans-serif; font-size: 12px; line-height: 18px; color: #666666; text-align: center; font-weight:normal;"> <p style="margin: 0; font-weight: 700; font-size: 16px">Hızlı Linkler</p> </td> </tr> <tr> <td style="padding: 0px 40px 10px 40px; font-family: sans-serif; font-size: 12px; line-height: 18px; color: #666666; text-align: center; font-weight:normal;"> </td> </tr> <tr> <td style="padding: 0px 40px 10px 40px; font-family: sans-serif; font-size: 12px; line-height: 18px; color: #666666; text-align: center; font-weight:normal;"> <p style="margin: 0;"><a href="'.$ayar["web_adress"].'bize-ulasin" style="color: #111111; font-weight: 700;">İletişim Bilgileri</a> | <a href="'.$ayar["web_adress"].'kategorilerimiz" style="color: #111111; font-weight: 700;"> Ürünlerimiz</a> | <a href="'.$ayar["web_adress"].'hesabim" style="color: #111111; font-weight: 700;"> Müşteri Paneli</a></p> </td> </tr> <tr> <td style="padding: 0px 40px 40px 40px; font-family: sans-serif; font-size: 12px; line-height: 18px; color: #666666; text-align: center; font-weight:normal;"> <p style="margin: 0;">'.$ayar["copyright"].'</p> </td> </tr> </table> </td> </tr> </table> </div> </center> </body> </html> '; $mail = new PHPMailer(true); try { $user= $smtp_settings->smtp_user; $mail->SMTPDebug = 0; $mail->isSMTP(); $mail->SMTPAuth = true; $mail->Username = $smtp_settings->smtp_user; $mail->Password = $smtp_settings->smtp_password; $mail->Host =$smtp_settings->smtp_server; $mail->Port = $smtp_settings->smtp_port; $mail->SMTPSecure = $smtp_settings->smtp_secure; $mail->SMTPOptions = array( 'ssl' => [ 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ], ); $mail->SetLanguage('tr', 'PHPMailer/language/'); $mail->setFrom($user, 'Siparişiniz Alındı'); $mail->addAddress($email); $mail->isHTML(true); $mail->Subject = 'Siparişiniz Tamamlandı'; $mail->Body = " $mailm "; $mail->CharSet = 'utf-8'; $mail->send(); //echo 'Mesaj gönderildi'; //header("location:".htmlspecialchars($_SERVER['HTTP_REFERER'])); } catch (Exception $e) { //echo 'Mesaj gönderilmedi. Hata: ', $mail->ErrorInfo; } } ?> <section class="flat-breadcrumb"> <div class="container"> <div class="row"> <div class="col-md-12"> <ul class="breadcrumbs"> <li class="trail-item"> <a href="#" title="">Anasayfa</a> <span><img src="images/icons/arrow-right.png" alt=""></span> </li> <li class="trail-item"> <a href="shop-cart" title="">Sepeti Görüntüle</a> <span><img src="images/icons/arrow-right.png" alt=""></span> </li> <li class="trail-end"> <a href="shop-checkout" title="">Sipariş</a> </li> </ul><!-- /.breacrumbs --> </div><!-- /.col-md-12 --> </div><!-- /.row --> </div><!-- /.container --> </section><!-- /.flat-breadcrumb --> <style> ul { padding: 0; margin: 0; list-style: none; } .profile .userThreads ul li { width: 100%; display: table; table-layout: fixed; } .profile .bank li { display: table; width: 100%; padding: 25px 15px; border-bottom: 1px solid #e2e6e9; } .profile .bank li .logo { width: 150px; } .profile .bank li .logo, .profile .bank li .acc, .profile .bank li .edit { display: table-cell; vertical-align: middle; } .profile .bank li .logo div { display: table-cell; vertical-align: middle; width: 150px; height: 150px; border: 6px solid #e2e6e9; border-radius: 100%; text-align: center; } .profile .bank li .logo img { max-width: 70%; } .profile .bank li .logo, .profile .bank li .acc, .profile .bank li .edit { display: table-cell; vertical-align: middle; } .profile .bank .acc { line-height: 20px; padding-left: 25px; } .profile .bank .acc .name { color: #3f4257; font-size: 18px; font-weight: 700; margin-bottom: 10px; } .profile .bank li ul li { display: block; padding: 0!important; color: #979aae; font-size: 13px; border: 0; } .profile .bank li ul li span { position: relative; display: inline-block; width: 80px; color: #515365; font-weight: 600; margin-right: 5px; } .profile .bank li ul li span:before { content: ":"; position: absolute; top: 0; right: 0; } .profile .userThreads { display: table; width: 100%; table-layout: fixed; margin-bottom: 25px; } .profile .userThreads .Banka { background: #f5f5f5; border-radius: 4px; box-shadow: 0 0 4px 0 rgba(63,66,87,.1); margin:10px; } .userThreads .iconbox.style1:before { border-radius: 90%; } .userThreads .iconbox.style1:after { border-radius: 90%; } .userThreads .iconbox.style1 { float:right; } </style> <section class="flat-tracking "> <div class="container"> <div class="row profile"> <div class="col-md-12 userThreads"> <?php if ($_POST["radio-cash-2"] == "kart") { echo ' <script src="https://www.paytr.com/js/iframeResizer.min.js"></script> <iframe src="https://www.paytr.com/odeme/guvenli/'.$token.'" id="paytriframe" frameborder="0" scrolling="no" style="width: 100%;"></iframe> <script>iFrameResize({},\'#paytriframe\');</script> '; } else if ($_POST["radio-cash-2"] == "havale") { echo ' <ul class="bank"> '; $banka = $db->query("SELECT * FROM bankalar", PDO::FETCH_ASSOC); if ($banka->rowCount()) { foreach ($banka as $banka) { echo ' <li class="Banka"> <div class="logo"> <div> <img src="'.$banka["resim"].'" alt="" class="loaded" data-was-processed="true"> </div> </div> <div class="acc"> <div class="name"> '.$banka["banka_adi"].'</div> <div class="info"> <ul> <li><span>Ad Soyad</span> '.$banka["ad_soyad"].'</li> <li><span>Para Birimi</span> '.$banka["para_birimi"].'</li> <li><span>Hesap No</span> '.$banka["hesap_no"].'</li> <li><span>Şube</span> '.$banka["sube"].'</li> <li><span>IBAN</span> '.$banka["iban"].' </li> </ul> </div> </div> <div class="edit"> <a onclick="return confirm(\''.$banka["banka_adi"].' '.$banka["hesap_no"].' numaralı hesaba para yatırmak istediğinizi onaylıyor musunuz?\')" href="odeme_basarili.php?banka='.$banka["id"].'&veri='.$eftsonId.'" > <div class="iconbox style1" style="height: 50px;width: 50px;border-radius: 90%;cursor:pointer;"> <div class="box-header"> <div class="image" style="height: 48px;line-height: 48px;"> <img src="images/icons/arrow-right.png" alt=""> </div> </div><!-- /.box-header --> </div> </a> </div> </li> '; } } echo ' </ul> '; } ?> </div><!-- /.col-md-12 --> </div><!-- /.row --> </div><!-- /.container --> </section> <?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