* * 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 * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ * $Source$ * */ require("./pre.inc.php"); require("../../propal.class.php"); require("../../graph.class.php"); llxHeader(); $mesg = ''; /* * * */ $sql = "SELECT count(*) FROM llx_product WHERE fk_product_type = 0"; if ($db->query($sql)) { $row = $db->fetch_row(0); $nbproduct = $row[0]; } $db->free(); $sql = "SELECT count(*) FROM llx_product WHERE envente = 0 AND fk_product_type = 0"; if ($db->query($sql)) { $row = $db->fetch_row(0); $nbhv = $row[0]; } $db->free(); print_fiche_titre('Statistiques produits et services', $mesg); print ''; print ""; print ''; print ''; print ""; print ''; print ''; $sql = "SELECT count(*) FROM llx_product WHERE fk_product_type = 1"; if ($db->query($sql)) { $row = $db->fetch_row(0); $nbproduct = $row[0]; } $db->free(); $sql = "SELECT count(*) FROM llx_product WHERE envente = 0 AND fk_product_type = 1"; if ($db->query($sql)) { $row = $db->fetch_row(0); $nbhv = $row[0]; } $db->free(); print ""; print ''; print ''; print ""; print ''; print ''; print '
Nb de produit dans le catalogue'.$nbproduct.'
Nb de produit dans le catalogue qui ne sont pas en vente'.$nbhv.'
Nb de service dans le catalogue'.$nbproduct.'
Nb de service dans le catalogue qui ne sont pas en vente'.$nbhv.'
'; $db->close(); llxFooter("Dernière modification $Date$ révision $Revision$"); ?>