Subversion Repositories SmartDukaan

Rev

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

Rev 1472 Rev 1921
Line 54... Line 54...
54
	private long windowSize = 10;
54
	private long windowSize = 10;
55
	private long page = 1;
55
	private long page = 1;
56
	private long totalResults;
56
	private long totalResults;
57
	private long beginIndex = 0;
57
	private long beginIndex = 0;
58
	private String url;
58
	private String url;
59
	private String priceUrl;
59
	private String priceUrl = "?";
60
	private long categoryId=10000;
60
	private long categoryId=10000;
61
	private String sortUrl;
61
	private String sortUrl;
62
	private String location;
62
	private String location;
63
	/**
63
	/**
64
	 * 
64
	 * 
Line 94... Line 94...
94
		sortUrl = url;
94
		sortUrl = url;
95
		if(this.request.getParameter("sort") != null){
95
		if(this.request.getParameter("sort") != null){
96
    		url= url + "&sort=" + this.request.getParameter("sort");
96
    		url= url + "&sort=" + this.request.getParameter("sort");
97
    		sortOrder = this.request.getParameter("sort");
97
    		sortOrder = this.request.getParameter("sort");
98
    	}
98
    	}
99
		priceUrl = url;
99
		priceUrl += url;
100
    	if(this.request.getParameter("page") != null){
100
    	if(this.request.getParameter("page") != null){
101
    		this.page = Long.parseLong(this.request.getParameter("page"));
101
    		this.page = Long.parseLong(this.request.getParameter("page"));
102
    		this.beginIndex = this.windowSize * (this.page-1);
102
    		this.beginIndex = this.windowSize * (this.page-1);
103
    	}
103
    	}
104
    	if(this.request.getParameter("min-price") != null){
104
    	if(this.request.getParameter("min-price") != null){