<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/od-html.tld" prefix="odhtml" %> <%@ page import="com.officedepot.jops.type.CountryType" %> <%@ page import="com.officedepot.bsd.vendor.taylor.TaylorReturnAction" %> <%@ page import="com.officedepot.www.jops.service.inv.PageSkuInfo" %> <%@ page import="com.officedepot.web.catalog.CatalogConstants" %> <%@ page import="com.officedepot.web.drilldown.DDownConstants" %> <%@ page import="com.officedepot.www.jops.util.Constants" %> <%@ page import="com.officedepot.web.util.SkuDisplayHelper" %> <%@ page import="com.officedepot.web.util.EntityDisplayHelper" %> <%@ page import="com.officedepot.web.cart.CartUtils" %> <%@ page import="com.officedepot.jops.service.user.AccessControlList" %> <%@ page import="com.officedepot.jops.service.user.AccessOperationType" %> <% searchResultPage.moveFirst(); String lastSku="",firstSku="",bgColor=""; bgColor = "#FFFFFF"; boolean gray = false; boolean firstPass = true; SkuDisplayHelper objSkuDisplayHelper = new SkuDisplayHelper(); int currentIteration = 0; String tmpSortContract="0"; String sortContract="1"; //FIX need logic here to determine # of skus and whether or not to display first set of buttons %>
"/>" name="standardSkuList" id="standardSkuList" method="post">
<% if (request.getAttribute("compare.added.items.count") != null) { %> <% } if (request.getAttribute("compare.added.items.over.max") != null) { %> <% } %> " border="0" vspace="5">
<% while(searchResultPage.hasMoreElements()){ PageSkuInfo psi = searchResultPage.nextElement(); if(currentIteration == 0){ firstSku = psi.getSku(); } if (gray){ gray = false; bgColor = "#E4E4EC"; }else{ gray = true; bgColor = "#FFFFFF"; } %> <% if(psi.getPriceType().equalsIgnoreCase("c")){ tmpSortContract="Best Value Items"; }else{ tmpSortContract="Miscellaneous Items"; } if(searchsort.equalsIgnoreCase(CatalogConstants.SEARCH_LVL_SORT_CONTRACT) && !sortContract.equalsIgnoreCase(tmpSortContract)){ if(psi.getPriceType().equalsIgnoreCase("c")){ sortContract="Best Value Items"; }else{ sortContract="Miscellaneous Items"; } %> <%}%> <% int addCols = 0; if(contractprofile.isOutOfDelFlg()) { addCols ++; } if (!contractprofile.getShipToCountry().equals(CountryType.CANADA)){ addCols ++; }%> <%if(!contractprofile.getShipToCountry().equals(CountryType.CANADA)) {%> <%}%> <%if(contractprofile.isOutOfDelFlg()) {%> <%}%> <%if(psi.isOrderable()){%> <%if(!contractprofile.getShipToCountry().equals(CountryType.CANADA)) {%> <%}%> <%}else{%> <%}%> <%if(contractprofile.isOutOfDelFlg()) {%> <%}%> <% currentIteration++; if(!searchResultPage.hasMoreElements()){ lastSku = psi.getSku(); } } %> <%if(contractprofile.isOutOfDelFlg()) {%> <%}else{%> <%}%>
<% String entity_Link = psi.isUsingEntity("21") ? psi.getEntities().getFirstEntityByLocation("21").getEntity_link() : ""; String stringValOfBoolValidEntity = psi.isUsingEntity("21") ? String.valueOf(psi.getEntities().getFirstEntityByLocation("21").isValidEntity()) : "false";%> <%if(!contractprofile.getShipToCountry().equals(CountryType.CANADA) && !contractprofile.getCatalogId().equalsIgnoreCase("300") ) {%> <%}%>
<%=psi.getSku()%><%=psi.getDollarListPrice()%><%=psi.getDollarSellPrice()%> <%=CartUtils.decodeWeight(psi.getWeight())%><%=psi.getUMDescription()%> <%if(session.getAttribute("siteID").equals(com.officedepot.jops.type.SiteType.FUTURE_ORDERS)){%> <%}else if(!contractprofile.getShipToCountry().equals(CountryType.CANADA) && !contractprofile.getCatalogId().equalsIgnoreCase("300") ) { if (psi.getAvailableQuantity()> 0 && !psi.isImprintSku()) { %> <%=psi.getAvailableQuantity() %> <% } else {%> <%}%> <%}%>  
<%if (contractprofile.getAccessControlList().isEqual(AccessControlList.CUSTOMSTAMPS, contractprofile.getAccessControlList().CUSTOMSTAMPS_PERM.NONE) && Constants.isTaylorVendorID(psi.getVendorID())){%> This SKU is unavailable. Please contact support if you would like to order. <%} else if (psi.isRestrictedItem() && Constants.isTaylorVendorID(psi.getVendorID()) && contractprofile.getAccessControlList().isEqual(AccessControlList.SKURESTRICTION, contractprofile.getAccessControlList().SKURESTRICTION_PERM.REJECT)){%> This SKU is Restricted. <%} else {%> <%}%>

<%=SkuDisplayHelper.getSkuIconsHTML(psi, request, pageContext, contractprofile.getAccessControlList())%> <%if(!psi.isImprintSku() || (psi.isImprintSku() && contractprofile.getAccessControlList().allow(AccessControlList.CUSTOMSTAMPS, AccessOperationType.ALLOW))){%> <%=EntityDisplayHelper.getHTML(psi.getEntities(),request, response, "21", pageContext)%> <%=EntityDisplayHelper.getHTML(psi.getEntities(),request, response, "22", pageContext)%> <%}%> <% //if(!psi.getReturnMessageFromAOPS().equalsIgnoreCase("") //&& !contractprofile.getInventoryLocation().equalsIgnoreCase(Constants.BROWSING_INVENTORY_LOCATION)){ // out.println("
Note: " + psi.getReturnMessageFromAOPS()); //} %>
<% if(psi.isShowQuantityTextBox()){ %> <%if (psi.isRestrictedItem()) { %>     <% } else { %>     <%} } if (!Constants.isTaylorVendorID(psi.getVendorID()) && ! Constants.isNorwoodVendorID(psi.getVendorID())) {%> <%if (psi.isRestrictedItem()) { %> " border="0">   <%if (contractprofile.getAccessControlList().isEqual(AccessControlList.MYSHOPPINGLIST_LITE, AccessControlList.MYSHOPPINGLIST_LITE_PERM.NONE)) {%> " border="0"> <%}%> <%} else {%> " border="0">   <%if (contractprofile.getAccessControlList().isEqual(AccessControlList.MYSHOPPINGLIST_LITE, AccessControlList.MYSHOPPINGLIST_LITE_PERM.NONE)) {%> " border="0"> <%}%> <%}%> <%}else if (Constants.isNorwoodVendorID(psi.getVendorID())){%> <%String link = "/shop/configureProduct.do?sku=" + psi.getCustomerSku();%> <%if (psi.isRestrictedItem()) { %>   <%}else{%>   <%}%> <%}%>
" border="0" vspace="5">
<% int pageNum = new Integer(pageNumber).intValue(); String queryString_1 = "/pageNav.do?id="+id +"&level=" + level +"&" + CatalogConstants.FIELD_SEARCH_TYPE + "=" + searchtype +"&description=" + description +"&" + DDownConstants.LOCATION_INFO + "=" + locationInfo +"&" + CatalogConstants.FIELD_SELECTED_SORT + "=" + searchsort +"&" + CatalogConstants.FIELD_PAGE_NUMBER; String link = ""; String submit = ""; if (searchResultPage.hasPreviousResults()){ link = queryString_1 + "=" + (pageNum-1) + "&" + CatalogConstants.FIELD_DIRECTION + "=" + CatalogConstants.DIRECTION_BACKWARD + "&" + CatalogConstants.FIELD_SKU_MARKER + "=" + firstSku; submit = "return submitNavForm(" + (pageNum - 1) + ",'" + CatalogConstants.DIRECTION_BACKWARD + "','" + firstSku + "');"; %> < Previous <% } for(int inti = 0; inti < searchResultPage.getPageCount();inti++){ if (pageNumber.equalsIgnoreCase(new Integer(inti+1).toString())){ int x = (inti + 1); if(x == 1 && !searchResultPage.hasNextResults()){ out.println(" "); }else{ out.println(x); } }else{ link = queryString_1 + "=" + (inti+1) + "&" + CatalogConstants.FIELD_DIRECTION + "=" + CatalogConstants.DIRECTION_PAGE_SELECT + "&" + CatalogConstants.FIELD_SKU_MARKER + "=" + lastSku; submit = "return submitNavForm(" + (inti + 1) + ",'" + CatalogConstants.DIRECTION_PAGE_SELECT + "','" + lastSku + "');"; %> <%=" "+(inti+1)%> <%} } if (searchResultPage.hasNextResults()){ link = queryString_1 + "=" + (pageNum+1) + "&" + CatalogConstants.FIELD_DIRECTION + "=" + CatalogConstants.DIRECTION_FORWARD + "&" + CatalogConstants.FIELD_SKU_MARKER + "=" + lastSku; submit = "return submitNavForm(" + (pageNum + 1) + ",'" + CatalogConstants.DIRECTION_FORWARD + "','" + lastSku + "');"; %> Next > <%}%>