[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 110/323: Correction couleur pour Inswitch_pl
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 110/323: Correction couleur pour Inswitch_place Correction couleur pour Module sécurité |
Date: |
Wed, 14 Mar 2018 17:38:34 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit cd78ed2a4a4b1ee27445c330eb6ac2a2d5e6f036
Author: Dany De Bontridder <address@hidden>
Date: Wed Jan 31 07:27:28 2018 +0100
Correction couleur pour Inswitch_place
Correction couleur pour Module sécurité
---
include/lib/inplace_switch.class.php | 10 +++++++---
include/param_sec.inc.php | 4 +++-
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/include/lib/inplace_switch.class.php
b/include/lib/inplace_switch.class.php
index 558ffda..8120a8f 100644
--- a/include/lib/inplace_switch.class.php
+++ b/include/lib/inplace_switch.class.php
@@ -55,19 +55,23 @@ class Inplace_Switch
function input()
{
- printf('<span style="text-decoration: none" class="inplace_edit icon"
id="%s">', $this->name);
if ($this->value==1)
{
- echo $this->iconon;
+ $icon=$this->iconon;
+ $color="green";
}
elseif ($this->value==0)
{
- echo $this->iconoff;
+ $icon=$this->iconoff;
+ $color="red";
}
else
{
throw new Exception(_("Invalide value"));
}
+
+ printf('<span style="text-decoration: none;color:%s"
class="inplace_edit icon" id="%s">', $color,$this->name);
+ echo $icon;
echo '</span>';
echo <<<EOF
<script>
diff --git a/include/param_sec.inc.php b/include/param_sec.inc.php
index 73b43b4..43d7af7 100644
--- a/include/param_sec.inc.php
+++ b/include/param_sec.inc.php
@@ -360,9 +360,11 @@ if ( $action == "view" )
for (i = 0;i < a_select.length;i++) {
str_id = new String( a_select[i].id);
if ( str_id.search(/action/) > -1 ) {
- if ( p_value == 1 ) {
+ if ( p_value == 0 ) {
+ a_select[i].setStyle("color:red");
a_select[i].innerHTML='';
} else {
+ a_select[i].setStyle("color:green");
a_select[i].innerHTML='';
}
}
- [Noalyss-commit] [noalyss] 97/323: Correction esthétique PERIODE par journaux, (continued)
- [Noalyss-commit] [noalyss] 97/323: Correction esthétique PERIODE par journaux, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 101/323: Fix bug from merge, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 104/323: remove debug, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 102/323: correct bug created by the merge, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 94/323: Merge branch 'dev-6919.8', Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 108/323: Remove grant / revoke command, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 107/323: Add licence + template name, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 106/323: fix: cannot create new folder due to a typo error, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 91/323: FollowUp : improve esthetic, use inplace_edit for commenting on files, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 112/323: Change theme : corner for menu2 , no more border-radius for menu1, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 110/323: Correction couleur pour Inswitch_place Correction couleur pour Module sécurité,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 116/323: Improve progress_bar : add a blocking div, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 115/323: translate, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 119/323: Missing lib, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 118/323: Progress Bar : use GET , which is faster than POST, use 2 decimal in progress because if the step is < 1 , it doesn't work, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 117/323: Export PDF from ANC , add a progress_bar, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 16/323: Bug 1516 : réécriture du module période, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 111/323: History of analytic account the same way as the history for card or accounting, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 120/323: New LOGO, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 122/323: cosmetic menu level2, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 124/323: Fix : logo and new style by default, Dany De Bontridder, 2018/03/14