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

📄 checkoutshippingaddress.ftl

📁 Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电子商务应用(e-commerce), POS系统(point of sales),知识管理,存货与仓库管理
💻 FTL
字号:
<#-- *  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: 6302 $ *@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 == "NA") {        // new address        form.action="<@ofbizUrl>updateCheckoutOptions/editcontactmech?preContactMechTypeId=POSTAL_ADDRESS&contactMechPurposeTypeId=SHIPPING_LOCATION&DONE_PAGE=checkoutshippingaddress</@ofbizUrl>";        form.submit();    } else if (mode == "EA") {        // edit address        form.action="<@ofbizUrl>updateCheckoutOptions/editcontactmech?DONE_PAGE=checkoutshippingaddress&contactMechId="+value+"</@ofbizUrl>";        form.submit();    }}function toggleBillingAccount(box) {    var amountName = box.value + "_amount";    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[box.form.elements[box.name][i].value + "_amount"].disabled = true;        }    }}// --></script><#assign cart = shoppingCart?if_exists/><form method="post" name="checkoutInfoForm" style="margin:0;">    <input type="hidden" name="checkoutpage" value="shippingaddress"/>    <div class="screenlet" style="height: 100%;">        <div class="screenlet-header">            <div class="boxhead">1)&nbsp;${uiLabelMap.OrderWhereShallWeShipIt}?</div>        </div>        <div class="screenlet-body" style="height: 100%;">            <table width="100%" border="0" cellpadding="1" cellspacing="0">              <tr>                <td colspan="2">                  <a href="<@ofbizUrl>splitship</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderSplitShipment}</a>                  <a href="javascript:submitForm(document.checkoutInfoForm, 'NA', '');" class="buttontext">${uiLabelMap.PartyAddNewAddress}</a>                  <#if (cart.getShipGroupSize() > 1)>                    <div class="tabletext" style="color: red;">${uiLabelMap.OrderNOTEMultipleShipmentsExis}</div>                  </#if>                </td>              </tr>               <#if shippingContactMechList?has_content>                 <tr><td colspan="2"><hr class="sepbar"/></td></tr>                 <#list shippingContactMechList as shippingContactMech>                   <#assign shippingAddress = shippingContactMech.getRelatedOne("PostalAddress")>                   <#assign checkThisAddress = (shippingContactMech_index == 0 && !cart.getShippingContactMechId()?has_content) || (cart.getShippingContactMechId()?default("") == shippingAddress.contactMechId)/>                   <tr>                     <td align="left" valign="top" width="1%" nowrap>                       <input type="radio" name="shipping_contact_mech_id" value="${shippingAddress.contactMechId}"<#if checkThisAddress> checked</#if>>                     </td>                     <td align="left" valign="top" width="99%" nowrap>                       <div class="tabletext">                         <#if shippingAddress.toName?has_content><b>${uiLabelMap.CommonTo}:</b>&nbsp;${shippingAddress.toName}<br/></#if>                         <#if shippingAddress.attnName?has_content><b>${uiLabelMap.PartyAddrAttnName}:</b>&nbsp;${shippingAddress.attnName}<br/></#if>                         <#if shippingAddress.address1?has_content>${shippingAddress.address1}<br/></#if>                         <#if shippingAddress.address2?has_content>${shippingAddress.address2}<br/></#if>                         <#if shippingAddress.city?has_content>${shippingAddress.city}</#if>                         <#if shippingAddress.stateProvinceGeoId?has_content><br/>${shippingAddress.stateProvinceGeoId}</#if>                         <#if shippingAddress.postalCode?has_content><br/>${shippingAddress.postalCode}</#if>                         <#if shippingAddress.countryGeoId?has_content><br/>${shippingAddress.countryGeoId}</#if>                         <a href="javascript:submitForm(document.checkoutInfoForm, 'EA', '${shippingAddress.contactMechId}');" class="buttontext">${uiLabelMap.CommonUpdate}</a>                       </div>                     </td>                   </tr>                   <tr><td colspan="2"><hr class="sepbar"/></td></tr>                 </#list>               </#if>             </table>            <#-- Party Tax Info -->            <div class="tableheadtext">&nbsp;Tax IDs &amp; Exemptions</div>            ${screens.render("component://ecommerce/widget/CustomerScreens.xml#customertaxinfo")}        </div>    </div></form><table width="100%">  <tr valign="top">    <td align="left">      &nbsp;<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.CommonNext}</a>    </td>  </tr></table>

⌨️ 快捷键说明

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