📄 editshoppinglist.ftl
字号:
<#--
* Copyright (c) 2003 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 $Revision: 1.6 $
*@since 2.1.1
-->
<#assign uiLabelMap = requestAttributes.uiLabelMap>
<TABLE border=0 width='100%' cellspacing='0' cellpadding='0' class='boxoutside'>
<TR>
<TD width='100%'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxtop'>
<tr>
<td valign="middle" align="left">
<div class="boxhead"> ${uiLabelMap.EcommerceShoppingLists}</div>
</td>
<td valign="middle" align="right">
<a href="<@ofbizUrl>/createEmptyShoppingList</@ofbizUrl>" class="submenutextright">${uiLabelMap.CommonCreateNew}</a>
</td>
</tr>
</table>
</TD>
</TR>
<TR>
<TD width='100%'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
<tr>
<td>
<#if shoppingLists?has_content>
<form name="selectShoppingList" method="post" action="<@ofbizUrl>/editShoppingList</@ofbizUrl>">
<select name="shoppingListId" class="selectBox">
<#-- it is actually somewhat confusing to show the current list here, without that it is much cleaner, especially with heirarchical lists
<#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>
</td>
</tr>
</table>
</TD>
</TR>
</TABLE>
<br/>
<#if shoppingList?has_content>
<#if canView>
<TABLE border=0 width='100%' cellspacing='0' cellpadding='0' class='boxoutside'>
<TR>
<TD width='100%'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxtop'>
<tr>
<td valign="middle" align="left">
<div class="boxhead"> ${uiLabelMap.EcommerceShoppingListDetail} - ${shoppingList.listName}</div>
</td>
<td valign="middle" align="right">
<a href="javascript:document.updateList.submit();" class="submenutextright">${uiLabelMap.CommonSave}</a>
</td>
</tr>
</table>
</TD>
</TR>
<TR>
<TD width='100%'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
<tr>
<td>
<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>Y</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>
</td>
</tr>
</table>
</TD>
</TR>
</TABLE>
<#if childShoppingListDatas?has_content>
<br/>
<TABLE border=0 width='100%' cellspacing='0' cellpadding='0' class='boxoutside'>
<TR>
<TD width='100%'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxtop'>
<tr>
<td valign="middle" align="left">
<div class="boxhead"> ${uiLabelMap.EcommerceChildShoppingList} - ${shoppingList.listName}</div>
</td>
<td valign="middle" align="right">
<a href="<@ofbizUrl>/addListToCart?shoppingListId=${shoppingList.shoppingListId}&includeChild=yes</@ofbizUrl>" class="submenutextright">${uiLabelMap.EcommerceAddChildListsToCart}</a>
</td>
</tr>
</table>
</TD>
</TR>
<TR>
<TD width='100%'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
<tr>
<td>
<table width='100%' cellspacing="0" cellpadding="1" border="0">
<TR>
<TD NOWRAP><div class='tabletext'><b>${uiLabelMap.EcommerceListName}</b></div></TD>
<TD NOWRAP align="right"><div class='tabletext'><b>${uiLabelMap.EcommerceTotalPrice}</b></div></TD>
<td> </td>
<td> </td>
</TR>
<#list childShoppingListDatas as childShoppingListData>
<#assign childShoppingList = childShoppingListData.childShoppingList>
<#assign totalPrice = childShoppingListData.totalPrice>
<tr>
<td nowrap align="left">
<a href="<@ofbizUrl>/editShoppingList?shoppingListId=${childShoppingList.shoppingListId}</@ofbizUrl>" class="buttontext">${childShoppingList.listName?default(childShoppingList.shoppingListId)}</a>
</td>
<td nowrap align="right">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -