anchor.diff:  		out.println("<th>Count</th>");
   		out.println("</tr>");
   		
  -		//Check what the current grouping is and do not show rows that do not match that grouping
  +		//Print out the result table
   		while(rset.next())
   		{
  -			if(gUser != null){
  -				if ((gUser.equals("cuser")) && !(rset.getString(1) != null)){
  -					continue;
  -				}
  -			}
  -			if(gSubject != null){
  -				if ((gSubject.equals("csubject")) && !(rset.getString(2) != null)){
  -					continue;
  -				}
  -			}
  -			if(gDate != null){
  -				if ((gDate.equals("cdate")) && !(rset.getString(3) != null)){
  -					continue;
  -				}
  -			}
  +			//DO NOT BELIEVE THIS IS VALID ANYMORE, LEAVE IN CASE WE NEED TO RESTORE
  +// 			if(gUser != null){
  +// 				if ((gUser.equals("cuser")) && !(rset.getString(1) != null)){
  +// 					continue;
  +// 				}
  +// 			}
  +// 			if(gSubject != null){
  +// 				if ((gSubject.equals("csubject")) && !(rset.getString(2) != null)){
  +// 					continue;
  +// 				}
  +// 			}
  +// 			if(gDate != null){
  +// 				if ((gDate.equals("cdate")) && !(rset.getString(3) != null)){
  +// 					continue;
  +// 				}
  +// 			}
   			out.println("<tr>");
   			out.println("<td>"); 
   			out.println(rset.getString(1));
  
positive.code: 	<body>
  	<h1>OLAP Data Analysis</h1>
  	<FORM NAME="conditionsForm" ACTION="DataAnalysis.jsp" METHOD="post">
  	<P>Set the analysis conditions:</P>
  	  	<select name="timeselect">
  	  	<option value="none">None</option>
  	  	<option value="week">Week</option>
  	  	<option value="month">Month</option>
  	  	<option value="year">Year</option>
  		</select><br>
  		<input type="checkbox" name="gUser" value="cuser">Group by User <br>
  		<input type="checkbox" name="gSubject" value="csubject">Group by Subject <br>
  		<input type="checkbox" name="gDate" value="cdate">Group by Date <br>
  		<INPUT TYPE="submit" NAME="Analyze" VALUE="Analyze">
  	</FORM>
  	<%
  	//Get the parameters set in the boxes
  	String gUser = 	request.getParameter("gUser");
  	String gSubject = 	request.getParameter("gSubject");
  	String gDate = 	request.getParameter("gDate");
  	String gTime = 	request.getParameter("timeselect");
  	%>	
  		<%
  		//Create a new instance of the SQL Adapter to use 	
  		SQLAdapter db = new SQLAdapter();
  		ResultSet rset = db.executeFetch("select owner_name, subject, timing, count from sum_cube");
  		
  		//Print the header of the table
  		out.println("<table border=1>");
  
negative.code: <%@ page import="java.util.*"%>
  <%@ page import="proj1.*"%>
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <%
  	//Get the cookie
  	Cookie cookies[] = request.getCookies();
  	Cookie UserCookie = null;
  	if (cookies != null) {
  		for (int i = 0; i < cookies.length; i++) {
  			if (cookies[i].getName().equals("User")) {
  				UserCookie = cookies[i];
  				break;
  			}
  		}
  	}
  
  	//Check if the cookie is not expired
  	if (UserCookie == null || UserCookie.getMaxAge() == 0) {
  		response.setHeader("Refresh", "0; URL=index.jsp");
  	}
  	//Get the username and check if they are an admin
  	String user = UserCookie.getValue();
  	if (!user.equals("admin")){
  		response.setHeader("Refresh", "0; URL=home.jsp");
  	}
  	%>
  <html>
  	<head>
  	<meta http-equiv="content-type" content="text/html; charset=windows-1250">
  