{include file="$gentemplates/$header_tpl"}
<h2>{$lang.user_locations}</h2>
<table width="100%" cellspacing=0>
	
        {*if $form.err}
	<tr>
		<td colspan=2 style="padding-{$default_left}:15px;">
			<font class="error_msg">
				*&nbsp;{$form.err}
			</font><br>&nbsp;
		</td>
	</tr>
	{/if*}
        
	<tr>
		<td colspan=2>
			<ul style="padding:0 15px;">
			{foreach from=$totalList item=country}
				<li>
					{if $use_global_seo && $seo.main_location && $country.seo_link}
						<a href="{$site_root}/{$seo.main_location}-{$country.seo_link}">{$country.name}</a>
					{else}
						<a href="{$site_root}/quick_search.php?sel=search&seo=location_country&id_country={$country.id}">{$country.name}</a>
					{/if}
					
					{if $country.regions|count}
						<ul style="padding:0 15px;">
							{foreach item=region from=$country.regions}
							<li>
								{if $use_global_seo && $seo.main_location && $region.seo_link}
									<a href="{$site_root}/{$seo.main_location}-{$region.seo_link}">{$region.name}</a>
								{else}
									<a href="{$site_root}/quick_search.php?sel=search&seo=location_region&id_region={$region.id}">{$region.name}</a>
								{/if}
								{if $region.cities|count}
									<ul style="padding:0 15px;">
										{foreach item=city from=$region.cities}
											<li>
												{if $use_global_seo && $seo.main_location && $city.seo_link}
													<a href="{$site_root}/{$seo.main_location}-{$city.seo_link}">{$city.name}</a>
												{else}
													<a href="{$site_root}/quick_search.php?sel=search&seo=location_city&id_city={$city.id}">{$city.name}</a>
												{/if}
											</li>
										{/foreach}
									</ul>
								{/if}
							</li>
							{/foreach}
						</ul>
					{/if}
				</li>
			{/foreach}
			</ul>
		</td>
	</tr>
</table>
{include file="$gentemplates/$footer_tpl"}