?>
&status=<?php 
echo ($invoice->getPaidStatus() + 1) % 2;
?>
";
}
// -->

</script>
<table class="invoice_table" >
    <tr class="form_invoice_head">
        <td width="75%"><font color="#FFFFFF"><?php 
echo gettext("INVOICE: ");
?>
</font><font color="#FFFFFF"><b><?php 
echo $invoice->getTitle();
?>
</b></font></td>
        <td width="25%"><font color="#FFFFFF"><?php 
echo gettext("REF: ");
?>
 </font><font color="#EE6564"> <?php 
echo $invoice->getReference();
?>
</font></td>
    </tr>
    <tr>
        <td colspan="2" align="right">
            <a href="javascript:;" onClick="MM_openBrWindow('A2B_invoice_view.php?popup_select=1&id=<?php 
echo $id;
?>
}


$invoice = new invoice($id);
$table_card = new Table("cc_card","vat");
$result_vat = $table_card->Get_list(DbConnect(),"id=".$invoice->getCard());
$card_vat =  $result_vat[0][0];
$items = $invoice->loadItems();


$smarty->display('main.tpl');

?>
<table class="invoice_table" >
	<tr class="form_invoice_head">
	    <td width="75%"><font color="#FFFFFF"><?php echo gettext("INVOICE: "); ?></font><font color="#FFFFFF"><b><?php echo $invoice->getTitle();  ?></b></font></td>
	    <td width="25%"><font color="#FFFFFF"><?php echo gettext("REF: "); ?> </font><font color="#EE6564"> <?php echo $invoice->getReference(); ?></font></td>
	</tr>
	<tr>
		<td>
		&nbsp;
		</td>
	</tr>
	<tr>
		<td >
		 <font style="font-weight:bold; " ><?php echo gettext("FOR : "); ?></font>  <?php echo $invoice->getUsernames();  ?>

		</td>
		<td>
		<font style="font-weight:bold; " ><?php echo gettext("DATE : "); ?></font>  <?php echo $invoice->getDate();  ?>
		</td>