Ajout répertoires
This commit is contained in:
parent
4c563d8573
commit
e64c353f70
@ -39,6 +39,9 @@ $dirs[5] = DOL_DATA_ROOT."/graph/telephonie/communications/";
|
|||||||
$dirs[6] = DOL_DATA_ROOT."/graph/telephonie/contrats/";
|
$dirs[6] = DOL_DATA_ROOT."/graph/telephonie/contrats/";
|
||||||
$dirs[7] = DOL_DATA_ROOT."/graph/telephonie/factures/";
|
$dirs[7] = DOL_DATA_ROOT."/graph/telephonie/factures/";
|
||||||
$dirs[8] = DOL_DATA_ROOT."/graph/telephonie/lignes/";
|
$dirs[8] = DOL_DATA_ROOT."/graph/telephonie/lignes/";
|
||||||
|
$dirs[9] = DOL_DATA_ROOT."/graph/telephonie/commerciaux/";
|
||||||
|
$dirs[10] = DOL_DATA_ROOT."/graph/telephonie/commerciaux/groupes/";
|
||||||
|
$dirs[11] = DOL_DATA_ROOT."/graph/telephonie/distributeurs/";
|
||||||
|
|
||||||
$numdir = (sizeof($dirs) + 2);
|
$numdir = (sizeof($dirs) + 2);
|
||||||
$i = $numdir ;
|
$i = $numdir ;
|
||||||
@ -62,6 +65,31 @@ if ($db->query($sql))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Groupes de commerciaux */
|
||||||
|
|
||||||
|
$sql = "SELECT rowid ";
|
||||||
|
$sql .= " FROM ".MAIN_DB_PREFIX."usergroup";
|
||||||
|
|
||||||
|
if ($db->query($sql))
|
||||||
|
{
|
||||||
|
$num = $db->num_rows();
|
||||||
|
$j = 0;
|
||||||
|
|
||||||
|
while ($j < $num)
|
||||||
|
{
|
||||||
|
$row = $db->fetch_row();
|
||||||
|
|
||||||
|
$dirs[$i] = DOL_DATA_ROOT."/graph/telephonie/commerciaux/groupes/".$row[0];
|
||||||
|
|
||||||
|
$i++;
|
||||||
|
$j++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* Clients */
|
||||||
|
|
||||||
for ($j = 0 ; $j < 10 ; $j++)
|
for ($j = 0 ; $j < 10 ; $j++)
|
||||||
{
|
{
|
||||||
$dirs[$i] = DOL_DATA_ROOT."/graph/telephonie/client/".$j;
|
$dirs[$i] = DOL_DATA_ROOT."/graph/telephonie/client/".$j;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user