<%@include file="inc/setRegion.jsp" %> <%@include file="inc/tag.inc" %> <% String pageFile = "support";// distinguish page set %> Ci Design - Downloads <%@include file="inc/head_tag.jsp"%> <%@include file="eu/euheader2.jsp"%> <%@include file="inc/searchForm.jsp"%>
<%@include file="inc/sidemenu/eusidemenu_support2.jsp"%>

Support Center / Downloads

<% //for (int i = 0; i < numIcon ; i ++) LinkedList iconTypes = DownloadUtil.getAllIcons(); for (ListIterator li = iconTypes.listIterator(); li.hasNext() ;) { Icon icon = (Icon) li.next(); %>
<%= icon.getDesc() %>
<% } %>

<% int tmpCnt = 0; //for (int i = 0; i < numCat ; i ++) LinkedList categories = DownloadUtil.getAllCategoriesWithDownloads(); for (ListIterator li = categories.listIterator(); li.hasNext() ;) { Category cat = (Category) li.next(); %> <%=cat.getCategory() %> <% if (tmpCnt == 2) { tmpCnt = 0; %>

<% } else if (tmpCnt < categories.size() - 1) { tmpCnt++; %> | <% } } %>
<% for (ListIterator li = categories.listIterator(); li.hasNext() ;) { Category cat = (Category) li.next(); %>
<%=cat.getCategory() %>
Model
File Type
Descriptions
<% LinkedList downloads = DownloadUtil.getDownloadsByCategory(cat.getId(),region); Object[] dwnlds = downloads.toArray(); int numOfDwn = downloads.size(); int dwnCnt = 0; //System.out.println("Cat " + cat.getId() + "\tNum of dwnld = " + numOfDwn +"\n"); // for (ListIterator dwnli = downloads.listIterator(); dwnli.hasNext() ;) while (dwnCnt < numOfDwn) { //Download download = (Download) dwnli.next(); Download download = (Download) dwnlds[dwnCnt++]; String curModel = "" ; // current model ProductDetail product = download.getProduct(); if (product == null) curModel = download.getCategory().getCategory(); else curModel = product.getModel(); // + " " + product.getProductID(); //System.out.println(curModel); %> <% if (curModel != null && dwnCnt < numOfDwn ) { download =(Download) dwnlds[dwnCnt]; String nextModel = ""; ProductDetail nextProduct = download.getProduct(); if (nextProduct == null) nextModel = download.getCategory().getCategory(); else nextModel = nextProduct.getModel(); while (dwnCnt < numOfDwn && curModel.equals(nextModel)) { //System.out.println(curModel + " == " + (String )tmpVModels.get(j)); %> <% dwnCnt++; if (dwnCnt < numOfDwn ) { download =(Download) dwnlds[dwnCnt]; nextProduct = download.getProduct(); if (nextProduct == null) nextModel = download.getCategory().getCategory(); else nextModel = nextProduct.getModel(); } } // while more downloads for this model } %>
<%= curModel %> <%=download.getDocType().getDesc() %>
  <%=download.getDocType().getDesc() %>
<% } %>

<% //System.out.println("cat " + (i+1) + " : " + j + " downloads"); } %>

<% tmpCnt = 0; for (ListIterator li = categories.listIterator(); li.hasNext() ;) { Category cat = (Category) li.next(); %> <%=cat.getCategory() %> <% if (tmpCnt == 2) { tmpCnt = 0; %>

<% } else if (tmpCnt < categories.size() - 1) { tmpCnt++; %> | <% } } %>
Back to top
<%@include file="rightmenu2.jsp"%> <%@include file="footer.jsp"%>