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

📄 checkoutpayment.ftl

📁 Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电子商务应用(e-commerce), POS系统(point of sales),知识管理,存货与仓库管理
💻 FTL
📖 第 1 页 / 共 2 页
字号:
<#-- *  Copyright (c) 2001-2005 The Open For Business Project - www.ofbiz.org * *  Permission is hereby granted, free of charge, to any person obtaining a *  copy of this software and associated documentation files (the "Software"), *  to deal in the Software without restriction, including without limitation *  the rights to use, copy, modify, merge, publish, distribute, sublicense, *  and/or sell copies of the Software, and to permit persons to whom the *  Software is furnished to do so, subject to the following conditions: * *  The above copyright notice and this permission notice shall be included *  in all copies or substantial portions of the Software. * *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY *  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT *  OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *  THE USE OR OTHER DEALINGS IN THE SOFTWARE. * *@author     Andy Zeneski (jaz@ofbiz.org) *@author     David E. Jones (jonesde@ofbiz.org) *@version    $Rev: 7295 $ *@since      3.0--><script language="javascript" type="text/javascript"><!--function submitForm(form, mode, value) {    if (mode == "DN") {        // done action; checkout        form.action="<@ofbizUrl>checkoutoptions</@ofbizUrl>";        form.submit();    } else if (mode == "CS") {        // continue shopping        form.action="<@ofbizUrl>updateCheckoutOptions/showcart</@ofbizUrl>";        form.submit();    } else if (mode == "NC") {        // new credit card        form.action="<@ofbizUrl>updateCheckoutOptions/editcreditcard?DONE_PAGE=checkoutpayment</@ofbizUrl>";        form.submit();    } else if (mode == "EC") {        // edit credit card        form.action="<@ofbizUrl>updateCheckoutOptions/editcreditcard?DONE_PAGE=checkoutpayment&paymentMethodId="+value+"</@ofbizUrl>";        form.submit();    } else if (mode == "GC") {        // edit gift card        form.action="<@ofbizUrl>updateCheckoutOptions/editgiftcard?paymentMethodId="+value+"</@ofbizUrl>";        form.submit();    } else if (mode == "NE") {        // new eft account        form.action="<@ofbizUrl>updateCheckoutOptions/editeftaccount?DONE_PAGE=checkoutpayment</@ofbizUrl>";        form.submit();    } else if (mode == "EE") {        // edit eft account        form.action="<@ofbizUrl>updateCheckoutOptions/editeftaccount?DONE_PAGE=checkoutpayment&paymentMethodId="+value+"</@ofbizUrl>";        form.submit();    }else if(mode = "EG")    //edit gift card        form.action="<@ofbizUrl>updateCheckoutOptions/editgiftcard?DONE_PAGE=checkoutpayment&paymentMethodId="+value+"</@ofbizUrl>";        form.submit();}function toggleBillingAccount(box) {    var amountName = "amount_" + box.value;    box.checked = true;    box.form.elements[amountName].disabled = false;    for (var i = 0; i < box.form.elements[box.name].length; i++) {        if (!box.form.elements[box.name][i].checked) {            box.form.elements["amount_" + box.form.elements[box.name][i].value].disabled = true;        }    }}// --></script><#assign cart = shoppingCart?if_exists><form method="post" name="checkoutInfoForm" style="margin:0;">    <input type="hidden" name="checkoutpage" value="payment"/>    <input type="hidden" name="BACK_PAGE" value="checkoutoptions"/>    <div class="screenlet" style="height: 100%;">        <div class="screenlet-header">            <div class="boxhead">3)&nbsp;${uiLabelMap.OrderHowShallYouPay}?</div>        </div>        <div class="screenlet-body" style="height: 100%;">            <#-- Payment Method Selection -->            <table width="100%" cellpadding="1" cellspacing="0" border="0">              <tr><td colspan="2">                <span class='tabletext'>${uiLabelMap.CommonAdd}:</span>                <#if productStorePaymentMethodTypeIdMap.CREDIT_CARD?exists>                  <a href="javascript:submitForm(document.checkoutInfoForm, 'NC', '');" class="buttontext">${uiLabelMap.AccountingCreditCard}</a>                </#if>                <#if productStorePaymentMethodTypeIdMap.EFT_ACCOUNT?exists>                  <a href="javascript:submitForm(document.checkoutInfoForm, 'NE', '');" class="buttontext">${uiLabelMap.AccountingEftAccount}</a>                </#if>              </td></tr>              <tr><td colspan="3"><hr class="sepbar"/></td></tr>              <#if productStorePaymentMethodTypeIdMap.EXT_OFFLINE?exists>              <tr>                <td width="1" nowrap>                  <input type="radio" name="checkOutPaymentId" value="EXT_OFFLINE" <#if "EXT_OFFLINE" == checkOutPaymentId>checked</#if>>                </td>                <td width="1" nowrap>                  <span class="tabletext">${uiLabelMap.OrderMoneyOrder}</span>                </td>                <td width="1" nowrap>&nbsp;</td>              </tr>              </#if>              <#if productStorePaymentMethodTypeIdMap.EXT_COD?exists>              <tr>                <td width="1" nowrap>                  <input type="radio" name="checkOutPaymentId" value="EXT_COD" <#if "EXT_COD" == checkOutPaymentId>checked</#if>>                </td>                <td width="1" nowrap>                  <span class="tabletext">${uiLabelMap.OrderCOD}</span>                </td>                <td width="1" nowrap>&nbsp;</td>              </tr>              </#if>              <#if productStorePaymentMethodTypeIdMap.EXT_WORLDPAY?exists>              <tr>                <td width="1" nowrap>                  <input type="radio" name="checkOutPaymentId" value="EXT_WORLDPAY" <#if "EXT_WORLDPAY" == checkOutPaymentId>checked</#if>>                </td>                <td width="1" nowrap>                  <span class="tabletext">${uiLabelMap.AccountingPayWithWorldPay}</span>                </td>                <td width="1" nowrap>&nbsp;</td>              </tr>              </#if>              <#if productStorePaymentMethodTypeIdMap.EXT_PAYPAL?exists>              <tr>                <td width="1" nowrap>                  <input type="radio" name="checkOutPaymentId" value="EXT_PAYPAL" <#if "EXT_PAYPAL" == checkOutPaymentId>checked</#if>>                </td>                <td width="1" nowrap>                  <span class="tabletext">${uiLabelMap.AccountingPayWithPayPal}</span>                </td>                <td width="1" nowrap>&nbsp;</td>              </tr>              </#if>              <tr><td colspan="3"><hr class="sepbar"/></td></tr>            <#if !paymentMethodList?has_content>              <tr>                <td colspan="3">                  <div class='tabletext'><b>${uiLabelMap.AccountingNoPaymentMethodsOnFile}.</b></div>                </td>              </tr>            <#else/>              <#list paymentMethodList as paymentMethod>                <#if paymentMethod.paymentMethodTypeId == "GIFT_CARD">                 <#if productStorePaymentMethodTypeIdMap.GIFT_CARD?exists>                  <#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>

⌨️ 快捷键说明

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