📄 checkoutpayment.ftl
字号:
</#if>
</#if>
</#if>
<tr>
<td width="1%" nowrap>
<input type="checkbox" name="checkOutPaymentId" value="${paymentMethod.paymentMethodId}" <#if cart.isPaymentMethodSelected(paymentMethod.paymentMethodId)>checked</#if>>
</td>
<td width="1%" nowrap>
<span class="tabletext">${uiLabelMap.AccountingGift}: ${giftCardNumber}</span>
<span class="tabletext" align="right">
<a href="javascript:submitForm(document.checkoutInfoForm, 'EG', '${paymentMethod.paymentMethodId}');" class="buttontext">[${uiLabelMap.CommonUpdate}]</a>
</span>
</td>
<td>
<span class="tabletext">
<b>${uiLabelMap.OrderBillUpTo}:</b> <input type="text" size="5" class="inputBox" name="amount_${paymentMethod.paymentMethodId}" value="<#if (cart.getPaymentMethodAmount(paymentMethod.paymentMethodId) > 0)>${cart.getPaymentMethodAmount(paymentMethod.paymentMethodId)?double?string("##0.00")}</#if>">
</span>
</td>
</tr>
<#elseif paymentMethod.paymentMethodTypeId == "CREDIT_CARD">
<#assign creditCard = paymentMethod.getRelatedOne("CreditCard")>
<tr>
<td width="1%" nowrap>
<input type="checkbox" name="checkOutPaymentId" value="${paymentMethod.paymentMethodId}" <#if cart.isPaymentMethodSelected(paymentMethod.paymentMethodId)>checked</#if>>
</td>
<td width="1%" nowrap>
<span class="tabletext">CC: ${Static["org.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)}</span>
<span class="tabletext" align="right">
<a href="javascript:submitForm(document.checkoutInfoForm, 'EC', '${paymentMethod.paymentMethodId}');" class="buttontext">[${uiLabelMap.CommonUpdate}]</a>
</span>
</td>
<td>
<span class="tabletext">
<b>${uiLabelMap.OrderBillUpTo}:</b> <input type="text" size="5" class="inputBox" name="amount_${paymentMethod.paymentMethodId}" value="<#if (cart.getPaymentMethodAmount(paymentMethod.paymentMethodId) > 0)>${cart.getPaymentMethodAmount(paymentMethod.paymentMethodId)?double?string("##0.00")}</#if>">
</span>
</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 paymentMethod.paymentMethodId == checkOutPaymentId>checked</#if>>
</td>
<td width="1%" 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>
<td> </td>
</tr>
<tr><td colspan="3"><hr class='sepbar'></td></tr>
</#if>
</#list>
<#-- special billing account functionality to allow use w/ a payment method -->
<#if billingAccountList?has_content>
<tr><td colspan="3"><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>
<td> </td>
</tr>
<tr><td colspan="3"><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>
<td> </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>
<td> </td>
</tr>
</#if>
<#-- end of special billing account functionality -->
<tr><td colspan="3"><hr class='sepbar'></td></tr>
<tr>
<td width="1%" nowrap>
<input type="checkbox" name="addGiftCard" value="Y">
<input type="hidden" name="singleUseGiftCard" value="Y">
</td>
<td colspan="2"nowrap>
<span class="tabletext">${uiLabelMap.AccountingUseGiftCardNotOnFile}</span>
</td>
</tr>
<tr>
<td> </td>
<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> </td>
<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> </td>
<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>
<tr><td colspan="3"><hr class='sepbar'></td></tr>
<tr>
<td colspan="3">
<div class='tabletext' valign='middle'>
<a href="<@ofbizUrl>/setBilling?paymentMethodType=CC&singleUsePayment=Y</@ofbizUrl>" class="buttontext">[${uiLabelMap.AccountingSingleUseCreditCard}]</a>
<a href="<@ofbizUrl>/setBilling?paymentMethodType=GC&singleUsePayment=Y</@ofbizUrl>" class="buttontext">[${uiLabelMap.AccountingSingleUseGiftCard}]</a>
<a href="<@ofbizUrl>/setBilling?paymentMethodType=EFT&singleUsePayment=Y</@ofbizUrl>" class="buttontext">[${uiLabelMap.AccountingSingleUseEFTAccount}]</a>
</div>
</td>
</tr>
</table>
<#if !paymentMethodList?has_content>
<div class='tabletext'><b>${uiLabelMap.AccountingNoPaymentMethodsOnFile}.</b></div>
</#if>
</td>
</tr>
</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 + -