📄 editproductquickadmin.ftl
字号:
<#-- * Copyright (c) 2004-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 Dustin Caldwell (dustin@dscv.org) *@author David E. Jones (jonesde@ofbiz.org) *@version $Rev: 7337 $ *@since 2.2--><#assign externalKeyParam = "&externalLoginKey=" + requestAttributes.externalLoginKey?if_exists> <#if product?has_content><!-- First some general forms and scripts --><form name="removeAssocForm" action="<@ofbizUrl>quickAdminUpdateProductAssoc</@ofbizUrl>"> <input type="hidden" name="productId" value="${product.productId?if_exists}"> <input type="hidden" name="PRODUCT_ID" value="${product.productId?if_exists}"> <input type="hidden" name="PRODUCT_ID_TO" value=""> <input type="hidden" name="PRODUCT_ASSOC_TYPE_ID" value="PRODUCT_VARIANT"> <input type="hidden" name="FROM_DATE" value=""> <input type="hidden" name="UPDATE_MODE" value="DELETE"> <input type="hidden" name="useValues" value="true"></form><form name="removeSelectable" action="<@ofbizUrl>updateProductQuickAdminDelFeatureTypes</@ofbizUrl>"> <input type="hidden" name="productId" value="${product.productId?if_exists}"> <input type="hidden" name="productFeatureTypeId" value=""></form><script language="JavaScript" type="text/javascript">function removeAssoc(productIdTo, fromDate) { if (confirm("Are you sure you want to remove the association of " + productIdTo + "?")) { document.removeAssocForm.PRODUCT_ID_TO.value = productIdTo; document.removeAssocForm.FROM_DATE.value = fromDate; document.removeAssocForm.submit(); }}function removeSelectable(typeString, productFeatureTypeId, productId) { if (confirm("Are you sure you want to remove all the selectable features of type " + typeString + "?")) { document.removeSelectable.productId.value = productId; document.removeSelectable.productFeatureTypeId.value = productFeatureTypeId; document.removeSelectable.submit(); }}function doPublish() { window.open('/ecommerce/control/product?product_id=${productId?if_exists}'); document.publish.submit();}</script> <!-- Name update section --> <form action="<@ofbizUrl>updateProductQuickAdminName</@ofbizUrl>" method="post" style="margin: 0;" name="editProduct"> <table border="0" cellpadding="2" cellspacing="0" class="tabletext"> <tr> <input type="hidden" name="productId" value="${productId?if_exists}"> <#if (product.isVirtual)?if_exists == "Y"> <input type="hidden" name="isVirtual" value="Y"> </#if> <td><span class="head2">[${productId?if_exists}]</span></div></td> <td><input type="text" class="inputBox" name="productName" size="40" maxlength="40" value="${product.productName?if_exists}"></td> <td><input type="submit" value="${uiLabelMap.UpdateName}"></td> </tr> </table> </form> <!-- ***************************************************** Selectable features section --> <#if (product.isVirtual)?if_exists == "Y"> <hr> <table border="0" cellpadding="2" cellspacing="0" class="tabletext"> <tr> <td colspan="2"><span class="head2">${uiLabelMap.SelectableFeatures}</span></td> <td colspan="2">${uiLabelMap.CommonType} <form action="<@ofbizUrl>EditProductQuickAdmin</@ofbizUrl>" method="post" style="margin: 0;" name="selectableFeatureTypeSelector"> <input type="hidden" name="productId" value="${product.productId?if_exists}"> <select name="productFeatureTypeId" onchange="javascript:document.selectableFeatureTypeSelector.submit();"> <option value="~~any~~">${uiLabelMap.AnyFeatureType} <#list featureTypes as featureType> <#if (featureType.productFeatureTypeId)?if_exists == (productFeatureTypeId)?if_exists> <#assign selected="selected"/> <#else> <#assign selected=""/> </#if> <option ${selected} value="${featureType.productFeatureTypeId?if_exists}"/>${featureType.description?if_exists} </#list> </select> </form> </td> </tr> <tr> <td>${uiLabelMap.ProductProductId}</td> <td> </td> <td> </td> <td> </td> <td>SRCH</td> <td>DL</td> </tr> <form action="<@ofbizUrl>updateProductQuickAdminSelFeat</@ofbizUrl>" method="post" style="margin: 0;" name="selectableFeature"> <input type="hidden" name="productId" value="${product.productId?if_exists}"> <input type="hidden" name="productFeatureTypeId" value="${(productFeatureTypeId)?if_exists}"> <#assign idx=0/> <#list productAssocs as productAssoc> <#assign assocProduct = productAssoc.getRelatedOne("AssocProduct")/> <tr> <td nowrap><a class="buttontext" href="<@ofbizUrl>EditProduct?productId=${assocProduct.productId}</@ofbizUrl>">[${assocProduct.productId?if_exists}]</a></td> <td width="100%"><a class="buttontext" href="<@ofbizUrl>EditProduct?productId=${assocProduct.productId}</@ofbizUrl>">${assocProduct.internalName?if_exists}</a></td> <input type="hidden" name="productId${idx}" value="${assocProduct.productId?if_exists}"> <td colspan="2"> <input class="inputBox" name="description${idx}" size="70" maxlength="100" value="${selFeatureDesc[assocProduct.productId]?if_exists}"> </td> <#assign checked=""/> <#if ((assocProduct.smallImageUrl?if_exists != "") && (assocProduct.smallImageUrl?if_exists == product.smallImageUrl?if_exists) && (assocProduct.smallImageUrl?if_exists != "") && (assocProduct.smallImageUrl?if_exists == product.smallImageUrl?if_exists)) > <#assign checked = "checked"/> </#if> <td><input type="radio" ${checked} name="useImages" value="${assocProduct.productId}"/></td> <#assign fromDate = Static["org.ofbiz.base.util.UtilFormatOut"].encodeQueryValue(productAssoc.getTimestamp("fromDate").toString())/> <td><a class="buttontext" href="javascript:removeAssoc('${productAssoc.productIdTo}', '${fromDate}');">[x]</a></td> </tr> <#assign idx = idx + 1/> </#list> <tr> <td colspan="2"> </td> <td> <table border="0" cellpadding="0" cellspacing="0" class="tabletext"> <#list selectableFeatureTypes as selectableFeatureType> <tr><td><a class="buttontext" href="javascript:removeSelectable('${(selectableFeatureType.description)?if_exists}', '${selectableFeatureType.productFeatureTypeId}', '${product.productId}')">[x]</a> <a class="buttontext" href="<@ofbizUrl>EditProductQuickAdmin?productFeatureTypeId=${(selectableFeatureType.productFeatureTypeId)?if_exists}&productId=${product.productId?if_exists}</@ofbizUrl>">${(selectableFeatureType.description)?if_exists}</a></td></tr> </#list> </table> </td> <td align="right"> <table border="0" cellpadding="0" cellspacing="0" class="tabletext"> <tr><td align="right"><input name="applyToAll" type="submit" value="${uiLabelMap.AddSelectableFeature}"></td></tr> </table> </td> </tr> </table> </form> <hr> </#if> <#if (product.isVariant)?if_exists == "Y"> <form action="<@ofbizUrl>updateProductQuickAdminDistFeat</@ofbizUrl>" method="post" style="margin: 0;" name="distFeature"> <input type="hidden" name="productId" value="${product.productId?if_exists}"> <table border="0" cellpadding="2" cellspacing="0" class="tabletext"> <tr> <td colspan="3"><span class="head2">${uiLabelMap.DistinguishingFeatures}</span></td> </tr> <tr> <td>Product ID</td> <td> </td> <td> </td> </tr> <#assign idx=0/> <#list distinguishingFeatures as distinguishingFeature> <tr> <td><a href="<@ofbizUrl>quickAdminRemoveProductFeature?productId=${productId}&productFeatureId=${distinguishingFeature.productFeatureId}</@ofbizUrl>">[x]</a></td> <td>[${distinguishingFeature.productFeatureId}] ${productFeatureTypeLookup.get(distinguishingFeature.productFeatureId).description}: ${distinguishingFeature.description} </td> </tr> </#list> </table> </form> </#if> <!-- ***************************************************** end Selectable features section --> <!-- ***************************************************** Shipping dimensions section --> <hr> <form action="<@ofbizUrl>updateProductQuickAdminShipping</@ofbizUrl>" method="post" style="margin: 0;" name="updateShipping"> <input type="hidden" name="productId" value="${product.productId?if_exists}"> <input type="hidden" name="heightUomId" value="LEN_in"> <input type="hidden" name="widthUomId" value="LEN_in"> <input type="hidden" name="depthUomId" value="LEN_in"> <input type="hidden" name="weightUomId" value="WT_oz"> <table border="0" cellpadding="2" cellspacing="0" class="tabletext"> <tr> <td colspan=2><span class="head2">${uiLabelMap.ShippingDimensionsAndWeights}</span></td> <td>Height</td> <td>Width</td> <td>Depth</td> <td>Weight</td> <td>Fl. Oz.</td> <td>ML</td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -