Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1311 Rev 1765
Line 159... Line 159...
159
 
159
 
160
		if(strlen($departement) > 2) {
160
		if(strlen($departement) > 2) {
161
			$departement = substr($departement,0,2);
161
			$departement = substr($departement,0,2);
162
		}
162
		}
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 '.
Line 164... Line 164...
164
					      'WHERE nom LIKE '.$this->proteger($commune_formatee).' AND code LIKE '.$this->proteger($departement.'%');
164
					      'WHERE nom LIKE '.Cel::db()->proteger($commune_formatee).' AND code LIKE '.Cel::db()->proteger($departement.'%');
Line 165... Line 165...
165
 
165
 
Line 166... Line 166...
166
		$commune_coordonnees = $this->executerRequete($requete_selection_commune);
166
		$commune_coordonnees = Cel::db()->executerRequete($requete_selection_commune);