📄 editproductquickadmin.ftl
字号:
<td>Nt. Wt.</td> <td>Grams</td> <td>HZ</td> <td>ST</td> <td>TD</td> </tr> <#if (product.isVirtual)?if_exists == "Y"> <#assign idx=0/> <#list assocProducts as assocProduct> <tr> <td nowrap>[${assocProduct.productId?if_exists}]</td> <td width="100%">${assocProduct.internalName?if_exists}</td> <input type="hidden" name="productId${idx}" value="${assocProduct.productId?if_exists}"/> <td><input class="inputBox" name="productHeight${idx}" size="6" maxlength="20" value="${assocProduct.productHeight?if_exists}"/></td> <td><input class="inputBox" name="productWidth${idx}" size="6" maxlength="20" value="${assocProduct.productWidth?if_exists}"/></td> <td><input class="inputBox" name="productDepth${idx}" size="6" maxlength="20" value="${assocProduct.productDepth?if_exists}"/></td> <td><input class="inputBox" name="weight${idx}" size="6" maxlength="20" value="${assocProduct.weight?if_exists}"/></td> <td><input class="inputBox" name="~floz${idx}" size="6" maxlength="20" value="${featureFloz.get(assocProduct.productId)?if_exists}"/></td> <td><input class="inputBox" name="~ml${idx}" size="6" maxlength="20" value="${featureMl.get(assocProduct.productId)?if_exists}"/></td> <td><input class="inputBox" name="~ntwt${idx}" size="6" maxlength="20" value="${featureNtwt.get(assocProduct.productId)?if_exists}"/></td> <td><input class="inputBox" name="~grams${idx}" size="6" maxlength="20" value="${featureGrams.get(assocProduct.productId)?if_exists}"/></td> <td><a class="buttontext" href="<@ofbizUrl>EditProductFeatures?productId=${assocProduct.productId}</@ofbizUrl>">[${featureHazmat.get(assocProduct.productId)?if_exists}]</a></td> <td><a class="buttontext" href="<@ofbizUrl>EditProduct?productId=${assocProduct.productId}</@ofbizUrl>">${featureSalesThru.get(assocProduct.productId)?if_exists}</a></td> <td><a class="buttontext" href="<@ofbizUrl>EditProductAssoc?productId=${assocProduct.productId}</@ofbizUrl>">${featureThruDate.get(assocProduct.productId)?if_exists}</a></td> </tr> <#assign idx = idx + 1/> </#list> <tr> <td colspan=10 align="right"><input name="applyToAll" type="submit" value="${uiLabelMap.ApplyToAll}"> <input name="updateShipping" type="submit" value="${uiLabelMap.UpdateShipping}"></td> </tr> <#else> <tr> <td>[${productId?if_exists}]</td> <td>${product.internalName?if_exists}</td> <td><input class="inputBox" name="productHeight" size="6" maxlength="20" value="${product.productHeight?if_exists}"></td> <td><input class="inputBox" name="productWidth" size="6" maxlength="20" value="${product.productWidth?if_exists}"></td> <td><input class="inputBox" name="productDepth" size="6" maxlength="20" value="${product.productDepth?if_exists}"></td> <td><input class="inputBox" name="weight" size="6" maxlength="20" value="${product.weight?if_exists}"></td> <td><input class="inputBox" name="~floz" size="6" maxlength="20" value="${floz?if_exists}"></td> <td><input class="inputBox" name="~ml" size="6" maxlength="20" value="${ml?if_exists}"></td> <td><input class="inputBox" name="~ntwt" size="6" maxlength="20" value="${ntwt?if_exists}"></td> <td><input class="inputBox" name="~grams" size="6" maxlength="20" value="${grams?if_exists}"></td> <td><a class="buttontext" href="<@ofbizUrl>EditProductFeatures?productId=${product.productId}</@ofbizUrl>">[${hazmat?if_exists}]</a></td> <td><a class="buttontext" href="<@ofbizUrl>EditProduct?productId=${product.productId}</@ofbizUrl>">${salesthru?if_exists}</a></td> <td><a class="buttontext" href="<@ofbizUrl>EditProductAssoc?productId=${product.productId}</@ofbizUrl>">${thrudate?if_exists}</a></td> </tr> <tr> <td colspan=10 align="right"><input type="submit" value="${uiLabelMap.UpdateShipping}"></td> </tr> </#if> </table> </form> <!-- **************************************************** end - Shipping dimensions section --> <!-- **************************************************** Standard Features section --> <hr> <table border="0" cellpadding="2" cellspacing="0" class="tabletext"> <tr> <td> <form method="post" action="<@ofbizUrl>quickAdminApplyFeatureToProduct</@ofbizUrl>" style="margin: 0;" name="addFeatureById"> <input type="hidden" name="productId" value="${product.productId?if_exists}"> <input type="hidden" name="productFeatureApplTypeId" value="STANDARD_FEATURE"> <input type="hidden" name="fromDate" value="${nowTimestampString}"> <table border="0" cellpadding="2" cellspacing="0" class="tabletext"> <tr> <td colspan=2><span class="head2">${uiLabelMap.StandardFeatures}</span></td> </tr> <#list addedFeatureTypeIds as addedFeatureTypeId> <tr> <td align="right">${addedFeatureTypes.get(addedFeatureTypeId).getString("description")}</td> <td> <select name="productFeatureId"> <option value="~~any~~">${uiLabelMap.AnyFeatureType}</option> <#list featuresByType.get(addedFeatureTypeId) as feature> <option value="${feature.getString("productFeatureId")}">${feature.getString("description")}</option> </#list> </select> </td> </tr> </#list> <tr><td colspan=2 align="right"><input type="submit" value="${uiLabelMap.AddFeatures}"></td></tr> </table> </form> </td> <td width="20"> </td> <td valign="top"> <table border="0" cellpadding="2" cellspacing="0" class="tabletext"> <#list standardFeatureAppls as standardFeatureAppl> <#assign featureId = standardFeatureAppl.productFeatureId/> <tr> <td><a href='<@ofbizUrl>quickAdminRemoveFeatureFromProduct?productId=${standardFeatureAppl.productId?if_exists}&productFeatureId=${featureId?if_exists}&fromDate=${Static["org.ofbiz.base.util.UtilFormatOut"].encodeQueryValue(standardFeatureAppl.getTimestamp("fromDate").toString())}</@ofbizUrl>' class="buttontext">[x]</a></td> <td>${productFeatureTypeLookup.get(featureId).getString("description")}: ${standardFeatureLookup.get(featureId).getString("description")}</td> </tr> </#list> </table> </td> </tr> </table> <hr> <table border="0" cellpadding="2" cellspacing="0" class="tabletext"> <tr> <form action="<@ofbizUrl>EditProductQuickAdmin</@ofbizUrl>"> <input type="hidden" name="productFeatureTypeId" value="${(productFeatureTypeId)?if_exists}"> <input type="hidden" name="productId" value="${product.productId?if_exists}"> <td align="right">${uiLabelMap.FeatureTypes}</td> <td> <select multiple name=addFeatureTypeId> <#list featureTypes as featureType> <option value="${featureType.productFeatureTypeId?if_exists}">${featureType.description?if_exists} </#list> </select> </td> <td><input type="submit" value="${uiLabelMap.AddFeatureType}"></td> </form> </tr> </table> <!-- **************************************************** end - Standard Features section --> <!-- **************************************************** Categories section --> <hr> <form action="<@ofbizUrl>quickAdminAddCategories</@ofbizUrl>"> <table border="0" cellpadding="2" cellspacing="0" class="tabletext"> <tr> <td> <table border="0" cellpadding="2" cellspacing="0" class="tabletext"> <tr> <input type="hidden" name="fromDate" value="${nowTimestampString}"/> <input type="hidden" name="productId" value="${product.productId?if_exists}"/> <td align="right">${uiLabelMap.Categories}</td> <td> <select multiple="true" name="categoryId"> <#list allCategories as category> <option value="${category.productCategoryId?if_exists}">${category.description?if_exists} [${category.productCategoryId}]</option> </#list> </select> </td> </tr> </table> <td valign="top"> <table border="0" cellpadding="2" cellspacing="0" class="tabletext"> <#list productCategoryMembers as prodCatMemb> <#assign prodCat = prodCatMemb.getRelatedOne("ProductCategory")/> <tr> <td><a href='<@ofbizUrl>quickAdminRemoveProductFromCategory?productId=${prodCatMemb.productId?if_exists}&productCategoryId=${prodCatMemb.productCategoryId}&fromDate=${Static["org.ofbiz.base.util.UtilFormatOut"].encodeQueryValue(prodCatMemb.getTimestamp("fromDate").toString())}</@ofbizUrl>' class="buttontext">[x]</a></td> <td>${prodCat.description?if_exists} [${prodCat.productCategoryId}]</td> </tr> </#list> </table> </td> </tr> <tr> <td colspan=2 align="right"><input type="submit" value="${uiLabelMap.UpdateCategories}"></td> </tr> </table> </form> <!-- **************************************************** end - Categories section --> <!-- **************************************************** publish section --> <hr> <table border="0" cellpadding="2" cellspacing="0" class="tabletext"> <#if (showPublish == "true")> <tr> <form action="<@ofbizUrl>quickAdminAddCategories</@ofbizUrl>" name="publish"> <input type="hidden" name="productId" value="${product.productId?if_exists}"> <input type="hidden" name="categoryId" value="${allCategoryId?if_exists}"> <td> <input type="text" size="25" name="fromDate" class="inputBox"> <a href="javascript:call_cal(document.publish.fromDate, '${nowTimestampString}');"> <img src="/images/cal.gif" width="16" height="16" border="0" alt="Calendar"> </a> </td> <td><input type=button value="${uiLabelMap.PublishAndView}" onClick="doPublish();"></td> </form> </tr> <#else> <tr> <form action="<@ofbizUrl>quickAdminUnPublish</@ofbizUrl>" name="unpublish"> <input type="hidden" name="productId" value="${product.productId?if_exists}"> <input type="hidden" name="productCategoryId" value="${allCategoryId?if_exists}"> <td> <input type="text" size="25" name="thruDate" class="inputBox"> <a href="javascript:call_cal(document.unpublish.thruDate, '${nowTimestampString}');"> <img src="/images/cal.gif" width="16" height="16" border="0" alt="Calendar"> </a> </td> <td><input type="submit" value="${uiLabelMap.RemoveFromSite}"></td> </form> </tr> </#if> </table> <!-- **************************************************** end - publish section --> <#else> <h3>Product not found with ID [${productId?if_exists}]</h3> </#if>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -