Nettoyage du code
This commit is contained in:
parent
718fb2c694
commit
e8e3230b6c
@ -33,7 +33,6 @@ require("../../../projetdon.class.php");
|
|||||||
require("../../../don.class.php");
|
require("../../../don.class.php");
|
||||||
|
|
||||||
setlocale(LC_TIME,"fr_FR");
|
setlocale(LC_TIME,"fr_FR");
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
$don = new Don($db);
|
$don = new Don($db);
|
||||||
$don->id = $rowid;
|
$don->id = $rowid;
|
||||||
|
|||||||
@ -23,8 +23,6 @@ require("./pre.inc.php");
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
print_titre("Statistiques");
|
print_titre("Statistiques");
|
||||||
|
|
||||||
$sql = "SELECT d.amount";
|
$sql = "SELECT d.amount";
|
||||||
|
|||||||
@ -23,9 +23,7 @@
|
|||||||
|
|
||||||
function facture_get_num($objsoc=0)
|
function facture_get_num($objsoc=0)
|
||||||
{
|
{
|
||||||
|
global $db;
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
$date = strftime("%Y%m", time());
|
$date = strftime("%Y%m", time());
|
||||||
|
|
||||||
$sql = "SELECT count(*) FROM llx_facture";
|
$sql = "SELECT count(*) FROM llx_facture";
|
||||||
|
|||||||
@ -23,8 +23,8 @@
|
|||||||
|
|
||||||
function facture_get_num($objsoc=0)
|
function facture_get_num($objsoc=0)
|
||||||
{
|
{
|
||||||
|
global $db;
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
$sql = "SELECT count(*) FROM llx_facture";
|
$sql = "SELECT count(*) FROM llx_facture";
|
||||||
|
|
||||||
if ( $db->query($sql) )
|
if ( $db->query($sql) )
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user