Subversion Repositories SmartDukaan

Rev

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

Rev 16549 Rev 16593
Line 106... Line 106...
106
 * admin_index method
106
 * admin_index method
107
 *
107
 *
108
 * @return void
108
 * @return void
109
 */
109
 */
110
	public function admin_index() {
110
	public function admin_index() {
-
 
111
		$type = $this->request->query('type');
-
 
112
		$search = $this->request->query('search');	
-
 
113
		$conditions = array();
-
 
114
		if(!empty($type) && !empty($search)){
-
 
115
			$conditions = array($type=>$search);
-
 
116
			$options['conditions'] = array($type.' LIKE ' =>"%$search%");			
-
 
117
			$this->Paginator->settings = $options;
-
 
118
		}
111
		$this->AppOffer->recursive = 0;
119
		$this->AppOffer->recursive = 0;
112
		$this->set('appOffers', $this->Paginator->paginate());
120
		$this->set('appOffers', $this->Paginator->paginate());
113
	}
121
	}
114
 
122
 
115
/**
123
/**