Subversion Repositories SmartDukaan

Rev

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

Rev 17224 Rev 17225
Line 234... Line 234...
234
		// $this->set('data', $result);
234
		// $this->set('data', $result);
235
		$this->set('notificationData', $resultData);
235
		$this->set('notificationData', $resultData);
236
	}
236
	}
237
 
237
 
238
	public function admin_user($id = null) {
238
	public function admin_user($id = null) {
-
 
239
		$url = Configure::read('nodeurl')."/getPushNotificationByUserId/?user_id=".$id;
-
 
240
		$userdata = $this->make_request($url,null);
-
 
241
		// debug($userdata);
-
 
242
		$this->set(compact('userdata'));
239
		$sqlQuery = "SELECT * FROM pushnotifications where user_id=$id order by id desc" ;
243
		// $sqlQuery = "SELECT * FROM pushnotifications where user_id=$id order by id desc" ;
240
		$resul=$this->NotificationCampaign->query($sqlQuery);
244
		// $resul=$this->NotificationCampaign->query($sqlQuery);
241
		$this->set('userdata', $resul);
245
		// $this->set('userdata', $resul);
242
	}
246
	}
243
 
247
 
244
	public function admin_sort($id = null) {
248
	public function admin_sort($id = null) {
245
		$sort = $this->request->query('type');
249
		$sort = $this->request->query('type');
246
		$direction = $this->request->query('order');
250
		$direction = $this->request->query('order');