Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1296 Rev 1311
Line 152... Line 152...
152
		return $valide;
152
		return $valide;
153
	}
153
	}
Line 154... Line 154...
154
 
154
 
Line 155... Line 155...
155
	private function chercherCentroideCommuneBdd($commune, $departement) {
155
	private function chercherCentroideCommuneBdd($commune, $departement) {
156
 
156
 
Line 157... Line 157...
157
		$commune = str_replace(' ','_',$commune);
157
		$commune_formatee = str_replace(' ','_',$commune);
158
		$commune = str_replace('-','_',$commune);
158
		$commune_formatee = str_replace('-','_',$commune_formatee);
159
 
159
 
160
		if(strlen($departement) > 2) {
160
		if(strlen($departement) > 2) {
161
			$departement = substr($departement,0,2);
161
			$departement = substr($departement,0,2);
Line 162... Line 162...
162
		}
162
		}
Line 163... Line 163...
163
		$requete_selection_commune = 'SELECT utm_x, utm_y, utm_secteur, code FROM cel_zones_geo '.
163
		$requete_selection_commune = 'SELECT utm_x, utm_y, utm_secteur, code FROM cel_zones_geo '.