blob: 7d01eaf2c6f044e9c92de60eadd47ee7eae90511 [file] [log] [blame]
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
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
<h1>${uiLabelMap.ProductProductTaggedWith} "${parameters.SEARCH_STRING}"</h1>
<#if !productIds?has_content>
<#if productIds?has_content>
<#macro paginationControls>
<div class="product-prevnext">
<#-- Start Page Select Drop-Down -->
<#assign viewIndexMax = Static["java.lang.Math"].ceil((listSize)?double / viewSize?double)>
<select name="pageSelect" onchange="window.location=this[this.selectedIndex].value;">
<option value="#">${uiLabelMap.CommonPage} ${viewIndex?int + 1} ${uiLabelMap.CommonOf} ${viewIndexMax}</option>
<#list 1..viewIndexMax as curViewNum>
<option value="<@ofbizUrl>keywordsearch/~VIEW_SIZE=${viewSize}/~VIEW_INDEX=${curViewNum?int - 1}/~clearSearch=N</@ofbizUrl>">${uiLabelMap.CommonGotoPage} ${curViewNum}</option>
<#-- End Page Select Drop-Down -->
<#if (viewIndex?int > 0)>
<a href="<@ofbizUrl>keywordsearch/~VIEW_SIZE=${viewSize}/~VIEW_INDEX=${viewIndex - 1}/~clearSearch=N</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonPrevious}</a> |
<#if (listSize?int > 0)>
<span>${lowIndex+1} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize}</span>
<#if highIndex?int < listSize?int>
| <a href="<@ofbizUrl>keywordsearch/~VIEW_SIZE=${viewSize}/~VIEW_INDEX=${viewIndex+1}/~clearSearch=N</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonNext}</a>
<div class="productsummary-container">
<#list productIds as productId> <#-- note that there is no boundary range because that is being done before the list is put in the content -->
${setRequestAttribute("optProductId", productId)}
${setRequestAttribute("listIndex", productId_index)}