Subversion Repositories SmartDukaan

Rev

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

Rev 16982 Rev 17172
Line 909... Line 909...
909
 
909
 
910
	public function getCatergoryLinks($userId,$categoryId) {
910
	public function getCatergoryLinks($userId,$categoryId) {
911
		$temp = $links = $fixed = $random = array();		
911
		$temp = $links = $fixed = $random = array();		
912
		//populate fixed brands array
912
		//populate fixed brands array
913
		if($categoryId == 3){
913
		if($categoryId == 3){
914
			$sql = "SELECT id,name FROM brands WHERE lower(name) IN('samsung','micromax','apple','intex','lava','spice','htc','lenovo','nokia','microsoft','xiaomi') AND category_id = $categoryId";
914
			$sql = "SELECT id,name FROM brands WHERE lower(name) IN('samsung','micromax','apple','intex','lava','spice','htc','lenovo','nokia','microsoft','xiaomi','sony') AND category_id = $categoryId";
915
		} else {
915
		} else {
916
			$sql = "SELECT id,name FROM brands WHERE lower(name) IN('lenovo','dell','hp','iball','digiflip','samsung','datavent','apple','micromax','asus') AND category_id = $categoryId";
916
			$sql = "SELECT id,name FROM brands WHERE lower(name) IN('lenovo','dell','hp','iball','digiflip','samsung','datawind','apple','micromax','asus') AND category_id = $categoryId";
917
		}
917
		}
918
		$brandnames = $this->User->query($sql);
918
		$brandnames = $this->User->query($sql);
919
		
919
		
920
		if(!empty($brandnames)){
920
		if(!empty($brandnames)){
921
			foreach ($brandnames as $key => $value) {
921
			foreach ($brandnames as $key => $value) {