📄 billsettings.ftl
字号:
<#--
* Copyright (c) 2003 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)
*@version $Revision: 1.6 $
*@since 3.0
-->
<script language="javascript">
<!-- //
function shipBillAddr() {
<#if requestParameters.singleUsePayment?default("N") == "Y">
<#assign singleUse = "&singleUsePayment=Y">
<#else>
<#assign singleUse = "">
</#if>
if (document.billsetupform.useShipAddr.checked) {
window.location.replace("setBilling?createNew=Y&finalizeMode=payment&useGc=${requestParameters.useGc?if_exists}&paymentMethodType=${paymentMethodType?if_exists}&useShipAddr=Y${singleUse}");
} else {
window.location.replace("setBilling?createNew=Y&finalizeMode=payment&useGc=${requestParameters.useGc?if_exists}&paymentMethodType=${paymentMethodType?if_exists}${singleUse}");
}
}
</script>
<table border=0 width='100%' cellspacing='0' cellpadding='0' class='boxoutside'>
<tr>
<td width='100%'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxtop'>
<tr>
<td align='left'>
<div class='boxhead'> Payment Information</div>
</td>
<td nowrap align="right">
<#if requestParameters.singleUsePayment?default("N") != "Y">
<div class="tabletext">
${pages.get("/order/anonymoustrail.ftl")}
</div>
</#if>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width='100%'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
<tr>
<td>
<#if (paymentMethodType?exists && !requestParameters.resetType?has_content) || finalizeMode?default("") == "payment">
<#-- after initial screen; show detailed screens for selected type -->
<#if paymentMethodType == "CC">
<#if creditCard?has_content && postalAddress?has_content>
<form method="post" action="<@ofbizUrl>/changeCreditCardAndBillingAddress</@ofbizUrl>" name="billsetupform">
<input type="hidden" name="paymentMethodId" value="${creditCard.paymentMethodId?if_exists}">
<input type="hidden" name="contactMechId" value="${postalAddress.contactMechId?if_exists}">
<#elseif requestParameters.useShipAddr?exists>
<form method="post" action="<@ofbizUrl>/enterCreditCard</@ofbizUrl>" name="billsetupform">
<#else>
<form method="post" action="<@ofbizUrl>/enterCreditCardAndBillingAddress</@ofbizUrl>" name="billsetupform">
</#if>
</#if>
<#if paymentMethodType == "EFT">
<#if eftAccount?has_content && postalAddress?has_content>
<form method="post" action="<@ofbizUrl>/changeEftAccountAndBillingAddress</@ofbizUrl>" name="billsetupform">
<input type="hidden" name="paymentMethodId" value="${eftAccount.paymentMethodId?if_exists}">
<input type="hidden" name="contactMechId" value="${postalAddress.contactMechId?if_exists}">
<#elseif requestParameters.useShipAddr?exists>
<form method="post" action="<@ofbizUrl>/enterEftAccount</@ofbizUrl>" name="billsetupform">
<#else>
<form method="post" action="<@ofbizUrl>/enterEftAccountAndBillingAddress</@ofbizUrl>" name="billsetupform">
</#if>
</#if>
<#if paymentMethodType == "GC">
<form method="post" action="<@ofbizUrl>/finalizeOrder</@ofbizUrl>" name="billsetupform">
</#if>
<#if requestParameters.singleUsePayment?default("N") == "Y">
<input type="hidden" name="singleUsePayment" value="Y">
<input type="hidden" name="appendPayment" value="Y">
</#if>
<input type="hidden" name="contactMechTypeId" value="POSTAL_ADDRESS">
<input type="hidden" name="partyId" value="${partyId}">
<input type="hidden" name="paymentMethodType" value="${paymentMethodType}">
<input type="hidden" name="finalizeMode" value="payment">
<input type="hidden" name="createNew" value="Y">
<#if requestParameters.useShipAddr?exists>
<input type="hidden" name="contactMechId" value="${postalFields.contactMechId}">
</#if>
<table width="100%" border="0" cellpadding="1" cellspacing="0">
<#if cart.getShippingContactMechId()?exists && paymentMethodType != "GC">
<tr>
<td width="26%" align="right"= valign="top">
<input type="checkbox" name="useShipAddr" value="Y" onClick="javascript:shipBillAddr();" <#if requestParameters.useShipAddr?exists>checked</#if>>
</td>
<td colspan="2" align="left" valign="center">
<div class="tabletext">Billing address is the same as the shipping address</div>
</td>
</tr>
<tr>
<td colspan="3"><hr class="sepbar"></td>
</tr>
</#if>
<#if (paymentMethodType == "CC" || paymentMethodType == "EFT")>
<tr>
<td width="26%" align=right valign=top><div class="tableheadtext">Billing Address</div></td>
<td width="5"> </td>
<td width="74%"> </td>
</tr>
${pages.get("/order/genericaddress.ftl")}
</#if>
<#-- credit card fields -->
<#if paymentMethodType == "CC">
<#if !creditCard?has_content>
<#assign creditCard = requestParameters>
</#if>
<tr>
<td colspan="3"><hr class="sepbar"></td>
</tr>
<tr>
<td width="26%" align=right valign=top><div class="tableheadtext">Credit Card Information</div></td>
<td width="5"> </td>
<td width="74%"> </td>
</tr>
<tr>
<td width="26%" align=right valign=middle><div class="tabletext">Name on Card</div></td>
<td width="5"> </td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="nameOnCard" value="${creditCard.nameOnCard?if_exists}">
*</td>
</tr>
<tr>
<td width="26%" align=right valign=middle><div class="tabletext">Company Name on Card</div></td>
<td width="5"> </td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="companyNameOnCard" value="${creditCard.companyNameOnCard?if_exists}">
</td>
</tr>
<tr>
<td width="26%" align=right valign=middle><div class="tabletext">Card Type</div></td>
<td width="5"> </td>
<td width="74%">
<select name="cardType" class="selectBox">
<#if creditCard.cardType?exists>
<option>${creditCard.cardType}</option>
<option value="${creditCard.cardType}">---</option>
</#if>
${pages.get("/includes/cctypes.ftl")}
</select>
*</td>
</tr>
<tr>
<td width="26%" align=right valign=middle><div class="tabletext">Card Number</div></td>
<td width="5"> </td>
<td width="74%">
<input type="text" class="inputBox" size="20" maxlength="30" name="cardNumber" value="${creditCard.cardNumber?if_exists}">
*</td>
</tr>
<#--<tr>
<td width="26%" align=right valign=middle><div class="tabletext">Card Security Code</div></td>
<td width="5"> </td>
<td width="74%">
<input type="text" size="5" maxlength="10" name="cardSecurityCode" value="">
</td>
</tr>-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -