Doc: Corrections commentaires pour doc doxygen

This commit is contained in:
Laurent Destailleur 2004-08-14 13:17:07 +00:00
parent 36554d72ce
commit 678a8a5b1e
2 changed files with 44 additions and 36 deletions

View File

@ -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 '</table>';
// Stats des produits en factures, propale, ...
#print '<br>';
#print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
#print "<tr class=\"liste_titre\">";
#print "<td>Produit/Service</td>";
#print "<td>Qté en facture</td>";
#print "<td>Qté en propale</td>";
#print "</tr>\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 "<tr ".$bc[$var].">";
# print "<td>".$obj->label."</td>";
# print "<td>".$obj->sumf."</td>";
# print "<td>".$obj->sumpr."</td>";
# print '</tr>';
# $i++;
# }
#}
#else {
# print $db->error()." $sql";
#}
#print "</table>\n";
#$db->free();
/*
print '<br>';
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
print "<tr class=\"liste_titre\">";
print "<td>Produit/Service</td>";
print "<td>Qté en facture</td>";
print "<td>Qté en propale</td>";
print "</tr>\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 "<tr ".$bc[$var].">";
print "<td>".$obj->label."</td>";
print "<td>".$obj->sumf."</td>";
print "<td>".$obj->sumpr."</td>";
print '</tr>';
$i++;
}
}
else {
print $db->error()." $sql";
}
print "</table>\n";
$db->free();
*/
$db->close();
llxFooter("<em>Derni&egrave;re modification $Date$ r&eacute;vision $Revision$</em>");

View File

@ -1,6 +1,7 @@
<?PHP
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2003 Xavier Dutoit <doli@sydesy.com>
* Copyright (C) 2003 Xavier Dutoit <doli@sydesy.com>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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&eacute;connection ne fonctionne actuellement que pour l'authentification par pear");