76 lines
2.0 KiB
PHP
76 lines
2.0 KiB
PHP
<?PHP
|
|
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
*
|
|
* 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 DOL_DOCUMENT_ROOT.'/telephonie/distributeurtel.class.php';
|
|
|
|
if (!$user->rights->telephonie->lire) accessforbidden();
|
|
|
|
llxHeader('','Telephonie - Statistiques - Distributeur');
|
|
|
|
/*
|
|
*
|
|
*
|
|
*
|
|
*/
|
|
|
|
|
|
$h = 0;
|
|
|
|
$head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/index.php';
|
|
$head[$h][1] = "Global";
|
|
$h++;
|
|
|
|
if ($_GET["id"])
|
|
{
|
|
|
|
$distri = new DistributeurTelephonie($db);
|
|
$distri->fetch($_GET["id"]);
|
|
|
|
$head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/distributeur.php?commid='.$distri->id;
|
|
$head[$h][1] = $distri->nom;
|
|
$hselected = $h;
|
|
$h++;
|
|
|
|
dolibarr_fiche_head($head, $hselected, "Distributeur");
|
|
|
|
print "Lignes commandées<br />";
|
|
|
|
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
|
|
|
print '<tr><td width="50%" valign="top">';
|
|
|
|
|
|
|
|
print '</td><td valign="top" width="50%">';
|
|
|
|
print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=telephoniegraph&file=distributeurs/'.$_GET["id"].'/clients.hebdomadaire.png" alt="Commandes de lignes par semaine" title="Lignes Actives"><br /><br />'."\n";
|
|
|
|
|
|
print '</td></tr>';
|
|
print '</table>';
|
|
|
|
$db->close();
|
|
}
|
|
|
|
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
|
?>
|