📄 checkoutoptions.ftl
字号:
<tr>
<td colspan="2">
<div class="head2"><b>${uiLabelMap.OrderGiftMessage}</b></div>
</td>
</tr>
<tr>
<td colspan="2">
<textarea class='textAreaBox' cols="30" rows="3" wrap="hard" name="gift_message">${cart.getGiftMessage()?if_exists}</textarea>
</td>
</tr>
<tr><td colspan="2"><hr class='sepbar'></td></tr>
<tr>
<td colspan="2">
<div class="head2"><b>${uiLabelMap.PartyEmailAddresses}</b></div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="tabletext">${uiLabelMap.OrderEmailSentToFollowingAddresses}:</div>
<div class="tabletext">
<b>
<#list context.emailList as email>
${email.infoString?if_exists}<#if email_has_next>,</#if>
</#list>
</b>
</div>
<div class="tabletext">${uiLabelMap.OrderUpdateEmailAddress} <a href="<@ofbizUrl>/viewprofile?DONE_PAGE=quickcheckout</@ofbizUrl>" class="buttontext">${uiLabelMap.PartyProfile}</a>.</div>
<br>
<div class="tabletext">${uiLabelMap.OrderCommaSeperatedEmailAddresses}:</div>
<input type="text" class='inputBox' size="30" name="order_additional_emails" value='${cart.getOrderAdditionalEmails()?if_exists}'>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td bgcolor="white" width="1"> </td>
<td height='100%'>
<table border=0 width='100%' cellspacing='0' cellpadding='0' class='boxoutside' style='height: 100%;'>
<tr>
<td width='100%'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxtop'>
<tr>
<td valign=middle align=left nowrap>
<div class="boxhead">3) ${uiLabelMap.OrderHowShallYouPay}?</div>
</td>
</tr>
</table>
</td>
</tr>
<#-- Payment Method Selection -->
<tr style='height: 100%;'>
<td width='100%' valign=top height='100%'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom' style='height: 100%;'>
<tr>
<td valign=top>
<table width="100%" cellpadding="1" cellspacing="0" border="0">
<tr><td colspan="2">
<span class='tabletext'>${uiLabelMap.CommonAdd}:</span>
<a href="javascript:submitForm(document.checkoutInfoForm, 'NC', '');" class="buttontext">[${uiLabelMap.AccountingCreditCard}]</a>
<a href="javascript:submitForm(document.checkoutInfoForm, 'NE', '');" class="buttontext">[${uiLabelMap.AccountingEftAccount}]</a>
</td></tr>
<tr><td colspan="2"><hr class='sepbar'></td></tr>
<tr>
<td width="1%" nowrap>
<input type="radio" name="checkOutPaymentId" value="EXT_OFFLINE" <#if "EXT_OFFLINE" == context.checkOutPaymentId>checked</#if>>
</td>
<td width="50%" nowrap>
<span class="tabletext">${uiLabelMap.OrderMoneyOrder}</span>
</td>
</tr>
<tr>
<td width="1%" nowrap>
<input type="radio" name="checkOutPaymentId" value="EXT_COD" <#if "EXT_COD" == context.checkOutPaymentId>checked</#if>>
</td>
<td width="50%" nowrap>
<span class="tabletext">${uiLabelMap.OrderCOD}</span>
</td>
</tr>
<tr>
<td width="1%" nowrap>
<input type="radio" name="checkOutPaymentId" value="EXT_WORLDPAY" <#if "EXT_WORLDPAY" == context.checkOutPaymentId>checked</#if>>
</td>
<td width="50%" nowrap>
<span class="tabletext">${uiLabelMap.AccountingPayWithWorldPay}</span>
</td>
</tr>
<tr>
<td width="1%" nowrap>
<input type="radio" name="checkOutPaymentId" value="EXT_PAYPAL" <#if "EXT_PAYPAL" == context.checkOutPaymentId>checked</#if>>
</td>
<td width="50%" nowrap>
<span class="tabletext">${uiLabelMap.AccountingPayWithPayPal}</span>
</td>
</tr>
<tr><td colspan="2"><hr class='sepbar'></td></tr>
<#list context.paymentMethodList as paymentMethod>
<#if paymentMethod.paymentMethodTypeId == "CREDIT_CARD">
<#assign creditCard = paymentMethod.getRelatedOne("CreditCard")>
<tr>
<td width="1%" nowrap>
<input type="radio" name="checkOutPaymentId" value="${paymentMethod.paymentMethodId}" <#if cart.isPaymentMethodSelected(paymentMethod.paymentMethodId)>checked</#if>>
</td>
<td width="50%" nowrap>
<span class="tabletext">CC: ${Static["org.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)}</span>
<a href="javascript:submitForm(document.checkoutInfoForm, 'EC', '${paymentMethod.paymentMethodId}');" class="buttontext">[${uiLabelMap.CommonUpdate}]</a>
</td>
</tr>
<#elseif paymentMethod.paymentMethodTypeId == "EFT_ACCOUNT">
<#assign eftAccount = paymentMethod.getRelatedOne("EftAccount")>
<tr>
<td width="1%" nowrap>
<input type="radio" name="checkOutPaymentId" value="${paymentMethod.paymentMethodId}" <#if cart.isPaymentMethodSelected(paymentMethod.paymentMethodId)>checked</#if>>
</td>
<td width="50%" nowrap>
<span class="tabletext">EFT: ${eftAccount.bankName?if_exists}: ${eftAccount.accountNumber?if_exists}</span>
<a href="javascript:submitForm(document.checkoutInfoForm, 'EE', '${paymentMethod.paymentMethodId}');" class="buttontext">[${uiLabelMap.CommonUpdate}]</a>
</td>
</tr>
<#elseif paymentMethod.paymentMethodTypeId == "GIFT_CARD">
<#assign giftCard = paymentMethod.getRelatedOne("GiftCard")>
<#if giftCard?has_content && giftCard.cardNumber?has_content>
<#assign giftCardNumber = "">
<#assign pcardNumber = giftCard.cardNumber>
<#if pcardNumber?has_content>
<#assign psize = pcardNumber?length - 4>
<#if 0 < psize>
<#list 0 .. psize-1 as foo>
<#assign giftCardNumber = giftCardNumber + "*">
</#list>
<#assign giftCardNumber = giftCardNumber + pcardNumber[psize .. psize + 3]>
<#else>
<#assign giftCardNumber = pcardNumber>
</#if>
</#if>
</#if>
<tr>
<td width="1%" nowrap>
<input type="radio" name="checkOutPaymentId" value="${paymentMethod.paymentMethodId}" <#if cart.isPaymentMethodSelected(paymentMethod.paymentMethodId)>checked</#if>>
</td>
<td width="50%" nowrap>
<span class="tabletext">${uiLabelMap.AccountingGift}: ${giftCardNumber}</span>
<a href="javascript:submitForm(document.checkoutInfoForm, 'EG', '${paymentMethod.paymentMethodId}');" class="buttontext">[${uiLabelMap.CommonUpdate}]</a>
</td>
</tr>
</#if>
</#list>
<#-- special billing account functionality to allow use w/ a payment method -->
<#if billingAccountList?has_content>
<tr><td colspan="2"><hr class='sepbar'></td></tr>
<tr>
<td width="1%" nowrap>
<input type="radio" name="checkOutPaymentId" value="EXT_BILLACT" <#if "EXT_BILLACT" == checkOutPaymentId>checked</#if>></hr>
</td>
<td width="50%" nowrap>
<span class="tabletext">${uiLabelMap.AccountingPayOnlyWithBillingAccount}</span>
</td>
</tr>
<tr><td colspan="2"><hr class='sepbar'></td></tr>
<#list billingAccountList as billingAccount>
<#assign availableAmount = billingAccount.accountLimit?double - billingAccount.accountBalance?double>
<tr>
<td align="left" valign="top" width="1%" nowrap>
<input type="radio" onClick="javascript:toggleBillingAccount(this);" name="billingAccountId" value="${billingAccount.billingAccountId}" <#if (billingAccount.billingAccountId == selectedBillingAccount?default(""))>checked</#if>>
</td>
<td align="left" valign="top" width="99%" nowrap>
<div class="tabletext">
${billingAccount.description?default("Bill Account")} #<b>${billingAccount.billingAccountId}</b> (${(availableAmount)?string.currency})<br>
<b>${uiLabelMap.OrderBillUpTo}:</b> <input type="text" size="5" class="inputBox" name="amount_${billingAccount.billingAccountId}" value="${availableAmount?double?string("##0.00")}" <#if !(billingAccount.billingAccountId == selectedBillingAccount?default(""))>disabled</#if>>
</div>
</td>
</tr>
</#list>
<tr>
<td align="left" valign="top" width="1%" nowrap>
<input type="radio" onClick="javascript:toggleBillingAccount(this);" name="billingAccountId" value="_NA" <#if (selectedBillingAccount?default("") == "N")>checked</#if>>
<input type="hidden" name="_NA_amount" value="0.00">
</td>
<td align="left" valign="top" width="99%" nowrap>
<div class="tabletext">${uiLabelMap.AccountingNoBillingAccount}</div>
</td>
</tr>
</#if>
<#-- end of special billing account functionality -->
<tr><td colspan="2"><hr class='sepbar'></td></tr>
<tr>
<td width="1%" nowrap>
<input type="checkbox" name="addGiftCard" value="Y">
</td>
<td width="50%" nowrap>
<span class="tabletext">${uiLabelMap.AccountingUseGiftCardNotOnFile}</span>
</td>
</tr>
<tr>
<td width="1%" nowrap>
<div class="tabletext">${uiLabelMap.AccountingNumber}</div>
</td>
<td width="50%" nowrap>
<input type="text" size="15" class="inputBox" name="giftCardNumber" value="${(requestParameters.giftCardNumber)?if_exists}" onFocus="document.checkoutInfoForm.addGiftCard.checked=true;">
</td>
</tr>
<tr>
<td width="1%" nowrap>
<div class="tabletext">${uiLabelMap.AccountingPIN}</div>
</td>
<td width="50%" nowrap>
<input type="text" size="10" class="inputBox" name="giftCardPin" value="${(requestParameters.giftCardPin)?if_exists}" onFocus="document.checkoutInfoForm.addGiftCard.checked=true;">
</td>
</tr>
<tr>
<td width="1%" nowrap>
<div class="tabletext">${uiLabelMap.AccountingAmount}</div>
</td>
<td width="50%" nowrap>
<input type="text" size="6" class="inputBox" name="giftCardAmount" value="${(requestParameters.giftCardAmount)?if_exists}" onFocus="document.checkoutInfoForm.addGiftCard.checked=true;">
</td>
</tr>
</table>
<#if !paymentMethodList?has_content>
<div class='tabletext'><b>${uiLabelMap.AccountingNoPaymentMethodsOnFile}.</b></div>
</#if>
</td>
</tr>
<tr><td colspan="2"><hr class='sepbar'></td></tr>
<tr>
<td colspan="2" align="center" valign="top">
<div class="tabletext" valign="top">
<a href="javascript:submitForm(document.checkoutInfoForm, 'SP', '');" class="buttontext">[${uiLabelMap.AccountingSplitPayment}]</a>
</div>
</td>
</table>
</td>
</tr>
<#-- End Payment Method Selection -->
</table>
</td>
</tr>
</table>
</form>
<table width="100%">
<tr valign="top">
<td align="left">
<a href="javascript:submitForm(document.checkoutInfoForm, 'CS', '');" class="buttontextbig">[${uiLabelMap.OrderBacktoShoppingCart}]</a>
</td>
<td align="right">
<a href="javascript:submitForm(document.checkoutInfoForm, 'DN', '');" class="buttontextbig">[${uiLabelMap.OrderContinueToFinalOrderReview}]</a>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -