📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
b2be-ticaretscripti.demodesign.com.tr
/
new
📝
sepet.php
← Geri Dön
<title>Alışveriş Sepetim</title> <meta name="keywords" content="<?php echo $ayar['sitekey']; ?>"> <meta name="description" content="<?php echo $ayar['sitedesc']; ?>"> <meta property="og:url" content="<?php echo $url; ?>"/> <meta property="og:title" content="Alışveriş Sepetim"/> <meta property="og:description" content="<?php echo $ayar['sitedesc']; ?>"/> <style> </style> <?php if (isset($_POST['sepetupdate'])) { $urunid = temizle($_POST['urunid']); $adet = temizle($_POST['adet']); $sepetid = temizle($_POST['sepetid']); $sepeturunid = $ozy->query("select * from urunler where id='$urunid'")->fetch(PDO::FETCH_ASSOC); if ($sepeturunid['alode'] == '1' and $_POST['adet'] >= $sepeturunid['al']) { $sonadet = temizle($_POST['adet']); $alodedurum = "1"; $yeniadet = $sonadet / $sepeturunid['al']; $adet = ceil($yeniadet * $sepeturunid['ode']); $alodedurum = "1"; $kazanc = $sonadet - $adet; $alodemetin = "" . $kazanc . " ADET ÜRÜN HEDİYE"; $alodeadet = $kazanc; } else { $adet = temizle($_POST['adet']); $alodedurum = "0"; $alodemetin = ""; $alodeadet = ""; } $stok = $sepeturunid['stok']; if ($system['sinirsizstok'] != '1') { if ($adet > $stok) { echo '<script type="text/javascript">$(document).ready(function(){toastr["error"]("' . $sepeturunid['adi'] . ' isimli üründen en fazla ' . $stok . ' adet alabilirsiniz.", "Başarısız");});</script>'; } else { $sepguncelle = $ozy->prepare("update sepet set adet=?, alodedurum=?, alodemetin=?, alodeadet=? where id=?"); $sepguncelle->execute([$adet, $alodedurum, $alodemetin, $alodeadet, $sepetid]); if ($sepguncelle) { header("Location:" . $url . "/sepet/"); } } } else { $sepguncelle = $ozy->prepare("update sepet set adet=?, alodedurum=?, alodemetin=?, alodeadet=? where id=?"); $sepguncelle->execute([$adet, $alodedurum, $alodemetin, $alodeadet, $sepetid]); if ($sepguncelle) { header("Location:" . $url . "/sepet/"); } } } if (isset($_POST['deletex'])) { $sepetkaldiralim = temizle($_POST['sepetid']); $sil = $ozy->prepare("DELETE FROM sepet WHERE id=?"); $sil->execute([$sepetkaldiralim]); header("Location: " . $url . "/sepet/"); } ?> <style> @media screen and (max-width: 600px) { .cart-page { display: block !important; } .cart-page div { width: 100% !important; } .cart-page .cart-bottom { width: 100% !important; } } </style> <ul class="breadcrumb"> <li><a href="<?php echo $url; ?>"><i class="fa fa-home"></i></a></li> <li><a href="#">Sepetim</a></li> </ul> <h1 class="title page-title"><span>Sepetim</span></h1> <div id="checkout-cart" class="container"> <div class="row"> <div id="content" class="col-sm-12"> <?php if ($sepetsayi <= '0') { ?> <div class="col-md-12"> <div class="card-body cart"> <div class="col-sm-12 empty-cart-cls text-center" style="text-align: center;"> <img style="margin: auto !important;width: 200px;" src="<?php echo $sitetemasi; ?>/user/sepetbos.png" width="100" height="100" class="img-fluid mb-4 mr-3"> <h5><strong>Alışverişiz Sepetiniz Boş</strong></h5> <h5>Biraz Gezinmeye Ne Dersin :)</h5> <a href="<?php echo $url; ?>" style="background: <?php echo $tema['t16']; ?>;border: none;" class="btn btn-primary cart-btn-transform m-3" data-abc="true">hadi gezinelim :)</a> </div> </div> </div> <?php } else { ?> <div class="cart-page"> <div style="width: 60%; float: left;"> <div class="table-responsive"> <table class="table table-bordered"> <thead> <tr> <td class="text-center td-image">Resim</td> <td class="text-left td-name">Ürün Adı</td> <td class="text-center td-model">Ürün Kodu</td> <td class="text-center td-qty">Adet</td> <td class="text-center td-price">Birim Fiyatı</td> <td class="text-center td-total">Tutarı</td> </tr> </thead> <tbody> <?php if (isset($_GET['bayino'])) { $sepetimdekikim = $_GET['bayino']; } else { $sepetimdekikim = temizle($_SESSION['uyeid']); } $sepetebak = $ozy->prepare("SELECT * FROM sepet WHERE gelenkim=?"); $sepetebak->execute([$sepetimdekikim]); if ($sepetebak->rowCount()) { $uyesepeti = $ozy->prepare("SELECT * FROM urunler INNER JOIN sepet ON urunler.id = sepet.urunid WHERE sepet.gelenkim=? ORDER BY sepet.id DESC"); $uyesepeti->execute([$sepetimdekikim]); foreach ($uyesepeti as $sepet) { ?> <tr> <td class="text-center td-image"> <a href="urun/<?php echo $sepet['seo']; ?>"> <img src="resimler/urunler/<?php echo $sepet['resim']; ?>" alt="<?php echo $sepet['adi']; ?>" title="<?php echo $sepet['adi']; ?>" style="height: 100px;" /> </a> </td> <td class="text-left td-name"> <a href="urun/<?php echo $sepet['seo']; ?>"><?php echo $sepet['adi']; ?></a> <br /> <small> <?php if ($sepet['kargo'] == '1') { ?> <br> <span class="badge1"> <i class="fa fa-truck"></i> ÜCRETSİZ KARGO </span> <?php } ?> <?php if ($sepet['alodedurum'] == '1') { ?> <br> <br> <span class="badge2"> <i class="fa fa-gift"></i> <?php echo $sepet['alodemetin']; ?> </span> <?php } ?> </small> <br /> <small><?php echo $sepet['ekurun']; ?></small> </td> <td class="text-center td-model"><?php echo $sepet['urunkodu']; ?></td> <td class="text-center td-qty"> <form action="" method="POST"> <input type="hidden" name="sepetid" value="<?php echo $sepet['id']; ?>"/> <input type="hidden" name="urunid" value="<?php echo $sepet['urunid']; ?>"/> <div class="input-group btn-block"> <div class="stepper"> <?php if ($sepet['alodedurum'] == '1') { ?> <?php $newstok = $sepet['adet'] + $sepet['alodeadet']; ?> <?php } else { ?> <?php $newstok = $sepet['adet']; ?> <?php } ?> <?php if ($system['sinirsizstok'] != '1') { ?> <input type="text" data-type="number" pattern="[0-9]*" id="NormalAdeti<?php echo $sepet['id']; ?>" onchange="this.form.submit()" name="adet" value="<?php echo $newstok; ?>" min="1" max="<?php echo $sepet['stok']; ?>" size="2" class="form-control"> <?php } else { ?> <input type="text" data-type="number" pattern="[0-9]*" id="NormalAdeti<?php echo $sepet['id']; ?>" onchange="this.form.submit()" name="adet" value="<?php echo $newstok; ?>" min="1" max="9999999999999999999" class="form-control"> <?php } ?> <span> <i class="fa fa-angle-up" id="AdetArttir<?php echo $sepet['id']; ?>"></i> <i class="fa fa-angle-down" id="AdetAzalt<?php echo $sepet['id']; ?>"></i> </span> </div> <span class="input-group-btn"> <button type="submit" name="sepetupdate" class="btn btn-update"><i class="fa fa-refresh"></i></button> <button type="submit" name="deletex" class="btn btn-remove"><i class="fa fa-times-circle"></i></button> </span> </div> </form> </td> <td class="text-center td-price"><?php echo fiyatgoster($sepet['fiyat'] * 1); ?></td> <td class="text-center td-total"><?php echo fiyatgoster($sepet['fiyat'] * $sepet['adet']); ?></td> </tr> <?php } ?> <?php } ?> </tbody> </table> </div> </div> <div class="cart-bottom" style="width: 35%; float: right;"> <div class="panels-total"> <div class="cart-panels"> <h2 class="title" style="position: unset;">Bir sonraki adımda ne yapmak istersiniz?</h2> <p>Eğer kullanmak istediğiniz bir indirim kodu veya puan varsa ya da kargo maliyetini hesaplamak isterseniz bir seçim yapınız.</p> <div class="panel-group" id="accordion"> <?php if ($uyebilgileri['bayi'] == '1') { ?> <div class="panel panel-default panel-shipping"> <div class="panel-heading"> <h4 class="panel-title"> <a href="#collapse-shipping" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion">Cari ödeme <i class="fa fa-caret-down"></i></a> </h4> </div> <div id="collapse-shipping" class="panel-collapse collapse"> <div class="panel-body"> <p>Siparişinizin bir kısmını cari hesabınızla sonra ödeyebilirsiniz.</p> <div class="col-lg-12" style="background: #f1eded;margin-bottom: 20px; padding: unset !important;"> <div class="cart-total"> <table class="table table-bordered"> <tbody> <tr> <td class="text-right"><strong>İndirim oranınız:</strong></td> <td class="text-right">(%<?php echo $oranbayi['oran']; ?>)</td> </tr> <tr> <td class="text-right"><strong>Minimun Sepet Bedeli:</strong></td> <td class="text-right"><?php echo sfiyatgoster($oranbayi['sepetlimit']); ?></td> </tr> <tr> <td class="text-right"><strong>Toplam Sepet Tutarı:</strong></td> <td class="text-right"><?php echo $ctoplamtutari; ?></td> </tr> <tr> <td class="text-right"><strong>Sonra Ödenecek Tutar:</strong></td> <td class="text-right"><?php echo $caritutari; ?></td> </tr> <?php if ($caritutar != '0') { ?> <tr> <td class="text-right"><strong>Ödeme Tarihi:</strong></td> <td class="text-right"><?php echo $caritarih['caritarih']; ?></td> </tr> <?php } ?> <tr> <td class="text-right"><strong>Şimdi Ödenecek Sipariş Tutarı:</strong></td> <td class="text-right"><?php echo $toplamtutari; ?></td> </tr> <?php if ($caritutar != '0') { ?> <tr> <td colspan="2" class="text-center"><a style="font-size: 12px;background: #dd1616a8;color: white;padding: 10px;width: 100%;text-decoration: unset;" href="sepet/?carisil">Cari Hesap Tutarını Sil</a></td> </tr> <?php } ?> </tbody> </table> </div> <div class="col-lg-12" style="background: white; padding: 10px;text-align: center; margin-top: 20px;margin-bottom: 20px;"> <form method="POST" action=""> <div class="form-group" style=" width: 100%;"> <input style="margin-right: 2%;margin-bottom:5px;" type="text" class="form-control" name="caritutar" placeholder="Sonra ödemek istediğiniz tutarı giriniz. (<?php echo $sembol; ?> Bazında Düşüm Olacaktır.)" required> <input style="margin-right: 2%;margin-bottom:5px;" type="date" class="form-control" name="caritarih" placeholder="Ödeme yapacağınız tarihi giriniz" required> <span class="input-group-append" style="width: 100%;"> <button class="btn btn-primary" style="background:#000; !important;color:white;margin: 0px; width: 100%;" type="submit" name="cariguncelle">Cari Ödeme Uygula</button> </span> </div> </form> </div> </div> </div> </div> </div> <?php } ?> <div class="panel panel-default panel-coupon"> <div class="panel-heading"> <h4 class="panel-title"> <a href="#collapse-coupon" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion">Kupon Kodu Kullan <i class="fa fa-caret-down"></i></a> </h4> </div> <div id="collapse-coupon" class="panel-collapse collapse"> <div class="panel-body form-group"> <form method="POST" action="" style="width: 100%;"> <div class="input-group"> <input type="text" name="kuponadi" value="" placeholder="Kupon kodunuzu buraya girin" class="form-control" style="height: 50px;"/> <span class="input-group-btn"> <input type="submit" value="Kuponu Kullan" name="kuponguncelle" class="btn btn-primary" style="height: 50px;"/> </span> </div> </form> </div> </div> </div> <?php if ($_SESSION['uyegirisdurumu'] == 'true') { ?> <div class="panel panel-default panel-voucher"> <div class="panel-heading"> <h4 class="panel-title"> <a href="#collapse-voucher" data-toggle="collapse" data-parent="#accordion" class="accordion-toggle">Hediye Çeki Kullan <i class="fa fa-caret-down"></i></a> </h4> </div> <div id="collapse-voucher" class="panel-collapse collapse"> <div class="panel-body form-group"> <div class="input-group" style="width: 100%;"> <select name="kuponadi" class="form-control" style="background: #f9f9f9;margin-bottom: 10px;font-weight: 400;height: 50px;" onchange='this.form.submit()'> <option value="0">Aktif Hediye Çeklerim</option> <?php $uyeepostamiz = temizle($uyebilgileri['email']); $cekoku = $ozy->query("select * from kuponlar where durum='1' and sekil='1' and epostalar like '%$uyeepostamiz%' and gtarih>='$buguntarihim' and kullanildi not like '%$uyeepostamiz%' order by id DESC")->fetchAll(PDO::FETCH_ASSOC); foreach ($cekoku as $hediyecek) { ?> <option value="<?php echo $hediyecek['adi']; ?>"><?php echo $hediyecek['adi']; ?></option> <?php } ?> </select> <input type="hidden" name="cekguncelle"> </div> </div> </div> </div> <?php } ?> </div> </div> <div class="cart-total"> <table class="table table-bordered"> <tbody> <tr> <td class="text-left">Ara Tutar :</td> <td class="text-right"><?php echo $aratutari; ?></td> </tr> <tr> <td class="text-left">KDV :</td> <td class="text-right"><?php echo sfiyatgoster($kdvtutari); ?></td> </tr> <tr> <td class="text-left">Kargo Bedeli :</td> <td class="text-right"><?php echo $kargometni; ?></td> </tr> <?php if ($kuponindirim != '0') { ?> <tr> <td class="text-left">İndirim Bedeli :</td> <td class="text-right" style="color: red !important;">- <?php echo sfiyatgoster($kuponindirim); ?> <a style="font-size: 19px;" href="sepet/?kuponsil">X</a></td> </tr> <?php } ?> <?php if ($cekindirim != '0') { ?> <tr> <td class="text-left">Çek İndirimi :</td> <td class="text-right" style="color: red !important;">- <?php echo sfiyatgoster($cekindirim); ?> <a style="font-size: 19px;" href="sepet/?ceksil">X</a></td> </tr> <?php } ?> <?php if ($caritutar != '0') { ?> <tr> <td class="text-left">Sonra Ödenecek Tutar : </td> <td class="text-right" style="color: red !important;">- <?php echo $caritutari; ?> <a style="font-size: 19px;" href="sepet/?carisil">x</a></td> </tr> <?php } ?> <tr> <td class="text-left">Ödenecek Tutar :</td> <td class="text-right" style="font-weight: bold; color: #0d0d0d;" class="cart-summary-total-price"><?php echo $toplamtutari; ?></td> </tr> <?php if ($para == 'USD' or $para == 'EUR') { ?> <tr style="background: #eeebeb;"> <td class="text-left" style="padding: 5px;"><?php echo $toplamtutari; ?> =</td> <td class="text-right" style="font-weight: bold; color: #f75b5b;padding: 5px;" class="cart-summary-total-price"> <?php echo $sontoplamtutarim; ?> TL </td> </tr> <?php } ?> </tbody> </table> </div> </div> <div class="buttons clearfix"> <div class="pull-right"> <?php if ($toplamtutarim >= $oranbayi['sepetlimit']) { ?> <a style="width: 100%; margin-top: 10px; font-weight: 600;" href="odeme/"> <div class="btn btn-primary"> <span class="me-3">Sepeti Onayla</span> <span style="margin-left: 10px;"> <i class="fa fa-arrow-right"></i></span> </div> </a> <?php } else { ?> <a style="width: 100%; margin-top: 10px; font-weight: 600;"> <div class="btn btn-primary"> <span class="me-3">MİN SEPET TUTARINI AŞMALISINIZ</span> <span style="margin-left: 10px;"> <i class="fa fa-arrow-right"></i></span> </div> </a> <?php } ?> </div> </div> </div> </div> <?php } ?> </div> </div> </div> <style> .cart-confirm, .message-box { width:100%; padding:10px 15px; border-radius:5px; color:#fff; font-weight:500; width: 100% !important; margin-bottom: 10%; margin-top:20px; } .cart-confirm { background: <?php echo $tema['t8']; ?>; text-align: center; font-size: 16px; cursor: pointer; } .cart-confirm-disabled { background:#bdbdbd; cursor:not-allowed } .cart-gift-certificate-container { width:100%; height:auto; padding:15px; background:#f5f5f5; box-shadow:0 1px 3px rgb(0 0 0/20%); border-radius:3px } .cart-gift-certificate-container h2 { font-size:14px; color:#555; font-weight:400; padding-bottom:10px } .cart-summary { width: 100%; height: auto; padding: 15px 20px; background: #fff; box-shadow: 0 1px 3px rgba(37, 35, 35, 0.14); border-radius: 3px } .cart-summary h2 { font-size:18px; color:#555; margin-bottom:10px } .cart-summary table { width:100%; height:auto } .cart-summary table tr { height: 45px; line-height: 1px; font-size: 15px; color: #555; margin-top: 14px; border-bottom: 1px solid #eeecec; } .cart-summary-total-price { font-size: 18px; font-weight: bold; color: <?php echo $tema['t8']; ?>; } .cart-recommended-products-container, .cart-recommended-products-title { width:100%; height:auto } .cart-recommended-products-title h2 { font-size:20px; color:#555 } .cart-recommended-products { width:100%; height:auto; overflow-x:auto; overflow-y:hidden; white-space:nowrap; -webkit-overflow-scrolling:touch; padding-bottom:10px } .link-block { width: 120px; text-decoration: none; color: #fff; font-size: 12px; } .badge1 { width: 18% !important; color: #e41313; font-weight: 600; font-size: 10px; margin-bottom: 10px; background: whitesmoke; padding: 8px; padding-right: 8px; padding-left: 8px; } .badge2 { width: 20% !important; color: #a88f0a; font-weight: 600; font-size: 10px; margin-bottom: 10px; background: whitesmoke; padding: 8px; padding-right: 8px; padding-left: 8px; padding-right: 8px; padding-left: 8px; margin-left: 2%; } .okey { } .yontemyazi { font-size: 16px; margin-top: 12px; position: absolute; font-weight: 500; letter-spacing: 0.25px; } .text-end { font-size: 16px; font-weight: 500; } .cart-container { padding:0 } .cart-container, .cart-container-title { width:100%; height:auto } .cart-container-title h1 { font-size:22px; color:#555 } .cart-container-left { position:relative; float:left; width:100%; height:auto } .cart-container-right { width:calc(100% - 15px); height:auto; border-radius:10px; margin-left:2%; } .cart-product-container { position:relative; float:left; width:100%; height:auto; border:2px solid #f5f5f5; background-color:#fff; border-radius:5px; padding:15px; margin-bottom:15px; z-index: 99999999999; } .cart-product-container-left { position:relative; float:left; width:100px; height:auto } .cart-product-container-left img { width:100%; height:120px; -o-object-fit:cover; object-fit:cover; border-radius:5px } .cart-product-container-middle { position:relative; float:left; width:calc(100% - 140px); height:auto; padding-left:20px } .cart-product-container-right { position:relative; float:left; width:40px; height:auto; margin-top: 2% !important; } .cart-product-title>a { text-decoration:none } .cart-product-title h2 { font-size:15px; margin-bottom:3px; color:#555; font-weight:500; } .cart-product-variant-title h3 { color:#555; font-weight:400; font-size:12px; margin-bottom:0 } .cart-product-quantity-changer { width:100%; height:100px; border:1px solid #e0e0e0; border-radius:10px } .cart-product-quantity-changer-decreaser, .cart-product-quantity-changer-increaser, .cart-product-quantity-changer-quantity { height:40px; text-align:center; font-size:10px; color:#777; width:100%; cursor:pointer; } .cart-product-quantity-changer-quantity { height:20px } .cart-product-quantity-changer-decreaser:hover, .cart-product-quantity-changer-increaser:hover { color:#000 } .cart-product-quantity-changer-decreaser, .cart-product-quantity-changer-increaser { line-height:40px } .cart-product-quantity-changer-quantity input[type=text] { height:20px; background: #fff0; border:none; font-size:13px; font-weight:500; color:#555; padding-left: 15px !important; } .cart-product-remove { width:40px; height:40px; line-height:40px; text-align:center; border:1px dashed #e0e0e0; border-radius:8px; margin-top:5px; font-size:14px; color:#777; cursor:pointer; line-height: 0px; display: block !important; } .cart-product-remove:hover { border:1px dashed var(--themeColor); color:var(--themeColor) } .cart-product-quantity { font-size:12px; color:#555; font-weight:400 } .product-card-min { position:relative; float:left; display:block; width:150px; height:auto; background:#fff; border-radius:10px; margin-right:0; transition:transform .3s } .product-card-min:hover { transform:scale(1) } .product-card-min a { text-decoration:none } .product-card-min>img { vertical-align:baseline!important; width:100%; height:245px; border-radius:5px; -o-object-fit:cover; object-fit:cover; -o-object-position:50% 50%; object-position:50% 50% } .product-card-min-image { width:100% } .product-card-min-image img { width:100%; height:200px; -o-object-fit:cover; object-fit:cover; border-radius:5px } .product-card-min-image img:first-child { display:block } .product-card-min-image img:last-child { display:none } .product-card-min:hover>.product-card-min-image img:last-child { display:block } .product-card-min:hover>.product-card-min-image img:first-child { display:none } .product-card-min-title { width:100%; height:25px; line-height:25px; margin-top:5px; padding:0 10px; color:#777; font-size:13px; word-wrap:break-word; overflow-wrap:break-word; white-space:nowrap; overflow:hidden; text-overflow:ellipsis } .product-card-min-price { width:100%; height:25px; position:relative; padding:0 10px } .product-card-min-price1 { font-weight:500; color:var(--themeColor) } .product-card-min-price1, .product-card-min-price2 { float:left; height:25px; line-height:25px; font-size:14px } .product-card-min-price2 { text-decoration:line-through; color:#999; margin-right:5px } .message-container { position:fixed; top:10px; right:10px; width:250px; height:auto; z-index:15 } .message-box { height:auto; background:#fff; font-size:12px; box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24); margin-bottom:10px } .cart-confirm, .message-box { width:100%; padding:10px 15px; border-radius:5px; color:#fff; font-weight:500 } .cart-confirm { background: <?php echo $tema['t16']; ?>; text-align: center; font-size: 16px; cursor: pointer; margin-bottom: 30px; } .cart-confirm-disabled { background:#bdbdbd; cursor:not-allowed } .cart-gift-certificate-container { width:100%; height:auto; padding:15px; background:#f5f5f5; box-shadow:0 1px 3px rgb(0 0 0/20%); border-radius:3px } .cart-gift-certificate-container h2 { font-size:14px; color:#555; font-weight:400; padding-bottom:10px } .cart-summary { width: 100%; height: auto; padding: 15px 20px; background: #fff; box-shadow: 0 1px 3px rgba(37, 35, 35, 0.14); border-radius: 3px; padding-top:5px; } .cart-summary h2 { font-size: 14px; color: #555; margin-bottom: 10px; margin-top: 10px; border-bottom: 1px solid black; text-align: center; padding-bottom: 10px; } .cart-summary table { width:100%; height:auto } .cart-recommended-products-container, .cart-recommended-products-title { width:100%; height:auto } .cart-recommended-products-title h2 { font-size:20px; color:#555 } .cart-recommended-products { width:100%; height:auto; overflow-x:auto; overflow-y:hidden; white-space:nowrap; -webkit-overflow-scrolling:touch; padding-bottom:10px } .link-block { width: 120px; text-decoration: none; color: #fff; font-size: 12px; } .badge1 { width: 18% !important; color: #e41313; font-weight: 600; font-size: 10px; margin-bottom: 10px; background: whitesmoke; padding: 8px; padding-right: 8px; padding-left: 8px; } .badge2 { width: 20% !important; color: #a88f0a; font-weight: 600; font-size: 10px; margin-bottom: 10px; background: whitesmoke; padding: 8px; padding-right: 8px; padding-left: 8px; padding-right: 8px; padding-left: 8px; margin-left: 2%; } .okey { } @media screen and (max-device-width: 480px) and (orientation: portrait){ .okey { } .badge1 { width: 85% !important; color: #e41313; font-weight: 600; font-size: 10px; margin-bottom: 10px; background: whitesmoke; padding: 8px; padding-right: 8px; padding-left: 8px; } .badge2 { width: 85% !important; color: #a88f0a; font-weight: 600; font-size: 10px; margin-bottom: 10px; background: whitesmoke; padding: 8px; padding-right: 8px; padding-left: 8px; padding-right: 8px; padding-left: 8px; margin-left: 2%; } } .black{ font-weight: bold; } .form-inline .form-control { display: block !important; width: auto; vertical-align: middle; } </style> <script src="<?php echo $sitetemasi; ?>/user/jquery.min.js"></script> <script src="<?php echo $sitetemasi; ?>/user/bootstrap-input-spinner.js"></script> <?php if (isset($_GET['bayino'])) { $sepetimdekikim = $_GET['bayino']; } else { $sepetimdekikim = temizle($_SESSION['uyeid']); } $sepetebak = $ozy->prepare("SELECT * FROM sepet WHERE gelenkim=?"); $sepetebak->execute([$sepetimdekikim]); if ($sepetebak->rowCount()) { $uyesepeti = $ozy->prepare("SELECT * FROM urunler INNER JOIN sepet ON urunler.id = sepet.urunid WHERE sepet.gelenkim=? ORDER BY sepet.id DESC"); $uyesepeti->execute([$sepetimdekikim]); foreach ($uyesepeti as $sepet) { ?> <script type="text/javascript"> jQuery(document).ready(function ($) { $("#AdetArttir<?php echo $sepet['id']; ?>").on("click", function () { var adet = $("#NormalAdeti<?php echo $sepet['id']; ?>").val(); if (adet < 8) { adet++; $("#NormalAdeti<?php echo $sepet['id']; ?>").val(adet); } }); $("#AdetAzalt<?php echo $sepet['id']; ?>").on("click", function () { var adet = $("#NormalAdeti<?php echo $sepet['id']; ?>").val(); if (adet > 0) { adet--; $("#NormalAdeti<?php echo $sepet['id']; ?>").val(adet); } }); $("#NormalAdeti<?php echo $sepet['id']; ?>").keypress(function (e) { var regex = new RegExp("^[0-9]"); var str = String.fromCharCode(!e.charCode ? e.which : e.charCode); if (regex.test(str)) { return true; } e.preventDefault(); return false; }); }); </script> <?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