noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 02/04: Esthetic : add a button to close the w


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 02/04: Esthetic : add a button to close the warning for info
Date: Thu, 13 Aug 2015 19:53:42 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 170f7ee675be9c99e76e9494ebd28c146d682187
Author: Dany De Bontridder <address@hidden>
Date:   Thu Aug 13 10:38:14 2015 +0200

    Esthetic : add a button to close the warning for info
---
 html/user_login.php         |    7 +++++--
 include/class_extension.php |    6 +++++-
 include/constant.php        |    8 +++++---
 3 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/html/user_login.php b/html/user_login.php
index e88a0be..af9808f 100644
--- a/html/user_login.php
+++ b/html/user_login.php
@@ -30,7 +30,6 @@ require_once NOALYSS_INCLUDE.'/function_javascript.php';
 @html_page_start($_SESSION['g_theme']);
 $rep=new Database();
 include_once NOALYSS_INCLUDE.'/class_user.php';
-
 $User=new User($rep);
 
 $User->Check();
@@ -87,10 +86,13 @@ if ( $User->Admin()  == 1)
        if (SITE_UPDATE !="") {
         address@hidden(SITE_UPDATE);
         if ($update > $version_noalyss ) {
-                echo '<div class="inner_box" 
style="width:25%;margin-left:10%;margin-top:3px;">';
+                echo '<div id="version_div" class="inner_box" 
style="width:25%;margin-left:10%;margin-top:3px;">';
                 echo '<p class="notice">';
                 echo "Mise à jour disponible de NOALYSS version actuelle : 
$update votre version $version_noalyss";
                 echo '</p>';
+                 echo '<p style="text-align:center"> <a class="button" 
onclick="document.body.removeChild(document.getElementById(\'version_div\'))">'.
+                         _('Fermer').
+                         "</a></p>";
                 echo '</div>';
         }
        }
@@ -179,6 +181,7 @@ echo $res;
 <P>
 
 </P>
+</div>
 <?php
 html_page_stop();
 ?>
diff --git a/include/class_extension.php b/include/class_extension.php
index 20ea91e..48c369c 100644
--- a/include/class_extension.php
+++ b/include/class_extension.php
@@ -217,10 +217,14 @@ class Extension extends Menu_Ref_sql
                     $update = @file_get_contents(SITE_UPDATE_PLUGIN);
                     if ($update > $version_plugin)
                     {
-                        echo '<div class="inner_box" 
style="position:absolute;zindex:2;top:5px;left:360px">';
+                        echo '<div id="version_plugin_div_id" 
class="inner_box" 
style="position:absolute;zindex:2;top:5px;left:37.5%;width:25%">';
                         echo '<p class="notice">';
                         echo "Mise à jour disponible des plugins pour NOALYSS, 
version actuelle : $update votre version $version_plugin";
                         echo '</p>';
+                         echo '<p style="text-align:center">'.
+                               '<a id="version_plugin_button" class="button" 
onclick="$(\'version_plugin_div_id\').remove()">'.
+                         _('Fermer').
+                         "</a></p>";
                         echo '</div>';
                     }
                 }
diff --git a/include/constant.php b/include/constant.php
index 75b6e7d..bc9a31d 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -79,7 +79,7 @@ define ('SMALLX','&#x2D5D;');
 
 
 
-define ('SVNINFO',6815);
+define ('SVNINFO',6700);
 if ( ! defined  ('DEBUG')) {
     define ("DEBUG",false);
 }
@@ -91,8 +91,10 @@ $version_noalyss=SVNINFO;
 
 // If you don't want to be notified of the update
 // define ("SITE_UPDATE",'');
-define ("SITE_UPDATE",'http://www.noalyss.eu/last_version.txt');
-define ("SITE_UPDATE_PLUGIN",'http://www.noalyss.eu/plugin_last_version.txt');
+if ( !defined("SITE_UPDATE"))
+    define ("SITE_UPDATE",'http://www.noalyss.eu/last_version.txt');
+if ( !defined("SITE_UPDATE_PLUGIN"))
+    define 
("SITE_UPDATE_PLUGIN",'http://www.noalyss.eu/plugin_last_version.txt');
 
 
 define ("DBVERSION",118);



reply via email to

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