📄 editproductkeyword.ftl
字号:
<#-- * Copyright (c) 2003-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 David E. Jones (jonesde@ofbiz.org) *@author Brad Steiner (bsteiner@thehungersite.com) *@author Catherine.Heintz@nereide.biz (migration to UiLabel) *@version $Rev: 5877 $ *@since 2.2--><#if productId?exists && product?exists> <div class="tabletext">${uiLabelMap.ProductNoteKeywordsAutomaticallyCreated}</div> <TABLE border="0" cellspacing="0" cellpadding="0" class="boxoutside"> <TR> <TD width="100%"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="boxtop"> <tr> <TD align="left"> <DIV class="boxhead">${uiLabelMap.ProductAddProductKeyword}:</DIV> </TD> <TD align="right"> <a href="<@ofbizUrl>EditProduct?productId=${productId?if_exists}</@ofbizUrl>" class="submenutextright">${uiLabelMap.ProductEditProduct}</a> </td> </tr> </table> </TD> </TR> <TR> <TD width="100%"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="boxbottom"> <tr> <td> <form method="post" action="<@ofbizUrl>UpdateProductKeyword</@ofbizUrl>" style="margin: 0;"> <input type="hidden" name="UPDATE_MODE" value="CREATE"> <input type="hidden" name="PRODUCT_ID" value="${productId?if_exists}"> <input type="hidden" name="productId" value="${productId?if_exists}"> <span class="tabletext">${uiLabelMap.ProductKeyword}: </span><input type="text" size="20" name="KEYWORD" value="" class="inputBox"> <span class="tabletext">${uiLabelMap.ProductWeight}: </span><input type="text" size="4" name="relevancyWeight" value="1" class="inputBox"> <input type="submit" value="${uiLabelMap.CommonAdd}" style="font-size: x-small;"> </form> </td> </tr> </table> </TD> </TR> </TABLE> <BR> <TABLE border="0" cellspacing="0" cellpadding="0" class="boxoutside"> <TR> <TD width="100%"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="boxtop"> <tr> <TD align="left"> <DIV class="boxhead">${uiLabelMap.ProductKeywords}</DIV> </TD> <TD align="right"> <a href="<@ofbizUrl>UpdateProductKeywords?UPDATE_MODE=CREATE&PRODUCT_ID=${productId}&productId=${productId}</@ofbizUrl>" class="submenutext">${uiLabelMap.ProductReInduceKeywords}</a><a href="<@ofbizUrl>UpdateProductKeywords?UPDATE_MODE=DELETE&PRODUCT_ID=${productId}&productId=${productId}</@ofbizUrl>" class="submenutextright">${uiLabelMap.ProductDeleteAllKeywords}</a> </td> </tr> </table> </TD> </TR> <TR> <TD width="100%"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="boxbottom"> <tr> <td valign="top"> <TABLE width="100%" cellpadding="0" cellspacing="0" border="0"> <#assign productKeywords = product.getRelated("ProductKeyword")> <#if (productKeywords.size() > 0)> <#list productKeywords as productKeyword> <#assign colSize = productKeywords.size()/3 + 1> <#assign kIdx = 0> <tr> <td align="right">${(productKeyword.relevancyWeight)?if_exists} </td> <td align="left"> ${(productKeyword.keyword)?if_exists}</td> <td> </td> <td align="left"> <form method="post" action="<@ofbizUrl>UpdateProductKeyword</@ofbizUrl>"> <input type="hidden" name="productId" value="${productId}"> <input type="hidden" name="UPDATE_MODE" value="DELETE"> <input type="hidden" name="PRODUCT_ID" value="${productId}"> <input type="hidden" name="KEYWORD" value="${(productKeyword.keyword)?if_exists}"> <input type="submit" value="${uiLabelMap.CommonDelete}" class="smallSubmit"> </form> </td> </tr> <#assign kIdx = kIdx + 1> <#if (kIdx >= colSize)> <#assign colSize = colSize + colSize> </TABLE> </TD> <TD bgcolor="#FFFFFF" valign="top" style="border-left: solid #CCCCCC 1px;"> <TABLE width="100%" cellpadding="0" cellspacing="0" border="0"> </#if> </#list> <#else> <tr> <td colspan="3"><div class="tabletext">${uiLabelMap.ProductNoKeywordsFound}</div></td> </tr> </#if> </TABLE> </td> </tr> </table> </TD></TR></TABLE> <#else> <div class="head2">${uiLabelMap.ProductProductNotFoundWithProduct} "${productId?if_exists}"</div></#if>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -