From 22ae75e59d51139be206078d0643f1cef959cd8d Mon Sep 17 00:00:00 2001 From: sparkyx Date: Wed, 2 Jan 2008 15:23:39 +0000 Subject: [PATCH] cosmetic --- html/bud_search_poste.php | 2 -- html/index.php | 2 +- include/class_acc_ledger.php | 2 +- include/class_bud_data.php | 4 +-- include/class_bud_synthese.php | 57 ++++++++++++++++++++++++++++++++++ include/user_form_fin.php | 2 +- 6 files changed, 62 insertions(+), 7 deletions(-) create mode 100644 include/class_bud_synthese.php diff --git a/html/bud_search_poste.php b/html/bud_search_poste.php index 09670adaf..34a853cc4 100644 --- a/html/bud_search_poste.php +++ b/html/bud_search_poste.php @@ -24,8 +24,6 @@ */ include_once ("ac_common.php"); require_once('class_acc_ledger.php'); -print_r($_GET); - include_once ("postgres.php"); include_once("jrn.php"); diff --git a/html/index.php b/html/index.php index f131f7b08..8fb7d77c6 100644 --- a/html/index.php +++ b/html/index.php @@ -76,7 +76,7 @@ BODY { -Version 3.0.3 +Version 3.1.0

Il est conseillé de ne PAS utiliser Internet Explorer.

diff --git a/include/class_acc_ledger.php b/include/class_acc_ledger.php index 84f8cbaf9..ebace2523 100644 --- a/include/class_acc_ledger.php +++ b/include/class_acc_ledger.php @@ -756,7 +756,7 @@ function get_propertie() $res=pg_fetch_all($r); if ( empty($res) ) return null; - print_r($res[0]); + return $res[0]; } diff --git a/include/class_bud_data.php b/include/class_bud_data.php index 5b749c676..df1b8a72b 100644 --- a/include/class_bud_data.php +++ b/include/class_bud_data.php @@ -212,10 +212,10 @@ class Bud_Data { $r.=widget::hidden('bd_id',$this->bd_id); $r.=widget::hidden('form_id',$p_number); - + $r.="Fiche Budget ".$wBudCard->IOValue('bc_id'.$p_number); $r.="Compte d'exploitation ".$wAccount->IOValue('account_'.$p_number); // $r.=widget::hidden('account_'.$p_number.'_hidden',$this->pcm_val); - $r.="Fiche Budget ".$wBudCard->IOValue('bc_id'.$p_number); + $r.='Total : '.$tot.' '; $r.=''; $r.=$this->header_table(); diff --git a/include/class_bud_synthese.php b/include/class_bud_synthese.php new file mode 100644 index 000000000..e31316289 --- /dev/null +++ b/include/class_bud_synthese.php @@ -0,0 +1,57 @@ +cn=$p_cn; + } + + function from_array($p_array) { + foreach (array ('bh_id','from','to') as $l) { + $this->$l=(isset ($p_array[$l]))?$p_array[$l]:""; + } + } + static function test_me() { + $cn=DbConnect(dossier::id()); + $a=array('from'=>'01.01.2008', + 'to'=>'11.01.2008', + 'bh_id'=>1); + print_r($a); + $obj=new Bud_Synthese($cn); + $obj->from_array($a); + print_r($obj); + } +} diff --git a/include/user_form_fin.php b/include/user_form_fin.php index 585772739..f8d8052d3 100644 --- a/include/user_form_fin.php +++ b/include/user_form_fin.php @@ -237,7 +237,7 @@ function FormFin($p_cn,$p_jrn,$p_periode,$p_submit,$p_array=null,$pview_only=tru $r.=""; $r.=""; $r.=""; - $r.=''; + $r.=''; $r.=""; // Parse each " tiers" for ($i=0; $i < $p_item; $i++) {
DénominationDescriptionMontant Op. Concerné Op. Concernée(s)