From 75265c8987c1cc33f30f19b0983b489f3abee76d Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 30 Nov 2015 19:58:06 +0100 Subject: [PATCH] =?UTF-8?q?Mettre=20en=20couleur=20les=20notes=20modifi?= =?UTF-8?q?=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/global.css | 8 +++++++- manager/database.php | 2 +- page/_JS/settings.js | 4 +--- page/home.php | 2 ++ page/settings.php | 2 +- 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/css/global.css b/css/global.css index 2ef77d4..60c1a13 100755 --- a/css/global.css +++ b/css/global.css @@ -351,6 +351,7 @@ tr.grayscale input{ width: 4em; padding: .5em 1em; + /* border */ border-radius: 3px; border: 1px solid #bdbdbd; @@ -362,7 +363,12 @@ tr.grayscale input:focus{ border-color: #999; } - +/* .active */ +.saisie_note.active, +tr.grayscale input.active{ + border-color: #2dcc70; + color: #2dcc70; +} diff --git a/manager/database.php b/manager/database.php index 269fc7b..2044cd5 100755 --- a/manager/database.php +++ b/manager/database.php @@ -39,7 +39,7 @@ class DataBase{ public static function getInstance(){ if( DataBase::$instance == null ){ if( $_SERVER['HTTP_HOST'] == 'sid.local' ) // si co en local - DataBase::$instance = new DataBase("localhost", "sid2", "php", "Qt358nUdyeTxLDM8"); + DataBase::$instance = new DataBase("localhost", "sid3", "php", "Qt358nUdyeTxLDM8"); else // si co en ligne DataBase::$instance = new DataBase("mysql.hostinger.fr", "u712664263_sid", "u712664263_php", "Qt358nUdyeTxLDM8"); } diff --git a/page/_JS/settings.js b/page/_JS/settings.js index 0840e80..81ce9b1 100755 --- a/page/_JS/settings.js +++ b/page/_JS/settings.js @@ -274,9 +274,7 @@ if( changeYear.select != null && changeYear.button != null ){ // on envoie la requête à l'API API.send(request, function(answer){ - if( answer.request == 'success' ){ - selectSection('home'); - } + if( answer.request == 'success' ) reload(); }); }, false); diff --git a/page/home.php b/page/home.php index 74a96e8..017517c 100755 --- a/page/home.php +++ b/page/home.php @@ -79,6 +79,7 @@ require_once __ROOT__.'/manager/groups.php'; Visualiser votre profil
Modifier votre profil
Modifier les rôles des autres utilisateurs
+ Changer l'année de visualisation

@@ -108,6 +109,7 @@ require_once __ROOT__.'/manager/groups.php'; Paramètres
Visualiser votre profil
Modifier votre profil
+ Changer l'année de visualisation

diff --git a/page/settings.php b/page/settings.php index 588f3db..34eb5a9 100755 --- a/page/settings.php +++ b/page/settings.php @@ -291,7 +291,7 @@ if( permission('master') || permission('admin') ){ if( $answer->request == 'success' ){ // si pas d'erreur - echo "
"; + echo "
"; echo "
"; echo "Changement de l'année de visualisation
";