Subversion Repositories SmartDukaan

Rev

Rev 16614 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16614 Rev 16755
Line 19... Line 19...
19
 * admin_index method
19
 * admin_index method
20
 *
20
 *
21
 * @return void
21
 * @return void
22
 */
22
 */
23
	public function admin_index() {
23
	public function admin_index() {
-
 
24
		$type = $this->request->query('type');
-
 
25
		$search = $this->request->query('search');	
-
 
26
		$conditions = array();
-
 
27
		if(!empty($type) && !empty($search)){
-
 
28
			$conditions = array($type=>$search);
-
 
29
			$options['conditions'] = array($type.' LIKE ' =>"%$search%");			
-
 
30
			$this->Paginator->settings = $options;
-
 
31
		}
24
		$this->Appmaster->recursive = 0;
32
		$this->Appmaster->recursive = 0;
25
		$this->set('appmasters', $this->Paginator->paginate());
33
		$this->set('appmasters', $this->Paginator->paginate());
26
	}
34
	}
27
 
35
 
28
/**
36
/**