diff --git a/htdocs/product/stats/index.php b/htdocs/product/stats/index.php
index ad94e908760..996403c3289 100644
--- a/htdocs/product/stats/index.php
+++ b/htdocs/product/stats/index.php
@@ -21,9 +21,13 @@
*
*/
+/*! \file htdocs/product/stats/index.php
+ \brief Page accueil statistiques produits
+ \version $Revision$
+*/
+
require("./pre.inc.php");
require("../../propal.class.php");
-//require("../../graph.class.php");
llxHeader();
@@ -95,38 +99,41 @@ print '';
// Stats des produits en factures, propale, ...
-#print '
';
-#print '
';
-#print "";
-#print "| Produit/Service | ";
-#print "Qté en facture | ";
-#print "Qté en propale | ";
-#print "
\n";
-#$sql = "SELECT p.label, sum(f.qty) as sumf, sum(pr.qty) as sumpr FROM ".MAIN_DB_PREFIX."product as p";
-#$sql.=" left join ".MAIN_DB_PREFIX."facturedet as f on p.rowid = f.fk_product";
-#$sql.=" left join ".MAIN_DB_PREFIX."propaldet as pr on p.rowid = pr.fk_product";
-#$sql.=" group by p.label";
-#if ($db->query($sql))
-#{
-# $num = $db->num_rows();
-# $i = 0;
-# while ($i < $num)
-# {
-# $obj = $db->fetch_object( $i);
-# print "";
-# print "| ".$obj->label." | ";
-# print "".$obj->sumf." | ";
-# print "".$obj->sumpr." | ";
-# print '
';
-# $i++;
-# }
-#}
-#else {
-# print $db->error()." $sql";
-#}
-#print "
\n";
-#$db->free();
+/*
+print '
';
+print '';
+print "";
+print "| Produit/Service | ";
+print "Qté en facture | ";
+print "Qté en propale | ";
+print "
\n";
+$sql = "SELECT p.label, sum(f.qty) as sumf, sum(pr.qty) as sumpr FROM ".MAIN_DB_PREFIX."product as p";
+$sql.=" left join ".MAIN_DB_PREFIX."facturedet as f on p.rowid = f.fk_product";
+$sql.=" left join ".MAIN_DB_PREFIX."propaldet as pr on p.rowid = pr.fk_product";
+$sql.=" group by p.label";
+if ($db->query($sql))
+{
+ $num = $db->num_rows();
+ $i = 0;
+ while ($i < $num)
+ {
+ $obj = $db->fetch_object( $i);
+ print "";
+ print "| ".$obj->label." | ";
+ print "".$obj->sumf." | ";
+ print "".$obj->sumpr." | ";
+ print '
';
+ $i++;
+ }
+}
+else {
+ print $db->error()." $sql";
+}
+print "
\n";
+$db->free();
+*/
+
$db->close();
llxFooter("Dernière modification $Date$ révision $Revision$");
diff --git a/htdocs/user/logout.php b/htdocs/user/logout.php
index e5db515db49..e7f8338029d 100644
--- a/htdocs/user/logout.php
+++ b/htdocs/user/logout.php
@@ -1,6 +1,7 @@
- * Copyright (C) 2003 Xavier Dutoit
+ * Copyright (C) 2003 Xavier Dutoit
+ * Copyright (C) 2004 Laurent Destailleur
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -21,10 +22,10 @@
*
*/
-/**
-* Pour se déconnecter
-* @package User
+/*! \file htdocs/user/logout.php
+ \brief Fichier de deconnexion
*/
+
if (!empty ($_SERVER["REMOTE_USER"]))
die("La déconnection ne fonctionne actuellement que pour l'authentification par pear");