Subversion Repositories SmartDukaan

Rev

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

Rev 19046 Rev 19098
Line 1226... Line 1226...
1226
					
1226
					
1227
		$this->set(compact('loanHistory','usersMap','hasMore','totalCount','page'));
1227
		$this->set(compact('loanHistory','usersMap','hasMore','totalCount','page'));
1228
	}
1228
	}
1229
	
1229
	
1230
	public function usernotification($user = null){
1230
	public function usernotification($user = null){
-
 
1231
		$page = $this->request->query('page');
-
 
1232
		if(!isset($page)){
-
 
1233
			$page = 1;
-
 
1234
		}
-
 
1235
		$limit = 20;
-
 
1236
		$offset = ($page - 1)*$limit;
-
 
1237
		
1231
		$this->layout = 'innerpages';
1238
		$this->layout = 'innerpages';
1232
		$noti = json_decode('[{"id" : 5 , "text" : "Intex Aqua Young @4301 " , "longText" : "Intex Aqua Young @4301 ","url" : "category/6","type" : "native", "seen":false , "expired": false},{"id" : 5 , "text" : "Apple iPhone 6 16GB @34556" , "longText" : "Apple iPhone 6 16GB @34556","url" : "abc.com","type" : "native","seen": true,"expired": false},{"id" : 5 , "text" : "Notification3" , "longText" : "Notification Long text 3","url" : "abc.com","type" : "native","seen": false,"expired": true}]',true);
1239
		$noti = json_decode('[{"id" : 5 , "text" : "Intex Aqua Young @4301 " , "longText" : "Intex Aqua Young @4301 ","url" : "category/6","type" : "native", "seen":false , "expired": false},{"id" : 5 , "text" : "Apple iPhone 6 16GB @34556" , "longText" : "Apple iPhone 6 16GB @34556","url" : "abc.com","type" : "native","seen": true,"expired": false},{"id" : 5 , "text" : "Notification3" , "longText" : "Notification Long text 3","url" : "abc.com","type" : "native","seen": false,"expired": true}]',true);
1233
// 		debug($noti);
1240
// 		debug($noti);
-
 
1241
		$nexturl = "/users/getmorenotification?page=".($page+1);
1234
		$this->set(compact('noti'));
1242
		$this->set(compact('noti','nexturl'));
-
 
1243
	}
-
 
1244
	
-
 
1245
	public function getmorenotification(){
-
 
1246
		$this->layout = 'ajax';
-
 
1247
		$page = $this->request->query('page');
-
 
1248
		if(!isset($page)){
-
 
1249
			$page = 1;
-
 
1250
		}
-
 
1251
		$limit = 20;
-
 
1252
		$offset = ($page - 1)*$limit;
-
 
1253
		$noti = json_decode('[{"id" : 5 , "text" : "Intex Aqua Young @4301 " , "longText" : "Intex Aqua Young @4301 ","url" : "category/6","type" : "native", "seen":false , "expired": false},{"id" : 5 , "text" : "Apple iPhone 6 16GB @34556" , "longText" : "Apple iPhone 6 16GB @34556","url" : "abc.com","type" : "native","seen": true,"expired": false},{"id" : 5 , "text" : "Notification3" , "longText" : "Notification Long text 3","url" : "abc.com","type" : "native","seen": false,"expired": true}]',true);
-
 
1254
		$nexturl = "/users/getmorenotification?page=".($page+1);
-
 
1255
		$this->set(compact('noti','nexturl'));
-
 
1256
		$this->render('/Elements/getnotification');
1235
	}
1257
	}
1236
}
1258
}