📄 editshoppinglist.ftl
字号:
<tr> <td><div class="tabletext"> </div></td> <td nowrap align="right"> <div class="tableheadtext"><@ofbizCurrency amount=shoppingListChildTotal isoCode=currencyUomId/></div> </td> <td><div class="tabletext"> </div></td> </tr> </table> </div></div></#if><div class="screenlet"> <div class="screenlet-header"> <div style="float: right;"> <a href="<@ofbizUrl>addListToCart?shoppingListId=${shoppingList.shoppingListId}</@ofbizUrl>" class="submenutextright">${uiLabelMap.EcommerceAddListToCart}</a> </div> <div class="boxhead"> ${uiLabelMap.EcommerceListItems} - ${shoppingList.listName}</div> </div> <div class="screenlet-body"> <#if shoppingListItemDatas?has_content> <table width="100%" cellspacing="0" cellpadding="1" border="0"> <tr> <td><div class="tabletext"><b>${uiLabelMap.EcommerceProduct}</b></div></td> <td><table><tr><td class="tabletext" nowrap align="center"><b>- ${uiLabelMap.EcommerceStartdate} -</b></td><td class="tabletext" nowrap><b>- ${uiLabelMap.EcommerceNbrOfDays} -</b></td></tr><tr><td class="tabletext" nowrap><b>- ${uiLabelMap.EcommerceNbrOfPersons} -</b></td><td class="tabletext" nowrap align="center"><b>- ${uiLabelMap.CommonQuantity} -</b></td></tr></table></td> <#-- <TD NOWRAP align="center"><div class="tabletext"><b>Purchased</b></div></TD> --> <td align="right"><div class="tabletext"><b>${uiLabelMap.EcommercePrice}</b></div></td> <td align="right"><div class="tabletext"><b>${uiLabelMap.EcommerceTotal}</b></div></td> <td> </td> </tr> <#list shoppingListItemDatas as shoppingListItemData> <#assign shoppingListItem = shoppingListItemData.shoppingListItem/> <#assign product = shoppingListItemData.product/> <#assign productContentWrapper = Static["org.ofbiz.product.product.ProductContentWrapper"].makeProductContentWrapper(product, request)/> <#assign unitPrice = shoppingListItemData.unitPrice/> <#assign totalPrice = shoppingListItemData.totalPrice/> <#assign productVariantAssocs = shoppingListItemData.productVariantAssocs?if_exists/> <#assign isVirtual = product.isVirtual?exists && product.isVirtual.equals("Y")/> <tr> <td> <div class="tabletext"> <a href="<@ofbizUrl>product?product_id=${shoppingListItem.productId}</@ofbizUrl>" class="buttontext">${shoppingListItem.productId} - ${productContentWrapper.get("PRODUCT_NAME")?default("No Name")}</a> : ${productContentWrapper.get("DESCRIPTION")?if_exists} </div> </td> <td nowrap align="center"> <form method="post" action="<@ofbizUrl>updateShoppingListItem</@ofbizUrl>" name="listform_${shoppingListItem.shoppingListItemSeqId}" style="margin: 0;"> <input type="hidden" name="shoppingListId" value="${shoppingListItem.shoppingListId}"/> <input type="hidden" name="shoppingListItemSeqId" value="${shoppingListItem.shoppingListItemSeqId}"/> <input type="hidden" name="reservStart"/> <div class="tabletext"> <#if product.productTypeId == "ASSET_USAGE"><table border="0" width="100%"><tr><td width="1%"> </td><td><input type="text" class="inputBox" size="10" name="reservStartStr" value=${shoppingListItem.reservStart?if_exists}/></td><td><input type="text" class="inputBox" size="2" name="reservLength" value=${shoppingListItem.reservLength?if_exists}/></td></tr><tr><td> </td><td><input type="text" class="inputBox" size="3" name="reservPersons" value=${shoppingListItem.reservPersons?if_exists}/></td><td class="tabletext"><#else> <table width="100%"><tr><td width="62%" align="center">--</td><td align="center">--</td></tr><tr><td align="center">--</td><td class="tabletext"><input type="hidden" name="reservStartStr" value=""/> </#if> <input size="6" class="inputBox" type="text" name="quantity" value="${shoppingListItem.quantity?string.number}"/> </td></tr></table> </div> </form> </td> <#-- <td nowrap align="center"> <div class="tabletext">${shoppingListItem.quantityPurchased?default(0)?string.number}</div> </td> --> <td nowrap align="right"> <div class="tabletext"><@ofbizCurrency amount=unitPrice isoCode=currencyUomId/></div> </td> <td nowrap align="right"> <div class="tabletext"><@ofbizCurrency amount=totalPrice isoCode=currencyUomId/></div> </td> <td align="right"> <a href="javascript:TimestampSubmit(listform_${shoppingListItem.shoppingListItemSeqId});" class="buttontext">[${uiLabelMap.CommonUpdate}]</a> <a href="<@ofbizUrl>removeFromShoppingList?shoppingListId=${shoppingListItem.shoppingListId}&shoppingListItemSeqId=${shoppingListItem.shoppingListItemSeqId}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonRemove}]</a> <#if isVirtual && productVariantAssocs?has_content> <#assign replaceItemAction = "/replaceShoppingListItem/" + requestAttributes._CURRENT_VIEW_?if_exists> <#assign addToCartAction = "/additem/" + requestAttributes._CURRENT_VIEW_?if_exists> <br/> <form method="post" action="<@ofbizUrl>${addToCartAction}</@ofbizUrl>" name="listreplform_${shoppingListItem.shoppingListItemSeqId}" style="margin: 0;"> <input type="hidden" name="shoppingListId" value="${shoppingListItem.shoppingListId}"/> <input type="hidden" name="shoppingListItemSeqId" value="${shoppingListItem.shoppingListItemSeqId}"/> <input type="hidden" name="quantity" value="${shoppingListItem.quantity}"/> <select name="add_product_id" class="selectBox"> <#list productVariantAssocs as productVariantAssoc> <#assign variantProduct = productVariantAssoc.getRelatedOneCache("AssocProduct")> <#if variantProduct?exists> <#assign variantProductContentWrapper = Static["org.ofbiz.product.product.ProductContentWrapper"].makeProductContentWrapper(variantProduct, request)> <option value="${variantProduct.productId}">${variantProductContentWrapper.get("PRODUCT_NAME")?default("No Name")} [${variantProduct.productId}]</option> </#if> </#list> </select> <br/> <a href="javascript:document.listreplform_${shoppingListItem.shoppingListItemSeqId}.action='<@ofbizUrl>${replaceItemAction}</@ofbizUrl>';document.listreplform_${shoppingListItem.shoppingListItemSeqId}.submit();" class="buttontext">[${uiLabelMap.EcommerceReplaceWithVariation}]</a> <br/> <a href="javascript:document.listreplform_${shoppingListItem.shoppingListItemSeqId}.action='<@ofbizUrl>${addToCartAction}</@ofbizUrl>';document.listreplform_${shoppingListItem.shoppingListItemSeqId}.submit();" class="buttontext">[${uiLabelMap.CommonAdd} ${shoppingListItem.quantity?string} ${uiLabelMap.EcommerceVariationToCart}]</a> </form> <#else> <a href="<@ofbizUrl>additem<#if requestAttributes._CURRENT_VIEW_?exists>/${requestAttributes._CURRENT_VIEW_}</#if>?shoppingListId=${shoppingListItem.shoppingListId}&shoppingListItemSeqId=${shoppingListItem.shoppingListItemSeqId}&quantity=${shoppingListItem.quantity}&reservStart=${shoppingListItem.reservStart?if_exists}&reservPersons=${shoppingListItem.reservPersons?if_exists}&reservLength=${shoppingListItem.reservLength?if_exists}&add_product_id=${shoppingListItem.productId}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonAdd} ${shoppingListItem.quantity?string} ${uiLabelMap.EcommerceToCart}]</a> </#if> </td> </tr> </#list> <tr><td colspan="6"><hr class="sepbar"/></td></tr> <tr> <td><div class="tabletext"> </div></td> <td><div class="tabletext"> </div></td> <#--<td><div class="tabletext"> </div></td>--> <td><div class="tabletext"> </div></td> <td nowrap align="right"> <div class="tableheadtext"><@ofbizCurrency amount=shoppingListItemTotal isoCode=currencyUomId/></div> </td> <td><div class="tabletext"> </div></td> </tr> </table> <#else> <div class="head2">${uiLabelMap.EcommerceShoppingListEmpty}.</div> </#if> </div></div><div class="screenlet"> <div class="screenlet-header"> <div class="boxhead"> ${uiLabelMap.EcommerceShoppingListPriceTotals} - ${shoppingList.listName}</div> </div> <div class="screenlet-body"> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td align="left" width="5%" NOWRAP> <div class="tabletext">${uiLabelMap.EcommerceChildListTotalPrice}</div> </td> <td align="right" width="5%" NOWRAP> <div class="tabletext"><@ofbizCurrency amount=shoppingListChildTotal isoCode=currencyUomId/></div> </td> <td width="90%"><div class="tabletext"> </div></td> </tr> <tr> <td align="left" NOWRAP> <div class="tabletext">${uiLabelMap.EcommerceListItemsTotalPrice} </div> </td> <td align="right" NOWRAP> <div class="tabletext"><@ofbizCurrency amount=shoppingListItemTotal isoCode=currencyUomId/></div> </td> <td><div class="tabletext"> </div></td> </tr> <tr> <td align="left" NOWRAP> <div class="tableheadtext">${uiLabelMap.OrderGrandTotal}</div> </td> <td align="right" NOWRAP> <div class="tableheadtext"><@ofbizCurrency amount=shoppingListTotalPrice isoCode=currencyUomId/></div> </td> <td><div class="tabletext"> </div></td> </tr> </table> </div></div><div class="screenlet"> <div class="screenlet-header"> <div class="boxhead"> ${uiLabelMap.CommonQuickAddList}</div> </div> <div class="screenlet-body"> <form name="addToShoppingList" method="post" action="<@ofbizUrl>addItemToShoppingList<#if requestAttributes._CURRENT_VIEW_?exists>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>"> <input type="hidden" name="shoppingListId" value="${shoppingList.shoppingListId}"/> <input type="text" class="inputBox" name="productId" value="${requestParameters.add_product_id?if_exists}"/> <#if reservStart?exists></td><td class="tabletext">${uiLabelMap.EcommerceStartDate}</td><td><input type="text" class="inputBox" size="10" name="reservStart" value=${requestParameters.reservStart?default("")}></td><td class="tabletext"> ${uiLabelMap.EcommerceLength}:</td><td><input type="text" class="inputBox" size="2" name="reservLength" value=${requestParameters.reservLength?default("")}></td></tr><tr><td> </td><td> </td><td class="tabletext">${uiLabelMap.EcommerceNbrPersons}:</td><td><input type="text" class="inputBox" size="3" name="reservPersons" value=${requestParameters.reservPersons?default("1")}></td><td class="tabletext" nowrap></#if> ${uiLabelMap.CommonQuantity} :</td><td><input type="text" class="inputBox" size="5" name="quantity" value="${requestParameters.quantity?default("1")}"></td><td> <!-- <input type="text" class="inputBox" size="5" name="quantity" value="${requestParameters.quantity?default("1")}">--> <input type="submit" class="smallSubmit" value="${uiLabelMap.EcommerceAddtoShoppingList}"/> </form> </div></div> <#else> <#-- shoppingList was found, but belongs to a different party --> <div class="head2">${uiLabelMap.EcommerceShoppingListError} ID ${shoppingList.shoppingListId}) ${uiLabelMap.EcommerceListDoesNotBelong}.</div> </#if></#if>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -