From 422c1384e7b4cdeffeec10a823cd6e9dc90a8ad0 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Fri, 28 May 2010 15:25:17 +0000 Subject: [PATCH 1/4] Code --- www/pages/nafajax.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 From e8719a1662c950c5c9b38690dcdcbd0c7333558c Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Fri, 28 May 2010 16:03:35 +0000 Subject: [PATCH 2/4] =?UTF-8?q?R=C3=A9import=20bouton=20RAZ?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/recherche/recherche_dir.php | 1 + includes/recherche/recherche_ent.php | 1 + 2 files changed, 2 insertions(+) diff --git a/includes/recherche/recherche_dir.php b/includes/recherche/recherche_dir.php index b9bb01254..b3d196a68 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..2dda0677f 100644 --- a/includes/recherche/recherche_ent.php +++ b/includes/recherche/recherche_ent.php @@ -52,6 +52,7 @@ foreach (array('siret',
+
From 5b4e563d20210ad61ff3cbe00425dc1f8419ddae Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Fri, 28 May 2010 16:25:18 +0000 Subject: [PATCH 3/4] Modification affichage recherche --- includes/recherche/recherche_dir.php | 2 +- includes/recherche/recherche_ent.php | 9 ++++++--- www/img/info.png | Bin 0 -> 940 bytes 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 www/img/info.png diff --git a/includes/recherche/recherche_dir.php b/includes/recherche/recherche_dir.php index b3d196a68..180cc8d5c 100644 --- a/includes/recherche/recherche_dir.php +++ b/includes/recherche/recherche_dir.php @@ -41,7 +41,7 @@ foreach (array('dirNom',
- +
diff --git a/includes/recherche/recherche_ent.php b/includes/recherche/recherche_ent.php index 2dda0677f..3300e0c0d 100644 --- a/includes/recherche/recherche_ent.php +++ b/includes/recherche/recherche_ent.php @@ -20,8 +20,11 @@ foreach (array('siret',
- - + +
@@ -52,7 +55,7 @@ foreach (array('siret',
- +
diff --git a/www/img/info.png b/www/img/info.png new file mode 100644 index 0000000000000000000000000000000000000000..d6904a76ba31d6e9d187a3e6a1d0fa286ec5cc21 GIT binary patch literal 940 zcmV;d15^BoP)(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ1RCwAr)7dOnVHP<&Ck2=3L$LmxT~SQ3Qav zxv&6$l+wy(`=^Vg=-fBoE+u~dvp}uZ03el$^W+m*UV34|&vfZa_wx5I7(@6!fKlV) zBUi6~pP%~V^Bh77y3+|_t_?uD8BpE)7b1A`wIe+LZ2z@ex7SV!A+*96hKIB7UY}o| zx;Q&eb~r;5!J%hHc;m#=0DSz}kK|T2h#PqC(;qPM_|);I_O9N!`}aGtySsCLvBLTH zzxavXu|Ap!hb_xO#}vv|DBB`b7In*_k#Oi8?d8KSf1&Kh&UbYs_p9Da`pm_zmYs%c z)0uFH1jKEdr9zeIxnBXeQ*GdO#L>oJDT(hknVVm8-gS6ZmF=o#mY=91{6Xdgun>NS{S3MEwF8bt=N^YBq+s(mb4;= z(H*c50-18HVmcWkU-GCnG-SFVlLps)2*9?XCk>fBR2u>Ll1Dlbqr;I!8CTJb!($oB z#Tp0$VFXHTmv$vBuoUd9uUy>X&}bTm;D)SJx30WCIo68176jpTNNX$;J?vW;(0a!U zNw^lT9vNztHY-H<>wkkU^(8 zQ}Y@tVrg*^K#dP)uU`JGJoWb1e^B=Va1}yX0GJ?zRzPQm!v`l0@bZDqYb$@wZ<63e**wMf@ulC2tS7a O0000 Date: Fri, 28 May 2010 16:44:14 +0000 Subject: [PATCH 4/4] Icone info en gif --- includes/recherche/recherche_ent.php | 2 +- www/img/info.gif | Bin 0 -> 1053 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 www/img/info.gif diff --git a/includes/recherche/recherche_ent.php b/includes/recherche/recherche_ent.php index 3300e0c0d..3d39cc58b 100644 --- a/includes/recherche/recherche_ent.php +++ b/includes/recherche/recherche_ent.php @@ -23,7 +23,7 @@ foreach (array('siret', -
diff --git a/www/img/info.gif b/www/img/info.gif new file mode 100644 index 0000000000000000000000000000000000000000..cb24afb35c7309d3f2a3b8e9c558b0f4250d112f GIT binary patch literal 1053 zcmZ?wbhEHb6krfw_|55_%>Pp_MwY*vD7&138WN%=|-pG)(nIUHbL(WEqyv+;+ zTltDM^A&9oPh2FPv`9W}iE!x_!IG^i4xJi46SaIMDTGWjbnP{A2ckY(uL4KB)oyc&oZ%2R$0u^8N8()f^0l7zo3tAD7`N{? z?$~eCdBCXiV0hcEwC1hpZQIkk_oVmk&+6TmHFbYc`?k{N%|)HtYumRLPu^EDX zzq4TFsRgS~FIaQt{M82+EE-*cFW-NA_wK{{ z51&4~d-LJ_+fVP`eg5$7)2H`eKfV9_`NM}#pT2zl`2Fjr?_WOu`1bkdw=e(x{`>#` zKR9|v349@-_>+Z^f#E-c4oDFwPcU%&V))M~;&JlAJlhr}-k2ZfC(YIKir5fvX{n!5 z+l(hmA{tXp3aMxX9kDbKxIBkJKc*paONMv1it4Qif7*|?@W>foGD%v(%GNKT{^HN+ zCrcanWgTawoIIp*qEAj^pMz5f3%h`l(z%jXM_gGZ%A0rb{BmYKH9>&sNW~`?R|XD6 z|EwpBDb8G-EG);?tTj5o(5Yeh#lpym$+?{)