<table class="dashed">
    <tr>
        <th class="floatval">{$i.addresses_name}</th>
        <th class="floatval">{$i.addresses_town}</th>
        <th class="floatval">{$i.addresses_distance}</th>
    </tr>
    {foreach item="address" from=$nearby_addresses}
        {if $address->id <> $origin_address_id}
            <tr>
                <td title="{$i.addresses_name}">
                    <a style="text-decoration:none;"
                       href="{site_url url="start/open/addressesandcontacts/index/$nearby_xjxcookie/view/{$address->id}/"}"
                       onclick="usComm.loadPage('addressesandcontacts','index', 'view', {$address->id});return false;">{$address->name}</a>
                </td>
                <td title="{$i.addresses_town}">{$address->town}</td>
                <td title="{$i.addresses_distance}" class="floatval">{float_to_usnumber($address->distance,2)}</td>
            </tr>
        {/if}
    {/foreach}
</table>