Subversion Repositories SmartDukaan

Rev

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

Rev 16549 Rev 16925
Line 712... Line 712...
712
				$options['conditions'] = array($type.' LIKE '=>"%$search%");			
712
				$options['conditions'] = array($type.' LIKE '=>"%$search%");			
713
			}
713
			}
714
		}else{
714
		}else{
715
			$options['conditions'] = array('date(created)'=>date('Y-m-d',time()));			
715
			$options['conditions'] = array('date(created)'=>date('Y-m-d',time()));			
716
		}	
716
		}	
717
		$options['fields'] = array('id','email','first_name','referrer','utm_source','utm_medium','utm_term','utm_campaign','mobile_number','activated','Useractive.last_active','created');
717
		$options['fields'] = array('id','email','first_name','referrer','utm_source','utm_medium','utm_term','utm_campaign','mobile_number','activated','Useractive.last_active','created','Appacl.access');
718
		$options['joins'] = array(
718
		$options['joins'] = array(
719
		    array('table' => 'useractive',
719
		    array('table' => 'useractive',
720
		        'alias' => 'Useractive',
720
		        'alias' => 'Useractive',
721
		        'type' => 'LEFT',
721
		        'type' => 'LEFT',
722
		        'conditions' => array(
722
		        'conditions' => array(
723
		            'Useractive.user_id = User.id',
723
		            'Useractive.user_id = User.id',
724
		        )
724
		        )
-
 
725
		    ),
-
 
726
		    array('table' => 'appacls',
-
 
727
		        'alias' => 'Appacl',
-
 
728
		        'type' => 'LEFT',
-
 
729
		        'conditions' => array(
-
 
730
		            'Appacl.user_id = User.id',
-
 
731
		        )
725
		    )
732
		    )
726
	    );
733
	    );
727
		$this->Paginator->settings = $options;
734
		$this->Paginator->settings = $options;
728
		$users = $this->Paginator->paginate();		
735
		$users = $this->Paginator->paginate();		
729
		foreach ($users as $key => $value) {
736
		foreach ($users as $key => $value) {