{* $Id: profiles.tpl 2370 2006-10-26 14:09:44Z seva $ *} {include file="profiles_pages/profiles_scripts.tpl"} {capture name="mainbox"}

{$lang.text_mandatory_fields}

{include file="profiles_pages/profiles_account.tpl"} {include file="profiles_pages/profile_fields.tpl" section="C" title=$lang.contact_information}
{if $settings.General.user_multiple_profiles == "Y"}

{$lang.user_profile_info}


{$lang.text_multiprofile_notice}

{/if} {capture name="tabsbox"} {include file="profiles_pages/multiple_profiles.tpl"} {include file="profiles_pages/profile_fields.tpl" section="B" title=$lang.billing_address} {include file="profiles_pages/profile_fields.tpl" section="S" title=$lang.shipping_address body_id="sa" shipping_flag=$profile_fields.B|@sizeof|default:false}
{/capture} {include file="common_templates/tabsbox.tpl" tabs=$user_profiles content=$smarty.capture.tabsbox js_switch="N"} {if $settings.Affiliate.enable == 'Y' && $user_data.user_type != 'P' && $mode == 'update'}

{'[button_name]'|str_replace:$lang.update:$lang.affiliate_agree_to_terms_conditions} ({$lang.go_to_terms_and_conditions})

{/if}

{if $mode == "update"} {include file="buttons/update_profile.tpl" but_onclick="javascript:if (fn_check_fields('profileform', ext_ids)) document.profileform.submit();"} {else} {include file="buttons/register_profile.tpl" but_onclick="javascript:if (fn_check_fields('profileform', ext_ids)) document.profileform.submit();"} {/if}

{/capture} {if $mode == 'add'} {include file="common_templates/mainbox.tpl" title=$lang.register_profile content=$smarty.capture.mainbox} {else} {include file="common_templates/mainbox.tpl" title=$lang.update_profile content=$smarty.capture.mainbox} {/if}