<?php /* Smarty version Smarty-3.1.15, created on 2015-05-25 23:13:09
         compiled from "/home/hushdogcafe/public_html/cube/modules/gateway/Print_Order_Form/skin/print.tpl" */ ?>
<?php /*%%SmartyHeaderCode:90494124455541fc3203555-60878999%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'faa35ee1af404298aec91fe0bd76642a5631c601' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/modules/gateway/Print_Order_Form/skin/print.tpl',
      1 => 1432566771,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '90494124455541fc3203555-60878999',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_55541fc34aaf67_00411397',
  'variables' => 
  array (
    'LANG' => 0,
    'SUM' => 0,
    'STORE_LOGO' => 0,
    'ADDRESS_DELIVERY' => 0,
    'ADDRESS_INVOICE' => 0,
    'ORDER_DATE' => 0,
    'ITEMS' => 0,
    'item' => 0,
    'option' => 0,
    'TAX' => 0,
    'TAXES' => 0,
    'tax' => 0,
    'CHEQUE' => 0,
    'MODULE' => 0,
    'CARDS' => 0,
    'card' => 0,
    'BANK' => 0,
    'STORE' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_55541fc34aaf67_00411397')) {function content_55541fc34aaf67_00411397($_smarty_tpl) {?><<?php ?>?php
/**
 * CubeCart v6
 * ========================================
 * CubeCart is a registered trade mark of CubeCart Limited
 * Copyright CubeCart Limited 2014. All rights reserved.
 * UK Private Limited Company No. 5323904
 * ========================================
 * Web:   http://www.cubecart.com
 * Email:  sales@devellion.com
 * License:  GPL-2.0 http://opensource.org/licenses/GPL-2.0
 */
?<?php ?>>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['order_id'];?>
 <?php echo $_smarty_tpl->tpl_vars['SUM']->value['cart_order_id'];?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="modules/gateway/Print_Order_Form/skin/style/print.css" media="screen,print" />
<style type="text/css" media="print">
form, input.button {
	display: none;
	visibility: hidden;
}
</style>
<script language='JavaScript'>

function doSubmit(form) {
  var f = form.fileToUpload.value;
  var f1 = f.toLowerCase(); 

  if (f=='') {
    alert('Please select a file');
    return false;
  }

  if (!f1.match(/\.(jpg|jpeg|png|gif)$/)) {
    alert('Please upload jpg/png/gif image file only.');
    return false;
  }

  if (GetFileSize('fileToUpload') > 6) {
    alert('Please restrict your file size to 6MB.');
    return false;
  }

  form.submit();
}

function goMain() {
     window.location='index.php'
}

function GetFileSize(fileid) {
  try {
    var fileSize = 0;
    //for IE
    if (navigator.userAgent.match(/msie/i)) {
        //before making an object of ActiveXObject, 
        //please make sure ActiveX is enabled in your IE browser
        var objFSO = new ActiveXObject("Scripting.FileSystemObject"); var filePath = $("#" + fileid)[0].value;
        var objFile = objFSO.getFile(filePath);
        var fileSize = objFile.size; //size in kb
        fileSize = fileSize / 1048576; //size in mb 
    }
        //for FF, Safari, Opeara and Others
    else {
        //fileSize = $("#" + fileid)[0].files[0].size //size in kb
        fileSize = document.getElementById(fileid).files[0].size;

        fileSize = fileSize / 1048576; //size in mb 

        //alert(fileSize);
    }
    //return (fileSize < 2.0);
    return fileSize;
  }
  catch (e) {
    alert("Error is :" + e);
  }
}
</script>
</head>

<body>

<div align="center">
  <form action="upload.php" method="post" enctype="multipart/form-data">
  <input type="hidden" name="order_id" value="<?php echo $_smarty_tpl->tpl_vars['SUM']->value['cart_order_id'];?>
">
  <input type="file" name="fileToUpload" id="fileToUpload" />
  <input type="button" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['upload_bankin_slip'];?>
" class="button" onclick="doSubmit(this.form);" />
  <input type="button" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['print'];?>
" class="button" onclick="window.print();" />
  <input type="button" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['close'];?>
" class="button" onclick="goMain();" />
  </form>
</div>
<br/>
<div id="wrapper">

  <div id="header">
	 <img src="<?php echo $_smarty_tpl->tpl_vars['STORE_LOGO']->value;?>
" alt="" />
  </div>

  <div id="address">
	<div id="deliver-to">
	  <strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['delivery_address'];?>
</strong><br />
	  <?php echo $_smarty_tpl->tpl_vars['ADDRESS_DELIVERY']->value['title'];?>
 <?php echo $_smarty_tpl->tpl_vars['ADDRESS_DELIVERY']->value['first_name'];?>
 <?php echo $_smarty_tpl->tpl_vars['ADDRESS_DELIVERY']->value['last_name'];?>
<br />
	  <?php if (!empty($_smarty_tpl->tpl_vars['ADDRESS_DELIVERY']->value['company_name'])) {?><?php echo $_smarty_tpl->tpl_vars['ADDRESS_DELIVERY']->value['company_name'];?>
<br /><?php }?>
	  <?php echo $_smarty_tpl->tpl_vars['ADDRESS_DELIVERY']->value['line1'];?>
 <br />
	  <?php if (!empty($_smarty_tpl->tpl_vars['ADDRESS_DELIVERY']->value['line2'])) {?><?php echo $_smarty_tpl->tpl_vars['ADDRESS_DELIVERY']->value['line2'];?>
<br /><?php }?>
	  <?php echo $_smarty_tpl->tpl_vars['ADDRESS_DELIVERY']->value['town'];?>
<br />
	  <?php echo $_smarty_tpl->tpl_vars['ADDRESS_DELIVERY']->value['state'];?>
, <?php echo $_smarty_tpl->tpl_vars['ADDRESS_DELIVERY']->value['postcode'];?>
<br />
	  <?php echo $_smarty_tpl->tpl_vars['ADDRESS_DELIVERY']->value['country'];?>

	</div>
	<div id="invoice-to">
	<strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['billing_address'];?>
</strong><br />
	  <?php echo $_smarty_tpl->tpl_vars['ADDRESS_INVOICE']->value['title'];?>
 <?php echo $_smarty_tpl->tpl_vars['ADDRESS_INVOICE']->value['first_name'];?>
 <?php echo $_smarty_tpl->tpl_vars['ADDRESS_INVOICE']->value['last_name'];?>
<br />
	  <?php if (!empty($_smarty_tpl->tpl_vars['ADDRESS_INVOICE']->value['company_name'])) {?><?php echo $_smarty_tpl->tpl_vars['ADDRESS_INVOICE']->value['company_name'];?>
<br /><?php }?>
	  <?php echo $_smarty_tpl->tpl_vars['ADDRESS_INVOICE']->value['line1'];?>
<br />
	  <?php if (!empty($_smarty_tpl->tpl_vars['ADDRESS_INVOICE']->value['line2_d'])) {?><?php echo $_smarty_tpl->tpl_vars['ADDRESS_INVOICE']->value['line2'];?>
<br /><?php }?>
	  <?php echo $_smarty_tpl->tpl_vars['ADDRESS_INVOICE']->value['town'];?>
<br />
	  <?php echo $_smarty_tpl->tpl_vars['ADDRESS_INVOICE']->value['state'];?>
, <?php echo $_smarty_tpl->tpl_vars['ADDRESS_INVOICE']->value['postcode'];?>
<br />
	  <?php echo $_smarty_tpl->tpl_vars['ADDRESS_INVOICE']->value['country'];?>

	</div>
  </div>

  <div id="info">
    <span style="float: right;"><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['order_id'];?>
:</strong> <?php echo $_smarty_tpl->tpl_vars['SUM']->value['cart_order_id'];?>
</span>
	<strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['date'];?>
:</strong> <?php echo $_smarty_tpl->tpl_vars['ORDER_DATE']->value;?>

  </div>

  <div class="product">
    <span class="price"><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['price'];?>
</strong></span>
	<strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['product'];?>
</strong>
  </div>

  <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ITEMS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
  <div class="product">
    <span class="price"><?php echo $_smarty_tpl->tpl_vars['item']->value['price_total'];?>
</span>
	<?php echo $_smarty_tpl->tpl_vars['item']->value['quantity'];?>
 x <?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
 <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['item']->value['product_code'];?>
<?php $_tmp1=ob_get_clean();?><?php if (!empty($_tmp1)) {?>- <?php echo $_smarty_tpl->tpl_vars['item']->value['product_code'];?>
<?php }?> (<?php echo $_smarty_tpl->tpl_vars['item']->value['price'];?>
)<br />
	<?php if ($_smarty_tpl->tpl_vars['item']->value['options']) {?> 
	  <?php  $_smarty_tpl->tpl_vars['option'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['option']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['item']->value['options']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['option']->key => $_smarty_tpl->tpl_vars['option']->value) {
$_smarty_tpl->tpl_vars['option']->_loop = true;
?>
	    <?php echo $_smarty_tpl->tpl_vars['option']->value;?>
 <br />
	  <?php } ?>
	<?php }?>
  </div>
  <?php } ?>

  <div id="totals">
	<div class="total"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total_sub'];?>
: <?php echo $_smarty_tpl->tpl_vars['SUM']->value['subtotal'];?>
</div>
	<div class="total"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total_discount'];?>
 <?php if ($_smarty_tpl->tpl_vars['SUM']->value['percent']) {?>(<?php echo $_smarty_tpl->tpl_vars['SUM']->value['percent'];?>
)<?php }?>: <?php echo $_smarty_tpl->tpl_vars['SUM']->value['discount'];?>
</div>
	<div class="total"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['shipping'];?>
: <?php echo $_smarty_tpl->tpl_vars['SUM']->value['shipping'];?>
</div>
	<?php if ($_smarty_tpl->tpl_vars['TAX']->value) {?>
		<div class="total"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total_tax'];?>
: <?php echo $_smarty_tpl->tpl_vars['TAX']->value;?>
</div>
  	<?php } elseif ($_smarty_tpl->tpl_vars['TAXES']->value) {?>
  		<?php  $_smarty_tpl->tpl_vars['tax'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tax']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['TAXES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['tax']->key => $_smarty_tpl->tpl_vars['tax']->value) {
$_smarty_tpl->tpl_vars['tax']->_loop = true;
?>
  		<div class="total"><?php echo $_smarty_tpl->tpl_vars['tax']->value['name'];?>
: <?php echo $_smarty_tpl->tpl_vars['tax']->value['value'];?>
</div>
  		<?php } ?>
  	<?php }?>
	<div class="total"><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total_grand'];?>
: <?php echo $_smarty_tpl->tpl_vars['SUM']->value['total'];?>
</strong></div>
  </div>
  <?php if (!empty($_smarty_tpl->tpl_vars['SUM']->value['customer_comments'])) {?>
  <div><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['your_comments'];?>
:<br /><em>&quot;<?php echo $_smarty_tpl->tpl_vars['SUM']->value['customer_comments'];?>
&quot;</em></div>
  <?php }?>
  <?php if ($_smarty_tpl->tpl_vars['CHEQUE']->value) {?>
  <div class="payment_method">
	<strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['gateway']['cheque_payment'];?>
</strong><br />
	<?php echo $_smarty_tpl->tpl_vars['LANG']->value['gateway']['cheque_payable_to'];?>
 &quot;<?php echo $_smarty_tpl->tpl_vars['MODULE']->value['payableTo'];?>
&quot;
  </div>
  <?php }?>

  <?php if ($_smarty_tpl->tpl_vars['CARDS']->value) {?>
  <div class="payment_method">
	<div id="card_details">
	  <div class="detail"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['gateway']['card_number'];?>
:</div>
	  <div class="detail"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['gateway']['card_expiry_date'];?>
:</div>
	  <div class="detail"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['gateway']['card_issue_date'];?>
:</div>
	  <div class="detail"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['gateway']['card_issue_no'];?>
:</div>
	  <div class="detail"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['gateway']['card_security'];?>
:</div>
	</div>

	<div style="margin-bottom: 5px;"><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['gateway']['card_payment'];?>
</strong></div>
	<div id="card_types">
	  <?php  $_smarty_tpl->tpl_vars['card'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['card']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['CARDS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['card']->key => $_smarty_tpl->tpl_vars['card']->value) {
$_smarty_tpl->tpl_vars['card']->_loop = true;
?>
	  <img src="modules/gateway/Print_Order_Form/skin/images/box.gif" alt="" /> <?php echo $_smarty_tpl->tpl_vars['card']->value;?>
<br />
	  <?php } ?>
	</div>

  </div>
  <?php }?>

  <?php if ($_smarty_tpl->tpl_vars['BANK']->value) {?>
  <div class="payment_method">
	<strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['gateway']['bank_transfer'];?>
</strong><br />
	<br />
	<div><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['gateway']['bank_name'];?>
:</strong> <?php echo $_smarty_tpl->tpl_vars['MODULE']->value['bankName'];?>
</div>
	<div><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['gateway']['bank_account_name'];?>
:</strong> <?php echo $_smarty_tpl->tpl_vars['MODULE']->value['accName'];?>
</div>
	<div><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['gateway']['bank_sort_code'];?>
:</strong> <?php echo $_smarty_tpl->tpl_vars['MODULE']->value['sortCode'];?>
</div>
	<div><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['gateway']['bank_account_no'];?>
:</strong> <?php echo $_smarty_tpl->tpl_vars['MODULE']->value['acNo'];?>
</div>
	<div><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['gateway']['bank_swift_code'];?>
:</strong> <?php echo $_smarty_tpl->tpl_vars['MODULE']->value['swiftCode'];?>
</div>
	<div><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['gateway']['bank_address'];?>
:</strong> <?php echo $_smarty_tpl->tpl_vars['MODULE']->value['address'];?>
</div>
  </div>
  <?php }?>

  <?php if (!empty($_smarty_tpl->tpl_vars['MODULE']->value['notes'])) {?>
  <div id="notes"><?php echo $_smarty_tpl->tpl_vars['MODULE']->value['notes'];?>
</div>
  <?php }?>

  <div id="thanks"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['thanks'];?>
</div>
  <div id="footer">
	<?php echo $_smarty_tpl->tpl_vars['LANG']->value['gateway']['postal_address'];?>
: <?php echo $_smarty_tpl->tpl_vars['STORE']->value['address'];?>
, <?php echo $_smarty_tpl->tpl_vars['STORE']->value['county'];?>
, <?php echo $_smarty_tpl->tpl_vars['STORE']->value['postcode'];?>
 <?php echo $_smarty_tpl->tpl_vars['STORE']->value['country'];?>
<br />
	<?php echo $_smarty_tpl->tpl_vars['STORE']->value['name'];?>
, <?php echo $_smarty_tpl->tpl_vars['STORE']->value['url'];?>

  </div>

</div>
</body>
</html><?php }} ?>
