Subversion Repositories SmartDukaan

Rev

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

Rev 2511 Rev 2606
Line 81... Line 81...
81
		if(this.request.getParameter("category") != null){
81
		if(this.request.getParameter("category") != null){
82
    		this.categoryId = Long.parseLong(this.request.getParameter("category"));
82
    		this.categoryId = Long.parseLong(this.request.getParameter("category"));
83
    		url= url + "&category=" + this.request.getParameter("category");
83
    		url= url + "&category=" + this.request.getParameter("category");
84
    	}
84
    	}
85
		if(query.trim().isEmpty()){
85
		if(query.trim().isEmpty()){
86
			if(categoryId == 10001){
86
			if(categoryId == Utils.MOBILE_PHONES_CATEGORY){
87
				location = "/all-mobile-phones/" + categoryId;
87
				location = "/all-mobile-phones/" + categoryId;
88
				return "redirect";
88
				return "redirect";
89
			}else if(categoryId == 10011){
89
			}else if(categoryId == Utils.MOBILE_ACCESSORIES_CATEGORY){
90
				location = "/all-mobile-accessories/" + categoryId;
90
				location = "/all-mobile-accessories/" + categoryId;
91
				return "redirect";
91
				return "redirect";
-
 
92
			}else if(categoryId == Utils.TABLETS_CATEGORY){
-
 
93
				location = "/all-tablets/" + categoryId;
-
 
94
				return "redirect";
92
			}else{
95
			}else{
93
				return "index";
96
				return "index";
94
			}
97
			}
95
		}
98
		}
96
		sortUrl = url;
99
		sortUrl = url;