LiteSpeed Linux server2.poyrazhosting.com 3.10.0-962.3.2.lve1.5.77.el7.x86_64 #1 SMP Mon Dec 12 07:06:14 EST 2022 x86_64 safemode : OFF MySQL: OFF | Perl: OFF | cURL: ON | WGet: OFF > / home / cuneytsener53 / eticaret5.snrsoft.com.tr / inc / | Server Ip : 104.21.78.54 |
Filename | /home/cuneytsener53/eticaret5.snrsoft.com.tr/inc/odeme-bildirimi.php |
Size | 5.29 kb |
Permission | rw-r--r-- |
Owner | |
Create time | 02-Mar-2025 05:46 |
Last modified | 26-Oct-2022 17:12 |
Last accessed | 05-Apr-2025 07:41 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
$_title = 'Ödeme Bildirimi';
?>
<!-- Breadcrumb Area Start Here -->
<div class="breadcrumb-area">
<div class="container">
<ol class="breadcrumb breadcrumb-list">
<li class="breadcrumb-item"><a href="/">Ana Sayfa</a></li>
<li class="breadcrumb-item active">Ödeme Bildirimi</li>
</ol>
</div>
</div>
<!-- Breadcrumb Area End Here -->
<!-- Regester Page Start Here -->
<div class="register-area white-bg ptb-50">
<div class="container">
<h3 class="login-header"><img src="https://i.hizliresim.com/fdk7t3y.png"> Ödeme Bildirimi Yapın <br> <br> <p>Lütfen aşağıdaki alana gerekli bilgileri yazınız. Ödeme yapmadan ödeme bildirimi oluşturmayınız.</p></h3>
<div class="row">
<div class="col-xl-12">
<div class="register-contact clearfix" style="padding: 20px;">
<form action="" method="post" >
<div class="col-md-12">
<input type="number" name="no" class="form-control" placeholder="Sipariş Numaranız" required="" style="width:100%">
<br>
<input type="text" name="adsoyad" class="form-control" placeholder="Adınız Soyadınız" required="" style="width:100%">
<br>
<select class="form-control" required="" name="bank" style="width:100%">
<option>Ödeme Yaptığınız Banka</option>
<?php
$query = $db->query("SELECT * FROM banka_hesaplari", PDO::FETCH_ASSOC);
if($query->rowCount()){
foreach($query as $row){
echo '<option value="'.$row['baslik'].'">'.$row['baslik'].'</option>';
}
}
?>
</select>
<hr><br>
<button type="submit" class="btn btn-success" style="width: 100%;">Bildirim Oluştur</button>
<div class="pt-10">
<?php
if($_POST){
if(!empty($_POST['no']) AND !empty($_POST['adsoyad']) AND !empty($_POST['bank'])){
$islem = $db->prepare("INSERT INTO odeme_bildirimleri SET ad_soyad = ?, siparis = ?, banka = ?, tarih = ?");
$islem = $islem->execute(array($_POST['adsoyad'],$_POST['no'],$_POST['bank'],$time));
$mailbody = '<!DOCTYPE html>
<html>
<head>
<title>'.$cek['title'].'</title>
<meta charset="utf-8">
</head>
<body style="padding: 30px">
<div style="width: 98%;margin:0 auto;background: #02add9;padding: 1%;display: inline-block;border-radius: 10px">
<div style="width: 90%;float: left;background: #fff;padding: 10px 5% 20px 5%;">
<center><img src="'.$site.'upload/'.$cek['logo'].'" style="width: 200px"></center>
<table>
<tr>
<th>Sipariş Numarası</th>
<th>Ad Soyad</th>
<th>Banka</th>
</tr>
<tr>
<td>'.$_POST['no'].'</td>
<td>'.$_POST['adsoyad'].'</td>
<td>'.$_POST['bank'].'</td>
</tr>
</table>
</div>
</div>
<style type="text/css">
body{font-family:arial}table{width:100%;border:1px solid #ddd}table tr{padding:0;margin:0}table tr th{border:1px solid #ddd;padding:0;margin:0;background:#02add9;color:#fff;padding:10px}table tr td{border:1px solid #ddd;padding:0;text-align:center;margin:0;border-spacing:0}
</style>
</body>
</html>';
sendMail(["subject"=>"Ödeme Bildirimi","body"=>$mailbody,"mail"=>$cek['siparis_mail']]);
echo '
<div class="col-md-6 offset-md-3">
<center><div class="alert alert-icon alert-success alert-inline show-code-action">
<h4 class="alert-title">
<img src="https://i.hizliresim.com/atane8w.png" style="width:150px">
<div style="margin-top:5px;padding-bottom: 20px;font-size: 18px;color: #229f38;"><b>Bildiriminiz başarı ile gönderildi.</b></div>
</div></center>
</div>';
telegram("Merhaba, mağazanızda yeni bir ödeme bildirimi oluşturuldu.");
}
}
?>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
$_title = 'Ödeme Bildirimi';
?>
<!-- Breadcrumb Area Start Here -->
<div class="breadcrumb-area">
<div class="container">
<ol class="breadcrumb breadcrumb-list">
<li class="breadcrumb-item"><a href="/">Ana Sayfa</a></li>
<li class="breadcrumb-item active">Ödeme Bildirimi</li>
</ol>
</div>
</div>
<!-- Breadcrumb Area End Here -->
<!-- Regester Page Start Here -->
<div class="register-area white-bg ptb-50">
<div class="container">
<h3 class="login-header"><img src="https://i.hizliresim.com/fdk7t3y.png"> Ödeme Bildirimi Yapın <br> <br> <p>Lütfen aşağıdaki alana gerekli bilgileri yazınız. Ödeme yapmadan ödeme bildirimi oluşturmayınız.</p></h3>
<div class="row">
<div class="col-xl-12">
<div class="register-contact clearfix" style="padding: 20px;">
<form action="" method="post" >
<div class="col-md-12">
<input type="number" name="no" class="form-control" placeholder="Sipariş Numaranız" required="" style="width:100%">
<br>
<input type="text" name="adsoyad" class="form-control" placeholder="Adınız Soyadınız" required="" style="width:100%">
<br>
<select class="form-control" required="" name="bank" style="width:100%">
<option>Ödeme Yaptığınız Banka</option>
<?php
$query = $db->query("SELECT * FROM banka_hesaplari", PDO::FETCH_ASSOC);
if($query->rowCount()){
foreach($query as $row){
echo '<option value="'.$row['baslik'].'">'.$row['baslik'].'</option>';
}
}
?>
</select>
<hr><br>
<button type="submit" class="btn btn-success" style="width: 100%;">Bildirim Oluştur</button>
<div class="pt-10">
<?php
if($_POST){
if(!empty($_POST['no']) AND !empty($_POST['adsoyad']) AND !empty($_POST['bank'])){
$islem = $db->prepare("INSERT INTO odeme_bildirimleri SET ad_soyad = ?, siparis = ?, banka = ?, tarih = ?");
$islem = $islem->execute(array($_POST['adsoyad'],$_POST['no'],$_POST['bank'],$time));
$mailbody = '<!DOCTYPE html>
<html>
<head>
<title>'.$cek['title'].'</title>
<meta charset="utf-8">
</head>
<body style="padding: 30px">
<div style="width: 98%;margin:0 auto;background: #02add9;padding: 1%;display: inline-block;border-radius: 10px">
<div style="width: 90%;float: left;background: #fff;padding: 10px 5% 20px 5%;">
<center><img src="'.$site.'upload/'.$cek['logo'].'" style="width: 200px"></center>
<table>
<tr>
<th>Sipariş Numarası</th>
<th>Ad Soyad</th>
<th>Banka</th>
</tr>
<tr>
<td>'.$_POST['no'].'</td>
<td>'.$_POST['adsoyad'].'</td>
<td>'.$_POST['bank'].'</td>
</tr>
</table>
</div>
</div>
<style type="text/css">
body{font-family:arial}table{width:100%;border:1px solid #ddd}table tr{padding:0;margin:0}table tr th{border:1px solid #ddd;padding:0;margin:0;background:#02add9;color:#fff;padding:10px}table tr td{border:1px solid #ddd;padding:0;text-align:center;margin:0;border-spacing:0}
</style>
</body>
</html>';
sendMail(["subject"=>"Ödeme Bildirimi","body"=>$mailbody,"mail"=>$cek['siparis_mail']]);
echo '
<div class="col-md-6 offset-md-3">
<center><div class="alert alert-icon alert-success alert-inline show-code-action">
<h4 class="alert-title">
<img src="https://i.hizliresim.com/atane8w.png" style="width:150px">
<div style="margin-top:5px;padding-bottom: 20px;font-size: 18px;color: #229f38;"><b>Bildiriminiz başarı ile gönderildi.</b></div>
</div></center>
</div>';
telegram("Merhaba, mağazanızda yeni bir ödeme bildirimi oluşturuldu.");
}
}
?>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>