{config_load file="$language_path_admin/$language.conf" section="general"}
{config_load file="$language_path_admin/$language.conf" section="export_overview_snippet"}
<table border="0" class="main" width="1000">

<tr class="mainheader">
	<th class="main">{#targets#}</td>
</tr>
<tr>
	<td class="main">
		<table width="100%" cellspacing="0">
		{foreach from=$export.targets item=target}
		<tr>
			<th class="main">{#ship#}</th>
			<th class="main">{#eta#}</th>
			<th class="main">{#ets#}</th>
			<th class="main">{#invoice_recipient#}</th>
			<th class="main">{#invoice_recipient_contact#}</th>
			<th class="main">{#delivery_conditions#}</th>
			<th>&nbsp;</th>
		</tr>
		<tr>
			<td class="main">{$target.ship_link_button} {$target.ship_link}</td>
			<td class="main">{$target.eta|date_format:"%d.%m.%Y"}</td>
			<td class="main">{$target.ets|date_format:"%d.%m.%Y"}</td>
			<td class="main">{$target.invoice_recipient_link_button} {$target.invoice_recipient_link}</td>
			<td class="main">{$target.invoice_recipient_contact_link_button} {$target.invoice_recipient_contact_link}</td>
			<td class="main">{$target.delivery_conditions}</td>
			<td class="main">{$target.edit_link}&nbsp;{$target.delete_link}</td>
		</tr>
		<tr>
			<td colspan="7" class="main">
			<div style="float:left;">
			<b>{#collies#}</b> ({$target.total_collies_string})
			<table cellspacing="0">
			{foreach from=$target.collies item=collie}
			<tr>
				<td class="main">{$collie.width} x</td>
				<td class="main">{$collie.height} x</td>
				<td class="main">{$collie.depth}</td>
				<td class="main">{$collie.unit}</td>
				<td class="main">{$collie.import_link}</td>
				<td class="main">{$collie.edit_link}&nbsp;{$collie.delete_link}</td>
			</tr>
			{foreachelse}
			<tr>
				<td colspan="5" class="main"><i>{#no_collies_saved#}</i></td>
			</tr>
			{/foreach}
			<tr>
				<td colspan="5" class="main">{$target.add_collie_link_button} {$target.add_collie_link}</td>
			</tr>
			</table>
			</div><div style="float:left;">
			&nbsp;&nbsp;&nbsp;
			</div><div style="float:left;">
			<b>{#import_ships#}</b>
			<table cellspacing="0">
			{foreach from=$target.imports item=import_ship}
			<tr>
				<td class="main">{if $import_ship.gassed ==1}<img src="images/icons/warning.gif" alt="{#gassed#}" title="{#gassed#}" border="0" /> {/if}{$import_ship.import_number_link_button} {$import_ship.import_number_link}</td>
				<td class="main">{if $import_ship.add_new_export_link}{$import_ship.add_new_export_link}&nbsp;{/if}{$import_ship.generate_invoice_link}&nbsp;{$import_ship.delete_link}</td>
			</tr>
			{foreachelse}
			<tr>
				<td class="main"><i>{#no_import_ships_saved#}</i></td>
			</tr>
			{/foreach}
			<tr>
				<td colspan="4" class="main">{$target.add_import_ship_link_button} {$target.add_import_ship_link}</td>
			</tr>
			</table>
			</div>
			</td>
		</tr>
		<tr>
			<td colspan="8" style="border-top:1px solid #000;">&nbsp;</td>
		</tr>
		{/foreach}
		</table>
		<br />
		{$export.add_target_link}
	</td>

</table>
<br />