{* $Id: register.tpl,v 1.4.2.5 2004/04/09 07:07:27 svowl Exp $ *}
{include file="check_email_script.tpl"}
{include file="check_zipcode_js.tpl"}
{if $smarty.get.mode eq "update" or $smarty.post.mode eq "update"}
{assign var="last_location" value=$lng.lbl_modify_profile}
{elseif $smarty.get.mode eq "delete" or $smarty.post.mode eq "delete"}
{assign var="last_location" value=$lng.lbl_delete_profile}
{elseif $last_location eq ""}
{assign var="last_location" value=$lng.lbl_new_member}
{/if}
{include file="location.tpl" last_location=$last_location}
This section allows you to {if $smarty.get.mode eq "add"}create{else}modify{/if} administrator's profile. Please remember that the fields marked with '<font class=Star>*</font>' are mandatory and must be filled.
{if $newbie eq "Y"}
{if $registered eq ""}
{if $smarty.get.mode eq "update"}
{$lng.txt_modify_profile_msg}
{else}
<font class=Text>
{if $usertype eq "B"}
{$lng.txt_create_profile_msg_partner}
{else}
{$lng.txt_create_profile_msg}
{/if}
</font>
{/if}
{/if}
{/if}
{capture name=dialog}
{if $registered eq ""}
{if $reg_error eq "F" }
<font class=Star>
{$lng.txt_registration_error}
</font>
{elseif $reg_error eq "E" }
<font class=Star>{$lng.txt_email_already_exists}
</font>
{elseif $reg_error eq "U" }
<font class=Star>{$lng.txt_user_already_exists}</font>
{/if}
{if $error ne ""}
<font class=Star>{$error}</font>
{/if}
<table width=100% border=0 cellspacing=0 cellpadding=2>
<form action="{ $register_script_name }?{ $smarty.server.QUERY_STRING }" method=post name=registerform>
{if $config.General.use_https_login eq "Y"}
<input type=hidden name="{$XCARTSESSNAME}" value="{$XCARTSESSID}">
{/if}
<tr valign=middle>
<td height=20 colspan=3>
{$lng.lbl_personal_information}<hr size=1 noshade></td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_title}</td>
<td><font class=Star>*</font></td>
<td nowrap>
<select name=title>
{section name=title loop=$name_titles}
<option {if $userinfo.title eq $name_titles[title]}selected{/if}>{$name_titles[title]}</option>
{/section}
</select>
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_first_name}</td>
<td><font class=Star>*</font></td>
<td nowrap>
<input type=text name=firstname size=32 maxlength=32 value="{$userinfo.firstname}">
{if $reg_error ne "" and $userinfo.firstname eq ""}<font class=Star><<</font>{/if}
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_last_name}</td>
<td><font class=Star>*</font></td>
<td nowrap>
<input type=text name=lastname size=32 maxlength=32 value="{$userinfo.lastname}">
{if $reg_error ne "" and $userinfo.lastname eq ""}<font class=Star><<</font>{/if}
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_company}</td>
<td></td>
<td nowrap>
<input type=text name=company size=32 maxlength=32 value="{$userinfo.company}">
</td>
</tr>
{* <TR valign=middle> *}
{* <TD align=right>{$lng.lbl_ssn}</TD> *}
{* <TD></TD> *}
{* <TD nowrap> *}
{* <INPUT type=text name=ssn size=32 maxlength=32 value="{$userinfo.ssn}"> *}
{* </TD> *}
{* </TR> *}
{if $usertype eq "A" or $usertype eq "P"}
<tr valign=middle>
<td align=right>Refered by:</td>
<td></td>
<td nowrap>
{$userinfo.referer}
</td>
</tr>
{/if}
<tr valign=middle>
<td height=20 colspan=3>
{$lng.lbl_billing_address}<hr size=1 noshade></td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_address}</td>
<td><font class=Star>*</font></td>
<td nowrap>
<input type=text name=b_address size=32 maxlength=64 value="{$userinfo.b_address}">
{if $reg_error ne "" and $userinfo.b_address eq ""}<font class=Star><<</font>{/if}
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_city}</td>
<td><font class=Star>*</font></td>
<td nowrap>
<input type=text name=b_city size=32 maxlength=64 value="{$userinfo.b_city}">
{if $reg_error ne "" and $userinfo.b_city eq ""}<font class=Star><<</font>{/if}
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_state}</td>
<td>{if $states ne ""}<font class=Star>*</font>{/if}</td>
<td nowrap>
{include file="main/states.tpl" states=$states name="b_state" default=$userinfo.b_state default_country=$userinfo.b_country}
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_country}</td>
<td><font class=Star>*</font></td>
<td nowrap>
<select name=b_country onChange="check_zip_code()">
{section name=country_idx loop=$countries}
<option value={$countries[country_idx].country_code} {if $userinfo.b_country eq $countries[country_idx].country_code}selected{elseif $countries[country_idx].country_code eq $config.General.default_country and $userinfo.b_country eq ""}selected{/if}>{$countries[country_idx].country}</option>
{/section}
</select>
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_zip_code}</td>
<td><font class=Star>*</font></td>
<td nowrap>
<input type=text name=b_zipcode size=32 maxlength=32 value="{$userinfo.b_zipcode}" onChange="check_zip_code()" >
{if $reg_error ne "" and $userinfo.b_zipcode eq ""}<font class=Star><<</font>{/if}
</td>
</tr>
<tr valign=middle>
<td height=20 colspan=3>
{$lng.lbl_shipping_address_registration}<hr size=1 noshade></td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_address}</td>
<td></td>
<td nowrap>
<input type=text name=s_address size=32 maxlength=64 value="{$userinfo.s_address}">
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_city}</td>
<td></td>
<td nowrap>
<input type=text name=s_city size=32 maxlength=64 value="{$userinfo.s_city}">
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_state}</td>
<td></td>
<td nowrap>
{include file="main/states.tpl" states=$states name="s_state" default=$userinfo.s_state default_country=$userinfo.s_country}
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_country}</td>
<td></td>
<td nowrap>
<select name=s_country size=1 onChange="check_zip_code()">
{section name=country_idx loop=$countries}
<option value={$countries[country_idx].country_code} {if $userinfo.s_country eq $countries[country_idx].country_code}selected{elseif $countries[country_idx].country_code eq $config.General.default_country and $userinfo.b_country eq ""}selected{/if}>{$countries[country_idx].country}</option>
{/section}
</select>
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_zip_code}</td>
<td></td>
<td nowrap>
<input type=text name=s_zipcode size=32 maxlength=32 value="{$userinfo.s_zipcode}" onChange="check_zip_code()" >
</td>
</tr>
<tr valign=middle>
<td height=20 colspan=3>
{$lng.lbl_contact_information}<hr size=1 noshade></td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_phone}</td>
<td><font class=Star>*</font></td>
<td nowrap>
<input type=text name=phone size=32 maxlength=32 value="{$userinfo.phone}">
{if $reg_error ne "" and $userinfo.phone eq ""}<font class=Star><<</font>{/if}
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_email}</td>
<td><font class=Star>*</font></td>
<td nowrap>
<input type=text name=email size=32 maxlength=128 value="{$userinfo.email}">
{if $emailerror ne "" or ($reg_error ne "" and $userinfo.email eq "")}<font class=Star><<</font>{/if}
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_fax}</td>
<td></td>
<td nowrap>
<input type=text name=fax size=32 maxlength=128 value="{$userinfo.fax}"></td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_web_site}</td>
<td></td>
<td nowrap>
<input type=text name=url size=32 maxlength=128 value="{$userinfo.url}"></td>
</tr>
{if $usertype eq "C" or $smarty.get.usertype eq "C"}
{if $config.General.disable_cc ne "Y"}
{include file="main/register_ccinfo.tpl"}
{/if}
{/if}
<tr valign=middle>
<td height=20 colspan=3>
{$lng.lbl_username_n_password}<hr size=1 noshade></td>
</tr>
{if $userinfo.login eq $login and $login and $userinfo.usertype ne "C"}
<input type=hidden name=membership value="{$userinfo.membership}"></d>
<input type=hidden name=pending_membership value="{$userinfo.pending_membership}"></d>
{else}
{if $config.General.membership_signup eq "Y" and ($usertype eq "C" or ($active_modules.Simple_Mode ne "" and $usertype eq "P") or $usertype eq "A")}
{include file="admin/main/membership_signup.tpl"}
{/if}
{if $usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode ne "")}
{include file="admin/main/membership.tpl"}
{/if}
{/if}
{if $anonymous ne "" and $config.General.disable_anonymous_checkout ne "Y"}
{* Anonymous account *}
<tr>
<td colspan=3>{$lng.txt_anonymous_account_msg}</TD>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_username}</td>
<td></td>
<td nowrap>
<input type=text name=uname size=32 maxlength=32 value="{$userinfo.login}">
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_password}</td>
<td></td>
<td nowrap><INPUT {if $usertype eq "A" or $usertype eq "P"} type=text {else} type="password" {/if} id="passwd1" name="passwd1" size="32" maxlength="32" value="{$userinfo.passwd1}">
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_confirm_password}</td>
<td></td>
<td nowrap><input type=password name=passwd2 size=32 maxlength=32 value="{$userinfo.passwd2}">
</td>
</tr>
{else}
{* NOT anonymous account *}
<tr valign=middle>
<td align=right>{$lng.lbl_username}</td>
<td><font class=Star>*</font></td>
<td nowrap>
{if $smarty.get.mode eq "update" or $smarty.post.mode eq "update"}
{$userinfo.login}
<input type=hidden name=uname value="{$userinfo.login}">
{else}
<input type=text name=uname size=32 maxlength=32 value="{$userinfo.login}">
{if $reg_error ne "" and $userinfo.login eq ""}<font class=Star><<</font>{/if}
{/if}
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_password}</td>
<td><font class=Star>*</font></td>
<td nowrap><INPUT {if $usertype eq "A" or $usertype eq "P"} type=text {else} type="password" {/if} id="passwd1" name="passwd1" size="32" maxlength="32" value="{$userinfo.passwd1}">
</td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_confirm_password}</td>
<td><font class=Star>*</font></td>
<td nowrap><input type=password name=passwd2 size=32 maxlength=32 value="{$userinfo.passwd2}">
{if $reg_error ne "" and $userinfo.passwd2 eq ""}<font class=Star><<</font>{/if}
</td>
</tr>
{/if}
{*
<tr valign=middle>
<td align=right>{$lng.lbl_password_hint}</td>
<td></td>
<td nowrap><input type=text name=password_hint size=32 maxlength=32 value="{$userinfo.password_hint}"></td>
</tr>
<tr valign=middle>
<td align=right>{$lng.lbl_password_hint_answer}</td>
<td></td>
<td nowrap><input type=text name=password_hint_answer size=32 maxlength=32 value="{$userinfo.password_hint_answer}"></td>
</tr>
*}
{if ($active_modules.Simple_Mode ne "" and $usertype eq "P") or $usertype eq "A"}
<tr valign=middle>
<td colspan="2"></td>
<td nowrap>
<INPUT type="checkbox" name="change_password" value="Y"{if $userinfo.change_password eq "Y"} checked{/if}>
{$lng.lbl_reg_chpass}
</td>
</tr>
{/if}
<tr valign=middle>
<td height=20 colspan=3>
{$lng.lbl_newsletter}<hr size=1 noshade></td>
</tr>
<tr valign=middle>
<td></td>
<td></td>
<td>
<input type=checkbox name=newsletter {if $userinfo.newsletter eq "Y"}checked{/if}>
{$lng.txt_newsletter_msg}
</td>
</tr>
<tr valign=middle>
<td></td>
<td></td>
<td>
{if $newbie eq "Y"}
{$lng.txt_you_are_agree}
<font class=Text>{$lng.lbl_terms_n_conditions}</font>.
{/if}
<font class=FormButton>
{if $smarty.get.mode eq "update"}
<input type=hidden name=mode value=update>
{/if}
<input type=hidden name=anonymous value={$anonymous}>
{if $js_enabled}
{include file="buttons/submit.tpl"}
{else}
{include file="submit_wo_js.tpl" value=$lng.lbl_submit}
{/if}
</td>
</tr>
<input type=hidden name=usertype value="{if $smarty.get.usertype ne ""}{$smarty.get.usertype|escape:"html"}{else}{$usertype}{/if}">
</form>
</table>
{if $newbie eq "Y"}
{$lng.txt_newbie_registration_bottom}
<font class=Text>{$lng.lbl_terms_n_conditions}</font>{include file="buttons/go.tpl"}
{/if}
{else}
{if $smarty.post.mode eq "update" or $smarty.get.mode eq "update"}
{$lng.txt_profile_modified}
{elseif $smarty.get.usertype eq "B" or $usertype eq "B"}
{$lng.txt_partner_created}
{else}
{$lng.txt_profile_created}
{/if}
{/if}
{/capture}
{if $smarty.post.mode eq "update" or $smarty.get.mode eq "update"}
{include file="dialog.tpl" title=$lng.lbl_modify_profile content=$smarty.capture.dialog extra="width=100%"}
{else}
{include file="dialog.tpl" title=$lng.lbl_new_member content=$smarty.capture.dialog extra="width=100%"}
{/if}