Modif permissions
This commit is contained in:
parent
1a4d76d75d
commit
b5f35e6ee9
@ -31,6 +31,11 @@ llxHeader('','Telephonie - Statistiques - Distributeur');
|
||||
*/
|
||||
$h = 0;
|
||||
|
||||
if ($user->distributeur_id)
|
||||
{
|
||||
$_GET["id"] = $user->distributeur_id;
|
||||
}
|
||||
|
||||
if ($_GET["id"])
|
||||
{
|
||||
$distri = new DistributeurTelephonie($db);
|
||||
|
||||
@ -31,6 +31,11 @@ llxHeader('','Telephonie - Statistiques - Distributeur');
|
||||
*/
|
||||
$h = 0;
|
||||
|
||||
if ($user->distributeur_id)
|
||||
{
|
||||
$_GET["id"] = $user->distributeur_id;
|
||||
}
|
||||
|
||||
if ($_GET["id"])
|
||||
{
|
||||
$distri = new DistributeurTelephonie($db);
|
||||
@ -59,7 +64,7 @@ if ($_GET["id"])
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>Commerciaux</td></tr>';
|
||||
|
||||
$sql = "SELECT u.firstname, u.name";
|
||||
$sql = "SELECT u.rowid, u.firstname, u.name";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."user as u";
|
||||
$sql .= " , ".MAIN_DB_PREFIX."telephonie_distributeur_commerciaux as dc";
|
||||
|
||||
@ -84,7 +89,7 @@ if ($_GET["id"])
|
||||
|
||||
print "<tr $bc[$var]>";
|
||||
|
||||
print '<td>'.$row[0].' '.$row[1].'</td>';
|
||||
print '<td>'.$row[1].' '.$row[2].'</td>';
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
@ -46,12 +46,15 @@ print '<tr><td width="50%" valign="top">';
|
||||
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>Distributeur</td><td>% Avance</td><td>% Prélèv</td><td>% Autre</td></tr>';
|
||||
print '<td>Distributeur</td><td>Durée avan.</td><td>% Avance</td><td>% Prélèv</td><td>% Autre</td></tr>';
|
||||
|
||||
$sql = "SELECT d.nom, d.rowid, d.avance_pourcent, d.rem_pour_prev, d.rem_pour_autr";
|
||||
$sql = "SELECT d.nom, d.rowid, d.avance_pourcent, d.rem_pour_prev, d.rem_pour_autr, d.avance_duree";
|
||||
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."telephonie_distributeur as d";
|
||||
|
||||
if ($user->distributeur_id)
|
||||
{
|
||||
$sql .= " WHERE d.rowid = ".$user->distributeur_id;
|
||||
}
|
||||
$sql .= " ORDER BY d.rowid ASC";
|
||||
|
||||
$resql = $db->query($sql);
|
||||
@ -71,6 +74,7 @@ if ($resql)
|
||||
print "<tr $bc[$var]>";
|
||||
|
||||
print '<td><a href="distributeur.php?id='.$row[1].'">'.$row[0].'</a></td>';
|
||||
print '<td>'.$row[5].'</td>';
|
||||
print '<td>'.$row[2].'</td>';
|
||||
print '<td>'.$row[3].'</td>';
|
||||
print '<td>'.$row[4].'</td>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user