ss - PHP Online
Form of PHP Sandbox
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of ss.php
- <?php
- include'netting/baglan.php';
- error_reporting(E_ALL);
- ini_set("display_errors", 1);
- //################################################################################################################
- // LIVESEARCH KODLARI
- //################################################################################################################
- /* Database Bağlantısı */
- // if (isset($_REQUEST['term'])) { // Bir terim gelip gelmediğini kontrol ediyoruz.
- // $term = $_REQUEST['term']; // Gelen terimi değişkene atıyoruz.
- // /* Gelen terim ile eşleşen kayıt olup olmadığını sorguluyoruz. */
- // $sSorgu=$db->query("SELECT * FROM il WHERE isim LIKE '".$term."%'", PDO::FETCH_ASSOC);
- // if ($sSorgu) { // Sorgulama sonucu dolu olursa eğer sonuçları ekrana basıyoruz.
- // $sSorgu=$db->query("SELECT * FROM il WHERE isim LIKE '".$term."%' limit 4", PDO::FETCH_ASSOC);
- // foreach($sSorgu as $scek){
- // $name = $scek['isim'];
- // echo '<li class="list-group-item sonuclar">'.$name.'</li>';
- // }
- ?>
- <script type="text/javascript">
- // // const myLists = document.querySelectorAll('.liveresult');
- // // document.addEventListener('click', (event) => {
- // // myLists.forEach(myList => {
- // // if (!myList.contains(event.target)) {
- // // myList.style.display = 'none';
- // // }
- // // });
- // // });
- // const myDiv = document.getElementById("liveresult");
- // document.addEventListener("click", (event) => {
- // if (!event.target.classList.contains("myClass") && event.target.tagName !== "BODY") {
- // myDiv.style.display = "none";
- // }
- // });
- </script>
- <?php
- // }else{
- // // Eğer eşleşen kayıt yoksa alttaki uyarıyı ekrana basıyoruz.
- // echo '<li class="list-group-item">Eşleşen kayıt bulunamadı.</li>';
- // }
- // }
- use PHPMailer\PHPMailer\PHPMailer;
- use PHPMailer\PHPMailer\Exception;
- require 'src/Exception.php';
- require 'src/PHPMailer.php';
- require 'src/SMTP.php';
- //################################################################################################################
- //KULLANICI TARAFINDAN GELEN TARİHLERİ ALIN!
- if (isset($_POST['from']) && isset($_POST['to'])) {
- // KULLANICIDAN GELEN DEĞERLER
- $giristarihi = postduzenle($_POST['from']);
- $cikistarihi = postduzenle($_POST['to']);
- $villaid = postduzenle(intval($_POST['villaid']));
- if (strlen($giristarihi)==10 && strlen($cikistarihi)==10) {
- $villasorgu=$db->prepare("SELECT * from villadetay where villaid=?");
- $villasorgu->execute(array($villaid));
- $villadetay=$villasorgu->fetch(PDO::FETCH_ASSOC);
- // VİLLA VAR MI KONTROLU
- if ($villaid!=$villadetay['villaid']) {
- echo 'Ürün Bulunamadı!';
- exit();
- }else{
- $villaid=$villadetay['villaid'];
- //KULLANICININ SEÇMİŞ OLDUĞU TARİH ARALIĞINDAKİ GÜNLER
- $kullanicininsectigigunler_array = array();
- $start = new DateTime($giristarihi);
- $end = new DateTime($cikistarihi);
- $end->modify('+1 day'); // 1 Gün daha ekliyoruz çünkü son seçtiği tarihi listelemek için
- $interval = new DateInterval('P1D');
- $period = new DatePeriod($start, $interval, $end);
- $i=0;
- foreach ($period as $date) {
- $kullanicininsectigigunler = $date->format('m/d/Y');
- array_push($kullanicininsectigigunler_array, $kullanicininsectigigunler);
- $i++;
- }
- // REZERVASYONLU OLAN GÜNLER
- $sSorgu=$db->query("SELECT * FROM rezervasyon WHERE villaid=$villaid AND durum=1", PDO::FETCH_ASSOC);
- $rezervasyonlugunler_array = array();
- foreach($sSorgu as $scek){
- $giristarihleri = $scek['giris_tarih'];
- $cikistarihleri = $scek['cikis_tarih'];
- $start = new DateTime($giristarihleri);
- $end = new DateTime($cikistarihleri);
- $end->modify('+1 day'); // SON SEÇTİĞİ TARİHİ LİSTELEMEK İÇİN "1" GÜN DAHA EKLİYORUZ
- $interval = new DateInterval('P1D');
- $period = new DatePeriod($start, $interval, $end);
- foreach ($period as $date) {
- $rezervasyonlugunler = $date->format('m/d/Y');
- array_push($rezervasyonlugunler_array, $rezervasyonlugunler);
- }
- }
- $overlap=array_intersect($rezervasyonlugunler_array, $kullanicininsectigigunler_array);
- if (count($overlap) > 0) {
- echo'<hr><span style="color: red;">"<b>Rezervasyona Uygun Değildir!</b>"</span><br>Seçtiğiniz Tarih Aralığı Müsait Değildir';
- exit();
- }elseif($i==0) {
- echo'<hr><span style="color: red;">"<b>Rezervasyona Uygun Değildir!</b>"</span><br>Giriş Tarihi, Çıkış Tarihinden Önce Olmalıdır';
- exit();
- }else{
- // FİYAT BİLGİSİ HESAPLAMA
- // BAŞLANGIÇ DEĞERLERİ
- // ÖDEME LİSTESİ VE ÖDEME TÜRÜ
- $OnOdemeOrani = isset($siteayar['onOdemeOrani']) ? $siteayar['onOdemeOrani'] : 0;
- $odemeTuru = isset($villadetay['odeme_yontemi']) ? $villadetay['odeme_yontemi'] : "tamOdeme"
- $fiyat['konaklama'] = 0;
- $min['konaklama_gunu'] = isset($villadetay['min_konaklama_suresi']) ? $villadetay['min_konaklama_suresi'] : 0;
- $fiyat['temizlik'] = isset($villadetay['temizlik_ucreti']) ? $villadetay['temizlik_ucreti'] : 0;
- $min['temizlik_gunu'] = isset($villadetay['min_temizlikucreti_gunu']) ? $villadetay['min_temizlikucreti_gunu'] : 0;
- $fiyat['depozito'] = isset($villadetay['depozito_ucreti']) ? $villadetay['depozito_ucreti'] : 0;
- $fiyat['onOdeme'] = 0;
- $fiyat['kalanOdenicek'] = 0;
- $fiyat['toplamOdencek'] = 0;
- $sonucYazisi = "Fatal Error (null)";
- // ÖDEME YÖNTEMİ DOĞRU MU KONTROLÜ
- if ($odemeTuru<>"tamOdeme" && $odemeTuru<>"onOdeme") {
- echo '<hr><span style="color: red;">"<b>Rezervasyona Uygun Değildir!</b>"</span><br>Ödeme Yöntemi Geçerli Değildir. Lütfen Bizimle İletişime Geçiniz.';
- exit();
- }
- // KULLANICININ SEÇMİŞ OLDUĞU GÜNLER
- $from_date = new DateTime($_POST['from']);
- $to_date = new DateTime($_POST['to']);
- // ###################################
- $gun_sayisi = $from_date->diff($to_date)->days + 1;
- $gunler = [];
- for ($i = 0; $i < $gun_sayisi; $i++) {
- $gunler[] = $from_date->format('Y-m-d');
- $from_date->modify('+1 day');
- }
- // FİYAT BİLGİLERİNİ HESAPLAMA
- $donemlikFiyatlar = $db->query("SELECT * FROM donemlik_fiyatlar WHERE villaid=$villaid", PDO::FETCH_ASSOC)->fetchAll();
- foreach ($gunler as $gun) {
- // Fiyat Şuan Yok
- $fiyatSuanVarMi = false;
- foreach ($donemlikFiyatlar as $donemlikFiyat) {
- $fiyat_baslangic = new DateTime($donemlikFiyat['baslangic_tarihi']);
- $fiyat_bitis = new DateTime($donemlikFiyat['bitis_tarihi']);
- if ($gun >= $fiyat_baslangic->format('Y-m-d') && $gun <= $fiyat_bitis->format('Y-m-d')) {
- // Fiyat Şuan Var
- $fiyatSuanVarMi = true;
- // Konaklama Fiyatına Alınan Değerleri Aktar
- $fiyat['konaklama'] += $donemlikFiyat['fiyat'];
- break;
- }
- }
- // Eğer Fiyat Yoksa Hata Yazdır
- if (!$fiyatSuanVarMi) {
- echo '<hr><span style="color: red;">"<b>Rezervasyona Uygun Değildir!</b>"</span><br>Fiyat bilgisi bulunmayan günler mevcut.<br>Lütfen Dönemlik Fiyatlar Listemize Bakınız';
- exit();
- }
- }
- // KULLANICININ SEÇTİĞİ GÜN MİN KONAKLAMA SÜRESİ ALTINDA MI ?
- if ($gun_sayisi<$min['konaklama_gunu']) {
- echo'<hr><span style="color: red;">"<b>Rezervasyona Uygun Değildir!</b>"</span><br>Seçtiğiniz günler minimum konaklama süresinin altındadır.<br><b> Minimum '.$min['konaklama_gunu'].' Gün Seçmeniz Gerekiyor!</b>';
- exit();
- }
- $fiyat['toplamOdencek'] = $fiyat['konaklama']+$fiyat['depozito'];
- // SONUÇ YAZISI (KONAKLAMA ÜCRET;)
- $sonucYazisi='<hr><div style="color: green;"><b>REZERVASYONA UYGUNDUR</b></div><div style="color: black;"><div style="float: left; width: 50%;">Konaklama ('.$gun_sayisi.' Gece):</div><div style="float: right; width: 50%; text-align: right;"><b>'.fiyat($fiyat['konaklama']).' ₺</b></div><div style="clear: both;"></div></div><div style="color: black;"><div style="float: left; width: 50%;">Depozito Ücreti:</div><div style="float: right; width: 50%; text-align: right;"><b>'.fiyat($fiyat['depozito']).' ₺</b></div><div style="clear: both;"></div></div>';
- // <div style="color: black;"><div style="float: left; width: 50%;">Depozito Ücreti:</div><div style="float: right; width: 50%; text-align: right;"><b>'.fiyat($depozitoUcreti).' ₺</b></div><div style="clear: both;"></div></div>
- // KULLANICININ SEÇTİĞİ GÜN SAYISINA GÖRE TEMİZLİK ÜCRETİ EKLENSİN VEYA EKLENMESİN KONTROLÜ (TEMİZLİK ÜCRETİ)
- if ($gun_sayisi < $min['temizlik_gunu']) {
- $fiyat['toplamOdencek']+=$fiyat['temizlik'];
- $sonucYazisi.='<div style="color: black;"><div style="float: left; width: 50%;">Temizlik Ücreti:</div><div style="float: right; width: 50%; text-align: right;"><b>'.fiyat($fiyat['temizlik']).' ₺</b></div><div style="clear: both;"></div></div>';
- }
- // ÖN ÖDEME TUTARINI HESAPLAMA İŞLEMİ
- if ($odemeTuru=="onOdeme") {
- // ÖNDEN ÖDENİCEK FİYAT
- $fiyat['onOdeme'] = ($fiyat['toplamOdencek'] * intval($OnOdemeOrani)) / 100;
- // KALAN ÖDENİCEK FİYAT
- $sonucYazisi .= '<div style="color: black;"><div style="float: left; width: 50%;"><b>TOPLAM FİYAT:</b></div><div style="float: right; width: 50%; text-align: right;"><b>'.fiyat($fiyat['toplamOdencek']).' ₺</b></div><div style="clear: both;"></div></div>';
- $fiyat['kalanOdenicek'] = $fiyat['toplamOdencek'] - $fiyat['onOdeme'];
- $sonucYazisi .= '<hr><div style="color: black;"><div style="float: left; width: 50%;"><b>Ön Ödeme:</b></div><div style="float: right; width: 50%; text-align: right;"><b>'.fiyat($fiyat['onOdeme']).' ₺</b></div><div style="clear: both;"></div></div>';
- $sonucYazisi .= '<div style="color: black;"><div style="float: left; width: 50%;"><b>Eve Girişte Ödenecek:</b></div><div style="float: right; width: 50%; text-align: right;"><b>'.fiyat($fiyat['kalanOdenicek']).' ₺</b></div><div style="clear: both;"></div></div>';
- }else{
- $sonucYazisi .= '<hr><div style="color: black;"><div style="float: left; width: 50%;"><b>Ödenecek Fiyat:</b></div><div style="float: right; width: 50%; text-align: right;"><b>'.fiyat($fiyat['toplamOdencek']).' ₺</b></div><div style="clear: both;"></div></div>';
- }
- //
- echo $sonucYazisi;
- if (isset($_POST["a"])==1 && isset($_SESSION['kadi'])) {
- if ($kullanici['yetki']!=1) {
- $durum=0;
- $rezervasyonsorgu=$db->prepare("SELECT * from rezervasyon where kullanici_id=? AND villaid=? AND durum=0 ORDER BY ID DESC LIMIT 1");
- $rezervasyonsorgu->execute(array($kullanici['id'],$villaid));
- $rezervasyondetay=$rezervasyonsorgu->fetch(PDO::FETCH_ASSOC);
- if ($rezervasyondetay) {
- $stmt = $db->prepare("DELETE FROM rezervasyon WHERE kullanici_id =? AND villaid =? AND durum=0 LIMIT 1");
- $stmt->execute(array($kullanici['id'],$villaid));
- $stmt2=$stmt->fetch(PDO::FETCH_ASSOC);
- if ($stmt2) {
- echo"Silindi";
- }
- }
- }else{
- $durum=1;
- }
- $rezervasyonekle = $db->prepare("INSERT INTO rezervasyon (`villaid`,`giris_tarih`,`cikis_tarih`,`durum`,`kullanici_id`,`ad_soyad`,`telefon`,`mail`,`detay`,`fiyat`,`onOdemeFiyati`,`villayaGiristeOdenecek`,`adet`,`tarih`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
- $rezervasyonekle->execute(array($villadetay['villaid'],$giristarihi,$cikistarihi,$durum,$kullanici['id'],$kullanici['ad']." ".$kullanici['soyad'],$kullanici['telefon'],$kullanici['mail'],"Notu Yok",$toplamOdencekFiyat,$onOdemeFiyati,$villayaGiristeOdenecek,$depozitoUcreti,$temizlikUcreti,$i,$simdikizaman));
- if ($rezervasyonekle) {
- $rezervasyonsorgu=$db->prepare("SELECT * from rezervasyon where kullanici_id=? AND villaid=? AND durum=0 LIMIT 1");
- $rezervasyonsorgu->execute(array($kullanici['id'],$villaid));
- $rezervasyondetay=$rezervasyonsorgu->fetch(PDO::FETCH_ASSOC);
- $id=$rezervasyondetay['id'];
- echo'V7IoJ2m2n/NtvnLgGsZozAL3qaV/wRZBtBrgbGSQkPs=';
- $villasorgu2=$db->prepare("SELECT * from villalar where id=?");
- $villasorgu2->execute(array($villaid));
- $villa=$villasorgu2->fetch(PDO::FETCH_ASSOC);
- $mail = new PHPMailer(true); //PHPMailer Sınıfı aktif ettik.
- try {
- $mail->setLanguage('tr'); //Dil ayarını yaptık.
- //$mail->SMTPDebug = 2; herhangi bir hata oluştuğunda ayrıntılı bir şekilde bilgi verecektir.
- $mail->isSMTP(); //SMTP ayarını aktif etmek.
- $mail->Host = 'mail.kurumsaleposta.com'; //mail servisi host name
- $mail->SMTPAuth = true; //smtp sunucu
- $mail->Username = 'noreply@seyahatvillam.com'; //alıcı mail adresi
- $mail->Password = 'SabanYasar94'; //alıcı mail adresi parolası
- $mail->SMTPSecure = 'SSL'; //STMP güvenliği
- $mail->Port = 587; //STMP port ayarı
- $mail->CharSet = 'UTF-8';
- // maili gönderen kişi
- $mail->setFrom("noreply@seyahatvillam.com", "Seyahat Villam | NoReply"); //Gonderen mail
- $mail->addAddress($kullanici['mail'],""); //alıcı mail
- $mail->addReplyTo("noreply@seyahatvillam.com", "Seyahat Villam | NoReply"); //Gonderen mail
- $mail->isHTML(true); //HTML formatı aktif
- $mail->Subject = "Rezervasyon Detaylarınız"; //Mesaj konusu
- $mail->Body = '
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
- <head>
- <!--[if gte mso 9]>
- <xml>
- <o:OfficeDocumentSettings>
- <o:AllowPNG/>
- <o:PixelsPerInch>96</o:PixelsPerInch>
- </o:OfficeDocumentSettings>
- </xml>
- <![endif]-->
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="x-apple-disable-message-reformatting">
- <!--[if !mso]><!--><meta http-equiv="X-UA-Compatible" content="IE=edge"><!--<![endif]-->
- <title></title>
- <style type="text/css">
- @media only screen and (min-width: 620px) {
- .u-row {
- width: 600px !important;
- }
- .u-row .u-col {
- vertical-align: top;
- }
- .u-row .u-col-100 {
- width: 600px !important;
- }
- }
- @media (max-width: 620px) {
- .u-row-container {
- max-width: 100% !important;
- padding-left: 0px !important;
- padding-right: 0px !important;
- }
- .u-row .u-col {
- min-width: 320px !important;
- max-width: 100% !important;
- display: block !important;
- }
- .u-row {
- width: 100% !important;
- }
- .u-col {
- width: 100% !important;
- }
- .u-col > div {
- margin: 0 auto;
- }
- }
- body {
- margin: 0;
- padding: 0;
- }
- table,
- tr,
- td {
- vertical-align: top;
- border-collapse: collapse;
- }
- p {
- margin: 0;
- }
- .ie-container table,
- .mso-container table {
- table-layout: fixed;
- }
- * {
- line-height: inherit;
- }
- a[x-apple-data-detectors='."true".'] {
- color: inherit !important;
- text-decoration: none !important;
- }
- table, td { color: #000000; } #u_body a { color: #0000ee; text-decoration: underline; } @media (max-width: 480px) { #u_content_heading_1 .v-container-padding-padding { padding: 30px 10px 20px !important; } #u_content_heading_1 .v-font-size { font-size: 26px !important; } #u_content_image_1 .v-src-width { width: auto !important; } #u_content_image_1 .v-src-max-width { max-width: 50% !important; } #u_content_text_1 .v-container-padding-padding { padding: 60px 10px 10px !important; } #u_content_text_2 .v-container-padding-padding { padding: 10px !important; } #u_content_button_1 .v-container-padding-padding { padding: 10px !important; } #u_content_button_1 .v-size-width { width: 65% !important; } #u_content_text_3 .v-container-padding-padding { padding: 10px 10px 30px !important; } #u_content_social_1 .v-container-padding-padding { padding: 30px 10px 10px !important; } #u_content_text_4 .v-container-padding-padding { padding: 10px 10px 30px !important; } }
- </style>
- <!--[if !mso]><!--><link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap" rel="stylesheet" type="text/css"><link href="https://fonts.googleapis.com/css2?family=Epilogue:wght@500&display=swap" rel="stylesheet" type="text/css"><!--<![endif]-->
- </head>
- <body class="clean-body u_body" style="margin: 0;padding: 0;-webkit-text-size-adjust: 100%;background-color: #ecf0f1;color: #000000">
- <!--[if IE]><div class="ie-container"><![endif]-->
- <!--[if mso]><div class="mso-container"><![endif]-->
- <table id="u_body" style="border-collapse: collapse;table-layout: fixed;border-spacing: 0;mso-table-lspace: 0pt;mso-table-rspace: 0pt;vertical-align: top;min-width: 320px;Margin: 0 auto;background-color: #ecf0f1;width:100%" cellpadding="0" cellspacing="0">
- <tbody>
- <tr style="vertical-align: top">
- <td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top">
- <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color: #ecf0f1;"><![endif]-->
- <div class="u-row-container" style="padding: 0px;background-color: transparent">
- <div class="u-row" style="Margin: 0 auto;min-width: 320px;max-width: 600px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;">
- <div style="border-collapse: collapse;display: table;width: 100%;height: 100%;background-color: transparent;">
- <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: transparent;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:600px;"><tr style="background-color: transparent;"><![endif]-->
- <!--[if (mso)|(IE)]><td align="center" width="600" style="width: 600px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;" valign="top"><![endif]-->
- <div class="u-col u-col-100" style="max-width: 320px;min-width: 600px;display: table-cell;vertical-align: top;">
- <div style="height: 100%;width: 100% !important;">
- <!--[if (!mso)&(!IE)]><!--><div style="box-sizing: border-box; height: 100%; padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;"><!--<![endif]-->
- <table id="u_content_heading_1" style="font-family:'."Open Sans".',sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
- <tbody>
- <tr>
- <td class="v-container-padding-padding" style="overflow-wrap:break-word;word-break:break-word;padding:60px 10px 20px;font-family:'."Open Sans".',sans-serif;" align="left">
- <h1 class="v-font-size" style="margin: 0px; line-height: 130%; text-align: center; word-wrap: break-word; font-family: Epilogue; font-size: 32px; "><strong>Seyahat Villam | Rezervasyon</strong></h1>
- </td>
- </tr>
- </tbody>
- </table>
- <table id="u_content_image_1" style="font-family:'."Open Sans".',sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
- <tbody>
- <tr>
- <td class="v-container-padding-padding" style="overflow-wrap:break-word;word-break:break-word;padding:10px 10px 0px;font-family:'."Open Sans".',sans-serif;" align="left">
- <table width="100%" cellpadding="0" cellspacing="0" border="0">
- <tr>
- <td style="padding-right: 0px;padding-left: 0px;" align="center">
- <img align="center" border="0" src="seyahatvillam.com/images/image-4.png" alt="" title="" style="outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;clear: both;display: inline-block !important;border: none;height: auto;float: none;width: 55%;max-width: 319px;" width="319" class="v-src-width v-src-max-width"/>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- <!--[if (!mso)&(!IE)]><!--></div><!--<![endif]-->
- </div>
- </div>
- <!--[if (mso)|(IE)]></td><![endif]-->
- <!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]-->
- </div>
- </div>
- </div>
- <div class="u-row-container" style="padding: 0px;background-color: transparent">
- <div class="u-row" style="Margin: 0 auto;min-width: 320px;max-width: 600px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;">
- <div style="border-collapse: collapse;display: table;width: 100%;height: 100%;background-color: transparent;">
- <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: transparent;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:600px;"><tr style="background-color: transparent;"><![endif]-->
- <!--[if (mso)|(IE)]><td align="center" width="600" style="background-color: #ffffff;width: 600px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;" valign="top"><![endif]-->
- <div class="u-col u-col-100" style="max-width: 320px;min-width: 600px;display: table-cell;vertical-align: top;">
- <div style="background-color: #ffffff;height: 100%;width: 100% !important;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;">
- <!--[if (!mso)&(!IE)]><!--><div style="box-sizing: border-box; height: 100%; padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;"><!--<![endif]-->
- <table id="u_content_text_1" style="font-family:'."Open Sans".',sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
- <tbody>
- <tr>
- <td class="v-container-padding-padding" style="overflow-wrap:break-word;word-break:break-word;padding:60px 30px 10px;font-family:'."Open Sans".',sans-serif;" align="left">
- <div class="v-font-size" style="line-height: 140%; text-align: justify; word-wrap: break-word;">
- <p style="font-size: 14px; line-height: 140%;"><strong>Merhaba '.$kullanici['ad']." ".$kullanici['soyad'].'</strong>,</p>
- <p style="font-size: 14px; line-height: 140%;"> </p>
- <p style="font-size: 14px; line-height: 140%;">Siparişiniz şu anda oluşturuldu ve ilgili kişilere sipariş detaylarınız gönderildi. En yakın zamanda Seyahat Villam Yetkililerimiz sizi arayıp bilgi vereceklerdir.</p>
- <p style="font-size: 14px; line-height: 140%;">Bizi tercih ettiğiniz için teşekkür ederiz.</p>
- <p style="font-size: 14px; line-height: 140%;"> </p>
- <p style="font-size: 14px; line-height: 140%;"> </p>
- <p style="font-size: 14px; line-height: 140%;"><strong>Ürün Adı:</strong> '.$villa['villa_ad'].'</p>
- <p style="line-height: 140%;"><strong>Sipariş Numarası:</strong> #'.$id.'</p>
- <p style="line-height: 140%;"><strong>Sipariş Tarihi:</strong> '.$rezervasyondetay['tarih'].'</p>
- <p style="line-height: 140%;"><strong><span style="text-decoration: line-through; line-height: 19.6px;">-------------------------------------------------------------</span></strong></p>
- <p style="line-height: 140%;"><strong>Giriş Tarihi:</strong> '.tarih($rezervasyondetay['giris_tarih']).'</p>
- <p style="line-height: 140%;"><strong>Çıkış Tarihi:</strong> '.tarih($rezervasyondetay['cikis_tarih']).'</p>
- <p style="line-height: 140%;"> </p>
- <p style="line-height: 140%;"><span style="font-size: 16px; line-height: 22.4px;"><strong>Ön ödeme:</strong></span></p>
- <p style="line-height: 140%;"><span style="color: #000000; line-height: 19.6px;">'.fiyat($onOdemeFiyati)." TL".' ('.$i.' Gün)</span></p>
- <p style="line-height: 140%;"><span style="font-size: 16px; line-height: 22.4px;"><strong>Villaya Girişte Ödenecek:</strong></span></p>
- <p style="line-height: 140%;"><span style="color: #000000; line-height: 19.6px;">'.fiyat($villayaGiristeOdenecek)." TL".' ('.$i.' Gün)</span></p>
- <p style="line-height: 140%;"> </p>
- <p style="line-height: 140%;"><span style="font-size: 16px; line-height: 22.4px;"><strong>Toplam Ödenicek Fiyat:</strong></span></p>
- <p style="line-height: 140%;"><span style="color: #000000; line-height: 19.6px;">'.fiyat($toplamOdencekFiyat)." TL".' ('.$i.' Gün)</span></p>
- <p style="line-height: 140%;"> </p>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <table id="u_content_text_2" style="font-family:'."Open Sans".',sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
- <tbody>
- <tr>
- <td class="v-container-padding-padding" style="overflow-wrap:break-word;word-break:break-word;padding:10px 10px 10px 30px;font-family:'."Open Sans".',sans-serif;" align="left">
- <div class="v-font-size" style="line-height: 140%; text-align: left; word-wrap: break-word;">
- <p style="font-size: 14px; line-height: 140%;"><strong>Sipariş İptali için:</strong></p>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <table id="u_content_button_1" style="font-family:'."Open Sans".',sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
- <tbody>
- <tr>
- <td class="v-container-padding-padding" style="overflow-wrap:break-word;word-break:break-word;padding:10px 10px 10px 30px;font-family:'."Open Sans".',sans-serif;" align="left">
- <!--[if mso]><style>.v-button {background: transparent !important;}</style><![endif]-->
- <div align="left">
- <!--[if mso]><v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="" style="height:37px; v-text-anchor:middle; width:168px;" arcsize="0%" stroke="f" fillcolor="#ff5770"><w:anchorlock/><center style="color:#FFFFFF;font-family:'."Open Sans".',sans-serif;"><![endif]-->
- <a href="" target="_blank" class="v-button v-size-width v-font-size" style="box-sizing: border-box;display: inline-block;font-family:'."Open Sans".',sans-serif;text-decoration: none;-webkit-text-size-adjust: none;text-align: center;color: #FFFFFF; background-color: #ff5770; border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px; width:30%; max-width:100%; overflow-wrap: break-word; word-break: break-word; word-wrap:break-word; mso-border-alt: none;font-size: 14px;">
- <span style="display:block;padding:10px 20px;line-height:120%;">IPTAL</span>
- </a>
- <!--[if mso]></center></v:roundrect><![endif]-->
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <table id="u_content_text_3" style="font-family:'."Open Sans".',sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
- <tbody>
- <tr>
- <td class="v-container-padding-padding" style="overflow-wrap:break-word;word-break:break-word;padding:10px 10px 60px 30px;font-family:'."Open Sans".',sans-serif;" align="left">
- <div class="v-font-size" style="line-height: 140%; text-align: left; word-wrap: break-word;">
- <p style="font-size: 14px; line-height: 140%;">Saygılarımızla,</p>
- <p style="font-size: 14px; line-height: 140%;"> </p>
- <p style="font-size: 14px; line-height: 140%;"><span style="color: #ff5770; line-height: 19.6px;"><strong>Keyifli Tatiller!!!</strong></span></p>
- <p style="font-size: 14px; line-height: 140%;">Seyahat Villam Ekibi</p>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <!--[if (!mso)&(!IE)]><!--></div><!--<![endif]-->
- </div>
- </div>
- <!--[if (mso)|(IE)]></td><![endif]-->
- <!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]-->
- </div>
- </div>
- </div>
- <div class="u-row-container" style="padding: 0px;background-color: transparent">
- <div class="u-row" style="Margin: 0 auto;min-width: 320px;max-width: 600px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;">
- <div style="border-collapse: collapse;display: table;width: 100%;height: 100%;background-color: transparent;">
- <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: transparent;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:600px;"><tr style="background-color: transparent;"><![endif]-->
- <!--[if (mso)|(IE)]><td align="center" width="600" style="width: 600px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;" valign="top"><![endif]-->
- <div class="u-col u-col-100" style="max-width: 320px;min-width: 600px;display: table-cell;vertical-align: top;">
- <div style="height: 100%;width: 100% !important;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;">
- <!--[if (!mso)&(!IE)]><!--><div style="box-sizing: border-box; height: 100%; padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;"><!--<![endif]-->
- <table id="u_content_social_1" style="font-family:'."Open Sans".',sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
- <tbody>
- <tr>
- <td class="v-container-padding-padding" style="overflow-wrap:break-word;word-break:break-word;padding:60px 10px 10px;font-family:'."Open Sans".',sans-serif;" align="left">
- <div align="center">
- <div style="display: table; max-width:140px;">
- <!--[if (mso)|(IE)]><table width="140" cellpadding="0" cellspacing="0" border="0"><tr><td style="border-collapse:collapse;" align="center"><table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse; mso-table-lspace: 0pt;mso-table-rspace: 0pt; width:140px;"><tr><![endif]-->
- <!--[if (mso)|(IE)]><td width="32" style="width:32px; padding-right: 15px;" valign="top"><![endif]-->
- <table align="left" border="0" cellspacing="0" cellpadding="0" width="32" height="32" style="width: 32px !important;height: 32px !important;display: inline-block;border-collapse: collapse;table-layout: fixed;border-spacing: 0;mso-table-lspace: 0pt;mso-table-rspace: 0pt;vertical-align: top;margin-right: 15px">
- <tbody><tr style="vertical-align: top"><td align="left" valign="middle" style="word-break: break-word;border-collapse: collapse !important;vertical-align: top">
- <a href="https://instagram.com/" title="Instagram" target="_blank">
- <img src="seyahatvillam.com/images/image-1.png" alt="Instagram" title="Instagram" width="32" style="outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;clear: both;display: block !important;border: none;height: auto;float: none;max-width: 32px !important">
- </a>
- </td></tr>
- </tbody></table>
- <!--[if (mso)|(IE)]></td><![endif]-->
- <!--[if (mso)|(IE)]><td width="32" style="width:32px; padding-right: 15px;" valign="top"><![endif]-->
- <table align="left" border="0" cellspacing="0" cellpadding="0" width="32" height="32" style="width: 32px !important;height: 32px !important;display: inline-block;border-collapse: collapse;table-layout: fixed;border-spacing: 0;mso-table-lspace: 0pt;mso-table-rspace: 0pt;vertical-align: top;margin-right: 15px">
- <tbody><tr style="vertical-align: top"><td align="left" valign="middle" style="word-break: break-word;border-collapse: collapse !important;vertical-align: top">
- <a href="https://facebook.com/" title="Facebook" target="_blank">
- <img src="seyahatvillam.com/images/image-2.png" alt="Facebook" title="Facebook" width="32" style="outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;clear: both;display: block !important;border: none;height: auto;float: none;max-width: 32px !important">
- </a>
- </td></tr>
- </tbody></table>
- <!--[if (mso)|(IE)]></td><![endif]-->
- <!--[if (mso)|(IE)]><td width="32" style="width:32px; padding-right: 0px;" valign="top"><![endif]-->
- <table align="left" border="0" cellspacing="0" cellpadding="0" width="32" height="32" style="width: 32px !important;height: 32px !important;display: inline-block;border-collapse: collapse;table-layout: fixed;border-spacing: 0;mso-table-lspace: 0pt;mso-table-rspace: 0pt;vertical-align: top;margin-right: 0px">
- <tbody><tr style="vertical-align: top"><td align="left" valign="middle" style="word-break: break-word;border-collapse: collapse !important;vertical-align: top">
- <a href="https://twitter.com/" title="Twitter" target="_blank">
- <img src="seyahatvillam.com/images/image-3.png" alt="Twitter" title="Twitter" width="32" style="outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;clear: both;display: block !important;border: none;height: auto;float: none;max-width: 32px !important">
- </a>
- </td></tr>
- </tbody></table>
- <!--[if (mso)|(IE)]></td><![endif]-->
- <!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]-->
- </div>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <table id="u_content_text_4" style="font-family:'."Open Sans".',sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
- <tbody>
- <tr>
- <td class="v-container-padding-padding" style="overflow-wrap:break-word;word-break:break-word;padding:10px 100px 60px;font-family:'."Open Sans".',sans-serif;" align="left">
- <div class="v-font-size" style="line-height: 160%; text-align: center; word-wrap: break-word;">
- <p style="font-size: 14px; line-height: 160%;">Uygun fiyatlı güvenilir villa kiralama hizmeti <span style="color: #000000; line-height: 22.4px;"><a rel="noopener" href="http://www.SeyahatVillam.com" target="_blank" style="color: #000000;">www.SeyahatVillam.com</a></span></p>
- <p style="font-size: 14px; line-height: 160%;"> </p>
- <p style="font-size: 14px; line-height: 160%; text-align: center;">© 2023 All Rights Reserved</p>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <!--[if (!mso)&(!IE)]><!--></div><!--<![endif]-->
- </div>
- </div>
- <!--[if (mso)|(IE)]></td><![endif]-->
- <!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]-->
- </div>
- </div>
- </div>
- <!--[if (mso)|(IE)]></td></tr></table><![endif]-->
- </td>
- </tr>
- </tbody>
- </table>
- <!--[if mso]></div><![endif]-->
- <!--[if IE]></div><![endif]-->
- </body>
- </html>
- ';
- $mail->send();
- } catch (Exception $e){
- echo $e->errorMessage();
- }
- }
- }
- }
- }
- }else{
- echo'<hr><div style="color: red;" class="form-group mb-2"><b>Boş alan bırakmayınız!</b></div>';
- exit();
- }
- }else{
- echo'Lütfen tarih seçiniz!';
- exit();
- }
- ?>