64 |
$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; |
65 |
$head[$h][1] = $langs->trans("Stats"); |
$head[$h][1] = $langs->trans("Stats"); |
66 |
$h++; |
$h++; |
|
|
|
|
$head[$h][0] = DOL_URL_ROOT."/telephonie/client/tarifs.php?id=".$soc->id; |
|
|
$head[$h][1] = $langs->trans("Tarifs"); |
|
|
$h++; |
|
67 |
|
|
68 |
|
$sql = "SELECT count(*) FROM ".MAIN_DB_PREFIX."telephonie_tarif_client"; |
69 |
|
$sql .= " WHERE fk_client = '".$soc->id."';"; |
70 |
|
$resql = $db->query($sql); |
71 |
|
|
72 |
|
if ($resql) |
73 |
|
{ |
74 |
|
$row = $db->fetch_row($resql); |
75 |
|
$db->free($resql); |
76 |
|
} |
77 |
|
|
78 |
|
$head[$h][0] = DOL_URL_ROOT."/telephonie/client/tarifs.php?id=".$soc->id; |
79 |
|
$head[$h][1] = $langs->trans("Tarifs (".$row[0].")"); |
80 |
|
$h++; |
81 |
|
|
82 |
dolibarr_fiche_head($head, $hselected, 'Client : '.$soc->nom); |
dolibarr_fiche_head($head, $hselected, 'Client : '.$soc->nom); |
83 |
|
|
84 |
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">'; |
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">'; |