<#-- 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. --> <#macro paginationControls> <#local viewIndexMax = Static["java.lang.Math"].ceil((listSize)?double / viewSize?double)/> <#if (viewIndexMax?int > 0)>
<#-- End Page Select Drop-Down --> <#if (viewIndex?int > 0)> ${uiLabelMap.CommonPrevious} | <#if ((listSize?int - viewSize?int) > 0)> ${lowIndex} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize} <#if highIndex?int < listSize?int> | ${uiLabelMap.CommonNext}
<#if productCategory??> <#assign categoryName = categoryContentWrapper.get("CATEGORY_NAME", "html")!/> <#assign categoryDescription = categoryContentWrapper.get("DESCRIPTION", "html")!/> <#if categoryName?has_content>

${categoryName} <#if categoryDescription?has_content>${(categoryDescription)!}

<#if hasQuantities??>
<#if requestParameters.product_id??> <#if requestParameters.category_id??> <#if requestParameters.VIEW_INDEX??> <#if requestParameters.SEARCH_STRING??> <#if requestParameters.SEARCH_CATEGORY_ID??> ${uiLabelMap.ProductAddProductsUsingDefaultQuantities}
<#if "Y" == searchInCategory?default("Y")> ${uiLabelMap.ProductSearchInCategory} <#assign longDescription = categoryContentWrapper.get("LONG_DESCRIPTION", "html")!/> <#assign categoryImageUrl = categoryContentWrapper.get("CATEGORY_IMAGE_URL", "url")!/> <#if categoryImageUrl?string?has_content || longDescription?has_content>
<#if categoryImageUrl?string?has_content> <#assign height=100/> <#if longDescription?has_content> ${longDescription}
<#if productCategoryLinkScreen?has_content && productCategoryLinks?has_content> <#if productCategoryMembers?has_content> <#-- Pagination --> <#if paginateEcommerceStyle??> <@paginationControls/> <#else> <#assign commonUrl = "category?category_id="+ (parameters.category_id!) + "&"/> <#assign messageMap = Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("lowCount", lowIndex, "highCount", highIndex, "total", listSize)/> <#assign commonDisplaying = Static["org.apache.ofbiz.base.util.UtilProperties"].getMessage("CommonUiLabels", "CommonDisplaying", messageMap, locale)/> <@htmlTemplate.nextPrev commonUrl=commonUrl ajaxEnabled=false javaScriptEnabled=false paginateStyle="nav-pager" paginateFirstStyle="nav-first" viewIndex=viewIndex highIndex=highIndex listSize=listSize viewSize=viewSize ajaxFirstUrl="" firstUrl="" paginateFirstLabel="" paginatePreviousStyle="nav-previous" ajaxPreviousUrl="" previousUrl="" paginatePreviousLabel="" pageLabel="" ajaxSelectUrl="" selectUrl="" ajaxSelectSizeUrl="" selectSizeUrl="" commonDisplaying=commonDisplaying paginateNextStyle="nav-next" ajaxNextUrl="" nextUrl="" paginateNextLabel="" paginateLastStyle="nav-last" ajaxLastUrl="" lastUrl="" paginateLastLabel="" paginateViewSizeLabel="" /> <#assign numCol = numCol?default(1)/> <#assign numCol = numCol?number/>
style="position: relative; margin-top: ${height}px;" class="productsummary-container<#if (numCol?int > 1)> matrix">
<#list productCategoryMembers as productCategoryMember> <#if (numCol?int == 1)> ${setRequestAttribute("optProductId", productCategoryMember.productId)} ${setRequestAttribute("productCategoryMember", productCategoryMember)} ${setRequestAttribute("listIndex", productCategoryMember_index)} ${screens.render(productsummaryScreen)} <#else> ${setRequestAttribute("optProductId", productCategoryMember.productId)} ${setRequestAttribute("productCategoryMember", productCategoryMember)} ${setRequestAttribute("listIndex", productCategoryMember_index)} ${screens.render(productsummaryScreen)}
<#if (numCol?int > 1)>
<#if paginateEcommerceStyle??> <@paginationControls/> <#else>
${uiLabelMap.ProductNoProductsInThisCategory}