Skip to content
Snippets Groups Projects
Commit 94f25cd1 authored by Rodolphe Quiedeville's avatar Rodolphe Quiedeville
Browse files

Ajout dir des lignes

parent c62a5c8c
No related branches found
No related tags found
No related merge requests found
...@@ -74,8 +74,6 @@ for ($j = 0 ; $j < 10 ; $j++) ...@@ -74,8 +74,6 @@ for ($j = 0 ; $j < 10 ; $j++)
{ {
$dirs[$i] = DOL_DATA_ROOT."/graph/".$j."/telephonie/client/"; $dirs[$i] = DOL_DATA_ROOT."/graph/".$j."/telephonie/client/";
$i++; $i++;
$dirs[$i] = DOL_DATA_ROOT."/graph/".$j."/telephonie/contrat/";
$i++;
$dirs[$i] = DOL_DATA_ROOT."/graph/".$j."/telephonie/ligne/"; $dirs[$i] = DOL_DATA_ROOT."/graph/".$j."/telephonie/ligne/";
$i++; $i++;
$dirs[$i] = DOL_DATA_ROOT."/graph/".$j."/telephonie/commercial/"; $dirs[$i] = DOL_DATA_ROOT."/graph/".$j."/telephonie/commercial/";
...@@ -98,13 +96,56 @@ if ($db->query($sql)) ...@@ -98,13 +96,56 @@ if ($db->query($sql))
$row = $db->fetch_row(); $row = $db->fetch_row();
$dirs[$i] = DOL_DATA_ROOT."/graph/telephonie/client/".substr($row[0],0,1)."/".$row[0]."/"; $dirs[$i] = DOL_DATA_ROOT."/graph/telephonie/client/".substr($row[0],0,1)."/".$row[0]."/";
$i++;
$dirs[$i] = DOL_DATA_ROOT."/graph/".substr($row[0],-1)."/telephonie/client/".$row[0]."/";
$i++; $i++;
$j++; $j++;
} }
} }
$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."telephonie_contrat";
if ($db->query($sql))
{
$num = $db->num_rows();
$j = 0;
while ($j < $num)
{
$row = $db->fetch_row();
$dirs[$i] = DOL_DATA_ROOT."/graph/".substr($row[0],-1)."/telephonie/contrat/".$row[0]."/";
$i++;
$j++;
}
}
/*
*
*/
$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."telephonie_societe_ligne";
if ($db->query($sql))
{
$num = $db->num_rows();
$j = 0;
while ($j < $num)
{
$row = $db->fetch_row();
$dirs[$i] = DOL_DATA_ROOT."/graph/".substr($row[0],-1)."/telephonie/ligne/".$row[0]."/";
$i++;
$j++;
}
}
/*
*
*/
if (is_array($dirs)) if (is_array($dirs))
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment