📄 editcategoryrollup.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 David E. Jones (jonesde@ofbiz.org)
*@author Catherine Heintz (catherine.heintz@nereide.biz)
*@version $Revision: 1.8 $
*@since 2.1
-->
<#assign uiLabelMap = requestAttributes.uiLabelMap>
<#if hasPermission>
${pages.get("/category/CategoryTabBar.ftl")}
<div class="head1">${uiLabelMap.ProductRollup} <span class="head2"><#if productCategory?has_content>${productCategory.description?default("No Description")} </#if>[${uiLabelMap.CommonId}:${productCategoryId?if_exists}]</span></div>
<a href="<@ofbizUrl>/EditCategory</@ofbizUrl>" class="buttontext">[${uiLabelMap.ProductNewCategory}]</a>
<#if productCategoryId?has_content>
<a href="/ecommerce/control/category?category_id=${productCategoryId}" class="buttontext" target="_blank">[${uiLabelMap.ProductCategoryPage}]</a>
</#if>
<br>
<br>
<#if productCategoryId?has_content>
<p class="head2">${uiLabelMap.ProductCategoryRollupParentCategories}</p>
<table width="100%" border="1" cellpadding="2" cellspacing="0">
<tr>
<td><div class="tabletext"><b>${uiLabelMap.ProductParentCategoryId}</b></div></td>
<td><div class="tabletext"><b>${uiLabelMap.CommonFromDate}</b></div></td>
<td align="center"><div class="tabletext"><b>${uiLabelMap.ProductThruDateTimeSequence}</b></div></td>
<td><div class="tabletext"><b> </b></div></td>
</tr>
<#if currentProductCategoryRollups.size() != 0>
<#assign lineParent = 0>
<#list currentProductCategoryRollups as productCategoryRollup>
<#assign lineParent = lineParent + 1>
<#assign curCategory = productCategoryRollup.getRelatedOne("ParentProductCategory")>
<#assign hasntStarted = false>
<#if productCategoryRollup.fromDate?exists && nowTimestamp.before(productCategoryRollup.getTimestamp("fromDate"))><#assign hasntStarted = true></#if>
<#assign hasExpired = false>
<#if productCategoryRollup.thruDate?exists && nowTimestamp.after(productCategoryRollup.getTimestamp("thruDate"))><#assign hasExpired = true></#if>
<tr valign="middle">
<td><#if curCategory?has_content><a href="<@ofbizUrl>/EditCategory?productCategoryId=${curCategory.productCategoryId}</@ofbizUrl>" class="buttontext">${curCategory.description?if_exists} [${curCategory.productCategoryId}]</a></#if></td>
<td><div class="tabletext" <#if hasntStarted>style="color: red;"</#if>>${productCategoryRollup.fromDate}</div></td>
<td align="center">
<form method=POST action="<@ofbizUrl>/updateProductCategoryToCategory</@ofbizUrl>" name="lineParentForm${lineParent}">
<input type=hidden name="showProductCategoryId" value="${productCategoryRollup.productCategoryId}">
<input type=hidden name="productCategoryId" value="${productCategoryRollup.productCategoryId}">
<input type=hidden name="parentProductCategoryId" value="${productCategoryRollup.parentProductCategoryId}">
<input type=hidden name="fromDate" value="${productCategoryRollup.fromDate}">
<input type=text size="25" name="thruDate" value="${productCategoryRollup.thruDate?if_exists}" class="inputBox" <#if hasExpired>style="color: red"</#if>>
<a href="javascript:call_cal(document.lineParentForm${lineParent}.thruDate, null);"><img src="/images/cal.gif" width="16" height="16" border="0" alt="Calendar"></a>
<input type=text size="5" name="sequenceNum" value="${productCategoryRollup.sequenceNum?if_exists}" class="inputBox">
<input type="submit" value="${uiLabelMap.CommonUpdate}" style="font-size: x-small;">
</form>
</td>
<td>
<a href="<@ofbizUrl>/removeProductCategoryFromCategory?showProductCategoryId=${productCategoryId}&productCategoryId=${productCategoryRollup.productCategoryId}&parentProductCategoryId=${productCategoryRollup.parentProductCategoryId}&fromDate=${productCategoryRollup.fromDate}</@ofbizUrl>" class="buttontext">
[${uiLabelMap.CommonDelete}]</a>
</td>
</tr>
</#list>
</#if>
<#if currentProductCategoryRollups.size() == 0>
<tr valign="middle">
<td colspan="5"><DIV class="tabletext">${uiLabelMap.ProductNoParentCategoriesFound}.</DIV></td>
</tr>
</#if>
</table>
<br>
<form method="POST" action="<@ofbizUrl>/addProductCategoryToCategory</@ofbizUrl>" style="margin: 0;" name="addParentForm">
<input type="hidden" name="productCategoryId" value="${productCategoryId}">
<input type="hidden" name="showProductCategoryId" value="${productCategoryId}">
<div class="tabletext">${uiLabelMap.CommonAddA} <b>${uiLabelMap.ProductParent}</b> ${uiLabelMap.ProductCategorySelectCategoryAndEnterFromDate}:</div>
<select name="parentProductCategoryId" class="selectBox">
<#list productCategoryCol as curCategory>
<#if productCategoryId != curCategory.productCategoryId>
<option value="${curCategory.productCategoryId}">${curCategory.description?if_exists} [${curCategory.productCategoryId}]</option>
</#if>
</#list>
</select>
<input type=text size="25" name="fromDate" class="inputBox">
<a href="javascript:call_cal(document.addParentForm.fromDate, null);"><img src="/images/cal.gif" width="16" height="16" border="0" alt="Calendar"></a>
<input type="submit" value="${uiLabelMap.CommonAdd}">
</form>
<br>
<hr>
<br>
<p class="head2">${uiLabelMap.ProductCategoryRollupChildCategories}</p>
<table width="100%" border="1" cellpadding="2" cellspacing="0">
<tr>
<td><div class="tabletext"><b>${uiLabelMap.ProductChildCategoryId}</b></div></td>
<td><div class="tabletext"><b>${uiLabelMap.CommonFromDate}</b></div></td>
<td align="center"><div class="tabletext"><b>${uiLabelMap.ProductThruDateTimeSequence}</b></div></td>
<td><div class="tabletext"><b> </b></div></td>
</tr>
<#if parentProductCategoryRollups.size() != 0>
<#assign lineChild = 0>
<#list parentProductCategoryRollups as productCategoryRollup>
<#assign lineChild = lineChild + 1>
<#assign curCategory = productCategoryRollup.getRelatedOne("CurrentProductCategory")>
<#assign hasntStarted = false>
<#if productCategoryRollup.fromDate?exists && nowTimestamp.before(productCategoryRollup.getTimestamp("fromDate"))><#assign hasntStarted = true></#if>
<#assign hasExpired = false>
<#if productCategoryRollup.thruDate?exists && nowTimestamp.after(productCategoryRollup.getTimestamp("thruDate"))><#assign hasExpired = true></#if>
<tr valign="middle">
<td><#if curCategory?has_content><a href="<@ofbizUrl>/EditCategory?productCategoryId=${curCategory.productCategoryId}</@ofbizUrl>" class="buttontext">${curCategory.description?if_exists} [${curCategory.productCategoryId}]</a></#if>
<td><div class="tabletext" <#if hasntStarted>style="color: red"</#if>>${productCategoryRollup.fromDate}</div></td>
<td align="center">
<form method=POST action="<@ofbizUrl>/updateProductCategoryToCategory</@ofbizUrl>" name="lineChildForm${lineChild}">
<input type=hidden name="showProductCategoryId" value="${productCategoryId}">
<input type=hidden name="productCategoryId" value="${productCategoryRollup.productCategoryId}">
<input type=hidden name="parentProductCategoryId" value="${productCategoryRollup.parentProductCategoryId}">
<input type=hidden name="fromDate" value="${productCategoryRollup.fromDate}">
<input type=text size="25" name="thruDate" value="${productCategoryRollup.thruDate?if_exists}" class="inputBox" <#if hasExpired>style="color: red;"</#if>>
<a href="javascript:call_cal(document.lineChildForm${lineChild}.thruDate, null);"><img src="/images/cal.gif" width="16" height="16" border="0" alt="Calendar"></a>
<input type=text size="5" name="sequenceNum" value="${productCategoryRollup.sequenceNum?if_exists}" class="inputBox">
<input type="submit" value="${uiLabelMap.CommonUpdate}" style="font-size: x-small;">
</form>
</td>
<td>
<a href="<@ofbizUrl>/removeProductCategoryFromCategory?showProductCategoryId=${productCategoryId}&productCategoryId=${productCategoryRollup.productCategoryId}&parentProductCategoryId=${productCategoryRollup.parentProductCategoryId}&fromDate=${productCategoryRollup.fromDate}</@ofbizUrl>" class="buttontext">
[${uiLabelMap.CommonDelete}]</a>
</td>
</tr>
</#list>
</#if>
<#if parentProductCategoryRollups.size() == 0>
<tr valign="middle">
<td colspan="5"><div class="tabletext">${uiLabelMap.ProductNoChildCategoriesFound}.</div></td>
</tr>
</#if>
</table>
<br>
<form method="POST" action="<@ofbizUrl>/addProductCategoryToCategory</@ofbizUrl>" style="margin: 0;" name="addChildForm">
<input type="hidden" name="showProductCategoryId" value="${productCategoryId}">
<input type="hidden" name="parentProductCategoryId" value="${productCategoryId}">
<div class="tabletext">${uiLabelMap.CommonAddA} <b>${uiLabelMap.ProductChild}</b> ${uiLabelMap.ProductCategorySelectCategoryAndEnterFromDate}:</div>
<select name="productCategoryId" class="selectBox">
<#list productCategoryCol as curCategory>
<#if productCategoryId != curCategory.productCategoryId>
<option value="${curCategory.productCategoryId}">${curCategory.description?if_exists} [${curCategory.productCategoryId}]</option>
</#if>
</#list>
</select>
<input type=text size="25" name="fromDate" class="inputBox">
<a href="javascript:call_cal(document.addChildForm.fromDate, null);"><img src="/images/cal.gif" width="16" height="16" border="0" alt="Calendar"></a>
<input type="submit" value="${uiLabelMap.CommonAdd}">
</form>
</#if>
<#else>
<h3>${uiLabelMap.ProductCatalogViewPermissionError}</h3>
</#if>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -