This commit is contained in:
sparkyx 2008-01-02 15:23:39 +00:00
parent 4f6de11999
commit 22ae75e59d
6 changed files with 62 additions and 7 deletions

View file

@ -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");

View file

@ -76,7 +76,7 @@ BODY {
<script src="js/scripts.js" type="text/javascript"></script>
</head>
<BODY onLoad="SetFocus(\'login\',0)">
Version 3.0.3
Version 3.1.0
<div class="remark">
<p class="gras">Il est conseill&eacute; de ne PAS utiliser Internet Explorer.
</p><p>

View file

@ -756,7 +756,7 @@ function get_propertie()
$res=pg_fetch_all($r);
if ( empty($res) ) return null;
print_r($res[0]);
return $res[0];
}

View file

@ -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 : <span id="form_total_'.$p_number.'"> '.$tot.' </span>';
$r.='<table WIDTH="100%">';
$r.=$this->header_table();

View file

@ -0,0 +1,57 @@
<?php
/*
* This file is part of PhpCompta.
*
* PhpCompta is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* PhpCompta is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PhpCompta; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/* $Revision$ */
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
/*!\file
*/
/*!
* \brief Manage the synthese for the budget module
* Mother class
*/
require_once ('class_dossier.php');
require_once ('class_bud_hypo.php');
require_once ('class_widget.php');
class Bud_Synthese {
var $cn; /*!< database connection */
var $from; /*!< from periode (p_id) */
var $to; /*!< to periode (p_id) */
var $bh_id; /*!< Hypothese id */
function __construct ($p_cn) {
$this->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);
}
}

View file

@ -237,7 +237,7 @@ function FormFin($p_cn,$p_jrn,$p_periode,$p_submit,$p_array=null,$pview_only=tru
$r.="<th>D&eacute;nomination</TH>";
$r.="<th>Description</TH>";
$r.="<th>Montant</TH>";
$r.='<th colspan="2"> Op. Concern&eacute;</th>';
$r.='<th colspan="2"> Op. Concern&eacute;e(s)</th>';
$r.="</TR>";
// Parse each " tiers"
for ($i=0; $i < $p_item; $i++) {