[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 18/27: Allow to display table without button
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 18/27: Allow to display table without button |
Date: |
Thu, 02 Oct 2014 14:23:15 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit a10f9de01d8cfad3249d4a8ce55c19373b73714e
Author: Dany De Bontridder <address@hidden>
Date: Wed Sep 17 22:06:22 2014 +0200
Allow to display table without button
---
include/class_anc_operation.php | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/include/class_anc_operation.php b/include/class_anc_operation.php
index 1d0cadf..17458c8 100644
--- a/include/class_anc_operation.php
+++ b/include/class_anc_operation.php
@@ -487,6 +487,7 @@ class Anc_Operation
* \param $p_amount amount
* \param $p_id operation is detailled in a HTML popup, if several
* are opened, the tableid MUST be different. So we need to use a new
parameter
+ * \param $p_add_button true, show the button, false don't display them
* \see save_form_plan
@note
- op is an array containing the line number
@@ -516,7 +517,7 @@ class Anc_Operation
@endcode
*/
- function
display_form_plan($p_array,$p_null,$p_mode,$p_seq,$p_amount,$p_id='')
+ function
display_form_plan($p_array,$p_null,$p_mode,$p_seq,$p_amount,$p_id='',$p_add_button=true)
{
if ( $p_array != null)
extract ($p_array);
@@ -596,13 +597,13 @@ class Anc_Operation
}
$result.="</table>";
- if ( $p_mode == 1 )
+
+ if ($p_add_button && $p_mode == 1)
{
$style_remain=($remain==0)?'style="color:green"':'
style="color:red"';
$result.=" Reste à imputer = ".
'<span class="remain" '.$style_remain.'
id="'.$ctrl_remain.'">'.
$remain.'</span>';
-
// add a button to add a row
$button=new IButton();
$button->javascript="add_row('".$p_id."$table_id',$p_seq);";
- [Noalyss-commit] [noalyss] 20/27: Cosmetique : alignement colonne pourcent, (continued)
- [Noalyss-commit] [noalyss] 20/27: Cosmetique : alignement colonne pourcent, Dany De Bontridder, 2014/10/02
- [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 <=
- [Noalyss-commit] [noalyss] 22/27: Ajout fonction pour calculer pourcentage répartition clef, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 23/27: New Version of prototype.js, Dany De Bontridder, 2014/10/02