66 |
$head[$h][0] = DOL_URL_ROOT."/telephonie/client/stats.php?id=".$soc->id; |
$head[$h][0] = DOL_URL_ROOT."/telephonie/client/stats.php?id=".$soc->id; |
67 |
$head[$h][1] = $langs->trans("Stats"); |
$head[$h][1] = $langs->trans("Stats"); |
68 |
$h++; |
$h++; |
69 |
|
|
70 |
|
$sql = "SELECT count(*) FROM ".MAIN_DB_PREFIX."telephonie_tarif_client"; |
71 |
|
$sql .= " WHERE fk_client = '".$soc->id."';"; |
72 |
|
$resql = $db->query($sql); |
73 |
|
|
74 |
|
if ($resql) |
75 |
|
{ |
76 |
|
$row = $db->fetch_row($resql); |
77 |
|
$db->free($resql); |
78 |
|
} |
79 |
|
|
80 |
$head[$h][0] = DOL_URL_ROOT."/telephonie/client/tarifs.php?id=".$soc->id; |
$head[$h][0] = DOL_URL_ROOT."/telephonie/client/tarifs.php?id=".$soc->id; |
81 |
$head[$h][1] = $langs->trans("Tarifs"); |
$head[$h][1] = $langs->trans("Tarifs (".$row[0].")"); |
82 |
$h++; |
$h++; |
83 |
|
|
84 |
if ($soc->perm_perms) |
if ($soc->perm_perms) |