<%@ include file="../shared/colorList.jsp" %> <% int leftWidth = request.getParameter("lw") == null ? -1 : Integer.parseInt(request.getParameter("lw")); String tableSizeStr = request.getParameter("ts") == null ? null : request.getParameter("ts"); int tableSize = -1; if (tableSizeStr != null) { if (tableSizeStr.equals("100p")) tableSize = -1; else tableSize = Integer.parseInt(tableSizeStr); } int count = request.getParameter("c") == null ? 0 : Integer.parseInt(request.getParameter("c")); int realCount = request.getParameter("rc") == null ? count : Integer.parseInt(request.getParameter("rc"));; String bgColor = "#" + (String)yellowList.get(rand.nextInt(yellowList.size())); String centerColor = "#" + (String)yellowList.get(rand.nextInt(yellowList.size())); if (count == 0 || count >= 8 || leftWidth == -1 ) { leftWidth = rand.nextInt(300); int base = 2 * leftWidth + 10; tableSize = base + rand.nextInt(500); if (tableSize > 500) { tableSize = -1; } bgColor = "#" + (String)yellowList.get(rand.nextInt(yellowList.size())); centerColor = "#" + (String)yellowList.get(rand.nextInt(yellowList.size())); count = 0; } count++; realCount++; String url = "index.jsp?" + "c=" + count+ "&rc=" + realCount +"&ts=" + (tableSize== -1 ? "100p" : String.valueOf(tableSize) )+ "&lw=" + leftWidth; %> Color Stories : y e l l o w : Issue #1 leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF"> <%@ include file="../shared/header.jsp" %> <% if (realCount != 296 ) {%> <% if (realCount > 8) { int totalTables = realCount/8; int columns= totalTables%6 == 0 ? totalTables/6 : totalTables/6 + 1; //realCount%48 == 0 ? realCount/48 - 1 : realCount/48 + 1; int lastColumn = totalTables%6 == 0 ? 6 : totalTables%6; for (int j=0; j < columns; j++) {%> <%} }%>
<% for (int i = 0; i < ( j == columns - 1 ? lastColumn : 6); i++) {%>
> <% if (count != 1) {%>
<%} else {%> <%}%>
height="30" width="30">  height="30" width="30"><% if (count != 3) {%><%} else {%> <%}%>
valign="top" height="30">    width="30" valign="top" height="30"> 
height="30" width="30"><% if (count != 7) {%><%} else {%> <%}%> height="30" width="30">  height="30" width="30"><% if (count != 5) {%><%} else {%> <%}%>

<%}%>
" height="<%= tableSize == -1 ? "100%" : String.valueOf(tableSize)%>" border="0" cellspacing="0" cellpadding="1" bgcolor="#FFFFFF" align="right">
 
 
 
 
<%} else { %> <%@ include file="fin.jsp" %> <%}%>