Subversion Repositories SmartDukaan

Rev

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

Rev 6710 Rev 6903
Line 167... Line 167...
167
		context.put("TOTAL_ITEMS", totalItems);
167
		context.put("TOTAL_ITEMS", totalItems);
168
		String templateFile = "templates/header.vm";
168
		String templateFile = "templates/header.vm";
169
		
169
		
170
		return getHtmlFromVelocity(templateFile, context);
170
		return getHtmlFromVelocity(templateFile, context);
171
	}
171
	}
-
 
172
	
-
 
173
	public String getThinHeaderHtml(boolean isLoggedIn, String email, int totalItems, String url, long catId, boolean displayBestDealsImg) {
-
 
174
        VelocityContext context = new VelocityContext();
-
 
175
        
-
 
176
        if (isLoggedIn) {
-
 
177
            context.put("LOGGED_IN", "TRUE");
-
 
178
            context.put("WELCOME_MESSAGE", "Hi " + email.split("@")[0]);
-
 
179
            
-
 
180
        } else  {
-
 
181
            context.put("WELCOME_MESSAGE", "Hi, Welcome to Saholic");
-
 
182
            context.put("REDIRECT_URL", url);
-
 
183
        }
-
 
184
        
-
 
185
        context.put("BEST_DEALS_BADGE", displayBestDealsImg);
-
 
186
        context.put("CAT_ID", catId);
-
 
187
        context.put("TOTAL_ITEMS", totalItems);
-
 
188
        String templateFile = "templates/thinheader.vm";
-
 
189
        
-
 
190
        return getHtmlFromVelocity(templateFile, context);
-
 
191
    }
172
 
192
 
173
	
193
	
174
	public String getOrderDetailsHtml(long orderId, UserSessionInfo userinfo) {
194
	public String getOrderDetailsHtml(long orderId, UserSessionInfo userinfo) {
175
		long userId = userinfo.getUserId();
195
		long userId = userinfo.getUserId();
176
		String htmlString = "";
196
		String htmlString = "";