Subversion Repositories SmartDukaan

Rev

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

Rev 4183 Rev 4185
Line 151... Line 151...
151
 
151
 
152
	public String getHeaderHtml(boolean isLoggedIn, String  userName, String url, long catId, boolean displayBestDealsImg) {
152
	public String getHeaderHtml(boolean isLoggedIn, String  userName, String url, long catId, boolean displayBestDealsImg) {
153
		VelocityContext context = new VelocityContext();
153
		VelocityContext context = new VelocityContext();
154
		if (isLoggedIn) {
154
		if (isLoggedIn) {
155
			context.put("LOGGED_IN", "TRUE");
155
			context.put("LOGGED_IN", "TRUE");
156
			context.put("WELCOME_MESSAGE", "Welcome, " + userName);
156
			context.put("WELCOME_MESSAGE", "Welcome " + userName);
157
		} else {
157
		} else {
158
			context.put("WELCOME_MESSAGE", "Hi, Welcome to Saholic");
158
			context.put("WELCOME_MESSAGE", "Hi, Welcome to Saholic");
159
			context.put("REDIRECT_URL", url);
159
			context.put("REDIRECT_URL", url);
160
		}		
160
		}		
161
		
161