]]jkjjgdjffksdkdxmnnnnnnnnnnnmnmmnmnmnmnmbnwqeqwewqskfgj
במ12[cvbnvbnvbnvbnnmnnmnmnnmnmnmnmnmnmmnnmnmnmqewv;'
/
home2
/
officir
/
public_html
/
iranloole.ir
/
Upload FileeE
HOME
<?php ob_start(); @session_start(); include "includes/functions.php"; include "includemenu.php"; $sum =0; if(isset($_GET['action'])){ unset($_SESSION['cart_item']); } if (isset($_GET['del'])){ $id=test_input($_GET['del']); foreach ($_SESSION["cart_item"] as $dd2=>$item) { if ($item['code'] == $id) unset($_SESSION['cart_item'][$dd2]); } } ?> <?php include "includes/header.php"; ?> <?php if (isset($_POST['pardakht1'])){ $sum22=$_POST['sum1']; $_SESSION['pricefactor']= $sum22; $sql="INSERT INTO `pardakht` (par_price,userid) VALUES ('{$sum22}','{$_SESSION['userid']}')"; if ($connection->query($sql) === TRUE) { $lastid=mysqli_insert_id($connection); $_SESSION['codefactor'] = $lastid; if(isset($_SESSION["cart_item"])) { foreach ($_SESSION["cart_item"] as $dd2=>$item) { $proid=$item['code']; $pronum=$item['quantity']; $vazn_tedad=$item['vazn_tedad']; $sql2 = "INSERT INTO `reporttb` (rep_product_id,rep_product_num,rep_pardakht_id,vazn_tedad) VALUES ('{$proid}','{$pronum}','{$lastid}','{$vazn_tedad}')"; if ($connection->query($sql2) === TRUE){ $msg = "اطلاعات درخواستی شما ثبت شد"; header("Location: cartlogin.php"); }else $msg = "مشکلی در ذخیره پیش آمد."; } } }else{ $msg = "مشکلی پیش آمد"; } } ?> <section class="container-fluid" id="cart"> <div class="container cart22"> <div class="row"> <div class="col-sm-8"> <a href="cart.php?action=empty" class="btn btn-primary">خالی کردن سبد</a> <?php if(isset($_SESSION['cart_item']) && (count($_SESSION['cart_item'])>=1)) { $price5 = 0; //print_r($_SESSION['cart_item']); //die(); foreach ($_SESSION["cart_item"] as $item) { ?> <div class="card1"> <div class="row"> <div class="col-sm-3"> <img src="images/uploads/<?php echo $item['image']?>" class="img-fluid"> </div> <div class="col-sm-6"> <h2><?php echo $item['name']?></h2> <p>واحد سفارش: <?php echo $item['quantity'].' ( '.$item['vazn_tedad'].' )'?></p> </div> <div class="col-sm-3 price1"> <p><?php echo number_format($item['price']*$item['quantity']);?> تومان</p> <a href="cart.php?del=<?php echo $item["code"];?>" class="btn btn-danger">حذف</a> </div> </div> </div><!--- catd---> <?php $price5 = $item['price'] * $item['quantity']; $sum = $sum + $price5; } }else echo "سبد خالی است"; ?> </div><!--- End col-8 --> <div class="col-sm-4"> <div class="card2"> <p>جمع کل : <?php echo number_format($sum);?> تومان</p> <hr> <p>هزینه ارسال : با هماهنگی</p> <hr> <form method="post" action=""> <input type="hidden" name="sum1" value="<?php echo number_format($sum);?>"> <input type="submit" class="btn btn-warning" style="color: white" name="pardakht1" value=" اتمام خرید" > </form> </div> </div><!--- End col-4 --> </div> </div> </section> <?php include "includes/footer.php"; ?> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title> فروشگاه ایران لوله</title> <link rel="stylesheet" href="font-awesome/css/fontawesome.min.css"> <!-- <link rel="stylesheet" href="css/bootnavbar.css">--> <script src="js/bootnavbar.js"></script> <!-- <link rel="stylesheet" href="../css/style.css">--> <!-- <link rel="stylesheet" href="css/style.css">--> <link rel="stylesheet" href="css/font-awesome.min.css"> <link rel="stylesheet" href="css/owl.carousel.min.css"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script> <script src="https://kit.fontawesome.com/0474f92356.js" crossorigin="anonymous"></script> <title>SmartMenus jQuery Website Menu - jQuery Plugin</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- SmartMenus core CSS (required) --> <link href="css/sm-core-css.css" rel="stylesheet" type="text/css" /> <!-- "sm-blue" menu theme (optional, you can use your own CSS, too) --> <link href="css/sm-blue/sm-blue.css" rel="stylesheet" type="text/css" /> </head> <!-- jQuery --> <script type="text/javascript" src="libs/jquery/jquery.js"></script> <!-- SmartMenus jQuery plugin --> <script type="text/javascript" src="libs/jquery/jquery.smartmenus.js"></script> <!-- SmartMenus jQuery init --> <script type="text/javascript"> $(function() { $('#main-menu').smartmenus({ subMenusSubOffsetX: 1, subMenusSubOffsetY: -8 }); }); </script>