📄 editshoppinglist.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 Andy Zeneski (jaz@ofbiz.org) *@author David E. Jones (jonesde@ofbiz.org) *@version $Rev: 5927 $ *@since 2.1.1--><script> <!-- function to add extra info for Timestamp format --> function TimestampSubmit(obj) { if (obj.elements["reservStartStr"].value.length == 10) { obj.elements["reservStart"].value = obj.elements["reservStartStr"].value + " 00:00:00.000000000"; } else { obj.elements["reservStart"].value = obj.elements["reservStartStr"].value; } obj.submit(); }</script><div class="screenlet"> <div class="screenlet-header"> <div style="float: right;"> <a href="<@ofbizUrl>createEmptyShoppingList?productStoreId=${productStoreId}</@ofbizUrl>" class="submenutextright">${uiLabelMap.CommonCreateNew}</a> </div> <div class="boxhead"> ${uiLabelMap.EcommerceShoppingLists}</div> </div> <div class="screenlet-body"> <#if shoppingLists?has_content> <form name="selectShoppingList" method="post" action="<@ofbizUrl>editShoppingList</@ofbizUrl>"> <select name="shoppingListId" class="selectBox"> <#if shoppingList?has_content> <option value="${shoppingList.shoppingListId}">${shoppingList.listName}</option> <option value="${shoppingList.shoppingListId}">--</option> </#if> <#list shoppingLists as list> <option value="${list.shoppingListId}">${list.listName}</option> </#list> </select> <a href="javascript:document.selectShoppingList.submit();" class="buttontext">[${uiLabelMap.CommonEdit}]</a> </form> <#else> <div class="tabletext">${uiLabelMap.EcommerceNoShoppingListsCreate}.</div> </#if> </div></div><#if shoppingList?has_content> <#if canView><div class="screenlet"> <div class="screenlet-header"> <div style="float: right;"> <a href="<@ofbizUrl>createCustRequestFromShoppingList?shoppingListId=${shoppingList.shoppingListId}</@ofbizUrl>" class="submenutext">${uiLabelMap.OrderCreateCustRequestFromShoppingList}</a> <a href="<@ofbizUrl>createQuoteFromShoppingList?shoppingListId=${shoppingList.shoppingListId}</@ofbizUrl>" class="submenutext">${uiLabelMap.OrderCreateQuoteFromShoppingList}</a> <a href="javascript:document.updateList.submit();" class="submenutextright">${uiLabelMap.CommonSave}</a> </div> <div class="boxhead"> ${uiLabelMap.EcommerceShoppingListDetail} - ${shoppingList.listName}</div> </div> <div class="screenlet-body"> <form name="updateList" method="post" action="<@ofbizUrl>updateShoppingList</@ofbizUrl>"> <input type="hidden" class="inputBox" name="shoppingListId" value="${shoppingList.shoppingListId}"/> <input type="hidden" class="inputBox" name="partyId" value="${shoppingList.partyId?if_exists}"/> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><div class="tableheadtext">${uiLabelMap.EcommerceListName}</div></td> <td><input type="text" class="inputBox" size="25" name="listName" value="${shoppingList.listName}"> </tr> <tr> <td><div class="tableheadtext">${uiLabelMap.CommonDescription}</div></td> <td><input type="text" class="inputBox" size="70" name="description" value="${shoppingList.description?if_exists}"> </tr> <tr> <td><div class="tableheadtext">${uiLabelMap.EcommerceListType}</div></td> <td> <select name="shoppingListTypeId" class="selectBox"> <#if shoppingListType?exists> <option value="${shoppingListType.shoppingListTypeId}">${shoppingListType.description?default(shoppingListType.shoppingListTypeId)}</option> <option value="${shoppingListType.shoppingListTypeId}">--</option> </#if> <#list shoppingListTypes as shoppingListType> <option value="${shoppingListType.shoppingListTypeId}">${shoppingListType.description?default(shoppingListType.shoppingListTypeId)}</option> </#list> </select> </td> </tr> <tr> <td><div class="tableheadtext">${uiLabelMap.EcommercePublic}?</div></td> <td> <select name="isPublic" class="selectBox"> <option>${shoppingList.isPublic}</option> <option value="${shoppingList.isPublic}">--</option> <option>${uiLabelMap.CommonY}</option> <option>N</option> </select> </td> </tr> <tr> <td><div class="tableheadtext">${uiLabelMap.EcommerceActive}?</div></td> <td> <select name="isActive" class="selectBox"> <option>${shoppingList.isActive}</option> <option value="${shoppingList.isActive}">--</option> <option>${uiLabelMap.CommonY}</option> <option>N</option> </select> </td> </tr> <tr> <td><div class="tableheadtext">${uiLabelMap.EcommerceParentList}</div></td> <td> <select name="parentShoppingListId" class="selectBox"> <#if parentShoppingList?exists> <option value="${parentShoppingList.shoppingListId}">${parentShoppingList.listName?default(parentShoppingList.shoppingListId)}</option> </#if> <option value="">${uiLabelMap.EcommerceNoParent}</option> <#list allShoppingLists as newParShoppingList> <option value="${newParShoppingList.shoppingListId}">${newParShoppingList.listName?default(newParShoppingList.shoppingListId)}</option> </#list> </select> <#if parentShoppingList?exists> <a href="<@ofbizUrl>editShoppingList?shoppingListId=${parentShoppingList.shoppingListId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonGotoParent} (${parentShoppingList.listName?default(parentShoppingList.shoppingListId)})</a> </#if> </td> </tr> <tr> <td><div class="tableheadtext"> </div></td> <td align="left"> <a href="javascript:document.updateList.submit();" class="buttontext">[${uiLabelMap.CommonSave}]</a> </td> </tr> </table> </form> </div></div><#if shoppingListType?exists && shoppingListType.shoppingListTypeId == "SLT_AUTO_REODR"> <#assign nowTimestamp = Static["org.ofbiz.base.util.UtilDateTime"].monthBegin()><div class="screenlet"> <div class="screenlet-header"> <div style="float: right;"> <a href="javascript:document.reorderinfo.submit();" class="submenutextright">${uiLabelMap.CommonSave}</a> </div> <div class="boxhead"> ${uiLabelMap.EcommerceShoppingListReorder} - ${shoppingList.listName} <#if shoppingList.isActive?default("N") == "N"> <font color="yellow">[${uiLabelMap.OrderNotActive}]</font> </#if> </div> </div> <div class="screenlet-body"> <form name="reorderinfo" method="post" action="<@ofbizUrl>updateShoppingList</@ofbizUrl>"> <input type="hidden" name="shoppingListId" value="${shoppingList.shoppingListId}"/> <table width="100%" cellspacing="0" cellpadding="1" border="0"> <tr> <td><div class="tableheadtext">${uiLabelMap.EcommerceRecurrence}</div></td> <td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -