[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 04/07: Adapt after modification in Acc_Ledger
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 04/07: Adapt after modification in Acc_Ledger_Account::HtmlTable |
Date: |
Thu, 15 Oct 2015 19:00:16 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 33e2320641d7e68ae7c3f29b380a907e04a1e08d
Author: Dany De Bontridder <address@hidden>
Date: Thu Oct 15 15:22:03 2015 +0200
Adapt after modification in Acc_Ledger_Account::HtmlTable
---
include/impress_poste.inc.php | 21 ++++++++++++++++++---
1 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/include/impress_poste.inc.php b/include/impress_poste.inc.php
index 8edf1fe..43a0f9c 100644
--- a/include/impress_poste.inc.php
+++ b/include/impress_poste.inc.php
@@ -136,7 +136,7 @@ if ( isset( $_REQUEST['bt_html'] ) )
{
if ( isset ($_GET['poste_fille']) )
{
- $parent=$_GET['poste_id'];
+ $parent=sql_string($_GET['poste_id']);
$a_poste=$cn->get_array("select pcm_val from tmp_pcmn where
pcm_val::text like '$parent%' order by pcm_val::text");
$go=3;
}
@@ -168,7 +168,14 @@ if ( isset( $_REQUEST['bt_html'] ) )
{
Acc_Account_Ledger::HtmlTableHeader();
echo '<div class="content">';
- $Poste->HtmlTable(null,$_GET['ople']);
+ $Poste->load();
+ ob_start();
+ $result=$Poste->HtmlTable(null,$_GET['ople']);
+ $table=ob_get_clean();
+ if ( $result == 0) {
+ echo '<h2 class="title">'.$Poste->id." ".h($Poste->label).'</h2>';
+ echo $table;
+ }
echo '</div>';
echo Acc_Account_Ledger::HtmlTableHeader();
}
@@ -257,7 +264,15 @@ if ( isset( $_REQUEST['bt_html'] ) )
foreach ($a_poste as $poste_id )
{
$Poste=new Acc_Account_Ledger ($cn,$poste_id['pcm_val']);
- $Poste->HtmlTable(null,$_GET['ople']);
+ $Poste->load();
+ ob_start();
+ $result=$Poste->HtmlTable(null,$_GET['ople']);
+ $table=ob_get_clean();
+ if ( $result == 0) {
+ echo '<h2 class="title">'.$Poste->id."
".h($Poste->label).'</h2>';
+ echo $table;
+ }
+
}
echo Acc_Account_Ledger::HtmlTableHeader();
echo "</div>";
- [Noalyss-commit] [noalyss] branch master updated (1d95f51 -> 324fdd4), Dany De Bontridder, 2015/10/15
- [Noalyss-commit] [noalyss] 01/07: Change www.aevalys.eu by www.noalyss.eu Code indent, Dany De Bontridder, 2015/10/15
- [Noalyss-commit] [noalyss] 02/07: Put a button export CSV & PDF into the inner windows for the history of card and accounting, Dany De Bontridder, 2015/10/15
- [Noalyss-commit] [noalyss] 06/07: translate, Dany De Bontridder, 2015/10/15
- [Noalyss-commit] [noalyss] 05/07: translate, Dany De Bontridder, 2015/10/15
- [Noalyss-commit] [noalyss] 04/07: Adapt after modification in Acc_Ledger_Account::HtmlTable,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 07/07: translate + documentation, Dany De Bontridder, 2015/10/15
- [Noalyss-commit] [noalyss] 03/07: Put a button export CSV & PDF into the inner windows for the history of card and accounting + quick filter, Dany De Bontridder, 2015/10/15