{config_load file="$language_path_admin/$language.conf" section="general"}
{config_load file="$language_path_admin/$language.conf" section="invoices"}
	<table border="0" cellspacing="0" width="100%" cellpadding="4">
	<tr class="mainheader">
		<td>
			<table border="0" cellspacing="0" width="100%">
			<tr>
				<td class="main"><b>{#choose_import_ship_costs#}</b></td>
				<td class="main" align="right"><a class="lbAction" rel="deactivate" title="{$BUTTON_CLOSE}"><img src="images/cal_close_small.gif" border="0" title="{$BUTTON_CLOSE}"/></a></td>
			</tr>
			</table>
		</td>
	</tr><tr>
		<td class="main"><b>{#import_number#}</b> {$import_number}</td>
	</tr><tr>
		<td class="main"><b>{#invoice_number#}</b> {$invoice_number}</td>
	</tr><tr>
		<td class="main">{#ship_costs_in_import#}</td>
	</tr>
	<tr>
		<td class="main">
			{$form}
			<table border="0">
			<tr>
				<td class="main" valign="top" style="border-bottom: 1px solid #000;">&nbsp;</td>
				<td class="main" valign="top" style="border-bottom: 1px solid #000;"><b>{#ship#}</b></td>
				<td class="main" valign="top" style="border-bottom: 1px solid #000;"><b>{#costs_text#}</b></td>
				<td class="main" valign="top" style="border-bottom: 1px solid #000;" align="right"><b>{#costs#}</b></td>
				<td class="main" valign="top" style="border-bottom: 1px solid #000;" align="right"><b>{#costs_expensed#}</b></td>
			</tr>

	{foreach from=$costs item=cost key=ck}
			<tr>
				<td class="main" valign="top" style="border-bottom: 1px solid #000;">
		{if !$cost.saved}
					<input type="checkbox" name="import_ship_costs_id[]" value="{$cost.import_ship_costs_id}" />
		{else}
					&nbsp;
		{/if}
				</td>
				<td class="main" valign="top" style="border-bottom: 1px solid #000;">{$cost.ship}</td>
				<td class="main" valign="top" style="border-bottom: 1px solid #000;">{$cost.costs_text}</td>
				<td class="main" valign="top" style="border-bottom: 1px solid #000;" align="right">{$cost.costs|string_format:"%.2f"} {$currency}</td>
				<td class="main" valign="top" style="border-bottom: 1px solid #000;" align="right">{$cost.costs_expensed|string_format:"%.2f"} {$currency}</td>
			</tr>
	{foreachelse}
			<tr>
				<td class="main" colspan="4">
				<i>{#no_import_ship_costs_saved#}</i>
				</td>
			</tr>
	{/foreach}
			<tr>
				<td class="main" colspan="4">
				<input type="submit" class="iButton" value="{#save#}" />
				</td>
			</tr>
			</form>
			</table>				
		</td>
	</tr>
	</table>
