[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 35/65: Esthetic : message is nothing found in
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 35/65: Esthetic : message is nothing found in menu |
Date: |
Wed, 09 Sep 2015 08:27:20 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit ba4b75f59a6e61e5f85d1a86cd2da9e41d5c8831
Author: Dany De Bontridder <address@hidden>
Date: Fri Sep 4 10:50:58 2015 +0200
Esthetic : message is nothing found in menu
---
html/direct.php | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/html/direct.php b/html/direct.php
index 242e3d9..1c6ef20 100644
--- a/html/direct.php
+++ b/html/direct.php
@@ -27,7 +27,7 @@ global $g_user;
$g_user=new User($cn);
$g_user->Check();
$g_user->check_dossier($_GET['gDossier']);
-$res=$cn->exec_sql("select distinct code,description from get_profile_menu($1)
where code ~* $2 or description ~* $3 limit
8",array($g_user->login,$_POST['acs'],$_POST['acs']));
+$res=$cn->exec_sql("select code,description from get_profile_menu($1) where
code ~* $2 or description ~* $3 limit
8",array($g_user->get_profile(),$_POST['acs'],$_POST['acs']));
$nb=Database::num_row($res);
echo "<ul>";
for ($i = 0;$i< $nb;$i++)
@@ -38,4 +38,7 @@ for ($i = 0;$i< $nb;$i++)
echo '<span class="informal"> '.$row['description'].'</span></li>';
}
echo "</ul>";
+if ( $nb == 0 ) {
+ echo _('Aucune correspondance');
+}
?>
- [Noalyss-commit] [noalyss] 21/65: Bug#1166 : in No VAT mode , the amount is divided by 1000, due to an excedent of nbm, (continued)
- [Noalyss-commit] [noalyss] 21/65: Bug#1166 : in No VAT mode , the amount is divided by 1000, due to an excedent of nbm, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 23/65: beter size for subject, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 15/65: bug in redirect, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 24/65: Update documentation, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 22/65: Script SQL à ajouter, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 27/65: Better debugging : add a button to show the request $_POST and $_GET, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 25/65: insert contact, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 29/65: Bug#1158 : sign and side of Analytic accountancy, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 30/65: comment, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 31/65: Fix issue : cannot zoom an operation after saving it., Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 35/65: Esthetic : message is nothing found in menu,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 33/65: Task#1173 : create a empty database to restaure in command line, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 36/65: Missing file, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 37/65: Use the profile instead of the login name in the view, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 39/65: Add the side D/C to aged balance, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 38/65: translation, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 34/65: increase size of font in box, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 40/65: Remove ENABLE_CACHE + DB Upgrade, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 42/65: Remove ENABLE_CACHE, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 43/65: set version, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 41/65: database upgrade, Dany De Bontridder, 2015/09/09