noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 01/02: Task #1045 - Amélioration apparence


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 01/02: Task #1045 - Amélioration apparence : Correct some esthetic bug for IE IE8 & IE9 support
Date: Wed, 10 Dec 2014 22:51:23 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 2c0dab3ef3147655d23b9bd55c8e8dbdaa202809
Author: Dany De Bontridder <address@hidden>
Date:   Wed Dec 10 23:49:35 2014 +0100

    Task #1045 - Amélioration apparence  :
    Correct some esthetic bug for IE
    IE8 & IE9 support
---
 include/ac_common.php |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/include/ac_common.php b/include/ac_common.php
index 200f0db..7b2fc74 100644
--- a/include/ac_common.php
+++ b/include/ac_common.php
@@ -290,7 +290,17 @@ function html_page_start($p_theme="", $p_script="", 
$p_script2="")
                else
                        $title=$_REQUEST['ac']."  ".$title;
        }
-    echo '<!doctype html>';
+    if ( strpos ($_SERVER['HTTP_USER_AGENT'],'MSIE 8.0')  != 0 ||
+         strpos ($_SERVER['HTTP_USER_AGENT'],'MSIE 9.0')  != 0 )
+       $is_msie=1;
+    else
+        $is_msie=0;
+    
+    if ($is_msie == 0 ) 
+        echo '<!doctype html>';
+    else
+         echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 FINAL//EN" >';
+    
     echo "<HTML>";
 
     if ($p_script2 != "")
@@ -308,9 +318,10 @@ function html_page_start($p_theme="", $p_script="", 
$p_script2="")
     echo '<script language="javascript" src="js/calendar.js"></script>
     <script type="text/javascript" src="js/lang/calendar-en.js"></script>
     <script language="javascript" src="js/calendar-setup.js"></script>
-    <LINK REL="stylesheet" type="text/css" href="calendar-blue.css" 
media="screen">
-    </HEAD>
-    ';
+    <LINK REL="stylesheet" type="text/css" href="calendar-blue.css" 
media="screen">';
+    if ( $is_msie == 1 )echo '      <meta http-equiv="x-ua-compatible" 
content="IE=edge"/>';
+
+    echo '    </HEAD>    ';
 
     echo "<BODY $p_script>";
     echo '<div id="info_div"></div>';



reply via email to

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