Subversion Repositories SmartDukaan

Rev

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

Rev 17172 Rev 17210
Line 710... Line 710...
710
				$options['conditions'] = array($type =>$search);			
710
				$options['conditions'] = array($type =>$search);			
711
			}else{
711
			}else{
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(User.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','Appacl.access');
717
		$options['fields'] = array('id','email','first_name','referrer','utm_source','utm_medium','utm_term','utm_campaign','mobile_number','activated','Useractive.last_active','User.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(