Modif graphiques
This commit is contained in:
parent
6542fb43e4
commit
5f30b2db30
@ -21,10 +21,22 @@
|
|||||||
*/
|
*/
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
|
|
||||||
if (!$user->rights->telephonie->lire) accessforbidden();
|
if (!$user->rights->telephonie->lire) accessforbidden();
|
||||||
|
|
||||||
llxHeader('','Telephonie - Statistiques - Distributeur');
|
if ($user->distributeur_id && $user->responsable_distributeur_id = 0)
|
||||||
|
{
|
||||||
|
$_GET["id"] = $user->distributeur_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($user->responsable_distributeur_id > 0)
|
||||||
|
{
|
||||||
|
if (!in_array($_GET["id"], $user->responsable_distributeur_commerciaux))
|
||||||
|
{
|
||||||
|
accessforbidden();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
llxHeader('','Telephonie - Distributeur - Commercial');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
@ -32,11 +44,6 @@ llxHeader('','Telephonie - Statistiques - Distributeur');
|
|||||||
$h = 0;
|
$h = 0;
|
||||||
$year = strftime("%Y",time());
|
$year = strftime("%Y",time());
|
||||||
|
|
||||||
if ($user->distributeur_id)
|
|
||||||
{
|
|
||||||
$_GET["id"] = $user->distributeur_id;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($_GET["id"] && $_GET["did"])
|
if ($_GET["id"] && $_GET["did"])
|
||||||
{
|
{
|
||||||
$commercial = new User($db, $_GET["id"]);
|
$commercial = new User($db, $_GET["id"]);
|
||||||
@ -53,11 +60,11 @@ if ($_GET["id"] && $_GET["did"])
|
|||||||
$head[$h][1] = $commercial->prenom ." ". $commercial->nom;
|
$head[$h][1] = $commercial->prenom ." ". $commercial->nom;
|
||||||
$hselected = $h;
|
$hselected = $h;
|
||||||
$h++;
|
$h++;
|
||||||
/*
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/telephonie/distributeurs/po.php?id='.$distri->id;
|
$head[$h][0] = DOL_URL_ROOT.'/telephonie/distributeurs/comm/ca.php?id='.$commercial->id.'&did='.$_GET["did"];
|
||||||
$head[$h][1] = "Prises d'ordre";
|
$head[$h][1] = "Chiffre d'affaire";
|
||||||
$h++;
|
$h++;
|
||||||
|
/*
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/telephonie/distributeurs/stats.php?id='.$distri->id;
|
$head[$h][0] = DOL_URL_ROOT.'/telephonie/distributeurs/stats.php?id='.$distri->id;
|
||||||
$head[$h][1] = "Statistiques";
|
$head[$h][1] = "Statistiques";
|
||||||
$h++;
|
$h++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user