{config_load file="$language_path_admin/$language.conf" section="general"}
{config_load file="$language_path_admin/$language.conf" section="exports_overview"}

<script type="text/javascript">
snippets = new Array();
snippets[0] = new Array('snippet_history','history','&class=exports&id={$id}');

window.onload=load_snippets();
{literal}
function load_snippets(){
	if(snippets.length > 0 && snippet_counter <= (snippets.length-1) ){
		snippet_div = snippets[snippet_counter][0];
		snippet_page = snippets[snippet_counter][1];
		snippet_params = snippets[snippet_counter][2];
		ajax_show_snippet(snippet_div,snippet_page,snippet_params);
	}
}
{/literal}
</script>



<div id="page_title">{#heading_title#} {$export.export_number}</div>

{if $export.action_array}
	{draw_actions items=$export.action_array}
{/if}


<div class="main">
	<div class="main" style="float:left;">
	<table border="0" cellspacing="0" cellpadding="3">
	<tr>
		<th class="main">{#date_added#}</th><td class="main">{$export.date_added|date_format:"%d.%m.%Y"}</td>
	</tr>
	<tr>
		<th class="main">{#start_transport#}</th><td class="main">{$export.start_transport_date|date_format:"%d.%m.%Y"}
		    {$export.start_transport_location}
		    {if $export.transport_type_airline}
			/ {#flight_number#}: {$export.start_transport_flight_number}
		    {/if}
		</td>
	</tr>
	<tr>
		<th class="main">{#end_transport#}</th><td class="main">{$export.end_transport_date|date_format:"%d.%m.%Y"}
		    {$export.end_transport_location}
		    {if $export.transport_type_airline}
			/ {#flight_number#}: {$export.end_transport_flight_number}
		    {/if}
		</td>
	</tr>
	</table>
	</div>
	<div class="main" style="float:left;">
	<table border="0" cellspacing="0" cellpadding="3">
	<tr>
		<th class="main">{#transport_type#}</th><td class="main">{$export.transport_type}</td>
	</tr>
	<tr>
		<th class="main">{#transport_code#}</th>
		<td class="main">{$export.transport_types_code}
		    {if $export.transport_type_airline}
		    / {$export.transport_type_airline} (Code: {$export.transport_type_airline_number_code})
		    {/if}
		    {if $export.routing_source}
		    <br />Routing: {$export.routing_source} - {$export.routing_target}
		    {/if}
		</td>
	</tr>
	</table>
	</div>
	<div style="clear:both;"></div>
	

	<div class="main" style="float:left;">{draw_address_table title=#recipient_title# values=$export.recipient_address source="company"}</div>
	<div class="main" style="float:left;">{draw_address_table title=#agent_title# values=$export.agent_address source="company"}</div>
	<div class="main" style="float:left;">{draw_address_table title=#transport_company_title# values=$export.transport_company_address source="company"}</div>
	<div style="clear:both;"></div>

</div>
<br />
<div class="main">
	{include file="snippet_export_targets.html"}
</div>
<br />
<div class="main">
	{include file="snippet_export_costs.html"}
</div>

<div class="main">
	<b>{#history#}</b>
	<div id="snippet_history"></div>
</div>