⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 register.tpl

📁 NetGou商城购物系统是一款功能强大完善、操作界面友好、可扩展性好、专门针对个人和企业进行网上销售而开发的一套商城购物系统。 它具有完善的商品管理、订单管理、销售统计、新闻管理、结算系统、税率系统、
💻 TPL
字号:
{* $Id: register.tpl,v 1.35.2.1 2004/07/14 08:33:09 max Exp $ *}
{if $av_error eq 1}

{include file="modules/UPS_OnLine_Tools/register.tpl"}

{else}

{if $js_enabled eq 'Y'}
{include file="check_email_script.tpl"}
{include file="check_zipcode_js.tpl"}
{include file="generate_required_fields_js.tpl"} 
{include file="check_required_fields_js.tpl"}
{if $config.Adaptives.isDOM eq 'Y' && $config.General.use_js_states eq 'Y'}
{include file="change_states_js.tpl"}
{/if}
{/if}

{if $action ne "cart"}

{if $newbie eq "Y"}
{if $login ne ""}
{assign var="title" value=$lng.lbl_modify_profile}
{else}
{assign var="title" value=$lng.lbl_create_profile}
{/if}
{else}
{if $main eq "user_add"}
{assign var="title" value=$lng.lbl_create_customer_profile}
{else} 
{assign var="title" value=$lng.lbl_modify_customer_profile}
{/if}
{/if}

{include file="page_title.tpl" title=$title}

<!-- IN THIS SECTION -->

{if $newbie ne "Y"}
{include file="dialog_tools.tpl"}
{/if}

<!-- IN THIS SECTION -->
<BR>
<FONT class="Text">

{if $usertype ne "C"}
{if $main eq "user_add"}
{$lng.txt_create_customer_profile}
{else}
{$lng.txt_modify_customer_profile}
{/if}
{/if}

{/if}

{if $newbie eq "Y"}
{if $registered eq ""}
{if $smarty.get.mode eq "update"}
{$lng.txt_modify_profile_msg}
{else}
{$lng.txt_create_profile_msg}
{/if}
{/if}
{/if}

{$lng.txt_fields_are_mandatory}

</FONT>



{capture name=dialog}

{if $newbie ne "Y" and $main ne "user_add" and ($usertype eq "P" and $active_modules.Simple_Mode eq "Y" or $usertype eq "A")}
<DIV align="right">{include file="buttons/button.tpl" button_title=$lng.lbl_return_to_search_results href="users.php?mode=search"}</DIV>
{/if}

{assign var="reg_error" value=$top_message.reg_error}
{assign var="error" value=$top_message.error}
{assign var="emailerror" value=$top_message.emailerror}

{if $registered eq ""}
{if $reg_error}
<FONT class="Star">
{if $reg_error eq "F" }
{$lng.txt_registration_error}
{elseif $reg_error eq "E" }
{$lng.txt_email_already_exists}
{elseif $reg_error eq "U" }
{$lng.txt_user_already_exists}
{/if}
</FONT>

{/if}

{if $error ne ""}
<FONT class="Star">
{if $error eq "b_statecode"}
{$lng.err_billing_state}
{elseif $error eq "s_statecode"}
{$lng.err_shipping_state}
{elseif $error eq "b_county"}
{$lng.err_billing_county}
{elseif $error eq "s_county"}
{$lng.err_shipping_county}
{else}
{$error}
{/if}
</FONT>

{/if}

<SCRIPT type="text/javascript" language="JavaScript 1.2">
var is_run = false;
function check_registerform_fields() {ldelim}
	if(is_run)
		return false;
	is_run = true;
{if $config.General.check_cc_number eq "Y" AND $config.General.disable_cc ne "Y"}
	if (check_zip_code() && checkEmailAddress(document.registerform.email) && checkCCNumber(document.registerform.card_number,document.registerform.card_type) && checkRequired(''))
{else}
	if (check_zip_code() && checkEmailAddress(document.registerform.email) && checkRequired(''))
{/if}
	{ldelim}
		document.registerform.submit();
		return true;
	{rdelim}
	is_run = false;
	return false;
{rdelim}
</SCRIPT>

<TABLE border="0" cellspacing="1" cellpadding="2" width="100%">

<FORM action="{$register_script_name}?{$smarty.server.QUERY_STRING}" method="POST" name="registerform" onsubmit="check_registerform_fields(); return false;">

{if $config.General.use_https_login eq "Y"}
<INPUT type="hidden" name="{$NetGouSESSNAME}" value="{$NetGouSESSID}">
{/if}


{include file="main/register_personal_info.tpl" userinfo=$userinfo}

{include file="main/register_billing_address.tpl" userinfo=$userinfo}

{include file="main/register_shipping_address.tpl" userinfo=$userinfo}

{include file="main/register_contact_info.tpl" userinfo=$userinfo}

{include file="main/register_additional_info.tpl" section='A'}

{if $config.General.disable_cc ne "Y"}
{include file="main/register_ccinfo.tpl"}
{/if}

{include file="main/register_account.tpl" userinfo=$userinfo}


{if $active_modules.News_Management and $newslists}
{include file="modules/News_Management/register_newslists.tpl" userinfo=$userinfo}
{/if}

<TR>
<TD colspan="3" align="center">
{if $newbie eq "Y"}
{$lng.txt_you_are_agree} <A href="help.php?section=conditions" target="_blank"><FONT class="Text">{$lng.lbl_terms_n_conditions}</FONT></A>.
{/if}
</TD>
</TR>

<TR>
<TD colspan="2">&nbsp;</TD>
<TD>

<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 and $usertype eq "C"}
{include file="buttons/submit.tpl" type="input" style="button" href="javascript: return check_registerform_fields();"}
{else}
<INPUT type="submit" value=" {$lng.lbl_save} ">
{/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}
<NOBR><A href="help.php?section=conditions"><FONT class="Text"><B>{$lng.lbl_terms_n_conditions}</B> </FONT>{include file="buttons/go.tpl"}</A></NOBR>
{else}
{$lng.txt_user_registration_bottom}
{/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}
{include file="dialog.tpl" title=$lng.lbl_profile_details content=$smarty.capture.dialog extra="width=100%"}
{/if}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -