<?php /*
<script type="text/javascript" language="javascript">

	$(document).ready(function () {
	
		
		$('.del').click(function(){
			var idDel = parseInt($(this).attr('id'));
			$("#shopInfo").load("<?php echo $this->url(array('controller' => 'shop', 'action' => 'shopinfo'), 'default', true); ?>",{operation: 'delproduct', idDel: idDel},function(){});
		});
		
		$(".shopinfoBox").hover(
			function(){
				$(".shopinfoList").show();
				$(".shopinfoBox").css('border-bottom','0px');
			},
			function(){
				$(".shopinfoList").hide();	
				$(".shopinfoBox").css('border-bottom','2px solid #000');		
			}
		);
	
	});

</script>

<div class="row shopinfoBox">
<table width="100%">
	<tr>
		<td style="text-align:left"><img src="<?php echo $this->escape($this->baseUrl); ?>/public/images/ic.jpg" /></td>
		<td style="text-align:center;font-size:13px;">
			<?php echo $this->countOrder; ?> <?php echo @Lib_Lang::translate(front_shopinfo_amount); ?><br />
			<b><?php echo number_format($this->priceOrder, 2, ',', ' '); ?> zł</b>
		</td>
		<td style="text-align:right"><img src="<?php echo $this->escape($this->baseUrl); ?>/public/images/pd.jpg" />&nbsp;</td>
	</tr>
</table>


<div class="shopinfoList">
<?php if( count($this->orderData) > 0 ){ ?>
	<table class="shopinfoListTable" style="">
	<?php foreach ($this->orderData as $key => $val): ?>
		<tr>
			<td><?php echo @Lib_Lang::consta(product_name_.$val['idProduct']); ?></td>
			<td><?php echo $val['amount']; ?> x <b><?php echo number_format($val['price'], 2, ',', ' '); ?></b> zł</td>
			<td><?php echo number_format($val['amount']*$val['price'], 2, ',', ' '); ?></td>
			<td><button class="del" id="<?php echo $key; ?>">X</button></td>
		</tr>	
	<?php endforeach; ?>
	</table>
	
	<div class="row">
	<div class="col-lg-2"></div>
	<div class="col-lg-8">
	<br /><center><a href="<?php echo $this->url(array('controller' => 'order', 'action' => 'send'), 'default', true); ?>"><button class="shopinfoButton"><?php echo @Lib_Lang::translate(front_shopinfo_send); ?></button></a></center><br />
	</div>
	<div class="col-lg-2"></div>
	</div>
	
<?php }else{ ?>
	<center><?php echo @Lib_Lang::translate(front_shopinfo_bd); ?></center>
<?php } ?>	
</div>

</div>
*/ ?>

<a href="<?php echo $this->url(array('controller' => 'order', 'action' => 'send'), 'default', true); ?>">
Koszyk (<?php echo number_format($this->priceOrder, 2, ',', ' '); ?> zł / <?php echo $this->countOrder; ?> <?php echo @Lib_Lang::translate(front_shopinfo_amount); ?>)
</a>

