<page_header>

	<table $body_table_params$>
	<!-- Intestazione fornitore -->
	<tr><td style="font-size:8pt; color:#555;width:500px;">
		<img src="$docroot$/templates/documenti/logo_azienda.jpg" alt="Logo" border="0" />
	</td>
	<td>
		<b>$f_ragionesociale$</b>
		$f_indirizzo$
		$f_citta$
		$f_piva$
		$f_codicefiscale$
		$f_capsoc$
		$f_telefono$
		$f_fax$
		$f_sitoweb$
		$f_email$
	</td></tr>
	</table><br/>


	<table style="margin-left:1.7mm; font-size:11px;">
		<tr>
			<!-- Dati Fattura -->
			<td cellspacing="0" cellpadding="0" valign="top">
				<div style="text-align:center; width:104.5mm; height:5mm;">
					<b>$tipo_doc$</b><br/>
				</div>

				<table cellspacing="0" style="table-layout:fixed;">
					<col width="27"><col width="35"><col width="21.3"><col width="12">
					<tr>
						<td valign="top" class="full_cell1" align="center" style="width:27mm;">
							<small><small><b>NR. DOCUMENTO</b></small></small><br/>
							$numero_doc$
						</td>
						<td class="full_cell" align="center" style="width:35mm;">
							<small><small><b>DATA DOCUMENTO</b></small></small><br/>
							$data$
						</td>
						<td class="full_cell" align="center" style="width:21.3mm;">
							<small><small><b>CLIENTE</b></small></small><br/>
							$c_codice$
						</td>
						<td class="full_cell" align="center" style="width:12mm;">
							<small><small><b>FOGLIO</b></small></small><br/>
							&nbsp;&nbsp;&nbsp;&nbsp;[[page_cu]]/[[page_nb]]
						</td>
					</tr>

					<tr>
						<td class="" colspan="2" style="height:10mm;">
							<small><small><b>PAGAMENTO</b></small></small><br/>
							$pagamento$
							<br/><br/>
							<small><small><b>IBAN</b></small></small><br/>
							$f_codiceiban$
						</td>
						<td colspan="2" style="height:10mm;" >
							<br/><br/><br/>
							<small><small><b>BANCA DI APPOGGIO</b></small></small><br/>
							$f_appoggiobancario$

						</td>
					</tr>

				</table>
			</td>

			<td style="width:5mm;"></td>


			<td style="width:80mm;" valign="top">
				<div style="height:5mm;">
					&nbsp;<br/>
				</div>
				<table cellspacing="0">
					<tr>
						<!-- cliente -->
						<td colspan="2" style="width:80mm; height:16mm; font-size:9pt; border:1px solid #aaa;" valign="top">
							<small><small><b>SPETT.LE</b></small></small><br/>
							<div style="padding:1mm;">
								$c_ragionesociale$
								$c_indirizzo$
								$c_citta$
							</div>
						</td>
					</tr>
					<tr>
					<td style="width:50%;font-size:9pt; border-left:1px solid #aaa;border-right:1px solid #aaa;border-bottom:1px solid #aaa;">
						<small><small><b>PARTITA IVA</b></small></small><br/>
						$c_piva$
					</td>

					<td style="width:50%;font-size:9pt; border-right:1px solid #aaa;border-bottom:1px solid #aaa;">
						<small><small><b>CODICE FISCALE</b></small></small><br/>
						$c_codicefiscale$
					</td>

					</tr>

				</table>
			</td>
		</tr>
	</table>
	<br/>
</page_header>




<!-- Footer -->
<page_footer>
	$footer$
	<br/><table border="0" style="width:180mm; font-size:7pt; color:#999; border: 0px solid red;">
	<tr>
	<td colspan="2" style="text-align:center;">

		$dicitura_fissa_fattura$
	</td>
	</tr>

	<tr><td style="width:90mm;">
		Stampato con Gest366
	</td>
	<td style="width:90mm; text-align:right;">
		Pagina [[page_cu]] di [[page_nb]]
	</td></tr>

	</table>
</page_footer>