📄 findproductpricerule.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 Andy Zeneski
*@author Catherine.Heintz@nereide.biz (migration to UiLabel)
*@version $Revision: 1.5 $
*@since 2.2
-->
<#assign uiLabelMap = requestAttributes.uiLabelMap>
<#if hasPermission>
<div class="head1">${uiLabelMap.ProductGlobalPriceRules}</div>
<a href="<@ofbizUrl>/EditProductPriceRules</@ofbizUrl>" class="buttontext">[${uiLabelMap.ProductCreateRule}]</a>
<#if activeOnly>
<a href="<@ofbizUrl>/FindProductPriceRules?activeOnly=false</@ofbizUrl>" class="buttontext">[${uiLabelMap.ProductActiveAndInactive}]</a>
<#else>
<a href="<@ofbizUrl>/FindProductPriceRules</@ofbizUrl>" class="buttontext">[${uiLabelMap.ProductActiveOnly}]</a>
</#if>
<br>
<br>
<#if productPriceRules?has_content>
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<td><div class="tabletext"><b>${uiLabelMap.ProductPriceRuleNameId}</b></div></td>
<td><div class="tabletext"><b>${uiLabelMap.ProductSaleRule}?</b></div></td>
<td><div class="tabletext"><b>${uiLabelMap.CommonFromDate}</b></div></td>
<td><div class="tabletext"><b>${uiLabelMap.CommonThruDate}</b></div></td>
<td><div class="tabletext"> </div></td>
</tr>
<#list productPriceRules as rule>
<tr>
<td><div class="tabletext"> <a href="<@ofbizUrl>/EditProductPriceRules?productPriceRuleId=${rule.productPriceRuleId}</@ofbizUrl>" class="buttontext">${rule.ruleName?if_exists} [${rule.productPriceRuleId}]</a></div></td>
<td><div class="tabletext"> ${rule.isSale?if_exists}</div></td>
<td>
<#assign hasntStarted = false>
<#if rule.fromDate?exists && Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp().before(rule.getTimestamp("fromDate"))><#assign hasntStarted = true></#if>
<div class="tabletext"<#if hasntStarted> style="color: red;"</#if>>
${rule.fromDate?if_exists}
</div>
</td>
<td>
<#assign hasExpired = false>
<#if rule.thruDate?exists && Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp().after(rule.getTimestamp("thruDate"))><#assign hasExpired = true></#if>
<div class="tabletext"<#if hasExpired> style="color: red;"</#if>>
${rule.thruDate?if_exists}
</div>
</td>
<td align="center">
<a href="<@ofbizUrl>/EditProductPriceRules?productPriceRuleId=${rule.productPriceRuleId}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonEdit}]</a>
</td>
</tr>
</#list>
</table>
<#else>
<h3>${uiLabelMap.ProductNoPriceRulesFound}.</h3>
</#if>
<br>
<form method="POST" action="<@ofbizUrl>/createProductPriceRule</@ofbizUrl>" style="margin: 0;">
<div class="head2">${uiLabelMap.ProductAddPriceRule}:</div>
<br>
${uiLabelMap.ProductName}: <input type=text size="30" class="inputBox" name="ruleName">
<input type="submit" class="smallSubmit" value="${uiLabelMap.CommonAdd}">
</form>
<br>
<#else>
<h3>${uiLabelMap.ProductCatalogViewPermissionError}</h3>
</#if>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -