From e1efdd7bb346d358fb3cb0aa57ec98ef1cb0a737 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Tue, 20 Oct 2009 18:28:01 +0000 Subject: [PATCH] Fix IE7 : cosmetic size of report in access FIX IE7 : bug with infobulle Improve infobulle with mouseover and mouseclick Check browser version and refuse to work if using IE < 7 --- html/access.php | 29 ++++++++++++++++++++++++++--- html/js/infobulle.js | 3 ++- html/style-light.css | 2 +- html/user_login.php | 27 +++++++++++++++++++++++++++ include/class_widget.php | 2 +- 5 files changed, 57 insertions(+), 6 deletions(-) diff --git a/html/access.php b/html/access.php index c1e4f2ace..36e402d11 100644 --- a/html/access.php +++ b/html/access.php @@ -37,7 +37,30 @@ $cn=DbConnect(dossier::id()); $user=new User($cn); $user->Check(); $user->check_dossier(dossier::id()); +/* Check Browser version if < IE6 then unsupported */ +$browser=$_SERVER['HTTP_USER_AGENT']; +if ( strpos($browser,'MSIE 6')!=false || + strpos($browser,'MSIE 5')!=false ) { +echo << +
+
Close this notice
+
+
Warning!
+
+
Vous utilisez un navigateur dépassé depuis près de 8 ans!
+
Pour une meilleure expérience web, prenez le temps de mettre votre navigateur à jour.
+
+
Get Firefox 3.5
+
Get Safari 4
+
Get Google Chrome
+
+
+ +EOF; +exit(); +} if ( DBVERSION!=dossier::get_version($cn)) { echo '

Votre base de données n\'est pas à jour, '; $a="cliquez ici pour appliquer le patch"; @@ -67,7 +90,7 @@ if ( isset($_REQUEST['save_todo_list'])) { $todo=new Todo_List($cn); $array=$todo->load_all(); -echo '
'; +echo '
'; echo '
Liste des tâches'; echo '