* * 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: index.php,v 1.1 2005/11/22 18:43:02 rodolphe Exp $ * $Source: /srv/cvs/sources/dolibarr/dolibarr/htdocs/telephonie/stats/consultation/Attic/index.php,v $ * */ require("./pre.inc.php"); if (!$user->rights->telephonie->lire) accessforbidden(); if (!$user->rights->telephonie->stats->lire) accessforbidden(); llxHeader('','Telephonie - Statistiques - Consultations'); /* * * */ include "./onglets.php"; dolibarr_fiche_head($head, $hselected, "Consultations"); print '
'; print ''; print '
'; $sql = "SELECT u.name, u.firstname, count(distinct(sc.fk_soc)) as dam"; $sql .= " FROM ".MAIN_DB_PREFIX."user as u"; $sql .= ",".MAIN_DB_PREFIX."societe_consult as sc"; $sql .= " WHERE sc.fk_user = u.rowid"; $sql .= " GROUP BY u.rowid"; $sql .= " ORDER BY dam DESC"; $resql = $db->query($sql); print ''; print ''; if ($resql) { while ($row = $db->fetch_row($resql)) { print ''; print ''; } } print '
UtilisateurFiches client
'.$row[1].' '.$row[0].''.$row[2].'
'; print '
'; /* * * */ print '
'; $db->close(); llxFooter("Dernière modification $Date: 2005/11/22 18:43:02 $ révision $Revision: 1.1 $"); ?>