[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 22/27: Ajout fonction pour calculer pourcent
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 22/27: Ajout fonction pour calculer pourcentage répartition clef |
Date: |
Thu, 02 Oct 2014 14:23:17 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 01ecfb86fd2d542a59ac41bed53078b3c0e3b021
Author: Dany De Bontridder <address@hidden>
Date: Thu Sep 18 15:14:24 2014 +0200
Ajout fonction pour calculer pourcentage répartition clef
---
include/template/anc_key_input.php | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/include/template/anc_key_input.php
b/include/template/anc_key_input.php
index 9a098ff..470dc6f 100644
--- a/include/template/anc_key_input.php
+++ b/include/template/anc_key_input.php
@@ -125,7 +125,8 @@
<td class="num">
<?php
$inum_percent=new INum('percent[]');
- $inum_percent->value=$percent;
+ $inum_percent->javascript='
onchange="format_number(this,2);anc_key_compute_table();"';
+ $inum_percent->value=sprintf("%.2f",$percent);
echo $inum_percent->input();
?>
</td>
@@ -138,8 +139,8 @@
<td style="width: auto" colspan="<?php echo
count($plan)+1;?>">
<?php echo _('Total')?>
</td>
- <td id="total_key" class="num">
- <?php echo $tot_key;?>
+ <td class="num">
+ <span id="total_key"><?php echo
nb($tot_key);?></span>%
</td>
</tr>
</tfoot>
- [Noalyss-commit] [noalyss] 14/27: remove debug info, (continued)
- [Noalyss-commit] [noalyss] 14/27: remove debug info, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 13/27: Add documentation add_row_key, remove secund parameter, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 01/27: Ajout des clef de répartition pour la comptabilité analytique, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 24/27: Task #0001030: PRINTBAL : mettre le numéro de compte en première colonne Task #1030 - PRINTBAL : mettre le numéro de compte en première colonne, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 27/27: Task #1024 : add a message Task #1024 - Comptabiltié analytique : table activité lors confirmation, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 26/27: Task #1024 : add a message Task #1024 - Comptabiltié analytique : table activité lors confirmation, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 15/27: add script for table Distribution keys, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 19/27: fix several bugs : when adding new keys or new rows in a key Task #1021 - Comptabilité analytique : clef de répartition : bouton ajout, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 25/27: Task #1029: PRINTBAL : année précédente dans une autre couleur Task #1029 - PRINTBAL : année précédente dans une autre couleur, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 18/27: Allow to display table without button, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 22/27: Ajout fonction pour calculer pourcentage répartition clef,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 23/27: New Version of prototype.js, Dany De Bontridder, 2014/10/02