{foreach from=$fields item=v name=custom}
{if $v.type!="depending" && $v.type!="checkbox_group" && $v.type!="radio_group" && $v.type!="google_maps" && in_array($v.type, $default_fields_types) }
{$v.name}{if $v.required==1}
*
{/if}
{/if} {if $v.type=="textbox" || $v.type=="url" || $v.type=="email"} {if $v.prefix!=""} {$v.prefix} {/if}
{if $v.postfix!=""} {$v.postfix} {/if} {/if} {if $v.type=="file" || $v.type=="image"} {if $v.prefix!=""} {$v.prefix} {/if}
{if $v.postfix!=""} {$v.postfix} {/if} {if $v.type=="file" && $tmp[$v.caption]}
{/if} {if $v.type=="image" && $tmp[$v.caption]}
{/if} {/if} {if $v.type=="textarea"} {if $v.prefix!=""} {$v.prefix} {/if}
{if $tmp[$v.caption]}{$tmp[$v.caption]}{else}{if $v.default_val!=''}{$v.default_val}{/if}{/if}
{if $v.postfix!=""} {$v.postfix} {/if} {/if} {if $v.type=="htmlarea"} {if $v.prefix!=""} {$v.prefix} {/if}
{if $tmp[$v.caption]}{$tmp[$v.caption]}{else}{if $v.default_val!=''}{$v.default_val}{/if}{/if}
{if $v.postfix!=""} {$v.postfix} {/if} {* {include file="data/htmlarea.html"} *} {/if} {if $v.type=="menu"} {if $v.prefix!=""} {$v.prefix} {/if}
{$v.top_str}
{if $v.other_val}
{$lng.general.other}
{/if} {foreach from=$v.elements_array item=t}
{$t}
{/foreach}
{if $v.postfix!=""} {$v.postfix} {/if} {if $v.other_val} {if $tmp[$v.caption] && !in_array($tmp[$v.caption], $v.elements_array)}
{else}
{/if} {/if} {/if} {if $v.type=="multiselect"}
{foreach from=$v.elements_array item=t}
{$t}
{/foreach}
{/if} {if $v.type=="radio"} {foreach from=$v.elements_array item=t}
{if $v.prefix!=""} {$v.prefix} {/if} {$t} {if $v.postfix!=""} {$v.postfix} {/if} {/foreach} {/if} {if $v.type=="radio_group"}
{$v.name}{if $v.required==1}
*
{/if}
{if $v.info_message}
{$v.info_message}
{/if}
{foreach from=$v.elements_array item=t name=rad}
{if $v.prefix!=""} {$v.prefix} {/if} {$t} {if $v.postfix!=""} {$v.postfix} {/if}
{if $smarty.foreach.rad.index!=0 && $smarty.foreach.rad.index%3==2}
{/if} {/foreach}
{/if} {if $v.type=="checkbox"}
{/if} {if $v.type=="checkbox_group"}
{$v.name}{if $v.required==1}
*
{/if}
{if $v.info_message}
{$v.info_message}
{/if}
{foreach from=$v.extra_elements_array item=t name=check}
{if $v.prefix!=""} {$v.prefix} {/if} {$t.name} {if $v.postfix!=""} {$v.postfix} {/if}
{if $smarty.foreach.check.index!=0 && $smarty.foreach.check.index%3==2}
{/if} {/foreach}
{/if} {if $v.type=="date" } {include file="data/date.html"} {if $v.prefix!=""} {$v.prefix} {/if}
{if $v.postfix!=""} {$v.postfix} {/if}
{/if} {if $v.type=="youtube"} {if $v.prefix!=""} {$v.prefix} {/if}
{if $tmp[$v.caption]}{$tmp[$v.caption]}{/if}
{if $v.postfix!=""} {$v.postfix} {/if} {/if} {if $v.type=="google_maps" }
{$v.name}{if $v.required==1}
*
{/if}
{if $v.info_message}
{$v.info_message}
{/if}
{/if} {if !in_array($v.type, $default_fields_types)}
{$v.name}{if $v.required==1}
*
{/if}
{if $v.info_message}
{$v.info_message}
{/if} {include file="modules/`$v.type`/form.html"}
{/if} {if $v.type!='depending' && $v.type!='price'} {if $v.type!="checkbox_group" && $v.type!="radio_group" && $v.type!="google_maps" && in_array($v.type, $default_fields_types)} {if $v.info_message}
{$v.info_message}
{/if} {/if} {elseif $v.type=='price' && $ads_settings.enable_price}
{if $currencies|@count>1}
{foreach from=$currencies item=v}
{$v.currency}
{/foreach}
{else} {$currencies[0].currency}
{/if} {if $v.info_message}
{$v.info_message}
{/if} {elseif $v.type=='depending'}
{$v.depending.name1}{if $v.depending.required1==1}
*
{/if}
{$v.depending.top_str1}
{if $v.other_val}
{$lng.general.other}
{/if} {foreach from=$v.depending.elements item=t}
{$t.name}
{/foreach}
{if $v.other_val} {if $tmp[$v.depending.caption1] && !in_array($tmp[$v.depending.caption1], $v.depending.elements)}
{else}
{/if} {/if} {if $v.info_message}
{$v.info_message}
{/if}
{$v.depending.name2}{if $v.depending.required2==1}
*
{/if}
2}onchange="selDepending(2, '{$v.depending.caption2}', '{$v.depending.caption3}', '{$v.depending.id}', 0, {if $v.other_val}1{else}0{/if}, '{$lng.general.other}', '{$live_site}')"{else}{if $v.other_val}onchange="checkOther(this.form.{$v.depending.caption2}, '{$v.depending.caption2}')"{/if}{/if} {if in_array($v.depending.caption2, $gmaps_unique)}onblur="autoLocator_{$gmaps_fields[$v.depending.caption2]}();"{/if} >
{$v.depending.top_str2}
{if $v.other_val}
{/if} {if $v.depending.no>=3}
{$v.depending.name3}{if $v.depending.required3==1}
*
{/if}
3}onchange="selDepending(3, '{$v.depending.caption3}', '{$v.depending.caption4}', '{$v.depending.id}', 0, {if $v.other_val}1{else}0{/if}, '{$lng.general.other}', '{$live_site}')"{else}{if $v.other_val}onchange="checkOther(this.form.{$v.depending.caption3}, '{$v.depending.caption3}')"{/if}{/if} {if in_array($v.depending.caption3, $gmaps_unique)}onblur="autoLocator_{$gmaps_fields[$v.depending.caption3]}();"{/if} >
{$v.depending.top_str3}
{if $v.other_val}
{/if} {/if} {if $v.depending.no==4}
{$v.depending.name4}{if $v.depending.required4==1}
*
{/if}
{$v.depending.top_str4}
{if $v.other_val}
{/if} {/if} {/if}
{/foreach}