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 26... Line 26...
26
 * admin_index method
26
 * admin_index method
27
 *
27
 *
28
 * @return void
28
 * @return void
29
 */
29
 */
30
	public function admin_index() {
30
	public function admin_index() {
-
 
31
		$page = $this->request->query('page');
-
 
32
		if(!isset($page)){
-
 
33
			$page = 1;
-
 
34
		}
-
 
35
		$limit = Configure::read('admindashboardlimit');
-
 
36
		$offset = ($page - 1)*$limit;
31
		$url = $this->apihost."discountInfo/getAllExceptionalSkuDiscount";
37
		$url = $this->apihost."discountInfo/getAllExceptionalSkuDiscount/?limit=$limit&offset=$offset";
32
		$response = $this->make_request($url,null);
38
		$response = $this->make_request($url,null);
33
		$this->set('exceptionalskudiscounts', $response);
39
		$this->set('exceptionalskudiscounts', $response);
-
 
40
		$this->set('page',$page);
34
	}
41
	}
35
 
42
 
36
/**
43
/**
37
 * admin_view method
44
 * admin_view method
38
 *
45
 *