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

📄 showcart.ftl

📁 Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电子商务应用(e-commerce), POS系统(point of sales),知识管理,存货与仓库管理
💻 FTL
字号:
<#-- *  Copyright (c) 2003-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     David E. Jones (jonesde@ofbiz.org) *@author     Andy Zeneski (jaz@ofbiz.org) *@author     Jean-Luc.Malet@nereide.biz (migration to uiLabelMap) *@version    $Rev: 7091 $ *@since      2.2--><script language="JavaScript" type="text/javascript">function toggle(e) {    e.checked = !e.checked;    }function checkToggle(e) {    var cform = document.cartform;    if (e.checked) {              var len = cform.elements.length;        var allchecked = true;        for (var i = 0; i < len; i++) {            var element = cform.elements[i];            if (element.name == "selectedItem" && !element.checked) {                              allchecked = false;            }            cform.selectAll.checked = allchecked;                    }    } else {        cform.selectAll.checked = false;    }}function toggleAll() {    var cform = document.cartform;    var len = cform.elements.length;    for (var i = 0; i < len; i++) {        var e = cform.elements[i];           if (e.name == "selectedItem") {            toggle(e);        }    }   }function removeSelected() {    var cform = document.cartform;    cform.removeSelected.value = true;    cform.submit();}function addToList() {    var cform = document.cartform;    cform.action = "<@ofbizUrl>addBulkToShoppingList</@ofbizUrl>";    cform.submit();}function gwAll(e) {    var cform = document.cartform;    var len = cform.elements.length;    var selectedValue = e.value;    if (selectedValue == "") {        return;    }    var cartSize = ${shoppingCartSize};    var passed = 0;    for (var i = 0; i < len; i++) {        var element = cform.elements[i];        var ename = element.name;        var sname = ename.substring(0,16);        if (sname == "option^GIFT_WRAP") {            var options = element.options;            var olen = options.length;            var matching = -1;            for (var x = 0; x < olen; x++) {                var thisValue = element.options[x].value;                if (thisValue == selectedValue) {                    element.selectedIndex = x;                    passed++;                }            }        }    }    if (cartSize > passed && selectedValue != "NO^") {        alert("${uiLabelMap.OrderSelectedGiftNotAvailableForAll}");    }    cform.submit();}function quicklookup_popup(element) {    target = element;  // note: global var target comes from fieldlookup.js    var searchTerm = element.value;    var obj_lookupwindow = window.open('LookupProduct?productId_op=like&productId_ic=Y&productId=' + searchTerm,'FieldLookup', 'width=700,height=550,scrollbars=yes,status=no,resizable=yes,top='+my+',left='+mx+',dependent=yes,alwaysRaised=yes');    obj_lookupwindow.opener = window;    obj_lookupwindow.focus();}function quicklookup(element) {    window.location='LookupBulkAddProducts?productId='+element.value;}</script><div class="screenlet">    <div class="screenlet-body">      <table border="0" cellspacing="0" cellpadding="0">        <tr>          <td>                       <form method="post" action="<@ofbizUrl>additem</@ofbizUrl>" name="quickaddform" style="margin: 0;">              <table border="0">                <tr>                  <td align="right"><div class="tableheadtext">${uiLabelMap.ProductProductId} :</div></td>                  <td><input type="text" class="inputBox" size="25" name="add_product_id" value="${requestParameters.add_product_id?if_exists}"/>                    <span class='tabletext'>                      <a href="javascript:quicklookup(document.quickaddform.add_product_id)" class="buttontext">${uiLabelMap.OrderQuickLookup}</a>                      <a href="javascript:call_fieldlookup2(document.quickaddform.add_product_id,'LookupProduct');">                        <img src="/images/fieldlookup.gif" width="15" height="14" border="0" alt="Click here For Field Lookup"/>                      </a>                    </span>                  </td>                </tr>                <tr>                  <td align="right"><div class="tableheadtext">${uiLabelMap.OrderQuantity} :</div></td>                  <td><input type="text" class="inputBox" size="6" name="quantity" value="${requestParameters.quantity?default("1")}"/></td>                </tr>                <tr>                  <td align="right"><div class="tableheadtext">${uiLabelMap.OrderDesiredDeliveryDate} :</div></td>                  <td>                    <div class="tabletext">                      <input type="text" class="inputBox" size="25" maxlength="30" name="itemDesiredDeliveryDate"<#if useAsDefaultDesiredDeliveryDate?exists> value="${defaultDesiredDeliveryDate}"</#if>/>                      <a href="javascript:call_cal(document.quickaddform.itemDesiredDeliveryDate,'${defaultDesiredDeliveryDate} 00:00:00.0');"><img src="/images/cal.gif" width="16" height="16" border="0" alt="${uiLabelMap.calendar_click_here_for_calendar}"/></a>                      <input type="checkbox" class="inputBox" name="useAsDefaultDesiredDeliveryDate" value="true"<#if useAsDefaultDesiredDeliveryDate?exists> checked="checked"</#if>/>                      ${uiLabelMap.OrderUseDefaultDesiredDeliveryDate}                    </div>                  </td>                </tr>                <tr>                  <td align="right"><div class="tableheadtext">${uiLabelMap.OrderShipAfterDate} :</div></td>                  <td>                    <div class="tabletext">                      <input type="text" class="inputBox" size="20" maxlength="30" name="shipAfterDate" value="${shoppingCart.getDefaultShipAfterDate()?default("")}"/>                      <a href="javascript:call_cal(document.quickaddform.shipAfterDate,'${shoppingCart.getDefaultShipAfterDate()?default("")}');"><img src="/images/cal.gif" width="16" height="16" border="0" alt="${uiLabelMap.calendar_click_here_for_calendar}"/></a>                    </div>                  </td>                </tr>                <tr>                  <td align="right"><div class="tableheadtext">${uiLabelMap.OrderShipBeforeDate} :</div></td>                  <td>                    <div class="tabletext">                      <input type="text" class="inputBox" size="20" maxlength="30" name="shipBeforeDate" value="${shoppingCart.getDefaultShipBeforeDate()?default("")}"/>                      <a href="javascript:call_cal(document.quickaddform.shipBeforeDate,'${shoppingCart.getDefaultShipBeforeDate()?default("")}');"><img src="/images/cal.gif" width="16" height="16" border="0" alt="${uiLabelMap.calendar_click_here_for_calendar}"/></a>                    </div>                  </td>                </tr>                <tr>                  <td align="right"><div class="tableheadtext">${uiLabelMap.CommonComment} :</div></td>                  <td>                    <div class="tabletext">                      <input type="text" class="inputBox" size="25" name="itemComment" value="${defaultComment?if_exists}">                      <input type="checkbox" class="inputBox" name="useAsDefaultComment" value="true" <#if useAsDefaultComment?exists>checked</#if>>                      ${uiLabelMap.OrderUseDefaultComment}                    </div>                  </td>                </tr>                <tr>                  <td></td>                  <td><input type="submit" class="smallSubmit" value="${uiLabelMap.OrderAddToOrder}"/></td>                </tr>              </table>            </form>          </td>        </tr>        <#if shoppingCart.getOrderType() == "PURCHASE_ORDER">        <tr><td><hr class="sepbar"/></td></tr>        <tr>          <td>            <form method="post" action="<@ofbizUrl>additem</@ofbizUrl>" name="bulkworkaddform" style="margin: 0;">                <div class="tableheadtext">                    ${uiLabelMap.ProductItem}:&nbsp;${uiLabelMap.ProductType}:&nbsp;<select name="add_item_type" class="selectBox"><option value="BULK_ORDER_ITEM">Bulk Item</option><option value="WORK_ORDER_ITEM">${uiLabelMap.ProductWorkItem}</option></select>                    Category:&nbsp;<select name="add_category_id" class="selectBox">                      <option></option>                      <#list productCategoryList as productCategory>                        <option value="${productCategory.productCategoryId}">${productCategory.description?default("No Description")} [${productCategory.productCategoryId}]</option>                      </#list>                    </select>                </div>                <div class="tableheadtext">                    ${uiLabelMap.CommonDescription}:&nbsp;<input type="text" class="inputBox" size="25" name="add_item_description" value="${requestParameters.add_product_id?if_exists}"/>                    ${uiLabelMap.OrderQuantity}:&nbsp;<input type="text" class="inputBox" size="3" name="quantity" value="${requestParameters.quantity?default("1")}"/>                    ${uiLabelMap.OrderPrice}:&nbsp;<input type="text" class="inputBox" size="6" name="price" value="${requestParameters.price?if_exists}"/>                    <input type="submit" class="smallSubmit" value="${uiLabelMap.OrderAddToOrder}"/>                </div>            </form>          </td>        </tr>          </#if>            </table>    </div></div><!-- Screenlet to add cart to shopping list. The shopping lists are presented in a dropdown box. --><#if (shoppingLists?exists) && (shoppingCartSize > 0)>  <div class="screenlet">    <div class="screenlet-header">        <div class="boxhead">&nbsp;${uiLabelMap.OrderAddOrderToShoppingList}</div>    </div>    <div class="screenlet-body">      <table border="0" cellspacing="0" cellpadding="0">        <tr>          <td>                       <form method="post" name="addBulkToShoppingList" action="<@ofbizUrl>addBulkToShoppingList</@ofbizUrl>" style='margin: 0;'>              <#assign index = 0/>              <#list shoppingCart.items() as cartLine>                <#if (cartLine.getProductId()?exists) && !cartLine.getIsPromo()>                  <input type="hidden" name="selectedItem" value="${index}"/>                </#if>                <#assign index = index + 1/>              </#list>              <table border="0">                <tr>                  <td>                    <div class="tabletext">                    <select name='shoppingListId' class='selectBox'>                      <#list shoppingLists as shoppingList>                        <option value='${shoppingList.shoppingListId}'>${shoppingList.getString("listName")}</option>                      </#list>                    </select>                    <input type="submit" class="smallSubmit" value="${uiLabelMap.EcommerceAddtoShoppingList}"/>                    </div>                  </td>                </tr>              </table>            </form>          </td>        </tr>      </table>    </div>  </div></#if><script language="JavaScript" type="text/javascript">  document.quickaddform.add_product_id.focus();</script><!-- Internal cart info: productStoreId=${shoppingCart.getProductStoreId()?if_exists} locale=${shoppingCart.getLocale()?if_exists} currencyUom=${shoppingCart.getCurrency()?if_exists} userLoginId=${(shoppingCart.getUserLogin().getString("userLoginId"))?if_exists} autoUserLogin=${(shoppingCart.getAutoUserLogin().getString("userLoginId"))?if_exists} -->

⌨️ 快捷键说明

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