<?php
	$path="../../"; include("../../map.php");
	include("../../scripts.php");
 ?>
<?php $sqlsNo = mysqli_query($conn, "select * from eticaret where ne='sepet' and t5='sepet' and s1=".$_GET["id"]." order by id desc"); $sNo=mysqli_fetch_assoc($sqlsNo);?>
					<div style="float:right; margin-bottom:5px;">
						<a href="#" class="btn btn-xs btn-success"><i class="fa fa-shopping-basket"></i> <?php echo $sNo["t4"];?></a>
						<a href="#" class="btn btn-xs btn-info"><i class="fa fa-calendar"></i> <?php echo dtarih($sNo["ts1"],"gg ka yy time");?></a>
						<a href="#" class="btn btn-xs btn-warning"><i class="fa fa-bell"></i></a>
					</div>
<div style="width:100%; overflow:auto;">
					<table class="table" style="min-width:800px;">
						<tbody>
							<?php
								$sqlbasket = mysqli_query($conn, "select * from eticaret where ne='sepet' and t5='sepet' and s1=".$_GET["id"]." order by id desc");
								if(mysqli_num_rows($sqlbasket)==0){echo translate("#Sepette Ürün Yok");}
								while($basket=mysqli_fetch_assoc($sqlbasket)){
								$ufiyat=$basket["pb1"];
								$sqlu = mysqli_query($conn, "select * from ".$_SESSION["lang"]." where id=".$basket["s3"].""); $rsu=mysqli_fetch_assoc($sqlu);
								include("../deppo/tools/script/prices.php");
							?>
								<tr>
									<td class="w5 mw5">
										<img src="<?php echo medya($rsu["id"],1,"resim","t1","", $weburl);?>" style="max-height:55px;">
									</td>
									<td class="">
										<?php echo badge($basket["n1"])?><br><span style="font-size:10px;"><?php echo kisalt($rsu["n2"],5)?></span>
								</td>
								<td class="w20 mw20">
								<?php echo $basket["s2"]?> <?php echo $rsu["t10"]?>
							</td>
							<td class="tar">
								<b style="margin-top:5px"><?php echo wprice(($ufiyat*$basket["s2"]));?></b> <?php echo $spb //?>
								<br><?php if($rsu["s4"]<>0){?>+Kdv %<?php echo $rsu["s4"]?><?php }?>
							</td>
							</tr>
						<?php
						$skdv=$skdv+($basket["pb3"]*$basket["s2"]);
						$sdesi=$sdesi+($basket["s6"]*$basket["s2"]);
						$toplam2=$toplam2+($basket["pb4"]*$basket["s2"]);
						$toplam1=$toplam1+($basket["pb2"]*$basket["s2"]);
						}?>
					</tbody>
				</table>
</div>
<div class="row">
				<div class="v3-col-md-9 mdn" style=""></div>
				<div class="v3-col-md-3 v3-col-xs-12" style="">
					<div class="v3-panel v3-panel-warning" style="padding: 10px;">
							<div class="v3-row pb10 mpb10">
								<div class="v3-col-md-6 v3-col-xs-6" style="text-align:left;color:#999"><?php echo $sdil[175]; //?></div>
								<div class="v3-col-md-6 v3-col-xs-6" style=" text-align:right;color:#999"><?php echo wprice($toplam1-$skdv);?> <?php echo $spb //?></div>
							</div>
							<div class="v3-row pb10 mpb10">
								<div class="v3-col-md-6 v3-col-xs-6" style="text-align:left;color:#999"><?php echo $sdil[86]; //?></div>
								<div class="v3-col-md-6 v3-col-xs-6" style=" text-align:right;color:#999"><?php echo wprice($skdv);?> <?php echo $spb //?></div>
							</div>
							<div class="v3-row bt1 pt10 pb10 mbt1 mpt10 mpb10">
								<div class="v3-col-md-6 v3-col-xs-6" style="text-align:left;color:#999"><?php echo $sdil[176]; //?></div>
								<div class="v3-col-md-6 v3-col-xs-6" style=" text-align:right; font-weight: bold;color:#999"><?php echo wprice($toplam1);?> <?php echo $spb //?></div>
							</div>
							<?php if($s3==1 and $s13<>0){?>
								<div class="v3-row pb10 mpb10" style="">
									<div class="v3-col-md-6 v3-col-xs-6" style="text-align:left;color:red"><?php echo $sdil[226]; //?> %<?php echo $s13;?></div>
									<div class="v3-col-md-6 v3-col-xs-6" style=" text-align:right; font-weight: bold;color:red"><?php echo wprice($toplam1-($toplam1*$hind));?> <?php echo $spb //?></div>
								</div>
							<?php }?>
					</div>
				</div>
</div>	