Subversion Repositories SmartDukaan

Rev

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

Rev 3656 Rev 3830
Line 54... Line 54...
54
	
54
	
55
	private String query;
55
	private String query;
56
	
56
	
57
	private Double minPrice;
57
	private Double minPrice;
58
	private Double maxPrice;
58
	private Double maxPrice;
59
	
-
 
-
 
59
	private long categoryId;
60
	
60
	
61
	private long windowSize = 20;
61
	private long windowSize = 20;
62
	private long page = 1;
62
	private long page = 1;
63
	private long totalResults;
63
	private long totalResults;
64
	private long beginIndex = 0;
64
	private long beginIndex = 0;
Line 102... Line 102...
102
		@Action("/category")
102
		@Action("/category")
103
	})
103
	})
104
	 
104
	 
105
    public HttpHeaders show() throws SecurityException, IOException {
105
    public HttpHeaders show() throws SecurityException, IOException {
106
    	log.info("id=" + id);
106
    	log.info("id=" + id);
107
    	long categoryId = Long.parseLong(id);
107
    	categoryId = Long.parseLong(id);
108
    	this.categoryName = CategoryManager.getCategoryManager().getCategoryLabel(categoryId);
108
    	this.categoryName = CategoryManager.getCategoryManager().getCategoryLabel(categoryId);
109
    	
109
    	
110
    	if (categoryId == Utils.MOBILE_PHONES_CATEGORY || categoryId == Utils.MOBILE_ACCESSORIES_CATEGORY || categoryId == Utils.TABLETS_CATEGORY ){
110
    	if (categoryId == Utils.MOBILE_PHONES_CATEGORY || categoryId == Utils.MOBILE_ACCESSORIES_CATEGORY || categoryId == Utils.TABLETS_CATEGORY ){
111
    		this.categoryTitle = categoryName + " Price List India" + " | " + this.categoryName;
111
    		this.categoryTitle = categoryName + " Price List India" + " | " + this.categoryName;
112
    	}
112
    	}
Line 320... Line 320...
320
	    	    }
320
	    	    }
321
			}
321
			}
322
    	}
322
    	}
323
		return snippets;
323
		return snippets;
324
    }
324
    }
-
 
325
    @Override
-
 
326
	public String getHeaderSnippet() {
-
 
327
		String url = request.getQueryString();
-
 
328
		if (url == null) {
-
 
329
			url = "";
-
 
330
		} else {
-
 
331
			url = "?" + url;
-
 
332
		}
-
 
333
		url = request.getRequestURI() + url;
-
 
334
		
-
 
335
		
-
 
336
		return pageLoader.getHeaderHtml(userinfo.isLoggedIn(),
-
 
337
				userinfo.getNameOfUser(), url , categoryId);
-
 
338
	}
-
 
339
    
325
}
340
}