Subversion Repositories SmartDukaan

Rev

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

Rev 13946 Rev 14098
Line 24... Line 24...
24
 * admin_index method
24
 * admin_index method
25
 *
25
 *
26
 * @return void
26
 * @return void
27
 */
27
 */
28
	public function admin_index() {
28
	public function admin_index() {
-
 
29
		$page = $this->request->query('page');
-
 
30
		if(!isset($page)){
-
 
31
			$page = 1;
-
 
32
		}
-
 
33
		$limit = Configure::read('admindashboardlimit');
-
 
34
		$offset = ($page - 1)*$limit;
29
		$url = $this->apihost."exceptionalNlc/getExceptionalNlc";
35
		$url = $this->apihost."exceptionalNlc/getExceptionalNlc/?limit=$limit&offset=$offset";
30
		$response = $this->make_request($url,null);
36
		$response = $this->make_request($url,null);
31
		$this->set('exceptionalnlcs', $response);
37
		$this->set('exceptionalnlcs', $response);
-
 
38
		$this->set('page',$page);
32
	}
39
	}
33
 
40
 
34
/**
41
/**
35
 * admin_view method
42
 * admin_view method
36
 *
43
 *