<table width="100%" cellpadding="5" cellspacing="1">
	{foreach name=s item=item key=key from=$fields}
		<tr class="table_row">
			<td height="30px" width="180" class="text_head" {if $item.control_type=='place'}colspan="2"{/if} valign="top" align="left">
				{$item.field_name}{if $item.mandatory=='Y'} <font class="error_msg">*</font>{/if}:
			</td>
			{if $item.control_type!='place'}
			<td height="30px">
				{if $item.control_type=='file'}
					{$item.html.code}
					{if isset($item.html.href)}
						<br><a href="#" onclick="window.open('{$site_root}/ajax_class.php?sel=view_file&id_attr={$item.id}&id_obj={$id_object}', 'view_img', 'height=300, resizable=yes, scrollbars=no, width=400, menubar=no,status=no, left=200, top=20'); return false;">{$lang.common.view_file}</a>
						&nbsp;<input type="checkbox" name="delfile_{$item.id}" value="1">&nbsp;{$lang.common.del_file}
					{/if}
				{elseif $item.control_type!='place'}
					{$item.html}
				{/if}
			</td>
			{/if}
		</tr>
		{if $item.control_type=='place'}
			<tr class="table_row">
				<td height="30px" width="180" class="text_head">
					{$lang.common.country}:
				</td>
				<td>
					{$item.html.country}
				</td>
			</tr>
			<tr class="table_row">
				<td height="30px" width="180" class="text_head">
					{$lang.common.region}:
				</td>
				<td>
					{$item.html.region}
				</td>
			</tr>
			<tr class="table_row">
				<td height="30px" width="180" class="text_head">
					{$lang.common.city}:
				</td>
				<td>
					{$item.html.city}
				</td>
			</tr>
		{/if}
		{if $item.control_type=='password'}
			<tr class="table_row">
				<td height="30px" width="180" class="text_head">
					{$lang.common.retype}&nbsp;{$item.field_name}{if $item.mandatory=='Y'} <font class="error_msg">*</font>{/if}:
				</td>
				<td>
					<input type='password' id='attr_re_{$item.id}' name="repass_{$item.id}" style="width: 300px">
				</td>
			</tr>
		{/if}
	{/foreach}
</table>
					
{*<!--JS CODE FOR GENERATED FORM-->*}
	{$js_code}
{*<!--JS-->*}