<?php
$w = "62"; //first column width
$w2 = "12"; //second column width
//get bank information
$a = new Account();
$a->retrieve($focus->parent_id);
if ($a->document_bank_account == 'mbank') {
	$ba_number = '26 1140 1010 0000 5482 1200 1001';
	$ba_name = 'MBANK';
} else {
	$ba_number = '35 1160 2202 0000 0000 6408 0411';
	$ba_name = 'BANK MILLENIUM';
}
unset($a);
$footer = '
<hr>
<table style="width: 100%; font-size: 7pt;">
	<tr>
		<td style="width: '.$w.'%">
			e5 Polska Sp. z o.o
		</td>
		<td style="width: '.$w2.'%">
			<b>'.$labels['LBL_PDF_FOOTER_KRS'].'</b>
		</td>	
		<td style="text-align: right">
			28207
		</td>
	</tr>
	<tr>
		<td style="width: '.$w.'%">
			ul. Wąwozowa 11
		</td>
		<td style="width: '.$w2.'%">
			<b>'.$labels['LBL_PDF_FOOTER_NIP'].'</b>
		</td>	
		<td style="text-align: right">
			PL 525-21-73-990
		</td>
	</tr>
	<tr>
		<td style="width: '.$w.'%">
			02-796 Warszawa
		</td>
		<td style="width: '.$w2.'%">
			<b>'.$labels['LBL_PDF_FOOTER_REGON'].'</b>
		</td>	
		<td style="text-align: right">
			016280234
		</td>
	</tr>
	<tr>
		<td style="width: '.$w.'%">
			Tel: +48 (22) 228 20 90 
		</td>
		<td style="width: '.$w2.'%">
			<b>'.$labels['LBL_PDF_FOOTER_BANK'].'</b>
		</td>	
		<td style="text-align: right">
			'.$ba_name.'
		</td>
	</tr>
	<tr>
		<td style="width: '.$w.'%">
			Fax: +48 (56) 674 60 47
		</td>
		<td style="width: '.$w2.'%">
			<b>'.$labels['LBL_PDF_FOOTER_BANK_ACCOUNT'].'</b>
		</td>	
		<td style="text-align: right">
			'.$ba_number.'
		</td>
	</tr>
	<tr>
		<td style="width: '.$w.'%">
			'.$user->email1.'
		</td>
		<td style="width: '.$w2.'%">
			<b>'.$labels['LBL_PDF_FOOTER_GIOS'].'</b>
		</td>	
		<td style="text-align: right">
			E0006254W
		</td>
	</tr>
</table>
<br>
<table style="width: 100%; font-size: 7pt;">				
	<tr>
				<td style="width: 50%;">
					{PAGENO}/{nb}
				</td>
				<td style="width: 50%; text-align: right">
				<b>'.$focus->document_no.'</b>
				</td>
	</tr>			
</table>		
';