<style>
body,html{-webkit-text-size-adjust:none; }
#cantact{border-radius:5px;box-shadow:0 1px 6px rgba(0,0,0,0.3); width:800px; padding:8px; text-align:center; margin:20px 0 0 20px;zoom:1;}
p{margin:0 0 10px;}
.MsoNormalTable{border-top:1px solid #d5d5d5;border-left:1px solid #d5d5d5;}
.MsoNormalTable td{font-size:16px;border-collapse: collapse;border-right:1px solid #d5d5d5;border-bottom:1px solid #d5d5d5;border-spacing:0; text-indent:15px; padding:5px;}
.heading1{background-color: #FFDE38;font-size:18px;font-weight: bold;padding:5px; height:32px; line-height:32px; width:685px;}
.heading{position:fixed;margin:0;left:39px;top:0;}
.western_box h2{font-size:16px; color:#cc0000; font-family:Arial, Helvetica, sans-serif; margin-bottom:5px;}
.clearfix:after { 
content: "."; 
display: block; 
height: 0; 
clear: both; 
visibility: hidden;} 
.clearfix {display: inline-block;} 
* html .clearfix {height: 1%;} 
.clearfix {display: block;}
</style>
<script src="catalog/javascript/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function(){
                var topMain=$("#head").height()+200//��ͷ���ĸ߶ȼ�ͷ����nav����֮��ľ��롣
                var nav=$(".heading1");
                $(window).scroll(function(){
                    if ($(window).scrollTop()>topMain){//��������ľ������topMain���nav�����������.nav_scroll��������Ƴ�
                        nav.addClass("heading");
                    }
                    else
                    {
                        nav.removeClass("heading");
                    }
                });
     
        })
</script>
<div id="cantact">
<table width="800"><!--style="font:11px/150% Verdana, Arial, Helvetica, sans-serif; color:#000;"-->
    <tr>
    <td align="left">
    <div id="#head" class="b clearfix" style="border:1px solid #eee; margin-bottom:10px; padding:5px;">
      <table class="c">
        <tr style="font:11px/120% Verdana, Arial, Helvetica, sans-serif; color:#000; font-weight:bold;">
          <th align="left" width="60%"><?php echo $text_product; ?></th>
          <th class="center">ItemNo.</th>
          <th align="center"><?php echo $text_quantity; ?></th>
          <th align="center"><?php echo $text_price; ?></th>
          <th align="right"><?php echo $text_total; ?></th>
        </tr>
        <?php foreach ($products as $product) { ?>
        <tr><!--style="font:11px/150% Verdana, Arial, Helvetica, sans-serif; color:#000;"-->
              <td align="left" style="padding:4px 0;">
                <div style="float:left;"><a href="" target="_blank"><img width="65" height="65" border="0" src="<?php echo $product['thumb']?>"></a></div>
                <div style="padding-left:5px; overflow:hidden;"><a href="https://www.beststoreitems.com/index.php?controller=product&product_id=<?php echo $product['product_id']; ?>"><?php echo $product['name']; ?></a>
                <?php foreach ($product['option'] as $option) { ?>
                <br />
                <small style="padding-left:5px;"> - <?php echo $option['name']; ?> <?php echo $option['value']; ?></small>
                </div>	
    
                <?php } ?>
              </td>         
                   <td align="center"><?php echo $product['product_id']; ?></td>
              <td align="center"><?php echo $product['quantity']; ?></td>
              <td align="center"><?php if (!$product['discount']) { ?>
    
                <?php echo $product['price']; ?>
    
                <?php } else { ?>
    
                <span class="price_old"><?php echo $product['price']; ?></span><br />
    
                <span class="price_new"><?php echo $product['discount']; ?></span>
    
                <?php } ?></td>
              <td align="right"><?php echo $product['total']; ?></td>
        </tr>
        <?php } ?>
      </table>
      
      <br />
       <div class="f clearfix" style="position:relative;">    
    <table style="float:right;">    
        <?php foreach ($totals as $total) { ?>
        <tr>
            <td class="right" colspan="2" style="padding-right:10px;"><?php echo $total['title']; ?></td>
            <td class="right"><?php  echo $total['text'];?></td>
        </tr>
        <?php } ?>     
        <?php if(isset($pay_usd)){?> 
		    <tr>
		        <td class="right" colspan="4" style="padding-right:10px;">You need pay:</td>
		        <td class="right" style="color:red;">US$ <?php echo $pay_usd?></td>
		    </tr>   
        <?php }?>
    </table>     
    </div>
	  
    </div>
	<div id="content_we" style="margin:0 0 10px; clear:both; border-top:1px solid #eee;">
	<p class="heading1">5 steps for aliexpress payment</p>
  
	<table width="800" height="150" align="left" cellspacing="0" cellpadding="0" class="MsoNormalTable">
		<tbody>
			<tr>
				<td>1. Click "Go to our shop on aliexpress.com" button below.</td>
			</tr>
			<tr>
				<td>2. Choose any US$1 item in our shop, then add it to cart.</td>
			</tr>
            <tr>
				<td>3. Increase the quantity of item so that the subtotal is equal to your order amount on our site.</td>
			</tr>
            <tr>
				<td>4. Checkout to place an order, it may request you to sign up if you are not their member.</td>
			</tr>
			<tr>
				<td>5. Fill the same shipping address as your order on our website, then pay your aliexpress order.</td>
			</tr>	
		</tbody>
	</table>
	<div style="clear:both;"></div>
	<p style="margin-top:15px;">
		Once you paid your order sucessfully, please send an e-mail to <a href="mailto:sales@beststoreitems.com" style="color:blue;">sales@beststoreitems.com</a> to tell your order reference and be patient to wait our processing in 12 hours.</p>
	<div style="clear:both;"></div>
	</div>
  <div style="clear:both; height:15px;"></div>
  <div class="buttons">
    <table width="100%"><tr>
      <td valign="top">
		<input type="button" style="background:url(catalog/template/beststoreitems/image/backtoaccount.gif); width:160px; height:30px; border:0; cursor:pointer;" value="" onclick="location.href='https://www.beststoreitems.com/index.php?controller=potential_order&order_id=<?php echo $order_id; ?>'" />
	  </td>	
	<td align="left">      
        <input type="submit" style=" font-color: blue; font-weight:bold; font-size:12px; font-family:Verdana, Arial;height:30px;" value="Go to our shop on aliexpress.com" onclick="javascript:window.open('http://www.aliexpress.com/store/214468','_blank')"/>     
	   </td>	
	<?php if (isset($payment_url)) {?>
      </tr>
    </table>
	</div>

<?php }?>

</td></tr></table>
</div>