Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3617 Rev 3618
Line 584... Line 584...
584
				$lat = Cel::db()->proteger($lat.'%');
584
				$lat = Cel::db()->proteger($lat.'%');
585
				$lng = Cel::db()->proteger($lng.'%');
585
				$lng = Cel::db()->proteger($lng.'%');
586
				$sql = " AND (latitude LIKE $lat AND longitude LIKE $lng) ";
586
				$sql = " AND (latitude LIKE $lat AND longitude LIKE $lng) ";
587
			}
587
			}
588
		}
588
		}
589
		$sql .= ' AND (localite_floutage IS NULL OR localite_floutage = "précise" ) ';
589
		$sql .= ' AND (localisation_floutage IS NULL OR localisation_floutage = "précise" ) ';
590
		return $sql;
590
		return $sql;
591
	}
591
	}
Line 592... Line 592...
592
 
592
 
593
	private function construireWhereCommentaire() {
593
	private function construireWhereCommentaire() {
Line 970... Line 970...
970
				"(".
970
				"(".
971
					"(".
971
					"(".
972
						"(latitude = '000null' OR latitude = '' OR latitude = 0 OR latitude IS NULL) AND ".
972
						"(latitude = '000null' OR latitude = '' OR latitude = 0 OR latitude IS NULL) AND ".
973
						"(longitude = '000null' OR longitude = '' OR longitude = 0 OR longitude IS NULL) ".
973
						"(longitude = '000null' OR longitude = '' OR longitude = 0 OR longitude IS NULL) ".
974
					')'.
974
					')'.
975
					' OR localite_floutage IN ("localité", "10x10km")'.
975
					' OR localisation_floutage IN ("localité", "10x10km")'.
976
				') ';
976
				') ';
977
		return $sql;
977
		return $sql;
978
	}
978
	}