Mise jour

This commit is contained in:
Rodolphe Quiedeville 2005-05-30 08:31:59 +00:00
parent 26ee3ae2c2
commit 6a1b3851fa
2 changed files with 8 additions and 17 deletions

View File

@ -31,31 +31,26 @@ llxHeader('','Telephonie - Statistiques - Distributeurs');
*
*/
$h = 0;
$head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/index.php';
$head[$h][1] = "Global";
$h++;
if ($_GET["commid"])
if ($_GET["id"])
{
$comm = new User($db, $_GET["commid"]);
$comm = new User($db, $_GET["id"]);
$comm->fetch();
$head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/commercial.php?commid='.$comm->id;
$head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/commercial.php?id='.$comm->id;
$head[$h][1] = $comm->fullname;
$hselected = $h;
$h++;
$head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/commercialca.php?commid='.$comm->id;
$head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/commercialca.php?id='.$comm->id;
$head[$h][1] = "CA";
$h++;
$head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/lignes.php?commid='.$comm->id;
$head[$h][1] = "Lignes";
$h++;
dolibarr_fiche_head($head, $hselected, "Distributeurs");
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';

View File

@ -38,24 +38,20 @@ $head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/index.php';
$head[$h][1] = "Global";
$h++;
if ($_GET["commid"])
if ($_GET["id"])
{
$comm = new User($db, $_GET["commid"]);
$comm = new User($db, $_GET["id"]);
$comm->fetch();
$head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/commercial.php?commid='.$comm->id;
$head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/commercial.php?id='.$comm->id;
$head[$h][1] = $comm->fullname;
$h++;
$head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/commercialca.php?commid='.$comm->id;
$head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/commercialca.php?id='.$comm->id;
$head[$h][1] = "CA";
$hselected = $h;
$h++;
$head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/lignes.php?commid='.$comm->id;
$head[$h][1] = "Lignes";
$h++;
dolibarr_fiche_head($head, $hselected, "Distributeurs");
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';