Subversion Repositories SmartDukaan

Rev

Rev 4816 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4816 Rev 4932
Line 56... Line 56...
56
%>
56
%>
57
 
57
 
58
<form id="searchfilter" name="searchfilter" method="post" action="/jsp/productSearch.jsp">
58
<form id="searchfilter" name="searchfilter" method="post" action="/jsp/productSearch.jsp">
59
<label>From Date(YYYYMMDD) : </label> <input type="text" name="fromDate" id="fromDate" value="<%= fromDateStr %>"/>
59
<label>From Date(YYYYMMDD) : </label> <input type="text" name="fromDate" id="fromDate" value="<%= fromDateStr %>"/>
60
<label>To Date(YYYYMMDD) : </label> <input type="text" name="toDate" id="toDate" value="<%= toDateStr %>"/>
60
<label>To Date(YYYYMMDD) : </label> <input type="text" name="toDate" id="toDate" value="<%= toDateStr %>"/>
-
 
61
<% if(productQuery!=null){
-
 
62
%>
-
 
63
	<input type="text" name="productQuery" style = "display:none "value="<%= productQuery %>"/>
-
 
64
<% } %>
61
<input type="Submit" id="Submit" name="Submit" value="Submit" />
65
<input type="Submit" id="Submit" name="Submit" value="Submit" />
62
</form>
66
</form>
63
 
67
 
64
<%
68
<%
65
    try {
69
    try {
Line 122... Line 126...
122
        		for(int i = 1; i <= dayDiff; i ++)	{
126
        		for(int i = 1; i <= dayDiff; i ++)	{
123
					previousDate = previousDate + 86400000;
127
					previousDate = previousDate + 86400000;
124
					previousrecordDate.add(Calendar.DAY_OF_MONTH, 1);
128
					previousrecordDate.add(Calendar.DAY_OF_MONTH, 1);
125
					graphData.put(previousDate, new Long(0));
129
					graphData.put(previousDate, new Long(0));
126
        		}
130
        		}
127
				graphData.put(previousDate, new Long(1));
-
 
128
        	} else	{
-
 
129
    			graphData.put(previousDate, graphData.get(previousDate) + 1);
131
    			graphData.put(previousDate, graphData.get(previousDate) + 1);
130
        	}
132
        	}
131
%>			
133
%>			
132
			<tr>
134
			<tr>
133
				<td><%=sdf.format((Date) (result.getProperty("date")))%></td>
135
				<td><%=sdf.format((Date) (result.getProperty("date")))%></td>