📄 checkout.tpl
字号:
{* $Id: checkout.tpl,v 1.44.2.6 2004/08/25 06:06:17 max Exp $ *}
{capture name=checkout_dialog}
<FORM action="cart.php" method="POST" name="cartform">
<INPUT type="hidden" name="cart_operation" value="cart_operation">
{if $config.Appearance.show_cart_details eq "Y" or ($config.Appearance.show_cart_details eq "L" and $smarty.get.paymentid ne "" and $smarty.get.mode eq "checkout")}
{include file="customer/main/cart_details.tpl"}
{else}
{include file="customer/main/cart_contents.tpl"}
{/if}
<HR noshade size="1"><BR>
{include file="customer/main/cart_totals.tpl"}
<BR><BR>
{if $js_enabled}
{include file="buttons/update.tpl" href="javascript: document.cartform.submit()" js_to_href="Y"}
{else}
{include file="submit_wo_js.tpl" value=$lng.lbl_update}
{/if}
</FORM>
{/capture}
{include file="dialog.tpl" title="`$lng.lbl_checkout`: `$lng.lbl_step` `$checkout_step` `$lng.lbl_of` `$total_checkout_steps`" content=$smarty.capture.checkout_dialog extra="width=100%"}
<P>
{if $smarty.get.mode eq "auth"}
{include file="main/error_login_incorrect.tpl"}
{/if}
{if $payment_data.payment_method ne ""}
<H5>{$lng.lbl_payment_method}: {$payment_data.payment_method}</H5>
{capture name=dialog}
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<FORM action="{$payment_data.payment_script_url}" method="post" name="checkout_form">
<INPUT type="hidden" name="paymentid" value="{$payment_data.paymentid}">
<INPUT type="hidden" name="action" value="place_order">
<TR><TD>
<PRE>
<FONT>
{include file="customer/main/customer_details.tpl"}
</FONT>
</PRE>
{include file="buttons/modify.tpl" href="register.php?mode=update&action=cart&paymentid=`$smarty.get.paymentid`"}<P>
{if $ignore_payment_method_selection eq ""}
<DIV align="right">
{include file="buttons/button.tpl" button_title=$lng.lbl_change_payment_method href="cart.php?mode=checkout"}
</DIV>
{/if}
<INPUT type="hidden" name="{$NetGouSESSNAME}" value="{$NetGouSESSID}">
<SCRIPT>
requiredFields = new Array();
</SCRIPT>
{include file="check_required_fields_js.tpl"}
{if $payment_data.payment_template ne ""}
{include file=$payment_data.payment_template}
{/if}
{include file="customer/main/checkout_notes.tpl"}
<BR>
<INPUT type="hidden" name="payment_method" value="{$payment_data.payment_method}">
{$lng.txt_you_are_agree} <A href="help.php?section=conditions" target="_blank">"{$lng.lbl_terms_n_conditions}"</A> {$lng.lbl_and} <A href="help.php?section=business" target="_blank">"{$lng.lbl_privacy_statement}"</A>.
<P align="center">
{if $js_enabled}
{assign var="button_href" value="javascript: "}
{if $config.General.check_cc_number eq "Y" and ($payment_cc_data.type eq "C" || $payment_data.paymentid eq 1) and $payment_cc_data.disable_ccinfo ne "Y"}
{assign var="button_href" value=$button_href|cat:"if(checkCCNumber(document.checkout_form.card_number,document.checkout_form.card_type) && checkExpirationDate(document.checkout_form.card_expire_Month,document.checkout_form.card_expire_Year)"}
{if $payment_cc_data.disable_ccinfo ne "C"}
{assign var="button_href" value=$button_href|cat:" && checkCVV2(document.checkout_form.card_cvv2,document.checkout_form.card_type)"}
{/if}
{assign var="button_href" value=$button_href|cat:")"}
{/if}
{assign var="button_href" value=$button_href|cat:" if(checkRequired()) document.checkout_form.submit()"}
{include file="buttons/button.tpl" button_title=$lng.lbl_submit_order style="button" href=$button_href}
{else}
{include file="submit_wo_js.tpl" value=$lng.lbl_submit_order}
{/if}
</TD></TR>
</FORM>
</TABLE>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_payment_details content=$smarty.capture.dialog extra="width=100%"}
{elseif $payment_methods ne ""}
{capture name=dialog}
<FORM method="get" action="cart.php" name="checkout_form">
<TABLE border="0" align="center">
{section name=payment loop=$payment_methods}
<TR>
<TD width="1"><INPUT type="radio" name="paymentid" value="{$payment_methods[payment].paymentid}"{if $payment_methods[payment].is_default eq "1"} checked{/if}></TD>
<TD nowrap><B>{$payment_methods[payment].payment_method} </B></TD>
<TD>{$payment_methods[payment].payment_details}</TD>
</TR>
{/section}
<INPUT type="hidden" name="mode" value="checkout">
</TABLE>
<BR>
<DIV align="center">
{if $js_enabled}
{include file="buttons/continue.tpl" style="button" href="javascript: document.checkout_form.submit()"}
{else}
{include file="submit_wo_js.tpl" value=$lng.lbl_continue}
{/if}
</DIV>
</FORM>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_payment_method content=$smarty.capture.dialog extra="width=100%"}
{/if}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -