%@ 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; %>
<%
for (int i = 0; i < ( j == columns - 1 ? lastColumn : 6); i++)
{%>
<%}%> |
<%}
}%>
|