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

📄 editshoppinglist.ftl

📁 国外的一套开源CRM
💻 FTL
📖 第 1 页 / 共 2 页
字号:
					  <div class="tabletext">${totalPrice?string.currency}</div>
					</td>                      
					<td align="right">
                      <a href="<@ofbizUrl>/editShoppingList?shoppingListId=${childShoppingList.shoppingListId}</@ofbizUrl>" class="buttontext">[${uiLabelMap.EcommerceGoToList}]</a>
                      <a href="<@ofbizUrl>/addListToCart?shoppingListId=${childShoppingList.shoppingListId}</@ofbizUrl>" class="buttontext">[${uiLabelMap.EcommerceAddListToCart}]</a>
					</td>                      
				  </tr>
				</form>
			  </#list>
			  <tr><td colspan="6"><hr class='sepbar'></td></tr>
			  <tr>
				<td><div class="tabletext">&nbsp;</div></td>
				<td nowrap align="right">
				  <div class="tableheadtext">${shoppingListChildTotal?string.currency}</div>
				</td>                      
				<td><div class="tabletext">&nbsp;</div></td>
			  </tr>
			</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">&nbsp;${uiLabelMap.EcommerceListItems} - ${shoppingList.listName}</div>
          </td>
          <td valign="middle" align="right">
            <a href="<@ofbizUrl>/addListToCart?shoppingListId=${shoppingList.shoppingListId}</@ofbizUrl>" class="submenutextright">${uiLabelMap.EcommerceAddListToCart}</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.EcommerceProduct}</b></div></TD>
                    <TD NOWRAP align="center"><div class='tabletext'><b>${uiLabelMap.CommonQuantity}</b></div></TD>
                    <#-- <TD NOWRAP align="center"><div class='tabletext'><b>Purchased</b></div></TD> -->
                    <TD NOWRAP align="right"><div class='tabletext'><b>${uiLabelMap.EcommercePrice}</b></div></TD>
                    <TD NOWRAP align="right"><div class='tabletext'><b>${uiLabelMap.EcommerceTotal}</b></div></TD>
                    <td>&nbsp;</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}">
                            <div class='tabletext'>
                              <input size="6" class='inputBox' type="text" name="quantity" value="${shoppingListItem.quantity?string.number}">
                            </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">${unitPrice?string.currency}</div>
                        </td>
                        <td nowrap align="right">
                          <div class="tabletext">${totalPrice?string.currency}</div>
                        </td>
                        <td align="right">
                        	<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>
                          <#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}&nbsp;${shoppingListItem.quantity?string}&nbsp;${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}&add_product_id=${shoppingListItem.productId}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonAdd}&nbsp;${shoppingListItem.quantity?string}&nbsp;${uiLabelMap.EcommerceToCart}]</a>
                          </#if>
                        </td>
                      </tr>
                  </#list>
                  <tr><td colspan="6"><hr class='sepbar'></td></tr>
				  <tr>
					<td><div class="tabletext">&nbsp;</div></td>
					<td><div class="tabletext">&nbsp;</div></td>
					<#--<td><div class="tabletext">&nbsp;</div></td>-->
					<td><div class="tabletext">&nbsp;</div></td>
					<td nowrap align="right">
					  <div class="tableheadtext">${shoppingListItemTotal?string.currency}</div>
					</td>                      
					<td><div class="tabletext">&nbsp;</div></td>
				  </tr>
                </table>
            <#else>
                <div class='head2'>${uiLabelMap.EcommerceShoppingListEmpty}.</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">&nbsp;${uiLabelMap.EcommerceShoppingListPriceTotals} - ${shoppingList.listName}</div>
          </td>  
          <td valign="middle" align="right">
          </td>
        </tr>
      </table>
    </TD>
  </TR>
  <TR>
    <TD width='100%'>
      <table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
        <tr>
          <td align="left" width="5%">
          	<div class="tabletext">${uiLabelMap.EcommerceChildListTotalPrice}</div>
          </td>
          <td align="right" width="5%">
          	<div class="tabletext">${shoppingListChildTotal?string.currency}</div>
          </td>
          <td width="90%"><div class="tabletext">&nbsp;</div></td>
        </tr>
        <tr>
          <td align="left">
          	<div class="tabletext">${uiLabelMap.EcommerceListItemsTotalPrice}&nbsp;</div>
          </td>
          <td align="right">
          	<div class="tabletext">${shoppingListItemTotal?string.currency}</div>
          </td>
          <td><div class="tabletext">&nbsp;</div></td>
        </tr>
        <tr>
          <td align="left">
          	<div class="tableheadtext">${uiLabelMap.OrderGrandTotal}</div>
          </td>
          <td align="right">
          	<div class="tableheadtext">${shoppingListTotalPrice?string.currency}</div>
          </td>
          <td><div class="tabletext">&nbsp;</div></td>
        </tr>
      </table>
    </TD>
  </TR>
</TABLE>

	<#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 + -