(OFBIZ-10482) git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836905 13f79535-47bb-0310-9956-ffa450edef68
318 lines
18 KiB
Plaintext
318 lines
18 KiB
Plaintext
<#--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
<div class="screenlet">
|
|
<div class="screenlet-title-bar">
|
|
<h3>${uiLabelMap.ProductAdvancedSearchInCategory}</h3>
|
|
</div>
|
|
<div class="screenlet-body">
|
|
<form name="advtokeywordsearchform" method="post" action="<@ofbizUrl>keywordsearch</@ofbizUrl>" style="margin: 0;">
|
|
<input type="hidden" name="VIEW_SIZE" value="25"/>
|
|
<input type="hidden" name="PAGING" value="Y"/>
|
|
<input type="hidden" name="noConditionFind" value="Y"/>
|
|
<#if searchCategory?has_content>
|
|
<input type="hidden" name="SEARCH_CATEGORY_ID" value="${searchCategoryId!}"/>
|
|
</#if>
|
|
<table cellspacing="0" class="basic-table">
|
|
<#if searchCategory?has_content>
|
|
<tr>
|
|
<td class="label" align="right" valign="middle">
|
|
${uiLabelMap.ProductCategory}:
|
|
</td>
|
|
<td valign="middle">
|
|
<div>
|
|
<b>"${(searchCategory.description)!}" [${(searchCategory.productCategoryId)!}]</b> ${uiLabelMap.ProductIncludeSubCategories}
|
|
<label>${uiLabelMap.CommonYes}<input type="radio" name="SEARCH_SUB_CATEGORIES" value="Y" checked="checked" /></label>
|
|
<label>${uiLabelMap.CommonNo}<input type="radio" name="SEARCH_SUB_CATEGORIES" value="N"/></label>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<#else>
|
|
<tr>
|
|
<td class="label" align="right" valign="top">
|
|
${uiLabelMap.ProductCatalog}:
|
|
</td>
|
|
<td valign="middle">
|
|
<div>
|
|
<select name="SEARCH_CATALOG_ID">
|
|
<option value="">- ${uiLabelMap.ProductAnyCatalog} -</option>
|
|
<#list prodCatalogs as prodCatalog>
|
|
<#assign displayDesc = prodCatalog.catalogName?default("${uiLabelMap.ProductNoDescription}")>
|
|
<#if 18 < displayDesc?length>
|
|
<#assign displayDesc = displayDesc[0..15] + "...">
|
|
</#if>
|
|
<option value="${prodCatalog.prodCatalogId}">${displayDesc} [${prodCatalog.prodCatalogId}]</option>
|
|
</#list>
|
|
</select>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label" align="right" valign="top">
|
|
${uiLabelMap.ProductCategory}:
|
|
</td>
|
|
<td valign="middle">
|
|
<div>
|
|
<@htmlTemplate.lookupField value="${requestParameters.SEARCH_CATEGORY_ID!}" formName="advtokeywordsearchform" name="SEARCH_CATEGORY_ID" id="SEARCH_CATEGORY_ID" fieldFormName="LookupProductCategory"/>
|
|
${uiLabelMap.ProductIncludeSubCategories}
|
|
<label>${uiLabelMap.CommonYes}<input type="radio" name="SEARCH_SUB_CATEGORIES" value="Y" checked="checked"/></label>
|
|
<label>${uiLabelMap.CommonNo}<input type="radio" name="SEARCH_SUB_CATEGORIES" value="N"/></label>
|
|
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_CATEGORY_EXC" value="" checked="checked"/></label>
|
|
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_CATEGORY_EXC" value="Y"/></label>
|
|
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_CATEGORY_EXC" value="N"/></label>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</#if>
|
|
<tr>
|
|
<td class="label" align="right" valign="top">
|
|
${uiLabelMap.ProductProductName}:
|
|
</td>
|
|
<td valign="middle">
|
|
<div>
|
|
<input type="text" name="SEARCH_PRODUCT_NAME" size="20" value="${requestParameters.SEARCH_PRODUCT_NAME!}"/>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label" align="right" valign="top">
|
|
${uiLabelMap.ProductInternalName}:
|
|
</td>
|
|
<td valign="middle">
|
|
<div>
|
|
<input type="text" name="SEARCH_INTERNAL_PROD_NAME" size="20" value="${requestParameters.SEARCH_INTERNAL_PROD_NAME!}"/>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label" align="right" valign="top">
|
|
${uiLabelMap.ProductKeywords}:
|
|
</td>
|
|
<td valign="middle">
|
|
<div>
|
|
<input type="text" name="SEARCH_STRING" size="40" value="${requestParameters.SEARCH_STRING!}"/>
|
|
<label>${uiLabelMap.CommonAny}<input type="radio" name="SEARCH_OPERATOR" value="OR" <#if "OR" == searchOperator>checked="checked"</#if>/></label>
|
|
<label>${uiLabelMap.CommonAll}<input type="radio" name="SEARCH_OPERATOR" value="AND" <#if "AND" == searchOperator>checked="checked"</#if>/></label>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label" align="right" valign="top">
|
|
${uiLabelMap.ProductFeatureCategory} ${uiLabelMap.CommonIds}:
|
|
</td>
|
|
<td valign="middle">
|
|
<div>
|
|
<input type="text" name="SEARCH_PROD_FEAT_CAT1" size="15" value="${requestParameters.SEARCH_PROD_FEAT_CAT1!}"/>
|
|
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC1" value="" checked="checked"/></label>
|
|
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC1" value="Y"/></label>
|
|
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC1" value="N"/></label>
|
|
</div>
|
|
<div>
|
|
<input type="text" name="SEARCH_PROD_FEAT_CAT2" size="15" value="${requestParameters.SEARCH_PROD_FEAT_CAT2!}"/>
|
|
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC2" value="" checked="checked"/></label>
|
|
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC2" value="Y"/></label>
|
|
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC2" value="N"/></label>
|
|
</div>
|
|
<div>
|
|
<input type="text" name="SEARCH_PROD_FEAT_CAT3" size="15" value="${requestParameters.SEARCH_PROD_FEAT_CAT3!}"/>
|
|
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC3" value="" checked="checked"/></label>
|
|
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC3" value="Y"/></label>
|
|
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC3" value="N"/></label>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label" align="right" valign="top">
|
|
${uiLabelMap.ProductFeatureGroup} ${uiLabelMap.CommonIds}:
|
|
</td>
|
|
<td valign="middle">
|
|
<div>
|
|
<input type="text" name="SEARCH_PROD_FEAT_GRP1" size="15" value="${requestParameters.SEARCH_PROD_FEAT_GRP1!}"/>
|
|
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC1" value="" checked="checked"/></label>
|
|
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC1" value="Y"/></label>
|
|
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC1" value="N"/></label>
|
|
</div>
|
|
<div>
|
|
<input type="text" name="SEARCH_PROD_FEAT_GRP2" size="15" value="${requestParameters.SEARCH_PROD_FEAT_GRP2!}"/>
|
|
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC2" value="" checked="checked"/></label>
|
|
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC2" value="Y"/></label>
|
|
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC2" value="N"/></label>
|
|
</div>
|
|
<div>
|
|
<input type="text" name="SEARCH_PROD_FEAT_GRP3" size="15" value="${requestParameters.SEARCH_PROD_FEAT_GRP3!}"/>
|
|
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC3" value="" checked="checked"/></label>
|
|
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC3" value="Y"/></label>
|
|
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC3" value="N"/></label>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="label" align="right" valign="top">
|
|
${uiLabelMap.ProductFeatures} ${uiLabelMap.CommonIds}:
|
|
</td>
|
|
<td valign="middle">
|
|
<div>
|
|
<input type="text" name="SEARCH_FEAT1" size="15" value="${requestParameters.SEARCH_FEAT1!}"/>
|
|
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_FEAT_EXC1" value="" checked="checked"/></label>
|
|
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_FEAT_EXC1" value="Y"/></label>
|
|
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_FEAT_EXC1" value="N"/></label>
|
|
</div>
|
|
<div>
|
|
<input type="text" name="SEARCH_FEAT2" size="15" value="${requestParameters.SEARCH_FEAT2!}"/>
|
|
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_FEAT_EXC2" value="" checked="checked"/></label>
|
|
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_FEAT_EXC2" value="Y"/></label>
|
|
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_FEAT_EXC2" value="N"/></label>
|
|
</div>
|
|
<div>
|
|
<input type="text" name="SEARCH_FEAT3" size="15" value="${requestParameters.SEARCH_FEAT3!}"/>
|
|
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_FEAT_EXC3" value="" checked="checked"/></label>
|
|
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_FEAT_EXC3" value="Y"/></label>
|
|
<label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_FEAT_EXC3" value="N"/></label>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label" align="right" valign="top">
|
|
${uiLabelMap.ProductListPriceRange}:
|
|
</td>
|
|
<td valign="middle">
|
|
<div>
|
|
<input type="text" name="LIST_PRICE_LOW" size="8" value="${requestParameters.LIST_PRICE_LOW!}"/>
|
|
<input type="text" name="LIST_PRICE_HIGH" size="8" value="${requestParameters.LIST_PRICE_HIGH!}"/>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<#list productFeatureTypeIdsOrdered as productFeatureTypeId>
|
|
<#assign findPftMap = Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productFeatureTypeId", productFeatureTypeId)>
|
|
<#assign productFeatureType = delegator.findOne("ProductFeatureType", findPftMap, true)>
|
|
<#assign productFeatures = productFeaturesByTypeMap[productFeatureTypeId]>
|
|
<tr>
|
|
<td class="label" align="right" valign="middle">
|
|
${(productFeatureType.get("description",locale))!}:
|
|
</td>
|
|
<td valign="middle">
|
|
<div>
|
|
<select name="pft_${productFeatureTypeId}">
|
|
<option value="">- ${uiLabelMap.CommonSelectAny} -</option>
|
|
<#list productFeatures as productFeature>
|
|
<option value="${productFeature.productFeatureId}">${productFeature.description?default("${uiLabelMap.ProductNoDescription}")} [${productFeature.productFeatureId}]</option>
|
|
</#list>
|
|
</select>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</#list>
|
|
<tr>
|
|
<td class="label" align="right" valign="middle">
|
|
${uiLabelMap.ProductSupplier}:
|
|
</td>
|
|
<td valign="middle">
|
|
<div>
|
|
<select name="SEARCH_SUPPLIER_ID">
|
|
<option value="">- ${uiLabelMap.CommonSelectAny} -</option>
|
|
<#list supplerPartyRoleAndPartyDetails as supplerPartyRoleAndPartyDetail>
|
|
<option value="${supplerPartyRoleAndPartyDetail.partyId}">${supplerPartyRoleAndPartyDetail.groupName!} ${supplerPartyRoleAndPartyDetail.firstName!} ${supplerPartyRoleAndPartyDetail.lastName!} [${supplerPartyRoleAndPartyDetail.partyId}]</option>
|
|
</#list>
|
|
</select>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label" align="right" valign="middle">
|
|
${uiLabelMap.CommonSortedBy}:
|
|
</td>
|
|
<td valign="middle">
|
|
<div>
|
|
<select name="sortOrder">
|
|
<option value="SortKeywordRelevancy">${uiLabelMap.ProductKeywordRelevancy}</option>
|
|
<option value="SortProductField:productName">${uiLabelMap.ProductProductName}</option>
|
|
<option value="SortProductField:internalName">${uiLabelMap.ProductInternalName}</option>
|
|
<option value="SortProductField:totalQuantityOrdered">${uiLabelMap.ProductPopularityByOrders}</option>
|
|
<option value="SortProductField:totalTimesViewed">${uiLabelMap.ProductPopularityByViews}</option>
|
|
<option value="SortProductField:averageCustomerRating">${uiLabelMap.ProductCustomerRating}</option>
|
|
<option value="SortProductPrice:LIST_PRICE">${uiLabelMap.ProductListPrice}</option>
|
|
<option value="SortProductPrice:DEFAULT_PRICE">${uiLabelMap.ProductDefaultPrice}</option>
|
|
<option value="SortProductPrice:AVERAGE_COST">${uiLabelMap.ProductAverageCost}</option>
|
|
<option value="SortProductPrice:MINIMUM_PRICE">${uiLabelMap.ProductMinimumPrice}</option>
|
|
<option value="SortProductPrice:MAXIMUM_PRICE">${uiLabelMap.ProductMaximumPrice}</option>
|
|
</select>
|
|
<label>${uiLabelMap.ProductLowToHigh}<input type="radio" name="sortAscending" value="Y" checked="checked" /></label>
|
|
<label>${uiLabelMap.ProductHighToLow}<input type="radio" name="sortAscending" value="N"/></label>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label" align="right" valign="middle">
|
|
${uiLabelMap.ProductPrioritizeProductsInCategory}:
|
|
</td>
|
|
<td valign="middle">
|
|
<@htmlTemplate.lookupField value="${requestParameters.PRIORITIZE_CATEGORY_ID!}" formName="advtokeywordsearchform" name="PRIORITIZE_CATEGORY_ID" id="PRIORITIZE_CATEGORY_ID" fieldFormName="LookupProductCategory"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">
|
|
${uiLabelMap.ProductGoodIdentificationType}:
|
|
</td>
|
|
<td>
|
|
<select name="SEARCH_GOOD_IDENTIFICATION_TYPE">
|
|
<option value="">- ${uiLabelMap.CommonSelectAny} -</option>
|
|
<#list goodIdentificationTypes as goodIdentificationType>
|
|
<option value="${goodIdentificationType.goodIdentificationTypeId}">${goodIdentificationType.get("description")!}</option>
|
|
</#list>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">
|
|
${uiLabelMap.ProductGoodIdentificationValue}:
|
|
</td>
|
|
<td>
|
|
<input type="text" name="SEARCH_GOOD_IDENTIFICATION_VALUE" size="60" maxlength="60" value="${requestParameters.SEARCH_GOOD_IDENTIFICATION_VALUE!}"/>
|
|
<label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_GOOD_IDENTIFICATION_INCL" value="Y" checked="checked"/></label>
|
|
<label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_GOOD_IDENTIFICATION_INCL" value="N"/></label>
|
|
</td>
|
|
</tr>
|
|
<#if searchConstraintStrings?has_content>
|
|
<tr>
|
|
<td align="right" valign="top" class="label">
|
|
${uiLabelMap.ProductLastSearch}
|
|
</td>
|
|
<td valign="top">
|
|
<#list searchConstraintStrings as searchConstraintString>
|
|
<div> - ${searchConstraintString}</div>
|
|
</#list>
|
|
<span class="label">${uiLabelMap.CommonSortedBy}:</span>${searchSortOrderString}
|
|
<div>
|
|
<label>${uiLabelMap.ProductNewSearch}<input type="radio" name="clearSearch" value="Y" checked="checked"/></label>
|
|
<label>${uiLabelMap.CommonRefineSearch}<input type="radio" name="clearSearch" value="N"/></label>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</#if>
|
|
<tr>
|
|
<td align="center" colspan="2">
|
|
<hr />
|
|
<input type="submit" value="${uiLabelMap.CommonFind}">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</div>
|