📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
butikv1.demodesign.com.tr
📝
foto-ekle.php
← Geri Dön
<?php include 'includes/header.php';?> <?php //unset($_SESSION['sepet']) ?> <link href="vendor/fileinput/css/fileinput.css" media="all" rel="stylesheet" type="text/css"/> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" crossorigin="anonymous"> <link href="vendor/fileinput/themes/explorer-fas/theme.css" media="all" rel="stylesheet" type="text/css"/> <script src="https://code.jquery.com/jquery-3.3.1.min.js" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script> <script src="vendor/fileinput/js/plugins/piexif.js" type="text/javascript"></script> <script src="vendor/fileinput/js/plugins/sortable.js" type="text/javascript"></script> <script src="vendor/fileinput/js/fileinput.js" type="text/javascript"></script> <script src="vendor/fileinput/js/locales/tr.js" type="text/javascript"></script> <script src="vendor/fileinput/themes/fas/theme.js" type="text/javascript"></script> <script src="vendor/fileinput/themes/explorer-fas/theme.js" type="text/javascript"></script> <style type="text/css"> .close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.5}.close:not(:disabled):not(.disabled){cursor:pointer}.close:not(:disabled):not(.disabled):focus,.close:not(:disabled):not(.disabled):hover{color:#000;text-decoration:none;opacity:.75}button.close{padding:0;background-color:transparent;border:0;-webkit-appearance:none} .clearfix::after{display:block;clear:both;content:""} .fileinput-upload{ display: none } .fileinput-remove-button{ border: 0; flex: 1; min-width: 13rem; font-size: 1.4rem; background-color: #ff6f26; cursor: pointer; max-width: 20.7rem; height: 4.5rem; display: inline; float: left; } .btn-file { display: table-cell; } .kv-file-zoom { display: none; } .file-upload-indicator{ display: none; } .krajee-default.file-preview-frame .kv-file-content { width: 176px; height: 134px; } .file-caption{ padding: .85rem 2rem !important; } </style> <?php $hizmet = $dbh->query("SELECT * FROM product where id=35 ", PDO::FETCH_ASSOC); if ($hizmet->rowCount()) { foreach ($hizmet as $hizmet) { if(seo($hizmet["product_name"]) == $_GET["id"]){ $hizmet = cevir("menu",$hizmet,$_SESSION["dil"]); } $checkxx = $dbh->query("SELECT * FROM menu_categories WHERE id = '".$hizmet['parent']."' ", PDO::FETCH_ASSOC); if ($checkxx->rowCount()) { foreach ($checkxx as $checkxx) { } $kategorixx = $checkxx["categories_name"]; } } } ?> <meta name="Description" content="<?=$hizmet['page_description'];?>"/> <meta name="Keywords" content="<?=$hizmet['page_keywords'];?>"/> <meta name="author" content="parstech"> <title><?=$hizmet['page_title'];?></title> <?php include 'includes/navbar.php';?> <main class="main mt-4"> <br> <div class="page-content mb-10"> <div class="container"> <div class="product product-single row mb-4"> <div class="col-md-6"> <div class="product-gallery pg-vertical"> <div class="product-single-carousel owl-carousel owl-theme owl-nav-inner row cols-1"> <figure class="product-image"> <img src="img/<?=$hizmet['foto'];?>" data-zoom-image="img/<?=$sonuc['foto'];?>" alt="Women's Brown Leather Backpacks" width="800" height="900"> </figure> <?php $sorgu = $dbh->prepare("SELECT * FROM product_gallery where select_category='".$hizmet["id"]."'"); $sorgu->execute(); while ($sonuc = $sorgu->fetch()) { $id = $sonuc['id']; $select_category = $sonuc['select_category']; $foto = $sonuc['foto']; ?> <figure class="product-image"> <img src="img/<?=$sonuc['foto'];?>" data-zoom-image="img/<?=$sonuc['foto'];?>" alt="Women's Brown Leather Backpacks" width="800" height="900"> </figure> <?php } ?> </div> <div class="product-thumbs-wrap"> <div class="product-thumbs"> <div class="product-thumb active"> <img src="img/<?=$hizmet['foto'];?>" alt="product thumbnail" width="109" height="122"> </div> <?php $sorgu = $dbh->prepare("SELECT * FROM product_gallery where select_category='".$hizmet["id"]."'"); $sorgu->execute(); while ($sonuc = $sorgu->fetch()) { $id = $sonuc['id']; $select_category = $sonuc['select_category']; $foto = $sonuc['foto']; ?> <div class="product-thumb active"> <img src="img/<?=$sonuc['foto'];?>" alt="product thumbnail" width="109" height="122"> </div> <?php } ?> </div> <button class="thumb-up disabled"><i class="fas fa-chevron-left"></i></button> <button class="thumb-down disabled"><i class="fas fa-chevron-right"></i></button> </div> </div> </div> <div class="col-md-6"> <div class="product-details"> <form action="sepet.php" method="post" enctype="multipart/form-data" data-xhr="true"> <input type="hidden" name="tip" value="ekle"> <input type="hidden" name="id" value="<?=$hizmet['id'];?>"> <input type="hidden" name="qty" value="1"> <input type="hidden" name="rand" value="<?=rand(11111,99999);?>"> <h1 class="product-name"><?=$hizmet['product_name'];?> <?php print_r($_SESSION['sepet']) ?> </h1> <div class="product-meta"> <b>Ürün Kodu:</b> <span class="product-sku">#<?=$hizmet['id'];?></span> <b>Kategori:</b> <span class="product-brand"><?=$kategorixx?></span> </div> <div class="product-price"><?=$hizmet['product_price'];?> TL</div> <p class="product-short-desc"><?=$hizmet['product_short'];?></p> <? $alt = $dbh->query("select * from product_serving WHERE parent = {$hizmet['id']} ", PDO::FETCH_ASSOC); ?> <div class="product-form product-variations product-size"> <label>Ölçü:</label> <div class="product-form-group"> <div class="select-box"> <select name="size" class="form-control"> <option value="" selected="selected">İhtiyaçım Yok</option> <?php if ($alt->rowCount()) { foreach ($alt as $alt) { $alt = cevir("porsiyon_secenekleri",$alt,$_SESSION["dil"]); echo '<option value="' . $alt['id'] . '">' . $alt['serving_name'] . ' => ' . $alt['serving_price'] . ' TL fark ile</option>'; echo '</optgroup>'; } } ?> </select> </div> </div> </div> <hr class="product-divider"> <div class="product-form product-qty"> <div class="product-form-group"> <button type="button" onclick="$('#foto').show();" class="btn-product btn" style="border: 0; flex: 1; min-width: 13rem; font-size: 1.4rem; background-color: #ff6f26; cursor: pointer; max-width: 20.7rem; height: 4.5rem;"><i class="d-icon-bag"></i>Hemen Hazırla</button> </div> </div> <div id="foto" style="display: none"> <hr class="product-divider"> <label for="input-res-2">20 Adet Resim Ekleyiniz</label> <div class="file-loading" > <input id="input-res-2" name="input-res-2[]" type="file" multiple accept="image/*"> </div> </div> <button type="submit">asd</button> </form> <hr class="product-divider mb-3"> <div class="product-footer"> <div class="social-links"> <a href="<?=$ayar['facebook'];?>" class="social-link social-facebook fab fa-facebook-f"></a> <a href="<?=$ayar['instagram'];?>" class="social-link social-instagram fab fa-instagram"></a> </div> </div> </div> </div> </div> <div class="tab tab-nav-simple product-tabs mb-4"> <ul class="nav nav-tabs" role="tablist"> <li class="nav-item"> <a class="nav-link active" href="#product-tab-description">Ürün Açıklaması</a> </li> <li class="nav-item"> <a class="nav-link" href="#product-tab-additional">Taksit Tablosu</a> </li> </ul> <div class="tab-content"> <div class="tab-pane active in" id="product-tab-description"> <p><?=$hizmet['product_description'];?></p> </div> <div class="tab-pane" id="product-tab-additional"> <style> #paytr_taksit_tablosu{clear: both;font-size: 12px;text-align: center;font-family: Arial, sans-serif;} #paytr_taksit_tablosu::before {display: table;content: " ";} #paytr_taksit_tablosu::after {content: "";clear: both;display: table;} .taksit-tablosu-wrapper{margin: 5px;width: 280px;padding: 12px;cursor: default;text-align: center;display: inline-block;border: 1px solid #e1e1e1;} .taksit-logo img{max-height: 28px;padding-bottom: 10px;} .taksit-tutari-text{float: left;width: 126px;color: #a2a2a2;margin-bottom: 5px;} .taksit-tutar-wrapper{display: inline-block;background-color: #f7f7f7;} .taksit-tutar-wrapper:hover{background-color: #e8e8e8;} .taksit-tutari{float: left;width: 126px;padding: 6px 0;color: #474747;border: 2px solid #ffffff;} .taksit-tutari-bold{font-weight: bold;} @media all and (max-width: 600px) {.taksit-tablosu-wrapper {margin: 5px 0;}} </style> <div id="paytr_taksit_tablosu"></div> <script src="https://www.paytr.com/odeme/taksit-tablosu/v2?token=0e76a89ce36fb4641cfd367e9c24ea3749a8a8808074a83e9202a3361e9af449&merchant_id=174021&amount=<?=$hizmet['product_price'];?>&taksit=0&tumu=0"></script> </div> </div> </div> <section> <h2 class="title">Popüler Ürünler</h2> <div class="owl-carousel owl-theme owl-nav-full row cols-2 cols-md-3 cols-lg-4" data-owl-options="{ 'items': 5, 'nav': false, 'loop': false, 'dots': true, 'margin': 20, 'responsive': { '0': { 'items': 2 }, '768': { 'items': 3 }, '992': { 'items': 4, 'dots': false, 'nav': true } } }"> <?php $sorgu = $dbh->prepare("SELECT * FROM product LIMIT 10 "); $sorgu->execute(); while ($sonuc = $sorgu->fetch()) { $id = $sonuc['id']; $product_name = $sonuc['product_name']; $parent = $sonuc['parent']; $product_price = $sonuc['product_price']; $foto = $sonuc['foto']; $baslikseo = seo( $sonuc['product_name']); $check = $dbh->query("SELECT * FROM menu_categories WHERE id = '".$parent."' ", PDO::FETCH_ASSOC); if ($check->rowCount()) { foreach ($check as $check) { } $kategori = $check["categories_name"]; } ?> <div class="product shadow-media"> <figure class="product-media"> <a href="urun-<?=$baslikseo?>"> <img src="img/<?=$sonuc['foto'];?>" alt="product" width="280" height="315"> </a> <div class="product-label-group"> <label class="product-label label-new"><?=$hizmet['product_tag'];?></label> </div> <div class="product-action-vertical"> <a href="urun-<?=$baslikseo?>" class="btn-product-icon btn-cart" title="Hemen Hazırla"><i class="d-icon-bag"></i></a> </div> <div class="product-action"> <a href="urun-<?=$baslikseo?>" class="btn-product" title="Hemen Hazırla">Hemen Hazırla</a> </div> </figure> <div class="product-details"> <div class="product-cat"> <a href="urun-<?=$baslikseo?>"><?=$kategori?></a> </div> <h3 class="product-name"> <a href="urun-<?=$baslikseo?>"><center><?=$sonuc['product_name'];?></center></a> </h3> <div class="product-price"> <ins class="new-price"><center><?=$sonuc['product_price'];?> TL</center></ins> </div> </div> </div> <?php } ?> </div> </section> </div> </div> </main> <script> $(document).ready(function() { $("#input-res-2").fileinput({ uploadUrl: "dosyalar/", enableResumableUpload: true, initialPreviewAsData: true, allowedFileTypes: ['image'], showCancel: true, resumableUploadOptions: { testUrl: "dosyalar/", //chunkSize: 1024, // 1 MB chunk size }, // maxFileCount: 20, language: 'tr', showUpload: true, theme: 'fas', deleteUrl: '/site/file-delete', fileActionSettings: { showZoom: function(config) { if (config.type === 'pdf' || config.type === 'image') { return true; } return false; } } }); }); </script> <script src="vendor/imagesloaded/imagesloaded.pkgd.min.js"></script> <script src="vendor/elevatezoom/jquery.elevatezoom.min.js"></script> <script src="vendor/owl-carousel/owl.carousel.min.js"></script> <script src="vendor/jquery.plugin/jquery.plugin.min.js"></script> <script src="vendor/jquery.countdown/jquery.countdown.min.js"></script> <!-- Main JS File --> <script src="js/main.js"></script> </body> </html> <script type="text/javascript"> $(document).ready(function(){ $(document).on('submit', 'form[data-xhr]', function(event){ event.preventDefault(); var action = $(this).attr('action'); var method = $(this).attr('method'); var formData = new FormData($(this)[0]); $.ajax({ url: action, type: method, data: formData, cache: false, contentType: false, processData: false }) .done(function(result){ window.location.reload(); }) .fail(function(result){ alert(result); }) }); }); </script>
💾 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