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