<!DOCTYPE html>
<html lang="en">
<head>
	<title><?php echo JAK_TITLE;?> - <?php if ($page) { echo ucfirst($page); } ?></title>
	<meta charset="utf-8">
	<meta name="description" content="e-Commerce plugin for Gecko" />
	<meta name="keywords" content="Gecko" />
	<meta name="author" content="Gecko (http://www.cmsgecko.com" />
	<style>
	
	body {
		background: #fff;
	}
	
	.invoice_number {
		margin: 20px;
		font-size: 18px;
		font-weight: bold;
	}
	
	.invoice_address {
		float: left;
		margin: 0 0 20px 30px;
		font-size: 14px;
	}
	
	.invoice_address_shop {
		width: 750px;
		margin: 20px;
		text-align: center;
	}
	
	.shipping_address {
		float: right;
		margin: 0 0 20px 30px;
		font-size: 14px;
	}
	
	.shopcat {color:#3b5da3;font-weight:normal;margin:20px;padding:0;}
	.shopcat li {list-style:none;border-bottom:1px solid #e2e2e2;margin:0 20px 10px 10px;padding-bottom:2px;}
	.shopcat li span {
		float: right;
	}
	.shopcat .shopoption {list-style:none;border-bottom:1px solid #e2e2e2;margin:0 20px 10px 40px;padding-bottom:2px;}
	.shopcat a {position:relative;color:#4d97bd;text-decoration:none;}
	.shopcat img {margin-top:-2px;float:right;}
	.shopcat .unpaid {list-style:none;border-bottom:1px solid #c95252;margin:0 20px 10px 10px;padding-bottom:2px;}
	.shopcat .paid {list-style:none;border-bottom:1px solid #5ebe7d;margin:0 20px 10px 10px;padding-bottom:2px;}
	.shoptotalsum {float: right;margin-right:10px;}
	.clear {
		clear: both;
	}
	
	</style>
</head>
<body>
<div style="width:750px; font-family: Arial, Helvetica, sans-serif; font-size: 12px;margin:0 auto 0em">
<div align="center"><img src="../img/header.jpg" style="height: 90px; width: 750px"></div>
<div class="invoice_number"><?php echo $tl["shop"]["m34"].$row["ordernumber"];?></div>
<div class="invoice_address"><h4><?php echo $tl["shop"]["m35"];?></h4>

<?php if ($row["company"]) { echo $row["company"].'<br />'; } echo $row["name"].'<br />'.$row["address"].'<br />'.$row["city"].' '.$row["zip_code"].'<br />'.$JAK_COUNTRY;?>

</div>
<div class="shipping_address"><h4><?php echo $tl["shop"]["m57"];?></h4>

<?php if ($row['sh_name']) { if ($row["sh_company"]) { echo $row["sh_company"].'<br />'; } echo $row["sh_name"].'<br />'.$row["sh_address"].'<br />'.$row["sh_city"].' '.$row["sh_zip_code"].'<br />'.$JAK_SHCOUNTRY;

} else {

if ($row["company"]) { echo $row["company"].'<br />'; } echo $row["name"].'<br />'.$row["address"].'<br />'.$row["city"].' '.$row["zip_code"].'<br />'.$JAK_COUNTRY;

} ?>

</div>
<div style="clear:both;"></div>
<h1 style="margin-left:20px"><?php echo $tl["shop"]["m1"];?></h1>
<div>
<ul class="shopcat">

<?php if (isset($jak_ordered) && is_array($jak_ordered)) foreach($jak_ordered as $jo) { ?>

<li<?php if (!$row["paid"] == 1) { ?> class="unpaid"<?php } ?>><?php echo $jo["total_item"];?> x <?php echo $jo["title"];?><?php if ($jo["product_option"]) { echo '&nbsp;('. $jo["product_option"] .')&nbsp;'; } ?><span><?php echo $jo["price"];?>&nbsp;<?php echo $row["currency"]; if ($jo["coupon_price"] != "0.00" && $jo["price"] != $jo["coupon_price"]) { echo ' ('.$tl["shop"]["m86"].$jo["coupon_price"].'&nbsp;'.$row["currency"].')';}?></span></li>

<?php } ?>

</ul>
<div class="shoptotalsum"><strong><?php echo $tl["shop"]["m56"];?>: </strong><?php if ($row["freeshipping"]) { echo $tl["shop"]["m81"]; } else { echo $row["shipping"].' '.$row["currency"];}?><br /><strong><?php echo $tl["shop"]["m55"];?>: </strong><?php echo $row["tax"];?>&nbsp;<?php echo $row["currency"];?><br /><strong><?php echo $tl["shop"]["m36"];?></strong><?php echo $row["total_price"];?>&nbsp;<?php echo $row["currency"];?></div>
</div>
<div class="clear"></div>
<div class="invoice_address_shop">
<h4><?php echo $tl["shop"]["m37"];?></h4>
<p><?php echo JAK_SHOP_ADDRESS;?></p>
</div>
</div>
</body>
</html>