37 |
|
|
38 |
if ($_GET["id"]) |
if ($_GET["id"]) |
39 |
{ |
{ |
40 |
$soc = new Societe($db); |
$soc = new TelephonieClient($db); |
41 |
$result = $soc->fetch($_GET["id"], $user); |
$result = $soc->fetch($_GET["id"], $user); |
42 |
|
|
43 |
if (!$soc->perm_read) |
if (!$soc->perm_read) |
83 |
$head[$h][1] = $langs->trans("Tarifs (".$row[0].")"); |
$head[$h][1] = $langs->trans("Tarifs (".$row[0].")"); |
84 |
$h++; |
$h++; |
85 |
|
|
86 |
|
$head[$h][0] = DOL_URL_ROOT."/telephonie/client/commentaires.php?id=".$soc->id; |
87 |
|
$head[$h][1] = $langs->trans("Commentaires"); |
88 |
|
$num_comments = $soc->count_comment(); |
89 |
|
if ($num_comments > 0) |
90 |
|
{ |
91 |
|
$head[$h][1] = $langs->trans("Commentaires ($num_comments)"); |
92 |
|
} |
93 |
|
$h++; |
94 |
|
|
95 |
|
|
96 |
dolibarr_fiche_head($head, $hselected, 'Client : '.$soc->nom); |
dolibarr_fiche_head($head, $hselected, 'Client : '.$soc->nom); |
97 |
|
|
98 |
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">'; |
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">'; |