<% int groupSize = website.getGroupThumbSize(); parentImageName = website.getArticleMenu().getGroupImageName(vendorArticleId, groupSize); if (parentImageName.indexOf("/cache/") > -1) { parentImageName = parentImageName.substring(parentImageName.indexOf("/cache/")+1).trim(); } if (request.getRemoteHost().indexOf("192.168") > -1 || request.getRemoteHost().indexOf("127.0.0.1") > -1 || request.getRemoteHost().indexOf("localhost") > -1) { parentImageName = "cache/"+parentImageName.substring(parentImageName.indexOf("cache/")+6).trim(); } String shortDesc = ""+row.get(ArticleDetail.SHORT_DESCRIPTION); String fullDescription = ""+row.get(ArticleDetail.FULL_DESCRIPTION); if (shortDesc.length() > 5 && shortDesc.substring(0,5).indexOf(".") > -1) { shortDesc = shortDesc.substring(shortDesc.substring(0,5).indexOf(".")+1).trim(); } if (fullDescription.length() > 5 && fullDescription.substring(0,5).indexOf(".") > -1) { fullDescription = fullDescription.substring(fullDescription.substring(0,5).indexOf(".")+1).trim(); } String link = ArticleMenu.getPageName(website, shortDesc, false)+"?pid="+row.get(ArticleDetail.PARENT_VENDOR_ARTICLE_ID)+"&id="+row.get(ArticleDetail.VENDOR_ARTICLE_ID); if (website.getOptimisationMode() == WebSite.OPTIMISATION_MODE_COMPILE_SPEED) { link = website.getArticleMenu().getPageForVendorArticle(((Integer)row.get(ArticleDetail.VENDOR_ARTICLE_ID)).intValue()); } int fullGroupWidth = website.getNumStockItemsAcross(); String fullText = articleDetail.getFullText(vendorArticleId); if (!fullText.equals("") && !fullText.equals("null") && website.isShowTextUnderGroups()) { counter+=(fullGroupWidth-1); %>
<% if (new File(website.getWebSitePath(),parentImageName).exists()) { %> <%=shortDesc%> <% } else { %> " alt="<%=shortDesc%>" title="<%=shortDesc%>" class="stockgroupcell" /> <% } %> <%=shortDesc%>
<%=fullText%>
<%} else {%>
>
valign="middle">
<% if (new File(website.getWebSitePath(),parentImageName).exists()) { %> <%=shortDesc%> <% } else { %> " alt="<%=shortDesc%>" title="<%=shortDesc%>" class="noBorder" /> <% } %>
<%=shortDesc%>
<%} %>