diff --git a/includes/recherche/recherche_dir.php b/includes/recherche/recherche_dir.php index b9bb01254..180cc8d5c 100644 --- a/includes/recherche/recherche_dir.php +++ b/includes/recherche/recherche_dir.php @@ -41,6 +41,7 @@ foreach (array('dirNom',
+
diff --git a/includes/recherche/recherche_ent.php b/includes/recherche/recherche_ent.php index dedeb747a..3d39cc58b 100644 --- a/includes/recherche/recherche_ent.php +++ b/includes/recherche/recherche_ent.php @@ -20,8 +20,11 @@ foreach (array('siret',
- - + +
@@ -52,6 +55,7 @@ foreach (array('siret',
+
diff --git a/www/img/info.gif b/www/img/info.gif new file mode 100644 index 000000000..cb24afb35 Binary files /dev/null and b/www/img/info.gif differ diff --git a/www/img/info.png b/www/img/info.png new file mode 100644 index 000000000..d6904a76b Binary files /dev/null and b/www/img/info.png differ diff --git a/www/pages/nafajax.php b/www/pages/nafajax.php index 61fab00fe..eabb4f48d 100644 --- a/www/pages/nafajax.php +++ b/www/pages/nafajax.php @@ -5,7 +5,9 @@ if (!$q) return; $link = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS) or die("Impossible de se connecter : " . mysql_error()); $db_selected = mysql_select_db(MYSQL_DB, $link); -if (!$db_selected) { die ('Impossible de sélectionner la base de données : ' . mysql_error()); } +if (!$db_selected) { + die ('Impossible de sélectionner la base de données : ' . mysql_error()); +} //Lecture des données mysql $sql = "SET NAMES 'utf8'"; $result = mysql_query($sql); @@ -13,11 +15,14 @@ $sql = "SELECT codNaf5, libNaf5 FROM tabnaf5 WHERE codNaf5 LIKE '%$q%' OR libNaf $result = mysql_query($sql); $output = array(); if ( mysql_num_rows($result)>0 && mysql_num_rows($result)!=FALSE ){ - while ($row = mysql_fetch_assoc($result)) { $items[$row['codNaf5']] = "".$row['libNaf5'].""; } + while ($row = mysql_fetch_assoc($result)) { + $items[$row['codNaf5']] = "".$row['libNaf5'].""; + } //Envoi des informations $separator = " , "; foreach ($items as $key=>$value) { - if (strpos(strtolower($key), $q) !== false || strpos(strtolower($value), $q) !== false ) { + if (strpos(strtolower($key), $q) !== false || + strpos(strtolower($value), $q) !== false ) { $output[] = array( 'label' => $key . $separator . $value, 'value' => $key