noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 07/35: Improve : Admin/user for admin , no da


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 07/35: Improve : Admin/user for admin , no database details since he can connect all of them
Date: Tue, 24 May 2016 21:25:38 +0000 (UTC)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 8c198bf1ee5c16b7fbee2212ab306b7e31e16ac2
Author: Dany De Bontridder <address@hidden>
Date:   Sun Apr 3 17:50:03 2016 +0200

    Improve : Admin/user for admin , no database details since he can connect 
all of them
---
 include/user.inc.php |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/include/user.inc.php b/include/user.inc.php
index b52cdbb..7bb8cec 100644
--- a/include/user.inc.php
+++ b/include/user.inc.php
@@ -168,9 +168,13 @@ if ( !empty ($a_user) )
         echo td($r_user['use_name']);
         echo td($r_user['use_first_name']);
         echo td($Active);
-               
$type=($r_user['use_admin']==1)?_("Administrateur"):_("Utilisateur");
-               echo "<td>".$type."</td>";
-               echo td($r_user['ag_dossier']);
+        $type=($r_user['use_admin']==1)?_("Administrateur"):_("Utilisateur");
+        echo "<td>".$type."</td>";
+        if ( $r_user['use_admin'] == 0)
+            echo td($r_user['ag_dossier']);
+        else {
+            echo td(_('Tous'));
+        }
         echo '</tr>';
     }// foreach
     echo '</table>';



reply via email to

[Prev in Thread] Current Thread [Next in Thread]