📄 editproductassoc.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: 6113 $ *@since 2.2--> <form action="<@ofbizUrl>UpdateProductAssoc</@ofbizUrl>" method="post" style="margin: 0;" name="editProductAssocForm"> <table border="0" cellpadding="2" cellspacing="0"> <#if !(productAssoc?exists)> <#if productId?exists && productIdTo?exists && productAssocTypeId?exists && fromDate?exists><#-- <div class="tabletext"><b>Association not found: Product Id=${productId?if_exists}, Product Id To=${productIdTo?if_exists}, Association Type Id=${productAssocTypeId?if_exists}, From Date=${fromDate?if_exists}.</b></div> --> <div class="tabletext"><b><#assign uiLabelWithVar=uiLabelMap.ProductAssociationNotFound?interpret><@uiLabelWithVar/></b></div> <input type="hidden" name="UPDATE_MODE" value="CREATE"> <tr> <td align="right"><div class="tabletext">${uiLabelMap.ProductProductId}</div></td> <td> </td> <td><input type="text" class="inputBox" name="PRODUCT_ID" size="20" maxlength="40" value="${productId?if_exists}"></td> </tr> <tr> <td align="right"><div class="tabletext">${uiLabelMap.ProductProductIdTo}</div></td> <td> </td> <td><input type="text" class="inputBox" name="PRODUCT_ID_TO" size="20" maxlength="40" value="${productIdTo?if_exists}"></td> </tr> <tr> <td align="right"><div class="tabletext">${uiLabelMap.ProductAssociationTypeId}</div></td> <td> </td> <td> <select class="selectBox" name="PRODUCT_ASSOC_TYPE_ID" size="1"> <#if productAssocTypeId?has_content> <#assign curAssocType = delegator.findByPrimaryKey("ProductAssocType", Static["org.ofbiz.base.util.UtilMisc"].toMap("productAssocTypeId", productAssocTypeId))> <#if curAssocType?exists> <option selected value="${(curAssocType.productAssocTypeId)?if_exists}">${(curAssocType.description)?if_exists}</option> <option value="${(curAssocType.productAssocTypeId)?if_exists}"></option> </#if> </#if> <#list assocTypes as assocType> <option value="${(assocType.productAssocTypeId)?if_exists}">${(assocType.description)?if_exists}</option> </#list> </select> </td> </tr> <tr> <td align="right"><div class="tabletext">${uiLabelMap.CommonFromDate}</div></td> <td> </td> <td> <div class="tabletext"> <input type="text" class="inputBox" name="FROM_DATE" size="25" maxlength="40" value="${fromDate?if_exists}"> <a href="javascript:call_cal(document.editProductAssocForm.FROM_DATE, '${fromDate?default(nowTimestampString)}');"><img src="/images/cal.gif" width="16" height="16" border="0" alt="Calendar"></a> ${uiLabelMap.CommonSetNowEmpty} </div> </td> </tr> <#else> <input type="hidden" name="UPDATE_MODE" value="CREATE"> <tr> <td align="right"><div class="tabletext">${uiLabelMap.ProductProductId}</div></td> <td> </td> <td><input type="text" class="inputBox" name="PRODUCT_ID" size="20" maxlength="40" value="${productId?if_exists}"></td> </tr> <tr> <td align="right"><div class="tabletext">${uiLabelMap.ProductProductIdTo}</div></td> <td> </td> <td><input type="text" class="inputBox" name="PRODUCT_ID_TO" size="20" maxlength="40" value="${productIdTo?if_exists}"> <a href="javascript:call_fieldlookup2(document.editProductAssocForm.PRODUCT_ID_TO,'LookupProduct');"><img src='/images/fieldlookup.gif' width='15' height='14' border='0' alt='Click here For Field Lookup'/></a></td> </tr> <tr> <td align="right"><div class="tabletext">${uiLabelMap.ProductAssociationTypeId}</div></td> <td> </td> <td> <select class="selectBox" name="PRODUCT_ASSOC_TYPE_ID" size="1"> <-- <option value=""> </option> --> <#list assocTypes as assocType> <option value="${(assocType.productAssocTypeId)?if_exists}">${(assocType.description)?if_exists}</option> </#list> </select> </td> </tr> <tr> <td align="right"><div class="tabletext">${uiLabelMap.CommonFromDate}</div></td> <td> </td> <td> <div class="tabletext"> <input type="text" class="inputBox" name="FROM_DATE" size="25" maxlength="40" value=""> <a href="javascript:call_cal(document.editProductAssocForm.FROM_DATE, '${nowTimestampString}');"><img src="/images/cal.gif" width="16" height="16" border="0" alt="Calendar"></a> ${uiLabelMap.CommonSetNowEmpty} </div> </td> </tr> </#if> <#else> <#assign isCreate = false> <#assign curProductAssocType = productAssoc.getRelatedOneCache("ProductAssocType")> <input type="hidden" name="UPDATE_MODE" value="UPDATE"> <input type="hidden" name="PRODUCT_ID" value="${productId?if_exists}"> <input type="hidden" name="PRODUCT_ID_TO" value="${productIdTo?if_exists}"> <input type="hidden" name="PRODUCT_ASSOC_TYPE_ID" value="${productAssocTypeId?if_exists}"> <input type="hidden" name="FROM_DATE" value="${fromDate?if_exists}"> <tr> <td align="right"><div class="tabletext">${uiLabelMap.ProductProductId}</div></td> <td> </td> <td><b>${productId?if_exists}</b> ${uiLabelMap.ProductRecreateAssociation}</td> </tr> <tr> <td align="right"><div class="tabletext">${uiLabelMap.ProductProductIdTo}</div></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -