📄 editshoppinglist.ftl
字号:
</td> <td valign="middle" align="right"> <a href="<@ofbizUrl>addListToCart?shoppingListId=${shoppingList.shoppingListId}&includeChild=yes</@ofbizUrl>" class="submenutextright">${uiLabelMap.PartyAddChildListsToCart}</a> </td> </tr> </table> </TD> </TR> <TR> <TD width='100%'> <table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'> <tr> <td> <table width='100%' cellspacing="0" cellpadding="1" border="0"> <TR> <TD NOWRAP><div class='tabletext'><b>${uiLabelMap.PartyListName}</b></div></TD> <td> </td> <td> </td> </TR> <#list childShoppingListDatas as childShoppingListData> <#assign childShoppingList = childShoppingListData.childShoppingList> <tr> <td nowrap align="left"> <a href="<@ofbizUrl>editShoppingList?shoppingListId=${childShoppingList.shoppingListId}</@ofbizUrl>" class="buttontext">${childShoppingList.listName?default(childShoppingList.shoppingListId)}</a> </td> <td align="right"> <a href="<@ofbizUrl>editShoppingList?shoppingListId=${childShoppingList.shoppingListId}</@ofbizUrl>" class="buttontext">${uiLabelMap.PartyGotoList}</a> <a href="<@ofbizUrl>addListToCart?shoppingListId=${childShoppingList.shoppingListId}</@ofbizUrl>" class="buttontext">${uiLabelMap.PartyAddListToCart}</a> </td> </tr> </#list> </table> </td> </tr> </table> </TD> </TR></TABLE></#if><br/><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 valign="middle" align="left"> <div class="boxhead"> ${uiLabelMap.PartyListItems} - ${shoppingList.listName}</div> </td> <#-- <td valign="middle" align="right"> <a href="<@ofbizUrl>addListToCart?shoppingListId=${shoppingList.shoppingListId}</@ofbizUrl>" class="submenutextright">${uiLabelMap.PartyAddListToCart}</a> </td> --> </tr> </table> </TD> </TR> <TR> <TD width='100%'> <table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'> <tr> <td> <#if shoppingListItemDatas?has_content> <table width='100%' cellspacing="0" cellpadding="1" border="0"> <TR> <TD NOWRAP><div class='tabletext'><b>${uiLabelMap.PartyProduct}</b></div></TD> <TD NOWRAP align="center"><div class='tabletext'><b>${uiLabelMap.PartyQuantity}</b></div></TD> <TD NOWRAP align="center"><div class='tabletext'><b>${uiLabelMap.PartyQuantityPurchased}</b></div></TD> <TD NOWRAP align="right"><div class='tabletext'><b>${uiLabelMap.PartyPrice}</b></div></TD> <TD NOWRAP align="right"><div class='tabletext'><b>${uiLabelMap.PartyTotal}</b></div></TD> <td> </td> </TR> <TR> <td colspan="7"><hr class="sepbar"></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="/catalog/control/EditProduct?productId=${shoppingListItem.productId}&externalLoginKey=${requestAttributes.externalLoginKey}" class='buttontext'>${shoppingListItem.productId} - ${productContentWrapper.get("PRODUCT_NAME")?default("No Name")}</a> : ${productContentWrapper.get("DESCRIPTION")?if_exists} </div> </td> <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}"> <td nowrap align="center"> <div class='tabletext'> <input size="6" class='inputBox' type="text" name="quantity" value="${shoppingListItem.quantity?string.number}"> </div> </td> <td nowrap align="center"> <div class='tabletext'> <input size="6" class='inputBox' type="text" name="quantityPurchased" <#if shoppingListItem.quantityPurchased?has_content> value="${shoppingListItem.quantityPurchased?if_exists?string.number}" </#if> > </div> </td> </form> <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" nowrap> <a href="javascript:document.listform_${shoppingListItem.shoppingListItemSeqId}.submit();" class="buttontext">${uiLabelMap.CommonUpdate}</a> <a href="<@ofbizUrl>removeFromShoppingList?shoppingListId=${shoppingListItem.shoppingListId}&shoppingListItemSeqId=${shoppingListItem.shoppingListItemSeqId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonRemove}</a> </td> </tr> </#list> <tr><td colspan="7"><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><div class="tabletext"> </div></td> <td><div class="tabletext"> </div></td> </tr> </table> <#else> <div class='head2'>${uiLabelMap.PartyShoppingListEmpty}.</div> </#if> </td> </tr> </table> </TD> </TR></TABLE><br/><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 valign="middle" align="left"> <div class="boxhead"> ${uiLabelMap.PartyQuickAddList}</div> </td> </tr> </table> </td> </tr> <tr> <td width="100%"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="boxbottom"> <tr> <td> <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="hidden" name="partyId" value="${shoppingList.partyId?if_exists}"> <input type="text" class="inputBox" name="productId" value=""> <input type="text" class="inputBox" size="5" name="quantity" value="${requestParameters.quantity?default("1")}"> <input type="submit" class="smallSubmit" value="${uiLabelMap.PartyAddToShoppingList}"> </form> </td> </tr> </table> </td> </tr></table></#if>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -