hjkhghopjkertteerterterterertertrtoirh
bnmbertsurhetertertertertertertertpdf'tdfg
/
home
/
easy3158
/
domains
/
ekwiatki.pl
/
public_html
/
Upload FileeE
HOME
<?php include("inc/head.php"); //----------------------------- if(empty($_SESSION['user_id'])){header("Location: login");exit;} ?> <body> <!-- header start --> <?php include("inc/top.php"); ?> <!--====================================================--> <div class="breadcrumb-area gray-bg"> <div class="container"> <div class="breadcrumb-content"> <ul> <li><a href="index">ekwiatki.pl</a></li> <li class="active">Historia zamówień</li> </ul> </div> </div> </div> <!-- my account start --> <div class="shop-page-area pt-75 pb-75"> <div class="container"> <div class="row flex-row-reverse"> <div class="col-lg-12"> <div class="grid-list-product-wrapper"> <div class="product-grid product-view pb-20"> <h3 style="margin-bottom: 20px;">Historia zamówień</h3> <?php if($_GET['comment'] == "1"){ echo " <CENTER> <img src='assets/images/done.gif' style='max-width: 190px;'> <h4 style='margin-top: 0px;'>Dziękujemy za Twoją opinię!</h4> </CENTER> <div style='height: 30px;'></div> "; } ?> <?php $q = mysqli_query($connect,"SELECT * FROM `orders` WHERE `user_hash` = '".$_SESSION['user_hash']."' GROUP BY `order_hash` ORDER BY `data` DESC"); $n = mysqli_num_rows($q); if($n > 0){ //=========================================================================== while($s = mysqli_fetch_array($q)){ $order_hash = $s['order_hash']; $kwota = $s['kwota_total']; $kwota_dostawy = $s['kwota_dostawy']; $odbiorca = $s['odbiorca_imie']." ".$s['odbiorca_nazwisko']; $data = $s['data']; $paid = $s['paid']; $waluta = $s['waluta']; $numeric_id = $s['numeric_id']; echo " <div style='color: #696969; background: #fbfbfb; border: 1px solid #f2f2f2; border-radius: 7px; padding: 14px; margin-bottom: 7px;'> <div class='row'> <div class='col-md-2'> <B>Zamówienie $numeric_id</B><BR> $data </div> <div class='col-md-2'> <B>Odbiorca</B><BR> $odbiorca </div> <div class='col-md-2'> <B>Wartość zamówienia</B><BR> $kwota $waluta </div> <div class='col-md-2'> <B>Koszt dostawy</B><BR> $kwota_dostawy </div> <div class='col-md-2'> <B>Zapłacono</B><BR> "; if($paid == "1"){echo "Tak";} else {echo "Nie";} echo " </div> <div class='col-md-2' style='text-align: right; padding-top: 10px;'> <a href='javascript:;' onClick=\"document.getElementById('details_$order_hash').style.display='block';\"><i class='fa fa-eye'></i> <B>Zobacz szczegóły</B></a> </div> </div> </div> "; if(mysqli_num_rows(mysqli_query($connect,"SELECT * FROM `comments` WHERE `order_hash` = '$order_hash'")) > 0){ echo "<div style='height: 8px'></div>"; } else { echo "<div style='margin-bottom: 15px; text-align: right;'><a href='javascript:;' style='color: #e23503;' data-toggle='modal' data-target='#modalOpinia_$order_hash'>Podziel się opinią</a></div>"; } ?> <!--=============================================--> <style type="text/css"> @media (min-width: 700px){ .myModalLisciki { margin-top: 10%; } } @media (max-width: 700px){ .myModalLisciki { margin-top: 25%; } } .myListLink { color: #000; } .myListLink:hover { color: #e83a00; } </style> <div class="modal fade" id="modalOpinia_<?=$order_hash;?>" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg myModalLisciki" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle">Podziel się opinią</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <CENTER><h4>Wyślij nam swoją opinię na temat tego zamówienia</h4></CENTER> <form action='sendComment' method="post"> <textarea name="tresc" class="form form-control" style="height: 120px;" required></textarea> <div style="height: 10px;"></div> <div style="text-align: right;"><input type="submit" class="form form-control" value="Wyślij opinię" style="background: #e33a02; border: 1px solid #ca3402; color: #fff; padding: 7px 15px 7px 15px; height: auto; border-radius: 7px; width: 150px; cursor: pointer; float: right;"></div> <input type="hidden" name="order" value="<?=$order_hash;?>"> </form> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Zamknij</button> </div> </div> </div> </div> <!--=============================================--> <div class="table-responsive" id="details_<?=$order_hash;?>" style="border: 1px solid #f2f2f2; border-radius: 7px; margin-bottom: 20px; display: none;"> <table class="table table-hover table-striped"> <thead> <tr> <th></th> <th>Produkt</th> <th>Kreator bukietu</th> <th>Ilość</th> <th>Cena</th> </tr> </thead> <tbody> <?php $q_2 = mysqli_query($connect,"SELECT * FROM `orders` WHERE `order_hash` = '$order_hash'"); while($s_2 = mysqli_fetch_array($q_2)){ $product_id_2 = $s_2['product_id']; $dodatek_2 = $s_2['dodatek']; $kreator_2 = $s_2['kreator']; $waluta_2 = $s_2['waluta']; if($kreator_2 == "1"){ //================================== //================================== $tytul_2 = "Kreator bukietów róż"; $img_2 = "kreator.jpg"; $rozmiar_2 = "-"; $url_2 = "javascript:;"; //================================== //================================== } else { if($dodatek_2 == "1"){ $q2_2 = mysqli_query($connect,"SELECT * FROM `dodatki` WHERE `id` = $product_id_2"); $s2_2 = mysqli_fetch_array($q2_2); $tytul_2 = $s2_2['tytul']; $img_2 = $s2_2['img']; $rozmiar_2 = "-"; $url_2 = "gift-$product_id_2-".href_title($tytul_2); } else { $q2_2 = mysqli_query($connect,"SELECT * FROM `products` WHERE `id` = $product_id_2"); $s2_2 = mysqli_fetch_array($q2_2); $tytul_2 = $s2_2['tytul']; $img_2 = $s2_2['img']; $rozmiar_2 = $s_2['rozmiar']; $url_2 = "product-$product_id_2-".href_title($tytul_2); } } //================================== //================================== $cena_2 = $s_2['kwota']; $kreator_dlugosc_2 = $s_2['kreator_dlugosc']; $kreator_liczba_2 = $s_2['kreator_liczba']; $kreator_przybranie_2 = $s_2['kreator_przybranie']; $kreator_ulozenie_2 = $s_2['kreator_ulozenie']; $kreator_kolor_2 = $s_2['kreator_kolor']; echo " <tr> <td><a href='$url_2'><img src='assets/images/products/$img_2' style='width: 90px; height: 90px; object-fit: cover;'></a></td> <td style='vertical-align: middle;'><a href='$url_2'>$tytul_2</a>"; if(!empty($rozmiar_2) AND $rozmiar_2 != "-"){echo "<BR>Wersja: $rozmiar_2";} echo "</td> <td style='vertical-align: middle;'>"; if($kreator_2 == "1"){echo "Długość kwiatów: <B>$kreator_dlugosc_2</B><BR>Liczba kwiatów: <B>$kreator_liczba_2</B><BR>Przybranie: <B>$kreator_przybranie_2</B><BR>Ułożenie kwiatów: <B>$kreator_ulozenie_2</B><BR>Kolor kwiatów: <B>$kreator_kolor_2</B>";} echo "</td> <td style='vertical-align: middle;'>1</td> <td style='vertical-align: middle;'>$cena_2 $waluta_2</td> </tr> "; } ?> </tbody> </table> </div> <?php } //=========================================================================== } else {errorIMG("Nie złożyłeś jeszcze zamówień");} ?> </div> </div> </div> </div> </div> </div> <!--====================================================--> <?php include("inc/footer.php"); ?> <!-- all js here --> <?php include("inc/footerScripts.php"); ?> </body> </html>