| <#-- |
| 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. |
| --> |
| |
| |
| <form method="post" action="<@ofbizUrl>searchContent</@ofbizUrl>" name="searchQuery"> |
| <table border="0" cellpadding="2" cellspacing="0"> |
| |
| <tr> |
| <td width="20%" align="right"> |
| <span class="tableheadtext">${uiLabelMap.EcommerceEnterQueryParameters}</span> |
| </td> |
| <td> </td> |
| <td width="80%"> |
| <input type="text" class="inputBox" name="queryLine" size="60"/> |
| </td> |
| </tr> |
| <tr> |
| |
| |
| <!-- category form --> |
| <tr> |
| <table> |
| <tr> |
| <td align="right" valign="middle"> |
| <div>${uiLabelMap.ProductFeatures}:</div> |
| </td> |
| <td align="right" valign="middle"> |
| <div> |
| ${uiLabelMap.CommonAll} <input type="radio" name="any_or_all" value="all" checked="checked" /> |
| ${uiLabelMap.CommonAny} <input type="radio" name="any_or_all" value="any" /> |
| </div> |
| </td> |
| </tr> |
| <#list productFeatureTypeIdsOrdered as productFeatureTypeId> |
| <#assign findPftMap = Static["org.ofbiz.base.util.UtilMisc"].toMap("productFeatureTypeId", productFeatureTypeId)> |
| <#assign productFeatureType = delegator.findOne("ProductFeatureType", findPftMap, true)> |
| <#assign productFeatures = productFeaturesByTypeMap[productFeatureTypeId]> |
| <tr> |
| <td align="right" valign="middle"> |
| <div>${(productFeatureType.get("description",locale))!}:</div> |
| </td> |
| <td valign="middle"> |
| <div> |
| <select class="selectBox" name="pft_${productFeatureTypeId}"> |
| <option value="">- ${uiLabelMap.CommonSelectAny} -</option> |
| <#list productFeatures as productFeature> |
| <option value="${productFeature.productFeatureId}">${productFeature.description?default("No Description")} [${productFeature.productFeatureId}]</option> |
| </#list> |
| </select> |
| </div> |
| </td> |
| </tr> |
| </#list> |
| <#if searchConstraintStrings?has_content> |
| <tr> |
| <td align="right" valign="top"> |
| <div>${uiLabelMap.ProductLastSearch}:</div> |
| </td> |
| <td valign="top"> |
| <#list searchConstraintStrings as searchConstraintString> |
| <div> - ${searchConstraintString}</div> |
| </#list> |
| <div>${uiLabelMap.ProductSortedBy}: ${searchSortOrderString}</div> |
| <div> |
| ${uiLabelMap.ProductNewSearch}<input type="radio" name="clearSearch" value="Y" checked="checked" /> |
| ${uiLabelMap.CommonRefineSearch}<input type="radio" name="clearSearch" value="N" /> |
| </div> |
| </td> |
| </tr> |
| </#if> |
| <td width="20%" align="right"> |
| </td> |
| <td> </td> |
| <td width="80%" colspan="4"> |
| <input type="submit" class="smallSubmit" name="submitButton" value="${uiLabelMap.CommonQuery}"/> |
| </td> |
| |
| </tr> |
| </table> |
| </form> |
| |
| |
| |
| ${listWrapper.renderFormString()} |
| |
| <#macro listSiteIds contentId indentIndex=0> |
| <#assign dummy=Static["org.ofbiz.base.util.Debug"].logInfo("in listSiteIds, contentId:" + contentId,"")/> |
| <#assign dummy=Static["org.ofbiz.base.util.Debug"].logInfo("in listSiteIds, indentIndex:" + indentIndex,"")/> |
| <#local indent = ""/> |
| <#if 0 < indentIndex > |
| <#list 0..(indentIndex - 1) as idx> |
| <#local indent = indent + " "/> |
| </#list> |
| </#if> |
| <@loopSubContent contentId=contentId viewIndex=0 viewSize=9999 returnAfterPickWhen="1==1";> |
| <option value="${content.contentId?lower_case}">${indent}${content.description}</option> |
| <@listSiteIds contentId=content.contentId indentIndex=indentIndex + 1 /> |
| </@loopSubContent> |
| </#macro> |