Change class_bilan to class_acc_bilan

This commit is contained in:
sparkyx 2007-12-20 10:21:47 +00:00
parent ff2ffe001b
commit 4baff018a2
3 changed files with 8 additions and 8 deletions

View file

@ -25,7 +25,7 @@ include_once("ac_common.php");
include_once("impress_inc.php");
include_once("postgres.php");
require_once ('header_print.php');
require_once ('class_bilan.php');
require_once ('class_acc_bilan.php');
include ('class_user.php');
require_once('class_dossier.php');
@ -50,7 +50,7 @@ if ( $User->admin == 0 ) {
}
$bilan=new Bilan($cn);
$bilan=new Acc_Bilan($cn);
$bilan->get_request_get();
$bilan->load();
/*\!bug the headers shouldn't be sent here, but it doesn't work

View file

@ -32,13 +32,13 @@ require_once ('class_dossier.php');
require_once ('impress_inc.php');
require_once ('header_print.php');
class Bilan {
class Acc_Bilan {
var $db; /*!< database connection */
var $b_id; /*!< id of the bilan (bilan.b_id) */
var $from; /*!< from periode */
var $to; /*!< end periode */
function Bilan($p_cn) {
function Acc_Bilan($p_cn) {
$this->db=$p_cn;
}
/*!
@ -450,7 +450,7 @@ class Bilan {
if ( isset($_GET['result'])) {
ob_start();
$cn=DbConnect(dossier::id());
$a=new Bilan($cn);
$a=new Acc_Bilan($cn);
$a->get_request_get();
$a->load();
@ -468,7 +468,7 @@ class Bilan {
}
else {
$cn=DbConnect(dossier::id());
$a=new Bilan($cn);
$a=new Acc_Bilan($cn);
$a->get_request_get();
echo '<form method="get">';

View file

@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/* $Revision$ */
require_once ('class_bilan.php');
require_once ('class_acc_bilan.php');
/*! \file
* \brief form who call the printing of the bilan in RTF
* file included by user_impress
@ -37,7 +37,7 @@ include_once("postgres.php");
// Form
//-----------------------------------------------------
$filter_year=" where p_exercice='".$User->getExercice()."'";
$bilan=new Bilan($cn);
$bilan=new Acc_Bilan($cn);
echo '<div class="u_redcontent">';
echo '<FORM ACTION="bilan.php" METHOD="GET">';
echo $bilan->display_form ($filter_year);